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
19,201
[ 0.04583708941936493, -0.01713978871703148, 0.031898729503154755, -0.03455695882439613, 0.03763125464320183, 0.014782056212425232, 0.00999146793037653, 0.0011116880923509598, 0.002685676561668515, 0.011152997612953186, 0.02415519766509533, 0.007211886812001467, 0.015510180033743382, 0.02630...
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": "doc_type", "annotation": null, "type_comment": null}}, {"_type": ...
def writeback(self, doc_type, body): # ES 2.0 - 2.3 does not support dots in field names. if self.replace_dots_in_field_names: writeback_body = replace_dots_in_field_names(body) else: writeback_body = body for key in writeback_body.keys(): # Convert a...
19,202
[ 0.018818560987710953, 0.02717527747154236, 0.014916633255779743, -0.02385810762643814, -0.030534975230693817, 0.008431140333414078, -0.002732412423938513, -0.006060214247554541, 0.011280504055321217, 0.014959161169826984, -0.017255663871765137, -0.008457720279693604, 0.014331875368952751, ...
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": "text", "annotation": null, "type_comment": null}}, {"_type": "arg...
def send_notification_email(self, text='', exception=None, rule=None, subject=None, rule_file=None): email_body = text rule_name = None if rule: rule_name = rule['name'] elif rule_file: rule_name = rule_file if exception and rule_name: if not s...
19,203
[ 0.002314446959644556, 0.039149168878793716, 0.02755700796842575, -0.024664660915732384, -0.047006335109472275, 0.020519722253084183, 0.022979356348514557, 0.0033763027749955654, 0.01148398406803608, 0.003305132733657956, 0.023275423794984818, -0.05142456293106079, 0.006786766927689314, 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": "rule", "annotation": null, "type_comment": null}}, {"_type": "arg...
def find_pending_aggregate_alert(self, rule, aggregation_key_value=None): query = {'filter': {'bool': {'must': [{'term': {'rule_name': rule['name']}}, {'range': {'alert_time': {'gt': ts_now()}}}, {'not': {'exists': {'fie...
19,204
[ -0.009608880616724491, -0.03530611842870712, -0.006733572110533714, -0.040414806455373764, 0.015085340477526188, 0.0028034260030835867, -0.00974261574447155, -0.026319105178117752, 0.03490491211414337, -0.012417322024703026, 0.024206086993217468, -0.04953555017709732, -0.030411405488848686, ...
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}}, {"_type": "arg", "_fields": {"arg": "response", "annotation...
class TestSCI(HttpTestBase): def _prepare_sci_response(self, response, status=200): self.prepare_response("POST", "/ws/sci", response, status) def test_sci_successful_error(self): self._prepare_sci_response(EXAMPLE_SCI_DEVICE_NOT_CONNECTED) self.dc.get_sci_api().send_sci( op...
19,205
[ 0.035921353846788406, -0.03379231318831444, -0.0012362664565443993, 0.001048273523338139, -0.00909793097525835, -0.002532876329496503, 0.00008258538582595065, 0.016995182260870934, 0.031886082142591476, -0.0063933078199625015, 0.0032152209896594286, -0.02606835588812828, -0.03215840086340904...
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_sci_successful_error(self): self._prepare_sci_response(EXAMPLE_SCI_DEVICE_NOT_CONNECTED) self.dc.get_sci_api().send_sci( operation="send_message", target=DeviceTarget("00000000-00000000-00409DFF-FF58175B"), payload="<reset/>") self.assertEqual(httpret...
19,206
[ 0.019450675696134567, -0.03966362401843071, 0.029118841513991356, -0.0028902865014970303, -0.0018818622920662165, 0.01743065007030964, 0.0057805730029940605, 0.03440393880009651, 0.01873921975493431, -0.045914266258478165, -0.008283370174467564, -0.01688435487449169, -0.021762903779745102, ...
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_sci_successful_group_target(self): self._prepare_sci_response(EXAMPLE_SCI_DEVICE_NOT_CONNECTED) self.dc.get_sci_api().send_sci( operation="send_message", target=GroupTarget("TestGroup"), payload="<reset/>") self.assertEqual(httpretty.last_request().bo...
19,207
[ 0.012415074743330479, -0.02697046659886837, 0.0103366170078516, -0.029791230335831642, -0.009353060275316238, -0.031993404030799866, 0.001489252201281488, -0.011450076475739479, 0.023927008733153343, -0.0014969846233725548, -0.004054848570376635, -0.05186247453093529, -0.02297438308596611, ...
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_sci_no_parameters(self): self._prepare_sci_response(EXAMPLE_SCI_REQUEST_RESPONSE) self.dc.get_sci_api().send_sci( operation="send_message", target=DeviceTarget('00000000-00000000-00409dff-ffaabbcc'), payload=EXAMPLE_SCI_REQUEST_PAYLOAD) request = http...
19,208
[ 0.010656609199941158, -0.030933097004890442, -0.0009877554839476943, -0.029197178781032562, -0.009306450374424458, -0.02327818050980568, -0.005231864284723997, -0.005900916177779436, 0.023832710459828377, 0.004201163072139025, -0.004068558104336262, -0.04824405908584595, -0.01293500140309333...
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_sci_with_parameters(self): self._prepare_sci_response(EXAMPLE_SCI_REQUEST_RESPONSE) self.dc.get_sci_api().send_sci( operation="send_message", target=DeviceTarget('00000000-00000000-00409dff-ffaabbcc'), payload=EXAMPLE_SCI_REQUEST_PAYLOAD, reply="a...
19,209
[ 0.014675253070890903, 0.0097213014960289, -0.025329558178782463, -0.033034369349479675, -0.0003316303191240877, 0.01247215922921896, -0.005625112447887659, -0.037898026406764984, 0.005405405070632696, -0.01098537165671587, 0.03040991723537445, -0.04714379832148552, -0.05123697966337204, 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_sci_update_firmware_attribute(self): self._prepare_sci_response(EXAMPLE_UPDATE_FIRMWARE_INVALID_ATTRIBUTE_RESPONSE) self.dc.get_sci_api().send_sci( operation="update_firmware", attribute="filename=\"abcd.bin\"", target=DeviceTarget('00000000-00000000-00409df...
19,210
[ -0.001909332349896431, -0.06531571596860886, -0.005789292044937611, -0.005280545447021723, 0.031407445669174194, 0.016402482986450195, 0.0031720048282295465, 0.0031720048282295465, 0.04668210446834564, -0.04020937532186508, -0.0005098959663882852, -0.040430035442113876, 0.016990913078188896,...
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 TestAsyncProxy(HttpTestBase): def setUp(self): HttpTestBase.setUp(self) self.fake_conn = mock.MagicMock() def test_ctor(self): t = AsyncRequestProxy(123, self.fake_conn) self.assertEqual(t.job_id, 123) self.assertIs(t.response, None) def test_completed_false(s...
19,211
[ -0.0076170675456523895, -0.02787422202527523, -0.025563161820173264, -0.021047160029411316, 0.03928803279995918, 0.0009263403480872512, -0.018170125782489777, -0.02671869285404682, 0.024065688252449036, -0.030869169160723686, 0.0138663649559021, -0.03780234977602959, -0.011443288065493107, ...
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}}, {"_type": "arg", "_fields": {"arg": "fake_send_sci", "annot...
class TestSendSciAsync(HttpTestBase): @mock.patch.object(ServerCommandInterfaceAPI, "send_sci") def test_bad_resp(self, fake_send_sci): fake_resp = mock.MagicMock() fake_resp.status_code = 400 fake_resp.reason = "OK" fake_resp.content = EXAMPLE_SCI_BAD_DEVICE fake_send_sc...
19,212
[ 0.0067201717756688595, -0.021033896133303642, -0.011905863881111145, 0.00371186388656497, 0.01772233098745346, -0.024648716673254967, -0.018450146540999413, -0.020997503772377968, 0.034692585468292236, -0.01757676713168621, 0.023544862866401672, -0.05473179742693901, -0.04383881017565727, ...
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": "fake_send_sci", "annotation": null, "type_comment": null}}], "kwa...
def test_bad_resp(self, fake_send_sci): fake_resp = mock.MagicMock() fake_resp.status_code = 400 fake_resp.reason = "OK" fake_resp.content = EXAMPLE_SCI_BAD_DEVICE fake_send_sci.return_value = fake_resp resp = self.dc.get_sci_api().send_sci_async("send_message", DeviceTar...
19,213
[ -0.004563870374113321, -0.034856900572776794, -0.004731100518256426, -0.01207707729190588, 0.0235946923494339, -0.02091900445520878, -0.015202765353024006, -0.0033020407427102327, 0.040451519191265106, -0.0366082601249218, 0.03799474984407425, -0.05190832167863846, -0.03213256597518921, 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": "fake_send_sci", "annotation": null, "type_comment": null}}], "kwa...
def test_resp_parse(self, fake_send_sci): fake_resp = mock.MagicMock() fake_resp.status_code = 200 fake_resp.reason = "OK" fake_resp.content = EXAMPLE_ASYNC_SCI_RESPONSE fake_send_sci.return_value = fake_resp resp = self.dc.get_sci_api().send_sci_async("send_message", Dev...
19,214
[ 0.015550589188933372, 0.028507953509688377, -0.023671938106417656, -0.07660526782274246, 0.05477311834692955, -0.003416749183088541, 0.05151406303048134, -0.017074985429644585, -0.009093808941543102, 0.027561776340007782, 0.009172657504677773, -0.010845988057553768, 0.02962934784591198, 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": "corpus_filename", "annotation": null, "type_comment": null}}, {"_...
def parse(self, corpus_filename, key): assert type(corpus_filename) == str, 'the filename must be a string' assert type(key) == str, 'the key must be a string' wst = WhitespaceTokenizer() with codecs.open(corpus_filename, encoding='utf8') as input: corpus = [wst.tokenize(l) ...
19,215
[ 0.01544825080782175, 0.031347546726465225, -0.026958541944622993, -0.047463688999414444, 0.031902678310871124, -0.002732284599915147, 0.0422593355178833, 0.004892090801149607, 0.0038512202445417643, 0.028172891587018967, 0.015153337270021439, -0.01011379063129425, 0.015318142250180244, 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}}, {"_type": "arg", "_fields": {"arg": "corpus_filename", "ann...
class WhitespaceTokenizedParser(Parser): def parse(self, corpus_filename, key): assert type(corpus_filename) == str, 'the filename must be a string' assert type(key) == str, 'the key must be a string' wst = WhitespaceTokenizer() with codecs.open(corpus_filename, encoding='utf8') as...
19,216
[ -0.026006249710917473, 0.03936140611767769, -0.014873286709189415, -0.024334104731678963, 0.04070352017879486, -0.015698358416557312, 0.00477991346269846, 0.03185875713825226, -0.006078025791794062, -0.009235299192368984, 0.016061389818787575, -0.00541246822103858, -0.0076016574166715145, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"args": [{"_type": "Call", "_fields": {"args": [], "func": {"_type": "Attribute", "_fields": {"ctx": {"_type": "Load", "_fields": {}}, "attr": "_dummy", "value": {"_...
class MockUnaryTransformer(UnaryTransformer, DefaultParamsReadable, DefaultParamsWritable): shift = Param( Params._dummy(), "shift", "The amount by which to shift " + "data in a DataFrame", typeConverter=TypeConverters.toFloat, ) def __init__(self, shiftVal=1): supe...
19,217
[ 0.05838162451982498, 0.031865980476140976, 0.0025473113637417555, -0.04417962580919266, -0.011546500958502293, 0.005232315510511398, -0.01481178030371666, -0.0051831393502652645, 0.012874249368906021, 0.02822696417570114, -0.009372926317155361, -0.06070272624492645, -0.00780913233757019, 0...
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 DummyLogisticRegression( Classifier, _DummyLogisticRegressionParams, DefaultParamsReadable, DefaultParamsWritable ): @keyword_only def __init__( self, *, featuresCol="features", labelCol="label", predictionCol="prediction", maxIter=100, regParam=...
19,218
[ -0.0032908448483794928, -0.0430637001991272, 0.023182926699519157, 0.003302153665572405, 0.012190827168524265, -0.00017864283290691674, -0.030126497149467468, -0.06527407467365265, 0.009143120609223843, 0.05373915657401085, 0.011636698618531227, -0.004416064824908972, 0.04552900791168213, ...
10
{"_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 test_as_strided(): a = np.array([None]) a_view = as_strided(a) expected = np.array([None]) assert_array_equal(a_view, np.array([None])) a = np.array([1, 2, 3, 4]) a_view = as_strided(a, shape=(2,), strides=(2 * a.itemsize,)) expected = np.array([1, 3]) assert_array_equal(a_view, exp...
19,219
[ 0.05763006955385208, 0.008798032999038696, 0.01668083481490612, -0.0034641027450561523, 0.0020875646732747555, -0.00834041740745306, 0.0412936769425869, 0.014151646755635738, -0.010175801813602448, 0.03611720725893974, -0.00433012843132019, -0.0566459521651268, -0.01879669353365898, -0.005...
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": [{"_type": "arg", "_fields": {"arg": "fe...
def __init__( self, *, featuresCol="features", labelCol="label", predictionCol="prediction", maxIter=100, regParam=0.0, rawPredictionCol="rawPrediction", ): super(DummyLogisticRegression, self).__init__() kwargs = self._input_kwargs ...
19,220
[ 0.01958921179175377, -0.019238708540797234, 0.04987524822354317, -0.010625427588820457, -0.017421286553144455, -0.0010506970575079322, 0.001275440794415772, 0.035933028906583786, -0.03125965595245361, 0.03871108591556549, 0.03229818493127823, -0.02718343958258629, -0.020627738907933235, -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 GenKwCollectorTest(ResTest): def setUp(self): self.config = self.createTestPath("local/snake_oil/snake_oil.ert") def test_gen_kw_collector(self): with ErtTestContext("python/enkf/export/gen_kw_collector", self.config) as context: ert = context.getErt() data = GenK...
19,221
[ 0.026007413864135742, -0.018454721197485924, 0.052468519657850266, -0.0057178945280611515, -0.006348397582769394, -0.0059147183783352375, -0.01205628365278244, 0.03210560977458954, -0.011082173325121403, 0.03448083996772766, 0.03055770881474018, -0.027702098712325096, -0.017187044024467468, ...
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 test_gen_kw_collector(self): with ErtTestContext("python/enkf/export/gen_kw_collector", self.config) as context: ert = context.getErt() data = GenKwCollector.loadAllGenKwData(ert, "default_0") self.assertFloatEqual(data["SNAKE_OIL_PARAM:OP1_PERSISTENCE"][0], 0.047517) ...
19,222
[ 0.011395618319511414, 0.0009943416807800531, 0.04842397943139076, -0.0206157099455595, -0.006075196899473667, -0.004832038190215826, 0.011972799897193909, -0.011181025765836239, 0.004695143084973097, -0.02548474818468094, 0.009397685527801514, -0.03853791207075119, -0.0004333480028435588, ...
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}}, {"_type": "arg", "_fields": {"arg": "orm", "annotation": nu...
class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'NewAnswerNotificationTemplate' db.create_table(u'nuntium_newanswernotificationtemplate', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('writeitinstance', self.gf('django....
19,223
[ 0.0458003431558609, 0.013395152986049652, 0.04632909968495369, 0.00871188472956419, -0.02211962640285492, -0.0028751108329743147, 0.03882579877972603, 0.01933736354112625, 0.027923354879021645, 0.016202595084905624, -0.03122178465127945, -0.027847817167639732, 0.04859519749879837, -0.00773...
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": "orm", "annotation": null, "type_comment": null}}], "kwarg": null,...
def forwards(self, orm): # Adding model 'NewAnswerNotificationTemplate' db.create_table(u'nuntium_newanswernotificationtemplate', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('writeitinstance', self.gf('django.db.models.fields.related.OneToOneField'...
19,224
[ 0.05686911568045616, 0.058364514261484146, -0.017757853493094444, -0.04780876263976097, -0.0037165044341236353, -0.005071709398180246, 0.005805663764476776, -0.017713872715830803, -0.02185920439660549, -0.010104933753609657, 0.0011036809301003814, -0.05203106254339218, 0.015558739192783833, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": true}}, "targets": [{"_type": "Name", "_fields": {"id": "use_in_migrations", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": ...
class LogEntryManager(models.Manager): use_in_migrations = True def log_action(self, user_id, content_type_id, object_id, object_repr, action_flag, change_message=''): if isinstance(change_message, list): change_message = json.dumps(change_message) return self.model.objects.create( ...
19,225
[ 0.03548869490623474, 0.034873899072408676, -0.0801357626914978, -0.012158164754509926, 0.005909482948482037, -0.012285363860428333, 0.02527032606303692, -0.02319273166358471, 0.01774434745311737, -0.011935564689338207, 0.031248709186911583, 0.006646180525422096, 0.0529574453830719, -0.0180...
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": "user_id", "annotation": null, "type_comment": null}}, {"_type": "...
def log_action(self, user_id, content_type_id, object_id, object_repr, action_flag, change_message=''): if isinstance(change_message, list): change_message = json.dumps(change_message) return self.model.objects.create( user_id=user_id, content_type_id=content_type_id,...
19,226
[ 0.043885163962841034, 0.01662648282945156, -0.03740958869457245, -0.03019019402563572, 0.010500936768949032, 0.02887757681310177, -0.015970174223184586, -0.0020769431721419096, 0.004624240566045046, 0.027411820366978645, -0.05648628994822502, -0.021625366061925888, 0.009631328284740448, -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 __str__(self): if self.is_addition(): return ugettext('Added "%(object)s".') % {'object': self.object_repr} elif self.is_change(): return ugettext('Changed "%(object)s" - %(changes)s') % { 'object': self.object_repr, 'changes': self.get_change_...
19,227
[ 0.038249336183071136, 0.02725440077483654, 0.004024100489914417, -0.033077988773584366, 0.02925771474838257, 0.034801773726940155, -0.020731979981064796, -0.019008196890354156, 0.013510728254914284, 0.04488823190331459, 0.03598978370428085, -0.014920037239789963, 0.015385923907160759, 0.04...
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": "in_types", "annotation": null, "type_comment": null}}], "kwarg": ...
def check_type_forward(self, in_types): type_check.expect(in_types.size() == 1) x_type, = in_types type_check.expect( x_type.dtype.kind == 'f', x_type.ndim > 1, self.axis < x_type.ndim )
19,228
[ 0.022398071363568306, -0.02632076106965542, 0.022204358130693436, 0.008190429769456387, 0.013414628803730011, 0.009140834212303162, -0.00017810628924053162, 0.01911705546081066, 0.011265624314546585, -0.0037380564026534557, -0.03762875869870186, -0.017918456345796585, -0.015158046036958694, ...
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": "x", "annotation": null, "type_comment": null}}, {"_type": "arg", ...
def backward(self, x, gy): y = self.output_data[0] xp = cuda.get_array_module(*y) if (xp is not numpy and chainer.should_use_cudnn('>=auto') and (_cudnn_version >= 3000 or y.dtype != numpy.float16)): oz_dtype = 'd' if y[0].dtype == 'd' else 'f' one = numpy...
19,229
[ 0.01957857981324196, -0.06071348860859871, -0.004054977558553219, 0.024645838886499405, 0.03199512138962746, -0.009572790004312992, 0.022340411320328712, 0.03435906022787094, 0.024973513558506966, -0.007349281571805477, -0.02773534506559372, -0.008197725750505924, 0.010977111756801605, -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": "x", "annotation": null, "type_comment": null}}], "kwarg": null, "...
def forward(self, x): xp = cuda.get_array_module(*x) if (xp is not numpy and chainer.should_use_cudnn('>=auto') and (_cudnn_version >= 3000 or x[0].dtype != numpy.float16)): oz_dtype = 'd' if x[0].dtype == 'd' else 'f' one = numpy.array(1, dtype=oz_dtype).ctypes ...
19,230
[ 0.016125082969665527, -0.01650477573275566, 0.0621747151017189, -0.0418374128639698, 0.010631402023136616, 0.014380869455635548, 0.021286534145474434, 0.03286716714501381, -0.032131511718034744, 0.03664036840200424, -0.014902947470545769, -0.05999148264527321, -0.000738250557333231, -0.046...
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": "root_directory", "annotation": null, "type_comment": null}}, {"_t...
def __init__(self, root_directory, bucket_depth=0, mapper=None): versionutils.report_deprecated_feature( LOG, _LW('The in tree EC2 API is deprecated as of Kilo release and may ' 'be removed in a future release. The stackforge ec2-api ' 'project http://git....
19,231
[ -0.00009167066309601068, -0.005564738996326923, -0.02937452308833599, -0.018666962161660194, -0.004455782473087311, -0.07498713582754135, -0.0725240558385849, 0.02319401502609253, 0.05099490284919739, 0.014151313342154026, 0.018381884321570396, -0.07480468600988388, -0.008683501742780209, ...
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": "request", "annotation": null, "type_comment": null}}], "kwarg": n...
def __call__(self, request): method = request.method.lower() f = getattr(self, method, self.invalid) self.request = request self.response = webob.Response() params = request.environ['wsgiorg.routing_args'][1] del params['controller'] f(**params) return sel...
19,232
[ 0.05301252007484436, 0.004997512325644493, -0.025749538093805313, -0.026716459542512894, 0.027830522507429123, -0.04687466844916344, 0.005378500558435917, -0.02280673384666443, 0.06310213357210159, 0.003168769646435976, 0.02665339969098568, -0.05255007743835449, -0.013200580142438412, -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}}, {"_type": "arg", "_fields": {"arg": "value", "annotation": null, "type_comment": null}}], "kwarg": nul...
def render_xml(self, value): assert isinstance(value, dict) and len(value) == 1 self.set_header("Content-Type", "application/xml; charset=UTF-8") name = value.keys()[0] parts = [] parts.append('<' + utils.utf8(name) + ' xmlns="http://doc.s3.amazonaws.com/2006...
19,233
[ 0.038084451109170914, 0.011246453039348125, 0.015279943123459816, -0.028667204082012177, 0.009076793678104877, -0.049117397516965866, -0.0029111523181200027, -0.015730030834674835, 0.032083261758089066, -0.008996008895337582, -0.01678023859858513, -0.04011562094092369, 0.020150136202573776, ...
16
{"_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": "value", "annotation": null, "type_comment": null}}, {"_type": "ar...
def _render_parts(self, value, parts=None): if not parts: parts = [] if isinstance(value, six.string_types): parts.append(utils.xhtml_escape(value)) elif isinstance(value, int) or isinstance(value, long): parts.append(str(value)) elif isinstance(value...
19,234
[ -0.007391257211565971, -0.025717373937368393, 0.05152319744229317, 0.01223952416330576, -0.002422751160338521, -0.01997905969619751, -0.04252322390675545, 0.011476626619696617, -0.02757486142218113, 0.02801712043583393, -0.008203908801078796, -0.038542889058589935, 0.011808320879936218, -0...
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 RootHandler(BaseRequestHandler): def get(self): names = os.listdir(self.application.directory) buckets = [] for name in names: path = os.path.join(self.application.directory, name) info = os.stat(path) buckets.append({ "Name": name, ...
19,235
[ -0.003615648951381445, 0.013879669830203056, 0.02767893485724926, -0.020764226093888283, 0.010784131474792957, -0.00511065311729908, 0.023015527054667473, -0.024141177535057068, -0.019497869536280632, 0.021648665890097618, -0.02396026998758316, -0.036824844777584076, 0.017025459557771683, ...
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": "bucket", "annotation": null, "type_comment": null}}, {"_type": "a...
def _object_path(self, bucket, object_name): if self.application.bucket_depth < 1: return os.path.abspath(os.path.join( self.application.directory, bucket, object_name)) hash = utils.get_hash_str(object_name) path = os.path.abspath(os.path.join( self.appli...
19,236
[ 0.0025140016805380583, -0.030878590419888496, 0.05484474077820778, -0.0005712994025088847, -0.023124834522604942, -0.01912289671599865, 0.007418365217745304, -0.004937049932777882, -0.02585342898964882, 0.019111528992652893, 0.012585640884935856, -0.037108879536390305, 0.028945837169885635, ...
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 get(self): names = os.listdir(self.application.directory) buckets = [] for name in names: path = os.path.join(self.application.directory, name) info = os.stat(path) buckets.append({ "Name": name, "CreationDate": datetime.dat...
19,237
[ 0.016727536916732788, -0.014213275164365768, 0.03891974687576294, 0.0033833496272563934, -0.0029007012490183115, 0.007164363283663988, -0.018369503319263458, 0.02242310903966427, -0.00906288716942072, 0.023539133369922638, 0.012815037742257118, -0.04584679380059242, 0.00533639220520854, -0...
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": "bucket_name", "annotat...
class BucketHandler(BaseRequestHandler): def get(self, bucket_name): prefix = self.get_argument("prefix", u"") marker = self.get_argument("marker", u"") max_keys = int(self.get_argument("max-keys", 50000)) path = os.path.abspath(os.path.join(self.application.directory, ...
19,238
[ 0.01689646579325199, -0.027427908033132553, 0.02298210933804512, -0.0024764679837971926, 0.02477986365556717, 0.007039181888103485, 0.04664444923400879, 0.0036501712165772915, 0.004424541722983122, 0.02813243493437767, 0.026018857955932617, -0.000824477116111666, 0.009990900754928589, -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}}, {"_type": "arg", "_fields": {"arg": "bucket_name", "annotation": null, "type_comment": null}}], "kwarg...
def put(self, bucket_name): path = os.path.abspath(os.path.join( self.application.directory, bucket_name)) if (not path.startswith(self.application.directory) or os.path.exists(path)): self.set_status(403) return fileutils.ensure_tree(path) ...
19,239
[ 0.02512098290026188, 0.003605755977332592, 0.03510309383273125, 0.0029263626784086227, -0.011228217743337154, 0.012613517232239246, 0.008961363695561886, 0.030542872846126556, -0.021064508706331253, 0.043269071727991104, 0.00623716227710247, -0.04615897685289383, 0.017697367817163467, -0.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": "bucket_name", "annotation": null, "type_comment": null}}], "kwarg...
def get(self, bucket_name): prefix = self.get_argument("prefix", u"") marker = self.get_argument("marker", u"") max_keys = int(self.get_argument("max-keys", 50000)) path = os.path.abspath(os.path.join(self.application.directory, bucket_name)) ...
19,240
[ 0.023167811334133148, -0.023927034810185432, 0.03135821968317032, 0.007580729201436043, 0.00030106509802863, 0.011635671369731426, 0.0354304164648056, 0.02145380899310112, 0.0011453054612502456, 0.030184876173734665, 0.0552622489631176, -0.03807619586586952, -0.0004669654299505055, -0.0468...
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": "bucket_name", "annotation": null, "type_comment": null}}], "kwarg...
def delete(self, bucket_name): path = os.path.abspath(os.path.join( self.application.directory, bucket_name)) if (not path.startswith(self.application.directory) or not os.path.isdir(path)): self.set_404() return if len(os.listdir(path)) > 0: ...
19,241
[ -0.0010054538724943995, -0.04117949679493904, 0.038307640701532364, 0.025019221007823944, 0.010495660826563835, -0.005831936374306679, 0.02655250020325184, 0.0006761334952898324, 0.007368257734924555, 0.018119465559720993, 0.02964339591562748, -0.04207999259233475, 0.0006073032272979617, -...
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": "bucket_name", "annotation": null, "type_comment": null}}], "kwarg...
def head(self, bucket_name): path = os.path.abspath(os.path.join(self.application.directory, bucket_name)) if (not path.startswith(self.application.directory) or not os.path.isdir(path)): self.set_404() return se...
19,242
[ 0.004443885292857885, -0.02343512326478958, -0.005293408874422312, -0.008114411495625973, 0.0006627746042795479, -0.011875749565660954, -0.037800855934619904, 0.027700316160917282, 0.018009893596172333, -0.005123503971844912, 0.021700924262404442, -0.0543694868683815, -0.011992924846708775, ...
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}}, {"_type": "arg", "_fields": {"arg": "bucket", "annotation":...
class ObjectHandler(BaseRequestHandler): def get(self, bucket, object_name): object_name = urllib.unquote(object_name) path = self._object_path(bucket, object_name) if (not path.startswith(self.application.directory) or not os.path.isfile(path)): self.set_404() ...
19,243
[ -0.004072573967278004, -0.01169638242572546, -0.026398127898573875, -0.016192160546779633, -0.004716580267995596, -0.02885148674249649, 0.012634792365133762, 0.002292355988174677, 0.005415786989033222, -0.004164574667811394, 0.018252981826663017, -0.05834084749221802, -0.011242511682212353, ...
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": "bucket", "annotation": null, "type_comment": null}}, {"_type": "a...
def get(self, bucket, object_name): object_name = urllib.unquote(object_name) path = self._object_path(bucket, object_name) if (not path.startswith(self.application.directory) or not os.path.isfile(path)): self.set_404() return info = os.stat(path)...
19,244
[ 0.01713188923895359, -0.013151410967111588, -0.015164266340434551, -0.0018163759959861636, -0.02168908528983593, 0.0018884657183662057, 0.023769790306687355, 0.03220568969845772, 0.023543626070022583, -0.000805707648396492, 0.045571956783533096, -0.0667634829878807, -0.015955839306116104, ...
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": "bucket", "annotation": null, "type_comment": null}}, {"_type": "a...
def delete(self, bucket, object_name): object_name = urllib.unquote(object_name) path = self._object_path(bucket, object_name) if (not path.startswith(self.application.directory) or not os.path.isfile(path)): self.set_404() return os.unlink(path) ...
19,245
[ -0.005067859776318073, -0.03694672882556915, -0.025813449174165726, -0.006477993447333574, 0.0019397033611312509, -0.01867041364312172, 0.02040691114962101, 0.014606273733079433, 0.016256561502814293, -0.004883126355707645, 0.02670017071068287, -0.05768616124987602, -0.019557135179638863, ...
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": "bucket", "annotation": null, "type_comment": null}}, {"_type": "a...
def put(self, bucket, object_name): object_name = urllib.unquote(object_name) bucket_dir = os.path.abspath(os.path.join( self.application.directory, bucket)) if (not bucket_dir.startswith(self.application.directory) or not os.path.isdir(bucket_dir)): self....
19,246
[ 0.03482510894536972, 0.03084910474717617, 0.010314219631254673, -0.006045863498002291, -0.01065919641405344, 0.02939903363585472, 0.03351536765694618, 0.010466243140399456, -0.020733686164021492, 0.005952310282737017, 0.025376254692673683, -0.0055108568631112576, -0.01627822406589985, 0.05...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Return", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def getregentry(): return codecs.CodecInfo( name='cp1026', encode=Codec().encode, decode=Codec().decode, incrementalencoder=IncrementalEncoder, incrementaldecoder=IncrementalDecoder, streamreader=StreamReader, streamwriter=StreamWriter, )
19,247
[ -0.02528022788465023, 0.01890811137855053, 0.016187120229005814, -0.006431117653846741, 0.027001671493053436, -0.004032897297292948, -0.004782558418810368, 0.015229220502078533, 0.0067087700590491295, 0.03267965838313103, 0.012716468423604965, -0.046451203525066376, 0.0035175057128071785, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Return", "_fields": {"value": {"_type": "List", "_fields": {"c...
def get_data(): return [ { "label": _("Documents"), "icon": "icon-star", "items": [ { "type": "doctype", "name": "Journal Entry", "description": _("Accounting journal entries.") }, { "type": "doctype", "name": "Sales Invoice", "description": _("Bills raised to Custo...
19,248
[ -0.006894896272569895, -0.01743134669959545, -0.012116645462810993, -0.017442282289266586, -0.0031521867495030165, -0.027120288461446762, -0.0046448963694274426, -0.012488455511629581, 0.030444711446762085, -0.007463547401130199, 0.03311299905180931, -0.03306925669312477, -0.0181640330702066...
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": "link_text", "annotation": null, "type_comment": null}}], "kwarg":...
def click_link(self, link_text): xpath = "//a[contains(text(),'" + link_text + "')]" element = self.driver.find_element_by_xpath(xpath) # scroll the element into view so it can be # observed with SauceLabs screencast script = "arguments[0].scrollIntoView(true);" self.dri...
19,249
[ -0.008336425758898258, 0.01218621339648962, 0.023006927222013474, -0.022065995261073112, -0.009988793171942234, -0.006196379661560059, -0.001867519924417138, -0.03348339721560478, -0.00024186678638216108, 0.04082725569605827, 0.005533711053431034, -0.037247125059366226, -0.04601385444402695,...
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}}, {"_type": "arg", "_fields": {"arg": "logger", "annotation":...
class Navigation(Base): def __init__(self, logger, directory, base_url=r'http://localhost/', driver=None, driver_wait=10, delay_secs=0): super(Navigation, self).__init__(logger, directory, base_url, driver, driver_wait, delay_secs) def click_li...
19,250
[ -0.013690061867237091, -0.043552957475185394, 0.03262411430478096, -0.020337862893939018, 0.027217699214816093, -0.01514028012752533, -0.019838986918330193, -0.0002552384394221008, 0.027937008067965508, 0.03638307750225067, -0.015001059509813786, -0.07081706821918488, 0.002756865229457617, ...
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 HandlerNotFoundTest(SimpleTestCase): def test_invalid_urls(self): response = self.client.get('~%A9helloworld') self.assertEqual(response.status_code, 404) self.assertContains(response, '~%A9helloworld', status_code=404) response = self.client.get('d%aao%aaw%aan%aal%aao%aaa%aa...
19,251
[ -0.007506002672016621, -0.05072017386555672, 0.0184856578707695, 0.0047671617940068245, 0.032210227102041245, -0.005419990047812462, -0.03626686707139015, 0.004621414467692375, 0.05125458166003227, 0.03910894691944122, -0.0024807460140436888, -0.07481711357831955, -0.015947218984365463, -0...
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 test_invalid_urls(self): response = self.client.get('~%A9helloworld') self.assertEqual(response.status_code, 404) self.assertContains(response, '~%A9helloworld', status_code=404) response = self.client.get('d%aao%aaw%aan%aal%aao%aaa%aad%aa/') self.assertEqual(response.status...
19,252
[ -0.003373560030013323, 0.012057249434292316, 0.01578444428741932, -0.04483859986066818, -0.0001058622874552384, 0.011316301301121712, -0.010249785147607327, -0.02566375583410263, 0.03406117111444473, -0.006707827560603619, 0.014459718950092793, 0.007920288480818272, -0.016996905207633972, ...
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 test_get_script_name(self): # Regression test for #23173 # Test first without PATH_INFO script_name = get_script_name({'SCRIPT_URL': '/foobar/'}) self.assertEqual(script_name, '/foobar/') script_name = get_script_name({'SCRIPT_URL': '/foobar/', 'PATH_INFO': '/'}) sel...
19,253
[ -0.014247332699596882, 0.005454219412058592, 0.019898567348718643, -0.04608089476823807, 0.00016995829355437309, -0.003165209898725152, -0.01259862445294857, -0.03423922508955002, 0.027374789118766785, -0.013977732509374619, -0.01789730414748192, 0.0000036580929645424476, -0.0182291213423013...
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 ScriptNameTests(SimpleTestCase): def test_get_script_name(self): # Regression test for #23173 # Test first without PATH_INFO script_name = get_script_name({'SCRIPT_URL': '/foobar/'}) self.assertEqual(script_name, '/foobar/') script_name = get_script_name({'SCRIPT_URL':...
19,254
[ 0.03299297019839287, -0.026862794533371925, 0.013665606267750263, -0.013024075888097286, 0.01568184234201908, 0.01629282347857952, -0.007245215121656656, -0.017647165805101395, 0.047086261212825775, 0.024724360555410385, 0.003739712294191122, -0.0119344936683774, 0.04354257136583328, 0.019...
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 test_repr(self): class WrappedCallable: def __repr__(self): return "repr from the wrapped callable" def __call__(self): pass actual = repr(CallableSettingWrapper(WrappedCallable())) self.assertEqual(actual, "repr from the wrapped call...
19,255
[ -0.010982319712638855, -0.029443396255373955, 0.01695634238421917, -0.021886033937335014, -0.0023581667337566614, 0.007849326357245445, -0.0043541863560676575, -0.005002682097256184, 0.019550325348973274, 0.0019904051441699266, 0.0023272859398275614, -0.04186307638883591, 0.02643392607569694...
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 NonDjangoTemplatesDebugViewTests(SimpleTestCase): def test_400(self): # When DEBUG=True, technical_500_template() is called. with patch_logger('django.security.SuspiciousOperation', 'error'): response = self.client.get('/raises400/') self.assertContains(response, '<div...
19,256
[ 0.013559659942984581, -0.008923772722482681, 0.02995305322110653, -0.04275456443428993, 0.00855712778866291, 0.039249684661626816, -0.035844236612319946, -0.0006416292162612081, 0.00993049331009388, 0.005238677375018597, -0.010483568534255028, -0.006077611353248358, -0.0034240938257426023, ...
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 test_reporting_of_nested_exceptions(self): request = self.rf.get('/test_view/') try: try: raise AttributeError('Top level') except AttributeError as explicit: try: raise ValueError('Second exception') from explicit ...
19,257
[ 0.014361030422151089, 0.024250362068414688, 0.002103786449879408, -0.07071179896593094, 0.0012814670335501432, 0.01685486175119877, -0.044029027223587036, -0.03442224860191345, 0.04262854903936386, 0.007862326689064503, 0.05135082080960274, -0.014889280311763287, 0.048156749457120895, 0.03...
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 test_reporting_frames_without_source(self): try: source = "def funcName():\n raise Error('Whoops')\nfuncName()" namespace = {} code = compile(source, 'generated', 'exec') exec(code, namespace) except Exception: exc_type, exc_value, tb = ...
19,258
[ 0.027742302045226097, -0.03474418446421623, 0.018181022256612778, -0.022941770032048225, 0.010078465566039085, 0.0054337517358362675, 0.00030935750692151487, 0.01586032286286354, 0.025023769587278366, -0.007088078651577234, -0.0137252788990736, -0.04394741356372833, 0.008659523911774158, 0...
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 test_message_only(self): reporter = ExceptionReporter(None, None, "I'm a little teapot", None) html = reporter.get_traceback_html() self.assertInHTML('<h1>Report</h1>', html) self.assertIn('<pre class="exception_value">I&#39;m a little teapot</pre>', html) self.assertNotIn('<...
19,259
[ 0.02629842609167099, 0.004391836933791637, 0.024849090725183487, -0.03179187327623367, 0.01443491317331791, -0.009753793478012085, -0.038758035749197006, 0.010472617112100124, 0.005432086065411568, 0.005633707158267498, 0.014855688437819481, -0.021704966202378273, 0.03375548869371414, -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": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_template_exception(self): request = self.rf.get('/test_view/') try: render(request, 'debug/template_error.html') except Exception: exc_type, exc_value, tb = sys.exc_info() reporter = ExceptionReporter(request, exc_type, exc_value, tb) text = repor...
19,260
[ -0.0033915506210178137, 0.023536810651421547, 0.0029807041864842176, 0.005021149292588234, -0.043235376477241516, -0.014768410474061966, -0.021099304780364037, -0.005205892492085695, -0.010797814466059208, 0.032316237688064575, 0.035978011786937714, 0.004144309554249048, -0.00526379700750112...
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}}, {"_type": "arg", "_fields": {"arg": "parent", "annotation":...
class WxSlider(wx.Slider): def __init__(self, parent, id, value, minValue, maxValue,\ pos=wx.DefaultPosition, size=wx.DefaultSize,\ style=wx.SL_HORIZONTAL, validator=wx.DefaultValidator, name="slider", textSize=(40,20)): self.maxValue = maxValue self.minValue = min...
19,261
[ 0.0020705058705061674, -0.054944153875112534, 0.05090414360165596, -0.01490051206201315, -0.01469851192086935, 0.014983689412474632, 0.022089356556534767, 0.013082507066428661, 0.021970532834529877, 0.023408301174640656, 0.013736038468778133, -0.05584721639752388, -0.05404109135270119, -0....
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 HelperFunctionTests(SimpleTestCase): def test_cleanse_setting_basic(self): self.assertEqual(cleanse_setting('TEST', 'TEST'), 'TEST') self.assertEqual(cleanse_setting('PASSWORD', 'super_secret'), CLEANSED_SUBSTITUTE) def test_cleanse_setting_ignore_case(self): self.assertEqual(cle...
19,262
[ 0.006835779640823603, 0.03163547068834305, -0.013052470050752163, 0.015724873170256615, -0.038920093327760696, 0.02261740155518055, -0.006103190593421459, 0.004759250208735466, 0.020584724843502045, 0.029262296855449677, 0.052705150097608566, 0.02009977214038372, -0.056832414120435715, 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}}, {"_type": "arg", "_fields": {"arg": "event", "annotation": null, "type_comment": null}}], "kwarg": nul...
def onChange(self, event): # update textValue from slider self.textValue.Clear() floatVal = wx.Slider.GetValue(self) * (self.maxValue - self.minValue) / 100.0 + self.minValue self.textValue.WriteText("%.2f"%floatVal) if self.updateCB: # callback function sould receive event as th...
19,263
[ 0.01720459572970867, 0.013469751924276352, 0.018431128934025764, 0.009265288710594177, -0.04497283697128296, 0.005215523298829794, -0.025282027199864388, -0.026784805580973625, 0.0008908931049518287, 0.04923807457089424, 0.04442034661769867, -0.005071875173598528, -0.01671840436756611, 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": "parent", "annotation": null, "type_comment": null}}, {"_type": "a...
def __init__(self, parent, id, value, minValue, maxValue,\ pos=wx.DefaultPosition, size=wx.DefaultSize,\ style=wx.SL_HORIZONTAL, validator=wx.DefaultValidator, name="slider", textSize=(40,20)): self.maxValue = maxValue self.minValue = minValue intVal = 100.0 / ...
19,264
[ 0.03206279128789902, 0.02395186759531498, -0.0013625564752146602, 0.016345076262950897, -0.024870507419109344, 0.019571520388126373, 0.021095119416713715, 0.032891806215047836, 0.0036913659423589706, -0.007886863313615322, 0.00664333812892437, 0.03596140816807747, -0.009516890160739422, 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 Enable(self): # overriding wx.Slider.Enable() wx.Slider.Enable(self) self.Bind(wx.EVT_SLIDER, self.onChange) if not self.textValue is None: self.textValue.Enable() self.textValue.Bind(wx.EVT_TEXT_ENTER, self.onEnter)
19,265
[ 0.023517990484833717, 0.026607945561408997, -0.003808798734098673, 0.017531203106045723, -0.03954713046550751, 0.04325937107205391, -0.008593937382102013, 0.008974816650152206, 0.022938624024391174, 0.025299007073044777, 0.028217297047376633, -0.006834379397332668, -0.04053420200943947, 0....
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": "event", "annotation": null, "type_comment": null}}], "kwarg": nul...
def onEnter(self, event): # update slider from textValue if self.textValue is None: return intVal = 100.0 / (self.maxValue - self.minValue) * (float(self.textValue.GetValue()) - self.minValue) wx.Slider.SetValue(self, intVal) if self.updateCB: # callback function shou...
19,266
[ 0.028734352439641953, 0.009647024795413017, -0.038817789405584335, 0.03716401383280754, 0.03353489562869072, 0.017456522211432457, 0.059627801179885864, 0.056320250034332275, 0.017594335600733757, 0.03528054803609848, 0.007798011880367994, -0.012116204015910625, 0.05071578919887543, 0.0374...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "form", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def do_login(form): status = { 'success' : True } try: username = re.escape(form['user']) password = md5(form['pass']).hexdigest() uid = DB.get_user(username, password) status['uid'] = uid status['username'] = username except Exception as e: status['error'] = str(e) status['success'] = False return st...
19,267
[ 0.047770123928785324, 0.00689844461157918, -0.015184741467237473, 0.02390838786959648, 0.017750520259141922, 0.033891595900058746, 0.07366115599870682, 0.05042920261621475, 0.006181192584335804, 0.05467439815402031, 0.0009782029082998633, 0.000727820850443095, 0.05458109825849533, 0.029529...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "form", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def do_register(form): status = {'success' : True} try: username = form['user'] pass1 = form['pass'] pass2 = form['pass2'] email = form['email'] if re.match("^[a-zA-Z0-9_.-]+$", username) is None: raise ValueError('Invalid Username') if DB.user_exist(username, email): raise ValueError('User alread...
19,268
[ -0.001080287853255868, -0.0004125684790778905, 0.022178728133440018, -0.03688496723771095, -0.028529148548841476, -0.006087809801101685, 0.0374101884663105, -0.025664296001195908, 0.016962310299277306, 0.006066920235753059, 0.03265931084752083, -0.006666748784482479, 0.0047986265271902084, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "mocker", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": ...
def test_get_bin_path(mocker): path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' mocker.patch.dict('os.environ', {'PATH': path}) mocker.patch('os.pathsep', ':') mocker.patch('os.path.isdir', return_value=False) mocker.patch('ansible.module_utils.common.process.is_executable', re...
19,269
[ 0.02822699211537838, 0.01658509112894535, 0.013085590675473213, -0.041716817766427994, -0.010411879979074001, 0.014748719520866871, 0.019449368119239807, -0.0008308425894938409, 0.03806717321276665, 0.017659194767475128, 0.03261580690741539, -0.018952740356326103, 0.006155886687338352, -0....
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "mocker", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": ...
def test_get_path_path_raise_valueerror(mocker): mocker.patch.dict('os.environ', {'PATH': ''}) mocker.patch('os.path.exists', return_value=False) mocker.patch('os.path.isdir', return_value=False) mocker.patch('ansible.module_utils.common.process.is_executable', return_value=True) with pytest.raise...
19,270
[ 0.032227590680122375, 0.020623505115509033, 0.03405839949846268, -0.03796232491731644, -0.0058558909222483635, -0.043831679970026016, -0.008137669414281845, -0.03497380390763283, 0.004990968853235245, 0.002525773597881198, 0.019936952739953995, -0.0105473343282938, -0.00626647612079978, -0...
16
{"_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": "ctx", "annotation": null, "type_comment": null}}, {"_type": "arg"...
def render_head_tag(self, ctx, data): ctx.fillSlots('meta_tags', "") ## CSS stylesheets = [] color_option = self._get_color_option(ctx) global_css_includes = self.global_css_includes + ['zoto_%s.css' % color_option] for file in global_css_includes + self.local_css_includes: stylesheets += [T.link(type="...
19,271
[ 0.004312931094318628, -0.032019197940826416, -0.009397484362125397, -0.00042894057696685195, 0.027527477592229843, -0.017803778871893883, 0.022257860749959946, -0.00009194384620059282, -0.003183727152645588, 0.01998690702021122, 0.026975423097610474, -0.030388128012418747, -0.009152824059128...
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": "ctx", "annotation": null, "type_comment": null}}], "kwarg": null,...
def renderHTTP(self, ctx): ### TODO: this code can be replaced with cookie logic. lang = ctx.arg('lang') if lang is not None: self.log.debug("setting alternate language: %s" % lang) ctx.remember([lang], inevow.ILanguages) ## self.log.debug("checking ssl: %s" % self.require_ssl) request = inevow.IReque...
19,272
[ 0.04932872951030731, 0.01877526566386223, 0.018064720556139946, -0.01964237354695797, 0.04145251214504242, -0.056265585124492645, 0.019136561080813408, -0.002557663479819894, 0.013127030804753304, 0.019823020324110985, 0.014524035155773163, -0.0005216188146732748, -0.029240760952234268, -0...
14
{"_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": "ctx", "annotation": null, "type_comment": null}}, {"_type": "arg"...
def render_footer(self, ctx, data): ctx.fillSlots('blog_path', T.a(href="http://blog.%s/" % self.app.servers.httpserver._cfg_site_domain)[ "blog" ] ) ctx.fillSlots('blog_path', T.a(href="http://blog.%s/" % self.app.servers.httpserver._cfg_site_domain)[ "blog" ] ) return ctx
19,273
[ 0.011983758769929409, 0.0000985452497843653, -0.03368053212761879, -0.0472787506878376, -0.03234171122312546, -0.0027038929983973503, -0.00024077446141745895, 0.0008884454146027565, -0.013178196735680103, 0.02790522575378418, 0.0048958840779960155, -0.022759953513741493, -0.00711412634700536...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "item", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def mainlist(item): logger.info("streamondemand.darkstream mainlist") itemlist = [Item(channel=__channel__, title="[COLOR azure]In Programmazione Nelle Sale[/COLOR]", action="fichas", url=host, thumbnail="http://orig03.deviantar...
19,274
[ 0.031380683183670044, -0.011299981735646725, -0.06520725041627884, -0.03336184844374657, -0.03903630003333092, 0.01827074959874153, -0.012608529068529606, -0.008450526744127274, -0.025559481233358383, 0.016252895817160606, 0.03847374767065048, -0.03005990758538246, 0.003650480881333351, -0...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "item", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def cat_registi(item): logger.info("streamondemand.darkstream cat_registi") itemlist = [] # Descarga la pagina data = scrapertools.cache_page(item.url) # Extrae las entradas (carpetas) patron = '<a href="([^"]+)">(.*?)</a>[^<]+<em>[^>]+>[^<]+<' matches = re.compile(patron, re.DOTALL).finda...
19,275
[ 0.032859738916158676, -0.012794057838618755, -0.06496982276439667, -0.026337767019867897, -0.03173526003956795, -0.00020107848104089499, -0.020652906969189644, 0.0030891902279108763, -0.00935815367847681, -0.0033328270073980093, 0.029711199924349785, -0.04205546900629997, 0.01730446331202984...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "item", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def cat_attori(item): logger.info("streamondemand.darkstream cat_attori") itemlist = [] # Descarga la pagina data = scrapertools.cache_page(item.url) # Extrae las entradas (carpetas) patron = '<a href="([^"]+)">(.*?)</a>.*?<span' matches = re.compile(patron, re.DOTALL).findall(data) f...
19,276
[ 0.03218953683972359, -0.014934330247342587, -0.06311772763729095, -0.03123091347515583, -0.015312734059989452, 0.007473472040146589, -0.009882641956210136, -0.005228276830166578, -0.0075176190584897995, -0.004288574680685997, 0.03289588913321495, -0.0412207692861557, 0.014719901606440544, ...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "item", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def cat_attrici(item): logger.info("streamondemand.darkstream cat_attrici") itemlist = [] # Descarga la pagina data = scrapertools.cache_page(item.url) # Extrae las entradas (carpetas) patron = '<a href="([^"]+)">(.*?)</a>.*?<span' matches = re.compile(patron, re.DOTALL).findall(data) ...
19,277
[ 0.012080132029950619, -0.01916986145079136, -0.05225526914000511, -0.0380038321018219, -0.01757437363266945, 0.017682338133454323, -0.012404028326272964, -0.004093689378350973, -0.024160264059901237, 0.03735603764653206, 0.04383396357297897, -0.04189058765769005, -0.006933779921382666, -0....
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "item", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def categorias(item): logger.info("streamondemand.darkstream categorias") itemlist = [] # Descarga la pagina data = scrapertools.cache_page(item.url) # Extrae las entradas (carpetas) patron = '<li class="menu-item-3[^>]+><a[^=]+=[^=]+="([^"]+)">(.*?)</a>' matches = re.compile(patron, re.DO...
19,278
[ 0.02528291381895542, -0.035310130566358566, -0.05152079835534096, -0.049992840737104416, -0.02525903843343258, 0.022644799202680588, -0.019600823521614075, 0.0020755743607878685, -0.0242682546377182, 0.020293178036808968, 0.04634007066488266, -0.04913336783647537, 0.009627322666347027, -0....
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "item", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def cat_elenco(item): logger.info("streamondemand.darkstream cat_elenco") itemlist = [] # Descarga la pagina data = scrapertools.cache_page(item.url) # Extrae las entradas (carpetas) patron = '<a href="([^"]+)">(.*?)</a>[^<]+<span style=' matches = re.compile(patron, re.DOTALL).findall(dat...
19,279
[ 0.03338867425918579, -0.00789326149970293, -0.06078813970088959, -0.03612390533089638, -0.010817129164934158, 0.006731967907398939, -0.019665364176034927, 0.019288090988993645, -0.005871313624083996, 0.012037372216582298, 0.035534415394067764, -0.045815110206604004, -0.020113375037908554, ...
14
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "item", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def peliculas(item): logger.info("streamondemand.darkstream peliculas") itemlist = [] # Descarga la pagina data = scrapertools.cache_page(item.url) # Extrae las entradas (carpetas) patron = '<h2 class="art-postheader"><a href="([^"]+)"[^>]+>(.*?)</a></h2>.*?' matches = re.compile(patron, r...
19,280
[ 0.0014485579449683428, -0.025342639535665512, -0.013652856461703777, -0.017781643196940422, 0.033916834741830826, -0.0035303651820868254, 0.02326558157801628, -0.007383687887340784, -0.025140000507235527, -0.003796329954639077, 0.03538597375154495, -0.015527274459600449, 0.005993705242872238...
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "CrockoCom"}}, "targets": [{"_type": "Name", "_fields": {"id": "__name__", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": nu...
class CrockoCom(SimpleHoster): __name__ = "CrockoCom" __type__ = "hoster" __pattern__ = r"http://(www\.)?(crocko|easy-share).com/.*" __version__ = "0.14" __description__ = """Crocko Download Hoster""" __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") FILE_NAME_PAT...
19,281
[ 0.029616324231028557, -0.006594925187528133, -0.061130817979574203, -0.049133408814668655, -0.010275672189891338, 0.00871211476624012, -0.011711467057466507, 0.011273427866399288, -0.013603554107248783, -0.0036138242576271296, 0.03976423293352127, -0.04110268875956535, -0.023362096399068832,...
14
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "item", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def fichas(item): logger.info("streamondemand.darkstream peliculas") itemlist = [] # Descarga la pagina data = scrapertools.cache_page(item.url) # Extrae las entradas (carpetas) patron = '<font size="1">\s*<a href="(.*?)">\s*<img[^s]+src="(.*?)"[^>]+></a><br>\s*(.*?)<' matches = re.compile...
19,282
[ 0.027737995609641075, -0.014539477415382862, 0.02555272914469242, 0.0010522807715460658, 0.03255551680922508, -0.012031386606395245, 0.02326813153922558, 0.03531193360686302, -0.021902339532971382, 0.03223269432783127, 0.051602110266685486, -0.027837326750159264, -0.004084960091859102, 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 handleFree(self): if "You need Premium membership to download this file." in self.html: self.fail("You need Premium membership to download this file.") for i in range(5): found = re.search(self.CAPTCHA_URL_PATTERN, self.html) if found: url, wait_t...
19,283
[ 0.02878994680941105, -0.01834108494222164, 0.01150486245751381, 0.011827221140265465, 0.016351355239748955, -0.01709611527621746, -0.040394850075244904, 0.032391469925642014, 0.031190961599349976, 0.03603745251893997, 0.007330876309424639, -0.05082147940993309, 0.011849452741444111, -0.053...
14
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "annotation": null, "type_comment": null}}, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}...
def discover_resources(**kwargs): discovered_routes = [] for handler in AWSHandler.objects.all(): try: wrapper = handler.get_api_wrapper() except Exception: continue set_progress('Connecting to Amazon for handler: {}'.format(handler)) client = wrapper.get_...
19,284
[ 0.010094788856804371, 0.01000362541526556, 0.04358809441328049, 0.0016774001996964216, 0.0060896920040249825, 0.018293386325240135, -0.01368661317974329, 0.031189918518066406, -0.012209771201014519, -0.03332921117544174, 0.03323196992278099, -0.05066234618425369, 0.08348104357719421, -0.02...
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": "iprot", "annotation": null, "type_comment": null}}, {"_type": "ar...
def process(self, iprot, oprot): (name, type, seqid) = iprot.readMessageBegin(); if type != TMessageType.CALL & type != TMessageType.ONEWAY: raise TException("TMultiplex protocol only supports CALL & ONEWAY") index = name.find(TMultiplexedProtocol.SEPARATOR) if index < 0: raise TException("...
19,285
[ -0.02092045359313488, 0.0034631462767720222, 0.04974733293056488, -0.010912178084254265, 0.009403858333826065, 0.018513675779104233, 0.01681477390229702, 0.028598183766007423, -0.0230876412242651, -0.0031228214502334595, 0.028293251991271973, -0.030645577237010002, 0.06987278908491135, -0....
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 TMultiplexedProcessor(TProcessor): def __init__(self): self.services = {} def registerProcessor(self, serviceName, processor): self.services[serviceName] = processor def process(self, iprot, oprot): (name, type, seqid) = iprot.readMessageBegin(); if type != TMessageType.CALL & type != TMes...
19,286
[ 0.008008970879018307, -0.01583758369088173, 0.041369348764419556, -0.01226426474750042, -0.0021755544003099203, -0.01747206784784794, 0.018204767256975174, -0.012095180340111256, -0.00808224081993103, 0.04229367896914482, -0.035665564239025116, -0.0390247106552124, 0.00701137213036418, 0.0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "length", "annotation": null, "type_comment": null}}], "kwarg": nul...
def rand_str(cls, length=None): # from http://stackoverflow.com/questions/785058/random-strings-in-python-2-6-is-this-ok if not length: length = cls.rand_int(end=10) nbits = length * 6 + 1 bits = random.getrandbits(nbits) uc = u"%0x" % bits newlen = int(len(uc...
19,287
[ -0.0116558987647295, -0.017042089253664017, 0.02806316316127777, -0.012244910933077335, 0.026374660432338715, -0.027277812361717224, -0.004901891108602285, 0.024856317788362503, -0.0006560942274518311, 0.02607361041009426, -0.0012262908276170492, -0.05926772579550743, -0.005533443298190832, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "start", "annotation": n...
class DjangoFunctionalFactory: @classmethod def rand_int(cls, start=0, end=100): return random.randint(start,end) @classmethod def rand_str(cls, length=None): # from http://stackoverflow.com/questions/785058/random-strings-in-python-2-6-is-this-ok if not length: leng...
19,288
[ -0.0001496493787271902, 0.004791395738720894, 0.01331756915897131, 0.012658490799367428, 0.0495041124522686, 0.010513870045542717, 0.03548562154173851, 0.017428962513804436, -0.00889755878597498, 0.01576557382941246, -0.022596975788474083, -0.005429551005363464, 0.026886215433478355, -0.00...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "is_admin", "annotation": null, "type_comment": null}}, {"_type": "...
def user(cls, is_admin=False, is_super_admin=False, *args, **kwargs): password = kwargs.get("password", cls.rand_str()) options = { "username": cls.rand_str(), "email": cls.rand_email(), "first_name": cls.rand_name(), "last_name": cls.rand_name(), ...
19,289
[ -0.00010631061741150916, 0.0010549220023676753, 0.007338355295360088, -0.007525422144681215, 0.04733319580554962, 0.00840196292847395, 0.0166435819119215, 0.023345911875367165, 0.008535581640899181, -0.003428663592785597, -0.017744602635502815, -0.053447600454092026, 0.00796903669834137, -...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "is_admin", "annotation"...
class Factory(DjangoFunctionalFactory): @classmethod def user(cls, is_admin=False, is_super_admin=False, *args, **kwargs): password = kwargs.get("password", cls.rand_str()) options = { "username": cls.rand_str(), "email": cls.rand_email(), "first_name": cls.r...
19,290
[ -0.015536217950284481, 0.0073769586160779, 0.04833794757723808, -0.008996457792818546, -0.06445059925317764, -0.016524387523531914, -0.016167547553777695, -0.03944442421197891, -0.021602479740977287, 0.017883120104670525, -0.03186846151947975, -0.04339710250496864, 0.029398037120699883, -0...
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 defineCharacteristics(self): self.name = 'lasoverlap' self.group = 'LAStools' self.addParametersVerboseGUI() self.addParametersPointInputGUI() self.addParametersFilter1ReturnClassFlagsGUI() self.addParameter(ParameterNumber(lasoverlap.CHECK_STEP, ...
19,291
[ -0.018907876685261726, 0.0011532666394487023, 0.045738331973552704, -0.054926495999097824, -0.03905602917075157, -0.017490418627858162, -0.02310962788760662, -0.020262055099010468, -0.02451442927122116, 0.025311749428510666, -0.017249956727027893, -0.06459558755159378, 0.01656654104590416, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "CHECK_STEP"}}, "targets": [{"_type": "Name", "_fields": {"id": "CHECK_STEP", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment":...
class lasoverlap(LAStoolsAlgorithm): CHECK_STEP = 'CHECK_STEP' ATTRIBUTE = 'ATTRIBUTE' OPERATION = 'OPERATION' ATTRIBUTES = ['elevation', 'intensity', 'number_of_returns', 'scan_angle_abs', 'density'] OPERATIONS = ['lowest', 'highest', 'average'] CREATE_OVERLAP_RASTER = 'CREAT...
19,292
[ -0.007320914417505264, -0.01414998434484005, 0.04527490586042404, -0.04701527580618858, -0.03702705353498459, -0.02590380422770977, -0.008241546340286732, 0.005719267297536135, -0.010536819696426392, 0.02958633005619049, -0.0050792391411960125, -0.041314925998449326, 0.023305855691432953, ...
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": "progress", "annotation": null, "type_comment": null}}], "kwarg": ...
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasoverlap.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands...
19,293
[ -0.005206881556659937, -0.00889767799526453, 0.014788040891289711, -0.015670351684093475, -0.030147720128297806, 0.021995658054947853, 0.021672558039426804, -0.009804843924939632, 0.002345582004636526, -0.004750192165374756, 0.05810829997062683, 0.013259529136121273, -0.004318356513977051, ...
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 Buffers : def __init__( self ) : self.Dirty = False self.Slots = [(-3, "")] * ba_settings.get("MaxSlots", 10) sl = ba_settings.get("slots") if sl : i = 0 for s in sl : if i < len(self.Slots) : self.Slots[i] = s i += 1 def Set( self, aSlot, aName, aPath,...
19,294
[ 0.04146382957696915, -0.0015344999264925718, 0.055338162928819656, -0.02429998107254505, -0.028517989441752434, 0.008263585157692432, 0.028226178139448166, -0.03366449102759361, -0.002097398741170764, 0.02252257987856865, 0.03745804727077484, -0.02835881896317005, 0.008416122756898403, 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 __init__( self ) : self.Dirty = False self.Slots = [(-3, "")] * ba_settings.get("MaxSlots", 10) sl = ba_settings.get("slots") if sl : i = 0 for s in sl : if i < len(self.Slots) : self.Slots[i] = s i += 1
19,295
[ 0.05662863329052925, 0.008115800097584724, 0.0037212581373751163, -0.039305221289396286, -0.047093477100133896, -0.037970785051584244, -0.04197409376502037, -0.02571823075413704, 0.021714922040700912, 0.020247042179107666, 0.023510344326496124, -0.023522475734353065, 0.012980427592992783, ...
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 GetItems( self ) : def nameString(aSlot) : _, name = os.path.split(aSlot[1]) if aSlot[0] > 0 : name += ":" + str(aSlot[0]) return name return [nameString(slot) for slot in self.Slots ]
19,296
[ -0.0467427596449852, -0.02236468344926834, -0.004704591352492571, -0.03148215264081955, -0.03166518732905388, 0.03569197282195091, 0.03294643759727478, 0.008825755678117275, -0.03981027752161026, -0.003969588316977024, 0.02379464916884899, 0.038185834884643555, 0.04932813718914986, 0.03754...
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}}, {"_type": "arg", "_fields": {"arg": "slot", "annotation": n...
class SetBufferCommand( sublime_plugin.WindowCommand ) : def run( self, slot, row = False ) : vw = self.window.active_view() if row : print("row set") pnt = vw.sel()[0].a vrow, _ = vw.rowcol(pnt) vrow += 1 #1 based. else: vrow = 0 buf.Set(slot, vw.name(), vw.file_name(),...
19,297
[ -0.025927472859621048, 0.006863494403660297, -0.0056174262426793575, 0.0015814370708540082, -0.013946713879704475, 0.005235799588263035, 0.06152281537652016, 0.021197617053985596, 0.005079679656773806, -0.030692022293806076, 0.032866135239601135, 0.04875567555427551, -0.0003942750918213278, ...
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": "aWindow", "annotation": null, "type_comment": null}}, {"_type": "...
def SetActive( self, aWindow, aSlot ) : t, p = buf.Get(aSlot) if t >= 0 : if t > 0 : openF = sublime.ENCODED_POSITION p = p + ':' + str(t) else: openF = 0 vw = aWindow.open_file(p, openF) if vw : # print("setting focus to " + p) g, i = aWindow.get_v...
19,298
[ -0.023837842047214508, 0.03168126195669174, 0.026247259229421616, -0.04339512810111046, -0.03924272954463959, -0.010451484471559525, 0.02878483571112156, -0.02205641195178032, -0.041318926960229874, -0.008067700080573559, 0.00908016785979271, 0.05639059469103813, 0.0322195366024971, 0.0350...
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": "slot", "annotation": null, "type_comment": null}}, {"_type": "arg...
def run( self, slot, row = False ) : vw = self.window.active_view() if row : print("row set") pnt = vw.sel()[0].a vrow, _ = vw.rowcol(pnt) vrow += 1 #1 based. else: vrow = 0 buf.Set(slot, vw.name(), vw.file_name(), vrow)
19,299
[ -0.030354520305991173, 0.02931392192840576, 0.010167989879846573, -0.00019995569891761988, -0.03290066868066788, -0.006857996340841055, 0.004538787063211203, 0.043727338314056396, -0.03546895831823349, -0.008806353434920311, 0.015996456146240234, 0.015996456146240234, 0.03633243590593338, ...
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 GotoBufferCommand( sublime_plugin.WindowCommand ) : def run( self ) : win = sublime.active_window() win.show_quick_panel(self.get_items(), self.select) def select( self, aIndex ) : if aIndex != -1 : buf.SetActive(self.window, aIndex) def get_items( self ) : return buf.GetItems()
19,300
[ 0.012727919965982437, 0.03837643563747406, 0.001193596632219851, 0.008262380957603455, 0.012285899370908737, 0.038920462131500244, 0.006080613471567631, 0.040280524641275406, -0.041164565831422806, 0.05843736231327057, -0.013181274756789207, -0.0410512275993824, -0.0005581923760473728, 0.0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "AsyncFunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "annotation": null, "type_comment": null}}...
async def get_by(cls, **kwargs): results = await super().get_by(**kwargs) result_list = [] for result in results: obj = WordFilter(guild_id=result.get("guild_id"), friendly_name=result.get("friendly_name"), pattern=result.get("pattern"), enabled=result.ge...