Search is not available for this dataset
id int64 0 10.8M | vector listlengths 1.54k 1.54k | ast_depth int64 3 164 | ast_data stringlengths 297 510k | full_path stringlengths 0 319 | code stringlengths 60 56.5k |
|---|---|---|---|---|---|
14,801 | [
0.02564639039337635,
-0.011102071963250637,
0.09581103920936584,
0.0023012466263026,
0.027428001165390015,
-0.022896992042660713,
0.04251670092344284,
0.010112288407981396,
-0.030265379697084427,
-0.010431217961013317,
-0.012779205106198788,
-0.019795669242739677,
0.06532570719718933,
-0.0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class DbPrimary:
def __init__(self):
self.config = Config()
connection = Connection(self.config.DB_HOST, int(self.config.DB_PORT))
self.db = connection[self.config.DB_NAME]
## check/create indexes
self.db.resource.ensure_index([("location", pymongo.GEO2D)])
def db(self... | |
14,802 | [
-0.0013259521219879389,
0.0396520234644413,
0.03428898751735687,
-0.014602973125874996,
-0.04467045143246651,
-0.02778441645205021,
-0.019395247101783752,
0.0030072862282395363,
-0.017672181129455566,
0.006849181838333607,
-0.0016517189797013998,
0.00013915766612626612,
0.012136836536228657,... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def __iter__(self):
for doc_name, doc in self.indexed_corpus:
if not is_invalid_doc(doc):
# The document is currently a list of sentences, where each is a list of word IDs
# Count up the occurrences of each ID in the document to get the bag of words for Gensim
... | |
14,803 | [
0.021532373502850533,
0.04516052082180977,
0.06188163161277771,
-0.03752109035849571,
0.002490138402208686,
-0.025059130042791367,
0.03763376548886299,
-0.014625337906181812,
0.025712650269269943,
0.012214072979986668,
0.02143096551299095,
0.004304221365600824,
-0.04723375663161278,
-0.025... | 7 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a... | def init_gensim_train_logging():
# Set up logging, so that we see Gensim's progress as it trains
lda_logger = getLogger('gensim.models.ldamodel')
hnd = logging.StreamHandler()
hnd.setLevel(logging.INFO)
fmt = logging.Formatter('%(asctime)s - Gensim - %(levelname)s - %(message)s')
hnd.setFormatte... | |
14,804 | [
0.0005145262693986297,
0.0009207740658894181,
0.03691563010215759,
-0.015592099167406559,
-0.007346653379499912,
0.01299341581761837,
-0.01897885464131832,
0.01456304732710123,
0.015448813326656818,
0.0062850359827280045,
0.013279987499117851,
0.05434439331293106,
-0.0024407431483268738,
0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def run_test(self):
self.check_tx_relay()
self.checkpermission(
# default permissions (no specific permissions)
["-whitelist=127.0.0.1"],
# Make sure the default values in the command line documentation match the ones here
["addr", "relay", "noban", "memp... | |
14,805 | [
-0.02600490115582943,
-0.026438316330313683,
0.04267863184213638,
-0.010032283142209053,
-0.012600904330611229,
-0.005172298289835453,
-0.0174513291567564,
0.02518906071782112,
0.016457023099064827,
0.0010652130004018545,
0.02600490115582943,
0.05690484493970871,
-0.007858834229409695,
0.0... | 14 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class P2PPermissionsTests(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 2
self.setup_clean_chain = True
def run_test(self):
self.check_tx_relay()
self.checkpermission(
# default permissions (no specific permissions)
["-whitelist=127.... | |
14,806 | [
-0.01802666485309601,
-0.05110989883542061,
0.0029170585330575705,
-0.0024654828011989594,
0.00417025713250041,
0.0019229856552556157,
-0.01516567450016737,
0.02625807374715805,
0.0342349037528038,
-0.0031276929657906294,
0.02785828895866871,
0.06798489391803741,
-0.02019665390253067,
0.00... | 13 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def check_tx_relay(self):
block_op_true = self.nodes[0].getblock(self.generatetoaddress(self.nodes[0], 100, ADDRESS_BCRT1_P2WSH_OP_TRUE)[0])
self.log.debug("Create a connection from a forcerelay peer that rebroadcasts raw txs")
# A test framework p2p connection is needed to send the raw transac... | |
14,807 | [
0.0014189769281074405,
0.04173889383673668,
0.03695211932063103,
0.02608121559023857,
-0.028139082714915276,
0.01064722053706646,
0.00027750435401685536,
0.023397043347358704,
0.00528726214542985,
0.05001509562134743,
0.0130629763007164,
0.012693902477622032,
-0.008141991682350636,
0.00777... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_comment": null}}, {"_type": "arg... | def checkpermission(self, args, expectedPermissions):
self.restart_node(1, args)
self.connect_nodes(0, 1)
peerinfo = self.nodes[1].getpeerinfo()[0]
assert_equal(len(expectedPermissions), len(peerinfo['permissions']))
for p in expectedPermissions:
if p not in peerinfo[... | |
14,808 | [
0.0012249904684722424,
-0.0029056027997285128,
0.03211728855967522,
-0.07435230165719986,
-0.013710812665522099,
0.0580601692199707,
0.030846087262034416,
-0.05017353221774101,
0.041975583881139755,
0.03315500169992447,
-0.003119631437584758,
-0.03938129544258118,
-0.04036712273955345,
0.0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestManager(unittest.TestCase):
def setUp(self):
self.spec = ArgumentSpec()
def test_create_monitor(self, *args):
set_module_args(dict(
name='foo',
parent='parent',
send='this is a send string',
receive='this is a receive string',
... | |
14,809 | [
-0.011819092556834221,
-0.013915839605033398,
0.023485908284783363,
-0.06330066919326782,
0.0016296643298119307,
0.011286120861768723,
-0.023075928911566734,
0.0009824840817600489,
0.06690847873687744,
0.021845994517207146,
-0.0278785340487957,
-0.056881580501794815,
0.007649026345461607,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestParameters(unittest.TestCase):
def test_module_parameters(self):
args = dict(
name='foo',
parent='parent',
send='this is a send string',
receive='this is a receive string',
ip='10.10.10.10',
port=80,
interval=20,
... | |
14,810 | [
0.02328157052397728,
0.030865810811519623,
0.011658814735710621,
-0.049808379262685776,
-0.002122925827279687,
0.021118080243468285,
0.044015031307935715,
-0.03305334225296974,
0.031082158908247948,
0.025000344961881638,
0.006183979567140341,
-0.04346213862299919,
-0.0028846552595496178,
0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_create_monitor(self, *args):
set_module_args(dict(
name='foo',
parent='parent',
send='this is a send string',
receive='this is a receive string',
ip='10.10.10.10',
port=80,
interval=20,
timeout=30,
... | |
14,811 | [
0.021455248817801476,
0.007108976133167744,
0.019838405773043633,
-0.04421937093138695,
-0.002242407063022256,
0.034826282411813736,
0.032696157693862915,
-0.025189386680722237,
0.025189386680722237,
0.012062161229550838,
0.024560613557696342,
-0.03480061888694763,
-0.00804571807384491,
-0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_create_monitor_idempotent(self, *args):
set_module_args(dict(
name='asdf',
parent='http',
send='GET /\\r\\n',
receive='hello world',
ip='1.1.1.1',
port=389,
interval=5,
timeout=16,
time_until_up=... | |
14,812 | [
0.0021601757034659386,
-0.028409328311681747,
0.02376052923500538,
-0.02668006345629692,
-0.007798528764396906,
0.057402562350034714,
0.023446116596460342,
-0.03541621193289757,
0.005547117907553911,
0.031104283407330513,
0.0026388110127300024,
-0.01820218190550804,
-0.029711889103055,
0.0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_update_port(self, *args):
set_module_args(dict(
name='asdf',
port=800,
partition='Common',
server='localhost',
password='password',
user='admin'
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.js... | |
14,813 | [
-0.025206660851836205,
0.010480188764631748,
0.036274101585149765,
-0.05050366744399071,
-0.014986217953264713,
0.0692053809762001,
0.06590773910284042,
-0.002998373005539179,
0.03286352381110191,
0.054298218339681625,
-0.028526892885565758,
-0.05312371626496315,
-0.03720015287399292,
-0.0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_update_interval(self, *args):
set_module_args(dict(
name='foo',
interval=10,
partition='Common',
server='localhost',
password='password',
user='admin'
))
current = Parameters(params=load_fixture('load_ltm_monitor_h... | |
14,814 | [
-0.009738551452755928,
0.0015368927270174026,
0.03354716673493385,
-0.05200163275003433,
-0.024402214214205742,
0.07184312492609024,
0.05943043902516365,
-0.01807832531630993,
-0.0014986908063292503,
0.051954615861177444,
-0.014646030031144619,
-0.05054408311843872,
-0.0483812652528286,
-0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_update_interval_larger_than_existing_timeout(self, *args):
set_module_args(dict(
name='asdf',
interval=30,
partition='Common',
server='localhost',
password='password',
user='admin'
))
current = Parameters(params=lo... | |
14,815 | [
-0.016665052622556686,
-0.0023569976910948753,
0.035917267203330994,
-0.04857338219881058,
-0.023715650662779808,
0.07206761091947556,
0.05943480134010315,
-0.014392545446753502,
0.0024968443904072046,
0.04547344893217087,
-0.009060894139111042,
-0.05523940175771713,
-0.053561244159936905,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_update_interval_larger_than_new_timeout(self, *args):
set_module_args(dict(
name='asdf',
interval=10,
timeout=5,
partition='Common',
server='localhost',
password='password',
user='admin'
))
current = Pa... | |
14,816 | [
0.021267948672175407,
-0.03246283531188965,
-0.007099054288119078,
-0.0372072234749794,
-0.005217658821493387,
0.04791131243109703,
0.03533751517534256,
-0.00857729371637106,
-0.002810407429933548,
0.011153986677527428,
-0.019994208589196205,
-0.038773104548454285,
-0.01602107472717762,
0.... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_update_receive(self, *args):
set_module_args(dict(
name='asdf',
receive='this is another receive string',
partition='Common',
server='localhost',
password='password',
user='admin'
))
current = Parameters(params=loa... | |
14,817 | [
0.020573904737830162,
-0.0270003080368042,
-0.007120830938220024,
-0.037828680127859116,
0.004681505262851715,
0.04554978013038635,
0.031825996935367584,
-0.02860102429986,
0.004278383683413267,
0.0004248223267495632,
-0.028177306056022644,
-0.03149643540382385,
-0.026953227818012238,
0.00... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_update_send(self, *args):
set_module_args(dict(
name='asdf',
send='this is another send string',
partition='Common',
server='localhost',
password='password',
user='admin'
))
current = Parameters(params=load_fixture... | |
14,818 | [
-0.0076321884989738464,
-0.014621182344853878,
-0.0008133248193189502,
-0.050858285278081894,
0.005205852910876274,
0.050582628697156906,
0.043461550027132034,
-0.021213922649621964,
0.017228417098522186,
0.009021947160363197,
-0.013713818974792957,
-0.02820865996181965,
-0.0507204569876194,... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_update_time_until_up(self, *args):
set_module_args(dict(
name='asdf',
time_until_up=300,
partition='Common',
server='localhost',
password='password',
user='admin'
))
current = Parameters(params=load_fixture('load_l... | |
14,819 | [
-0.01300196722149849,
-0.018104709684848785,
0.02339685708284378,
-0.04674914851784706,
-0.01188783161342144,
0.06368401646614075,
0.053166572004556656,
-0.017982155084609985,
0.007130470592528582,
0.018929170444607735,
0.007626261096447706,
-0.04472142085433006,
-0.053077440708875656,
-0.... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen... | def test_update_timeout(self, *args):
set_module_args(dict(
name='asdf',
timeout=300,
partition='Common',
server='localhost',
password='password',
user='admin'
))
current = Parameters(params=load_fixture('load_ltm_monitor_h... | |
14,820 | [
0.0053862472996115685,
0.021744154393672943,
0.012852014042437077,
0.001581606105901301,
-0.005272020120173693,
0.0019682208076119423,
0.028140872716903687,
-0.01999852992594242,
0.020549163222312927,
0.02985135093331337,
0.008628539741039276,
-0.01821775920689106,
0.024860505014657974,
0.... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "actual_proto", "annotation": null, "type_comment": null}}, {"_typ... | def _AssertProtoEqual(self, actual_proto, expected_class, expected_ascii):
expected_proto = expected_class()
text_format.Merge(expected_ascii, expected_proto)
self.assertEqual(
actual_proto, expected_proto,
'Not equal,\nActual:\n%s\nExpected:\n%s\n'
% (str(actual_proto), str(expecte... | |
14,821 | [
0.025354081764817238,
-0.006213578395545483,
0.04900164157152176,
-0.04380892962217331,
0.04802648350596428,
0.0015922485617920756,
0.011640937067568302,
0.014188534580171108,
-0.0015937722055241466,
-0.0009088768274523318,
0.004312022589147091,
-0.02747504971921444,
0.008758128620684147,
... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class MakeDescriptorTest(basetest.TestCase):
def testMakeDescriptorWithNestedFields(self):
file_descriptor_proto = descriptor_pb2.FileDescriptorProto()
file_descriptor_proto.name = 'Foo2'
message_type = file_descriptor_proto.message_type.add()
message_type.name = file_descriptor_proto.name
nested... | |
14,822 | [
0.03722112253308296,
-0.008468453772366047,
0.03238874301314354,
-0.02393796667456627,
0.02241753414273262,
-0.0031174751929938793,
0.027862804010510445,
0.009081341326236725,
0.020814599469304085,
-0.0020567085593938828,
0.02384367771446705,
-0.011544677428901196,
0.03311949223279953,
-0.... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def testMakeDescriptorWithUnsignedIntField(self):
file_descriptor_proto = descriptor_pb2.FileDescriptorProto()
file_descriptor_proto.name = 'Foo'
message_type = file_descriptor_proto.message_type.add()
message_type.name = file_descriptor_proto.name
enum_type = message_type.enum_type.add()
enum_t... | |
14,823 | [
0.012746760621666908,
0.0008393916068598628,
0.02981039322912693,
-0.03892378881573677,
0.04384022578597069,
-0.017423370853066444,
0.0411541722714901,
0.014437535777688026,
0.0036063860170543194,
-0.01503710076212883,
0.00562692154198885,
-0.019461894407868385,
0.03033800981938839,
-0.022... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def testMakeDescriptorWithNestedFields(self):
file_descriptor_proto = descriptor_pb2.FileDescriptorProto()
file_descriptor_proto.name = 'Foo2'
message_type = file_descriptor_proto.message_type.add()
message_type.name = file_descriptor_proto.name
nested_type = message_type.nested_type.add()
neste... | |
14,824 | [
0.02240978367626667,
0.008260911330580711,
0.042256273329257965,
-0.013222533278167248,
-0.022511299699544907,
-0.018844014033675194,
0.018514085561037064,
-0.01831105165183544,
-0.009948624297976494,
0.012962397187948227,
0.030531108379364014,
-0.050326839089393616,
0.03766264766454697,
-... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}, {"_type"... | def experiment_1_0(root, experiment, file, file_ucsc_browser_composite):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
assert root.get_by_uuid(
file['uuid']).properties['dataset'] == str(item.uuid)
assert root.get_by_uuid(
file_ucsc_browser_composite['uu... | |
14,825 | [
0.0359254851937294,
0.01870846375823021,
0.0240855123847723,
-0.03200063109397888,
-0.05683186650276184,
-0.015961067751049995,
-0.008157151751220226,
-0.07174630463123322,
-0.017203936353325844,
-0.0002530712226871401,
0.03558532893657684,
-0.02475273609161377,
0.03660579025745392,
0.0031... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "testapp", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}, {"_ty... | def experiment_no_read_length(
testapp,
experiment,
bam_file,
file_fastq_no_read_length,
replicate_1_1,
base_library,
analysis_step_bam,
analysis_step_version_bam,
analysis_step_run_bam,
encode_lab,
):
testapp.patch_json(replicate_1_1['@id'], {'experiment': experiment['@id'],... | |
14,826 | [
0.025531115010380745,
0.013109895400702953,
0.05063650384545326,
0.003668767400085926,
-0.016528235748410225,
-0.006479819305241108,
0.00956008117645979,
-0.0014078738167881966,
-0.0131599809974432,
-0.012659125961363316,
0.01625276543200016,
-0.03493467718362808,
0.030201593413949013,
-0.... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_7(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '7',
'dbxrefs': ['UCSC-ENCODE-cv:K562', 'UCSC-ENCODE-cv:K562'],
'aliases': ['testing:123', 'testing:123']
})
return proper... | |
14,827 | [
0.028054136782884598,
0.0011986916651949286,
0.046879250556230545,
0.006888994947075844,
-0.01738307625055313,
-0.014774304814636707,
0.001912335166707635,
-0.0041786241345107555,
-0.0059582265093922615,
-0.012381837703287601,
0.021079931408166885,
-0.04302508383989334,
0.021394556388258934,... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_10(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '10',
'status': 'in progress',
'aliases': [
'andrew-fire:my_experiment',
'j-michael-cherry:Lib:XZ:2010010... | |
14,828 | [
0.04930870234966278,
0.0038433598820120096,
0.04775158315896988,
-0.010003858245909214,
-0.016411516815423965,
-0.0024113685358315706,
0.009299447759985924,
-0.015595884993672371,
-0.0014273570850491524,
-0.001183285261504352,
0.021441252902150154,
-0.04157254844903946,
0.014730820432305336,... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_13(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '13',
'status': 'proposed',
})
return properties | |
14,829 | [
0.04034170135855675,
0.0035155434161424637,
0.03824031725525856,
0.004691463429480791,
-0.028661910444498062,
-0.018875811249017715,
0.0033689350821077824,
-0.017189815640449524,
-0.012119614519178867,
-0.007452585268765688,
0.030005820095539093,
-0.0438602976500988,
0.030054688453674316,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_14(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '14',
'biosample_type': 'in vitro sample',
})
return properties | |
14,830 | [
0.03898479416966438,
0.017673274502158165,
0.04904049634933472,
0.0029560730326920748,
-0.02401493676006794,
-0.011577952653169632,
0.0048194099217653275,
-0.0035750798415392637,
-0.005492106080055237,
-0.019795583561062813,
0.011748495511710644,
-0.04029860347509384,
0.021273620426654816,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_16(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '16',
'biosample_type': 'immortalized cell line',
'status': 'ready for review'
})
return properties | |
14,831 | [
0.0452515184879303,
0.005780791863799095,
0.036349162459373474,
0.010292552411556244,
-0.02386290580034256,
-0.019118383526802063,
0.0031119983177632093,
-0.016962941735982895,
0.0012076530838385224,
-0.015623762272298336,
0.019552022218704224,
-0.043108828365802765,
0.02555919997394085,
-... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_15(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '15',
'biosample_type': 'immortalized cell line'
})
return properties | |
14,832 | [
0.028968416154384613,
0.011690010316669941,
0.036622364073991776,
0.004780549090355635,
-0.01424343790858984,
-0.019907865673303604,
-0.001842206227593124,
-0.006557810585945845,
0.005040327087044716,
-0.009237959049642086,
0.020516127347946167,
-0.0413617268204689,
0.029348578304052353,
-... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_17(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '17',
'biosample_type': 'immortalized cell line',
'status': 'started'
})
return properties | |
14,833 | [
0.025942586362361908,
0.00011692137195495889,
0.03536513075232506,
-0.000041849820263450965,
-0.007501323241740465,
-0.021781982854008675,
0.010273019783198833,
0.008308970369398594,
0.005736126098781824,
-0.00855982955545187,
0.02883053570985794,
-0.01884508691728115,
0.021255789324641228,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_21(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '21',
'biosample_type': 'induced pluripotent stem cell line',
'status': 'started'
})
return properties | |
14,834 | [
0.0366634801030159,
0.004057398997247219,
0.04024104028940201,
-0.003313161665573716,
-0.013311401940882206,
0.00577110331505537,
0.014989200048148632,
0.00037477081059478223,
-0.0022669858299195766,
-0.011059105396270752,
0.025617429986596107,
-0.04110278934240341,
0.025382408872246742,
-... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_22(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '22',
'biosample_type': 'primary cell',
'biosample_term_id': 'CL:0000765',
'biosample_term_name': 'erythroblast',
... | |
14,835 | [
0.03560836613178253,
-0.0003175105666741729,
0.028386034071445465,
-0.006662413477897644,
-0.025554979220032692,
-0.01967897079885006,
-0.007159420754760504,
-0.018559131771326065,
0.00037550783599726856,
-0.023780852556228638,
0.03485341742634773,
-0.05178941413760185,
0.031481318175792694,... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_25(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '25',
'assay_term_name': 'ISO-seq'
})
return properties | |
14,836 | [
0.032975368201732635,
-0.011091367341578007,
0.04970458149909973,
-0.004846514668315649,
-0.017364822328090668,
-0.019907256588339806,
-0.00296988058835268,
-0.015775801613926888,
-0.006947200279682875,
-0.019373346120119095,
0.024915851652622223,
-0.04207728058099747,
0.0397128164768219,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_26(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '26',
'assay_term_name': 'single-nuclei ATAC-seq'
})
return properties | |
14,837 | [
0.02673063986003399,
-0.00118543510325253,
0.03360984846949577,
-0.005116411484777927,
-0.02008483186364174,
-0.011928056366741657,
0.00007855235162423924,
-0.018303608521819115,
-0.0029712654650211334,
-0.008949113078415394,
0.024163220077753067,
-0.03692660853266716,
0.0376882366836071,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_27(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '27',
'experiment_classification': ['functional genomics assay']
})
return pro... | |
14,838 | [
-0.0011149023193866014,
0.02348540537059307,
0.053054079413414,
-0.023111434653401375,
-0.02125404216349125,
-0.022712532430887222,
-0.0014335571322590113,
-0.03737221285700798,
-0.01588132046163082,
-0.039840422570705414,
0.030765382573008537,
-0.00026625985628925264,
0.028297170996665955,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "testapp", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "base_experiment", "annotation": null, "type_comment": null}}, ... | def experiment_with_RNA_library(
testapp,
base_experiment,
base_replicate,
base_library,
):
testapp.patch_json(base_library['@id'], {'nucleic_acid_term_name': 'RNA'})
testapp.patch_json(base_replicate['@id'], {'library': base_library['@id']})
return testapp.get(base_experiment['@id'] + '@@in... | |
14,839 | [
0.004298311658203602,
0.007804740685969591,
0.03513810783624649,
-0.027232706546783447,
-0.0690414160490036,
-0.0140525596216321,
-0.003352079074829817,
-0.03951359540224075,
0.0017901243409141898,
-0.008355031721293926,
0.015730276703834534,
0.011603092774748802,
0.03366171941161156,
-0.0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "testapp", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "base_experiment", "annotation": null, "type_comment": null}}, ... | def micro_rna_experiment(
testapp,
base_experiment,
replicate_1_1,
replicate_2_1,
library_1,
library_2,
biosample_1,
biosample_2,
mouse_donor_1_6,
file_fastq_3,
file_fastq_4,
file_bam_1_1,
file_bam_2_1,
file_tsv_1_1,
file_tsv_1_2,
spearman_correlation_qual... | |
14,840 | [
0.030177265405654907,
0.014445221051573753,
0.03792343661189079,
-0.004768815357238054,
-0.03300322964787483,
-0.009562862105667591,
0.005084213335067034,
-0.007014447823166847,
0.0016589926090091467,
0.011556176468729973,
0.02636726014316082,
-0.04193529859185219,
0.03429005295038223,
-0.... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_v28(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '28',
'internal_status': 'pipeline error',
'pipeline_error_detail': 'The pipeline didn\'t work for reasons',
... | |
14,841 | [
0.025616532191634178,
0.00714894151315093,
0.048449188470840454,
-0.005128190387040377,
-0.015128161758184433,
-0.029352786019444466,
0.0026938263326883316,
-0.010109861381351948,
0.007722810842096806,
-0.006428553257137537,
0.020622652024030685,
-0.03206339851021767,
0.027887588366866112,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_29(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '29',
'assay_term_name': 'single cell isolation followed by RNA-seq'
})
return properties | |
14,842 | [
0.04039342701435089,
0.011655429378151894,
0.04902516305446625,
-0.017909562215209007,
-0.013658301904797554,
-0.012514726258814335,
0.006964829750359058,
-0.004496773239225149,
0.0006198407500050962,
0.0027959460858255625,
0.009297207929193974,
-0.045329540967941284,
0.020739426836371422,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_30(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '30',
'analyses': [
{
'files': ['/files/ENCFF881NAX/', '/files/ENCFF674HJF/']
... | |
14,843 | [
0.02747575007379055,
0.0050345491617918015,
0.05588873475790024,
-0.010463722981512547,
-0.020828789100050926,
-0.021013770252466202,
0.000018582337361294776,
-0.009076369926333427,
-0.0071155778132379055,
-0.010408228263258934,
0.029596857726573944,
-0.03100270964205265,
0.02710578963160515... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_31(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '31',
'assay_term_name': 'single-nucleus RNA-seq'
})
return properties | |
14,844 | [
0.06129030883312225,
0.022552600130438805,
0.05515113100409508,
-0.0305690485984087,
-0.011999302543699741,
-0.01736474223434925,
0.003554761642590165,
-0.024810397997498512,
0.0014785081148147583,
-0.006034533027559519,
0.024594765156507492,
-0.032471686601638794,
0.024391816928982735,
-0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}, {"_type"... | def experiment_33(root, experiment, analysis_released):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '33',
'analysis_objects': [analysis_released['uuid']]
})
return properties | |
14,845 | [
0.040547680109739304,
-0.018268734216690063,
0.06515353918075562,
-0.009976016357541084,
-0.01139939296990633,
-0.022019023075699806,
0.00042121129808947444,
-0.017241427674889565,
0.016622567549347878,
-0.030868714675307274,
0.006299990229308605,
-0.04235474765300751,
0.06455942988395691,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def single_cell_ATAC_experiment(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '32',
'assay_term_name': 'single-cell ATAC-seq'
})
return properties | |
14,846 | [
0.03276821970939636,
-0.001988205825909972,
0.034914836287498474,
0.0073515125550329685,
-0.015349596738815308,
-0.021789444610476494,
0.003004938829690218,
-0.008651120588183403,
0.004994761198759079,
-0.02340587228536606,
0.02948363870382309,
-0.05206190049648285,
0.030802644789218903,
-... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_35(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '35',
'assay_term_name': 'Capture Hi-C'
})
return properties | |
14,847 | [
0.02831915393471718,
0.009366542100906372,
0.051808685064315796,
0.00521074840798974,
-0.017074424773454666,
-0.007012710440903902,
0.0037807654589414597,
-0.01700124889612198,
-0.00917140580713749,
-0.005088788457214832,
0.023184629157185555,
-0.031856000423431396,
0.03707589581608772,
-0... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "experiment", "annotation": null, "type_comment": null}}], "kwarg"... | def experiment_34(root, experiment):
item = root.get_by_uuid(experiment['uuid'])
properties = item.properties.copy()
properties.update({
'schema_version': '34',
'internal_tags': ['RegulomeDB']
})
return properties | |
14,848 | [
0.0001164416316896677,
0.020650038495659828,
0.058176103979349136,
-0.0020095203071832657,
-0.020999275147914886,
-0.011322034522891045,
-0.032219916582107544,
0.014803136698901653,
0.03307611122727394,
0.028367046266794205,
0.004630204755812883,
-0.010623560287058353,
0.046324580907821655,
... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestUdhr(unittest.TestCase):
def test_words(self):
for name in udhr.fileids():
try:
words = list(udhr.words(name))
except AssertionError:
print(name)
raise
self.assertTrue(words)
def test_raw_unicode(self):
... | |
14,849 | [
-0.013323342427611351,
0.006139425560832024,
0.06490423530340195,
-0.009940889663994312,
-0.022456573322415352,
-0.008908542804419994,
-0.030071645975112915,
0.03322941064834595,
0.021618550643324852,
0.05878302454948425,
0.019711745902895927,
-0.0020920198876410723,
0.03786889836192131,
0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def test_words(self):
for name in udhr.fileids():
try:
words = list(udhr.words(name))
except AssertionError:
print(name)
raise
self.assertTrue(words) | |
14,850 | [
0.0024575816933065653,
-0.002944177482277155,
0.05611706152558327,
-0.020163651555776596,
-0.02683383971452713,
0.006035973783582449,
0.025215499103069305,
-0.00013548821152653545,
-0.006161723285913467,
0.03492554649710655,
0.010289586149156094,
-0.000029771525078103878,
0.00670845992863178... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestIndian(unittest.TestCase):
def test_words(self):
words = indian.words()[:3]
self.assertEqual(words, ['মহিষের', 'সন্তান', ':'])
def test_tagged_words(self):
tagged_words = indian.tagged_words()[:3]
self.assertEqual(tagged_words, [('মহিষের', 'NN'), ('সন্তান', 'NN'), (':... | |
14,851 | [
0.009398078545928001,
-0.006483562756329775,
0.05873490124940872,
-0.03556697070598602,
-0.00733568798750639,
0.0364561453461647,
-0.03233136609196663,
0.025440264493227005,
0.012893027625977993,
0.011448118835687637,
0.014276187866926193,
-0.06446513533592224,
0.009546274319291115,
0.0262... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestCess(unittest.TestCase):
def test_catalan(self):
words = cess_cat.words()[:15]
txt = "El Tribunal_Suprem -Fpa- TS -Fpt- ha confirmat la condemna a quatre anys d' inhabilitació especial"
self.assertEqual(words, txt.split())
def test_esp(self):
words = cess_esp.words()[:... | |
14,852 | [
-0.00381137034855783,
-0.03517292067408562,
0.022058779373764992,
-0.025948764756321907,
0.031026707962155342,
0.007395630702376366,
0.0007053510053083301,
0.035755254328250885,
0.010656695812940598,
-0.002878181403502822,
0.00009854168456513435,
-0.013545067980885506,
0.0014587445184588432,... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestSinicaTreebank(unittest.TestCase):
def test_sents(self):
first_3_sents = sinica_treebank.sents()[:3]
self.assertEqual(
first_3_sents,
[['一'], ['友情'], ['嘉珍', '和', '我', '住在', '同一條', '巷子']]
)
def test_parsed_sents(self):
parsed_sents = sinica_tree... | |
14,853 | [
0.003829660126939416,
-0.000287771166767925,
0.001649315352551639,
-0.010539374314248562,
0.028688089922070503,
0.01691797748208046,
-0.016530636698007584,
0.02146608941257,
0.009789685718715191,
-0.005816335324198008,
0.014244087040424347,
-0.013381944969296455,
-0.013394439592957497,
0.0... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def test_parsed_sents(self):
parsed_sents = sinica_treebank.parsed_sents()[25]
self.assertEqual(parsed_sents,
Tree('S', [
Tree('NP', [
Tree('Nba', ['嘉珍'])
]),
Tree('V‧地', [
Tree('VA11', ['不停']),
... | |
14,854 | [
-0.0007510630530305207,
-0.02216668240725994,
0.02977576106786728,
-0.046619899570941925,
0.02505025640130043,
0.057264987379312515,
-0.0006117273587733507,
0.016208989545702934,
0.03770241513848305,
-0.01116591040045023,
-0.006745276972651482,
-0.022319117560982704,
0.012531479820609093,
... | 21 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def test_parsed_sents(self):
parsed_sents = conll2007.parsed_sents('esp.train')[0]
self.assertEqual(parsed_sents.tree(),
Tree('fortaleció', [
Tree('aumento', [
'El',
Tree('del', [
Tree('índice', [
... | |
14,855 | [
-0.007892842404544353,
-0.012934153899550438,
0.061650797724723816,
-0.04552822187542915,
0.04158180207014084,
0.03602312505245209,
0.02757682092487812,
0.04600949212908745,
-0.01952756568789482,
0.004286318551748991,
-0.02365446276962757,
-0.019455375149846077,
0.029140951111912727,
0.028... | 22 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestCoNLL2007(unittest.TestCase):
# Reading the CoNLL 2007 Dependency Treebanks
def test_sents(self):
sents = conll2007.sents('esp.train')[0]
self.assertEqual(
sents[:6],
['El', 'aumento', 'del', 'índice', 'de', 'desempleo']
)
def test_parsed_sents(sel... | |
14,856 | [
-0.004491165746003389,
-0.02562587708234787,
0.06169426441192627,
-0.034260544925928116,
-0.02399502322077751,
0.017762385308742523,
-0.003827446373179555,
0.027509573847055435,
0.008767412044107914,
0.03274347260594368,
0.014816737733781338,
0.0006016929401084781,
0.05117589980363846,
0.0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestPTB(unittest.TestCase):
def test_fileids(self):
self.assertEqual(
ptb.fileids()[:4],
['BROWN/CF/CF01.MRG', 'BROWN/CF/CF02.MRG', 'BROWN/CF/CF03.MRG', 'BROWN/CF/CF04.MRG']
)
def test_words(self):
self.assertEqual(
ptb.words('WSJ/00/WSJ_0003.MR... | |
14,857 | [
0.007641044910997152,
0.023377958685159683,
-0.004905602894723415,
-0.012527154758572578,
-0.006575456820428371,
0.009297903627157211,
-0.0030050878413021564,
0.002300110412761569,
-0.03734755516052246,
0.010064607486128807,
0.011175677180290222,
-0.0012840658891946077,
0.02203947678208351,
... | 13 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "plugIn", "annotation":... | class QadDIMSTYLEDialog(QDialog, QObject, qad_dimstyle_ui.Ui_DimStyle_Dialog):
def __init__(self, plugIn):
self.plugIn = plugIn
self.iface = self.plugIn.iface.mainWindow()
QDialog.__init__(self)
# non passo il parent perchè altrimenti il font e la sua dimensione verrebbero ereditati da... | |
14,858 | [
0.005391997750848532,
-0.01966017670929432,
-0.03360769525170326,
0.034814897924661636,
-0.0062893168069422245,
-0.013516372069716454,
0.02554529719054699,
-0.001696283114142716,
-0.0365825891494751,
-0.012341503985226154,
-0.02783036045730114,
-0.006413270719349384,
0.05057321861386299,
0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "plugIn", "annotation": null, "type_comment": null}}], "kwarg": nu... | def __init__(self, plugIn):
self.plugIn = plugIn
self.iface = self.plugIn.iface.mainWindow()
QDialog.__init__(self)
# non passo il parent perchè altrimenti il font e la sua dimensione verrebbero ereditati dalla dialog scombinando tutto
#QDialog.__init__(self, self.iface)
... | |
14,859 | [
0.007910714484751225,
0.0005127699696458876,
0.01124008372426033,
-0.01801515556871891,
0.004969125147908926,
0.007306885439902544,
-0.008774910122156143,
-0.017283912748098373,
-0.0355871357023716,
0.00017051938630174845,
-0.012032262980937958,
0.005733605939894915,
-0.0005477393860928714,
... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def init(self):
# Inizializzazione dello stile corrente
currDimStyleName = QadVariables.get(QadMsg.translate("Environment variables", "DIMSTYLE"))
self.currentDimStyle.setText("" if currDimStyleName is None else currDimStyleName)
# Inizializzazione della lista degli stili
mode... | |
14,860 | [
-0.006740788463503122,
-0.013446036726236343,
-0.039615459740161896,
-0.023728996515274048,
-0.003385202493518591,
0.003856109920889139,
0.005662736017256975,
-0.008902816101908684,
-0.03343146666884422,
-0.015922002494335175,
-0.02409624494612217,
-0.016514338552951813,
0.02847953513264656,... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "current", "annotation": null, "type_comment": null}}, {"_type": "... | def dimStyleListCurrentChanged(self, current, previous):
# leggo l'elemento selezionato
index = current.indexes()[0]
item = self.dimStyleList.model().itemFromIndex(index)
self.selectedDimStyle = item.data()
self.selectedStyle.setText(self.selectedDimStyle.name)
self.description... | |
14,861 | [
0.014643141999840736,
0.0013552343007177114,
-0.03375965729355812,
0.010346056893467903,
0.007002044003456831,
-0.03673456236720085,
-0.00922220479696989,
-0.011392783373594284,
-0.01879698969423771,
-0.006429099477827549,
-0.045174479484558105,
-0.010974092409014702,
0.009762094356119633,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "DimStyle_Dialog", "annotation": null, "type_comment": null}}], "k... | def retranslateUi(self, DimStyle_Dialog):
qad_dimstyle_ui.Ui_DimStyle_Dialog.retranslateUi(self, self)
# "none" viene tradotto in italiano in "nessuno" nel contesto "currentDimStyle"
# "none" viene tradotto in italiano in "nessuna" nel contesto "descriptionSelectedStyle"
# "none" viene trado... | |
14,862 | [
0.027844037860631943,
0.02306571789085865,
-0.01815761625766754,
-0.008949026465415955,
-0.013485481031239033,
0.009810304269194603,
0.01365065760910511,
-0.04525836184620857,
-0.04358299821615219,
0.030085720121860504,
-0.01836998574435711,
0.007161580957472324,
0.01714296080172062,
0.048... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "newName", "annotation": null, "type_comment": null}}], "kwarg": n... | def renSelectedDimStyle(self, newName):
if self.selectedDimStyle is None:
return
if QadDimStyles.renameDimStyle(self.selectedDimStyle.name, newName) == False:
QMessageBox.critical(self, QadMsg.translate("QAD", "QAD"), \
QadMsg.translate("DimStyle_Dialog",... | |
14,863 | [
0.026448719203472137,
0.03943309560418129,
-0.015876809135079384,
-0.02231847494840622,
-0.025400368496775627,
0.02577929012477398,
0.023404715582728386,
-0.017051465809345245,
-0.034608159214258194,
0.03165257349610329,
0.0011762353824451566,
-0.0035713347606360912,
0.0003479367296677083,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def updDescrSelectedDimStyle(self):
if self.selectedDimStyle is None:
return
Title = QadMsg.translate("DimStyle_Dialog", "QAD - Editing dimension style description: ") + self.selectedDimStyle.name
inputDlg = QInputDialog(self)
inputDlg.setWindowTitle(Title)
... | |
14,864 | [
0.04275563359260559,
0.026428481563925743,
-0.005497599020600319,
-0.00854487530887127,
-0.0107139116153121,
0.03172918036580086,
-0.01662719063460827,
-0.029303859919309616,
-0.03530465066432953,
0.04148046299815178,
0.01860245130956173,
-0.016339652240276337,
0.016002107411623,
0.0474562... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def delSelectedDimStyle(self):
if self.selectedDimStyle is None:
return
msg = QadMsg.translate("DimStyle_Dialog", "Remove dimension style {0} ?").format(self.selectedDimStyle.name)
res = QMessageBox.question(self, QadMsg.translate("QAD", "QAD"), msg, \
QM... | |
14,865 | [
0.02674861252307892,
0.010707101784646511,
-0.01994660496711731,
0.001480362145230174,
-0.024566354230046272,
0.022001244127750397,
0.05957181379199028,
-0.006540392991155386,
-0.03846389427781105,
0.006629725452512503,
0.007810186594724655,
-0.012385271489620209,
0.04211375117301941,
0.02... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def createNewStyle(self):
self.previewDim.eraseDim()
Form = QadDIMSTYLE_NEW_Dialog(self.plugIn, self, self.selectedDimStyle.name if self.selectedDimStyle is not None else None)
if Form.exec_() == QDialog.Accepted:
Form.dimStyle.path = ""
QadDimStyles.addDimStyle(Form.dimStyle,... | |
14,866 | [
0.022151192650198936,
0.013775024563074112,
-0.006907361093908548,
-0.012054800055921078,
-0.03514549881219864,
0.024308087304234505,
0.032419607043266296,
-0.008627585135400295,
-0.0243610180914402,
0.0019269816111773252,
-0.00026278902078047395,
-0.02237614430487156,
0.027033980935811996,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def temporaryModStyle(self):
if self.selectedDimStyle is None:
return
self.previewDim.eraseDim()
Form = QadDIMSTYLE_DETAILS_Dialog(self.plugIn, self, self.selectedDimStyle)
title = QadMsg.translate("DimStyle_Dialog", "Set temporary overrides to dimension style: ") + self.selected... | |
14,867 | [
0.034375254064798355,
0.022500814869999886,
-0.023534923791885376,
0.003762022126466036,
-0.020979365333914757,
0.031023308634757996,
0.027766456827521324,
0.0071733975782990456,
-0.028027955442667007,
-0.00958632118999958,
0.01696178689599037,
-0.017282716929912567,
0.028859999030828476,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def modStyle(self):
if self.selectedDimStyle is None:
return
self.previewDim.eraseDim()
Form = QadDIMSTYLE_DETAILS_Dialog(self.plugIn, self, self.selectedDimStyle)
title = QadMsg.translate("DimStyle_Dialog", "Modify dimension style: ") + self.selectedDimStyle.name
Fo... | |
14,868 | [
0.026898514479398727,
0.019975777715444565,
-0.0154743492603302,
-0.02511555142700672,
-0.02337661385536194,
0.01056019775569439,
0.026128098368644714,
0.02485140971839428,
-0.046489082276821136,
0.005789123475551605,
0.004080451559275389,
-0.013955529779195786,
0.035659242421388626,
0.029... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def startEditingItem(self):
if self.selectedDimStyle is None:
return
items = self.dimStyleList.model().findItems(self.selectedDimStyle.name)
if len(items) > 0:
item = items[0]
if item is not None:
index = self.dimStyleList.model().indexFromItem(item)
... | |
14,869 | [
-0.021631142124533653,
0.027302872389554977,
-0.01854974776506424,
-0.026541730388998985,
-0.0119020389392972,
0.015542012639343739,
0.01881982944905758,
-0.0010120415827259421,
-0.02408643625676632,
0.02493351325392723,
0.020452599972486496,
-0.006795026827603579,
0.024147817865014076,
0.... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "pos", "annotation": null, "type_comment": null}}], "kwarg": null,... | def displayPopupMenu(self, pos):
if self.selectedDimStyle is None:
return
popupMenu = QMenu(self)
action = QAction(QadMsg.translate("DimStyle_Dialog", "Set current"), popupMenu)
popupMenu.addAction(action)
action.triggered.connect(self.setCurrentStyle)
actio... | |
14,870 | [
0.06472106277942657,
0.009157026186585426,
0.04573378339409828,
-0.0009114235872402787,
0.02412205934524536,
0.003058047266677022,
0.05750954523682594,
-0.02017398364841938,
0.0212237611413002,
-0.02546851336956024,
-0.00014049331366550177,
-0.029690444469451904,
0.025902116671204567,
-0.0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "orm", "annotation": null, "type_comment": null}}], "kwarg": null,... | def forwards(self, orm):
# Adding field 'SambaShare.shadow_copy'
db.add_column(u'storageadmin_sambashare', 'shadow_copy',
self.gf('django.db.models.fields.BooleanField')(default=False),
keep_default=False)
# Adding field 'SambaShare.snapshot_prefix'
... | |
14,871 | [
-0.010188167914748192,
-0.00874154083430767,
-0.03603697568178177,
-0.016916785389184952,
0.026358474045991898,
-0.008587096817791462,
-0.011470054276287556,
-0.003976937849074602,
0.026976250112056732,
-0.016504934057593346,
-0.007155913859605789,
0.007330950349569321,
0.021519223228096962,... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"args": [], "func": {"_type": "Name", "_fields": {"id": "UserListingField", "ctx": {"_type": "Load", "_fields": {}}}}, "keywords": [{"_type": "keyword", "_fields": {... | class CommentSerializer(serializers.HyperlinkedModelSerializer):
user = UserListingField(read_only=True)
created = DateTimeListingField(read_only=True)
def to_json(self):
return JSONRenderer().render(self.data)
class Meta:
model = Comment
fields = ('id', 'user', 'text', 'create... | |
14,872 | [
0.012135479599237442,
0.004648222588002682,
0.04201028123497963,
-0.03763112053275108,
0.009104701690375805,
-0.0524509996175766,
-0.001307409256696701,
0.03176749125123024,
-0.003720433684065938,
0.0192980095744133,
0.022143229842185974,
0.025804903358221054,
0.0032720023300498724,
-0.028... | 7 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def setUp(self):
self._mlist = create_list('test@example.com')
self._mlist.posting_chain = 'test posting'
self._mlist.owner_chain = 'test owner'
config.chains['test posting'] = Chain('posting')
config.chains['test owner'] = Chain('owner')
self._in = make_testable_runner(I... | |
14,873 | [
0.026146164163947105,
-0.019272172823548317,
0.05409206449985504,
0.01669755019247532,
0.008386270143091679,
0.009642335586249828,
-0.011523310095071793,
0.036544639617204666,
-0.008804958313703537,
0.027320992201566696,
0.05614176392555237,
0.035369813442230225,
-0.042118821293115616,
0.0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def test_posting(self):
# A message posted to the list goes through the posting chain.
msgdata = dict(listname='test@example.com')
config.switchboards['in'].enqueue(self._msg, msgdata)
self._in.run()
messages = get_queue_messages('out')
self.assertEqual(len(messages), 1)
... | |
14,874 | [
0.04046052321791649,
-0.02237454056739807,
0.03573799878358841,
0.013299641199409962,
0.011327669955790043,
-0.008998317644000053,
-0.017907291650772095,
0.02592281438410282,
-0.0094195157289505,
0.0240976233035326,
0.053811218589544296,
0.0421963669359684,
-0.02116200141608715,
0.00047783... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def test_owner(self):
# A message posted to the list goes through the posting chain.
msgdata = dict(listname='test@example.com',
to_owner=True)
config.switchboards['in'].enqueue(self._msg, msgdata)
self._in.run()
messages = get_queue_messages('out')
... | |
14,875 | [
0.03550776466727257,
0.051669586449861526,
0.05273095890879631,
-0.008442742750048637,
-0.022312963381409645,
0.004417363554239273,
-0.0004421132616698742,
0.030032042413949966,
0.012724419124424458,
0.03010440804064274,
-0.007574346382170916,
0.004112822003662586,
-0.04863019660115242,
0.... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "term_name", "annotation": null, "type_comment": null}}], "kwarg":... | def get_terminal(self, term_name):
assert term_name is not None
if term_name in self.terminals:
return self.terminals[term_name]
if self.max_terminals and len(self.terminals) >= self.max_terminals:
raise MaxTerminalsReached(self.max_terminals)
#... | |
14,876 | [
0.00760721554979682,
0.04611142724752426,
0.029937317594885826,
-0.03553154692053795,
-0.004102044738829136,
0.0013371143722906709,
0.025700684636831284,
0.02640288881957531,
0.0329567976295948,
-0.0001804884959710762,
-0.008221643976867199,
0.03241844102740288,
-0.03932345286011696,
0.009... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def new_named_terminal(self):
name = self._next_available_name()
term = self.new_terminal()
self.log.info("New terminal with automatic name: %s", name)
term.term_name = name
self.terminals[name] = term
self.start_reading(term)
return name, term | |
14,877 | [
0.02236110530793667,
0.05308958888053894,
0.08141365647315979,
-0.03897564485669136,
0.041067492216825485,
0.013957656919956207,
-0.012040132656693459,
0.012016087770462036,
0.02377971261739731,
0.04587633162736893,
0.029766717925667763,
-0.00004289916978450492,
-0.03411871939897537,
0.002... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "logging", "annotation": null, "type_comment": null}}, {"_type": "... | def test_core_requirements(self, logging=True, pip3_command=None):
# build an actual requirements file for core+modules
# req_files = Requirements_files()
self.req_files.create_requirementsfile('base')
self.req_files.create_requirementsfile('all')
self.req_files.create_requireme... | |
14,878 | [
0.013930007815361023,
0.01825602352619171,
0.058130066841840744,
-0.06709539890289307,
0.017990918830037117,
0.0072602336294949055,
0.030245952308177948,
-0.016086990013718605,
0.03164377436041832,
0.07152986526489258,
0.04911653324961662,
0.005271953530609608,
-0.019328488036990166,
0.021... | 15 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "filepath", "annotation": null, "type_comment": null}}, {"_type": ... | def test_requirements(self, filepath, logging=True, hard_requirement=True):
if logging:
self.logger.info("test_requirements: filepath '{}' is being checked".format(filepath))
req_dict = self.parse_requirementsfile(filepath)
inst_dict = self.get_installed_packages()
requirem... | |
14,879 | [
-0.025647331029176712,
0.005103071220219135,
0.018058711662888527,
-0.051426637917757034,
0.02377767115831375,
0.001974140526726842,
-0.0011980943381786346,
0.0025350383948534727,
-0.04139646515250206,
0.038097064942121506,
0.0070772115141153336,
0.021820027381181717,
-0.03616141527891159,
... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "req_type", "annotation": null, "type_comment": null}}, {"_type": ... | def install_requirements(self, req_type, logging=True, pip3_command=None):
req_type_display = req_type
if req_type == 'conf_all':
req_type_display = 'plugin'
complete_filename = os.path.join(self._sh_dir, 'requirements', req_type + '.txt')
if logging:
self.logger.... | |
14,880 | [
-0.01260355208069086,
0.03514070808887482,
0.09257373213768005,
-0.03157300502061844,
0.006144377402961254,
-0.0003149794938508421,
0.012230459600687027,
-0.009875308722257614,
0.007123746909201145,
0.028914717957377434,
0.010044367052614689,
0.016474394127726555,
-0.015273500233888626,
0.... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "sh", "annotation": null, "type_comment": null}}], "kwarg": null, ... | def test_base_requirements(self, sh=None):
if sh is not None:
self.sh = sh
# build an actual requirements file for core+modules
# req_files = Requirements_files()
self.req_files.create_requirementsfile('base')
# test if the requirements of the base.txt file are met
... | |
14,881 | [
0.0001005812591756694,
-0.02961629442870617,
0.008727706968784332,
-0.05145624279975891,
0.02984379418194294,
0.018137911334633827,
-0.0004417496675159782,
-0.012005766853690147,
-0.019368477165699005,
0.08260298520326614,
0.01586291752755642,
-0.02388744428753853,
-0.033380378037691116,
0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "package", "annotation": null, "type_comment": null}}], "kwarg": n... | def check_package_version_data(self, package):
# check if installed version is ok and recent
if package['vers_installed'] != '-':
min = package['vers_req_min']
max = package['vers_req_max']
recent = package['pypi_version']
inst_vers = package['vers_install... | |
14,882 | [
-0.023432301357388496,
-0.014233583584427834,
0.011599307879805565,
-0.059016261249780655,
-0.01998012699186802,
0.018259350210428238,
-0.03798454627394676,
0.0056668780744075775,
-0.014191094785928726,
0.03488289937376976,
-0.005218095146119595,
-0.018716098740696907,
-0.04093748331069946,
... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "pypi_available", "annotation": null, "type_comment": null}}], "kw... | def lookup_pypi_releasedata(self, pypi_available=True):
self.logger.debug("lookup_pypi_releasedata: pypi_available={}".format(pypi_available))
for package in self.package_list:
if (package['is_required'] == True) or True:
if pypi_available :
self.get_packa... | |
14,883 | [
0.002904417458921671,
-0.00008589158824179322,
0.0704936608672142,
-0.011792700737714767,
0.012689733877778053,
0.001431697397492826,
0.027195412665605545,
-0.008740601129829884,
-0.008303023874759674,
0.042444970458745956,
-0.016080955043435097,
-0.015905924141407013,
0.004408588632941246,
... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def __init__(self):
self.logger = logging.getLogger(__name__)
self._conf_plugin_files = []
self.sh_basedir = os.sep.join(os.path.realpath(__file__).split(os.sep)[:-2])
self.logger.debug("Requirements_files is using '{}' as base directory".format(self.sh_basedir))
return | |
14,884 | [
0.008869335055351257,
0.04306470975279808,
0.019687719643115997,
-0.029305350035429,
-0.008138441480696201,
-0.027402706444263458,
-0.012251167558133602,
-0.013179286383092403,
0.012169957160949707,
0.03540772944688797,
0.008735917508602142,
-0.05661524459719658,
-0.04441048204898834,
0.04... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "requirement", "annotation": null, "type_comment": null}}], "kwarg... | def _split_requirement_to_min_max(self, requirement):
result = {}
reqs = requirement.split(',')
for req in reqs:
operator, version = self._split_operator(req)
if operator in ['>=', '==', '>']:
result['min'] = version
if operator in ['<', '<=', ... | |
14,885 | [
0.02487046644091606,
0.04580426588654518,
0.044275913387537,
-0.03235013037919998,
0.021813761442899704,
0.0007004949729889631,
0.016267692670226097,
-0.06145830452442169,
-0.010304802097380161,
0.06104147806763649,
0.010681101121008396,
-0.029849190264940262,
-0.014380409382283688,
0.0077... | 13 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "fname", "annotation": null, "type_comment": null}}, {"_type": "ar... | def _read_requirementfile(self, fname, requirements, add_info):
package = ''.join((fname.split(os.sep))[-2:-1])
with open(fname, encoding='utf8') as ifile:
for line in ifile:
if len(line.rstrip()) != 0:
# self.setdefault(line.rstrip(), [])... | |
14,886 | [
-0.010408387519419193,
0.018361462280154228,
0.07263453304767609,
-0.054700080305337906,
-0.01287437416613102,
-0.0324314683675766,
-0.01577804796397686,
-0.011080929078161716,
-0.05363255366683006,
0.04381130635738373,
-0.028908628970384598,
-0.04662957414984703,
-0.0005007368163205683,
-... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "selection", "annotation": null, "type_comment": null}}], "kwarg":... | def _build_filelists(self, selection):
# global _module_files, _plugin_files, _core_files
self._module_files = []
self._plugin_files = []
self._core_files = [] # to be a list in the future
if selection in ['modules', 'base', 'all', 'conf_all']:
# build list ... | |
14,887 | [
0.0004641785053536296,
-0.008774586953222752,
0.01721654273569584,
-0.05331278219819069,
-0.004487656056880951,
0.020932838320732117,
-0.013959048315882683,
-0.02977624535560608,
0.014314619824290276,
0.054505668580532074,
0.0038510686717927456,
0.016700390726327896,
-0.0036847528535872698,
... | 20 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "packagelist", "annotation": null, "type_comment": null}}], "kwarg... | def _consolidate_requirements(self, packagelist):
for package in packagelist:
package['sort'] = package['key'] + '+' + package['req'][0][0] + package['req'][0][1]
# sort = <package>+<python-version req (if specified)+reqversion>
packagelist_sorted = sorted(packagelist, key=lambda k... | |
14,888 | [
0.030561069026589394,
0.04507084935903549,
0.040446314960718155,
-0.04228144884109497,
0.05226456746459007,
0.004407376050949097,
-0.015023616142570972,
-0.013861365616321564,
-0.01144510880112648,
0.049132607877254486,
-0.0004564891569316387,
-0.043455932289361954,
-0.026572715491056442,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def __read_requirementfiles(self):
requirements = {}
# Read requirements for core
for fname in self._core_files:
self._read_requirementfile(fname, requirements, 'SmartHomeNG-')
# Read requirements for modules
for fname in self._module_files:
self._read_... | |
14,889 | [
0.04782474413514137,
-0.008716880343854427,
0.0643811896443367,
-0.05286366119980812,
0.004740857984870672,
-0.01826608180999756,
0.03527243435382843,
-0.046744976192712784,
-0.01017906703054905,
0.017816178500652313,
0.011742481961846352,
0.0028414218686521053,
-0.010927031747996807,
-0.0... | 13 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "selection", "annotation": null, "type_comment": null}}, {"_type":... | def _write_resultfile(self, selection, packagelist_consolidated, requirements):
for key in requirements:
requirements[key] = sorted(requirements[key], key=lambda name: (len(name.split('.')), name))
# pprint.pprint(requirements)
filename = 'requirements' + os.sep + selection + '.tx... | |
14,890 | [
0.024060817435383797,
-0.01130726933479309,
0.023379512131214142,
-0.0451812669634819,
0.012287392280995846,
-0.029212437570095062,
-0.01335118431597948,
-0.01563415303826332,
-0.031148778274655342,
-0.012371061369776726,
0.027921544387936592,
0.013004555366933346,
-0.02651112526655197,
-0... | 13 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "ofile", "annotation": null, "type_comment": null}}, {"_type": "ar... | def _write_header(self, ofile, filename):
pip_statement = 'pip3 install -r '+filename+' --user'
pip_statement = pip_statement.ljust(49)
ofile.write('\n')
ofile.write('# +--------------------------------------------------+\n')
ofile.write('# | SmartHomeNG ... | |
14,891 | [
0.01602778397500515,
-0.015640638768672943,
0.08052606135606766,
-0.03835311904549599,
0.010975548066198826,
0.020815471187233925,
-0.011743384413421154,
-0.04645734652876854,
-0.004187613260000944,
0.008575251325964928,
0.03409453108906746,
-0.01827322319149971,
0.018802320584654808,
-0.0... | 13 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "db_filename", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "adi_filename", "annotation": null, "type_comment": null}}]... | def export_adif_adi(db_filename, adi_filename):
try:
ADIF_VER = '3.0.4'
PROG_ID = 'dolphinlog'
log.info('Connecting to database: {}'.format(db_filename))
db = sqlite3.connect(db_filename)
cursor = db.cursor()
cursor.execute('SELECT * FROM q... | |
14,892 | [
0.02645258978009224,
-0.0016941901994869113,
0.05020292103290558,
-0.022905874997377396,
0.0049506244249641895,
0.010386811569333076,
0.014746316708624363,
0.011368491686880589,
0.021026959642767906,
-0.0035678273998200893,
0.03086487390100956,
0.03232156112790108,
-0.0056684124283492565,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "session", "annotation": null, "type_comment": null}}, {"_type": "... | def __init__(self, session, parent=None, nested=False):
self.session = session
self._connections = {}
self._parent = parent
self.nested = nested
self._state = ACTIVE
if not parent and nested:
raise sa_exc.InvalidRequestError(
"Can't start a SAV... | |
14,893 | [
0.04941125214099884,
0.028596101328730583,
0.009506390430033207,
0.011693409644067287,
0.048048485070466995,
-0.006324772257357836,
0.0025922772474586964,
-0.00654457276687026,
0.028288381174206734,
-0.0017254373524338007,
0.0459383949637413,
-0.02635413222014904,
-0.0015358590753749013,
0... | 13 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "prepared_ok", "annotation": null, "type_comment": null}}, {"_type... | def _assert_active(self, prepared_ok=False,
rollback_ok=False,
deactive_ok=False,
closed_msg="This transaction is closed"):
if self._state is COMMITTED:
raise sa_exc.InvalidRequestError(
"This session is in 'committ... | |
14,894 | [
0.02673874795436859,
0.014853518456220627,
0.01884743757545948,
-0.017339160665869713,
-0.0096469447016716,
-0.0023785538505762815,
-0.016856512054800987,
0.03554708883166313,
0.014889717102050781,
0.023541199043393135,
-0.005414716899394989,
-0.041025154292583466,
-0.009683143347501755,
-... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "upto", "annotation": null, "type_comment": null}}], "kwarg": null... | def _iterate_self_and_parents(self, upto=None):
current = self
result = ()
while current:
result += (current, )
if current._parent is upto:
break
elif current._parent is None:
raise sa_exc.InvalidRequestError(
... | |
14,895 | [
0.03602840006351471,
0.0362670011818409,
0.008434463292360306,
-0.020662646740674973,
0.01872999779880047,
0.009227803908288479,
0.0011273787822574377,
-0.0321153849363327,
0.0036774021573364735,
-0.04287618398666382,
0.03442979231476784,
0.005147766787558794,
0.06284689158201218,
0.028417... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "bind", "annotation": null, "type_comment": null}}, {"_type": "arg... | def _connection_for_bind(self, bind, execution_options):
self._assert_active()
if bind in self._connections:
if execution_options:
util.warn(
"Connection is already established for the "
"given bind; execution_options ignored")
... | |
14,896 | [
0.04159953072667122,
0.04093356058001518,
0.016244985163211823,
0.0024884797167032957,
0.00017940763791557401,
0.0003303850826341659,
0.055751461535692215,
0.007634905632585287,
-0.012189685367047787,
-0.01517467200756073,
0.0332510843873024,
0.011547497473657131,
0.028161147609353065,
-0.... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _take_snapshot(self):
if not self._is_transaction_boundary:
self._new = self._parent._new
self._deleted = self._parent._deleted
self._dirty = self._parent._dirty
self._key_switches = self._parent._key_switches
return
if not self.session._f... | |
14,897 | [
0.03683680295944214,
0.027116330340504646,
0.03529667481780052,
0.005115871783345938,
0.00970784854143858,
-0.0018604604993015528,
0.04956178367137909,
0.0527682788670063,
0.02110731042921543,
-0.01401262916624546,
0.06407937407493591,
0.04234086349606514,
0.0006300159730017185,
-0.0197565... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _prepare_impl(self):
self._assert_active()
if self._parent is None or self.nested:
self.session.dispatch.before_commit(self.session)
stx = self.session.transaction
if stx is not self:
for subtransaction in stx._iterate_self_and_parents(upto=self):
... | |
14,898 | [
0.048887453973293304,
0.03741339221596718,
0.03194510191679001,
0.016323082149028778,
0.00502428412437439,
0.006280355621129274,
0.044610969722270966,
0.040007323026657104,
-0.009651299566030502,
-0.031103825196623802,
0.0843145027756691,
0.04573267325758934,
0.03832477331161499,
-0.003131... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def commit(self):
self._assert_active(prepared_ok=True)
if self._state is not PREPARED:
self._prepare_impl()
if self._parent is None or self.nested:
for t in set(self._connections.values()):
t[1].commit()
self._state = COMMITTED
s... | |
14,899 | [
0.011918570846319199,
0.0007148651056922972,
0.04518856108188629,
-0.042515236884355545,
-0.033135153353214264,
0.019381601363420486,
0.040920622646808624,
0.016391698271036148,
-0.010540870949625969,
-0.0010435344884172082,
0.03334620222449303,
0.0082310251891613,
-0.0015653017908334732,
... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _rollback_impl(self):
try:
for t in set(self._connections.values()):
t[1].rollback()
finally:
if self.session._enable_transaction_accounting:
self._restore_snapshot(dirty_only=self.nested)
self.session.dispatch.after_rollback(self.sess... | |
14,900 | [
0.04956556484103203,
0.04735366627573967,
0.0074086724780499935,
-0.002867441624403,
-0.022713586688041687,
-0.004507041536271572,
0.0034100108314305544,
0.018706005066633224,
0.011327062733471394,
-0.0017079784302040935,
0.05460774153470993,
0.006552453152835369,
0.022523315623402596,
-0.... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "_capture_exception", "annotation": null, "type_comment": null}}],... | def rollback(self, _capture_exception=False):
self._assert_active(prepared_ok=True, rollback_ok=True)
stx = self.session.transaction
if stx is not self:
for subtransaction in stx._iterate_self_and_parents(upto=self):
subtransaction.close()
boundary = self
... |