code stringlengths 51 31k | url stringlengths 31 59 | complexity int64 1 153 | n_ast_nodes int64 12 5.6k | commit_id stringlengths 40 40 | ast_errors stringlengths 0 1.46k | n_words int64 2 2.17k | file_name stringlengths 5 56 | ast_levels int64 4 32 | nloc int64 1 451 | repo stringlengths 3 28 | fun_name stringlengths 2 73 | n_whitespaces int64 2 13.8k | path stringlengths 7 134 | vocab_size int64 2 671 | commit_message stringlengths 51 15.3k | id int64 20 338k | language stringclasses 1
value | n_identifiers int64 1 186 | n_ast_errors int64 0 10 | token_counts int64 6 3.32k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
def _format(val, valtype, floatfmt, missingval="", has_invisible=True):
# noqa
if val is None:
return missingval
if valtype in [int, _text_type]:
return "{0}".format(val)
elif valtype is _binary_type:
try:
return _text_type(val, "ascii")
except TypeError:
... | https://github.com/ray-project/ray.git | 8 | 251 | adf24bfa9723b0621183bb27f0c889b813c06e8a | 65 | tabulate.py | 15 | 22 | ray | _format | 224 | python/ray/_private/thirdparty/tabulate/tabulate.py | 47 | [State Observability] Use a table format by default (#26159)
NOTE: tabulate is copied/pasted to the codebase for table formatting.
This PR changes the default layout to be the table format for both summary and list APIs. | 125,184 | Python | 18 | 0 | 132 | |
def set_context(context=None, font_scale=1, rc=None):
context_object = plotting_context(context, font_scale, rc)
mpl.rcParams.update(context_object)
| https://github.com/mwaskom/seaborn.git | 1 | 53 | 34662f4be5c364e7518f9c1118c9b362038ee5dd | 10 | rcmod.py | 8 | 3 | seaborn | set_context | 19 | seaborn/rcmod.py | 10 | Convert docs to pydata-sphinx-theme and add new material (#2842)
* Do basic conversion of site to pydata_sphinx_theme
* Remove some pae structure customizations we no longer need
* Add some custom CSS
* Tweak a few more colors
* Remove vestigial div closing tag
* Reorganize release notes into hierarchic... | 42,070 | Python | 9 | 0 | 34 | |
async def async_unload(self) -> None:
await self._syno_api_executer(self.dsm.logout)
| https://github.com/home-assistant/core.git | 1 | 35 | 5d7d652237b2368320a68c772ce3d837e4c1d04b | 7 | common.py | 10 | 3 | core | async_unload | 21 | homeassistant/components/synology_dsm/common.py | 7 | Replace Synology DSM services with buttons (#57352) | 311,030 | Python | 5 | 0 | 19 | |
def clone_keras_tensors(args, keras_tensor_mapping):
result = []
for obj in tf.nest.flatten(args):
if node_module.is_keras_tensor(obj):
if id(obj) in keras_tensor_mapping:
cpy = keras_tensor_mapping[id(obj)]
else:
# Create copy of keras_tensor... | https://github.com/keras-team/keras.git | 4 | 160 | 3613c3defc39c236fb1592c4f7ba1a9cc887343a | 46 | functional_utils.py | 16 | 14 | keras | clone_keras_tensors | 191 | keras/engine/functional_utils.py | 35 | Remove pylint comments.
PiperOrigin-RevId: 452353044 | 278,720 | Python | 16 | 0 | 98 | |
def get_plain_headed_box(self) -> "Box":
return PLAIN_HEADED_SUBSTITUTIONS.get(self, self)
| https://github.com/pypa/pipenv.git | 1 | 31 | cd5a9683be69c86c8f3adcd13385a9bc5db198ec | 7 | box.py | 7 | 9 | pipenv | get_plain_headed_box | 21 | pipenv/patched/pip/_vendor/rich/box.py | 7 | Rename notpip to pip. Vendor in pip-22.2.1 and latest requirementslib and vistir. | 22,168 | Python | 4 | 0 | 17 | |
def apply_and_enforce(*args, **kwargs):
func = kwargs.pop("_func")
expected_ndim = kwargs.pop("expected_ndim")
out = func(*args, **kwargs)
if getattr(out, "ndim", 0) != expected_ndim:
out_ndim = getattr(out, "ndim", 0)
raise ValueError(
f"Dimension mismatch: expected out... | https://github.com/dask/dask.git | 2 | 129 | 2b90415b02d3ad1b08362889e0818590ca3133f4 | 44 | core.py | 12 | 11 | dask | apply_and_enforce | 106 | dask/array/core.py | 36 | Add kwarg ``enforce_ndim`` to ``dask.array.map_blocks()`` (#8865) | 156,567 | Python | 10 | 0 | 68 | |
def get_jobs_by_meta(queue, func_name, meta):
# get all jobs from Queue
jobs = (job
for job in queue.get_jobs()
if job.func.__name__ == func_name
)
# return only with same meta data
return [job for job in jobs if hasattr(job, 'meta') and job.meta == meta]
| https://github.com/heartexlabs/label-studio.git | 6 | 83 | 283628097a10e8abafc94c683bc8be2d79a5998f | 42 | redis.py | 11 | 6 | label-studio | get_jobs_by_meta | 90 | label_studio/core/redis.py | 33 | feat: DEV-2075: Add mixin to Project to support mechanism to cancel old jobs (#2547)
* feat: DEV-2075: Add mixin to Project to support mechanism to cancel old jobs | 178,165 | Python | 10 | 0 | 52 | |
def enable_tf_random_generator():
global _USE_GENERATOR_FOR_RNG
_USE_GENERATOR_FOR_RNG = True
@keras_export("keras.backend.experimental.disable_tf_random_generator", v1=[]) | https://github.com/keras-team/keras.git | 1 | 38 | 84afc5193d38057e2e2badf9c889ea87d80d8fbf | @keras_export("keras.backend.experimental.disable_tf_random_generator", v1=[]) | 9 | backend.py | 8 | 3 | keras | enable_tf_random_generator | 17 | keras/backend.py | 8 | Reformatting the codebase with black.
PiperOrigin-RevId: 450093126 | 269,601 | Python | 4 | 1 | 10 |
def collocation_list(self, num=20, window_size=2):
if not (
"_collocations" in self.__dict__
and self._num == num
and self._window_size == window_size
):
self._num = num
self._window_size = window_size
# print("Building co... | https://github.com/nltk/nltk.git | 5 | 205 | 8a4cf5d94eb94b6427c5d1d7907ba07b119932c5 | 61 | text.py | 14 | 18 | nltk | collocation_list | 258 | nltk/text.py | 48 | Docstring tests (#3050)
* fixed pytests
* fixed more pytests
* fixed more pytest and changed multiline pytest issues fixes for snowball.py and causal.py
* fixed pytests (mainly multiline or rounding issues)
* fixed treebank pytests, removed test for return_string=True (deprecated)
* fixed destructive.py... | 42,548 | Python | 27 | 0 | 126 | |
def library_section_payload(section):
try:
children_media_class = ITEM_TYPE_MEDIA_CLASS[section.TYPE]
except KeyError as err:
raise UnknownMediaType(f"Unknown type received: {section.TYPE}") from err
server_id = section._server.machineIdentifier # pylint: disable=protected-access
r... | https://github.com/home-assistant/core.git | 2 | 126 | 653305b998dd033365576db303b32dd5df3a6c54 | 34 | media_browser.py | 13 | 15 | core | library_section_payload | 116 | homeassistant/components/plex/media_browser.py | 33 | Support multiple Plex servers in media browser (#68321) | 294,024 | Python | 21 | 0 | 77 | |
def gen_skeleton():
# create as Py27Dict and insert key one by one to preserve input order
skeleton = Py27Dict()
skeleton["openapi"] = "3.0.1"
skeleton["info"] = Py27Dict()
skeleton["info"]["version"] = "1.0"
skeleton["info"]["title"] = ref("AWS::StackName")
... | https://github.com/aws/serverless-application-model.git | 1 | 111 | a5db070f446b7cfebdaa6ad2e3dcf78f6105a272 | 36 | open_api.py | 9 | 8 | serverless-application-model | gen_skeleton | 99 | samtranslator/open_api/open_api.py | 27 | fix: Py27hash fix (#2182)
* Add third party py27hash code
* Add Py27UniStr and unit tests
* Add py27hash_fix utils and tests
* Add to_py27_compatible_template and tests
* Apply py27hash fix to wherever it is needed
* Apply py27hash fix, all tests pass except api_with_any_method_in_swagger
* apply py2... | 213,030 | Python | 4 | 0 | 55 | |
def fit(self, X, y=None):
self._validate_params()
if self.fit_inverse_transform and self.kernel == "precomputed":
raise ValueError("Cannot fit_inverse_transform with a precomputed kernel.")
X = self._validate_data(X, accept_sparse="csr", copy=self.copy_X)
self._cent... | https://github.com/scikit-learn/scikit-learn.git | 4 | 175 | 3312bc2ea6aad559643a1d920e3380fa123f627c | 57 | _kernel_pca.py | 12 | 13 | scikit-learn | fit | 171 | sklearn/decomposition/_kernel_pca.py | 48 | MAINT validate parameter in KernelPCA (#24020)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr> | 260,625 | Python | 24 | 0 | 106 | |
def get_conn(self) -> Any:
in_cluster = self._coalesce_param(
self.in_cluster, self.conn_extras.get("extra__kubernetes__in_cluster") or None
)
cluster_context = self._coalesce_param(
self.cluster_context, self.conn_extras.get("extra__kubernetes__cluster_context"... | https://github.com/apache/airflow.git | 24 | 759 | 60eb9e106f5915398eafd6aa339ec710c102dc09 | 267 | kubernetes.py | 13 | 71 | airflow | get_conn | 1,032 | airflow/providers/cncf/kubernetes/hooks/kubernetes.py | 146 | Use KubernetesHook to create api client in KubernetesPodOperator (#20578)
Add support for k8s hook in KPO; use it always (even when no conn id); continue to consider the core k8s settings that KPO already takes into account but emit deprecation warning about them.
KPO historically takes into account a few settings ... | 42,787 | Python | 49 | 0 | 460 | |
def load_data(self) -> Any:
model = load(self.model_path+self.model_filename+"_model.joblib")
with open(self.model_path+self.model_filename+"_metadata.json", 'r') as fp:
self.data = json.load(fp)
if self.data.get('training_features_list'):
self.training_... | https://github.com/freqtrade/freqtrade.git | 3 | 272 | fc837c4daa27a18ff0e86128f4d52089b88fa5fb | 37 | data_handler.py | 15 | 18 | freqtrade | load_data | 180 | freqtrade/freqai/data_handler.py | 29 | add freqao backend machinery, user interface, documentation | 149,758 | Python | 19 | 0 | 155 | |
def _bind(self, *args, **kwargs):
from ray.experimental.dag.class_node import ClassNode
return ClassNode(self.__ray_metadata__.modified_class, args, kwargs, {})
| https://github.com/ray-project/ray.git | 1 | 56 | c065e3f69ec248383d98b45a8d1c00832ccfdd57 | 13 | actor.py | 9 | 3 | ray | _bind | 34 | python/ray/actor.py | 13 | [Ray DAG] Implement experimental Ray DAG API for task/class (#22058) | 144,300 | Python | 11 | 0 | 38 | |
def find_device(data):
if isinstance(data, Mapping):
for obj in data.values():
device = find_device(obj)
if device is not None:
return device
elif isinstance(data, (tuple, list)):
for obj in data:
device = find_device(obj)
if d... | https://github.com/huggingface/accelerate.git | 8 | 128 | f56f4441b3d448f4a81d5131c03e7dd73eac3ba0 | 42 | operations.py | 13 | 13 | accelerate | find_device | 149 | src/accelerate/utils/operations.py | 22 | Big model inference (#345)
* Big model inference
* Reorganize port cleanup
* Last cleanup
* Test fix
* Quality
* Update src/accelerate/big_modeling.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Fix bug in default mem
* Check device map is complete
* More tests
* Mak... | 337,524 | Python | 11 | 0 | 82 | |
async def wait(self) -> None:
if self._is_set:
return
if not self._loop:
self._loop = get_running_loop()
self._event = asyncio.Event()
await self._event.wait()
| https://github.com/PrefectHQ/prefect.git | 3 | 78 | a368874d1b145c1ec5201e5efd3c26ce7c1e8611 | 19 | primitives.py | 10 | 12 | prefect | wait | 80 | src/prefect/_internal/concurrency/primitives.py | 17 | Add thread-safe async primitives `Event` and `Future` (#7865)
Co-authored-by: Serina Grill <42048900+serinamarie@users.noreply.github.com> | 60,126 | Python | 8 | 0 | 44 | |
def test_get_settings_no_request(self):
context = Context()
template = Template(
"{% load wagtailsettings_tags %}"
"{% get_settings %}"
"{{ settings.tests.testgenericsetting.title }}"
)
self.assertEqual(template.render(context), self.default... | https://github.com/wagtail/wagtail.git | 1 | 67 | d967eccef28ce47f60d26be1c28f2d83a25f40b0 | 21 | test_templates.py | 10 | 8 | wagtail | test_get_settings_no_request | 89 | wagtail/contrib/settings/tests/generic/test_templates.py | 18 | Add generic settings to compliment site-specific settings (#8327) | 78,295 | Python | 10 | 0 | 36 | |
def get_tail(self, n=10, raw=True, output=False, include_latest=False):
self.writeout_cache()
if not include_latest:
n += 1
# cursor/line/entry
this_cur = list(
self._run_sql(
"WHERE session == ? ORDER BY line DESC LIMIT ? ",
... | https://github.com/ipython/ipython.git | 3 | 198 | dc5bcc1c50892a5128fcf128af28887226144927 | 73 | history.py | 12 | 25 | ipython | get_tail | 344 | IPython/core/history.py | 44 | This fixed the mixing of multiple history seen in #13631
It forces get_tail to put the current session last in the returned
results. | 208,719 | Python | 13 | 0 | 128 | |
def opt_combinations_only():
experimental_opt_combinations = test_combinations.combine(
mode='eager', opt_cls=optimizer_experimental.Optimizer)
orig_opt_combination = test_combinations.combine(
opt_cls=optimizer_v2.OptimizerV2)
return experimental_opt_combinations + orig_opt_combination
@tf_test_... | https://github.com/keras-team/keras.git | 1 | 70 | b96518a22bfd92a29811e507dec0b34248a8a3f5 | @tf_test_utils.with_control_flow_v2 | 16 | loss_scale_optimizer_test.py | 10 | 6 | keras | opt_combinations_only | 29 | keras/mixed_precision/loss_scale_optimizer_test.py | 12 | - Consolidate disparate test-related files into a single testing_infra folder.
- Cleanup TODO related to removing testing infra as a dependency of the Keras target.
- Standardize import naming: there is now only "test_combinations" for test combinations, and "test_utils" for utilities. The TF utilities module "test_uti... | 268,911 | Python | 13 | 1 | 37 |
def _normalize_entries(entries, separators=None):
norm_files = {}
for entry in entries:
norm_files[normalize_file(entry.path, separators=separators)] = entry
return norm_files
| https://github.com/ray-project/ray.git | 2 | 57 | 0e6c042e29cbbe429d81c9c1af3c75c261f00980 | 16 | util.py | 12 | 5 | ray | _normalize_entries | 11 | python/ray/_private/thirdparty/pathspec/util.py | 13 | [Bugfix] fix invalid excluding of Black (#24042)
- We should use `--force-exclude` when we pass code path explicitly https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html?highlight=--force-exclude#command-line-options
- Recover the files in `python/ray/_private/thirdparty` which has been form... | 148,285 | Python | 7 | 0 | 36 | |
def overlap_frag(p, overlap, fragsize=8, overlap_fragsize=None):
if overlap_fragsize is None:
overlap_fragsize = fragsize
q = p.copy()
del q[IP].payload
q[IP].add_payload(overlap)
qfrag = fragment(q, overlap_fragsize)
qfrag[-1][IP].flags |= 1
return qfrag + fragment(p, fragsiz... | https://github.com/secdev/scapy.git | 2 | 117 | 08b1f9d67c8e716fd44036a027bdc90dcb9fcfdf | 30 | inet.py | 10 | 9 | scapy | overlap_frag | 61 | scapy/layers/inet.py | 26 | E275 - Missing whitespace after keyword (#3711)
Co-authored-by: Alexander Aring <alex.aring@gmail.com>
Co-authored-by: Anmol Sarma <me@anmolsarma.in>
Co-authored-by: antoine.torre <torreantoine1@gmail.com>
Co-authored-by: Antoine Vacher <devel@tigre-bleu.net>
Co-authored-by: Arnaud Ebalard <arno@natisbad.org>
Co-... | 209,543 | Python | 13 | 0 | 76 | |
def __len__(self):
return sum(len(s) for s in self.shards)
| https://github.com/ray-project/ray.git | 2 | 34 | 3f03ef8ba8016b095c611c4d2e118771e4a750ca | 8 | distributed_learners.py | 9 | 2 | ray | __len__ | 22 | rllib/agents/alpha_star/distributed_learners.py | 8 | [RLlib] AlphaStar: Parallelized, multi-agent/multi-GPU learning via league-based self-play. (#21356) | 144,233 | Python | 6 | 0 | 20 | |
def update_exe_pe_checksum(exe_path):
import pefile
# Compute checksum using our equivalent of the MapFileAndCheckSumW - for large files, it is significantly faster
# than pure-pyton pefile.PE.generate_checksum(). However, it requires the file to be on disk (i.e., cannot operate
# on a memory buff... | https://github.com/pyinstaller/pyinstaller.git | 2 | 135 | 41483cb9e6d5086416c8fea6ad6781782c091c60 | 88 | winutils.py | 11 | 11 | pyinstaller | update_exe_pe_checksum | 163 | PyInstaller/utils/win32/winutils.py | 68 | winutils: optimize PE headers fixup
Attempt to optimize PE headers fix-up from both time- and memory-
intensity perspective.
First, avoid specifying `fast_load=False` in `pefile.PE` constructor,
because that triggers the bytes statistics collection
https://github.com/erocarrera/pefile/blob/v2022.5.30/pefile.py#L2862-... | 263,805 | Python | 17 | 0 | 72 | |
def test_get_page_url_when_for_settings_fetched_via_for_site(self):
self._create_importantpagessitesetting_object()
settings = ImportantPagesSiteSetting.for_site(self.default_site)
# Force site root paths query beforehand
self.default_site.root_page._get_site_root_paths()
... | https://github.com/wagtail/wagtail.git | 2 | 201 | d967eccef28ce47f60d26be1c28f2d83a25f40b0 | 102 | test_model.py | 16 | 20 | wagtail | test_get_page_url_when_for_settings_fetched_via_for_site | 506 | wagtail/contrib/settings/tests/site_specific/test_model.py | 74 | Add generic settings to compliment site-specific settings (#8327) | 78,323 | Python | 17 | 0 | 115 | |
def recursively_deserialize_keras_object(config, module_objects=None):
if isinstance(config, dict):
if 'class_name' in config:
return generic_utils.deserialize_keras_object(
config, module_objects=module_objects)
else:
return {
key: recursively_deserialize_keras_object(confi... | https://github.com/keras-team/keras.git | 6 | 142 | e61cbc52fd3b0170769c120e9b8dabc8c4205322 | 58 | load.py | 15 | 18 | keras | recursively_deserialize_keras_object | 140 | keras/saving/saved_model/load.py | 48 | Support Keras saving/loading for ShardedVariables with arbitrary partitions.
PiperOrigin-RevId: 439837516 | 269,136 | Python | 12 | 0 | 89 | |
def get_latest_device_activity(self, device_id, activity_types):
if device_id not in self._latest_activities:
return None
latest_device_activities = self._latest_activities[device_id]
latest_activity = None
for activity_type in activity_types:
if activi... | https://github.com/home-assistant/core.git | 6 | 106 | dadcc5ebcbcf951ff677568b281c5897d990c8ae | 42 | activity.py | 14 | 15 | core | get_latest_device_activity | 227 | homeassistant/components/august/activity.py | 28 | spelling: components/august (#64232)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com> | 309,801 | Python | 9 | 0 | 69 | |
def project_root() -> Path:
return Path(os.path.dirname(__file__)).parent.parent
| https://github.com/RasaHQ/rasa.git | 1 | 40 | 9f634d248769198881bbb78ccd8d333982462ef5 | 6 | prepare_nightly_release.py | 12 | 3 | rasa | project_root | 12 | scripts/prepare_nightly_release.py | 6 | [ATO-114]Add nightly workflows and creation scripts | 159,623 | Python | 7 | 0 | 23 | |
def add_device_change(self, user_id, device_ids, host):
for device_id in device_ids:
stream_id = self.get_success(
self.store.add_device_change_to_streams(
"user_id", [device_id], ["!some:room"]
)
)
self.get_succe... | https://github.com/matrix-org/synapse.git | 2 | 121 | aa2811026402394b4013033f075d8f509cdc1257 | 28 | test_devices.py | 14 | 17 | synapse | add_device_change | 279 | tests/storage/test_devices.py | 24 | Process device list updates asynchronously (#12365) | 248,026 | Python | 14 | 0 | 79 | |
def self_check() -> None:
# Verify all supported Python versions have a coverage version.
for version in SUPPORTED_PYTHON_VERSIONS:
get_coverage_version(version)
# Verify all controller Python versions are mapped to the latest coverage version.
for version in CONTROLLER_PYTHON_VERSIONS:
... | https://github.com/ansible/ansible.git | 4 | 71 | b9606417598217106e394c12c776d8c5ede9cd98 | 54 | coverage_util.py | 13 | 7 | ansible | self_check | 93 | test/lib/ansible_test/_internal/coverage_util.py | 35 | ansible-test - Support multiple coverage versions.
ci_complete
ci_coverage | 267,050 | Python | 7 | 0 | 35 | |
def predict(self, X):
if self.weights == "uniform":
# In that case, we do not need the distances to perform
# the weighting so we do not compute them.
neigh_ind = self.kneighbors(X, return_distance=False)
neigh_dist = None
else:
neigh_... | https://github.com/scikit-learn/scikit-learn.git | 6 | 310 | fb082b223dc9f1dd327f48dc9b830ee382d6f661 | 99 | _regression.py | 15 | 21 | scikit-learn | predict | 320 | sklearn/neighbors/_regression.py | 65 | MAINT Do not compute distances for uniform weighting (#22280) | 258,546 | Python | 26 | 0 | 199 | |
def getImageDescriptor(self, im, xy=None):
# Defaule use full image and place at upper left
if xy is None:
xy = (0, 0)
# Image separator,
bb = b"\x2C"
# Image position and size
bb += int2long(xy[0]) # Left position
bb += int2long(xy[1]) #... | https://github.com/thumbor/thumbor.git | 2 | 130 | 3c745ef193e9af9244cc406734e67815377472ed | 90 | pil.py | 10 | 10 | thumbor | getImageDescriptor | 217 | thumbor/engines/extensions/pil.py | 61 | Reformat of files using black
These files were not properly formatted. | 190,825 | Python | 7 | 0 | 74 | |
def test_calculate_scores_one_dim_with_scale(self):
# Query tensor of shape [1, 1, 1]
q = np.array([[[1.1]]], dtype=np.float32)
# Key tensor of shape [1, 1, 1]
k = np.array([[[1.6]]], dtype=np.float32)
attention_layer = keras.layers.Attention(use_scale=True)
atte... | https://github.com/keras-team/keras.git | 1 | 203 | 84afc5193d38057e2e2badf9c889ea87d80d8fbf | 62 | attention_test.py | 12 | 9 | keras | test_calculate_scores_one_dim_with_scale | 153 | keras/layers/attention/attention_test.py | 36 | Reformatting the codebase with black.
PiperOrigin-RevId: 450093126 | 272,348 | Python | 22 | 0 | 139 | |
def prepare_all_coins_df() -> pd.DataFrame:
gecko_coins_df = load_coins_list("coingecko_coins.json")
paprika_coins_df = load_coins_list("coinpaprika_coins.json")
paprika_coins_df = paprika_coins_df[paprika_coins_df["is_active"]]
paprika_coins_df = paprika_coins_df[["rank", "id", "name", "symbol",... | https://github.com/OpenBB-finance/OpenBBTerminal.git | 1 | 339 | ea964109d654394cc0a5237e6ec5510ba6404097 | 84 | cryptocurrency_helpers.py | 12 | 48 | OpenBBTerminal | prepare_all_coins_df | 266 | gamestonk_terminal/cryptocurrency/cryptocurrency_helpers.py | 65 | Crypto menu refactor (#1119)
* enabled some crypto commands in dd to be called independent of source loaded
* support for coin_map_df in all dd functions + load ta and plot chart refactor
* updated tests and removed coingecko scrapping where possible
* removed ref of command from hugo
* updated pycoingecko... | 281,114 | Python | 22 | 0 | 191 | |
def _set_gradient_checkpointing(self, module, value=False):
if isinstance(module, NystromformerEncoder):
module.gradient_checkpointing = value
NYSTROMFORMER_START_DOCSTRING = r
NYSTROMFORMER_INPUTS_DOCSTRING = r
@add_start_docstrings(
"The bare Nyströmformer Model transformer outputting raw... | https://github.com/huggingface/transformers.git | 2 | 64 | 28e091430eea9e0d40839e56fd0d57aec262f5f9 | @add_start_docstrings(
"The bare Nyströmformer Model transformer outputting raw hidden-states without any specific head on top.",
NYSTROMFORMER_START_DOCSTRING,
) | 33 | modeling_nystromformer.py | 9 | 3 | transformers | _set_gradient_checkpointing | 52 | src/transformers/models/nystromformer/modeling_nystromformer.py | 30 | Add Nystromformer (#14659)
* Initial commit
* Config and modelling changes
Added Nystromformer-specific attributes to config and removed all decoder functionality from modelling.
* Modelling and test changes
Added Nystrom approximation and removed decoder tests.
* Code quality fixes
* Modeling change... | 34,009 | Python | 10 | 1 | 24 |
def bcoo_dot_general_sampled(A, B, indices, *, dimension_numbers):
(lhs_contract, rhs_contract), (lhs_batch, rhs_batch) = dimension_numbers
cdims = (api_util._ensure_index_tuple(lhs_contract),
api_util._ensure_index_tuple(rhs_contract))
bdims = (api_util._ensure_index_tuple(lhs_batch),
ap... | https://github.com/google/jax.git | 1 | 124 | 3184dd65a222354bffa2466d9a375162f5649132 | @bcoo_dot_general_sampled_p.def_impl | 27 | bcoo.py | 9 | 8 | jax | bcoo_dot_general_sampled | 91 | jax/experimental/sparse/bcoo.py | 23 | [sparse] Update docstrings for bcoo primitives.
PiperOrigin-RevId: 438685829 | 119,984 | Python | 16 | 1 | 80 |
def _get_instance_id(from_dict, new_id, default=''):
instance_id = default
for key in new_id.split('.'):
if not hasattr(from_dict, 'get'):
instance_id = default
break
instance_id = from_dict.get(key, default)
from_dict = instance_id
return smart_str(insta... | https://github.com/ansible/awx.git | 3 | 95 | a3a216f91f1158fd54c001c34cbdf2f68ccbc272 | 28 | _inventory_source.py | 11 | 9 | awx | _get_instance_id | 83 | awx/main/migrations/_inventory_source.py | 21 | Fix up new Django 3.0 deprecations
Mostly text based: force/smart_text, ugettext_* | 80,736 | Python | 10 | 0 | 56 | |
def compile_sample(self, batch_size, samples=None, images=None, masks=None):
num_images = self._config.get("preview_images", 14)
num_images = min(batch_size, num_images) if batch_size is not None else num_images
retval = {}
for side in ("a", "b"):
logger.debug("Compi... | https://github.com/deepfakes/faceswap.git | 6 | 225 | c1512fd41d86ef47a5d1ce618d6d755ef7cbacdf | 74 | _base.py | 11 | 13 | faceswap | compile_sample | 225 | plugins/train/trainer/_base.py | 48 | Update code to support Tensorflow versions up to 2.8 (#1213)
* Update maximum tf version in setup + requirements
* - bump max version of tf version in launcher
- standardise tf version check
* update keras get_custom_objects for tf>2.6
* bugfix: force black text in GUI file dialogs (linux)
* dssim loss -... | 100,396 | Python | 20 | 0 | 153 | |
def temperature(self) -> float | None:
return self._attr_temperature
| https://github.com/home-assistant/core.git | 1 | 25 | 90e1fb6ce2faadb9a35fdbe1774fce7b4456364f | 8 | __init__.py | 6 | 6 | core | temperature | 22 | homeassistant/components/weather/__init__.py | 8 | Weather unit conversion (#73441)
Co-authored-by: Erik <erik@montnemery.com> | 314,211 | Python | 4 | 0 | 14 | |
def get_time(self) -> float:
return self._get_time()
| https://github.com/pypa/pipenv.git | 1 | 26 | f3166e673fe8d40277b804d35d77dcdb760fc3b3 | 6 | progress.py | 7 | 3 | pipenv | get_time | 20 | pipenv/patched/notpip/_vendor/rich/progress.py | 6 | check point progress on only bringing in pip==22.0.4 (#4966)
* vendor in pip==22.0.4
* updating vendor packaging version
* update pipdeptree to fix pipenv graph with new version of pip.
* Vendoring of pip-shims 0.7.0
* Vendoring of requirementslib 1.6.3
* Update pip index safety restrictions patch for p... | 20,801 | Python | 4 | 0 | 14 | |
def test_add_unstyled_rows_to_styled_rows(self, st_element, get_proto):
df1 = pd.DataFrame([5, 6])
df2 = pd.DataFrame([7, 8])
css_values = [
{css_s("color", "black")},
{css_s("color", "black")},
set(),
set(),
]
x = st_ele... | https://github.com/streamlit/streamlit.git | 1 | 173 | 2c153aa179a27539f856e389870161d5a58da213 | 35 | legacy_dataframe_styling_test.py | 12 | 13 | streamlit | test_add_unstyled_rows_to_styled_rows | 142 | lib/tests/streamlit/legacy_dataframe_styling_test.py | 28 | Pandas 1.4 styler fix (#4316)
Change the way we detect custom styling in a DataFrame, to account for changes in Pandas 1.4.
Our DataFrame styling support is based on internal Pandas APIs, so they're always subject to change out from underneath us. In general, we'd prefer to only pass `display_value` data to the fro... | 118,718 | Python | 19 | 0 | 106 | |
def handle_error_code(requests_obj, error_code_map):
for error_code, error_msg in error_code_map.items():
if requests_obj.status_code == error_code:
console.print(error_msg)
| https://github.com/OpenBB-finance/OpenBBTerminal.git | 3 | 53 | 401e4c739a6f9d18944e0ab49c782e97b56fda94 | 13 | helper_funcs.py | 11 | 4 | OpenBBTerminal | handle_error_code | 37 | gamestonk_terminal/helper_funcs.py | 13 | Output Missing API Key Message to Console (#1357)
* Decorator to output error msg to console of missing API Key
* Refactor FMP & alpha advantage
* Refactor FRED & QUANDL
* Refactor Polygon
* Refactor FRED
* Refactor FRED
* Refactor Finnhub & coinmarketcap & Newsapi
* Allow disabling of check api
... | 282,770 | Python | 9 | 0 | 32 | |
def detect(byte_str):
if not isinstance(byte_str, bytearray):
if not isinstance(byte_str, bytes):
raise TypeError(
f"Expected object of type bytes or bytearray, got: {type(byte_str)}"
)
byte_str = bytearray(byte_str)
detector = UniversalDetector()
... | https://github.com/pypa/pipenv.git | 3 | 99 | cd5a9683be69c86c8f3adcd13385a9bc5db198ec | 31 | __init__.py | 15 | 10 | pipenv | detect | 97 | pipenv/patched/pip/_vendor/chardet/__init__.py | 27 | Rename notpip to pip. Vendor in pip-22.2.1 and latest requirementslib and vistir. | 21,882 | Python | 11 | 0 | 53 | |
def delete_file(self, filename=None, path=None, report_error=False):
if filename is not None or path is not None or (filename is None and path is None):
self.set_location(filename=filename, path=path)
try:
os.remove(self.full_filename)
except Exception as e:
... | https://github.com/PySimpleGUI/PySimpleGUI.git | 7 | 133 | f776589349476a41b98aa1f467aff2f30e2a8fc2 | 46 | PySimpleGUI.py | 13 | 9 | PySimpleGUI | delete_file | 129 | PySimpleGUI.py | 37 | Added report_error setting for user_settings_delete_file. Global Settings window complete rework to use Tabs. Hoping nothing broke, but just remember things are in flux for a little bit while the ttk scrollbars are finishing up | 212,923 | Python | 13 | 0 | 83 | |
def compose(base_map, next_map):
ax1, a1, b1 = base_map
ax2, a2, b2 = next_map
if ax1 is None:
ax = ax2
elif ax2 is None or ax1 == ax2:
ax = ax1
else:
raise AxisMismatchException
return ax, a1 * a2, a1 * b2 + b1
| https://github.com/jindongwang/transferlearning.git | 4 | 91 | cc4d0564756ca067516f71718a3d135996525909 | 44 | coord_map.py | 9 | 10 | transferlearning | compose | 86 | code/deep/BJMMD/caffe/python/caffe/coord_map.py | 31 | Balanced joint maximum mean discrepancy for deep transfer learning | 60,235 | Python | 11 | 0 | 58 | |
def is_doc_id_none(self) -> bool:
return self.doc_id is None
@dataclass | https://github.com/jerryjliu/llama_index.git | 1 | 29 | c22d865acb3899a181921d94b6e94e665a12b432 | @dataclass | 9 | schema.py | 7 | 3 | llama_index | is_doc_id_none | 22 | gpt_index/schema.py | 9 | Add index composability! (#86)
Summary of changes
- Bumped version to 0.1.0
- Abstracted out a BaseDocument class that both Document (from data loaders) and IndexStruct (our data struct classes) inherit from.
- Add a DocumentStore that contains the id's of all BaseDocuments. Both Document objects and IndexStruct ... | 225,809 | Python | 5 | 1 | 14 |
async def test_setup_not_ready(hass, ialarmxr_api, mock_config_entry):
ialarmxr_api.return_value.get_mac = Mock(side_effect=ConnectionError)
mock_config_entry.add_to_hass(hass)
assert not await hass.config_entries.async_setup(mock_config_entry.entry_id)
await hass.async_block_till_done()
asser... | https://github.com/home-assistant/core.git | 1 | 91 | 42c80dda85f567192c182da2b4c603408a890381 | 19 | test_init.py | 10 | 6 | core | test_setup_not_ready | 37 | tests/components/ialarm_xr/test_init.py | 17 | Create iAlarmXR integration (#67817)
* Creating iAlarmXR integration
* fixing after review code
* fixing remaining review hints
* fixing remaining review hints
* updating underlying pyialarm library
* Creating iAlarmXR integration
* fixing after review code
* fixing remaining review hints
* fix... | 301,395 | Python | 17 | 0 | 55 | |
def collect_qtqml_files(self):
# No-op if requested Qt-based package is not available.
if self.version is None:
return [], []
# Not all PyQt5/PySide2 installs have QML files. In this case, location['Qml2ImportsPath'] is empty.
# Furthermore, even if location path i... | https://github.com/pyinstaller/pyinstaller.git | 6 | 243 | d789a7daa7712716c89259b987349917a89aece7 | 146 | __init__.py | 15 | 19 | pyinstaller | collect_qtqml_files | 397 | PyInstaller/utils/hooks/qt/__init__.py | 99 | hookutils: reorganize the Qt hook utilities
Reorganize the Qt module information to provide information necessary
to deal with variations between different python Qt bindings (PySide2,
PyQt5, PySide6, and PyQt6). Replace the existing table-like dictionary
with list of entries, which is easier to format and document. F... | 264,031 | Python | 20 | 0 | 144 | |
def test_patricks_move(self):
self.assertEqual(self.pg.node.parent, self.pe.node)
# perform moves under slave...
self.move_page(self.pg, self.pc)
self.reload_pages()
# page is now under PC
self.assertEqual(self.pg.node.parent, self.pc.node)
self.assertEqu... | https://github.com/django-cms/django-cms.git | 1 | 356 | c1290c9ff89cb00caa5469129fd527e9d82cd820 | 72 | test_permmod.py | 11 | 26 | django-cms | test_patricks_move | 314 | cms/tests/test_permmod.py | 50 | ci: Added codespell (#7355)
Co-authored-by: Christian Clauss <cclauss@me.com>
* ci: codespell config taken from #7292 | 82,418 | Python | 15 | 0 | 215 | |
async def test_text_new_min_max_pattern(hass):
text = MockTextEntity(native_min=-1, native_max=500, pattern=r"[a-z]")
text.hass = hass
assert text.capability_attributes == {
ATTR_MIN: 0,
ATTR_MAX: MAX_LENGTH_STATE_STATE,
ATTR_MODE: TextMode.TEXT,
ATTR_PATTERN: r"[a-z]",... | https://github.com/home-assistant/core.git | 1 | 85 | 003e4224c89a6da381960dc5347750d1521d85c9 | 24 | test_init.py | 10 | 9 | core | test_text_new_min_max_pattern | 67 | tests/components/text/test_init.py | 23 | Add `text` platform (#79454)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev> | 291,315 | Python | 15 | 0 | 55 | |
def load_dataset(verbose=False, remove=()):
data_train = fetch_20newsgroups(
subset="train",
categories=categories,
shuffle=True,
random_state=42,
remove=remove,
)
data_test = fetch_20newsgroups(
subset="test",
categories=categories,
shu... | https://github.com/scikit-learn/scikit-learn.git | 2 | 713 | 71028322e8964cf1f341a7b293abaefeb5275e12 | 475 | plot_document_classification_20newsgroups.py | 15 | 48 | scikit-learn | load_dataset | 735 | examples/text/plot_document_classification_20newsgroups.py | 266 | DOC rework plot_document_classification_20newsgroups.py example (#22928)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz> | 260,017 | Python | 67 | 0 | 224 | |
def apply(self, func, *args, **kwargs):
logger = get_logger()
logger.debug(f"ENTER::Partition.apply::{self._identity}")
data = self._data
call_queue = self.call_queue + [[func, args, kwargs]]
if len(call_queue) > 1:
logger.debug(f"SUBMIT::_apply_list_of_funcs... | https://github.com/modin-project/modin.git | 2 | 222 | 193505fdf0c984743397ba3df56262f30aee13a8 | 64 | partition.py | 13 | 13 | modin | apply | 193 | modin/core/execution/unidist/implementations/pandas_on_unidist/partitioning/partition.py | 51 | FEAT-#5053: Add pandas on unidist execution with MPI backend (#5059)
Signed-off-by: Igoshev, Iaroslav <iaroslav.igoshev@intel.com> | 155,176 | Python | 21 | 0 | 126 | |
def test_roundtrip_nullable_dtypes(tmp_path, write_engine, read_engine):
if read_engine == "fastparquet" or write_engine == "fastparquet":
pytest.xfail("https://github.com/dask/fastparquet/issues/465")
df = pd.DataFrame(
{
"a": pd.Series([1, 2, pd.NA, 3, 4], dtype="Int64"),
... | https://github.com/dask/dask.git | 3 | 278 | b1e468e8645baee30992fbfa84250d816ac1098a | @PYARROW_MARK | 60 | test_parquet.py | 14 | 15 | dask | test_roundtrip_nullable_dtypes | 148 | dask/dataframe/io/tests/test_parquet.py | 55 | Add support for `use_nullable_dtypes` to `dd.read_parquet` (#9617) | 157,201 | Python | 22 | 1 | 182 |
def async_update_group_state(self) -> None:
self._attr_assumed_state = False
states = [
state
for entity_id in self._entities
if (state := self.hass.states.get(entity_id)) is not None
]
self._attr_assumed_state |= not states_equal(states)
... | https://github.com/home-assistant/core.git | 14 | 410 | 38a8e86ddeb65ee8c731b90a7063a3b3702dc1ef | 167 | fan.py | 16 | 47 | core | async_update_group_state | 606 | homeassistant/components/group/fan.py | 90 | Cleanup supported_features in group (#82242)
* Cleanup supported_features in group
* Remove defaults
(already set to 0 in fan and media_player) | 290,831 | Python | 41 | 0 | 265 | |
def predict(self, X):
check_is_fitted(self)
X = self._validate_data(X, accept_sparse="csr", reset=False)
return self.classes_[
pairwise_distances_argmin(X, self.centroids_, metric=self.metric)
]
| https://github.com/scikit-learn/scikit-learn.git | 1 | 75 | e01035d3b2dc147cbbe9f6dbd7210a76119991e8 | 15 | _nearest_centroid.py | 10 | 6 | scikit-learn | predict | 61 | sklearn/neighbors/_nearest_centroid.py | 15 | OPTIM use pairwise_distances_argmin in NearestCentroid.predict (#24645)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz> | 261,351 | Python | 11 | 0 | 48 | |
def _suplabels(self, t, info, **kwargs):
suplab = getattr(self, info['name'])
x = kwargs.pop('x', None)
y = kwargs.pop('y', None)
if info['name'] in ['_supxlabel', '_suptitle']:
autopos = y is None
elif info['name'] == '_supylabel':
autopos = x ... | https://github.com/matplotlib/matplotlib.git | 16 | 487 | eeac402ec56d7e69234e0cd7b15f59d53852e457 | 146 | figure.py | 13 | 35 | matplotlib | _suplabels | 463 | lib/matplotlib/figure.py | 69 | Add rcparam for figure label size and weight (#22566)
* Add rcparam for figure label size and weight | 109,149 | Python | 22 | 0 | 283 | |
def test_backfill_execute_subdag_with_removed_task(self):
dag = self.dagbag.get_dag('example_subdag_operator')
subdag = dag.get_task('section-1').subdag
session = settings.Session()
executor = MockExecutor()
job = BackfillJob(
dag=subdag, start_date=DEFAULT_... | https://github.com/apache/airflow.git | 2 | 372 | 49e336ae0302b386a2f47269a6d13988382d975f | 84 | test_backfill_job.py | 15 | 34 | airflow | test_backfill_execute_subdag_with_removed_task | 398 | tests/jobs/test_backfill_job.py | 65 | Replace usage of `DummyOperator` with `EmptyOperator` (#22974)
* Replace usage of `DummyOperator` with `EmptyOperator` | 47,465 | Python | 49 | 0 | 232 | |
def __call__(self, mask_out, bboxes, bbox_num, origin_shape):
num_mask = mask_out.shape[0]
origin_shape = paddle.cast(origin_shape, 'int32')
# TODO: support bs > 1 and mask output dtype is bool
pred_result = paddle.zeros(
[num_mask, origin_shape[0][0], origin_shape[0... | https://github.com/PaddlePaddle/PaddleDetection.git | 1 | 197 | afb3b7a1c7842921b8eacae9d2ac4f2e660ea7e1 | @register | 59 | post_process.py | 11 | 11 | PaddleDetection | __call__ | 174 | ppdet/modeling/post_process.py | 46 | Remove conditional block in RCNN export onnx (#5371)
* support rcnn onnx
* clean code
* update cascade rcnn
* add todo for rpn proposals | 210,267 | Python | 19 | 1 | 129 |
def context_stub(cls):
context = {
'job': {
'allow_simultaneous': False,
'artifacts': {},
'controller_node': 'foo_controller',
'created': datetime.datetime(2018, 11, 13, 6, 4, 0, 0, tzinfo=datetime.timezone.utc),
... | https://github.com/ansible/awx.git | 1 | 894 | 389c4a318035cdb02a972ba8200391765f522169 | 244 | notifications.py | 19 | 96 | awx | context_stub | 1,599 | awx/main/models/notifications.py | 146 | Adding fields to job_metadata for workflows and approval nodes (#12255) | 81,344 | Python | 7 | 0 | 480 | |
def test_build_in_tf_function(self):
m = metrics.MeanTensor(dtype=tf.float64)
| https://github.com/keras-team/keras.git | 1 | 32 | 84afc5193d38057e2e2badf9c889ea87d80d8fbf | 5 | base_metric_test.py | 10 | 11 | keras | test_build_in_tf_function | 19 | keras/metrics/base_metric_test.py | 5 | Reformatting the codebase with black.
PiperOrigin-RevId: 450093126 | 274,647 | Python | 8 | 0 | 117 | |
def func_dump(func):
if os.name == "nt":
raw_code = marshal.dumps(func.__code__).replace(b"\\", b"/")
code = codecs.encode(raw_code, "base64").decode("ascii")
else:
raw_code = marshal.dumps(func.__code__)
code = codecs.encode(raw_code, "base64").decode("ascii")
defaults ... | https://github.com/keras-team/keras.git | 4 | 185 | 84afc5193d38057e2e2badf9c889ea87d80d8fbf | 42 | generic_utils.py | 14 | 13 | keras | func_dump | 105 | keras/utils/generic_utils.py | 28 | Reformatting the codebase with black.
PiperOrigin-RevId: 450093126 | 276,840 | Python | 20 | 0 | 109 | |
def get_evaluation_sets(self) -> List[dict]:
return self.evaluation_set_client.get_evaluation_sets()
| https://github.com/deepset-ai/haystack.git | 1 | 33 | a273c3a51dd432bd125e5b35df4be94260a2cdb7 | 6 | deepsetcloud.py | 8 | 8 | haystack | get_evaluation_sets | 20 | haystack/document_stores/deepsetcloud.py | 6 | EvaluationSetClient for deepset cloud to fetch evaluation sets and la… (#2345)
* EvaluationSetClient for deepset cloud to fetch evaluation sets and labels for one specific evaluation set
* make DeepsetCloudDocumentStore able to fetch uploaded evaluation set names
* fix missing renaming of get_evaluation_set_name... | 257,048 | Python | 5 | 0 | 19 | |
def test_simple(self):
code_owner_1 = self.create_codeowners(
self.project_1, self.code_mapping_1, raw=self.data_1["raw"]
)
code_owner_2 = self.create_codeowners(
self.project_2, self.code_mapping_2, raw=self.data_2["raw"]
)
response = self.get_su... | https://github.com/getsentry/sentry.git | 2 | 274 | 5efa5eeb57ae6ddf740256e08ce3b9ff4ec98eaa | 52 | test_organization_codeowners_associations.py | 13 | 17 | sentry | test_simple | 215 | tests/sentry/api/endpoints/test_organization_codeowners_associations.py | 36 | feat(codeowners): Add endpoint to view code owner associations per organization (#31030)
See API-2186
So the earlier version of this PR just had the endpoint return the entire serialized ProjectCodeOwners for an organization. While that works, the intention behind this feature is to read and use the associations, s... | 95,412 | Python | 26 | 0 | 175 | |
def set(self, **kwargs) -> "Mobject":
for attr, value in kwargs.items():
setattr(self, attr, value)
return self
| https://github.com/ManimCommunity/manim.git | 2 | 53 | 6d15ca5e745ecdd5d0673adbd55fc7a589abdae3 | 15 | mobject.py | 9 | 54 | manim | set | 47 | manim/mobject/mobject.py | 14 | Clarify the docs for MObject.animate, MObject.set and Variable. (#2407)
* Clarify the docs for MObject.animate, MObject.set and Variable.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Slight reword
* Apply suggestions from code review
Co-authore... | 189,402 | Python | 7 | 0 | 32 | |
def test_driver_3():
args_list = [
'tests/tests.csv',
'-is', ',',
'-target', 'class',
'-g', '1',
'-p', '2',
'-cv', '3',
'-s',' 45',
'-config', 'TPOT light',
'-v', '2'
... | https://github.com/EpistasisLab/tpot.git | 2 | 231 | 388616b6247ca4ea8de4e2f340d6206aee523541 | 64 | driver_tests.py | 17 | 23 | tpot | test_driver_3 | 265 | tests/driver_tests.py | 53 | Revert "Deployed 7ccda9a with MkDocs version: 1.3.0"
This reverts commit bd9629c40e01241766197119b581a99409b07068. | 181,598 | Python | 15 | 0 | 125 | |
def _find_all_or_none(qt_library_info, mandatory_dll_patterns, optional_dll_patterns=None):
optional_dll_patterns = optional_dll_patterns or []
# Resolve path to the the corresponding python package (actually, its parent directory). Used to preserve directory
# structure when DLLs are collected from t... | https://github.com/pyinstaller/pyinstaller.git | 6 | 105 | 49abfa5498b1db83b8f1b2e859e461b1e8540c6f | 81 | qt.py | 12 | 15 | pyinstaller | _find_all_or_none | 111 | PyInstaller/utils/hooks/qt.py | 58 | hookutils: qt: ensure ANGLE DLLs are collected from Anaconda Qt5
Anaconda's Qt5 ships ANGLE DLLs (`libEGL.dll` and `libGLESv2.dll`)
but does not seem to provide the `d3dcompiler_XY.dll`. Therefore,
we need to adjust the extra Qt DLL collection to consider the
latter an optional dependency whose absence does not preclu... | 263,901 | Python | 13 | 0 | 100 | |
def test_asarray_with_order(is_array_api):
if is_array_api:
xp = pytest.importorskip("numpy.array_api")
else:
xp = numpy
X = xp.asarray([1.2, 3.4, 5.1])
X_new = _asarray_with_order(X, order="F")
X_new_np = numpy.asarray(X_new)
assert X_new_np.flags["F_CONTIGUOUS"]
| https://github.com/scikit-learn/scikit-learn.git | 2 | 104 | 2710a9e7eefd2088ce35fd2fb6651d5f97e5ef8b | 25 | test_array_api.py | 11 | 9 | scikit-learn | test_asarray_with_order | 60 | sklearn/utils/tests/test_array_api.py | 20 | ENH Adds Array API support to LinearDiscriminantAnalysis (#22554)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz> | 261,040 | Python | 13 | 0 | 67 | |
def set_params(self, **params):
self.check_params(params)
self.sk_params.update(params)
return self
| https://github.com/keras-team/keras.git | 1 | 43 | 84afc5193d38057e2e2badf9c889ea87d80d8fbf | 7 | scikit_learn.py | 8 | 4 | keras | set_params | 35 | keras/wrappers/scikit_learn.py | 7 | Reformatting the codebase with black.
PiperOrigin-RevId: 450093126 | 277,191 | Python | 6 | 0 | 25 | |
def _validate_argument_count(self) -> None:
if isinstance(self.operator_class, str):
return # No need to validate deserialized operator.
operator = self._create_unmapped_operator(
mapped_kwargs={k: unittest.mock.MagicMock(name=k) for k in self.mapped_kwargs},
... | https://github.com/apache/airflow.git | 5 | 143 | 0cd3b11f3a5c406fbbd4433d8e44d326086db634 | 36 | mappedoperator.py | 14 | 20 | airflow | _validate_argument_count | 152 | airflow/models/mappedoperator.py | 33 | Straighten up MappedOperator hierarchy and typing (#21505) | 44,722 | Python | 21 | 0 | 90 | |
def turn_on(self, transition_time, pipeline, **kwargs):
# The night effect does not need a turned on light
if kwargs.get(ATTR_EFFECT) == EFFECT_NIGHT:
if EFFECT_NIGHT in self._effect_list:
pipeline.night_light()
self._effect = EFFECT_NIGHT
... | https://github.com/home-assistant/core.git | 21 | 477 | 6635fc4e3111f72bfa6095c97b3f522429fa1a8b | 158 | light.py | 13 | 41 | core | turn_on | 656 | homeassistant/components/limitlessled/light.py | 88 | Use LightEntityFeature enum in limitlessled (#71061) | 299,547 | Python | 42 | 0 | 291 | |
async def test_duplicate_removal(hass, mqtt_mock_entry_no_yaml_config, caplog):
await mqtt_mock_entry_no_yaml_config()
async_fire_mqtt_message(
hass,
"homeassistant/binary_sensor/bla/config",
'{ "name": "Beer", "state_topic": "test-topic" }',
)
await hass.async_block_till_do... | https://github.com/home-assistant/core.git | 1 | 137 | 52561ce0769ddcf1e8688c8909692b66495e524b | 51 | test_discovery.py | 8 | 15 | core | test_duplicate_removal | 108 | tests/components/mqtt/test_discovery.py | 32 | Update MQTT tests to use the config entry setup (#72373)
* New testframework and tests for fan platform
* Merge test_common_new to test_common
* Add alarm_control_panel
* Add binary_sensor
* Add button
* Add camera
* Add climate
* Add config_flow
* Add cover
* Add device_tracker_disovery
... | 302,108 | Python | 8 | 0 | 75 | |
def _extract_archive(file_path, path=".", archive_format="auto"):
if archive_format is None:
return False
if archive_format == "auto":
archive_format = ["tar", "zip"]
if isinstance(archive_format, str):
archive_format = [archive_format]
file_path = io_utils.path_to_string(f... | https://github.com/keras-team/keras.git | 11 | 297 | 84afc5193d38057e2e2badf9c889ea87d80d8fbf | @keras_export("keras.utils.get_file") | 79 | data_utils.py | 21 | 29 | keras | _extract_archive | 397 | keras/utils/data_utils.py | 53 | Reformatting the codebase with black.
PiperOrigin-RevId: 450093126 | 276,769 | Python | 29 | 1 | 169 |
def test_run_image_classification_no_trainer(self):
tmp_dir = self.get_auto_remove_tmp_dir()
testargs = f.split()
if is_cuda_and_apex_available():
testargs.append("--fp16")
_ = subprocess.run(self._launch_args + testargs, stdout=subprocess.PIPE)
result = get_results... | https://github.com/huggingface/transformers.git | 2 | 195 | acb709d55150501698b5b500ca49683b913d4b3d | 33 | test_accelerate_examples.py | 12 | 23 | transformers | test_run_image_classification_no_trainer | 106 | examples/pytorch/test_accelerate_examples.py | 29 | Change no trainer image_classification test (#17635)
* Adjust test arguments and use a new example test | 31,499 | Python | 23 | 0 | 112 | |
def nest_paths(paths):
nested = []
for path in paths:
parts = PurePath(path).parent.parts
branch = nested
for part in parts:
part = dirname_to_title(part)
branch = find_or_create_node(branch, part)
branch.append(path)
return nested
| https://github.com/mkdocs/mkdocs.git | 3 | 90 | 1c50987f9c17b228fdf22456aa369b83bd6b11b9 | 29 | __init__.py | 12 | 10 | mkdocs | nest_paths | 91 | mkdocs/utils/__init__.py | 19 | Refactor URI handling to not have to deal with backslashes | 224,518 | Python | 12 | 0 | 55 | |
def run_before_hook(self):
return None
| https://github.com/wagtail/wagtail.git | 1 | 16 | bc1a2ab1148b0f27cfd1435f8cb0e44c2721102d | 4 | mixins.py | 6 | 2 | wagtail | run_before_hook | 18 | wagtail/admin/views/generic/mixins.py | 4 | Extract mixins from Snippet views and use it in generic create/edit/delete views (#8361) | 77,226 | Python | 2 | 0 | 8 | |
def test_driver():
batcmd = "python -m tpot.driver tests/tests.csv -is , -target class -g 1 -p 2 -os 4 -cv 5 -s 45 -v 1"
ret_stdout = subprocess.check_output(batcmd, shell=True)
try:
ret_val = float(ret_stdout.decode('UTF-8').split('\n')[-2].split(': ')[-1])
except Exception as e:
... | https://github.com/EpistasisLab/tpot.git | 2 | 123 | 388616b6247ca4ea8de4e2f340d6206aee523541 | 44 | driver_tests.py | 19 | 8 | tpot | test_driver | 76 | tests/driver_tests.py | 39 | Revert "Deployed 7ccda9a with MkDocs version: 1.3.0"
This reverts commit bd9629c40e01241766197119b581a99409b07068. | 181,586 | Python | 12 | 0 | 69 | |
def close(self) -> None:
self._save()
self._handles.close()
XLS_SIGNATURES = (
b"\x09\x00\x04\x00\x07\x00\x10\x00", # BIFF2
b"\x09\x02\x06\x00\x00\x00\x10\x00", # BIFF3
b"\x09\x04\x06\x00\x00\x00\x10\x00", # BIFF4
b"\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1", # Compound File Binary... | https://github.com/pandas-dev/pandas.git | 1 | 147 | 047137ce2619cfe2027e3999dfb92eb614d9a485 | @doc(storage_options=_shared_docs["storage_options"]) | 34 | _base.py | 10 | 4 | pandas | close | 66 | pandas/io/excel/_base.py | 28 | DEP: Protect some ExcelWriter attributes (#45795)
* DEP: Deprecate ExcelWriter attributes
* DEP: Deprecate ExcelWriter attributes
* Fixup for test
* Move tests and restore check_extension
y
* Deprecate xlwt fm_date and fm_datetime; doc improvements | 164,682 | Python | 13 | 1 | 20 |
async def test_max_concurrent_in_progress_functions(extra_req_num):
max_req = 10
a = A(max_num_call=max_req)
# Run more than allowed concurrent async functions should trigger rate limiting
res_arr = await asyncio.gather(
*[a.fn1() if i % 2 == 0 else a.fn2() for i in range(max_req + extra_r... | https://github.com/ray-project/ray.git | 5 | 270 | 365ffe21e592589880e3116302705b5e08a5b81f | @pytest.mark.asyncio
@pytest.mark.parametrize(
"failures",
[
[True, True, True, True, True],
[False, False, False, False, False],
[False, True, False, True, False],
[False, False, False, True, True],
[True, True, False, False, False],
],
) | 120 | test_state_head.py | 15 | 15 | ray | test_max_concurrent_in_progress_functions | 225 | dashboard/tests/test_state_head.py | 78 | [Core | State Observability] Implement API Server (Dashboard) HTTP Requests Throttling (#26257)
This is to limit the max number of HTTP requests the dashboard (API server) will accept before rejecting more requests.
This will make sure the observability requests do not overload the downstream systems (raylet/gcs) whe... | 124,708 | Python | 21 | 1 | 96 |
def astar_path(G, source, target, heuristic=None, weight="weight"):
if source not in G or target not in G:
msg = f"Either source {source} or target {target} is not in G"
raise nx.NodeNotFound(msg)
if heuristic is None:
# The default heuristic is h=0 - same as Dijkstra's algorithm | https://github.com/networkx/networkx.git | 13 | 80 | b28d30bd552a784d60692fd2d2016f8bcd1cfa17 | 45 | astar.py | 10 | 41 | networkx | astar_path | 75 | networkx/algorithms/shortest_paths/astar.py | 34 | Updated astar docstring (#5797)
The docstring now reflects on heuristic admissibility and heuristic value caching | 176,904 | Python | 9 | 0 | 273 | |
def test_note_generic_issue(self, mock_func, occurrence):
event = self.store_event(
data={"message": "Hellboy's world", "level": "error"}, project_id=self.project.id
)
event = event.for_group(event.groups[0])
notification = NoteActivityNotification(
Activ... | https://github.com/getsentry/sentry.git | 1 | 269 | 3255fa4ebb9fbc1df6bb063c0eb77a0298ca8f72 | 62 | test_note.py | 14 | 24 | sentry | test_note_generic_issue | 294 | tests/sentry/integrations/slack/notifications/test_note.py | 48 | feat(integrations): Support generic issue type alerts (#42110)
Add support for issue alerting integrations that use the message builder
(Slack and MSTeams) for generic issue types.
Preview text for Slack alert:
<img width="350" alt="Screen Shot 2022-12-08 at 4 07 16 PM"
src="https://user-images.githubuserconte... | 89,927 | Python | 30 | 0 | 151 | |
async def async_add_devices(address, multiple):
| https://github.com/home-assistant/core.git | 2 | 16 | a9ca774e7ed1d8fe502a53d5b765c1d9b393a524 | 4 | device.py | 6 | 3 | core | async_add_devices | 7 | homeassistant/components/insteon/api/device.py | 4 | Insteon Device Control Panel (#70834)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> | 299,399 | Python | 3 | 0 | 26 | |
def is_subclassed(layer):
return (
layer.__module__.find("keras.engine") == -1
and layer.__module__.find("keras.layers") == -1
)
| https://github.com/keras-team/keras.git | 2 | 58 | 84afc5193d38057e2e2badf9c889ea87d80d8fbf | 12 | base_layer_utils.py | 11 | 5 | keras | is_subclassed | 35 | keras/engine/base_layer_utils.py | 10 | Reformatting the codebase with black.
PiperOrigin-RevId: 450093126 | 270,861 | Python | 4 | 0 | 32 | |
def _async_device_changed(self, *args, **kwargs) -> None:
# Don't update disabled entities
if self.enabled:
_LOGGER.debug("Event %s (%s)", self.name, CONST_ALARM_CONTROL_PANEL_NAME)
self.async_write_ha_state()
else:
_LOGGER.debug(
(
... | https://github.com/home-assistant/core.git | 2 | 90 | cb13418babd21a1e9584978b0c523f1b1e4e1cb0 | 39 | alarm_control_panel.py | 13 | 13 | core | _async_device_changed | 194 | homeassistant/components/homematicip_cloud/alarm_control_panel.py | 37 | String formatting and max line length - Part 2 (#84393) | 297,866 | Python | 10 | 0 | 52 | |
def test_stylesheet_many_classes_dont_overrule_id():
css = "#id {color: red;} .a.b.c.d {color: blue;}"
stylesheet = _make_stylesheet(css)
node = DOMNode(classes="a b c d", id="id")
stylesheet.apply(node)
assert node.styles.color == Color(255, 0, 0)
| https://github.com/Textualize/textual.git | 1 | 82 | 4dd0d9fae43583638f34257f97d5749ca4f2c00c | 27 | test_stylesheet.py | 10 | 6 | textual | test_stylesheet_many_classes_dont_overrule_id | 45 | tests/css/test_stylesheet.py | 24 | Add various additional tests around CSS specificity | 183,841 | Python | 12 | 0 | 47 | |
async def test_check_requesterror(hass, aioclient_mock):
| https://github.com/home-assistant/core.git | 1 | 16 | b41d0be9522fabda0ac8affd2add6876a66205ea | 4 | test_config_flow.py | 6 | 18 | core | test_check_requesterror | 7 | tests/components/homewizard/test_config_flow.py | 4 | Improve HomeWizard request issue reporting (#82366)
* Trigger reauth flow when HomeWizard API was disabled
* Add tests for reauth flow
* Fix typo in test
* Add parallel updates constant
* Improve error message when device in unreachable during config
* Set quality scale
* Remove quality scale
* Th... | 297,532 | Python | 3 | 0 | 112 | |
def to_grams(weight, unit):
try:
if weight < 0:
raise ValueError("Weight must be a positive number")
except TypeError:
raise TypeError(f"Invalid value '{weight}' for weight (must be a number)")
valid_units = WeightUnitChoices.values()
if unit not in valid_units:
... | https://github.com/netbox-community/netbox.git | 8 | 194 | 204c10c053fddc26ad23ec15a3c60eee38bfc081 | 87 | utils.py | 14 | 18 | netbox | to_grams | 177 | netbox/utilities/utils.py | 53 | 9654 device weight (#10448)
* 9654 add weight fields to devices
* 9654 changes from code review
* 9654 change _abs_weight to grams
* Resolve migrations conflict
* 9654 code-review changes
* 9654 total weight on devices
* Misc cleanup
Co-authored-by: Jeremy Stretch <jstretch@ns1.com> | 265,772 | Python | 14 | 0 | 106 | |
def _setitem(self, axis, key, value, how="inner"):
| https://github.com/modin-project/modin.git | 4 | 26 | eddfda4b521366c628596dcb5c21775c7f50eec1 | 6 | query_compiler.py | 6 | 27 | modin | _setitem | 13 | modin/core/storage_formats/pandas/query_compiler.py | 6 | PERF-#4325: Improve perf of multi-column assignment in `__setitem__` when no new column names are assigning (#4455)
Co-authored-by: Yaroslav Igoshev <Poolliver868@mail.ru>
Signed-off-by: Myachev <anatoly.myachev@intel.com> | 153,944 | Python | 6 | 0 | 168 | |
def test_update_organization_config(self):
with self.tasks():
self.assert_setup_flow()
org = self.organization
project_id = self.project.id
enabled_dsn = ProjectKey.get_default(project=Project.objects.get(id=project_id)).get_dsn(
public=True
)
... | https://github.com/getsentry/sentry.git | 2 | 1,025 | 8201e74ec3d81e89354905c946e62436f0247602 | 225 | test_integration.py | 14 | 68 | sentry | test_update_organization_config | 858 | tests/sentry/integrations/vercel/test_integration.py | 107 | ref(integrations): Update Vercel endpoints (#36150)
This PR updates the endpoints we reach to in the Vercel integration. It seems to work just fine without changes as the payloads returned from vercel haven't updated, but we'll need to specify API Scopes so they don't receive 403s.
This also refactored the paginat... | 92,181 | Python | 52 | 0 | 566 | |
async def async_step_manual_connection(self, user_input=None):
errors = {}
if user_input is not None:
# We might be able to discover the device via directed UDP
# in case its on another subnet
if device := await async_discover_device(
self.has... | https://github.com/home-assistant/core.git | 4 | 242 | 26c5dca45d9b3dee002dfe1549780747e5007e06 | 104 | config_flow.py | 16 | 28 | core | async_step_manual_connection | 536 | homeassistant/components/elkm1/config_flow.py | 80 | Ensure elkm1 can be manually configured when discovered instance is not used (#67712) | 293,197 | Python | 32 | 0 | 153 | |
def on_page_read_source(self, **kwargs):
return f'{self.config["foo"]} source'
| https://github.com/mkdocs/mkdocs.git | 1 | 35 | e7f07cc82ab2be920ab426ba07456d8b2592714d | 6 | plugin_tests.py | 9 | 2 | mkdocs | on_page_read_source | 20 | mkdocs/tests/plugin_tests.py | 6 | Remove spaces at the ends of docstrings, normalize quotes | 224,049 | Python | 4 | 0 | 12 | |
def trustworthiness(X, X_embedded, *, n_neighbors=5, metric="euclidean"):
r
n_samples = X.shape[0]
if n_neighbors >= n_samples / 2:
raise ValueError(
f"n_neighbors ({n_neighbors}) should be less than n_samples / 2"
f" ({n_samples / 2})"
)
dist_X = pairwise_distanc... | https://github.com/scikit-learn/scikit-learn.git | 3 | 352 | ade90145c9c660a1a7baf2315185995899b0f356 | 173 | _t_sne.py | 16 | 84 | scikit-learn | trustworthiness | 322 | sklearn/manifold/_t_sne.py | 115 | FIX Raise error when n_neighbors >= n_samples / 2 in manifold.trustworthiness (#23033)
Co-authored-by: Shao Yang Hong <hongsy2006@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com> | 259,640 | Python | 32 | 0 | 228 | |
def start(self):
if self.actors and len(self.actors) > 0:
raise RuntimeError(
"The actors have already been started. "
"Please call `shutdown` first if you want to "
"restart them."
)
logger.debug(f"Starting {self.num_acto... | https://github.com/ray-project/ray.git | 3 | 108 | 7f1bacc7dc9caf6d0ec042e39499bbf1d9a7d065 | 38 | actor_group.py | 12 | 10 | ray | start | 140 | python/ray/util/actor_group.py | 34 | [CI] Format Python code with Black (#21975)
See #21316 and #21311 for the motivation behind these changes. | 132,895 | Python | 9 | 0 | 49 | |
def _detect_checkpoint_function(train_func, abort=False, partial=False):
func_sig = inspect.signature(train_func)
validated = True
try:
# check if signature is func(config, checkpoint_dir=None)
if partial:
func_sig.bind_partial({}, checkpoint_dir="tmp/path")
else:
... | https://github.com/ray-project/ray.git | 5 | 179 | eb69c1ca286a2eec594f02ddaf546657a8127afd | 72 | util.py | 14 | 20 | ray | _detect_checkpoint_function | 215 | python/ray/tune/utils/util.py | 59 | [air] Add annotation for Tune module. (#27060)
Co-authored-by: Kai Fricke <kai@anyscale.com> | 126,264 | Python | 21 | 0 | 102 | |
def should_log(self):
if self.log_on_each_node:
return self.local_process_index == 0
else:
return self.process_index == 0
| https://github.com/PaddlePaddle/PaddleNLP.git | 2 | 43 | 44a290e94d1becd1f09fddc3d873f9e19c9d6919 | 13 | trainer_args.py | 10 | 5 | PaddleNLP | should_log | 56 | paddlenlp/trainer/trainer_args.py | 10 | [Trainer] Add init version of paddlenlp trainer and apply finetune for ernie-1.0 pretraining. (#1761)
* add some datasets for finetune.
* support fine tune for all tastks.
* add trainer prototype.
* init verison for paddlenlp trainer.
* refine trainer.
* update for some details.
* support multi-card... | 323,123 | Python | 5 | 0 | 25 | |
async def test_all_optional_config(hass):
with assert_setup_component(1, "template"):
assert await setup.async_setup_component(
hass,
"template",
{
"template": {
"number": {
"state": "{{ 4 }}",
... | https://github.com/home-assistant/core.git | 1 | 169 | b70e97e949ca73fe57849625c0b0c51f0b8796f7 | 50 | test_number.py | 19 | 21 | core | test_all_optional_config | 309 | tests/components/template/test_number.py | 37 | Remove unused calls fixture from template tests (#71735) | 300,405 | Python | 8 | 0 | 90 | |
def radviz(frame, class_column, ax=None, color=None, colormap=None, **kwds) -> Axes:
plot_backend = _get_plot_backend("matplotlib")
return plot_backend.radviz(
frame=frame,
class_column=class_column,
ax=ax,
color=color,
colormap=colormap,
**kwds,
)
| https://github.com/pandas-dev/pandas.git | 1 | 88 | 4bb1fd50a63badd38b5d96d9c4323dae7bc36d8d | 21 | _misc.py | 9 | 79 | pandas | radviz | 75 | pandas/plotting/_misc.py | 21 | TYP: Missing return annotations in util/tseries/plotting (#47510)
* TYP: Missing return annotations in util/tseries/plotting
* the more tricky parts | 167,393 | Python | 10 | 0 | 60 | |
def download_file(url, path): # type: (str, str) -> None
with open(to_bytes(path), 'wb') as saved_file:
download = urlopen(url)
shutil.copyfileobj(download, saved_file)
| https://github.com/ansible/ansible.git | 1 | 63 | 68fb3bf90efa3a722ba5ab7d66b1b22adc73198c | 19 | requirements.py | 12 | 4 | ansible | download_file | 40 | test/lib/ansible_test/_util/target/setup/requirements.py | 19 | ansible-test - Fix consistency of managed venvs. (#77028) | 266,663 | Python | 10 | 0 | 35 | |
def extract_bucket_name(config):
return config["artifact_destination"]["output_uri_prefix"].rpartition("gs://")[-1]
| https://github.com/apache/airflow.git | 1 | 44 | ca4b8d1744cd1de9b6af97dacb0e03de0f014006 | 4 | vertex_ai.py | 11 | 2 | airflow | extract_bucket_name | 18 | airflow/providers/google/cloud/links/vertex_ai.py | 4 | Create Endpoint and Model Service, Batch Prediction and Hyperparameter Tuning Jobs operators for Vertex AI service (#22088) | 46,474 | Python | 3 | 0 | 23 | |
def export_kubernetes(args):
Flow.load_config(args.flowpath).to_kubernetes_yaml(
output_base_path=args.outpath, k8s_namespace=args.k8s_namespace
)
| https://github.com/jina-ai/jina.git | 1 | 48 | 16b16b07a66cd5a8fc7cca1d3f1c378a9c63d38c | 6 | exporter.py | 10 | 4 | jina | export_kubernetes | 22 | jina/exporter.py | 6 | refactor: rename cli to jina_cli (#4890)
* chore: fix readme
* chore: fix readme
* chore: fix dockerignore
* fix: #4845
* style: fix overload and cli autocomplete
* fix: cicd export cli
Co-authored-by: Jina Dev Bot <dev-bot@jina.ai> | 12,472 | Python | 9 | 0 | 29 | |
def expand_frame(self, frame, source_context=None, source=None):
if frame.get("lineno") is None:
return False
if source_context is None:
source = source or self.get_sourceview(frame["abs_path"])
if source is None:
logger.debug("No source fou... | https://github.com/getsentry/sentry.git | 14 | 272 | ae9c0d8a33d509d9719a5a03e06c9797741877e9 | 87 | processor.py | 14 | 18 | sentry | expand_frame | 257 | src/sentry/lang/javascript/processor.py | 50 | ref(processor): Use symbolic-sourcemapcache for JavaScript Sourcemap processing (#38551)
This PR attempts to replace the currently used `rust-sourcemap` crate
and it's symbolic python bindings, with `symbolic-sourcemapcache` crate.
It makes the whole processing pipeline easier to maintain, as it pushes
some work ... | 86,267 | Python | 17 | 0 | 169 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 10