Given [A, B, C] return 'A, B, or C'.
544634
def or_list(items: Sequence[str]) -> Optional[str]:
    """"""
    if not items:
        raise ValueError

    if len(items) == 1:
        return items[0]
    if len(items) == 2:
        return items[0] + " or " + items[1]

    *selected, last_item = items[:MAX_LENGTH]
    return ", ".join(selected) + " or " + last_item
442597
function(a, b) {
            c = this;
            if (!b) {
                return c.options[a];
            } else {
                c._u(a, b);
            }
        }
1207136
def shorthand(self):
        """"""
        return (self.a, self.b, self.c, self.d, self.e, self.f)
977527
def logical_or(self, other):
        """"""
        return self.operation(other, lambda x, y: int(x or y))
4242
def column_vectors(self):
        """"""
        a, b, c, d, e, f, _, _, _ = self
        return (a, d), (b, e), (c, f)
429792
def matches(s, t, i, j, k):
    """"""
    for d in range(k):
        if s[i + d] != t[j + d]:
            return False
    return True
911836
def LL(n):
    """"""
    if (n<=0):return Context('0')
    else:
        LL1=LL(n-1)
        r1 = C1(3**(n-1),2**(n-1)) - LL1 - LL1
        r2 = LL1 - LL1 - LL1
        return r1 + r2
262951
def gcd(a, b):
        
        while b:
            a, b = b, a % b

        return a
313971
def MAXSIDE(a, b):
        """"""
        return cmp(max(b[0], b[1]), max(a[0], a[1])) or cmp(min(b[0], b[1]), min(a[0], a[1])) or cmp(b[1], a[1]) or cmp(b[0], a[0])
585094
def any_in_string(l, s):
    
    return any([i in l for i in l if i in s])
555590
function dfl(a, b, c) {
        switch (arguments.length) {
            case 2: return a != null ? a : b;
            case 3: return a != null ? a : b != null ? b : c;
            default: throw new Error("Implement me");
        }
    }
531616
def _merge_a_into_b_simple(self, a, b):
        
        for k, v in a.items():
            b[k] = v
        return b
1028450
def flat_list(input_list):
    

    """
    x = input_list
    if isinstance(x, list):
        return [a for i in x for a in flat_list(i)]
    else:
        return [x]
306189
def iflatten(L):
    """"""
    for sublist in L:
        if hasattr(sublist, '__iter__'):
            for item in iflatten(sublist): yield item
        else: yield sublist
913113
function tuple3Of(a, b, c) {
    var self = getInstance(this, tuple3Of);
    self.types = rest(arguments);
    return self;
}
791400
function (a, b) {
                var result = [], inB = {}, i, n;
                for (i = 0, n = b.length; i < n; i++) {
                    inB[b[i]] = true;
                }
                for (i = 0, n = a.length; i < n; i++) {
                    if (!inB[a[i]]) {
                        result.push(a[i]);
                    }
                }
                return result;
            }
1298174
function slice_trits(n,a,b) {
  var s = n2bts(n);
  var ss = s.substring(s.length - b, s.length - a);
  return bts2n(ss);
}