instance_id
stringlengths
14
37
repo
stringclasses
26 values
split
stringclasses
1 value
query
stringlengths
10
4k
gold_files
listlengths
1
194
gold_units
listlengths
1
1.58k
files
listlengths
1
194
units
listlengths
0
2.99k
DataDog__integrations-core-1019
DataDog/integrations-core
train
Support for "headers" configuration in haproxy.yaml? Hi all, I'm interested in passing a custom header to my HAProxy integration in `haproxy.yaml`, like this: ``` instances: - name: haproxy url: http://localhost:3000 headers: service-route: haproxy-stats ``` However, that [doesn't ap...
[ "haproxy/datadog_checks/haproxy/__init__.py", "haproxy/datadog_checks/haproxy/haproxy.py" ]
[ "haproxy/datadog_checks/haproxy/__init__.py::<module>", "haproxy/datadog_checks/haproxy/haproxy.py::HAProxy.__init__", "haproxy/datadog_checks/haproxy/haproxy.py::HAProxy._fetch_url_data", "haproxy/datadog_checks/haproxy/haproxy.py::HAProxy.check" ]
[ { "cid": "haproxy/datadog_checks/haproxy/__init__.py", "text": "haproxy/datadog_checks/haproxy/__init__.py", "label": 1 }, { "cid": "haproxy/datadog_checks/haproxy/haproxy.py", "text": "haproxy/datadog_checks/haproxy/haproxy.py\nclass Services\nclass HAProxy\n def __init__(self, name, ini...
[ { "cid": "haproxy/datadog_checks/haproxy/haproxy.py::HAProxy.__init__", "text": "haproxy/datadog_checks/haproxy/haproxy.py::HAProxy.__init__\n def __init__(self, name, init_config, agentConfig, instances=None):\n AgentCheck.__init__(self, name, init_config, agentConfig, instances)\n\n # Hos...
pyca__cryptography-1424
pyca/cryptography
train
Need zope.interface.verify.verifyObject for ABCs. Every object that claims to provide some interface should then use it in a unit test.
[ "cryptography/utils.py" ]
[ "cryptography/utils.py::<module>", "cryptography/utils.py::register_interface.register_decorator" ]
[ { "cid": "cryptography/hazmat/backends/commoncrypto/ciphers.py", "text": "cryptography/hazmat/backends/commoncrypto/ciphers.py\nclass _CipherContext\n def __init__(self, backend, cipher, mode, operation)\n def update(self, data)\n def finalize(self)\nclass _GCMCipherContext\n def __init__(self, ...
[ { "cid": "cryptography/hazmat/backends/commoncrypto/ciphers.py::_CipherContext.__init__", "text": "cryptography/hazmat/backends/commoncrypto/ciphers.py::_CipherContext.__init__\n def __init__(self, backend, cipher, mode, operation):\n self._backend = backend\n self._cipher = cipher\n ...
dagster-io__dagster-2897
dagster-io/dagster
train
typo in bigquery solids.py Typo calls `biquery` instead of `bigquery`: https://github.com/dagster-io/dagster/blob/4a91c9d09b50db93e9174c93a4ada0e138e3a046/python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/solids.py#L136 This causes this solid to fail when it can't find the resource. Fails with the following ...
[ "python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/solids.py" ]
[ "python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/solids.py::_execute_load_in_source" ]
[ { "cid": "python_modules/dagster/dagster/core/errors.py", "text": "python_modules/dagster/dagster/core/errors.py\nclass DagsterError # Base class for all errors thrown by the Dagster framework.\n def is_user_code_error(self) # Returns true if this error is attributable to user code.\nclass DagsterInval...
[ { "cid": "python_modules/dagster/dagster/core/errors.py::DagsterError.is_user_code_error", "text": "python_modules/dagster/dagster/core/errors.py::DagsterError.is_user_code_error\n @property\n def is_user_code_error(self):\n \"\"\"Returns true if this error is attributable to user code.\"\"\"\n...
docker__compose-2142
docker/compose
train
Error when running docker-compose build/up on Windows ``` Traceback (most recent call last): File "C:\Python27\Scripts\docker-compose-script.py", line 9, in <module> load_entry_point('docker-compose==1.5.0.dev0', 'console_scripts', 'docker-compose')() File "C:\Python27\lib\site-packages\compose\cli\main.py", li...
[ "compose/cli/command.py", "compose/cli/docopt_command.py", "compose/cli/main.py" ]
[ "compose/cli/command.py::<module>", "compose/cli/command.py::Command.dispatch", "compose/cli/command.py::Command.perform_command", "compose/cli/docopt_command.py::<module>", "compose/cli/docopt_command.py::DocoptCommand.perform_command", "compose/cli/main.py::<module>", "compose/cli/main.py::TopLevelCom...
[ { "cid": "compose/cli/command.py", "text": "compose/cli/command.py\nclass Command\n def dispatch(self, *args, **kwargs)\n def perform_command(self, options, handler, command_options)\ndef get_config_path(file_option)\ndef get_client(verbose=False)\ndef get_project(base_dir, config_path=None, project_n...
[ { "cid": "compose/cli/command.py::Command.dispatch", "text": "compose/cli/command.py::Command.dispatch\n def dispatch(self, *args, **kwargs):\n try:\n super(Command, self).dispatch(*args, **kwargs)\n except SSLError as e:\n raise errors.UserError('SSL error: %s' % e)\n...
wagtail__wagtail-1395
wagtail/wagtail
train
Add a system check to reject invalid block names in StreamField On wagtail==1.0b1, python==3.4.2 and django==1.7.7 when I write the following: <pre> class ServicePage(Page): body = StreamField([ ('Rich text', blocks.RichTextBlock()), ('Image', ImageChooserBlock()), ], blank=True) ServicePage....
[ "wagtail/wagtailcore/blocks/base.py", "wagtail/wagtailcore/blocks/list_block.py", "wagtail/wagtailcore/blocks/stream_block.py", "wagtail/wagtailcore/blocks/struct_block.py", "wagtail/wagtailcore/fields.py" ]
[ "wagtail/wagtailcore/blocks/base.py::<module>", "wagtail/wagtailcore/blocks/list_block.py::<module>", "wagtail/wagtailcore/blocks/stream_block.py::<module>", "wagtail/wagtailcore/blocks/struct_block.py::<module>", "wagtail/wagtailcore/fields.py::StreamField.get_searchable_content" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "wagtail/wagtailadmin/migrations/0001_create_admin_access_permissions.py", "text": "wagtail/wagtailadmin/migrations/0001_create_admin_access_permissions.py\ndef create_admin_access_permissions(apps, schema_editor)\nclass...
[ { "cid": "wagtail/wagtailadmin/migrations/0001_create_admin_access_permissions.py::create_admin_access_permissions", "text": "wagtail/wagtailadmin/migrations/0001_create_admin_access_permissions.py::create_admin_access_permissions\ndef create_admin_access_permissions(apps, schema_editor):\n ContentType =...
celery__celery-3669
celery/celery
train
Specifying app/backend in GroupResult.restore is slightly awkward In Celery 3.x I used `GroupResult.restore('some-id')` and it somehow found my app and figured out the backend (not sure how, but it worked). In Celery 4.x this does not work (it does not find the backend and crashes). That makes sense to me (I like th...
[ "celery/result.py" ]
[ "celery/result.py::GroupResult.restore" ]
[ { "cid": "celery/backends/base.py", "text": "celery/backends/base.py\ndef unpickle_backend(cls, args, kwargs) # Return an unpickled backend.\nclass _nulldict\n def ignore(self, *a, **kw)\nclass Backend\n def __init__(self, app, serializer=None, max_cached_results=None, accept=None, expires=None, expi...
[ { "cid": "celery/backends/base.py::unpickle_backend", "text": "celery/backends/base.py::unpickle_backend\ndef unpickle_backend(cls, args, kwargs):\n \"\"\"Return an unpickled backend.\"\"\"\n return cls(*args, app=current_app._get_current_object(), **kwargs)", "label": 0 }, { "cid": "celer...
googleapis__google-cloud-python-1334
googleapis/google-cloud-python
train
[Documentation Issue] gcloud.pubsub.message.Message isn't documented! Internal Username: ddopson@google Page Name: pubsub-subscription Release: 0.8.0 The documentation for the `pull` method says that it returns instances of `gcloud.pubsub.message.Message`. That type doesn't link anywhere and I can't find any documen...
[ "gcloud/pubsub/client.py", "gcloud/pubsub/message.py", "gcloud/pubsub/subscription.py", "gcloud/pubsub/topic.py" ]
[ "gcloud/pubsub/client.py::Client.list_subscriptions", "gcloud/pubsub/client.py::Client.list_topics", "gcloud/pubsub/message.py::<module>", "gcloud/pubsub/subscription.py::<module>", "gcloud/pubsub/subscription.py::Subscription.acknowledge", "gcloud/pubsub/subscription.py::Subscription.create", "gcloud/p...
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "gcloud/pubsub/__init__.py", "text": "gcloud/pubsub/__init__.py", "label": 0 }, { "cid": "gcloud/pubsub/client.py", "text": "gcloud/pubsub/client.py\nclass Client # Client to bundle configuration needed ...
[ { "cid": "gcloud/pubsub/client.py::Client.list_topics", "text": "gcloud/pubsub/client.py::Client.list_topics\n def list_topics(self, page_size=None, page_token=None):\n \"\"\"List topics for the project associated with this client.\n\n See:\n https://cloud.google.com/pubsub/reference...
celery__celery-5297
celery/celery
train
Complex canvas might raise AttributeError: 'dict' object has no attribute 'clone' WARNING: I'm still trying to collect all the necessary details and, if possible, provide a reproducible example. For the time, the error is happening constantly in one server, but doesn't happen in another one with the same source code....
[ "celery/canvas.py" ]
[ "celery/canvas.py::group.link_error" ]
[ { "cid": "celery/__init__.py", "text": "celery/__init__.py\ndef _find_option_with_arg(argv, short_opts=None, long_opts=None) # Search argv for options specifying short and longopt alternatives.\ndef _patch_eventlet()\ndef _patch_gevent()\ndef maybe_patch_concurrency(argv=None, short_opts=None, long_opts=No...
[ { "cid": "celery/__init__.py::_find_option_with_arg", "text": "celery/__init__.py::_find_option_with_arg\ndef _find_option_with_arg(argv, short_opts=None, long_opts=None):\n \"\"\"Search argv for options specifying short and longopt alternatives.\n\n Returns:\n str: value for option found\n ...
docker__compose-6379
docker/compose
train
compose crashes on relative paths after release ## Description of the issue Receive a stack trace on build when relative paths are used in the build config. The release prior to this worked fine. I didn't get the version number, but I kept updating with every version that was being automatically downloaded by Dock...
[ "setup.py" ]
[ "setup.py::<module>" ]
[ { "cid": "compose/cli/errors.py", "text": "compose/cli/errors.py\nclass UserError\n def __init__(self, msg)\n def __unicode__(self)\nclass ConnectionError\ndef handle_connection_errors(client)\ndef log_windows_pipe_error(exc)\ndef log_timeout_error(timeout)\ndef log_api_error(e, client_version)\ndef e...
[ { "cid": "compose/cli/errors.py::UserError.__init__", "text": "compose/cli/errors.py::UserError.__init__\n def __init__(self, msg):\n self.msg = dedent(msg).strip()", "label": 0 }, { "cid": "compose/cli/errors.py::UserError.__unicode__", "text": "compose/cli/errors.py::UserError.__...
Qiskit__qiskit-1900
Qiskit/qiskit
train
Allow inheritance of QuantumRegister and ClassicalRegister Attempting to inherit from QuantumRegister or ClassicalRegister currently causes type errors in `instruction.py`'s constructor. There may be other areas that require updates to make this functionality viable.
[ "qiskit/circuit/instruction.py" ]
[ "qiskit/circuit/instruction.py::Instruction.__init__" ]
[ { "cid": "qiskit/__init__.py", "text": "qiskit/__init__.py", "label": 0 }, { "cid": "qiskit/circuit/instruction.py", "text": "qiskit/circuit/instruction.py\nclass Instruction # Generic quantum instruction.\n def __init__(self, name, param, qargs, cargs, circuit=None) # Create a new inst...
[ { "cid": "qiskit/circuit/instruction.py::Instruction.__init__", "text": "qiskit/circuit/instruction.py::Instruction.__init__\n def __init__(self, name, param, qargs, cargs, circuit=None):\n \"\"\"Create a new instruction.\n Args:\n name (str): instruction name\n param ...
ipython__ipython-8620
ipython/ipython
train
Can't break exception chaining with 'from None' In plain Python: ``` >>> try: ... 1/0 ... except ZeroDivisionError: ... raise ValueError("foo") from None ... Traceback (most recent call last): File "<stdin>", line 4, in <module> ValueError: foo ``` Same code in IPython produces: ``` --------------------------...
[ "IPython/core/ultratb.py" ]
[ "IPython/core/ultratb.py::VerboseTB.get_parts_of_chained_exception.get_chained_exception" ]
[ { "cid": "IPython/core/magics/execution.py", "text": "IPython/core/magics/execution.py\nclass TimeitResult # Object returned by the timeit magic with info about the run.\n def __init__(self, loops, repeat, best, all_runs, compile_time, precision)\n def _repr_pretty_(self, p, cycle)\nclass TimeitTempl...
[ { "cid": "IPython/core/magics/execution.py::TimeitResult.__init__", "text": "IPython/core/magics/execution.py::TimeitResult.__init__\n def __init__(self, loops, repeat, best, all_runs, compile_time, precision):\n self.loops = loops\n self.repeat = repeat\n self.best = best\n s...
google__jax-337
google/jax
train
add option to globally disable jit for better debugging (Relates to #196) It's harder to debug jitted functions than non-jitted functions, since it's essentially impossible to introspect their intermediate state. One option is to comment out the jit decorator, but then you have to remember to put it back when you're...
[ "jax/api.py" ]
[ "jax/api.py::<module>", "jax/api.py::jit.f_jitted" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "jax/api.py", "text": "jax/api.py\ndef jit(fun, static_argnums=()) # Sets up `fun` for just-in-time compilation with XLA.\n def f_jitted(*args, **kwargs)\ndef grad(fun, argnums=0) # Creates a function which evaluate...
[ { "cid": "jax/api.py::jit", "text": "jax/api.py::jit\ndef jit(fun, static_argnums=()):\n \"\"\"Sets up `fun` for just-in-time compilation with XLA.\n\n Args:\n fun: Function to be jitted. Should be a pure function, as side-effects may\n only be executed once. Its positional arguments and return va...
ipython__ipython-4880
ipython/ipython
train
parallel.Client() not using profile that notebook was run with? I just updated some code that was using 0.13.1 to 1.1, and I noticed that even though I started the notebooks with a profile, when I did `rc = parallel.Client()` it looked in my default directory for the json connection files not the profile used to start ...
[ "IPython/core/application.py" ]
[ "IPython/core/application.py::BaseIPythonApplication.init_profile_dir" ]
[ { "cid": "IPython/core/application.py", "text": "IPython/core/application.py\nclass BaseIPythonApplication\n def _config_file_name_default(self)\n def _config_file_name_changed(self, name, old, new)\n def _config_file_paths_default(self)\n def _extra_config_file_changed(self, name, old, new)\n ...
[ { "cid": "IPython/core/application.py::BaseIPythonApplication._config_file_name_default", "text": "IPython/core/application.py::BaseIPythonApplication._config_file_name_default\n def _config_file_name_default(self):\n return self.name.replace('-','_') + u'_config.py'", "label": 0 }, { ...
PrefectHQ__prefect-2832
PrefectHQ/prefect
train
Client produces hard-to-understand error when not authenticated ## Description When `client.Client` is not authenticated (`prefect._api_token` is `None`), API calls generate difficult-to-understand error messages. ## Expected Behavior *What did you expect to happen instead?* I expected that API calls from a C...
[ "src/prefect/client/client.py", "src/prefect/tasks/prefect/flow_run.py" ]
[ "src/prefect/client/client.py::Client._request", "src/prefect/tasks/prefect/flow_run.py::<module>", "src/prefect/tasks/prefect/flow_run.py::FlowRunTask.run" ]
[ { "cid": "src/prefect/cli/auth.py", "text": "src/prefect/cli/auth.py\ndef check_override_auth_token()\ndef auth() # Handle Prefect Cloud authorization.\ndef login(token) # Log in to Prefect Cloud with an api token to use for Cloud communication.\ndef logout() # Log out of Prefect Cloud\ndef list_tenants(...
[ { "cid": "src/prefect/cli/auth.py::check_override_auth_token", "text": "src/prefect/cli/auth.py::check_override_auth_token\ndef check_override_auth_token():\n if config.cloud.get(\"auth_token\"):\n click.secho(\"Auth token already present in config.\", fg=\"red\")\n raise Abort", "label...
google__jax-452
google/jax
train
Do JAX jit'd Python loops run faster than jit'd LAX loop constructs? Please see the GIST [Minimal repro](https://gist.github.com/sussillo/76e191ba07bf2e75a4d4945f749549fe) where I tried to implement a recurrent computation (an echostate network) both in JAX and LAX. Using the lax.fori_loop resulted in a roughly 3x slow...
[ "build/jaxlib/__init__.py", "build/setup.py", "jax/lib/xla_bridge.py", "setup.py" ]
[ "build/jaxlib/__init__.py::<module>", "build/setup.py::<module>", "jax/lib/xla_bridge.py::<module>", "jax/lib/xla_bridge.py::_check_jaxlib_version", "jax/lib/xla_bridge.py::_get_xla_client", "jax/lib/xla_bridge.py::_jaxlib_version", "setup.py::<module>" ]
[ { "cid": "build/build.py", "text": "build/build.py\ndef shell(cmd)\ndef get_python_bin_path(python_bin_path_flag) # Returns the path to the Python interpreter to use.\ndef download_and_verify_bazel() # Downloads a bazel binary from Github, verifying its SHA256 hash.\ndef get_bazel_path(bazel_path_flag) #...
[ { "cid": "build/build.py::shell", "text": "build/build.py::shell\ndef shell(cmd):\n output = subprocess.check_output(cmd)\n return output.decode(\"UTF-8\").strip()", "label": 0 }, { "cid": "build/build.py::get_python_bin_path", "text": "build/build.py::get_python_bin_path\ndef get_python_b...
pandas-dev__pandas-15443
pandas-dev/pandas
train
Adding Timedelta parameter to time-based .rolling() Starting with a simple DataFrame: ```python n = 10 df = pd.DataFrame({'value': np.arange(n)}, index=pd.date_range('2015-12-24', periods=n, freq="D")) ``` I can invoke a time-based `.rolling()` with a string for the offset: ```python df....
[ "pandas/core/window.py" ]
[ "pandas/core/window.py::<module>", "pandas/core/window.py::Rolling.validate" ]
[ { "cid": "pandas/core/window.py", "text": "pandas/core/window.py\nclass _Window\n def __init__(self, obj, window=None, min_periods=None, freq=None, center=False, win_type=None, axis=0, on=None, **kwargs)\n def _constructor(self)\n def is_datetimelike(self)\n def _on(self)\n def is_freq_type(s...
[ { "cid": "pandas/core/window.py::_Window.__init__", "text": "pandas/core/window.py::_Window.__init__\n def __init__(self, obj, window=None, min_periods=None, freq=None,\n center=False, win_type=None, axis=0, on=None, **kwargs):\n\n if freq is not None:\n warnings.warn(\"...
pandas-dev__pandas-5187
pandas-dev/pandas
train
BUG: Formerly useful behavior now raises. I did this: In [1]: df1 = DataFrame([1, 2, 3, 4, 5], index=[1, 2, 1, 2, 3]) In [2]: df2 = DataFrame([1, 2, 3], index=[1, 2, 3]) In [3]: df1.sub(df2) Out[3]: 0 1 0 1 2 2 0 2 2 3 2 which is possible up to and including [this commit](https://github.com/jreback/pandas/...
[ "pandas/core/generic.py", "pandas/sparse/frame.py" ]
[ "pandas/core/generic.py::NDFrame._align_frame", "pandas/sparse/frame.py::SparseDataFrame._reindex_with_indexers" ]
[ { "cid": "pandas/core/generic.py", "text": "pandas/core/generic.py\ndef is_dictlike(x)\ndef _single_replace(self, to_replace, method, inplace, limit)\nclass NDFrame # N-dimensional analogue of DataFrame. Store multi-dimensional in a\n def __init__(self, data, axes=None, copy=False, dtype=None, fastpath=...
[ { "cid": "pandas/core/generic.py::is_dictlike", "text": "pandas/core/generic.py::is_dictlike\ndef is_dictlike(x):\n return isinstance(x, (dict, com.ABCSeries))", "label": 0 }, { "cid": "pandas/core/generic.py::_single_replace", "text": "pandas/core/generic.py::_single_replace\ndef _single...
wagtail__wagtail-9194
wagtail/wagtail
train
Chooser button text: "Change" vs. "Edit" (vs. "Clear") ### Is your proposal related to a problem? Currently the buttons "Change" and "Edit" lead to confusion, which button actually changes what: ![chooser_buttons](https://user-images.githubusercontent.com/468164/187713067-d9a04730-1ba2-4f01-ac51-85537919baa4.png) ...
[ "wagtail/admin/viewsets/chooser.py", "wagtail/admin/widgets/chooser.py", "wagtail/admin/widgets/workflows.py", "wagtail/documents/views/chooser.py", "wagtail/images/views/chooser.py", "wagtail/images/widgets.py", "wagtail/sites/forms.py", "wagtail/snippets/widgets.py" ]
[ "wagtail/admin/viewsets/chooser.py::<module>", "wagtail/admin/widgets/chooser.py::<module>", "wagtail/admin/widgets/workflows.py::<module>", "wagtail/documents/views/chooser.py::<module>", "wagtail/images/views/chooser.py::<module>", "wagtail/images/widgets.py::<module>", "wagtail/sites/forms.py::SiteFo...
[ { "cid": "wagtail/admin/templatetags/wagtailadmin_tags.py", "text": "wagtail/admin/templatetags/wagtailadmin_tags.py\ndef breadcrumbs(context, page, url_name, url_root_name=None, include_self=True, is_expanded=False, page_perms=None, querystring_value=None, trailing_breadcrumb_title=None)\ndef search_other(...
[ { "cid": "wagtail/admin/templatetags/wagtailadmin_tags.py::breadcrumbs", "text": "wagtail/admin/templatetags/wagtailadmin_tags.py::breadcrumbs\n@register.inclusion_tag(\"wagtailadmin/shared/breadcrumbs.html\", takes_context=True)\ndef breadcrumbs(\n context,\n page,\n url_name,\n url_root_name=N...
pandas-dev__pandas-31071
pandas-dev/pandas
train
Passing a dictionary of columns names and colors Related to this question: http://stackoverflow.com/questions/25689558/pandas-bar-plot-specify-bar-color-by-column Having the ability to natively pass in a dictionary of the column names and the desired color could be a nice addition to simplify specifying what color y...
[ "pandas/plotting/_core.py", "pandas/plotting/_matplotlib/core.py", "pandas/plotting/_matplotlib/style.py" ]
[ "pandas/plotting/_core.py::<module>", "pandas/plotting/_core.py::PlotAccessor.bar", "pandas/plotting/_core.py::PlotAccessor.barh", "pandas/plotting/_core.py::PlotAccessor.line", "pandas/plotting/_matplotlib/core.py::BarPlot._make_plot", "pandas/plotting/_matplotlib/core.py::MPLPlot._apply_style_colors", ...
[ { "cid": "pandas/plotting/_core.py", "text": "pandas/plotting/_core.py\ndef hist_series(self, by=None, ax=None, grid=True, xlabelsize=None, xrot=None, ylabelsize=None, yrot=None, figsize=None, bins=10, backend=None, **kwargs) # Draw histogram of the input series using matplotlib.\ndef hist_frame(data, colu...
[ { "cid": "pandas/plotting/_core.py::hist_series", "text": "pandas/plotting/_core.py::hist_series\ndef hist_series(\n self,\n by=None,\n ax=None,\n grid=True,\n xlabelsize=None,\n xrot=None,\n ylabelsize=None,\n yrot=None,\n figsize=None,\n bins=10,\n backend=None,\n **kwa...
pantsbuild__pants-19271
pantsbuild/pants
train
"Dependencies with docker_image targets" shorthand example doesn't find the image dependency **Describe the bug** https://www.pantsbuild.org/docs/helm-deployments#dependencies-with-docker_image-targets ``` $ cat src/deployment/BUILD #Overrides the `image` value for the chart using the target address for the firs...
[ "src/python/pants/backend/helm/target_types.py" ]
[ "src/python/pants/backend/helm/target_types.py::<module>" ]
[ { "cid": "src/python/pants/backend/docker/target_types.py", "text": "src/python/pants/backend/docker/target_types.py\nclass DockerImageBuildArgsField\nclass DockerImageContextRootField\n def compute_value(cls, raw_value: Optional[str], address: Address)\nclass DockerImageSourceField\nclass DockerImageIns...
[ { "cid": "src/python/pants/backend/docker/target_types.py::DockerImageContextRootField.compute_value", "text": "src/python/pants/backend/docker/target_types.py::DockerImageContextRootField.compute_value\n @classmethod\n def compute_value(cls, raw_value: Optional[str], address: Address) -> Optional[str...
googleapis__google-cloud-python-5594
googleapis/google-cloud-python
train
StackDriver: ResourceExhausted: 429 Received message larger than max (5595329 vs. 4194304) Hi When trying to query Stackdriver metrics I am getting the following error `ResourceExhausted: 429 Received message larger than max`. I feel like the max rpc call should be far over 4Mb, or the client should be to assemble ...
[ "monitoring/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py", "monitoring/google/cloud/monitoring_v3/gapic/group_service_client.py", "monitoring/google/cloud/monitoring_v3/gapic/metric_service_client.py", "monitoring/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py", "...
[ "monitoring/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py::<module>", "monitoring/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py::AlertPolicyServiceClient.__init__", "monitoring/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py::AlertPolicyServiceClient._intercep...
[ { "cid": "logging/google/cloud/logging_v2/gapic/logging_service_v2_client.py", "text": "logging/google/cloud/logging_v2/gapic/logging_service_v2_client.py\nclass LoggingServiceV2Client # Service for ingesting and querying logs.\n def project_path(cls, project) # Return a fully-qualified project string....
[ { "cid": "logging/google/cloud/logging_v2/gapic/logging_service_v2_client.py::LoggingServiceV2Client.project_path", "text": "logging/google/cloud/logging_v2/gapic/logging_service_v2_client.py::LoggingServiceV2Client.project_path\n @classmethod\n def project_path(cls, project):\n \"\"\"Return a ...
Lightning-AI__lightning-2055
Lightning-AI/lightning
train
WandbLogger warning not logging logs. <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightning#faq) --> ## 🐛 Bug...
[ "pytorch_lightning/loggers/wandb.py" ]
[ "pytorch_lightning/loggers/wandb.py::WandbLogger.log_metrics" ]
[ { "cid": "pytorch_lightning/loggers/neptune.py", "text": "pytorch_lightning/loggers/neptune.py\nclass NeptuneLogger # Log using `Neptune <https://neptune.ai>`_. Install it with pip:\n def __init__(self, api_key: Optional[str]=None, project_name: Optional[str]=None, close_after_fit: Optional[bool]=True, ...
[ { "cid": "pytorch_lightning/loggers/neptune.py::NeptuneLogger.__init__", "text": "pytorch_lightning/loggers/neptune.py::NeptuneLogger.__init__\n def __init__(self,\n api_key: Optional[str] = None,\n project_name: Optional[str] = None,\n close_after_fit: Opt...
Lightning-AI__lightning-1654
Lightning-AI/lightning
train
Allow keeping default save_dir in ModelCheckpointer ## Feature Make `filepath` argument of `ModelCheckpointer` optional. ### Motivation I'm pretty happy with all defaults of `ModelCheckpointer` except `save_top_k`. In case I want to override that parameter I have to write some awkward code related to figuring out...
[ "pytorch_lightning/callbacks/model_checkpoint.py" ]
[ "pytorch_lightning/callbacks/model_checkpoint.py::ModelCheckpoint.__init__" ]
[ { "cid": "pytorch_lightning/callbacks/model_checkpoint.py", "text": "pytorch_lightning/callbacks/model_checkpoint.py\nclass ModelCheckpoint # Save the model after every epoch.\n def __init__(self, filepath: Optional[str]=None, monitor: str='val_loss', verbose: bool=False, save_top_k: int=1, save_weights...
[ { "cid": "pytorch_lightning/callbacks/model_checkpoint.py::ModelCheckpoint.__init__", "text": "pytorch_lightning/callbacks/model_checkpoint.py::ModelCheckpoint.__init__\n def __init__(self, filepath: Optional[str] = None, monitor: str = 'val_loss', verbose: bool = False,\n save_top_k: int...
googleapis__google-cloud-python-9503
googleapis/google-cloud-python
train
BigQuery: Remove duplicate test dependencies from nox session configuration The `system` and `snippets` nox session unnecessarily install `test_utils` twice, and this redundancy should be removed.
[ "bigquery/noxfile.py" ]
[ "bigquery/noxfile.py::<module>", "bigquery/noxfile.py::default" ]
[ { "cid": "asset/noxfile.py", "text": "asset/noxfile.py\ndef lint(session) # Run linters.\ndef blacken(session) # Run black.\ndef lint_setup_py(session) # Verify that setup.py is valid (including RST check).\ndef default(session)\ndef unit(session) # Run the unit test suite.\ndef system(session) # Run t...
[ { "cid": "asset/noxfile.py::lint", "text": "asset/noxfile.py::lint\n@nox.session(python=\"3.7\")\ndef lint(session):\n \"\"\"Run linters.\n\n Returns a failure if the linters find linting errors or sufficiently\n serious code quality issues.\n \"\"\"\n session.install(\"flake8\", BLACK_VERSIO...
docker__compose-3922
docker/compose
train
Docker-compose rejects windows style volume mappings When building windows containers a compose file like: ``` foo: image: windowsservercore volumes: - C:\foo:C:\bar:ro ``` Results in the error: ERROR: Volume c:\foo:c:\bar:ro has incorrect format, should be external:internal[:mode] But if I call doc...
[ "compose/config/config.py", "compose/config/types.py", "compose/utils.py" ]
[ "compose/config/config.py::<module>", "compose/config/config.py::split_path_mapping", "compose/config/types.py::<module>", "compose/config/types.py::VolumeSpec.parse", "compose/config/types.py::normalize_paths_for_engine", "compose/utils.py::<module>", "compose/utils.py::build_string_dict" ]
[ { "cid": "compose/cli/main.py", "text": "compose/cli/main.py\ndef main()\ndef dispatch()\ndef perform_command(options, handler, command_options)\ndef setup_logging()\ndef setup_console_handler(handler, verbose)\ndef parse_doc_section(name, source)\nclass TopLevelCommand # Define and run multi-container app...
[ { "cid": "compose/cli/main.py::main", "text": "compose/cli/main.py::main\ndef main():\n command = dispatch()\n\n try:\n command()\n except (KeyboardInterrupt, signals.ShutdownException):\n log.error(\"Aborting.\")\n sys.exit(1)\n except (UserError, NoSuchService, Configurati...
twisted__twisted-11726
twisted/twisted
train
tests for twisted.protocols.dict raise deprecation errors Running the tests for twisted.protocols.dict raise deprecation errors. This module was deprecated in 17.9, so the cleanest way to resolve this is to remove it. To repro, run the test case from #10149 While working on #11712, it was requested that the rem...
[ "src/twisted/protocols/__init__.py" ]
[ "src/twisted/protocols/__init__.py::<module>" ]
[ { "cid": "src/twisted/application/app.py", "text": "src/twisted/application/app.py\nclass _BasicProfiler # @ivar saveStats: if C{True}, save the stats information instead of the\n def __init__(self, profileOutput, saveStats)\n def _reportImportError(self, module, e) # Helper method to report an impo...
[ { "cid": "src/twisted/application/app.py::_BasicProfiler.__init__", "text": "src/twisted/application/app.py::_BasicProfiler.__init__\n def __init__(self, profileOutput, saveStats):\n self.profileOutput = profileOutput\n self.saveStats = saveStats", "label": 0 }, { "cid": "src/tw...
pantsbuild__pants-6789
pantsbuild/pants
train
Coursier integration is partial leading to confusing failures Parts of pants, like the `Export` and `BootstrapJvmTools` tasks are hardcoded to use `IvyTaskMixin` and thus ivy. This makes using custom repos confusing since those repos need to be duplicated in ivy config and pants coursier config. If I'm a user that has ...
[ "src/python/pants/backend/jvm/tasks/bootstrap_jvm_tools.py", "src/python/pants/backend/jvm/tasks/coursier/coursier_subsystem.py", "src/python/pants/backend/jvm/tasks/coursier_resolve.py", "src/python/pants/backend/project_info/tasks/export.py" ]
[ "src/python/pants/backend/jvm/tasks/bootstrap_jvm_tools.py::<module>", "src/python/pants/backend/jvm/tasks/bootstrap_jvm_tools.py::BootstrapJvmTools._bootstrap_classpath", "src/python/pants/backend/jvm/tasks/coursier/coursier_subsystem.py::CoursierSubsystem.register_options", "src/python/pants/backend/jvm/tas...
[ { "cid": "src/python/pants/backend/jvm/register.py", "text": "src/python/pants/backend/jvm/register.py\nclass DeprecatedJavaTests\n def __init__(self, *args, **kwargs)\ndef build_file_aliases()\ndef global_subsystems()\ndef register_goals()", "label": 0 }, { "cid": "src/python/pants/backend/j...
[ { "cid": "src/python/pants/backend/jvm/register.py::DeprecatedJavaTests.__init__", "text": "src/python/pants/backend/jvm/register.py::DeprecatedJavaTests.__init__\n def __init__(self, *args, **kwargs):\n super(DeprecatedJavaTests, self).__init__(*args, **kwargs)\n warn_or_error('1.4.0.dev0',\n ...
ipython__ipython-6607
ipython/ipython
train
Reload button on the clusters tab is not working I had a gazillion IPython profiles in my profile folder from a theme experiment that were all showing up on the `Clusters` tab. While the IPython server was running, I deleted all these profiles. When I now click on the reload icon, nothing happens. A web-browser reload ...
[ "IPython/html/services/clusters/clustermanager.py" ]
[ "IPython/html/services/clusters/clustermanager.py::<module>", "IPython/html/services/clusters/clustermanager.py::ClusterManager.update_profiles" ]
[ { "cid": "IPython/core/usage.py", "text": "IPython/core/usage.py\ndef page_guiref(arg_s=None) # Show a basic reference about the GUI Console.", "label": 0 }, { "cid": "IPython/html/notebookapp.py", "text": "IPython/html/notebookapp.py\ndef random_ports(port, n) # Generate a list of n rando...
[ { "cid": "IPython/core/usage.py::page_guiref", "text": "IPython/core/usage.py::page_guiref\ndef page_guiref(arg_s=None):\n \"\"\"Show a basic reference about the GUI Console.\"\"\"\n from IPython.core import page\n page.page(gui_reference)", "label": 0 }, { "cid": "IPython/html/notebook...
jupyterlab__jupyterlab-3481
jupyterlab/jupyterlab
train
Move tests After the big split, we can move the tests to the individual `packages`. That way each test can be run from that package, or from the top level using `lerna run test`. We are hoisting dev dependencies, meaning that karma and mocha would only be installed at the root of the repo.
[ "jupyterlab/process.py", "setup.py" ]
[ "jupyterlab/process.py::Process._create_process", "jupyterlab/process.py::WatchHelper._create_process", "setup.py::<module>", "setup.py::check_assets" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py\ndef setup(app)", "label": 0 }, { "cid": "jupyterlab/commands.py", "text": "jupyterlab/commands.py\ndef pjoin(*args) # Join paths to create a real path.\ndef get_user_settings_dir() # Get the configured JupyterLab app directory.\ndef get_app_d...
[ { "cid": "docs/conf.py::setup", "text": "docs/conf.py::setup\ndef setup(app):\n app.add_config_value('recommonmark_config', {\n 'url_resolver': lambda url: github_doc_root + url,\n 'auto_toc_tree_section': 'Contents',\n 'enable_eval_rst': True,\n 'enable_auto_doc_ref': False,\...
ytdl-org__youtube-dl-718
ytdl-org/youtube-dl
train
[HCI] Progress Counter Progress counter when downloading from playlist.. would increase this awesome tool usability e.g. downloading video #11 of 90
[ "youtube_dl/FileDownloader.py", "youtube_dl/InfoExtractors.py" ]
[ "youtube_dl/FileDownloader.py::FileDownloader._match_entry", "youtube_dl/FileDownloader.py::FileDownloader.download", "youtube_dl/FileDownloader.py::FileDownloader.prepare_filename", "youtube_dl/FileDownloader.py::FileDownloader.process_info", "youtube_dl/InfoExtractors.py::BlipTVUserIE._real_extract", "y...
[ { "cid": "devscripts/transition_helper_exe/setup.py", "text": "devscripts/transition_helper_exe/setup.py", "label": 0 }, { "cid": "devscripts/transition_helper_exe/youtube-dl.py", "text": "devscripts/transition_helper_exe/youtube-dl.py\ndef rsa_verify(message, signature, key)\n def b(x)",...
[ { "cid": "devscripts/transition_helper_exe/youtube-dl.py::rsa_verify", "text": "devscripts/transition_helper_exe/youtube-dl.py::rsa_verify\ndef rsa_verify(message, signature, key):\n from struct import pack\n from hashlib import sha256\n from sys import version_info\n def b(x):\n if versi...
Qiskit__qiskit-6681
Qiskit/qiskit
train
Improve documentation for AlignMeasures and ValidatePulseGates transpiler passes <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. --> ### What is the expected enhancement? In #6673 two new tran...
[ "qiskit/transpiler/passes/scheduling/instruction_alignment.py" ]
[ "qiskit/transpiler/passes/scheduling/instruction_alignment.py::<module>", "qiskit/transpiler/passes/scheduling/instruction_alignment.py::AlignMeasures.__init__", "qiskit/transpiler/passes/scheduling/instruction_alignment.py::ValidatePulseGates.__init__" ]
[ { "cid": "qiskit/compiler/transpiler.py", "text": "qiskit/compiler/transpiler.py\ndef transpile(circuits: Union[QuantumCircuit, List[QuantumCircuit]], backend: Optional[Union[Backend, BaseBackend]]=None, basis_gates: Optional[List[str]]=None, coupling_map: Optional[Union[CouplingMap, List[List[int]]]]=None,...
[ { "cid": "qiskit/compiler/transpiler.py::transpile", "text": "qiskit/compiler/transpiler.py::transpile\ndef transpile(\n circuits: Union[QuantumCircuit, List[QuantumCircuit]],\n backend: Optional[Union[Backend, BaseBackend]] = None,\n basis_gates: Optional[List[str]] = None,\n coupling_map: Opti...
PrefectHQ__prefect-1290
PrefectHQ/prefect
train
Breaking change in 0.6.0 Hi team, We were using release 0.5.5 and when trying to upgrade to 0.6.0 we are faced with a breaking change: prefect forces us to use all lowercase letters for keys in the config.toml file. This creates a problem for us because we have several keys who are different only in their letter...
[ "src/prefect/configuration.py" ]
[ "src/prefect/configuration.py::validate_config", "src/prefect/configuration.py::validate_config.check_lowercase_keys" ]
[ { "cid": "src/prefect/configuration.py", "text": "src/prefect/configuration.py\nclass Config\n def __getattr__(self, attr: str) # This method helps mypy discover attribute types without annotations\n def copy(self) # Create a copy of the config. Each level of the Config is a new Config object, so\n ...
[ { "cid": "src/prefect/configuration.py::Config.__getattr__", "text": "src/prefect/configuration.py::Config.__getattr__\n def __getattr__(self, attr: str) -> Any:\n \"\"\"\n This method helps mypy discover attribute types without annotations\n \"\"\"\n if attr in self:\n ...
google__jax-834
google/jax
train
np.arange ignores dtype arange ignores the passed dtype and is always `int*` ```python a = np.arange(4, dtype=np.complex64) print(a.dtype) assert a.dtype == np.complex64 ``` Results in: ``` int64 --------------------------------------------------------------------------- AssertionError ...
[ "jax/numpy/lax_numpy.py" ]
[ "jax/numpy/lax_numpy.py::arange" ]
[ { "cid": "jax/lax_linalg.py", "text": "jax/lax_linalg.py\ndef cholesky(x, symmetrize_input=True)\ndef eig(x)\ndef eigh(x, lower=True, symmetrize_input=True)\ndef lu(x)\ndef qr(x, full_matrices=True)\ndef svd(x, full_matrices=True, compute_uv=True)\ndef triangular_solve(a, b, left_side=False, lower=False, tr...
[ { "cid": "jax/lax_linalg.py::cholesky", "text": "jax/lax_linalg.py::cholesky\ndef cholesky(x, symmetrize_input=True):\n if symmetrize_input:\n x = symmetrize(x)\n return np.tril(cholesky_p.bind(x))", "label": 0 }, { "cid": "jax/lax_linalg.py::eig", "text": "jax/lax_linalg.py::eig\ndef e...
dagster-io__dagster-12857
dagster-io/dagster
train
add a utility for creating table schema metadata for a Pandas dataframe
[ "python_modules/libraries/dagster-pandas/dagster_pandas/data_frame.py" ]
[ "python_modules/libraries/dagster-pandas/dagster_pandas/data_frame.py::<module>" ]
[ { "cid": "examples/assets_dynamic_partitions/assets_dynamic_partitions/assets.py", "text": "examples/assets_dynamic_partitions/assets_dynamic_partitions/assets.py\ndef releases_metadata(context) # Table with a single row per release\ndef _get_release_zip_path(release_tag: str)\ndef release_zips(context, re...
[ { "cid": "examples/assets_dynamic_partitions/assets_dynamic_partitions/assets.py::releases_metadata", "text": "examples/assets_dynamic_partitions/assets_dynamic_partitions/assets.py::releases_metadata\n@asset(\n partitions_def=releases_partitions_def,\n io_manager_key=\"warehouse\",\n metadata={\"p...
conan-io__conan-3239
conan-io/conan
train
[TFS-Git repo] can't install config When specifying a git repo hosted on TFS 2017, the "conan config install" fails withouth trying to do a "git clone". It does work when pointing to a github repo Git repos URL on TFS don't end by ".git" Conan version : 1.4.5 OS : Ubuntu 16.04 (xenial) ```/home/jfrog/.local/...
[ "conans/client/command.py", "conans/client/conan_api.py", "conans/client/conf/config_installer.py" ]
[ "conans/client/command.py::Command.config", "conans/client/conan_api.py::ConanAPIV1.config_install", "conans/client/conf/config_installer.py::_process_download", "conans/client/conf/config_installer.py::configuration_install" ]
[ { "cid": "conans/client/command.py", "text": "conans/client/command.py\nclass Extender # Allows to use the same flag several times in a command and creates a list with t\n def __call__(self, parser, namespace, values, option_strings=None)\nclass OnceArgument # Allows to declare a parameter that can hav...
[ { "cid": "conans/client/command.py::Extender.__call__", "text": "conans/client/command.py::Extender.__call__\n def __call__(self, parser, namespace, values, option_strings=None): # @UnusedVariable\n # Need None here incase `argparse.SUPPRESS` was supplied for `dest`\n dest = getattr(namesp...
ipython__ipython-5388
ipython/ipython
train
Output for semicolon-terminated lines with comments cf https://github.com/JuliaLang/IJulia.jl/issues/109 The output of a semicolon-terminated line with comment is not suppressed in IPython. ``` b = 1 b; # foo ``` give `Out[13]: 1` ``` b = 1 b; ``` does not. Havent found such and issue on our tracker. @takluyver...
[ "IPython/core/displayhook.py" ]
[ "IPython/core/displayhook.py::<module>", "IPython/core/displayhook.py::DisplayHook.quiet" ]
[ { "cid": "IPython/core/displayhook.py", "text": "IPython/core/displayhook.py\nclass DisplayHook # The custom IPython displayhook to replace sys.displayhook.\n def __init__(self, shell=None, cache_size=1000, **kwargs)\n def prompt_count(self)\n def check_for_underscore(self) # Check if the user ha...
[ { "cid": "IPython/core/displayhook.py::DisplayHook.__init__", "text": "IPython/core/displayhook.py::DisplayHook.__init__\n def __init__(self, shell=None, cache_size=1000, **kwargs):\n super(DisplayHook, self).__init__(shell=shell, **kwargs)\n\n cache_size_min = 3\n if cache_size <= 0...
googleapis__google-cloud-python-576
googleapis/google-cloud-python
train
Reuse storage HTTP status code -> exception type mapping in datastore [Existing implementation](https://github.com/GoogleCloudPlatform/gcloud-python/blob/56daf8c248be400f69e8c292743a897ea83c34cb/gcloud/storage/exceptions.py#L158) [where we would use it](https://github.com/GoogleCloudPlatform/gcloud-python/pull/506#dis...
[ "gcloud/datastore/connection.py", "gcloud/storage/blob.py", "gcloud/storage/bucket.py", "gcloud/storage/connection.py", "regression/storage.py" ]
[ "gcloud/datastore/connection.py::<module>", "gcloud/datastore/connection.py::Connection._request", "gcloud/storage/blob.py::Blob.delete", "gcloud/storage/blob.py::Blob.download_as_string", "gcloud/storage/blob.py::Blob.download_to_file", "gcloud/storage/blob.py::Blob.download_to_filename", "gcloud/stora...
[ { "cid": "_gcloud_vendor/apitools/base/py/util.py", "text": "_gcloud_vendor/apitools/base/py/util.py\ndef DetectGae() # Determine whether or not we're running on GAE.\ndef DetectGce() # Determine whether or not we're running on GCE.\ndef NormalizeScopes(scope_spec) # Normalize scope_spec to a set of stri...
[ { "cid": "_gcloud_vendor/apitools/base/py/util.py::DetectGae", "text": "_gcloud_vendor/apitools/base/py/util.py::DetectGae\ndef DetectGae():\n \"\"\"Determine whether or not we're running on GAE.\n\n This is based on:\n https://developers.google.com/appengine/docs/python/#The_Environment\n\n Returns:\...
wagtail__wagtail-10189
wagtail/wagtail
train
🎛️ Migrate `initSlugAutoPopulate` to a Stimulus Controller `w-sync` > ℹ️ **Part of the [Stimulus 🎛️ RFC 78](https://github.com/wagtail/rfcs/pull/78)** ### Is your proposal related to a problem? There is a core JavaScript implementation that allows for syncing the slug field with the title field as the user upd...
[ "wagtail/admin/panels/page_utils.py", "wagtail/admin/widgets/slug.py" ]
[ "wagtail/admin/panels/page_utils.py::set_default_page_edit_handlers", "wagtail/admin/widgets/slug.py::SlugInput.__init__" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py\ndef setup(app)", "label": 0 }, { "cid": "wagtail/actions/create_alias.py", "text": "wagtail/actions/create_alias.py\nclass CreatePageAliasIntegrityError # Raised when creating an alias of a page cannot be performed for data integrity r\nclass ...
[ { "cid": "docs/conf.py::setup", "text": "docs/conf.py::setup\ndef setup(app):\n app.add_js_file(\"js/banner.js\")", "label": 0 }, { "cid": "wagtail/actions/create_alias.py::CreatePageAliasAction.__init__", "text": "wagtail/actions/create_alias.py::CreatePageAliasAction.__init__\n def _...
Lightning-AI__lightning-3145
Lightning-AI/lightning
train
ONNX model does not save on GPU ## 🐛 Bug Attempting to export on ONNX after training model on GPU, throws an error is the `input_sample` or `example_input_array` is not a CUDA tensor. ### To Reproduce Steps to reproduce the behavior: 1. Train a model on GPU 2. Try to export to ONNX when `self.example_inp...
[ "pytorch_lightning/core/lightning.py" ]
[ "pytorch_lightning/core/lightning.py::LightningModule.to_onnx" ]
[ { "cid": "pytorch_lightning/core/lightning.py", "text": "pytorch_lightning/core/lightning.py\nclass LightningModule\n def __init__(self, *args, **kwargs)\n def example_input_array(self)\n def example_input_array(self, example: Any)\n def datamodule(self)\n def datamodule(self, datamodule: Any...
[ { "cid": "pytorch_lightning/core/lightning.py::LightningModule.__init__", "text": "pytorch_lightning/core/lightning.py::LightningModule.__init__\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n\n self.exp_save_path = None\n\n #: The current epoch\n ...
numpy__numpy-16878
numpy/numpy
train
Possible wrong polyfit documentation <!-- Please describe the issue in detail here, and fill in the fields below --> Hi! I think that the documentation of numpy polyfit could be misleading/wrong when describing the scaling factor for the covariance matrix. Indeed with the option ``cov=True``, the covariance ma...
[ "numpy/lib/polynomial.py" ]
[ "numpy/lib/polynomial.py::polyfit" ]
[ { "cid": "numpy/lib/polynomial.py", "text": "numpy/lib/polynomial.py\nclass RankWarning # Issued by `polyfit` when the Vandermonde matrix is rank deficient.\ndef _poly_dispatcher(seq_of_zeros)\ndef poly(seq_of_zeros) # Find the coefficients of a polynomial with the given sequence of roots.\ndef _roots_dis...
[ { "cid": "numpy/lib/polynomial.py::_poly_dispatcher", "text": "numpy/lib/polynomial.py::_poly_dispatcher\ndef _poly_dispatcher(seq_of_zeros):\n return seq_of_zeros", "label": 0 }, { "cid": "numpy/lib/polynomial.py::poly", "text": "numpy/lib/polynomial.py::poly\n@array_function_dispatch(_p...
Qiskit__qiskit-9201
Qiskit/qiskit
train
commutation_checker.py tries to create identity operator with size 2^(2^num_qubits) ### Environment - **Qiskit Terra version**: 0.22.2 - **Python version**: 3.10.8 - **Operating system**: Manjaro Linux 22.0.0 ### What is happening? I am trying to transpile a deep 10 qubit circuit with optimization_level=3. T...
[ "qiskit/circuit/commutation_checker.py" ]
[ "qiskit/circuit/commutation_checker.py::CommutationChecker.commute" ]
[ { "cid": "qiskit/circuit/commutation_checker.py", "text": "qiskit/circuit/commutation_checker.py\ndef _identity_op(num_qubits) # Cached identity matrix\nclass CommutationChecker # This code is essentially copy-pasted from commutative_analysis.py.\n def __init__(self)\n def _hashable_parameters(self,...
[ { "cid": "qiskit/circuit/commutation_checker.py::_identity_op", "text": "qiskit/circuit/commutation_checker.py::_identity_op\n@lru_cache(maxsize=None)\ndef _identity_op(num_qubits):\n \"\"\"Cached identity matrix\"\"\"\n return Operator(\n np.eye(2**num_qubits), input_dims=(2,) * num_qubits, ou...
PrefectHQ__prefect-956
PrefectHQ/prefect
train
Proposal PIN: Storage & Execution # Status Proposed # Context Our current environments setup contains multiple classes, some of which can be deployed, others which can't. Moreover, the environment classes tightly couple _storage_ of a flow with _execution platform_ details. This leads to an unsatisfactory inte...
[ "src/prefect/core/flow.py", "src/prefect/environments/execution/base.py", "src/prefect/environments/execution/cloud/environment.py", "src/prefect/environments/storage/__init__.py", "src/prefect/environments/storage/base.py", "src/prefect/environments/storage/docker.py", "src/prefect/serialization/storag...
[ "src/prefect/core/flow.py::Flow.serialize", "src/prefect/environments/execution/base.py::Environment.execute", "src/prefect/environments/execution/cloud/environment.py::CloudEnvironment._populate_job_yaml", "src/prefect/environments/execution/cloud/environment.py::CloudEnvironment.create_flow_run_job", "src...
[ { "cid": "examples/retries_with_mapping.py", "text": "examples/retries_with_mapping.py\ndef generate_random_list()\ndef randomly_fail()", "label": 0 }, { "cid": "src/prefect/client/client.py", "text": "src/prefect/client/client.py\nclass Client # Client for communication with Prefect Cloud\...
[ { "cid": "examples/retries_with_mapping.py::generate_random_list", "text": "examples/retries_with_mapping.py::generate_random_list\n@task\ndef generate_random_list():\n n = random.randint(15, 25)\n return list(range(n))", "label": 0 }, { "cid": "examples/retries_with_mapping.py::randomly_f...
docker__compose-2055
docker/compose
train
Ctrl-C on `docker-compose up` raises thread.error I get this intermittently (sometimes it does shutdown gracefully): ``` ^CGracefully stopping... (press Ctrl+C again to force) Stopping dailylead_db_1... Stopping dailylead_queue_1... Traceback (most recent call last): File "<string>", line 3, in <module> File "/Use...
[ "compose/cli/multiplexer.py" ]
[ "compose/cli/multiplexer.py::<module>", "compose/cli/multiplexer.py::Multiplexer.loop" ]
[ { "cid": "compose/cli/command.py", "text": "compose/cli/command.py\nclass Command\n def dispatch(self, *args, **kwargs)\n def perform_command(self, options, handler, command_options)\n def get_client(self, verbose=False)\n def get_project(self, config_path=None, project_name=None, verbose=False)...
[ { "cid": "compose/cli/command.py::Command.dispatch", "text": "compose/cli/command.py::Command.dispatch\n def dispatch(self, *args, **kwargs):\n try:\n super(Command, self).dispatch(*args, **kwargs)\n except SSLError as e:\n raise errors.UserError('SSL error: %s' % e)\n...
google__jax-741
google/jax
train
np.trace is broken ``` import jax.numpy as np import numpy as onp # This works print(onp.trace(onp.ones((2, 3, 4, 4)), axis1=-1, axis2=-2)) # This does not work print(np.trace(np.ones((2, 3, 4, 4)), axis1=-1, axis2=-2)) ``` Error message: ``` >>> print(np.trace(np.ones((2, 3, 4, 4)), axis1=-1, axis2=-2)...
[ "jax/numpy/lax_numpy.py" ]
[ "jax/numpy/lax_numpy.py::trace" ]
[ { "cid": "build/build.py", "text": "build/build.py\ndef shell(cmd)\ndef get_python_bin_path(python_bin_path_flag) # Returns the path to the Python interpreter to use.\ndef download_and_verify_bazel() # Downloads a bazel binary from Github, verifying its SHA256 hash.\ndef get_bazel_path(bazel_path_flag) #...
[ { "cid": "build/build.py::shell", "text": "build/build.py::shell\ndef shell(cmd):\n output = subprocess.check_output(cmd)\n return output.decode(\"UTF-8\").strip()", "label": 0 }, { "cid": "build/build.py::get_python_bin_path", "text": "build/build.py::get_python_bin_path\ndef get_python_b...
Qiskit__qiskit-8216
Qiskit/qiskit
train
Add date attribute to BasicAer job result ### What is the expected enhancement? This is a practical improvement because it aligns the API with AerJob. It is also required according to https://arxiv.org/abs/1809.03452. See https://github.com/Qiskit-Partners/mthree/issues/94 for context. add date to all Result objects -...
[ "qiskit/result/result.py" ]
[ "qiskit/result/result.py::Result.__init__", "qiskit/result/result.py::Result.__repr__", "qiskit/result/result.py::Result.from_dict", "qiskit/result/result.py::Result.to_dict" ]
[ { "cid": "qiskit/circuit/library/generalized_gates/mcmt.py", "text": "qiskit/circuit/library/generalized_gates/mcmt.py\nclass MCMT # The multi-controlled multi-target gate, for an arbitrary singly controlled targe\n def __init__(self, gate: Union[Gate, Callable[[QuantumCircuit, Qubit, Qubit], Instructio...
[ { "cid": "qiskit/circuit/library/generalized_gates/mcmt.py::MCMT.__init__", "text": "qiskit/circuit/library/generalized_gates/mcmt.py::MCMT.__init__\n def __init__(\n self,\n gate: Union[Gate, Callable[[QuantumCircuit, Qubit, Qubit], Instruction]],\n num_ctrl_qubits: int,\n nu...
Qiskit__qiskit-3668
Qiskit/qiskit
train
Gates do not check if complex inputs passed in <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: master - **Python version**: - **Operating system**: ### What is the current beha...
[ "qiskit/circuit/gate.py", "qiskit/circuit/instruction.py", "qiskit/converters/ast_to_dag.py", "qiskit/extensions/quantum_initializer/diagonal.py", "qiskit/extensions/quantum_initializer/initializer.py", "qiskit/extensions/quantum_initializer/isometry.py", "qiskit/extensions/quantum_initializer/mcg_up_to...
[ "qiskit/circuit/gate.py::<module>", "qiskit/circuit/gate.py::Gate.broadcast_arguments", "qiskit/circuit/instruction.py::Instruction.params", "qiskit/converters/ast_to_dag.py::<module>", "qiskit/converters/ast_to_dag.py::AstInterpreter._create_op", "qiskit/extensions/quantum_initializer/diagonal.py::<modul...
[ { "cid": "qiskit/circuit/gate.py", "text": "qiskit/circuit/gate.py\nclass Gate # Unitary gate.\n def __init__(self, name, num_qubits, params, label=None) # Create a new gate.\n def to_matrix(self) # Return a Numpy.array for the gate unitary matrix.\n def power(self, exponent) # Creates a unitar...
[ { "cid": "qiskit/circuit/gate.py::Gate.__init__", "text": "qiskit/circuit/gate.py::Gate.__init__\n def __init__(self, name, num_qubits, params, label=None):\n \"\"\"Create a new gate.\n\n Args:\n name (str): the Qobj name of the gate\n num_qubits (int): the number of q...
googleapis__google-cloud-python-6345
googleapis/google-cloud-python
train
Pub/Sub: mistake in publisher client example It should have been `from google.cloud.pubsub_v1 import PublisherClient` in this line: https://github.com/googleapis/google-cloud-python/blob/23a3204770f68a56dba12d1a37058398773f3daf/pubsub/google/cloud/pubsub_v1/publisher/client.py#L156
[ "pubsub/google/cloud/pubsub_v1/publisher/client.py", "pubsub/google/cloud/pubsub_v1/subscriber/client.py" ]
[ "pubsub/google/cloud/pubsub_v1/publisher/client.py::Client.publish", "pubsub/google/cloud/pubsub_v1/subscriber/client.py::Client.subscribe" ]
[ { "cid": "pubsub/google/cloud/pubsub_v1/__init__.py", "text": "pubsub/google/cloud/pubsub_v1/__init__.py\nclass PublisherClient\nclass SubscriberClient", "label": 0 }, { "cid": "pubsub/google/cloud/pubsub_v1/futures.py", "text": "pubsub/google/cloud/pubsub_v1/futures.py\nclass Future # Enca...
[ { "cid": "pubsub/google/cloud/pubsub_v1/futures.py::Future.__init__", "text": "pubsub/google/cloud/pubsub_v1/futures.py::Future.__init__\n def __init__(self, completed=None):\n self._result = self._SENTINEL\n self._exception = self._SENTINEL\n self._callbacks = []\n if complet...
wagtail__wagtail-9966
wagtail/wagtail
train
Ability to support outer double quotes in `wagtail.search.utils.parse_query_string` ### Is your proposal related to a problem? In #7961 (PR #9875) the util `wagtail.search.utils.parse_query_string` was updated to support more than one key/value syntax as a string being parsed into an Object for the query. However...
[ "wagtail/search/utils.py" ]
[ "wagtail/search/utils.py::parse_query_string", "wagtail/search/utils.py::separate_filters_from_query" ]
[ { "cid": "setup.py", "text": "setup.py", "label": 0 }, { "cid": "wagtail/coreutils.py", "text": "wagtail/coreutils.py\ndef camelcase_to_underscore(str)\ndef string_to_ascii(value) # Convert a string to ascii.\ndef get_model_string(model) # Returns a string that can be used to identify the ...
[ { "cid": "wagtail/coreutils.py::camelcase_to_underscore", "text": "wagtail/coreutils.py::camelcase_to_underscore\ndef camelcase_to_underscore(str):\n # https://djangosnippets.org/snippets/585/\n return (\n re.sub(\"(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))\", \"_\\\\1\", str).lower().strip(\"_\")\...
jupyterlab__jupyterlab-7079
jupyterlab/jupyterlab
train
Allow custom apps to reuse build system I've recently been experimenting with creating a custom lab app (https://github/com/vidartf/phoila). Mostly, I found the system to be configurable (some bits more easily than others), but the one bit I ended up having to monkey patch was [`_get_core_data`](https://github.com/jupy...
[ "jupyterlab/commands.py", "jupyterlab/extension.py", "jupyterlab/handlers/build_handler.py", "jupyterlab/handlers/extension_manager_handler.py", "jupyterlab/labapp.py", "jupyterlab/labextensions.py" ]
[ "jupyterlab/commands.py::<module>", "jupyterlab/commands.py::ProgressProcess.__init__", "jupyterlab/commands.py::_AppHandler.__init__", "jupyterlab/commands.py::build", "jupyterlab/commands.py::build_check", "jupyterlab/commands.py::check_extension", "jupyterlab/commands.py::clean", "jupyterlab/comman...
[ { "cid": "clean.py", "text": "clean.py", "label": 0 }, { "cid": "docs/source/conf.py", "text": "docs/source/conf.py\ndef setup(app)", "label": 0 }, { "cid": "examples/app/main.py", "text": "examples/app/main.py\nclass ExampleApp\n def start(self)", "label": 0 }, { ...
[ { "cid": "docs/source/conf.py::setup", "text": "docs/source/conf.py::setup\ndef setup(app):\n app.add_config_value('recommonmark_config', {\n 'url_resolver': lambda url: github_doc_root + url,\n 'auto_toc_tree_section': 'Contents',\n 'enable_eval_rst': True,\n 'enable_auto_doc...
conan-io__conan-5348
conan-io/conan
train
VS 2019 with older toolsets broken since 1.15.0 This is the same as https://github.com/conan-io/conan/issues/5318, but for Visual Studio 2019. With Visual Studio 2019 (16.0), you can also install the Visual Studio 2017 (v141) and 2015 (v140) build tools. This broke with https://github.com/conan-io/conan/commit/6d328...
[ "conans/client/generators/cmake_common.py" ]
[ "conans/client/generators/cmake_common.py::<module>" ]
[ { "cid": "conans/client/build/cmake_flags.py", "text": "conans/client/build/cmake_flags.py\ndef get_toolset(settings)\ndef get_generator(settings)\ndef get_generator_platform(settings, generator)\ndef is_multi_configuration(generator)\ndef is_toolset_supported(generator)\ndef is_generator_platform_supported...
[ { "cid": "conans/client/build/cmake_flags.py::get_toolset", "text": "conans/client/build/cmake_flags.py::get_toolset\ndef get_toolset(settings):\n if settings.get_safe(\"compiler\") == \"Visual Studio\":\n subs_toolset = settings.get_safe(\"compiler.toolset\")\n if subs_toolset:\n ...
wagtail__wagtail-1811
wagtail/wagtail
train
wagtailsearch.views.frontend needs updating to use non-deprecated search method Currently using Page.search, which is deprecated in Wagtail 1.2 - should be updated to use the QuerySet-based mechanism instead. https://github.com/torchbox/wagtail/blob/master/wagtail/wagtailsearch/views/frontend.py#L41
[ "wagtail/wagtailsearch/views/frontend.py" ]
[ "wagtail/wagtailsearch/views/frontend.py::search" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "wagtail/wagtailadmin/taggable.py", "text": "wagtail/wagtailadmin/taggable.py\nclass TagSearchable # Mixin to provide a 'search' method, searching on the 'title' field and tags,\n def get_tags(self)\n def get_inde...
[ { "cid": "wagtail/wagtailadmin/taggable.py::TagSearchable.get_tags", "text": "wagtail/wagtailadmin/taggable.py::TagSearchable.get_tags\n @property\n def get_tags(self):\n return ' '.join([tag.name for tag in self.tags.all()])", "label": 0 }, { "cid": "wagtail/wagtailadmin/taggable.p...
docker__compose-246
docker/compose
train
fig up and fig run should start dependencies when you specify a specific service `web` links to `db`. ``` $ fig up web $ fig run web ./manage.py shell ``` These things should start the `db` service.
[ "fig/cli/main.py", "fig/project.py", "fig/service.py" ]
[ "fig/cli/main.py::TopLevelCommand.run", "fig/cli/main.py::TopLevelCommand.up", "fig/project.py::<module>", "fig/project.py::Project.from_dicts", "fig/project.py::Project.get_services", "fig/project.py::Project.up", "fig/service.py::<module>" ]
[ { "cid": "fig/__init__.py", "text": "fig/__init__.py", "label": 0 }, { "cid": "fig/cli/__init__.py", "text": "fig/cli/__init__.py", "label": 0 }, { "cid": "fig/cli/command.py", "text": "fig/cli/command.py\nclass Command\n def __init__(self)\n def dispatch(self, *args, *...
[ { "cid": "fig/cli/command.py::Command.__init__", "text": "fig/cli/command.py::Command.__init__\n def __init__(self):\n self.yaml_path = os.environ.get('FIG_FILE', None)\n self.explicit_project_name = None", "label": 0 }, { "cid": "fig/cli/command.py::Command.dispatch", "text...
Lightning-AI__lightning-349
Lightning-AI/lightning
train
Pass experiment tags to MLFlowLogger **Is your feature request related to a problem? Please describe.** When using MLFlowLogger, I'm unable to easily set experiment tags, like username or run name. **Describe the solution you'd like** Add parameter `tags=None` which is passed to `MLFlowLogger`. Tags will be passed...
[ "pytorch_lightning/logging/mlflow_logger.py" ]
[ "pytorch_lightning/logging/mlflow_logger.py::MLFlowLogger.__init__", "pytorch_lightning/logging/mlflow_logger.py::MLFlowLogger.run_id" ]
[ { "cid": "examples/basic_examples/lightning_module_template.py", "text": "examples/basic_examples/lightning_module_template.py\nclass LightningTemplateModel # Sample model to show how to define a template\n def __init__(self, hparams) # Pass in parsed HyperOptArgumentParser to the model\n def __buil...
[ { "cid": "examples/basic_examples/lightning_module_template.py::LightningTemplateModel.__init__", "text": "examples/basic_examples/lightning_module_template.py::LightningTemplateModel.__init__\n def __init__(self, hparams):\n \"\"\"\n Pass in parsed HyperOptArgumentParser to the model\n ...
wagtail__wagtail-6999
wagtail/wagtail
train
Migration fails on MySQL when upgrading to Wagtail>=2.12rc1 ### Issue Summary The [wagtailembeds.0008_allow_long_urls](https://github.com/wagtail/wagtail/blob/master/wagtail/embeds/migrations/0008_allow_long_urls.py) migration added in 2.12rc1 (https://github.com/wagtail/wagtail/commit/32ade8672fe32223b6ebdcb2255bf4...
[ "wagtail/embeds/migrations/0008_allow_long_urls.py" ]
[ "wagtail/embeds/migrations/0008_allow_long_urls.py::<module>" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py\ndef setup(app)", "label": 0 }, { "cid": "wagtail/contrib/forms/models.py", "text": "wagtail/contrib/forms/models.py\nclass AbstractFormSubmission # Data for a form submission.\n def get_data(self) # Returns dict with form data.\n def __...
[ { "cid": "docs/conf.py::setup", "text": "docs/conf.py::setup\ndef setup(app):\n app.add_css_file('css/custom.css')\n app.add_js_file('js/banner.js')\n\n github_doc_root = 'https://github.com/wagtail/wagtail/tree/main/docs/'\n\n app.add_config_value('recommonmark_config', {\n 'url_resolver...
ipython__ipython-6536
ipython/ipython
train
can't configure inline plot in qtconsole This problem exists in ipython 3.0.dev (git master), but not in ipython 2.1. Has the configuration system changed in 3.0? Suppose I have the following lines in my ~/.ipython/profile_default/ipython_qtconsole_config.py ``` python c.IPythonWidget.font_size = 20 c.InlineBackend.r...
[ "IPython/config/application.py", "IPython/consoleapp.py", "IPython/core/profileapp.py", "IPython/kernel/zmq/kernelapp.py", "docs/autogen_config.py" ]
[ "IPython/config/application.py::<module>", "IPython/config/application.py::Application.flatten_flags", "IPython/config/application.py::Application.generate_config_file", "IPython/config/application.py::Application.print_alias_help", "IPython/config/application.py::Application.print_help", "IPython/console...
[ { "cid": "IPython/config/application.py", "text": "IPython/config/application.py\ndef catch_config_error(method, app, *args, **kwargs) # Method decorator for catching invalid config (Trait/ArgumentErrors) during init.\nclass ApplicationError\nclass LevelFormatter # Formatter with additional `highlevel` re...
[ { "cid": "IPython/config/application.py::catch_config_error", "text": "IPython/config/application.py::catch_config_error\n@decorator\ndef catch_config_error(method, app, *args, **kwargs):\n \"\"\"Method decorator for catching invalid config (Trait/ArgumentErrors) during init.\n\n On a TraitError (gene...
ipython__ipython-7554
ipython/ipython
train
Same widget does not update all interact. Cf [Stackoverflow](https://stackoverflow.com/questions/25945543/can-values-from-ipython-widgets-propagate-to-other-cells/25992790#25992790) having the same widget (say a Checkbox) shared by 2 interact, the value of the checkbox is updated across cell, but the interactived' f...
[ "IPython/html/widgets/interaction.py", "IPython/html/widgets/widget_output.py" ]
[ "IPython/html/widgets/interaction.py::<module>", "IPython/html/widgets/interaction.py::interactive", "IPython/html/widgets/interaction.py::interactive.call_f", "IPython/html/widgets/widget_output.py::<module>", "IPython/html/widgets/widget_output.py::Output.__enter__", "IPython/html/widgets/widget_output....
[ { "cid": "IPython/core/magics/execution.py", "text": "IPython/core/magics/execution.py\nclass TimeitResult # Object returned by the timeit magic with info about the run.\n def __init__(self, loops, repeat, best, all_runs, compile_time, precision)\n def _repr_pretty_(self, p, cycle)\nclass TimeitTempl...
[ { "cid": "IPython/core/magics/execution.py::TimeitResult.__init__", "text": "IPython/core/magics/execution.py::TimeitResult.__init__\n def __init__(self, loops, repeat, best, all_runs, compile_time, precision):\n self.loops = loops\n self.repeat = repeat\n self.best = best\n s...
PrefectHQ__prefect-2599
PrefectHQ/prefect
train
All agents with default labels are not registering their labels Currently, all agents that have default labels (e.g., `LocalAgent`) are not registering their labels when first registering with Prefect Cloud. This is because the cloud registration step occurs in the `__init__` of the base agent class, which is being ca...
[ "src/prefect/agent/agent.py" ]
[ "src/prefect/agent/agent.py::Agent.__init__", "src/prefect/agent/agent.py::Agent.start" ]
[ { "cid": "src/prefect/agent/agent.py", "text": "src/prefect/agent/agent.py\ndef exit_handler(agent: 'Agent')\n def _exit_handler(*args: Any, **kwargs: Any)\nclass HealthHandler # Respond to /api/health\n def get(self)\nclass Agent # Base class for Agents. Information on using the Prefect agents can ...
[ { "cid": "src/prefect/agent/agent.py::exit_handler", "text": "src/prefect/agent/agent.py::exit_handler\n@contextmanager\ndef exit_handler(agent: \"Agent\") -> Generator:\n exit_event = threading.Event()\n\n def _exit_handler(*args: Any, **kwargs: Any) -> None:\n agent.logger.info(\"Keyboard Int...
googleapis__google-cloud-python-1925
googleapis/google-cloud-python
train
Regenerate Bigtable V2 protos (after the version landed in #1903). @sduskis reports: > There were some relatively minor changes in the v2 protos. Mostly the changes were in the comments. There were minor changes to rename fields from "name" to "parent" to better reflect the meaning of some of the proto elements. T...
[ "gcloud/bigtable/_generated_v2/bigtable_instance_admin_pb2.py", "gcloud/bigtable/_generated_v2/bigtable_pb2.py", "gcloud/bigtable/_generated_v2/bigtable_table_admin_pb2.py", "gcloud/bigtable/_generated_v2/operations_grpc_pb2.py", "gcloud/bigtable/_generated_v2/table_pb2.py", "gcloud/bigtable/cluster.py", ...
[ "gcloud/bigtable/_generated_v2/bigtable_instance_admin_pb2.py::<module>", "gcloud/bigtable/_generated_v2/bigtable_instance_admin_pb2.py::BetaBigtableInstanceAdminServicer.CreateCluster", "gcloud/bigtable/_generated_v2/bigtable_instance_admin_pb2.py::BetaBigtableInstanceAdminServicer.CreateInstance", "gcloud/b...
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "gcloud/bigtable/_generated_v2/bigtable_instance_admin_pb2.py", "text": "gcloud/bigtable/_generated_v2/bigtable_instance_admin_pb2.py\nclass BetaBigtableInstanceAdminServicer # <fill me in later!>\n def CreateInstanc...
[ { "cid": "gcloud/bigtable/_generated_v2/bigtable_instance_admin_pb2.py::BetaBigtableInstanceAdminServicer.CreateInstance", "text": "gcloud/bigtable/_generated_v2/bigtable_instance_admin_pb2.py::BetaBigtableInstanceAdminServicer.CreateInstance\n def CreateInstance(self, request, context):\n context.code(...
google__jax-443
google/jax
train
`stax.BatchNorm` incorrect normalization jax.experimental.stax on current master, line 140 ( `BatchNorm` function): ```python z = (x - mean) / (var + epsilon)**2 ``` The square in the denominator should probably be a square root.
[ "jax/experimental/stax.py" ]
[ "jax/experimental/stax.py::BatchNorm.apply_fun" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "jax/api.py", "text": "jax/api.py\ndef jit(fun, static_argnums=()) # Sets up `fun` for just-in-time compilation with XLA.\n def f_jitted(*args, **kwargs)\ndef disable_jit() # Context manager that disables `jit`.\nde...
[ { "cid": "jax/api.py::jit", "text": "jax/api.py::jit\ndef jit(fun, static_argnums=()):\n \"\"\"Sets up `fun` for just-in-time compilation with XLA.\n\n Args:\n fun: Function to be jitted. Should be a pure function, as side-effects may\n only be executed once. Its positional arguments and return va...
Lightning-AI__lightning-2787
Lightning-AI/lightning
train
Integer limit_val_batches does not work with infinite DataLoader. ## 🐛 Bug Documentation states that you can use limit_val_batches=100 (with integer value) to limit number of batches. However, when using IterableDataset I get the following error: pytorch_lightning.utilities.exceptions.MisconfigurationException: Wh...
[ "pytorch_lightning/core/lightning.py", "pytorch_lightning/trainer/data_loading.py", "pytorch_lightning/trainer/training_tricks.py" ]
[ "pytorch_lightning/core/lightning.py::LightningModule.to_onnx", "pytorch_lightning/trainer/data_loading.py::TrainerDataLoadingMixin._reset_eval_dataloader", "pytorch_lightning/trainer/data_loading.py::TrainerDataLoadingMixin.reset_train_dataloader", "pytorch_lightning/trainer/training_tricks.py::_adjust_batch...
[ { "cid": "pytorch_lightning/core/lightning.py", "text": "pytorch_lightning/core/lightning.py\nclass LightningModule\n def __init__(self, *args, **kwargs)\n def example_input_array(self)\n def example_input_array(self, example: Any)\n def datamodule(self)\n def datamodule(self, datamodule: Any...
[ { "cid": "pytorch_lightning/core/lightning.py::LightningModule.__init__", "text": "pytorch_lightning/core/lightning.py::LightningModule.__init__\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n\n self.exp_save_path = None\n\n #: The current epoch\n ...
wagtail__wagtail-9119
wagtail/wagtail
train
Locked pages report renders all users in "locked_by" filter ### Issue Summary Currently, the select-field for the "locked_by" filter on the "Locked pages"-report renders all users unfiltered from the user table. This breaks the view for one of our projects, which tries to list all 500k users... Actually, only the ...
[ "wagtail/admin/views/reports/locked_pages.py" ]
[ "wagtail/admin/views/reports/locked_pages.py::<module>" ]
[ { "cid": "wagtail/admin/auth.py", "text": "wagtail/admin/auth.py\ndef users_with_page_permission(page, permission_type, include_superusers=True)\ndef permission_denied(request) # Return a standard 'permission denied' response\ndef user_passes_test(test) # Given a test function that takes a user object and...
[ { "cid": "wagtail/admin/auth.py::users_with_page_permission", "text": "wagtail/admin/auth.py::users_with_page_permission\ndef users_with_page_permission(page, permission_type, include_superusers=True):\n # Get user model\n User = get_user_model()\n\n # Find GroupPagePermission records of the given ...
PrefectHQ__prefect-1937
PrefectHQ/prefect
train
Aggregate Minor Version API Docs Instead of `0.9.0` and `0.9.1` the latest documentation will point to `0.9.x`. This is due to the low changes in API documentation between patch releases. Will remove the extra step of regenerating all API docs every couple weeks.
[ "docs/generate_docs.py" ]
[ "docs/generate_docs.py::<module>" ]
[ { "cid": "docs/generate_docs.py", "text": "docs/generate_docs.py\ndef patch_imports()\ndef load_outline(outline=outline_config['pages'], ext=outline_config.get('extension', '.md'), prefix=None)\ndef preprocess(f, remove_partial=True)\n def wrapped(*args, **kwargs)\ndef clean_line(line)\ndef format_lists(...
[ { "cid": "docs/generate_docs.py::patch_imports", "text": "docs/generate_docs.py::patch_imports\n@contextmanager\ndef patch_imports():\n try:\n\n def patched_import(*args, **kwargs):\n try:\n return real_import(*args, **kwargs)\n except Exception:\n ...
ytdl-org__youtube-dl-7069
ytdl-org/youtube-dl
train
[mixcloud] Can't download all titles of an uploader user@sandbox:~/deejaycorehead$ youtube-dl --proxy 'user:pass@host:port' --add-metadata http://mixcloud.com/deejaycorehead/ [debug] System config: [] [debug] User config: ['-v'] [debug] Command-line args: ['--proxy', 'user:pass@host:port', '--add-metadata', 'http://mix...
[ "youtube_dl/extractor/extractors.py", "youtube_dl/extractor/mixcloud.py" ]
[ "youtube_dl/extractor/extractors.py::<module>", "youtube_dl/extractor/mixcloud.py::<module>", "youtube_dl/extractor/mixcloud.py::MixcloudIE._real_extract" ]
[ { "cid": "devscripts/gh-pages/add-version.py", "text": "devscripts/gh-pages/add-version.py", "label": 0 }, { "cid": "devscripts/gh-pages/update-feed.py", "text": "devscripts/gh-pages/update-feed.py", "label": 0 }, { "cid": "setup.py", "text": "setup.py\nclass build_lazy_extra...
[ { "cid": "setup.py::build_lazy_extractors.initialize_options", "text": "setup.py::build_lazy_extractors.initialize_options\n def initialize_options(self):\n pass", "label": 0 }, { "cid": "setup.py::build_lazy_extractors.finalize_options", "text": "setup.py::build_lazy_extractors.fi...
numpy__numpy-5500
numpy/numpy
train
loadtxt(comments=None) considers the string 'None' as a comment symbol Numpy 1.8.2 `numpy.loadtxt(comments=None)` considers the string `'None'` as a comment symbol. Expected behaviour: `comments=None` should indicate that there are no comments symbols. Certainly not cast `None` to a string, what is this, Javascript? ...
[ "numpy/lib/npyio.py", "numpy/ma/core.py" ]
[ "numpy/lib/npyio.py::loadtxt", "numpy/lib/npyio.py::loadtxt.split_line", "numpy/ma/core.py::<module>", "numpy/ma/core.py::default_fill_value" ]
[ { "cid": "numpy/lib/npyio.py", "text": "numpy/lib/npyio.py\ndef seek_gzip_factory(f) # Use this factory to produce the class so that we can do a lazy\n class GzipFile\n def seek(self, offset, whence=0)\n def tell(self)\nclass BagObj # BagObj(obj)\n def __init__(self, obj)\n def __ge...
[ { "cid": "numpy/lib/npyio.py::seek_gzip_factory", "text": "numpy/lib/npyio.py::seek_gzip_factory\ndef seek_gzip_factory(f):\n \"\"\"Use this factory to produce the class so that we can do a lazy\n import on gzip.\n\n \"\"\"\n import gzip\n\n class GzipFile(gzip.GzipFile):\n\n def seek(...
Lightning-AI__lightning-155
Lightning-AI/lightning
train
transfer_to_batch_gpu returns null when input has primitives **Describe the bug** when passing a batch such as: ```python batch = list(tensor, tensor, [0,1,2]) ``` the list of ints won't be returned correctly **Additional context** Fix should add a return of the item it no condition matches
[ "pytorch_lightning/models/trainer.py" ]
[ "pytorch_lightning/models/trainer.py::<module>", "pytorch_lightning/models/trainer.py::Trainer.transfer_batch_to_gpu" ]
[ { "cid": "examples/new_project_templates/lightning_module_template.py", "text": "examples/new_project_templates/lightning_module_template.py\nclass LightningTemplateModel # Sample model to show how to define a template\n def __init__(self, hparams) # Pass in parsed HyperOptArgumentParser to the model\n...
[ { "cid": "examples/new_project_templates/lightning_module_template.py::LightningTemplateModel.__init__", "text": "examples/new_project_templates/lightning_module_template.py::LightningTemplateModel.__init__\n def __init__(self, hparams):\n \"\"\"\n Pass in parsed HyperOptArgumentParser to t...
wagtail__wagtail-964
wagtail/wagtail
train
It would be nice if InlinePanel definitions required less model name repetition In the following example model code ``` class BlogPageRelatedLink(Whatever): page = ParentalKey('myapp.BlogPage', related_name='related_links') class BlogPage(Page): pass BlogPage.content_panels = [ InlinePanel(BlogPage,...
[ "runtests.py", "wagtail/wagtailadmin/edit_handlers.py" ]
[ "runtests.py::runtests", "wagtail/wagtailadmin/edit_handlers.py::<module>", "wagtail/wagtailadmin/edit_handlers.py::InlinePanel.__init__" ]
[ { "cid": "runtests.py", "text": "runtests.py\ndef runtests()", "label": 1 }, { "cid": "wagtail/wagtailadmin/edit_handlers.py", "text": "wagtail/wagtailadmin/edit_handlers.py\ndef formfield_for_dbfield(db_field, **kwargs)\ndef widget_with_script(widget, script)\nclass WagtailAdminModelFormMet...
[ { "cid": "runtests.py::runtests", "text": "runtests.py::runtests\ndef runtests():\n # Don't ignore DeprecationWarnings\n warnings.simplefilter('default', DeprecationWarning)\n\n argv = sys.argv[:1] + ['test'] + sys.argv[1:]\n try:\n execute_from_command_line(argv)\n finally:\n s...
pyca__cryptography-7697
pyca/cryptography
train
RFC 9266: Channel Bindings for TLS 1.3 support Can you add the support of RFC 9266: Channel Bindings for TLS 1.3? - https://datatracker.ietf.org/doc/html/rfc9266 Little details, to know easily: - tls-unique for TLS =< 1.2 - tls-exporter for TLS = 1.3 Thanks in advance.
[ "src/_cffi_src/openssl/ssl.py", "src/cryptography/hazmat/bindings/openssl/_conditional.py" ]
[ "src/_cffi_src/openssl/ssl.py::<module>", "src/cryptography/hazmat/bindings/openssl/_conditional.py::<module>" ]
[ { "cid": "docs/_ext/cryptography-docs.py", "text": "docs/_ext/cryptography-docs.py\nclass HazmatDirective\n def run(self)\nclass Hazmat\ndef html_visit_hazmat_node(self, node)\ndef latex_visit_hazmat_node(self, node)\ndef depart_hazmat_node(self, node)\ndef setup(app)", "label": 0 }, { "cid":...
[ { "cid": "docs/_ext/cryptography-docs.py::HazmatDirective.run", "text": "docs/_ext/cryptography-docs.py::HazmatDirective.run\n def run(self):\n message = DANGER_MESSAGE\n if self.content:\n message += DANGER_ALTERNATE.format(alternate=self.content[0])\n\n content = nodes.p...
wagtail__wagtail-945
wagtail/wagtail
train
Update to treebeard 3.0 This fixes many of the Django 1.7 warnings we get. It also drops support for both Python 3.2 and 3.3 so we might need to tread carefully if we decide to adopt it. We already have a dependency that doesn't support 3.2 (`libsass`) which doesn't seem to be causing any problems for the time being (...
[ "setup.py" ]
[ "setup.py::<module>" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "setup.py", "text": "setup.py", "label": 1 }, { "cid": "wagtail/wagtailadmin/views/pages.py", "text": "wagtail/wagtailadmin/views/pages.py\ndef explorer_nav(request)\ndef index(request, parent_page_id=Non...
[ { "cid": "wagtail/wagtailadmin/views/pages.py::explorer_nav", "text": "wagtail/wagtailadmin/views/pages.py::explorer_nav\ndef explorer_nav(request):\n return render(request, 'wagtailadmin/shared/explorer_nav.html', {\n 'nodes': get_navigation_menu_items(),\n })", "label": 0 }, { "ci...
PrefectHQ__prefect-2885
PrefectHQ/prefect
train
Users of ECR and the Fargate Agent unable to use AWS Docker auth ## Description Continuing to work on the branch @joshmeek did in https://github.com/PrefectHQ/prefect/pull/2877 (same diagnostics as https://github.com/PrefectHQ/prefect/issues/2875), I came across an invalidation error for not providing Fargate Agent ...
[ "src/prefect/agent/fargate/agent.py" ]
[ "src/prefect/agent/fargate/agent.py::FargateAgent._create_task_definition", "src/prefect/agent/fargate/agent.py::FargateAgent.validate_configuration" ]
[ { "cid": "src/prefect/agent/fargate/agent.py", "text": "src/prefect/agent/fargate/agent.py\nclass FargateAgent # Agent which deploys flow runs as tasks using Fargate. This agent can run anywher\n def __init__(self, name: str=None, labels: Iterable[str]=None, env_vars: dict=None, max_polls: int=None, age...
[ { "cid": "src/prefect/agent/fargate/agent.py::FargateAgent.__init__", "text": "src/prefect/agent/fargate/agent.py::FargateAgent.__init__\n def __init__( # type: ignore\n self,\n name: str = None,\n labels: Iterable[str] = None,\n env_vars: dict = None,\n max_polls: int...
dagster-io__dagster-13080
dagster-io/dagster
train
[helm] dagit command overrides ## Use Case To be able to for example, set `--path-prefix` in the `dagit` invocation to allow it to be hosted on a non `/` path
[ "helm/dagster/schema/schema/charts/dagster/subschema/dagit.py" ]
[ "helm/dagster/schema/schema/charts/dagster/subschema/dagit.py::<module>" ]
[ { "cid": ".buildkite/dagster-buildkite/dagster_buildkite/package_spec.py", "text": ".buildkite/dagster-buildkite/dagster_buildkite/package_spec.py\ndef _infer_package_type(directory: str)\nclass PackageSpec # Main spec for testing Dagster Python packages using tox.\n def __post_init__(self)\n def bui...
[ { "cid": ".buildkite/dagster-buildkite/dagster_buildkite/package_spec.py::_infer_package_type", "text": ".buildkite/dagster-buildkite/dagster_buildkite/package_spec.py::_infer_package_type\ndef _infer_package_type(directory: str) -> str:\n if directory in _CORE_PACKAGES:\n return \"core\"\n eli...
tensorflow__models-4087
tensorflow/models
train
"No module named matplotlib" when running Pets on Google Cloud tutorial I'm following the ["Distributed Training on the Oxford-IIIT Pets Dataset on Google Cloud" tutorial](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/running_pets.md). Following the step of starting training, about...
[ "research/setup.py" ]
[ "research/setup.py::<module>" ]
[ { "cid": "official/utils/logs/benchmark_uploader.py", "text": "official/utils/logs/benchmark_uploader.py\nclass BigQueryUploader # Upload the benchmark and metric info to BigQuery.\n def __init__(self, logging_dir, gcp_project=None, credentials=None) # Initialized BigQueryUploader with proper setting.\...
[ { "cid": "official/utils/logs/benchmark_uploader.py::BigQueryUploader.__init__", "text": "official/utils/logs/benchmark_uploader.py::BigQueryUploader.__init__\n def __init__(self, logging_dir, gcp_project=None, credentials=None):\n \"\"\"Initialized BigQueryUploader with proper setting.\n\n Args:\n ...
tensorflow__models-4554
tensorflow/models
train
astronet: failed provided unit test "kepler_spline_test" I have all the package required as instructed, and verified by "pip list". When I ran this: bazel test astronet/... light_curve_util/... third_party/... everything passed but the last one: //third_party/kepler_spline:kepler_spline_test ...
[ "research/astronet/light_curve_util/util.py", "research/astronet/third_party/kepler_spline/kepler_spline.py" ]
[ "research/astronet/light_curve_util/util.py::<module>", "research/astronet/light_curve_util/util.py::interpolate_masked_spline", "research/astronet/light_curve_util/util.py::remove_events", "research/astronet/light_curve_util/util.py::split", "research/astronet/third_party/kepler_spline/kepler_spline.py::<m...
[ { "cid": "official/utils/logs/logger.py", "text": "official/utils/logs/logger.py\ndef config_benchmark_logger(flag_obj=None) # Config the global benchmark logger.\ndef get_benchmark_logger()\ndef benchmark_context(flag_obj) # Context of benchmark, which will update status of the run accordingly.\nclass Ba...
[ { "cid": "official/utils/logs/logger.py::config_benchmark_logger", "text": "official/utils/logs/logger.py::config_benchmark_logger\ndef config_benchmark_logger(flag_obj=None):\n \"\"\"Config the global benchmark logger.\"\"\"\n _logger_lock.acquire()\n try:\n global _benchmark_logger\n if not flag_...
docker__compose-2206
docker/compose
train
"extends" and multiple yml files don't work together I'm currently trying to use the new "multiple files" (#2051) feature and got stuck on extends not working anymore when used together. Example: ``` # common.yml baseservice: labels: - "my.label=my-value" environment: MY_ENV: "MY_VALUE" # base.yml servic...
[ "compose/config/config.py" ]
[ "compose/config/config.py::<module>", "compose/config/config.py::ServiceLoader.validate_and_construct_extends", "compose/config/config.py::load.merge_services" ]
[ { "cid": "compose/cli/command.py", "text": "compose/cli/command.py\ndef friendly_error_message()\ndef project_from_options(base_dir, options)\ndef get_config_path(file_option)\ndef get_client(verbose=False, version=None)\ndef get_project(base_dir, config_path=None, project_name=None, verbose=False, use_netw...
[ { "cid": "compose/cli/command.py::friendly_error_message", "text": "compose/cli/command.py::friendly_error_message\n@contextlib.contextmanager\ndef friendly_error_message():\n try:\n yield\n except SSLError as e:\n raise errors.UserError('SSL error: %s' % e)\n except ConnectionError:\...
docker__compose-367
docker/compose
train
Using == in setup.py from requirements.txt will cause conflicts with other python packages requirements.txt with == operator is meant to be used when you need completely limit the versions of package. fig uses requirements.txt input in setup.py to fill install_requires. If any package installed after fig requires other...
[ "setup.py" ]
[ "setup.py::<module>" ]
[ { "cid": "fig/cli/command.py", "text": "fig/cli/command.py\nclass Command\n def __init__(self)\n def dispatch(self, *args, **kwargs)\n def perform_command(self, options, *args, **kwargs)\n def client(self)\n def project(self)\n def project_name(self)\n def formatter(self)\n def yaml_...
[ { "cid": "fig/cli/command.py::Command.__init__", "text": "fig/cli/command.py::Command.__init__\n def __init__(self):\n self._yaml_path = os.environ.get('FIG_FILE', None)\n self.explicit_project_name = None", "label": 0 }, { "cid": "fig/cli/command.py::Command.dispatch", "tex...
PrefectHQ__prefect-1059
PrefectHQ/prefect
train
PIN: Prefect CLI # PIN: Prefect CLI Date: May 20, 2019 Author: Josh Meek ## Status Proposed ## Context A command line interface is an incredibly powerful and useful tool for many software products. Having a well rounded CLI in Prefect should be no exception. After this is adopted, Prefect Cloud will hav...
[ "src/prefect/cli/__init__.py" ]
[ "src/prefect/cli/__init__.py::<module>", "src/prefect/cli/__init__.py::cli", "src/prefect/cli/__init__.py::execute_cloud_flow", "src/prefect/cli/__init__.py::execute_flow" ]
[ { "cid": "examples/airflow_tutorial_dag.py", "text": "examples/airflow_tutorial_dag.py\ndef add_7()", "label": 0 }, { "cid": "src/prefect/cli/__init__.py", "text": "src/prefect/cli/__init__.py\ndef cli() # The Prefect CLI\ndef execute_flow(storage_metadata, environment_metadata, flow_locati...
[ { "cid": "examples/airflow_tutorial_dag.py::add_7", "text": "examples/airflow_tutorial_dag.py::add_7\n@task(max_retries=1, retry_delay=retry_delay)\ndef add_7():\n date = prefect.context.get(\"scheduled_start_time\", datetime.utcnow())\n return date + timedelta(days=7)", "label": 0 }, { "c...
conan-io__conan-4546
conan-io/conan
train
Add AIX to default_settings_yml Add AIX to os in default settings.yml. Add AIX to default_settings_yml Add AIX to os in default settings.yml.
[ "conans/client/build/autotools_environment.py", "conans/client/build/cmake_flags.py", "conans/client/build/compiler_flags.py", "conans/client/conf/__init__.py", "conans/client/conf/detect.py", "conans/client/generators/compiler_args.py", "conans/client/tools/oss.py" ]
[ "conans/client/build/autotools_environment.py::AutoToolsBuildEnvironment._configure_flags", "conans/client/build/autotools_environment.py::AutoToolsBuildEnvironment._configure_link_flags", "conans/client/build/autotools_environment.py::AutoToolsBuildEnvironment.vars", "conans/client/build/autotools_environmen...
[ { "cid": "conans/build_info/conan_build_info.py", "text": "conans/build_info/conan_build_info.py\ndef _extract_uploads_from_conan_trace(path)\ndef _extract_downloads_from_conan_trace(path)\ndef _get_type(file_path)\ndef _get_build_info_artifact(file_doc)\ndef _get_dependency(file_doc, dep_ref)\ndef _get_upl...
[ { "cid": "conans/build_info/conan_build_info.py::_extract_uploads_from_conan_trace", "text": "conans/build_info/conan_build_info.py::_extract_uploads_from_conan_trace\ndef _extract_uploads_from_conan_trace(path):\n modules = defaultdict(dict)\n try:\n with open(path, \"r\") as traces:\n ...
Lightning-AI__lightning-3163
Lightning-AI/lightning
train
Change checkpoint filename without overwriting full filepath ## 🚀 Feature By default, the checkpoint path resolves to `lightning_logs/{version}/checkpoints/{epoch}.ckpt`. It is currently not possible to change the checkpoint filename without replacing the full path. ### Motivation The full path is replacable with...
[ "pytorch_lightning/callbacks/early_stopping.py", "pytorch_lightning/callbacks/model_checkpoint.py" ]
[ "pytorch_lightning/callbacks/early_stopping.py::EarlyStopping.__warn_deprecated_monitor_key", "pytorch_lightning/callbacks/early_stopping.py::EarlyStopping._validate_condition_metric", "pytorch_lightning/callbacks/model_checkpoint.py::<module>", "pytorch_lightning/callbacks/model_checkpoint.py::ModelCheckpoin...
[ { "cid": "docs/source/conf.py", "text": "docs/source/conf.py\ndef run_apidoc(_)\ndef setup(app)\ndef package_list_from_file(file)\ndef linkcode_resolve(domain, info)\n def find_source()", "label": 0 }, { "cid": "pytorch_lightning/callbacks/early_stopping.py", "text": "pytorch_lightning/ca...
[ { "cid": "docs/source/conf.py::run_apidoc", "text": "docs/source/conf.py::run_apidoc\ndef run_apidoc(_):\n sys.path.insert(0, apidoc_output_folder)\n\n # delete api-doc files before generating them\n if os.path.exists(apidoc_output_folder):\n shutil.rmtree(apidoc_output_folder)\n\n for pk...
pantsbuild__pants-5040
pantsbuild/pants
train
implement support for the `repl` goal w/ the daemon currently, `repl` is known to not work with the daemon due to an unimplemented bi-directional user input path here: https://github.com/pantsbuild/pants/blob/e3a227601de8c4179eae852e77c6673cc334b075/src/python/pants/bin/daemon_pants_runner.py#L99-L100 in order to ge...
[ "src/python/pants/backend/jvm/tasks/scala_repl.py", "src/python/pants/backend/python/tasks2/python_repl.py", "src/python/pants/bin/daemon_pants_runner.py", "src/python/pants/java/executor.py", "src/python/pants/java/nailgun_client.py", "src/python/pants/java/nailgun_executor.py", "src/python/pants/java/...
[ "src/python/pants/backend/jvm/tasks/scala_repl.py::<module>", "src/python/pants/backend/jvm/tasks/scala_repl.py::ScalaRepl.launch_repl", "src/python/pants/backend/python/tasks2/python_repl.py::<module>", "src/python/pants/backend/python/tasks2/python_repl.py::PythonRepl.launch_repl", "src/python/pants/bin/d...
[ { "cid": "contrib/go/src/python/pants/contrib/go/subsystems/fetcher.py", "text": "contrib/go/src/python/pants/contrib/go/subsystems/fetcher.py\nclass Fetcher # Knows how to interpret remote import paths and fetch code to satisfy them.\n def __init__(self, import_path)\n def import_path(self)\n def...
[ { "cid": "contrib/go/src/python/pants/contrib/go/subsystems/fetcher.py::Fetcher.__init__", "text": "contrib/go/src/python/pants/contrib/go/subsystems/fetcher.py::Fetcher.__init__\n def __init__(self, import_path):\n self._import_path = import_path", "label": 0 }, { "cid": "contrib/go/src/pyt...
Qiskit__qiskit-8134
Qiskit/qiskit
train
QuantumCircuit `.clear()` and `.copy_empty_like()` functionality ### What should we add? Sometimes it can be useful to erase all instructions in a QuantumCircuit. This request is for: 1. [Clear functionality](https://github.com/pedrorrivero/qiskit-terra/blob/794db4792e97adca4a78eb4f3411c04e50665df7/qiskit/circuit/qua...
[ "qiskit/circuit/quantumcircuit.py" ]
[ "qiskit/circuit/quantumcircuit.py::<module>", "qiskit/circuit/quantumcircuit.py::QuantumCircuit.copy" ]
[ { "cid": "qiskit/circuit/controlflow/builder.py", "text": "qiskit/circuit/controlflow/builder.py\nclass InstructionResources # The quantum and classical resources used within a particular instruction.\nclass InstructionPlaceholder # A fake instruction that lies about its number of qubits and clbits.\n ...
[ { "cid": "qiskit/circuit/controlflow/builder.py::InstructionPlaceholder.concrete_instruction", "text": "qiskit/circuit/controlflow/builder.py::InstructionPlaceholder.concrete_instruction\n @abc.abstractmethod\n def concrete_instruction(\n self, qubits: FrozenSet[Qubit], clbits: FrozenSet[Clbit]...
pandas-dev__pandas-18629
pandas-dev/pandas
train
Support non-default indexes in to_parquet Calling `to_parquet` on a DataFrame with a non-default index results in the error below: ```python-traceback ValueError: parquet does not support serializing a non-default index for the index; you can .reset_index() to make the index into column(s) ``` While, you can work-a...
[ "pandas/io/parquet.py" ]
[ "pandas/io/parquet.py::<module>", "pandas/io/parquet.py::FastParquetImpl.__init__", "pandas/io/parquet.py::FastParquetImpl.write", "pandas/io/parquet.py::PyArrowImpl.__init__", "pandas/io/parquet.py::PyArrowImpl.read", "pandas/io/parquet.py::PyArrowImpl.write", "pandas/io/parquet.py::get_engine", "pan...
[ { "cid": "pandas/io/parquet.py", "text": "pandas/io/parquet.py\ndef get_engine(engine) # return our implementation\nclass PyArrowImpl\n def __init__(self)\n def write(self, df, path, compression='snappy', coerce_timestamps='ms', **kwargs)\n def read(self, path, columns=None, **kwargs)\nclass FastP...
[ { "cid": "pandas/io/parquet.py::get_engine", "text": "pandas/io/parquet.py::get_engine\ndef get_engine(engine):\n \"\"\" return our implementation \"\"\"\n\n if engine == 'auto':\n engine = get_option('io.parquet.engine')\n\n if engine == 'auto':\n # try engines in this order\n ...
Lightning-AI__lightning-409
Lightning-AI/lightning
train
Error when model checkpoint and no early stop **Describe the bug** When creating a `Trainer`, if we set a `checkpoint_callback=ModelCheckpoint(...)` and `early_stop_callback = False` we get an error at this [line](https://github.com/williamFalcon/pytorch-lightning/blob/master/pytorch_lightning/trainer/trainer_io.py#L1...
[ "pytorch_lightning/trainer/trainer_io.py" ]
[ "pytorch_lightning/trainer/trainer_io.py::TrainerIOMixin.dump_checkpoint", "pytorch_lightning/trainer/trainer_io.py::TrainerIOMixin.restore_training_state" ]
[ { "cid": "pytorch_lightning/callbacks/pt_callbacks.py", "text": "pytorch_lightning/callbacks/pt_callbacks.py\nclass Callback # Abstract base class used to build new callbacks.\n def __init__(self)\n def set_params(self, params)\n def set_model(self, model)\n def on_epoch_begin(self, epoch, logs...
[ { "cid": "pytorch_lightning/callbacks/pt_callbacks.py::Callback.__init__", "text": "pytorch_lightning/callbacks/pt_callbacks.py::Callback.__init__\n def __init__(self):\n self.validation_data = None\n self.model = None", "label": 0 }, { "cid": "pytorch_lightning/callbacks/pt_cal...
docker__compose-6390
docker/compose
train
Cannot override network settings. <!-- Welcome to the docker-compose issue tracker! Before creating an issue, please heed the following: 1. This tracker should only be used to report bugs and request features / enhancements to docker-compose - For questions and general support, use https://forums.docker.com ...
[ "compose/config/config.py" ]
[ "compose/config/config.py::<module>", "compose/config/config.py::merge_service_dicts" ]
[ { "cid": "compose/cli/errors.py", "text": "compose/cli/errors.py\nclass UserError\n def __init__(self, msg)\n def __unicode__(self)\nclass ConnectionError\ndef handle_connection_errors(client)\ndef log_windows_pipe_error(exc)\ndef log_timeout_error(timeout)\ndef log_api_error(e, client_version)\ndef e...
[ { "cid": "compose/cli/errors.py::UserError.__init__", "text": "compose/cli/errors.py::UserError.__init__\n def __init__(self, msg):\n self.msg = dedent(msg).strip()", "label": 0 }, { "cid": "compose/cli/errors.py::UserError.__unicode__", "text": "compose/cli/errors.py::UserError.__...
wagtail__wagtail-4648
wagtail/wagtail
train
PageTypeField API serializer should gracefully handle missing page models ### Issue Summary If a page model is deleted while pages of that type still exist, any API calls for page listings that include that page type will fail with `AttributeError: 'NoneType' object has no attribute '_meta'`. This results in a serve...
[ "wagtail/api/v2/serializers.py" ]
[ "wagtail/api/v2/serializers.py::PageTypeField.to_representation" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py\ndef setup(app)", "label": 0 }, { "cid": "wagtail/admin/urls/__init__.py", "text": "wagtail/admin/urls/__init__.py\ndef display_custom_404(view_func)\n def wrapper(request, *args, **kwargs)", "label": 0 }, { "cid": "wagtail/api/v2...
[ { "cid": "docs/conf.py::setup", "text": "docs/conf.py::setup\ndef setup(app):\n app.add_stylesheet('css/custom.css')", "label": 0 }, { "cid": "wagtail/admin/urls/__init__.py::display_custom_404", "text": "wagtail/admin/urls/__init__.py::display_custom_404\ndef display_custom_404(view_func...
ray-project__ray-9547
ray-project/ray
train
[Core] Turning off log redirection to files breaks all Ray service startups. <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? Turning off log redirection to files breaks all Ray process startups (redis, GCS server, log monitor, reporter, plasma store...
[ "python/ray/node.py", "python/ray/utils.py" ]
[ "python/ray/node.py::Node.get_job_redirected_log_file", "python/ray/node.py::Node.get_log_file_names", "python/ray/node.py::Node.start_dashboard", "python/ray/node.py::Node.start_gcs_server", "python/ray/node.py::Node.start_log_monitor", "python/ray/node.py::Node.start_monitor", "python/ray/node.py::Nod...
[ { "cid": "doc/source/conf.py", "text": "doc/source/conf.py\ndef feedback_form_url(project, page) # Create a URL for feedback on a particular page in a project.\ndef update_context(app, pagename, templatename, context, doctree) # Update the page rendering context to include ``feedback_form_url``.\ndef setu...
[ { "cid": "doc/source/conf.py::feedback_form_url", "text": "doc/source/conf.py::feedback_form_url\ndef feedback_form_url(project, page):\n \"\"\"Create a URL for feedback on a particular page in a project.\"\"\"\n return FEEDBACK_FORM_FMT.format(\n title=urllib.parse.quote(\n \"[docs]...
jupyterlab__jupyterlab-1954
jupyterlab/jupyterlab
train
Remove outdated version compatibility check for extensions This [check](https://github.com/jupyterlab/jupyterlab/blob/53a60f7016a96787765ba40851a4200d8cd5a463/jupyterlab/labextensions.py#L502) needs to be removed in light of the big split until we have a replacement system.
[ "jupyterlab/labextensions.py" ]
[ "jupyterlab/labextensions.py::<module>", "jupyterlab/labextensions.py::validate_labextension_folder" ]
[ { "cid": "jupyterlab/__init__.py", "text": "jupyterlab/__init__.py\ndef _jupyter_server_extension_paths()", "label": 0 }, { "cid": "jupyterlab/_version.py", "text": "jupyterlab/_version.py", "label": 0 }, { "cid": "jupyterlab/labextensions.py", "text": "jupyterlab/labextensio...
[ { "cid": "jupyterlab/__init__.py::_jupyter_server_extension_paths", "text": "jupyterlab/__init__.py::_jupyter_server_extension_paths\ndef _jupyter_server_extension_paths():\n return [{\n \"module\": \"jupyterlab\"\n }]", "label": 0 }, { "cid": "jupyterlab/labextensions.py::check_lab...
conan-io__conan-3715
conan-io/conan
train
[bug] 1.8.0 uses --sbin instead --sbindir After updating to conan 1.8.0, I ran into an issue building a [librdkafka/0.11.4-1](https://github.com/ess-dmsc/conan-librdkafka) package on CentOS due to the ./configure statement using `--sbin` as a parameter instead of `--sbindir`: ``` librdkafka/0.11.4-1@<asdf>/stable...
[ "conans/client/build/autotools_environment.py" ]
[ "conans/client/build/autotools_environment.py::AutoToolsBuildEnvironment.configure" ]
[ { "cid": "conans/client/build/autotools_environment.py", "text": "conans/client/build/autotools_environment.py\nclass AutoToolsBuildEnvironment # - CPPFLAGS (C-PreProcesor-Flags NOT related with c++) (-I -D)\n def __init__(self, conanfile, win_bash=False, include_rpath_flags=False) # FIXME: include_rpa...
[ { "cid": "conans/client/build/autotools_environment.py::AutoToolsBuildEnvironment.__init__", "text": "conans/client/build/autotools_environment.py::AutoToolsBuildEnvironment.__init__\n def __init__(self, conanfile, win_bash=False, include_rpath_flags=False):\n \"\"\"\n FIXME: include_rpath_...
docker__compose-6973
docker/compose
train
--no-color does not disable colors on ERROR and WARNING logs `docker-compose up -d --no-color` still displays ERROR messages with the word "ERROR" in red and the word "WARNING" in yellow. It would also be nice if compose respected the `CLICOLOR=0` env variable as a synonym for `--no-color`.
[ "compose/cli/main.py" ]
[ "compose/cli/main.py::<module>", "compose/cli/main.py::TopLevelCommand.logs", "compose/cli/main.py::TopLevelCommand.up", "compose/cli/main.py::dispatch", "compose/cli/main.py::warn_for_swarm_mode" ]
[ { "cid": "compose/cli/colors.py", "text": "compose/cli/colors.py\ndef get_pairs()\ndef ansi(code)\ndef ansi_color(code, s)\ndef make_color_fn(code)\ndef rainbow()", "label": 0 }, { "cid": "compose/cli/formatter.py", "text": "compose/cli/formatter.py\ndef get_tty_width()\nclass Formatter # F...
[ { "cid": "compose/cli/colors.py::get_pairs", "text": "compose/cli/colors.py::get_pairs\ndef get_pairs():\n for i, name in enumerate(NAMES):\n yield(name, str(30 + i))\n yield('intense_' + name, str(30 + i) + ';1')", "label": 0 }, { "cid": "compose/cli/colors.py::ansi", "text...
PrefectHQ__prefect-2546
PrefectHQ/prefect
train
Make new conditional API compatible with the imperative API ## Current behavior *Please describe how the feature works today* In #2443, @jcrist added a new conditional API to Prefect, which is 💯. However, at this moment, it can only be used with the functional API (as it [requires](https://github.com/PrefectHQ/prefe...
[ "src/prefect/core/flow.py", "src/prefect/core/task.py", "src/prefect/tasks/control_flow/case.py" ]
[ "src/prefect/core/flow.py::Flow.add_task", "src/prefect/core/task.py::Task.bind", "src/prefect/tasks/control_flow/case.py::<module>", "src/prefect/tasks/control_flow/case.py::case.__exit__", "src/prefect/tasks/control_flow/case.py::case.__init__", "src/prefect/tasks/control_flow/case.py::case.add_task" ]
[ { "cid": "server/versioneer.py", "text": "server/versioneer.py\nclass VersioneerConfig # Container for Versioneer configuration parameters.\ndef get_root() # Get the project root directory.\ndef get_config_from_root(root) # Read the project setup.cfg file to determine Versioneer config.\n def get(pars...
[ { "cid": "server/versioneer.py::get_root", "text": "server/versioneer.py::get_root\ndef get_root():\n \"\"\"Get the project root directory.\n\n We require that all commands are run from the project root, i.e. the\n directory that contains setup.py, setup.cfg, and versioneer.py .\n \"\"\"\n ro...
Lightning-AI__lightning-2986
Lightning-AI/lightning
train
Neptune logger with a validation epoch end conflict due to the 'epoch' key added on the fly. Hi everybody! First thanks for this lib, it is very handy! ## 🐛 Bug When using pytorch lightning in conjunction with the neptune logger, one can see this kind of error popping every time an epoch ends: ` neptune.api_ex...
[ "pytorch_lightning/trainer/evaluation_loop.py", "pytorch_lightning/trainer/logging.py" ]
[ "pytorch_lightning/trainer/evaluation_loop.py::TrainerEvaluationLoopMixin.__eval_add_step_metrics", "pytorch_lightning/trainer/evaluation_loop.py::TrainerEvaluationLoopMixin._evaluate", "pytorch_lightning/trainer/evaluation_loop.py::TrainerEvaluationLoopMixin.log_metrics", "pytorch_lightning/trainer/logging.p...
[ { "cid": "pytorch_lightning/core/lightning.py", "text": "pytorch_lightning/core/lightning.py\nclass LightningModule\n def __init__(self, *args, **kwargs)\n def example_input_array(self)\n def example_input_array(self, example: Any)\n def datamodule(self)\n def datamodule(self, datamodule: Any...
[ { "cid": "pytorch_lightning/core/lightning.py::LightningModule.__init__", "text": "pytorch_lightning/core/lightning.py::LightningModule.__init__\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n\n self.exp_save_path = None\n\n #: The current epoch\n ...
Qiskit__qiskit-6199
Qiskit/qiskit
train
Convert DAGNode.name attribute to property An unrelated thing here is I think maybe we need a similar property lookup as to DAGNode.condtion so for op nodes we just pull the name directly from the op node. something like: ```python3 @property def name(self): if self._name: return self._name return se...
[ "qiskit/dagcircuit/dagcircuit.py", "qiskit/dagcircuit/dagnode.py" ]
[ "qiskit/dagcircuit/dagcircuit.py::DAGCircuit._add_op_node", "qiskit/dagcircuit/dagnode.py::<module>", "qiskit/dagcircuit/dagnode.py::DAGNode.__init__" ]
[ { "cid": "qiskit/dagcircuit/dagcircuit.py", "text": "qiskit/dagcircuit/dagcircuit.py\nclass DAGCircuit # Quantum circuit as a directed acyclic graph.\n def __init__(self) # Create an empty circuit.\n def to_networkx(self) # Returns a copy of the DAGCircuit in networkx format.\n def from_networkx...
[ { "cid": "qiskit/dagcircuit/dagcircuit.py::DAGCircuit.__init__", "text": "qiskit/dagcircuit/dagcircuit.py::DAGCircuit.__init__\n def __init__(self):\n \"\"\"Create an empty circuit.\"\"\"\n\n # Circuit name. Generally, this corresponds to the name\n # of the QuantumCircuit from whic...
conan-io__conan-6720
conan-io/conan
train
[bug] conan export-pkg doesn't fail when exporting a package folder that does not exist ### Environment Details * Operating System+version: Debian unstable * Compiler+version: N/A * Conan version: 1.22.0 * Python version: 3.7.5 ### Steps to reproduce - Assuming you have a conan repository with a conan...
[ "conans/client/conan_api.py" ]
[ "conans/client/conan_api.py::ConanAPIV1.export_pkg" ]
[ { "cid": "conans/client/build/cmake.py", "text": "conans/client/build/cmake.py\nclass CMake\n def __init__(self, conanfile, generator=None, cmake_system_name=True, parallel=True, build_type=None, toolset=None, make_program=None, set_cmake_flags=False, msbuild_verbosity='minimal', cmake_program=None, gene...
[ { "cid": "conans/client/build/cmake.py::CMake.__init__", "text": "conans/client/build/cmake.py::CMake.__init__\n def __init__(self, conanfile, generator=None, cmake_system_name=True,\n parallel=True, build_type=None, toolset=None, make_program=None,\n set_cmake_flags=False...
pantsbuild__pants-5232
pantsbuild/pants
train
--quiet and --color should not restart daemon those are the bootstrap options that should not affect the result. Example, daemon restarts between ``` ./pants list x ./pants list x > /dev/null ```
[ "src/python/pants/option/options.py" ]
[ "src/python/pants/option/options.py::Options.get_fingerprintable_for_scope" ]
[ { "cid": "src/python/pants/bin/goal_runner.py", "text": "src/python/pants/bin/goal_runner.py\nclass GoalRunnerFactory\n def __init__(self, root_dir, options, build_config, run_tracker, reporting, daemon_graph_helper=None, exiter=sys.exit) # :param str root_dir: The root directory of the pants workspace ...
[ { "cid": "src/python/pants/bin/goal_runner.py::GoalRunnerFactory.__init__", "text": "src/python/pants/bin/goal_runner.py::GoalRunnerFactory.__init__\n def __init__(self, root_dir, options, build_config, run_tracker, reporting,\n daemon_graph_helper=None, exiter=sys.exit):\n \"\"\"\n :pa...
google__jax-1262
google/jax
train
Feature Request: More Initializers in stax Probably on a similar topic of #137, I think it would be better if stax had a few extra initializers for neural network layers, specifically glorot uniform, kalming/he normal and kalming/he uniform, as they are important in building deep neural networks with ReLU activation, a...
[ "jax/experimental/stax.py", "jax/random.py" ]
[ "jax/experimental/stax.py::<module>", "jax/experimental/stax.py::BatchNorm.apply_fun", "jax/experimental/stax.py::Dense", "jax/experimental/stax.py::GeneralConv", "jax/experimental/stax.py::GeneralConvTranspose", "jax/experimental/stax.py::elu", "jax/experimental/stax.py::fastvar", "jax/experimental/s...
[ { "cid": "examples/mnist_classifier.py", "text": "examples/mnist_classifier.py\ndef loss(params, batch)\ndef accuracy(params, batch)", "label": 0 }, { "cid": "examples/resnet50.py", "text": "examples/resnet50.py\ndef ConvBlock(kernel_size, filters, strides=(2, 2))\ndef IdentityBlock(kernel_s...
[ { "cid": "examples/mnist_classifier.py::loss", "text": "examples/mnist_classifier.py::loss\ndef loss(params, batch):\n inputs, targets = batch\n preds = predict(params, inputs)\n return -np.mean(preds * targets)", "label": 0 }, { "cid": "examples/mnist_classifier.py::accuracy", "text": "e...
googleapis__google-cloud-python-771
googleapis/google-cloud-python
train
DISCUSSION: Do we need ACL lazy loading? Is there a good reason for the [lazy](https://github.com/GoogleCloudPlatform/gcloud-python/blob/d51f29f39832d52a24b2b5dfdb4f882bf623f374/gcloud/storage/blob.py#L95-L99) loading [behavior](https://github.com/GoogleCloudPlatform/gcloud-python/blob/d51f29f39832d52a24b2b5dfdb4f882bf...
[ "gcloud/storage/blob.py", "gcloud/storage/bucket.py" ]
[ "gcloud/storage/blob.py::<module>", "gcloud/storage/blob.py::Blob.__init__", "gcloud/storage/blob.py::Blob.acl", "gcloud/storage/bucket.py::<module>", "gcloud/storage/bucket.py::Bucket.__init__", "gcloud/storage/bucket.py::Bucket.acl", "gcloud/storage/bucket.py::Bucket.default_object_acl" ]
[ { "cid": "gcloud/_helpers.py", "text": "gcloud/_helpers.py\nclass _LocalStack # Manage a thread-local LIFO stack of resources.\n def __init__(self)\n def __iter__(self) # Iterate the stack in LIFO order.\n def push(self, resource) # Push a resource onto our stack.\n def pop(self) # Pop a res...
[ { "cid": "gcloud/_helpers.py::_LocalStack.__init__", "text": "gcloud/_helpers.py::_LocalStack.__init__\n def __init__(self):\n super(_LocalStack, self).__init__()\n self._stack = []", "label": 0 }, { "cid": "gcloud/_helpers.py::_LocalStack.__iter__", "text": "gcloud/_helpers...
Lightning-AI__lightning-2960
Lightning-AI/lightning
train
Document fixes: early_stop_checkpoint is not an valid argument for pl.Trainer ## 📚 Documentation In `pytorch-lightning/docs/source/new-project.rst`, there is an example demonstrating how to use `Trainer`. However, `early_stop_checkpoint` is not a valid argument for `Trainer`. I also found that `early_stop_checkpoin...
[ "pytorch_lightning/trainer/__init__.py", "pytorch_lightning/trainer/trainer.py" ]
[ "pytorch_lightning/trainer/__init__.py::<module>", "pytorch_lightning/trainer/trainer.py::Trainer.__init__" ]
[ { "cid": "docs/source/conf.py", "text": "docs/source/conf.py\ndef run_apidoc(_)\ndef setup(app)\ndef package_list_from_file(file)\ndef linkcode_resolve(domain, info)\n def find_source()", "label": 0 }, { "cid": "pytorch_lightning/core/hooks.py", "text": "pytorch_lightning/core/hooks.py\nc...
[ { "cid": "docs/source/conf.py::run_apidoc", "text": "docs/source/conf.py::run_apidoc\ndef run_apidoc(_):\n sys.path.insert(0, apidoc_output_folder)\n\n # delete api-doc files before generating them\n if os.path.exists(apidoc_output_folder):\n shutil.rmtree(apidoc_output_folder)\n\n for pk...
ytdl-org__youtube-dl-18371
ytdl-org/youtube-dl
train
[ARD:mediathek] RegexNotFoundError ## Please follow the guide below - You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`) - Use the *Preview* tab to see what yo...
[ "youtube_dl/extractor/ard.py" ]
[ "youtube_dl/extractor/ard.py::ARDMediathekIE._real_extract" ]
[ { "cid": "youtube_dl/extractor/ard.py", "text": "youtube_dl/extractor/ard.py\nclass ARDMediathekIE\n def _extract_media_info(self, media_info_url, webpage, video_id)\n def _extract_formats(self, media_info, video_id)\n def _real_extract(self, url)\nclass ARDIE\n def _real_extract(self, url)\ncla...
[ { "cid": "youtube_dl/extractor/ard.py::ARDMediathekIE._extract_media_info", "text": "youtube_dl/extractor/ard.py::ARDMediathekIE._extract_media_info\n def _extract_media_info(self, media_info_url, webpage, video_id):\n media_info = self._download_json(\n media_info_url, video_id, 'Downl...
docker__compose-4528
docker/compose
train
Environment variable does not update Setting an environment variable in the docker-compose file does not update the value in the command field. The value of the variable that's used is an old value which has since been changed. This is the relevant portion of the compose file : ```yaml services: rabbitmq: ...
[ "compose/service.py" ]
[ "compose/service.py::Service.scale" ]
[ { "cid": "compose/cli/docker_client.py", "text": "compose/cli/docker_client.py\ndef tls_config_from_options(options)\ndef docker_client(environment, version=None, tls_config=None, host=None, tls_version=None) # Returns a docker-py client configured using environment variables", "label": 0 }, { ...
[ { "cid": "compose/cli/docker_client.py::tls_config_from_options", "text": "compose/cli/docker_client.py::tls_config_from_options\ndef tls_config_from_options(options):\n tls = options.get('--tls', False)\n ca_cert = unquote_path(options.get('--tlscacert'))\n cert = unquote_path(options.get('--tlsce...
pandas-dev__pandas-39194
pandas-dev/pandas
train
REGR: fillna on datetime64[ns, UTC] column hits RecursionError #### Code Sample ```python from datetime import datetime, timezone import pandas as pd df = pd.DataFrame(range(31)) df["dt"] = pd.date_range("2020/12/01", "2020/12/31", tz="UTC") df["dt"].iloc[5] = pd.NaT df["dt"] = df["dt"].fillna(datetime(1980,...
[ "pandas/core/internals/blocks.py", "pandas/core/internals/managers.py" ]
[ "pandas/core/internals/blocks.py::<module>", "pandas/core/internals/managers.py::_consolidate" ]
[ { "cid": "pandas/core/internals/blocks.py", "text": "pandas/core/internals/blocks.py\nclass Block # Canonical n-dimensional unit of homogeneous dtype contained in a pandas\n def _simple_new(cls, values: ArrayLike, placement: BlockPlacement, ndim: int) # Fastpath constructor, does *no* validation\n d...
[ { "cid": "pandas/core/internals/blocks.py::Block._simple_new", "text": "pandas/core/internals/blocks.py::Block._simple_new\n @classmethod\n def _simple_new(\n cls, values: ArrayLike, placement: BlockPlacement, ndim: int\n ) -> \"Block\":\n \"\"\"\n Fastpath constructor, does *n...
pantsbuild__pants-10475
pantsbuild/pants
train
Cycles involving file addresses not always permitted A case like: ``` pants.engine.internals.graph.CycleException: Dependency graph contained a cycle: -> src/python/example/migrations:migrations src/python/example/__init__.py -> src/python/example/migrations:migrations ``` ...can currently fail. And this can ...
[ "src/python/pants/engine/internals/graph.py" ]
[ "src/python/pants/engine/internals/graph.py::_detect_cycles", "src/python/pants/engine/internals/graph.py::_detect_cycles.visit" ]
[ { "cid": "src/python/pants/backend/python/lint/pylint/plugin_target_type.py", "text": "src/python/pants/backend/python/lint/pylint/plugin_target_type.py\nclass PylintPluginSources\nclass PylintPluginDependencies # Addresses to other targets that this plugin depends on.\nclass PylintSourcePlugin # A Pylint...
[ { "cid": "src/python/pants/engine/internals/graph.py::resolve_target", "text": "src/python/pants/engine/internals/graph.py::resolve_target\n@rule\nasync def resolve_target(\n address: Address, registered_target_types: RegisteredTargetTypes\n) -> WrappedTarget:\n if address.generated_base_target_name:\...
docker__compose-1931
docker/compose
train
Since 1.4, `docker-compose up container` logs all containers, not just those passed as argument `docker-compose up lb wsgi` now also logs other containers, not just those explicitly passed in argument ("lb" and "wsgi" in this example). So instead of having just the logs I'm interested in like before, I'm now flooded wi...
[ "compose/cli/main.py", "compose/container.py" ]
[ "compose/cli/main.py::<module>", "compose/cli/main.py::TopLevelCommand.up", "compose/container.py::<module>", "compose/container.py::Container.name_without_project" ]
[ { "cid": "compose/cli/__init__.py", "text": "compose/cli/__init__.py", "label": 0 }, { "cid": "compose/cli/command.py", "text": "compose/cli/command.py\nclass Command\n def dispatch(self, *args, **kwargs)\n def perform_command(self, options, handler, command_options)\n def get_clien...
[ { "cid": "compose/cli/command.py::Command.dispatch", "text": "compose/cli/command.py::Command.dispatch\n def dispatch(self, *args, **kwargs):\n try:\n super(Command, self).dispatch(*args, **kwargs)\n except SSLError as e:\n raise errors.UserError('SSL error: %s' % e)\n...