input stringclasses 1
value | context stringlengths 5.05k 188k | answers stringlengths 22 82 | length int32 502 23.3k | dataset stringclasses 1
value | language stringclasses 1
value | all_classes null | _id stringlengths 48 48 |
|---|---|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
# Copyright (c) 2011 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing a class to fix certain code style issues.
"""
from __future__ import unicode_literals
try:
# Python 2
from StringIO import StringIO # __IGNORE_EXCEPTION__
except ImportError:
# Pyt... | start_line, start = t[2] | 8,040 | lcc_e | python | null | 6fe5153eaa63a0b535fb9ad0eadbb35360017cadd331084b | |
#!/usr/bin/env python3
import re
import os.path
from fractions import gcd
import abc
import random
import time
import datetime
from collections import OrderedDict, defaultdict
from itertools import zip_longest
from math import log, sqrt
import logging
import socket
import gzip
import heapq
import patterns
import wudb
i... | with open(filename, "r") as inputfile: | 9,404 | lcc_e | python | null | 5000466fd0e978528df5dc9cc04c64e82de28800ef7404d1 | |
import sys,string,types,io,math,copy
from . import func
from .Var import var
from .Glitch import Glitch
if var.usePfAndNumpy:
import numpy
from .Model import Model
from .Node import Node,NodePart,NodeBranchPart
from . import NexusToken
class Tree(object):
"""A phylogenetic tree.
**Some instance variables**
... | for k in self.splitKeySet.intersection(tree2.splitKeySet): | 10,347 | lcc_e | python | null | 47372aee575d933a7ca74a66c0300cb8016920d00cc89938 | |
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | kwargs = dict(kwargs) | 11,922 | lcc_e | python | null | 17306687a40f0d095672642ef1a138abe1b6a336b902c82f | |
# orm/events.py
# Copyright (C) 2005-2018 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""ORM event interfaces.
"""
from .. import event, exc, util
from .base import _mapper_... | return fn(*arg, **kw) | 9,203 | lcc_e | python | null | b716a299c1c7658241057478b48c06af6a5c86f62fbb472a | |
#!/usr/bin/env python
#
# $Id: //projects/empy/em.py#146 $ $Date: 2003/10/27 $
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later ve... | if expression in ('1', 'True'): return True | 8,731 | lcc_e | python | null | 2666edb375a0bdb0c84b3a8c808c36f7ada53856d1793385 | |
## This file is part of Invenio.
## Copyright (C) 2007, 2008, 2009, 2010, 2011 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any ... | return (0, CFG_WEBACCESS_WARNING_MSGS[0]) | 11,744 | lcc_e | python | null | 93f6174b3813a43229cb32258038d980e42a151b11a8e2fb | |
# Copyright (C) 2018-2019 Chris Lalancette <clalancette@gmail.com>
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation;
# version 2.1 of the License.
# This library is distributed in the hope... | self.impl_id = UDFEntityID() | 10,644 | lcc_e | python | null | faf4c765c2effbe043cfaeea52bf775d59a0d58b6c264566 | |
import types
from functools import wraps
import numpy as np
import datetime
import collections
import warnings
import copy
from pandas.compat import(
zip, builtins, range, long, lzip,
OrderedDict, callable, filter, map
)
from pandas import compat
from pandas.core.base import PandasObject
from pandas.core.catego... | result = concat(values, keys=key_index, | 9,883 | lcc_e | python | null | 915da6ca76bf0fe2d6117c5742cf91309668d67a8ad2f4e7 | |
##############################################################################
# pymbar: A Python Library for MBAR
#
# Copyright 2010-2014 University of Virginia, Memorial Sloan-Kettering Cancer Center
# Portions of this software are Copyright (c) 2006-2007 The Regents of the University of California. All Rights Reser... | W_nk = self._computeWeights(recalc_denom=True) | 12,510 | lcc_e | python | null | 71bfe59ca4860459f952a18d9b6e5157e15660d9f44959f0 | |
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
FTP tests.
"""
import os
import errno
from StringIO import StringIO
import getpass
from zope.interface import implements
from zope.interface.verify import verifyClass
from twisted.trial import unittest, util
from twisted.python.randbytes import... | d = self.shell.stat(('ned',), ('size', 'directory')) | 8,415 | lcc_e | python | null | 84cc071c6bef98207a5ba6686d302d89c377a6f4b67e1ad2 | |
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
DESCRIPTION = """Beaker Wizard is a tool which can transform that
"crea... | elif name == "requires": | 9,136 | lcc_e | python | null | 056351f8553a75ef1f3616070faa31f09fdb5d4a1fc276d2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.