index int64 | statement_id int64 | statement string | lineno int64 | end_lineno int64 | comprehension_types list | metadata dict |
|---|---|---|---|---|---|---|
610 | 3 | return np.array(["spec-%04d-%05d-%04d%s" %
(plate[i], mjd[i], fiberid[i], extname)
for i in range(len(mjd))]) | 143 | 145 | [
"ListComp"
] | {
"hexsha": "f701930267eb677de0ff92fb8288386877a8c15a",
"max_stars_repo_name": "hypergravity/bopy",
"max_stars_repo_path": "bopy/spec/lamost.py",
"lang": "Python"
} |
610 | 4 | return np.array(["%s%04d%sspec-%04d-%05d-%04d%s" %
(dirpath, plate[i], os.path.sep, plate[i],
mjd[i], fiberid[i], extname)
for i in range(len(mjd))]) | 158 | 161 | [
"ListComp"
] | {
"hexsha": "f701930267eb677de0ff92fb8288386877a8c15a",
"max_stars_repo_name": "hypergravity/bopy",
"max_stars_repo_path": "bopy/spec/lamost.py",
"lang": "Python"
} |
612 | 0 | elevation = [u for u in elevation if q in str(u['id']) or q in str(u['name'])] | 188 | 188 | [
"ListComp"
] | {
"hexsha": "f701939035f7fb6a21d19379da73cb9e2f9f3826",
"max_stars_repo_name": "aslafy-z/netbox",
"max_stars_repo_path": "netbox/dcim/api/views.py",
"lang": "Python"
} |
612 | 1 | response = OrderedDict([(m, None) for m in napalm_methods]) | 403 | 403 | [
"ListComp"
] | {
"hexsha": "f701939035f7fb6a21d19379da73cb9e2f9f3826",
"max_stars_repo_name": "aslafy-z/netbox",
"max_stars_repo_path": "netbox/dcim/api/views.py",
"lang": "Python"
} |
616 | 0 | dim_names = tuple([i for i in dimensions if i != "time"]) | 1,102 | 1,102 | [
"ListComp"
] | {
"hexsha": "f70194cedfde30f4c6fd6c44b9d3193b0d9a8861",
"max_stars_repo_name": "aleaf/flopy",
"max_stars_repo_path": "flopy/export/netcdf.py",
"lang": "Python"
} |
616 | 1 | attr = {n for n in dir(md) if "_" not in n[0]} | 1,399 | 1,399 | [
"SetComp"
] | {
"hexsha": "f70194cedfde30f4c6fd6c44b9d3193b0d9a8861",
"max_stars_repo_name": "aleaf/flopy",
"max_stars_repo_path": "flopy/export/netcdf.py",
"lang": "Python"
} |
616 | 2 | packages = [(pp.name[0], pp) for pp in self.model.packagelist] | 1,483 | 1,483 | [
"ListComp"
] | {
"hexsha": "f70194cedfde30f4c6fd6c44b9d3193b0d9a8861",
"max_stars_repo_name": "aleaf/flopy",
"max_stars_repo_path": "flopy/export/netcdf.py",
"lang": "Python"
} |
616 | 3 | attr = [v.split("_")[-1] for v in self.nc.variables] | 1,485 | 1,485 | [
"ListComp"
] | {
"hexsha": "f70194cedfde30f4c6fd6c44b9d3193b0d9a8861",
"max_stars_repo_name": "aleaf/flopy",
"max_stars_repo_path": "flopy/export/netcdf.py",
"lang": "Python"
} |
625 | 0 | [input_stack.push(x) for x in input_data] | 35 | 35 | [
"ListComp"
] | {
"hexsha": "f70198ed9246ec768bc297a4af607b887745c332",
"max_stars_repo_name": "liveroot/ambition2020",
"max_stars_repo_path": "educative/course1/stacks_queues/ch5_sort_stack_1.py",
"lang": "Python"
} |
625 | 1 | [expected_output_stack.push(x) for x in expected_output_data] | 38 | 38 | [
"ListComp"
] | {
"hexsha": "f70198ed9246ec768bc297a4af607b887745c332",
"max_stars_repo_name": "liveroot/ambition2020",
"max_stars_repo_path": "educative/course1/stacks_queues/ch5_sort_stack_1.py",
"lang": "Python"
} |
626 | 0 | return "\n\n".join(ks.export_as_string() for ks in self.keyspaces.values()) | 133 | 133 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 1 | removed_keyspaces = [name for name in self.keyspaces.keys()
if name not in current_keyspaces] | 175 | 176 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 2 | self.keyspaces = dict((name, meta) for name, meta in self.keyspaces.items()
if name in current_keyspaces) | 177 | 178 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 3 | return dict((str(key), str(value)) for key, value in self.options_map.items()) | 446 | 446 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 4 | self.dc_replication_factors = dict(
(str(k), int(v)) for k, v in dc_replication_factors.items()) | 503 | 504 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 5 | dc_rf_map = dict((dc, int(rf))
for dc, rf in self.dc_replication_factors.items() if rf > 0) | 507 | 508 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 6 | cql = "\n\n".join([self.as_cql_query() + ';'] +
self.user_type_strings() +
[f.export_as_string() for f in self.functions.values()] +
[a.export_as_string() for a in self.aggregates.values()] +
[t.export_as_string() fo... | 699 | 703 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 7 | for index_name in (n for n in old_indexes if n not in table_metadata.indexes):
self.indexes.pop(index_name, None) | 762 | 763 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 8 | ret += field_join.join("%s%s" % (padding, field) for field in fields) | 850 | 850 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 9 | type_list = ', '.join([types.strip_frozen(arg_type) for arg_type in self.argument_types]) | 935 | 935 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 10 | arg_list = ', '.join(["%s %s" % (protect_name(n), types.strip_frozen(t))
for n, t in zip(self.argument_names, self.argument_types)]) | 1,051 | 1,052 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 11 | ret += column_join.join("%s%s" % (padding, col) for col in columns) | 1,280 | 1,280 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 12 | ret += "(%s)" % ", ".join(protect_name(col.name) for col in self.partition_key) | 1,287 | 1,287 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 13 | ret += ", %s" % ", ".join(protect_name(col.name) for col in self.clustering_key) | 1,292 | 1,292 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 14 | compaction_option_strings = ["'%s': '%s'" % (k, v) for k, v in actual_options.items()] | 1,333 | 1,333 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 15 | param_strings = ["'%s': '%s'" % (k, v) for k, v in params.items()] | 1,342 | 1,342 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 16 | return [protect_name(n) for n in names] | 1,395 | 1,395 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 17 | return [build_func(row) for row in result] | 1,784 | 1,784 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 18 | return dict((t.name, t) for t in types) | 1,902 | 1,902 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 19 | clustering_rows = [r for r in col_rows
if r.get('type', None) == "clustering_key"] | 1,995 | 1,996 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 20 | column_aliases = [r.get('column_name') for r in clustering_rows] | 2,004 | 2,004 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 21 | partition_rows = [r for r in col_rows
if r.get('type', None) == "partition_key"] | 2,037 | 2,038 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 22 | key_aliases = [r.get('column_name') for r in partition_rows] | 2,048 | 2,048 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 23 | key_types = [types.lookup_casstype(r.get('validator')) for r in partition_rows] | 2,055 | 2,055 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 24 | value_alias_rows = [r for r in col_rows
if r.get('type', None) == "compact_value"] | 2,085 | 2,086 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 25 | options = dict((o, row.get(o)) for o in self.recognized_table_options if o in row) | 2,131 | 2,131 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 26 | return dict((o, row.get(o)) for o in self.recognized_table_options if o in row) | 2,435 | 2,435 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 27 | partition_rows = [r for r in col_rows
if r.get('kind', None) == "partition_key"] | 2,439 | 2,440 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 28 | clustering_rows = [r for r in col_rows
if r.get('kind', None) == "clustering"] | 2,452 | 2,453 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 29 | for col_row in (r for r in col_rows
if r.get('kind', None) not in ('partition_key', 'clustering_key')):
column_meta = self._build_column_metadata(meta, col_row)
if is_dense and column_meta.cql_type == types.cql_empty_type:
continue
if compact_s... | 2,461 | 2,472 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 30 | params = ("'%s': '%s'" % (k, v) for k, v in value.items()) | 2,750 | 2,750 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 31 | selected_cols = '*' if self.include_all_columns else ', '.join(protect_name(col.name) for col in self.columns.values()) | 2,836 | 2,836 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 32 | part_key = ', '.join(protect_name(col.name) for col in self.partition_key) | 2,840 | 2,840 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 33 | pk += ", %s" % ', '.join(protect_name(col.name) for col in self.clustering_key) | 2,846 | 2,846 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 34 | serializers = list(types._cqltypes[partition_key.cql_type] for partition_key in partition_keys) | 2,930 | 2,930 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 35 | serialized_key = [serializer.serialize(pk, cluster.protocol_version)
for serializer, pk in zip(serializers, key)] | 2,935 | 2,936 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 36 | routing_key = b"".join(struct.pack(">H%dsB" % len(p), len(p), p, 0) for p in serialized_key) | 2,940 | 2,940 | [
"GeneratorExp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 37 | valid_replicas = [host for host in all_replicas if
host.is_up and distance(host) == HostDistance.LOCAL] | 2,943 | 2,944 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
626 | 38 | valid_replicas = [host for host in all_replicas if host.is_up] | 2,946 | 2,946 | [
"ListComp"
] | {
"hexsha": "f7019b7e9ff96813b178c0a284d211839bedd0c6",
"max_stars_repo_name": "mikefero/python-driver",
"max_stars_repo_path": "cassandra/metadata.py",
"lang": "Python"
} |
629 | 0 | total_alloc = sum([p["alloc_point"] for p in self.dapp_pools_infos(web3)]) | 78 | 78 | [
"ListComp"
] | {
"hexsha": "f7019d3e8de57db347a5428bc4bb44c24cb31213",
"max_stars_repo_name": "Avalanche-FR-community/apr-fetcher",
"max_stars_repo_path": "fetcher/masterchef_apr_fetcher.py",
"lang": "Python"
} |
632 | 0 | cmd = [unicode2filesystem(x) for x in cmd] | 98 | 98 | [
"ListComp"
] | {
"hexsha": "f7019e9c6ca4456265e110317834c674537e93ef",
"max_stars_repo_name": "DebVortex/OpenSlides",
"max_stars_repo_path": "extras/openslides_gui/gui.py",
"lang": "Python"
} |
634 | 0 | if any(chemical_name in cpd for cpd in cpd_dict.keys() if chemical_name != cpd):
cpd_dict.pop(chemical_name) | 39 | 40 | [
"GeneratorExp"
] | {
"hexsha": "f7019f169af8f3f2b62f63f2c035f85dc91e1411",
"max_stars_repo_name": "rxn4chemistry/paragraph2actions",
"max_stars_repo_path": "paragraph2actions/augmentation/compound_name_augmenter.py",
"lang": "Python"
} |
637 | 0 | if any(x in infection.lower() for x in keywords):
ggo.append(int(label)) | 41 | 42 | [
"GeneratorExp"
] | {
"hexsha": "f701a0d7186cec3acc6b2d5419f28cc2f64ee5c4",
"max_stars_repo_name": "Karol-G/nnUNet",
"max_stars_repo_path": "i3Deep/merge_labels.py",
"lang": "Python"
} |
637 | 1 | if any(x in infection.lower() for x in keywords):
cons.append(int(label)) | 44 | 45 | [
"GeneratorExp"
] | {
"hexsha": "f701a0d7186cec3acc6b2d5419f28cc2f64ee5c4",
"max_stars_repo_name": "Karol-G/nnUNet",
"max_stars_repo_path": "i3Deep/merge_labels.py",
"lang": "Python"
} |
637 | 2 | if any(x in infection.lower() for x in keywords):
pe.append(int(label)) | 47 | 48 | [
"GeneratorExp"
] | {
"hexsha": "f701a0d7186cec3acc6b2d5419f28cc2f64ee5c4",
"max_stars_repo_name": "Karol-G/nnUNet",
"max_stars_repo_path": "i3Deep/merge_labels.py",
"lang": "Python"
} |
638 | 0 | res[service().GetRequestClass(service_method)] = [
(_get_path(path_prefix, endpoint.path), endpoint.method) for endpoint in endpoints
] | 223 | 225 | [
"ListComp"
] | {
"hexsha": "f701a0e0bac8930e8e013a4c8abaa3726fc575f7",
"max_stars_repo_name": "devlibx/mlflowx",
"max_stars_repo_path": "mlflow/utils/rest_utils.py",
"lang": "Python"
} |
650 | 0 | last_end_time = (max(n.end_time for n in primer_sequence.notes)
if primer_sequence.notes else 0) | 81 | 82 | [
"GeneratorExp"
] | {
"hexsha": "f701a89de548f767ba7b5a94b01d7537f9814e22",
"max_stars_repo_name": "bugrevelio/magenta",
"max_stars_repo_path": "magenta/models/improv_rnn/improv_rnn_sequence_generator.py",
"lang": "Python"
} |
650 | 1 | args = dict((name, value_fn(generator_options.args[name]))
for name, value_fn in arg_types.items()
if name in generator_options.args) | 143 | 145 | [
"GeneratorExp"
] | {
"hexsha": "f701a89de548f767ba7b5a94b01d7537f9814e22",
"max_stars_repo_name": "bugrevelio/magenta",
"max_stars_repo_path": "magenta/models/improv_rnn/improv_rnn_sequence_generator.py",
"lang": "Python"
} |
650 | 2 | return {key: partial(create_sequence_generator, config)
for (key, config) in improv_rnn_model.default_configs.items()} | 169 | 170 | [
"DictComp"
] | {
"hexsha": "f701a89de548f767ba7b5a94b01d7537f9814e22",
"max_stars_repo_name": "bugrevelio/magenta",
"max_stars_repo_path": "magenta/models/improv_rnn/improv_rnn_sequence_generator.py",
"lang": "Python"
} |
652 | 0 | match_configurations = [x for x in all_configurations if x['name'] == integration_name] | 55 | 55 | [
"ListComp"
] | {
"hexsha": "f701a97d3784b5f4cbf25b14e0548467c94684a3",
"max_stars_repo_name": "sergiooylo/content",
"max_stars_repo_path": "Tests/test_integration.py",
"lang": "Python"
} |
652 | 1 | module_instance = {
key: configured_instance[key] for key in ['id', 'brand', 'name', 'data', 'isIntegrationScript', ]
} | 201 | 203 | [
"DictComp"
] | {
"hexsha": "f701a97d3784b5f4cbf25b14e0548467c94684a3",
"max_stars_repo_name": "sergiooylo/content",
"max_stars_repo_path": "Tests/test_integration.py",
"lang": "Python"
} |
652 | 2 | module_instance = {
key: configured_instance[key] for key in ['id', 'brand', 'name', 'data', 'isIntegrationScript', ]
} | 225 | 227 | [
"DictComp"
] | {
"hexsha": "f701a97d3784b5f4cbf25b14e0548467c94684a3",
"max_stars_repo_name": "sergiooylo/content",
"max_stars_repo_path": "Tests/test_integration.py",
"lang": "Python"
} |
652 | 3 | integration_names = [integration['name'] for integration in integrations if
'name' in integration] | 264 | 265 | [
"ListComp"
] | {
"hexsha": "f701a97d3784b5f4cbf25b14e0548467c94684a3",
"max_stars_repo_name": "sergiooylo/content",
"max_stars_repo_path": "Tests/test_integration.py",
"lang": "Python"
} |
658 | 0 | args['element_pair'] = [
ElementPair._from_dict(x) for x in (_dict.get('element_pair'))
] | 1,117 | 1,119 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 1 | _dict['element_pair'] = [x._to_dict() for x in self.element_pair] | 1,137 | 1,137 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 2 | args['batches'] = [
BatchStatus._from_dict(x) for x in (_dict.get('batches'))
] | 1,462 | 1,464 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 3 | _dict['batches'] = [x._to_dict() for x in self.batches] | 1,476 | 1,476 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 4 | args['attributes'] = [
Attribute._from_dict(x) for x in (_dict.get('attributes'))
] | 1,645 | 1,647 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 5 | _dict['attributes'] = [x._to_dict() for x in self.attributes] | 1,697 | 1,697 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 6 | args['elements'] = [
Element._from_dict(x) for x in (_dict.get('elements'))
] | 2,031 | 2,033 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 7 | args['effective_dates'] = [
EffectiveDates._from_dict(x)
for x in (_dict.get('effective_dates'))
] | 2,035 | 2,038 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 8 | args['contract_amounts'] = [
ContractAmts._from_dict(x)
for x in (_dict.get('contract_amounts'))
] | 2,040 | 2,043 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 9 | args['termination_dates'] = [
TerminationDates._from_dict(x)
for x in (_dict.get('termination_dates'))
] | 2,045 | 2,048 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 10 | args['contract_types'] = [
ContractTypes._from_dict(x)
for x in (_dict.get('contract_types'))
] | 2,050 | 2,053 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 11 | args['contract_terms'] = [
ContractTerms._from_dict(x)
for x in (_dict.get('contract_terms'))
] | 2,055 | 2,058 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 12 | args['payment_terms'] = [
PaymentTerms._from_dict(x) for x in (_dict.get('payment_terms'))
] | 2,060 | 2,062 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 13 | args['contract_currencies'] = [
ContractCurrencies._from_dict(x)
for x in (_dict.get('contract_currencies'))
] | 2,064 | 2,067 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 14 | args['tables'] = [
Tables._from_dict(x) for x in (_dict.get('tables'))
] | 2,069 | 2,071 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 15 | args['parties'] = [
Parties._from_dict(x) for x in (_dict.get('parties'))
] | 2,076 | 2,078 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 16 | _dict['elements'] = [x._to_dict() for x in self.elements] | 2,096 | 2,096 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 17 | _dict['effective_dates'] = [
x._to_dict() for x in self.effective_dates
] | 2,099 | 2,101 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 18 | _dict['contract_amounts'] = [
x._to_dict() for x in self.contract_amounts
] | 2,104 | 2,106 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 19 | _dict['termination_dates'] = [
x._to_dict() for x in self.termination_dates
] | 2,109 | 2,111 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 20 | _dict['contract_types'] = [
x._to_dict() for x in self.contract_types
] | 2,113 | 2,115 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 21 | _dict['contract_terms'] = [
x._to_dict() for x in self.contract_terms
] | 2,117 | 2,119 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 22 | _dict['payment_terms'] = [x._to_dict() for x in self.payment_terms] | 2,121 | 2,121 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 23 | _dict['contract_currencies'] = [
x._to_dict() for x in self.contract_currencies
] | 2,125 | 2,127 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 24 | _dict['tables'] = [x._to_dict() for x in self.tables] | 2,129 | 2,129 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 25 | _dict['parties'] = [x._to_dict() for x in self.parties] | 2,135 | 2,135 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 26 | args['documents'] = [
Document._from_dict(x) for x in (_dict.get('documents'))
] | 2,366 | 2,368 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 27 | args['aligned_elements'] = [
AlignedElement._from_dict(x)
for x in (_dict.get('aligned_elements'))
] | 2,370 | 2,373 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 28 | args['unaligned_elements'] = [
UnalignedElement._from_dict(x)
for x in (_dict.get('unaligned_elements'))
] | 2,375 | 2,378 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 29 | _dict['documents'] = [x._to_dict() for x in self.documents] | 2,394 | 2,394 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 30 | _dict['aligned_elements'] = [
x._to_dict() for x in self.aligned_elements
] | 2,397 | 2,399 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 31 | _dict['unaligned_elements'] = [
x._to_dict() for x in self.unaligned_elements
] | 2,403 | 2,405 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 32 | args['section_titles'] = [
SectionTitles._from_dict(x)
for x in (_dict.get('section_titles'))
] | 3,268 | 3,271 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 33 | args['leading_sentences'] = [
LeadingSentence._from_dict(x)
for x in (_dict.get('leading_sentences'))
] | 3,273 | 3,276 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 34 | args['paragraphs'] = [
Paragraphs._from_dict(x) for x in (_dict.get('paragraphs'))
] | 3,278 | 3,280 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 35 | _dict['section_titles'] = [
x._to_dict() for x in self.section_titles
] | 3,292 | 3,294 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
658 | 36 | _dict['leading_sentences'] = [
x._to_dict() for x in self.leading_sentences
] | 3,297 | 3,299 | [
"ListComp"
] | {
"hexsha": "f701adc7789e0923c53cf8d6186000a9a0af4fa7",
"max_stars_repo_name": "BuiQuangAnh/python-sdk",
"max_stars_repo_path": "ibm_watson/compare_comply_v1.py",
"lang": "Python"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.