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
docker__compose-6410
docker/compose
train
Upgrade `events` to use the new API fields In API version 1.22 the events structure was updated to include labels and better names for fields. We should update to the new field names, and use labels directly from the event, instead of having to query for them with inspect. Ref: https://github.com/docker/docker/pull/1...
[ "compose/cli/log_printer.py", "compose/const.py", "compose/project.py" ]
[ "compose/cli/log_printer.py::watch_events", "compose/const.py::<module>", "compose/project.py::<module>", "compose/project.py::Project.events", "compose/project.py::Project.events.build_container_event" ]
[ { "cid": "compose/cli/log_printer.py", "text": "compose/cli/log_printer.py\nclass LogPresenter\n def __init__(self, prefix_width, color_func)\n def present(self, container, line)\ndef build_log_presenters(service_names, monochrome) # Return an iterable of functions.\n def no_color(text)\ndef max_n...
[ { "cid": "compose/cli/log_printer.py::LogPresenter.__init__", "text": "compose/cli/log_printer.py::LogPresenter.__init__\n def __init__(self, prefix_width, color_func):\n self.prefix_width = prefix_width\n self.color_func = color_func", "label": 0 }, { "cid": "compose/cli/log_pr...
ytdl-org__youtube-dl-1591
ytdl-org/youtube-dl
train
Opus audio conversion failure When trying to extract and convert audio from a youtube video into an opus-encoded audio file I get "ERROR: audio conversion failed:" with no further explanation. Both libopus0 and opus-tools are installed and I have no problems with other codecs like vorbis. I'm not sure if this is becaus...
[ "youtube_dl/PostProcessor.py" ]
[ "youtube_dl/PostProcessor.py::FFmpegExtractAudioPP.run" ]
[ { "cid": "devscripts/transition_helper.py", "text": "devscripts/transition_helper.py", "label": 0 }, { "cid": "setup.py", "text": "setup.py", "label": 0 }, { "cid": "youtube_dl/PostProcessor.py", "text": "youtube_dl/PostProcessor.py\nclass PostProcessor # Post Processor clas...
[ { "cid": "youtube_dl/PostProcessor.py::PostProcessor.__init__", "text": "youtube_dl/PostProcessor.py::PostProcessor.__init__\n def __init__(self, downloader=None):\n self._downloader = downloader", "label": 0 }, { "cid": "youtube_dl/PostProcessor.py::PostProcessor.set_downloader", ...
numpy__numpy-13703
numpy/numpy
train
Dtype.base attribute not documented dtype instances have a `base` attribute that, I think, is meant to be the "base dtype" for subarrays. It is, however, not documented, leading to hesitation with and confusion about its use. See https://stackoverflow.com/questions/52476601/purpose-status-of-the-attribute-numpy-dtype...
[ "numpy/core/_add_newdocs.py" ]
[ "numpy/core/_add_newdocs.py::<module>" ]
[ { "cid": "numpy/core/_add_newdocs.py", "text": "numpy/core/_add_newdocs.py\ndef numeric_type_aliases(aliases)\n def type_aliases_gen()\ndef add_newdoc_for_scalar_type(obj, fixed_aliases, doc)", "label": 1 }, { "cid": "numpy/doc/structured_arrays.py", "text": "numpy/doc/structured_arrays.p...
[ { "cid": "numpy/core/_add_newdocs.py::numeric_type_aliases", "text": "numpy/core/_add_newdocs.py::numeric_type_aliases\ndef numeric_type_aliases(aliases):\n def type_aliases_gen():\n for alias, doc in aliases:\n try:\n alias_type = getattr(_numerictypes, alias)\n ...
wagtail__wagtail-7855
wagtail/wagtail
train
Use html_url in alias_of API serialisation As per https://github.com/wagtail/wagtail/pull/7669#issuecomment-986581644
[ "wagtail/api/v2/serializers.py" ]
[ "wagtail/api/v2/serializers.py::<module>", "wagtail/api/v2/serializers.py::PageAliasOfField.get_attribute", "wagtail/api/v2/serializers.py::PageAliasOfField.to_representation" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py\ndef setup(app)", "label": 0 }, { "cid": "wagtail/admin/api/serializers.py", "text": "wagtail/admin/api/serializers.py\ndef get_model_listing_url(context, model)\nclass PageStatusField # Serializes the \"status\" field.\n def get_attribute(s...
[ { "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...
googleapis__google-cloud-python-3348
googleapis/google-cloud-python
train
Error reporting system tests needed Follow up to #3263.
[ "error_reporting/nox.py" ]
[ "error_reporting/nox.py::<module>" ]
[ { "cid": "bigquery/nox.py", "text": "bigquery/nox.py\ndef unit_tests(session, python_version) # Run the unit test suite.\ndef system_tests(session, python_version) # Run the system test suite.\ndef lint(session) # Run flake8.\ndef lint_setup_py(session) # Verify that setup.py is valid (including RST che...
[ { "cid": "bigquery/nox.py::unit_tests", "text": "bigquery/nox.py::unit_tests\n@nox.session\n@nox.parametrize('python_version', ['2.7', '3.4', '3.5', '3.6'])\ndef unit_tests(session, python_version):\n \"\"\"Run the unit test suite.\"\"\"\n\n # Run unit tests against all supported versions of Python.\n...
Qiskit__qiskit-6240
Qiskit/qiskit
train
[mpl and latex circuit drawer] The box needs to extend over the classical registers as well when an instruction has classical parameters _Originally posted by @ajavadia in https://github.com/Qiskit/qiskit-terra/issues/2973#issuecomment-521635150_ > No mpl and latex also need to be fixed. The box needs to extend over...
[ "qiskit/visualization/latex.py" ]
[ "qiskit/visualization/latex.py::QCircuitImage.__init__", "qiskit/visualization/latex.py::QCircuitImage._build_ctrl_gate", "qiskit/visualization/latex.py::QCircuitImage._build_latex_array", "qiskit/visualization/latex.py::QCircuitImage._build_multi_gate" ]
[ { "cid": "qiskit/visualization/circuit_visualization.py", "text": "qiskit/visualization/circuit_visualization.py\ndef circuit_drawer(circuit, scale=None, filename=None, style=None, output=None, interactive=False, plot_barriers=True, reverse_bits=False, justify=None, vertical_compression='medium', idle_wires...
[ { "cid": "qiskit/visualization/circuit_visualization.py::circuit_drawer", "text": "qiskit/visualization/circuit_visualization.py::circuit_drawer\ndef circuit_drawer(\n circuit,\n scale=None,\n filename=None,\n style=None,\n output=None,\n interactive=False,\n plot_barriers=True,\n re...
pyca__cryptography-8390
pyca/cryptography
train
S/MIME signature: "Content-Type: text/plain" added to message (39.0.0) Hey, I'm observing a weird behavior when signing with S/MIME since version 39.0.0: it seems like an additional "Content-Type: text/plain" is added to the message after signing it. My code looks like this: ``` from cryptography import x509 ...
[ "src/cryptography/hazmat/primitives/serialization/pkcs7.py" ]
[ "src/cryptography/hazmat/primitives/serialization/pkcs7.py::<module>", "src/cryptography/hazmat/primitives/serialization/pkcs7.py::_smime_encode" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "docs/development/custom-vectors/secp256k1/generate_secp256k1.py", "text": "docs/development/custom-vectors/secp256k1/generate_secp256k1.py\nclass TruncatedHash\n def __init__(self, hasher)\n def __call__(self, dat...
[ { "cid": "docs/development/custom-vectors/secp256k1/generate_secp256k1.py::TruncatedHash.__init__", "text": "docs/development/custom-vectors/secp256k1/generate_secp256k1.py::TruncatedHash.__init__\n def __init__(self, hasher):\n self.hasher = hasher", "label": 0 }, { "cid": "docs/devel...
numpy__numpy-11280
numpy/numpy
train
DOC: doc unclear for np.interp https://docs.scipy.org/doc/numpy/reference/generated/numpy.interp.html "Returns the one-dimensional piecewise linear interpolant to a function" doesn't look right - I think it should be "Returns the one-dimensional piecewise linear interpolant to a function, evaluated at x". Also, "...
[ "numpy/lib/function_base.py" ]
[ "numpy/lib/function_base.py::interp" ]
[ { "cid": "numpy/lib/function_base.py", "text": "numpy/lib/function_base.py\ndef rot90(m, k=1, axes=(0, 1)) # Rotate an array by 90 degrees in the plane specified by axes.\ndef flip(m, axis=None) # Reverse the order of elements in an array along the given axis.\ndef iterable(y) # Check whether or not an o...
[ { "cid": "numpy/lib/function_base.py::rot90", "text": "numpy/lib/function_base.py::rot90\ndef rot90(m, k=1, axes=(0,1)):\n \"\"\"\n Rotate an array by 90 degrees in the plane specified by axes.\n\n Rotation direction is from the first towards the second axis.\n\n Parameters\n ----------\n ...
numpy__numpy-23700
numpy/numpy
train
DOC: Indexing of vectors a and b wrong in numpy.outer function documentation ### Issue with current documentation: Current documentation says "Given two vectors, a = [a0, a1, ..., aM] and b = [b0, b1, ..., bN], the outer product [1] is:" ### Idea or request for content: The arrays should start at a1 and b1 or end...
[ "numpy/core/numeric.py" ]
[ "numpy/core/numeric.py::outer" ]
[ { "cid": "numpy/core/numeric.py", "text": "numpy/core/numeric.py\ndef _zeros_like_dispatcher(a, dtype=None, order=None, subok=None, shape=None)\ndef zeros_like(a, dtype=None, order='K', subok=True, shape=None) # Return an array of zeros with the same shape and type as a given array.\ndef ones(shape, dtype=...
[ { "cid": "numpy/core/numeric.py::_zeros_like_dispatcher", "text": "numpy/core/numeric.py::_zeros_like_dispatcher\ndef _zeros_like_dispatcher(a, dtype=None, order=None, subok=None, shape=None):\n return (a,)", "label": 0 }, { "cid": "numpy/core/numeric.py::zeros_like", "text": "numpy/core/...
dagster-io__dagster-9901
dagster-io/dagster
train
DagsterTranslator.codify is missing comment argument from superclass ## Summary If you are importing dagstermill, but also call papermill directly on a Python notebook, you will get ``` TypeError: codify() takes 2 positional arguments but 3 were given ``` because dagstermill is [replacing](https://github.com/d...
[ "python_modules/libraries/dagstermill/dagstermill/translator.py" ]
[ "python_modules/libraries/dagstermill/dagstermill/translator.py::DagsterTranslator.codify" ]
[ { "cid": "examples/docs_snippets/setup.py", "text": "examples/docs_snippets/setup.py", "label": 0 }, { "cid": "python_modules/dagster/dagster/_core/definitions/reconstruct.py", "text": "python_modules/dagster/dagster/_core/definitions/reconstruct.py\ndef get_ephemeral_repository_name(pipelin...
[ { "cid": "python_modules/dagster/dagster/_core/definitions/reconstruct.py::get_ephemeral_repository_name", "text": "python_modules/dagster/dagster/_core/definitions/reconstruct.py::get_ephemeral_repository_name\ndef get_ephemeral_repository_name(pipeline_name: str) -> str:\n check.str_param(pipeline_name...
pantsbuild__pants-18947
pantsbuild/pants
train
Requesting `AllTargets` in a plugin fails if an entry in `[python.resolves]` points to a nonexistent file **Describe the bug** In one of our in-repo plugins, we request: ``` await Get(AllTargets, AllTargetsRequest()) ``` This typically works fine, but if I add a new `[python.resolves]` entry: ``` [python.res...
[ "src/python/pants/core/target_types.py" ]
[ "src/python/pants/core/target_types.py::<module>" ]
[ { "cid": "src/python/pants/backend/python/typecheck/mypy/rules.py", "text": "src/python/pants/backend/python/typecheck/mypy/rules.py\nclass MyPyPartition\n def description(self)\nclass MyPyPartitions\nclass MyPyRequest\ndef _generate_argv(mypy: MyPy, *, pex: VenvPex, cache_dir: str, venv_python: str, fil...
[ { "cid": "src/python/pants/backend/python/typecheck/mypy/rules.py::MyPyPartition.description", "text": "src/python/pants/backend/python/typecheck/mypy/rules.py::MyPyPartition.description\n def description(self) -> str:\n ics = str(sorted(str(c) for c in self.interpreter_constraints))\n retu...
ray-project__ray-8231
ray-project/ray
train
[rllib] Python 3.5 compaltibility <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? In the fresh install of deep learning VM on GCE, rllib could not start training PPO with CartPole-v0. There are some f-strings in the code and such code do not run on p...
[ "rllib/contrib/bandits/examples/LinTS_train_wheel_env.py", "rllib/contrib/bandits/examples/tune_LinTS_train_wheel_env.py", "rllib/contrib/bandits/models/linear_regression.py" ]
[ "rllib/contrib/bandits/examples/LinTS_train_wheel_env.py::plot_model_weights", "rllib/contrib/bandits/examples/tune_LinTS_train_wheel_env.py::plot_model_weights", "rllib/contrib/bandits/models/linear_regression.py::DiscreteLinearModel.partial_fit", "rllib/contrib/bandits/models/linear_regression.py::OnlineLin...
[ { "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]...
numpy__numpy-23600
numpy/numpy
train
BUG: f2py does not properly wrap functions ### Describe the issue: I confess I can't determine if this issue is a bug or an implicit lack of feature (partial inability to deal with functions), which does _not_ raise an error, yet produces strange results. f2py works as as expected for subroutines. In contrast, w...
[ "numpy/f2py/crackfortran.py", "numpy/f2py/func2subr.py" ]
[ "numpy/f2py/crackfortran.py::analyzevars", "numpy/f2py/func2subr.py::createfuncwrapper" ]
[ { "cid": "numpy/f2py/crackfortran.py", "text": "numpy/f2py/crackfortran.py\ndef reset_global_f2py_vars()\ndef outmess(line, flag=1)\ndef rmbadname1(name)\ndef rmbadname(names)\ndef undo_rmbadname1(name)\ndef undo_rmbadname(names)\ndef openhook(filename, mode) # Ensures that filename is opened with correct ...
[ { "cid": "numpy/f2py/crackfortran.py::reset_global_f2py_vars", "text": "numpy/f2py/crackfortran.py::reset_global_f2py_vars\ndef reset_global_f2py_vars():\n global groupcounter, grouplist, neededmodule, expectbegin\n global skipblocksuntil, usermodules, f90modulevars, gotnextfile\n global filepositi...
docker__compose-1578
docker/compose
train
migrate-to-labels is missing full help entry ``` $ docker-compose help migrate-to-labels No such command: migrate-to-labels Commands: build Build or rebuild services help Get help on a command kill Kill containers logs View output from containers port ...
[ "compose/cli/docopt_command.py", "compose/cli/main.py" ]
[ "compose/cli/docopt_command.py::<module>", "compose/cli/docopt_command.py::DocoptCommand.parse", "compose/cli/main.py::TopLevelCommand.help", "compose/cli/main.py::TopLevelCommand.migrate_to_labels" ]
[ { "cid": "compose/__init__.py", "text": "compose/__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_client(self, ...
[ { "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...
conan-io__conan-3181
conan-io/conan
train
SystemPackageTool should call yum update instead of yum check-update To help us debug your issue please explain: - [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md). - [x] I've specified the Conan version, operating system version and any tool t...
[ "conans/client/tools/system_pm.py" ]
[ "conans/client/tools/system_pm.py::YumTool.update" ]
[ { "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...
google__jax-1388
google/jax
train
forward-mode eigh derivatives return NaN's First off, thanks for developing JAX, it's awesome! I recently noticed that when one computes higher order derivatives of expressions involving eigenvectors obtained from `jax.numpy.eigh` or `jax.scipy.eigh`, NaNs are returned. However, it only appears to be a problem with ...
[ "jax/lax/lax.py" ]
[ "jax/lax/lax.py::<module>" ]
[ { "cid": "jax/lax/lax.py", "text": "jax/lax/lax.py\ndef broadcast_shapes(*shapes) # Returns the shape that results from NumPy broadcasting of `shapes`.\ndef _canonicalize_shape(shape) # Canonicalizes and checks for errors in a user-provided shape value.\ndef _identity(x)\ndef neg(x) # Elementwise negatio...
[ { "cid": "jax/lax/lax.py::broadcast_shapes", "text": "jax/lax/lax.py::broadcast_shapes\n@cache()\ndef broadcast_shapes(*shapes):\n \"\"\"Returns the shape that results from NumPy broadcasting of `shapes`.\"\"\"\n if len(shapes) == 1:\n return shapes[0]\n ndim = _max(len(shape) for shape in shapes)\n ...
wagtail__wagtail-9922
wagtail/wagtail
train
Tests failing on latest `main` <!-- Found a bug? Please fill out the sections below. 👍 --> ### Issue Summary Some tests for the ~~legacy~~ moderation feature seems to be failing on latest `main` after #9817. Weirdly, they passed when the CI was run on the PR: https://github.com/wagtail/wagtail/actions/runs/395...
[ "wagtail/models/__init__.py" ]
[ "wagtail/models/__init__.py::Revision.is_latest_revision" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py\ndef setup(app)", "label": 0 }, { "cid": "wagtail/bin/wagtail.py", "text": "wagtail/bin/wagtail.py\ndef pluralize(value, arg='s')\nclass Command\n def create_parser(self, command_name=None)\n def add_arguments(self, parser)\n def print_...
[ { "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/bin/wagtail.py::pluralize", "text": "wagtail/bin/wagtail.py::pluralize\ndef pluralize(value, arg=\"s\"):\n return \"\" if value == 1 else ...
wagtail__wagtail-9533
wagtail/wagtail
train
check for raw in signal handlers The signal handlers such as [pre_save_image_feature_detection](https://github.com/wagtail/wagtail/blob/master/wagtail/wagtailimages/signal_handlers.py) should check for `raw` to detect loading from a fixture and do nothing in this case. Otherwise you get an error loading fixtures if th...
[ "wagtail/images/signal_handlers.py" ]
[ "wagtail/images/signal_handlers.py::pre_save_image_feature_detection" ]
[ { "cid": "wagtail/actions/move_page.py", "text": "wagtail/actions/move_page.py\nclass MovePagePermissionError # Raised when the page move cannot be performed due to insufficient permissions.\nclass MovePageAction\n def __init__(self, page, target, pos=None, user=None)\n def check(self, parent_after, ...
[ { "cid": "wagtail/actions/move_page.py::MovePageAction.__init__", "text": "wagtail/actions/move_page.py::MovePageAction.__init__\n def __init__(self, page, target, pos=None, user=None):\n self.page = page\n self.target = target\n self.pos = pos\n self.user = user", "label"...
PrefectHQ__prefect-312
PrefectHQ/prefect
train
Add Timeout State Suggestion: subclass `Failed` to create a `Timeout` state (or `TimedOut` state?). The nature of the failure is specific enough that this could be interesting to trap specifically.
[ "src/prefect/engine/state.py", "src/prefect/engine/task_runner.py" ]
[ "src/prefect/engine/state.py::<module>", "src/prefect/engine/task_runner.py::<module>", "src/prefect/engine/task_runner.py::TaskRunner.get_task_run_state" ]
[ { "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 get_nested(self, key: str, default=None) # Retrieves a (possibly nested) config key's value, cre...
[ { "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 ...
pantsbuild__pants-12628
pantsbuild/pants
train
pyenv fallback directory is incorrect pyenv default directory is set to `$HOME/.cache` but should be `$HOME/.pyenv`. docs: https://github.com/pyenv/pyenv#environment-variables Discovered via: https://github.com/pantsbuild/pants/issues/12496#issuecomment-892798436
[ "src/python/pants/python/python_setup.py" ]
[ "src/python/pants/python/python_setup.py::get_pyenv_root" ]
[ { "cid": "build-support/bin/generate_github_workflows.py", "text": "build-support/bin/generate_github_workflows.py\ndef checkout() # Get prior commits and the commit message.\ndef setup_toolchain_auth()\ndef pants_virtualenv_cache()\ndef global_env()\ndef rust_channel()\ndef install_rustup()\ndef rust_cach...
[ { "cid": "build-support/bin/generate_github_workflows.py::checkout", "text": "build-support/bin/generate_github_workflows.py::checkout\ndef checkout() -> Sequence[Step]:\n \"\"\"Get prior commits and the commit message.\"\"\"\n return [\n # See https://github.community/t/accessing-commit-messag...
Lightning-AI__lightning-1748
Lightning-AI/lightning
train
Checkpoint adding "version_" at the start of the logger name **To reproduce :** ```python logger = pl.loggers.TensorBoardLogger( save_dir='.', version='my_name' name='lightning_logs' ) trainer = pl.Trainer(logger=logger, log_gpu_memory='all', max_epo...
[ "pytorch_lightning/trainer/callback_config.py" ]
[ "pytorch_lightning/trainer/callback_config.py::TrainerCallbackConfigMixin.configure_checkpoint_callback" ]
[ { "cid": "pl_examples/__init__.py", "text": "pl_examples/__init__.py", "label": 0 }, { "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, ...
[ { "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...
ray-project__ray-8781
ray-project/ray
train
[rllib] Crash when using hybrid action space env and eager mode. <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? RLlib crashes on environment with **hybrid action space** (discrete and continuous) and **eager mode enabled** It works well if eager m...
[ "rllib/models/tf/tf_action_dist.py", "rllib/policy/eager_tf_policy.py" ]
[ "rllib/models/tf/tf_action_dist.py::DiagGaussian.logp", "rllib/policy/eager_tf_policy.py::<module>", "rllib/policy/eager_tf_policy.py::build_eager_tf_policy.eager_policy_cls._initialize_loss_with_dummy_batch" ]
[ { "cid": "rllib/agents/trainer.py", "text": "rllib/agents/trainer.py\ndef with_common_config(extra_config) # Returns the given config dict merged with common agent confs.\ndef with_base_config(base_config, extra_config) # Returns the given config dict merged with a base agent conf.\nclass Trainer # A tra...
[ { "cid": "rllib/agents/trainer.py::with_common_config", "text": "rllib/agents/trainer.py::with_common_config\n@DeveloperAPI\ndef with_common_config(extra_config):\n \"\"\"Returns the given config dict merged with common agent confs.\"\"\"\n\n return with_base_config(COMMON_CONFIG, extra_config)", ...
googleapis__google-cloud-python-2828
googleapis/google-cloud-python
train
[Discussion] oauth2client credentials in a post-oauth2client world. We recently switched `core` to use [`google-auth`](https://google-auth.readthedocs.io) in #2639 and completely removed support for `oauth2client`. It is possible that some users are explicitly passing `oauth2client` credentials into `Client` constru...
[ "core/google/cloud/client.py" ]
[ "core/google/cloud/client.py::<module>", "core/google/cloud/client.py::Client.__init__" ]
[ { "cid": "core/google/cloud/_helpers.py", "text": "core/google/cloud/_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 ...
[ { "cid": "core/google/cloud/_helpers.py::_LocalStack.__init__", "text": "core/google/cloud/_helpers.py::_LocalStack.__init__\n def __init__(self):\n super(_LocalStack, self).__init__()\n self._stack = []", "label": 0 }, { "cid": "core/google/cloud/_helpers.py::_LocalStack.__iter...
ytdl-org__youtube-dl-14833
ytdl-org/youtube-dl
train
culturebox francetv info ## 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 your issue w...
[ "youtube_dl/extractor/francetv.py" ]
[ "youtube_dl/extractor/francetv.py::CultureboxIE._real_extract" ]
[ { "cid": "setup.py", "text": "setup.py\nclass build_lazy_extractors\n def initialize_options(self)\n def finalize_options(self)\n def run(self)", "label": 0 }, { "cid": "youtube_dl/extractor/commonmistakes.py", "text": "youtube_dl/extractor/commonmistakes.py\nclass CommonMistakesIE\...
[ { "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...
PrefectHQ__prefect-856
PrefectHQ/prefect
train
Create RSS Tasks for Task Library
[ "setup.py" ]
[ "setup.py::<module>" ]
[ { "cid": "examples/airflow_tutorial_dag.py", "text": "examples/airflow_tutorial_dag.py\ndef add_7()", "label": 0 }, { "cid": "examples/parameterized_flow.py", "text": "examples/parameterized_flow.py\ndef check_if_even(value)\ndef print_odd(value)\ndef print_even(value)", "label": 0 }, ...
[ { "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...
Qiskit__qiskit-1856
Qiskit/qiskit
train
Allow for setting qobj header description in execute and propagate to job <!-- ⚠️ 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? The Qobj accepts a description...
[ "examples/python/hello_quantum.py", "examples/python/rippleadd.py", "examples/python/teleport.py", "examples/python/using_qiskit_terra_level_0.py", "examples/python/using_qiskit_terra_level_1.py", "qiskit/__init__.py", "qiskit/converters/circuits_to_qobj.py", "qiskit/qobj/__init__.py", "qiskit/qobj/...
[ "examples/python/hello_quantum.py::<module>", "examples/python/rippleadd.py::<module>", "examples/python/teleport.py::<module>", "examples/python/using_qiskit_terra_level_0.py::<module>", "examples/python/using_qiskit_terra_level_1.py::<module>", "qiskit/__init__.py::<module>", "qiskit/converters/circui...
[ { "cid": "examples/python/hello_quantum.py", "text": "examples/python/hello_quantum.py", "label": 1 }, { "cid": "examples/python/rippleadd.py", "text": "examples/python/rippleadd.py\ndef majority(p, a, b, c) # Majority gate.\ndef unmajority(p, a, b, c) # Unmajority gate.", "label": 1 ...
[ { "cid": "examples/python/rippleadd.py::majority", "text": "examples/python/rippleadd.py::majority\ndef majority(p, a, b, c):\n \"\"\"Majority gate.\"\"\"\n p.cx(c, b)\n p.cx(c, a)\n p.ccx(a, b, c)", "label": 0 }, { "cid": "examples/python/rippleadd.py::unmajority", "text": "exam...
celery__celery-6629
celery/celery
train
Workers retry Redis connection when task result is larger than 512MB - retry is useless as it never fits to Redis <!-- Please fill this template entirely and do not erase parts of it. We reserve the right to close without a response bug reports which are incomplete. --> # Checklist <!-- To check an item on the l...
[ "celery/backends/base.py", "celery/backends/redis.py", "celery/exceptions.py" ]
[ "celery/backends/base.py::BaseKeyValueStoreBackend._store_result", "celery/backends/redis.py::<module>", "celery/backends/redis.py::RedisBackend.set", "celery/exceptions.py::<module>" ]
[ { "cid": "celery/apps/worker.py", "text": "celery/apps/worker.py\ndef active_thread_count()\ndef safe_say(msg)\nclass Worker # Worker as a program.\n def on_before_init(self, quiet=False, **kwargs)\n def on_after_init(self, purge=False, no_color=None, redirect_stdouts=None, redirect_stdouts_level=Non...
[ { "cid": "celery/apps/worker.py::active_thread_count", "text": "celery/apps/worker.py::active_thread_count\ndef active_thread_count():\n from threading import enumerate\n return sum(1 for t in enumerate()\n if not t.name.startswith('Dummy-'))", "label": 0 }, { "cid": "celery/...
celery__celery-6288
celery/celery
train
stop loading pytest plugin by default currently celery, by default, will add a set of fixtures and a mark, which can be confusing to new developers on a project when running `pytest --fixtures` and begin using them even through we've not yet opted into and started configuring them. An alternative is to use an approa...
[ "setup.py" ]
[ "setup.py::<module>" ]
[ { "cid": "celery/bin/worker.py", "text": "celery/bin/worker.py\nclass worker # Start worker instance.\n def run_from_argv(self, prog_name, argv=None, command=None)\n def maybe_detach(self, argv, dopts=None)\n def run(self, hostname=None, pool_cls=None, app=None, uid=None, gid=None, loglevel=None, ...
[ { "cid": "celery/bin/worker.py::worker.run_from_argv", "text": "celery/bin/worker.py::worker.run_from_argv\n def run_from_argv(self, prog_name, argv=None, command=None):\n argv = [x for x in argv if x not in self.removed_flags]\n command = sys.argv[0] if command is None else command\n ...
Lightning-AI__lightning-1387
Lightning-AI/lightning
train
Make Pytorch-Lightning DDP work without SLURM ## 🚀 Feature Allow pytorch-lightning DDP mode to work everywhere ordinary pytorch DDP can work. Basically if every node in a cluster defines the following environment variables it should work: - `MASTER_PORT`: A free port on the machine that will host the process wi...
[ "pytorch_lightning/core/lightning.py", "pytorch_lightning/trainer/distrib_data_parallel.py" ]
[ "pytorch_lightning/core/lightning.py::LightningModule.init_ddp_connection", "pytorch_lightning/trainer/distrib_data_parallel.py::TrainerDDPMixin.ddp_train" ]
[ { "cid": "pytorch_lightning/core/lightning.py", "text": "pytorch_lightning/core/lightning.py\nclass LightningModule\n def __init__(self, *args, **kwargs)\n def print(self, *args, **kwargs) # Prints only from process 0. Use this in any distributed mode to log only once.\n def forward(self, *args, *...
[ { "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 #: Current dtype\n self.dtype = torch.FloatTensor\n\n ...
Qiskit__qiskit-6875
Qiskit/qiskit
train
Remove ParameterTable import From QFT.inverse <!-- ⚠️ 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? Following https://github.com/Qiskit/qiskit-terra/pull/43...
[ "qiskit/circuit/library/basis_change/qft.py" ]
[ "qiskit/circuit/library/basis_change/qft.py::QFT.__init__", "qiskit/circuit/library/basis_change/qft.py::QFT.inverse" ]
[ { "cid": "qiskit/algorithms/minimum_eigen_solvers/vqe.py", "text": "qiskit/algorithms/minimum_eigen_solvers/vqe.py\nclass VQE # The Variational Quantum Eigensolver algorithm.\n def __init__(self, ansatz: Optional[QuantumCircuit]=None, optimizer: Optional[Optimizer]=None, initial_point: Optional[np.ndarr...
[ { "cid": "qiskit/algorithms/minimum_eigen_solvers/vqe.py::VQE.__init__", "text": "qiskit/algorithms/minimum_eigen_solvers/vqe.py::VQE.__init__\n def __init__(\n self,\n ansatz: Optional[QuantumCircuit] = None,\n optimizer: Optional[Optimizer] = None,\n initial_point: Optional[...
googleapis__google-cloud-python-7441
googleapis/google-cloud-python
train
Storage: 'Blob.reload' does not pass encryption headers Per the [docs on customer-supplied encryption keys](https://cloud.google.com/storage/docs/encryption/customer-supplied-keys#encrypted-elements), the `X-Goog-Encryption-Key` header applies not only the the blob / object's payload, but also to its CRC32c checksum a...
[ "storage/google/cloud/storage/_helpers.py", "storage/google/cloud/storage/blob.py", "storage/google/cloud/storage/bucket.py" ]
[ "storage/google/cloud/storage/_helpers.py::<module>", "storage/google/cloud/storage/_helpers.py::_PropertyMixin.reload", "storage/google/cloud/storage/blob.py::<module>", "storage/google/cloud/storage/bucket.py::<module>", "storage/google/cloud/storage/bucket.py::Bucket.get_blob" ]
[ { "cid": "storage/google/cloud/storage/_helpers.py", "text": "storage/google/cloud/storage/_helpers.py\ndef _validate_name(name) # Pre-flight ``Bucket`` name validation.\nclass _PropertyMixin # Abstract mixin for cloud storage classes with associated properties.\n def __init__(self, name=None)\n def...
[ { "cid": "storage/google/cloud/storage/_helpers.py::_validate_name", "text": "storage/google/cloud/storage/_helpers.py::_validate_name\ndef _validate_name(name):\n \"\"\"Pre-flight ``Bucket`` name validation.\n\n :type name: str or :data:`NoneType`\n :param name: Proposed bucket name.\n\n :rtype...
wagtail__wagtail-1019
wagtail/wagtail
train
Remove built dependencies This commit removes libsass and Pillow from the setup.py dependency list. This greatly improves install performance and also means that the basic Wagtail installation is pure-python (so no build tools need to be on the end users host machine). None of these dependencies are directly called fr...
[ "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/bin/wagtail.py", "text": "wagtail/bin/wagtail.py\ndef create_project(parser, options, args)\ndef main()", "label": 0 }, { "cid":...
[ { "cid": "wagtail/bin/wagtail.py::create_project", "text": "wagtail/bin/wagtail.py::create_project\ndef create_project(parser, options, args):\n # Validate args\n if len(args) < 2:\n parser.error(\"Please specify a name for your wagtail installation\")\n elif len(args) > 2:\n parser.e...
Lightning-AI__lightning-2865
Lightning-AI/lightning
train
Enable option to use Apex when PyTorch 1.6 is installed ## 🚀 Feature <!-- A clear and concise description of the feature proposal --> Currently, if PyTorch 1.6 is installed, PyTorch Lightning will use native AMP by default. It would be useful to have an option to force PL to use Apex if needed, which is not curren...
[ "pytorch_lightning/accelerators/cpu_backend.py", "pytorch_lightning/accelerators/ddp2_backend.py", "pytorch_lightning/accelerators/ddp_backend.py", "pytorch_lightning/accelerators/ddp_spawn_backend.py", "pytorch_lightning/accelerators/dp_backend.py", "pytorch_lightning/accelerators/gpu_backend.py", "pyt...
[ "pytorch_lightning/accelerators/cpu_backend.py::CPUBackend.setup", "pytorch_lightning/accelerators/ddp2_backend.py::<module>", "pytorch_lightning/accelerators/ddp2_backend.py::DDP2Backend.ddp_train", "pytorch_lightning/accelerators/ddp_backend.py::<module>", "pytorch_lightning/accelerators/ddp_backend.py::D...
[ { "cid": "pytorch_lightning/accelerators/cpu_backend.py", "text": "pytorch_lightning/accelerators/cpu_backend.py\nclass CPUBackend\n def __init__(self, trainer)\n def setup(self, model)\n def train(self, model)", "label": 1 }, { "cid": "pytorch_lightning/accelerators/ddp2_backend.py", ...
[ { "cid": "pytorch_lightning/accelerators/cpu_backend.py::CPUBackend.__init__", "text": "pytorch_lightning/accelerators/cpu_backend.py::CPUBackend.__init__\n def __init__(self, trainer):\n self.trainer = trainer", "label": 0 }, { "cid": "pytorch_lightning/accelerators/cpu_backend.py::CP...
pandas-dev__pandas-26134
pandas-dev/pandas
train
corrupted data and segfault in groupby cumsum/cumprod/cummin/cummax with absent categories #### Code Sample, a copy-pastable example if possible Requires the contents of [bug.pkl.zip](https://github.com/pandas-dev/pandas/files/1102273/bug.pkl.zip) ```python >>> import pandas as pd >>> pd.read_pickle('bug.pkl')....
[ "pandas/core/groupby/ops.py" ]
[ "pandas/core/groupby/ops.py::<module>", "pandas/core/groupby/ops.py::BaseGrouper._transform" ]
[ { "cid": "doc/source/conf.py", "text": "doc/source/conf.py\ndef sphinxdocstring_str(self, indent=0, func_role='obj')\ndef decorate_process_param(func)\n def _escape_args_and_kwargs(name)\n def func_wrapper(self, param, desc, fake_autosummary)\nclass AccessorDocumenter # Specialized Documenter subclas...
[ { "cid": "doc/source/conf.py::sphinxdocstring_str", "text": "doc/source/conf.py::sphinxdocstring_str\ndef sphinxdocstring_str(self, indent=0, func_role=\"obj\"):\n # Pandas displays Attributes section in style like Methods section\n\n # Function is copy of `SphinxDocString.__str__`\n ns = {\n ...
ray-project__ray-7114
ray-project/ray
train
Turn off OMP_NUM_THREADS warnings? Can we just turn off the warnings on each ray.init? We can't force everyone to set the environment variable. https://github.com/ray-project/ray/blob/3f99be8dad5e0e1abfaede1f25753a0af74f1648/python/ray/__init__.py#L16-L21
[ "python/ray/__init__.py" ]
[ "python/ray/__init__.py::<module>" ]
[ { "cid": "python/ray/__init__.py", "text": "python/ray/__init__.py", "label": 1 }, { "cid": "python/ray/experimental/serve/http_util.py", "text": "python/ray/experimental/serve/http_util.py\ndef build_flask_request(asgi_scope_dict, request_body) # Build and return a flask request from ASGI ...
[ { "cid": "python/ray/experimental/serve/http_util.py::build_flask_request", "text": "python/ray/experimental/serve/http_util.py::build_flask_request\ndef build_flask_request(asgi_scope_dict, request_body):\n \"\"\"Build and return a flask request from ASGI payload\n\n This function is indented to be u...
ytdl-org__youtube-dl-21658
ytdl-org/youtube-dl
train
[Mixer] VOD parsing fails Vods now also include "-" i.e.: https://mixer.com/TheViper?vod=Rh3LY0VAqkGpEQUe2pN-ig This is not correctly parsed by the `_VALID_URL` regex.
[ "youtube_dl/extractor/beampro.py" ]
[ "youtube_dl/extractor/beampro.py::<module>" ]
[ { "cid": "youtube_dl/extractor/beampro.py", "text": "youtube_dl/extractor/beampro.py\nclass BeamProBaseIE\n def _extract_channel_info(self, chan)\nclass BeamProLiveIE\n def suitable(cls, url)\n def _real_extract(self, url)\n def manifest_url(kind)\nclass BeamProVodIE\n def _extract_format...
[ { "cid": "youtube_dl/extractor/beampro.py::BeamProBaseIE._extract_channel_info", "text": "youtube_dl/extractor/beampro.py::BeamProBaseIE._extract_channel_info\n def _extract_channel_info(self, chan):\n user_id = chan.get('userId') or try_get(chan, lambda x: x['user']['id'])\n return {\n ...
googleapis__google-cloud-python-5036
googleapis/google-cloud-python
train
extract_table does not check that the job config is an ExtractJobConfig See: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/1281 bigquery_client = bigquery.Client() dataset_ref = bigquery_client.dataset(dataset_id) table_ref = dataset_ref.table(table_id) job_config = bigquery....
[ "bigquery/google/cloud/bigquery/_helpers.py", "bigquery/google/cloud/bigquery/job.py", "bigquery/google/cloud/bigquery/schema.py" ]
[ "bigquery/google/cloud/bigquery/_helpers.py::<module>", "bigquery/google/cloud/bigquery/_helpers.py::_ApiResourceProperty._validate", "bigquery/google/cloud/bigquery/job.py::<module>", "bigquery/google/cloud/bigquery/job.py::AutoDetectSchema.__set__", "bigquery/google/cloud/bigquery/job.py::CopyJob._build_r...
[ { "cid": "bigquery/google/cloud/bigquery/_helpers.py", "text": "bigquery/google/cloud/bigquery/_helpers.py\ndef _not_null(value, field) # Check whether 'value' should be coerced to 'field' type.\ndef _int_from_json(value, field) # Coerce 'value' to an int, if set or not nullable.\ndef _float_from_json(val...
[ { "cid": "bigquery/google/cloud/bigquery/_helpers.py::_not_null", "text": "bigquery/google/cloud/bigquery/_helpers.py::_not_null\ndef _not_null(value, field):\n \"\"\"Check whether 'value' should be coerced to 'field' type.\"\"\"\n return value is not None or field.mode != 'NULLABLE'", "label": 0 ...
jupyterlab__jupyterlab-8486
jupyterlab/jupyterlab
train
Logout button handling not available when launching notebook app <!-- Welcome! Before creating a new issue: * Search for relevant issues * Follow the issue reporting guidelines: https://jupyterlab.readthedocs.io/en/latest/getting_started/issue.html --> ## Description Because this is handled currently in [LabAp...
[ "jupyterlab/extension.py", "jupyterlab/labapp.py" ]
[ "jupyterlab/extension.py::load_jupyter_server_extension", "jupyterlab/labapp.py::<module>", "jupyterlab/labapp.py::LabApp.init_webapp" ]
[ { "cid": "docs/source/conf.py", "text": "docs/source/conf.py\ndef setup(app)", "label": 0 }, { "cid": "jupyterlab/browser_check.py", "text": "jupyterlab/browser_check.py\nclass LogErrorHandler # A handler that exits with 1 on a logged error.\n def __init__(self)\n def filter(self, rec...
[ { "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...
Lightning-AI__lightning-1667
Lightning-AI/lightning
train
load checkpoint from URL Let's enable loading weights from a URL directly ## Option 1: Automate it with our current API ```python Trainer.load_from_checkpoint('http://') ``` ## Option 2: Have a separate method ```python Trainer.load_from_checkpoint_at_url('http://') ``` ## Resources We can use this ...
[ "pytorch_lightning/core/saving.py", "pytorch_lightning/trainer/trainer.py", "pytorch_lightning/trainer/training_io.py" ]
[ "pytorch_lightning/core/saving.py::<module>", "pytorch_lightning/core/saving.py::ModelIO._load_model_state", "pytorch_lightning/core/saving.py::ModelIO.load_from_checkpoint", "pytorch_lightning/trainer/trainer.py::Trainer.__init__", "pytorch_lightning/trainer/training_io.py::<module>", "pytorch_lightning/...
[ { "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/saving.py", "text": "pytorch_lightning/core/saving.py\...
[ { "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...
docker__compose-3670
docker/compose
train
Passing host env var to run results in None value within container If you `run` a container and pass an env var from the host just like you'd do with `docker run -e ENV_VAR` the env var gets set to `None` inside the container that's started. Example commands: ``` export ENV_VAR='foo` docker-compose run -e ENV_VAR <ser...
[ "compose/cli/main.py", "compose/config/environment.py" ]
[ "compose/cli/main.py::<module>", "compose/cli/main.py::build_container_options", "compose/config/environment.py::<module>" ]
[ { "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 = options.get('--tlscacert')\n cert = options.get('--tlscert')\n key = options.get...
twisted__twisted-11897
twisted/twisted
train
`UnboundLocalError` exception when exiting `trial -j` via an interrupt (i.e. ctrl-C) running `trial --reporter=bwverbose -j 10 twisted.internet.test` for unrelated reasons: `trial --reporter=bwverbose -j 10 twisted.internet.test` ``` ^CTraceback (most recent call last): File "/Users/glyph/.virtualenvs/Twisted...
[ "src/twisted/trial/_dist/disttrial.py" ]
[ "src/twisted/trial/_dist/disttrial.py::<module>", "src/twisted/trial/_dist/disttrial.py::DistTrialRunner._run", "src/twisted/trial/_dist/disttrial.py::DistTrialRunner._run.capture" ]
[ { "cid": "src/twisted/scripts/trial.py", "text": "src/twisted/scripts/trial.py\ndef _parseLocalVariables(line) # Accepts a single line in Emacs local variable declaration format and\ndef loadLocalVariables(filename) # Accepts a filename and attempts to load the Emacs variable declarations\ndef getTestModu...
[ { "cid": "src/twisted/scripts/trial.py::_parseLocalVariables", "text": "src/twisted/scripts/trial.py::_parseLocalVariables\ndef _parseLocalVariables(line):\n \"\"\"\n Accepts a single line in Emacs local variable declaration format and\n returns a dict of all the variables {name: value}.\n Raise...
ray-project__ray-8493
ray-project/ray
train
import error ray 0.8.5,when I try to use ray, it occurs Ray must be imported before pickle5 because Ray requires a specific version of pickle5 (which is packaged along with Ray. I want to know it must import pickle5 before import ray, Right?
[ "python/ray/__init__.py" ]
[ "python/ray/__init__.py::<module>" ]
[ { "cid": "doc/examples/plot_parameter_server.py", "text": "doc/examples/plot_parameter_server.py\ndef get_data_loader() # Safely downloads data. Returns training/validation set dataloader.\ndef evaluate(model, test_loader) # Evaluates the accuracy of the model on a validation dataset.\nclass ConvNet # Sm...
[ { "cid": "doc/examples/plot_parameter_server.py::get_data_loader", "text": "doc/examples/plot_parameter_server.py::get_data_loader\ndef get_data_loader():\n \"\"\"Safely downloads data. Returns training/validation set dataloader.\"\"\"\n mnist_transforms = transforms.Compose(\n [transforms.ToTe...
wagtail__wagtail-10633
wagtail/wagtail
train
Add support for Pillow 10.0.0 ### Is your proposal related to a problem? Pillow 10.0.0 [has just been released.](https://github.com/python-pillow/Pillow/releases/tag/10.0.0) Wagtail 5.0.2 [restricts Pillow support to <10.0.0.](https://github.com/wagtail/wagtail/blob/a68f69f2d7f46943cc23b7f65349448b23044869/setup.py#...
[ "setup.py" ]
[ "setup.py::<module>" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py\ndef setup(app)", "label": 0 }, { "cid": "setup.py", "text": "setup.py", "label": 1 }, { "cid": "wagtail/bin/wagtail.py", "text": "wagtail/bin/wagtail.py\ndef pluralize(value, arg='s')\nclass Command\n def create_parser(self, ...
[ { "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/bin/wagtail.py::pluralize", "text": "wagtail/bin/wagtail.py::pluralize\ndef pluralize(value, arg=\"s\"):\n return \"\" if value == 1 else ...
Lightning-AI__lightning-1377
Lightning-AI/lightning
train
Tensorboard logger error: lightning_logs directory not exists in multi-node DDP on nodes with rank != 0 ## 🐛 Bug In multi-node DDP train mode on all nodes except rank 0 errors appears at the start of the training caused by accessing lightning_logs directory in tensorboard logger which is not exist at the moment. ...
[ "pytorch_lightning/loggers/tensorboard.py" ]
[ "pytorch_lightning/loggers/tensorboard.py::<module>", "pytorch_lightning/loggers/tensorboard.py::TensorBoardLogger._get_next_version" ]
[ { "cid": "pytorch_lightning/core/__init__.py", "text": "pytorch_lightning/core/__init__.py", "label": 0 }, { "cid": "pytorch_lightning/core/lightning.py", "text": "pytorch_lightning/core/lightning.py\nclass LightningModule\n def __init__(self, *args, **kwargs)\n def print(self, *args, ...
[ { "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 #: Current dtype\n self.dtype = torch.FloatTensor\n\n ...
googleapis__google-cloud-python-2151
googleapis/google-cloud-python
train
Merging logging-stdlib-handling-feature into master @tseaver @dhermes @jgeewax tell me what needs to be done. The feature branch approach is not really working either.
[ "gcloud/logging/logger.py", "scripts/verify_included_modules.py" ]
[ "gcloud/logging/logger.py::Batch.commit", "scripts/verify_included_modules.py::<module>" ]
[ { "cid": "gcloud/datastore/helpers.py", "text": "gcloud/datastore/helpers.py\ndef _get_meaning(value_pb, is_list=False) # Get the meaning from a protobuf value.\ndef _new_value_pb(entity_pb, name) # Add (by name) a new ``Value`` protobuf to an entity protobuf.\ndef _property_tuples(entity_pb) # Iterator ...
[ { "cid": "gcloud/datastore/helpers.py::_get_meaning", "text": "gcloud/datastore/helpers.py::_get_meaning\ndef _get_meaning(value_pb, is_list=False):\n \"\"\"Get the meaning from a protobuf value.\n\n :type value_pb: :class:`gcloud.datastore._generated.entity_pb2.Value`\n :param value_pb: The protob...
ipython__ipython-2232
ipython/ipython
train
ERROR: Internal Python error in the inspect module. Looks like this is related to issue #53. I just got the following in the notebook: ``` In [33]: # Switch to NumPy pw.prtparam = p ``` ``` Traceback (most recent call last): File "C:\Python27\lib\site-packages\ipython-0.13.dev-py2.7.egg\IPython\core\ultratb.py", l...
[ "IPython/core/ultratb.py" ]
[ "IPython/core/ultratb.py::<module>" ]
[ { "cid": "IPython/core/crashhandler.py", "text": "IPython/core/crashhandler.py\nclass CrashHandler # Customizable crash handlers for IPython applications.\n def __init__(self, app, contact_name=None, contact_email=None, bug_tracker=None, show_crash_traceback=True, call_pdb=False) # Create a new crash h...
[ { "cid": "IPython/core/crashhandler.py::CrashHandler.__init__", "text": "IPython/core/crashhandler.py::CrashHandler.__init__\n def __init__(self, app, contact_name=None, contact_email=None,\n bug_tracker=None, show_crash_traceback=True, call_pdb=False):\n \"\"\"Create a new crash h...
numpy__numpy-16346
numpy/numpy
train
Uninformative error message when trying to install using python<3.6 Because `setup.py` (lines [182](https://github.com/numpy/numpy/blob/master/setup.py#L182), [191](https://github.com/numpy/numpy/blob/master/setup.py#L191)) uses f-strings introduced in python 3.6, anyone using lower version of python would get a syntax...
[ "setup.py" ]
[ "setup.py::check_submodules" ]
[ { "cid": "numpy/lib/format.py", "text": "numpy/lib/format.py\ndef _check_version(version)\ndef magic(major, minor) # Return the magic string for the given file format version.\ndef read_magic(fp) # Read the magic string to get the version of the file format.\ndef _has_metadata(dt)\ndef dtype_to_descr(dtyp...
[ { "cid": "numpy/lib/format.py::_check_version", "text": "numpy/lib/format.py::_check_version\ndef _check_version(version):\n if version not in [(1, 0), (2, 0), (3, 0), None]:\n msg = \"we only support format version (1,0), (2,0), and (3,0), not %s\"\n raise ValueError(msg % (version,))", ...
googleapis__google-cloud-python-814
googleapis/google-cloud-python
train
resumable uploads should try to send the file in one chunk by default Sending data in one chunk is the recommended approach, documented in a not very clear way [here](https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload#resumable) in the “Uploading the file in chunks” section. We should allow the user to o...
[ "gcloud/storage/blob.py" ]
[ "gcloud/storage/blob.py::<module>", "gcloud/storage/blob.py::Blob.__init__", "gcloud/storage/blob.py::Blob.download_to_file", "gcloud/storage/blob.py::Blob.upload_from_file" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "gcloud/connection.py", "text": "gcloud/connection.py\nclass Connection # A generic connection to Google Cloud Platform.\n def __init__(self, credentials=None, http=None)\n def credentials(self) # Getter for curr...
[ { "cid": "gcloud/connection.py::Connection.__init__", "text": "gcloud/connection.py::Connection.__init__\n def __init__(self, credentials=None, http=None):\n self._http = http\n self._credentials = credentials", "label": 0 }, { "cid": "gcloud/connection.py::Connection.credential...
conan-io__conan-2600
conan-io/conan
train
Provide a separate step for 2 step build systems such as CMake and AutoTools As discussed in #2470, it would be very helpful to have a separate step that would only call `configure()` function of `CMake` and `AutoToolsBuildEnvironment` because Conan passes useful information to them so calling them directly without Con...
[ "conans/client/build/autotools_environment.py", "conans/client/build/cmake.py", "conans/client/build/meson.py", "conans/client/command.py", "conans/client/conan_api.py", "conans/client/manager.py", "conans/model/conan_file.py" ]
[ "conans/client/build/autotools_environment.py::AutoToolsBuildEnvironment.configure", "conans/client/build/autotools_environment.py::AutoToolsBuildEnvironment.make", "conans/client/build/cmake.py::CMake.build", "conans/client/build/cmake.py::CMake.configure", "conans/client/build/cmake.py::CMake.install", ...
[ { "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_...
pantsbuild__pants-14169
pantsbuild/pants
train
Add line number to unowned_dependency_behavior warn/error **Is your feature request related to a problem? Please describe.** The output now is: ``` 08:27:12.67 [ERROR] The following imports in path/to/file.py:address have no owners: * mod.name ``` **Describe the solution you'd like** ``` 08:27:12.67 [...
[ "src/python/pants/backend/python/dependency_inference/parse_python_imports.py", "src/python/pants/backend/python/dependency_inference/rules.py", "src/python/pants/backend/python/dependency_inference/scripts/import_parser.py" ]
[ "src/python/pants/backend/python/dependency_inference/parse_python_imports.py::<module>", "src/python/pants/backend/python/dependency_inference/parse_python_imports.py::parse_python_imports", "src/python/pants/backend/python/dependency_inference/rules.py::infer_python_dependencies_via_imports", "src/python/pa...
[ { "cid": "src/python/pants/backend/python/dependency_inference/parse_python_imports.py", "text": "src/python/pants/backend/python/dependency_inference/parse_python_imports.py\nclass ParsedPythonImports # All the discovered imports from a Python source file.\nclass ParsePythonImportsRequest\ndef parse_pytho...
[ { "cid": "src/python/pants/backend/python/dependency_inference/parse_python_imports.py::parse_python_imports", "text": "src/python/pants/backend/python/dependency_inference/parse_python_imports.py::parse_python_imports\n@rule\nasync def parse_python_imports(request: ParsePythonImportsRequest) -> ParsedPytho...
wagtail__wagtail-7821
wagtail/wagtail
train
Wagtail 2.15 Bulk Publish for Inherited Page Found a bug? Please fill out the sections below. 👍 ### Issue Summary Assume we have two classes: class A(Page): name = models.CharField(max_length=255) class B(A): nickname = models.CharField(max_length=255) When do bulk action of publishing the pages with ...
[ "wagtail/admin/views/pages/bulk_actions/page_bulk_action.py", "wagtail/admin/views/pages/bulk_actions/publish.py" ]
[ "wagtail/admin/views/pages/bulk_actions/page_bulk_action.py::<module>", "wagtail/admin/views/pages/bulk_actions/publish.py::PublishBulkAction.execute_action" ]
[ { "cid": "wagtail/admin/action_menu.py", "text": "wagtail/admin/action_menu.py\ndef requires_request_arg(method) # Helper function to handle deprecation of old ActionMenuItem API where get_url, i\nclass ActionMenuItem # Defines an item in the actions drop-up on the page creation/edit view\n def __init_...
[ { "cid": "wagtail/admin/action_menu.py::requires_request_arg", "text": "wagtail/admin/action_menu.py::requires_request_arg\ndef requires_request_arg(method):\n \"\"\"\n Helper function to handle deprecation of old ActionMenuItem API where get_url, is_show,\n get_context and render_html all accepted...
googleapis__google-cloud-python-5033
googleapis/google-cloud-python
train
Release spanner 1.2.0 Batch query support is merged. Note that `development_status` is still showing beta.
[ "spanner/setup.py" ]
[ "spanner/setup.py::<module>" ]
[ { "cid": "bigquery_datatransfer/docs/conf.py", "text": "bigquery_datatransfer/docs/conf.py", "label": 0 }, { "cid": "spanner/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2.py", "text": "spanner/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2.p...
[ { "cid": "spanner/google/cloud/spanner_v1/proto/spanner_pb2_grpc.py::SpannerStub.__init__", "text": "spanner/google/cloud/spanner_v1/proto/spanner_pb2_grpc.py::SpannerStub.__init__\n def __init__(self, channel):\n \"\"\"Constructor.\n\n Args:\n channel: A grpc.Channel.\n \"\"\"\n self.Crea...
ray-project__ray-7665
ray-project/ray
train
[Python] jsonschema included twice in setup.py requires list. <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? `jsonschema` is included twice in the Python package [setup.py `requires` list](https://github.com/ray-project/ray/blob/master/python/setup...
[ "python/setup.py" ]
[ "python/setup.py::<module>" ]
[ { "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]...
googleapis__google-cloud-python-603
googleapis/google-cloud-python
train
Add documentation for storage.Blob's special methods (contains, next, etc) Right now it's not really clear how to check for a key's existence (do I need to do if `Key('name') in bucket`? or just `'name' in bucket`? We need to make sure these special methods are documented with examples in the API docs for the Key clas...
[ "gcloud/storage/bucket.py" ]
[ "gcloud/storage/bucket.py::<module>" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "gcloud/credentials.py", "text": "gcloud/credentials.py\ndef get_credentials() # Gets credentials implicitly from the current environment.\ndef get_for_service_account_p12(client_email, private_key_path, scope=None) # ...
[ { "cid": "gcloud/credentials.py::get_credentials", "text": "gcloud/credentials.py::get_credentials\ndef get_credentials():\n \"\"\"Gets credentials implicitly from the current environment.\n\n .. note::\n You should not need to use this function directly. Instead, use the\n helper method :fu...
googleapis__google-cloud-python-4015
googleapis/google-cloud-python
train
Google cloud spanner client fails when reading large columns Consider following table: ``` CREATE TABLE big_arrays ( key INT64 NOT NULL, a_big_array ARRAY<TIMESTAMP> NOT NULL, ) PRIMARY KEY (key) ``` Which gets populated by 100 rows each containing a large array of 1000 timestamps. ``` from googl...
[ "spanner/google/cloud/spanner/streamed.py" ]
[ "spanner/google/cloud/spanner/streamed.py::<module>" ]
[ { "cid": "bigquery/google/cloud/bigquery/dbapi/cursor.py", "text": "bigquery/google/cloud/bigquery/dbapi/cursor.py\nclass Cursor # DB-API Cursor to Google BigQuery.\n def __init__(self, connection)\n def close(self) # No-op.\n def _set_description(self, schema) # Set description from schema.\n ...
[ { "cid": "bigquery/google/cloud/bigquery/dbapi/cursor.py::Cursor.__init__", "text": "bigquery/google/cloud/bigquery/dbapi/cursor.py::Cursor.__init__\n def __init__(self, connection):\n self.connection = connection\n self.description = None\n # Per PEP 249: The attribute is -1 in case...
ray-project__ray-9381
ray-project/ray
train
[tune] Handling exceptions for the analysis module when encountering nans Hi, after running some experiments with tune I was trying to get the best configuration/log dir using `get_best_config` and `get_best_logdir` from the analysis module. Unfortunately, I had some `nan` values in the metric I was measuring, and both...
[ "python/ray/tune/analysis/experiment_analysis.py" ]
[ "python/ray/tune/analysis/experiment_analysis.py::Analysis._retrieve_rows", "python/ray/tune/analysis/experiment_analysis.py::Analysis.get_best_config", "python/ray/tune/analysis/experiment_analysis.py::Analysis.get_best_logdir" ]
[ { "cid": "python/ray/tune/analysis/experiment_analysis.py", "text": "python/ray/tune/analysis/experiment_analysis.py\nclass Analysis # Analyze all results from a directory of experiments.\n def __init__(self, experiment_dir)\n def dataframe(self, metric=None, mode=None) # Returns a pandas.DataFrame ...
[ { "cid": "python/ray/tune/analysis/experiment_analysis.py::Analysis.__init__", "text": "python/ray/tune/analysis/experiment_analysis.py::Analysis.__init__\n def __init__(self, experiment_dir):\n experiment_dir = os.path.expanduser(experiment_dir)\n if not os.path.isdir(experiment_dir):\n ...
ray-project__ray-3711
ray-project/ray
train
[tune[ partial function cannot be registered as trainable ### System information - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Ubuntu 18.04 - **Ray installed from (source or binary)**: binary - **Ray version**: 0.6.1 - **Python version**: 3.7 - **Exact command to reproduce**: The following code...
[ "python/ray/tune/registry.py" ]
[ "python/ray/tune/registry.py::<module>", "python/ray/tune/registry.py::register_trainable" ]
[ { "cid": "doc/source/conf.py", "text": "doc/source/conf.py", "label": 0 }, { "cid": "python/ray/cloudpickle/cloudpickle.py", "text": "python/ray/cloudpickle/cloudpickle.py\ndef _make_cell_set_template_code() # Get the Python compiler to emit LOAD_FAST(arg); STORE_DEREF\n def inner(value)...
[ { "cid": "python/ray/cloudpickle/cloudpickle.py::_make_cell_set_template_code", "text": "python/ray/cloudpickle/cloudpickle.py::_make_cell_set_template_code\ndef _make_cell_set_template_code():\n \"\"\"Get the Python compiler to emit LOAD_FAST(arg); STORE_DEREF\n\n Notes\n -----\n In Python 3, w...
google__jax-509
google/jax
train
BatchNorm breaks for non-default axis values The current BatchNorm implementation breaks if the `axis` argument takes values where the missing axis is not the last one, e.g. `axis=(0, 2, 3)`, because the axes are dropped for `gamma` and `beta` and not restored later. I guess this can be fixed by removing this line: ht...
[ "jax/experimental/stax.py" ]
[ "jax/experimental/stax.py::BatchNorm.apply_fun", "jax/experimental/stax.py::BatchNorm.init_fun" ]
[ { "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`.\ndef xla_computation(fun, static_argnums=())\n def pv_like(x)\n def computat...
[ { "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...
docker__compose-2492
docker/compose
train
Stop warning about ".yaml" file extension. Currently compose outputs a warning when using extensions other than `.yml` for the config file: ``` WARNING: Please be aware that .yml is the expected extension in most cases, and using .yaml can cause compatibility issues in future. ``` However, the creators of YAML reques...
[ "compose/config/config.py" ]
[ "compose/config/config.py::get_default_config_files" ]
[ { "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:\...
Qiskit__qiskit-10622
Qiskit/qiskit
train
Create `layout` stage (trivial, dense, sabre, noise_adaptive) plugin Create a plugin for the builtin layout stage methods. One particular oddity for this stage is it's not just the straight methods, but also a default method will be needed. The default stage will integrate vf2layout (and initial layout too for level 1)...
[ "qiskit/transpiler/preset_passmanagers/builtin_plugins.py", "qiskit/transpiler/preset_passmanagers/level0.py", "qiskit/transpiler/preset_passmanagers/level1.py", "qiskit/transpiler/preset_passmanagers/level2.py", "qiskit/transpiler/preset_passmanagers/level3.py", "qiskit/transpiler/preset_passmanagers/plu...
[ "qiskit/transpiler/preset_passmanagers/builtin_plugins.py::<module>", "qiskit/transpiler/preset_passmanagers/builtin_plugins.py::DefaultSchedulingPassManager.pass_manager", "qiskit/transpiler/preset_passmanagers/level0.py::<module>", "qiskit/transpiler/preset_passmanagers/level0.py::level_0_pass_manager", "...
[ { "cid": "qiskit/compiler/transpiler.py", "text": "qiskit/compiler/transpiler.py\ndef transpile(circuits: _CircuitT, backend: Optional[Backend]=None, basis_gates: Optional[List[str]]=None, inst_map: Optional[List[InstructionScheduleMap]]=None, coupling_map: Optional[Union[CouplingMap, List[List[int]]]]=None...
[ { "cid": "qiskit/compiler/transpiler.py::transpile", "text": "qiskit/compiler/transpiler.py::transpile\ndef transpile( # pylint: disable=too-many-return-statements\n circuits: _CircuitT,\n backend: Optional[Backend] = None,\n basis_gates: Optional[List[str]] = None,\n inst_map: Optional[List[In...
pandas-dev__pandas-23402
pandas-dev/pandas
train
pd.DataFrame.expanding bug with axis = 1 ```python import pandas as pd import numpy as np df = pd.DataFrame(np.ones((10, 20))) df.expanding(3, axis = 1).sum() 0 1 2 3 4 5 6 7 8 9 10 11 12 13 \ 0 NaN NaN 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 10.0 10.0 10.0 10.0 ...
[ "pandas/core/window.py" ]
[ "pandas/core/window.py::Expanding._get_window" ]
[ { "cid": "asv_bench/benchmarks/groupby.py", "text": "asv_bench/benchmarks/groupby.py\nclass ApplyDictReturn\n def setup(self)\n def time_groupby_apply_dict_return(self)\nclass Apply\n def setup_cache(self)\n def time_scalar_function_multi_col(self, df)\n def time_scalar_function_single_col(se...
[ { "cid": "asv_bench/benchmarks/groupby.py::ApplyDictReturn.setup", "text": "asv_bench/benchmarks/groupby.py::ApplyDictReturn.setup\n def setup(self):\n self.labels = np.arange(1000).repeat(10)\n self.data = Series(np.random.randn(len(self.labels)))", "label": 0 }, { "cid": "asv_...
googleapis__google-cloud-python-1172
googleapis/google-cloud-python
train
Normalize module docstring patterns From https://github.com/GoogleCloudPlatform/gcloud-python/pull/1164/files#r40942738. ``` $ git grep "API wrapper" gcloud/bigquery/__init__.py:"""Google Cloud BigQuery API wrapper. gcloud/dns/__init__.py:"""Google Cloud DNS API wrapper. gcloud/pubsub/__init__.py:"""Google Cloud Pubsu...
[ "gcloud/bigquery/client.py", "gcloud/client.py", "gcloud/dns/client.py", "gcloud/pubsub/client.py", "gcloud/storage/client.py" ]
[ "gcloud/bigquery/client.py::<module>", "gcloud/client.py::<module>", "gcloud/dns/client.py::<module>", "gcloud/pubsub/client.py::<module>", "gcloud/storage/client.py::<module>" ]
[ { "cid": "gcloud/bigquery/__init__.py", "text": "gcloud/bigquery/__init__.py", "label": 0 }, { "cid": "gcloud/bigquery/client.py", "text": "gcloud/bigquery/client.py\nclass Client # Client to bundle configuration needed for API requests.\n def list_datasets(self, include_all=False, max_r...
[ { "cid": "gcloud/bigquery/client.py::Client.list_datasets", "text": "gcloud/bigquery/client.py::Client.list_datasets\n def list_datasets(self, include_all=False, max_results=None,\n page_token=None):\n \"\"\"List datasets for the project associated with this client.\n\n ...
docker__compose-2720
docker/compose
train
limit fig log if i create a container with fig and let it run and produce lots and lots of logs, when i execute: ``` fig logs ``` for the first time it can take minutes to print all the logs (this is because I am running some development application in debug mode). I would like to have a feature like with tail, where...
[ "compose/cli/log_printer.py", "compose/cli/main.py" ]
[ "compose/cli/log_printer.py::LogPrinter.__init__", "compose/cli/log_printer.py::LogPrinter._make_log_generators", "compose/cli/log_printer.py::build_log_generator", "compose/cli/log_printer.py::build_no_log_generator", "compose/cli/main.py::<module>", "compose/cli/main.py::TopLevelCommand.exec_command", ...
[ { "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...
google__jax-2561
google/jax
train
BatchNorm doesn't work with center or scale turned off BatchNorm raises TypeError when using without center or scale or both. Seems pretty straightforward to fix (e.x. as a workaround I've set beta to None `beta = None if not center else beta[ed]` if center is False, the same for gamma but there might be some better so...
[ "jax/experimental/stax.py" ]
[ "jax/experimental/stax.py::BatchNorm.apply_fun" ]
[ { "cid": "jax/experimental/optimizers.py", "text": "jax/experimental/optimizers.py\ndef optimizer(opt_maker) # Decorator to make an optimizer defined for arrays generalize to containers.\n def tree_opt_maker(*args, **kwargs)\n def tree_init(x0_tree)\n def tree_update(i, grad_tree, opt_stat...
[ { "cid": "jax/experimental/optimizers.py::optimizer", "text": "jax/experimental/optimizers.py::optimizer\ndef optimizer(opt_maker):\n \"\"\"Decorator to make an optimizer defined for arrays generalize to containers.\n\n With this decorator, you can write init, update, and get_params functions that\n each...
PrefectHQ__prefect-47
PrefectHQ/prefect
train
Bug: groups and tags don't set correctly after changing to _private context variables Missed these attributes when changing context to use a private attribute -- need to fix + add tests.
[ "prefect/core/task.py", "prefect/utilities/tasks.py" ]
[ "prefect/core/task.py::Task.__init__", "prefect/utilities/tasks.py::<module>", "prefect/utilities/tasks.py::group", "prefect/utilities/tasks.py::tags" ]
[ { "cid": "prefect/__init__.py", "text": "prefect/__init__.py", "label": 0 }, { "cid": "prefect/client.py", "text": "prefect/client.py\nclass AuthorizationError\nclass Client # Client for the Prefect API.\n def __init__(self, api_server=None, graphql_server=None, token=None)\n def _get...
[ { "cid": "prefect/client.py::Client.__init__", "text": "prefect/client.py::Client.__init__\n def __init__(self, api_server=None, graphql_server=None, token=None):\n if api_server is None:\n api_server = prefect.config.get(\"prefect\", \"api_server\")\n if not api_server:\n ...
pyca__cryptography-2606
pyca/cryptography
train
Set a minimum version on setuptools Apparently it fails in hilarious ways with very very old setuptools (or even distribute). We should set a floor in `setup.py`. @dstufft do you have opinions on what a reasonable floor would be?
[ "setup.py" ]
[ "setup.py::<module>" ]
[ { "cid": "docs/cryptography-docs.py", "text": "docs/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": "setup.py...
[ { "cid": "docs/cryptography-docs.py::HazmatDirective.run", "text": "docs/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 ad = make_admonition(\n ...
googleapis__google-cloud-python-276
googleapis/google-cloud-python
train
datastore: default to empty dataset When working with datasets, the Datastore backend will normalize any empty datasets to the dataset of the calling application. This should be preferred to prepending "s~" to dataset ids as that is not always a valid operation. datastore: default to empty dataset When working with da...
[ "gcloud/datastore/entity.py", "gcloud/datastore/key.py" ]
[ "gcloud/datastore/entity.py::<module>", "gcloud/datastore/entity.py::Entity.__init__", "gcloud/datastore/entity.py::Entity._must_key", "gcloud/datastore/entity.py::Entity.dataset", "gcloud/datastore/entity.py::Entity.delete", "gcloud/datastore/entity.py::Entity.from_key", "gcloud/datastore/entity.py::En...
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "gcloud/connection.py", "text": "gcloud/connection.py\nclass Connection # A generic connection to Google Cloud Platform.\n def __init__(self, credentials=None) # :type credentials: :class:`oauth2client.client.OAuth2...
[ { "cid": "gcloud/connection.py::Connection.__init__", "text": "gcloud/connection.py::Connection.__init__\n def __init__(self, credentials=None):\n \"\"\"\n :type credentials: :class:`oauth2client.client.OAuth2Credentials`\n :param credentials: The OAuth2 Credentials to use for this c...
pantsbuild__pants-5386
pantsbuild/pants
train
Using pantsd in multiple workspaces results in watchman crashes If you use `pantsd` in multiple workspaces, the startup of the daemon in one workspace will cause watchman in the other workspace to crash with: ``` W1218 11:12:33.162800 41529 pants_daemon.py:50] Traceback (most recent call last): W1218 11:12:33.163083...
[ "src/python/pants/option/global_options.py", "src/python/pants/pantsd/watchman.py" ]
[ "src/python/pants/option/global_options.py::GlobalOptionsRegistrar.register_bootstrap_options", "src/python/pants/pantsd/watchman.py::Watchman.__init__", "src/python/pants/pantsd/watchman.py::Watchman._construct_cmd", "src/python/pants/pantsd/watchman.py::Watchman.launch" ]
[ { "cid": "src/python/pants/backend/project_info/tasks/idea_gen.py", "text": "src/python/pants/backend/project_info/tasks/idea_gen.py\nclass IdeaGen # Create an IntelliJ IDEA project from the given targets.\n def register_options(cls, register)\n def __init__(self, *args, **kwargs)\n def _maven_tar...
[ { "cid": "src/python/pants/backend/project_info/tasks/idea_gen.py::IdeaGen.register_options", "text": "src/python/pants/backend/project_info/tasks/idea_gen.py::IdeaGen.register_options\n @classmethod\n def register_options(cls, register):\n super(IdeaGen, cls).register_options(register)\n register('...
Lightning-AI__lightning-2185
Lightning-AI/lightning
train
Logging dominating the training time <!-- ### 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/trainer/__init__.py", "pytorch_lightning/trainer/trainer.py" ]
[ "pytorch_lightning/trainer/__init__.py::<module>", "pytorch_lightning/trainer/trainer.py::Trainer.__init__" ]
[ { "cid": "pytorch_lightning/trainer/__init__.py", "text": "pytorch_lightning/trainer/__init__.py", "label": 1 }, { "cid": "pytorch_lightning/trainer/trainer.py", "text": "pytorch_lightning/trainer/trainer.py\nclass Trainer\n def __init__(self, logger: Union[LightningLoggerBase, Iterable[L...
[ { "cid": "pytorch_lightning/trainer/trainer.py::Trainer.__init__", "text": "pytorch_lightning/trainer/trainer.py::Trainer.__init__\n def __init__(\n self,\n logger: Union[LightningLoggerBase, Iterable[LightningLoggerBase], bool] = True,\n checkpoint_callback: Union[ModelCheckpoint, b...
ipython__ipython-1687
ipython/ipython
train
Parallel controller failing with Pymongo 2.2 [Test failure](https://jenkins.shiningpanda.com/ipython/job/ipython-mac/94/testReport/junit/nose.failure/Failure/runTest/) The mongodb backend for the controller tries to import from `pymongo.binary`, but this no longer exists in 2.2; it should import from `bson.binary` ins...
[ "IPython/parallel/controller/mongodb.py" ]
[ "IPython/parallel/controller/mongodb.py::<module>" ]
[ { "cid": "IPython/parallel/apps/ipcontrollerapp.py", "text": "IPython/parallel/apps/ipcontrollerapp.py\n#!/usr/bin/env python\n# encoding: utf-8\n\"\"\"\nThe IPython controller application.\n\nAuthors:\n\n* Brian Granger\n* MinRK\n\n\"\"\"\n\n#----------------------------------------------------------------...
[ { "cid": "IPython/parallel/controller/dictdb.py::CompositeFilter.__init__", "text": "IPython/parallel/controller/dictdb.py::CompositeFilter.__init__\n def __init__(self, dikt):\n self.tests = []\n self.values = []\n for key, value in dikt.iteritems():\n self.tests.append(f...
docker__compose-4333
docker/compose
train
Add option to resolve tags to hashes for config command **Description** Docker 1.13 adds the option to deploy stacks using Docker Compose version 3 files in addition to Distributed Application Bundle (DAB) files. When `docker-compose bundle` is used to produce a DAB, it fetches image digests and replaces image tags ...
[ "compose/cli/main.py", "compose/config/serialize.py" ]
[ "compose/cli/main.py::<module>", "compose/cli/main.py::TopLevelCommand.bundle", "compose/cli/main.py::TopLevelCommand.config", "compose/config/serialize.py::denormalize_config", "compose/config/serialize.py::denormalize_service_dict", "compose/config/serialize.py::serialize_config" ]
[ { "cid": "compose/bundle.py", "text": "compose/bundle.py\nclass NeedsPush\n def __init__(self, image_name)\nclass NeedsPull\n def __init__(self, image_name, service_name)\nclass MissingDigests\n def __init__(self, needs_push, needs_pull)\ndef serialize_bundle(config, image_digests)\ndef get_image_d...
[ { "cid": "compose/bundle.py::NeedsPush.__init__", "text": "compose/bundle.py::NeedsPush.__init__\n def __init__(self, image_name):\n self.image_name = image_name", "label": 0 }, { "cid": "compose/bundle.py::NeedsPull.__init__", "text": "compose/bundle.py::NeedsPull.__init__\n de...
conan-io__conan-9360
conan-io/conan
train
[question] Is new cmake_layout compatible with cpp_info.components ? Hi, I've been using CMakeToolchain for a while with the CMake build helper that comes with it. But after updating today I saw that `CMake` build helper does not accept a `build_folder` parameter anymore. Looking at why it happened I arrived at htt...
[ "conans/client/installer.py" ]
[ "conans/client/installer.py::BinaryInstaller._call_package_info" ]
[ { "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...
Lightning-AI__lightning-2842
Lightning-AI/lightning
train
More granular callbacks ## 🚀 Make callback system more granular ### Motivation I am currently implementing #765 (make progress bar into a callback) and I need additional callback methods to do this. ### Pitch introduce these new callback methods: - `on_train_batch_start` (currently named `on_batch_start...
[ "pytorch_lightning/callbacks/base.py", "pytorch_lightning/callbacks/lr_logger.py", "pytorch_lightning/callbacks/progress.py", "pytorch_lightning/core/hooks.py", "pytorch_lightning/core/lightning.py", "pytorch_lightning/trainer/callback_hook.py", "pytorch_lightning/trainer/lr_finder.py", "pytorch_light...
[ "pytorch_lightning/callbacks/base.py::<module>", "pytorch_lightning/callbacks/lr_logger.py::LearningRateLogger.on_batch_start", "pytorch_lightning/callbacks/progress.py::<module>", "pytorch_lightning/callbacks/progress.py::ProgressBar.on_batch_end", "pytorch_lightning/callbacks/progress.py::ProgressBarBase....
[ { "cid": "pytorch_lightning/callbacks/base.py", "text": "pytorch_lightning/callbacks/base.py\nclass Callback # Abstract base class used to build new callbacks.\n def setup(self, trainer, stage: str) # Called when fit or test begins\n def teardown(self, trainer, stage: str) # Called when fit or test...
[ { "cid": "pytorch_lightning/callbacks/base.py::Callback.setup", "text": "pytorch_lightning/callbacks/base.py::Callback.setup\n def setup(self, trainer, stage: str):\n \"\"\"Called when fit or test begins\"\"\"\n pass", "label": 0 }, { "cid": "pytorch_lightning/callbacks/base.py:...
Lightning-AI__lightning-1104
Lightning-AI/lightning
train
Support IterableDatasets for validation and test, not just train set [blocked by #953] ## 🚀 Feature Currently Lightning supports `IterableDatasets` only in the training set (see [code](https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/trainer/data_loading.py#L177)). This makes them s...
[ "pytorch_lightning/trainer/data_loading.py", "pytorch_lightning/trainer/evaluation_loop.py", "pytorch_lightning/trainer/training_loop.py" ]
[ "pytorch_lightning/trainer/data_loading.py::<module>", "pytorch_lightning/trainer/data_loading.py::TrainerDataLoadingMixin._percent_range_check", "pytorch_lightning/trainer/data_loading.py::TrainerDataLoadingMixin.auto_add_sampler", "pytorch_lightning/trainer/data_loading.py::TrainerDataLoadingMixin.determine...
[ { "cid": "pytorch_lightning/core/lightning.py", "text": "pytorch_lightning/core/lightning.py\nclass LightningModule\n def __init__(self, *args, **kwargs)\n def print(self, *args, **kwargs) # Prints only from process 0. Use this in any distributed mode to log only once\n def forward(self, *args, **...
[ { "cid": "pytorch_lightning/core/lightning.py::LightningModule.__init__", "text": "pytorch_lightning/core/lightning.py::LightningModule.__init__\n def __init__(self, *args, **kwargs):\n super(LightningModule, self).__init__(*args, **kwargs)\n\n #: Current dtype\n self.dtype = torch.F...
googleapis__google-cloud-python-371
googleapis/google-cloud-python
train
Key name w/ slash quoted twice during upload The fix for #354 in #364 mistakenly quotes the `Key.name` when adding it the the `query_params` for the upload API call, but those params are already going to be quoted inside `Connection.make_api_request` (by way of `urllib.urlencode`).
[ "gcloud/storage/key.py" ]
[ "gcloud/storage/key.py::Key.upload_from_file" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "gcloud/datastore/__init__.py", "text": "gcloud/datastore/__init__.py\ndef get_connection(client_email, private_key_path) # Shortcut method to establish a connection to the Cloud Datastore.\ndef get_dataset(dataset_id, ...
[ { "cid": "gcloud/datastore/__init__.py::get_connection", "text": "gcloud/datastore/__init__.py::get_connection\ndef get_connection(client_email, private_key_path):\n \"\"\"Shortcut method to establish a connection to the Cloud Datastore.\n\n Use this if you are going to access several datasets\n wi...
conan-io__conan-9596
conan-io/conan
train
Default ``cmake_layout()`` source folder This layout is assuming that the main library ``CMakeLists.txt`` is inside a ``src`` subfolder in the repo. This is probably not the most common user layout, in which they will have a CMakeLists.txt in the root of the folder: - How to model this? - Should we change the ``...
[ "conan/tools/layout/__init__.py", "conans/assets/templates/new_v2_cmake.py" ]
[ "conan/tools/layout/__init__.py::cmake_layout", "conans/assets/templates/new_v2_cmake.py::<module>", "conans/assets/templates/new_v2_cmake.py::get_cmake_exe_files", "conans/assets/templates/new_v2_cmake.py::get_cmake_lib_files" ]
[ { "cid": "conan/tools/layout/__init__.py", "text": "conan/tools/layout/__init__.py\ndef cmake_layout(conanfile, generator=None)\ndef clion_layout(conanfile)\ndef vs_layout(conanfile)\nclass LayoutPackager\n def __init__(self, conanfile)\n def package(self)\n def _package_cppinfo(self, origin_name, ...
[ { "cid": "conan/tools/layout/__init__.py::cmake_layout", "text": "conan/tools/layout/__init__.py::cmake_layout\ndef cmake_layout(conanfile, generator=None):\n gen = conanfile.conf[\"tools.cmake.cmaketoolchain:generator\"] or generator\n if gen:\n multi = \"Visual\" in gen or \"Xcode\" in gen or...
Lightning-AI__lightning-1797
Lightning-AI/lightning
train
Customizing hparams after loading checkpoint ## ❓ Questions and Help ### Before asking: 1. search the issues. 2. search the docs. #### What is your question? I'm wondering what the best practice for loading a model with different hparams than what is stored in the checkpoint? I realize I could jus...
[ "pytorch_lightning/core/lightning.py", "pytorch_lightning/core/saving.py" ]
[ "pytorch_lightning/core/lightning.py::<module>", "pytorch_lightning/core/lightning.py::LightningModule.load_from_checkpoint", "pytorch_lightning/core/saving.py::<module>" ]
[ { "cid": "pytorch_lightning/core/lightning.py", "text": "pytorch_lightning/core/lightning.py\nclass LightningModule\n def __init__(self, *args, **kwargs)\n def print(self, *args, **kwargs) # Prints only from process 0. Use this in any distributed mode to log only once.\n def forward(self, *args, *...
[ { "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-9393
wagtail/wagtail
train
Feature request: page editor minimap ### Is your proposal related to a problem? Long page editing UIs are tedious to navigate. ### Describe the solution you'd like The minimap is a proposed feature from the [page editor 2022](https://github.com/wagtail/wagtail/discussions/7739) project, to help with navigation...
[ "wagtail/admin/views/home.py" ]
[ "wagtail/admin/views/home.py::icons" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py\ndef setup(app)", "label": 0 }, { "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=Fal...
[ { "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/admin/templatetags/wagtailadmin_tags.py::breadcrumbs", "text": "wagtail/admin/templatetags/wagtailadmin_tags.py::breadcrumbs\n@register.inclu...
google__jax-1972
google/jax
train
Nit: lax.conv_general_dilated does not support 0D-convolution AFAIK 0-dimensional convolution should reduce to a fully-connected layer, but fails with the following example and error. While this is not a practically useful scenario, degenerate cases like these could be useful for testing. ``` from jax import lax imp...
[ "jax/lax/lax.py" ]
[ "jax/lax/lax.py::conv_shape_tuple" ]
[ { "cid": "jax/experimental/stax.py", "text": "jax/experimental/stax.py\ndef Dense(out_dim, W_init=glorot_normal(), b_init=normal()) # Layer constructor function for a dense (fully-connected) layer.\n def init_fun(rng, input_shape)\n def apply_fun(params, inputs, **kwargs)\ndef GeneralConv(dimension_n...
[ { "cid": "jax/experimental/stax.py::Dense", "text": "jax/experimental/stax.py::Dense\ndef Dense(out_dim, W_init=glorot_normal(), b_init=normal()):\n \"\"\"Layer constructor function for a dense (fully-connected) layer.\"\"\"\n def init_fun(rng, input_shape):\n output_shape = input_shape[:-1] + (out_dim...
numpy__numpy-3244
numpy/numpy
train
2to3 run `zip` fixer zip is now an iterator. This is simiar to the filter and map changers.
[ "doc/sphinxext/numpydoc/compiler_unparse.py", "numpy/lib/_iotools.py", "numpy/lib/npyio.py", "numpy/ma/mrecords.py", "tools/py3tool.py" ]
[ "doc/sphinxext/numpydoc/compiler_unparse.py::<module>", "doc/sphinxext/numpydoc/compiler_unparse.py::UnparseCompilerAst._AugAssign", "doc/sphinxext/numpydoc/compiler_unparse.py::UnparseCompilerAst._Bitand", "doc/sphinxext/numpydoc/compiler_unparse.py::UnparseCompilerAst._Bitor", "numpy/lib/_iotools.py::easy...
[ { "cid": "doc/sphinxext/numpydoc/compiler_unparse.py", "text": "doc/sphinxext/numpydoc/compiler_unparse.py\ndef unparse(ast, single_line_functions=False)\nclass UnparseCompilerAst # Methods in this class recursively traverse an AST and\n def __init__(self, tree, file=sys.stdout, single_line_functions=Fa...
[ { "cid": "doc/sphinxext/numpydoc/compiler_unparse.py::unparse", "text": "doc/sphinxext/numpydoc/compiler_unparse.py::unparse\ndef unparse(ast, single_line_functions=False):\n s = StringIO()\n UnparseCompilerAst(ast, s, single_line_functions)\n return s.getvalue().lstrip()", "label": 0 }, { ...
numpy__numpy-6543
numpy/numpy
train
BUG: ma: Several functions in the ma module return None when given a scalar. Here's an example, using `ma.atleast_1d`: ``` In [4]: np.__version__ Out[4]: '1.8.0.dev-31a5501' ``` When given a scalar, the regular version of `atleast_1d` returns an array: ``` In [5]: x = np.atleast_1d(1.0) In [6]: x Out[6]: array([ 1....
[ "numpy/ma/extras.py" ]
[ "numpy/ma/extras.py::_fromnxfunction.__call__" ]
[ { "cid": "numpy/ma/extras.py", "text": "numpy/ma/extras.py\ndef issequence(seq) # Is seq a sequence (ndarray, list or tuple)?\ndef count_masked(arr, axis=None) # Count the number of masked elements along the given axis.\ndef masked_all(shape, dtype=float) # Empty masked array with all elements masked.\nd...
[ { "cid": "numpy/ma/extras.py::issequence", "text": "numpy/ma/extras.py::issequence\ndef issequence(seq):\n \"\"\"\n Is seq a sequence (ndarray, list or tuple)?\n\n \"\"\"\n if isinstance(seq, (ndarray, tuple, list)):\n return True\n return False", "label": 0 }, { "cid": "nu...
conan-io__conan-4317
conan-io/conan
train
Hard to debug error ERROR: Expecting value: line 1 column 1 (char 0) Hi, first of all i want to congratulate you guys on this great project that is conan. I performed some conan copy to rename the owner of the package on custom packages that some have sources other get the sources from git and so on, they all are di...
[ "conans/client/rest/rest_client_common.py", "conans/server/rest/multipart_encoder.py", "conans/server/rest/server.py", "conans/server/service/mime.py" ]
[ "conans/client/rest/rest_client_common.py::RestCommonMethods.get_json", "conans/server/rest/multipart_encoder.py::<module>", "conans/server/rest/server.py::<module>", "conans/server/service/mime.py::get_mime_type" ]
[ { "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...
pantsbuild__pants-4686
pantsbuild/pants
train
Support invalidation generically via an option Currently, manual invalidation is only supported via `./pants invalidated`. This is problematic for a few reasons: 1. "invalidate" is not a verb in pants user-space, it's only one we use internally in the codebase 2. The `invalidate` goal acts globally, invalidating all ...
[ "contrib/kythe/src/python/pants/contrib/kythe/tasks/index_java.py", "src/python/pants/cache/cache_setup.py", "src/python/pants/core_tasks/invalidate.py", "src/python/pants/invalidation/build_invalidator.py", "src/python/pants/invalidation/cache_manager.py", "src/python/pants/task/task.py" ]
[ "contrib/kythe/src/python/pants/contrib/kythe/tasks/index_java.py::IndexJava.execute", "contrib/kythe/src/python/pants/contrib/kythe/tasks/index_java.py::IndexJava.register_options", "src/python/pants/cache/cache_setup.py::<module>", "src/python/pants/cache/cache_setup.py::CacheFactory.read_cache_available", ...
[ { "cid": "contrib/kythe/src/python/pants/contrib/kythe/tasks/index_java.py", "text": "contrib/kythe/src/python/pants/contrib/kythe/tasks/index_java.py\nclass IndexJava\n def implementation_version(cls)\n def product_types(cls)\n def prepare(cls, options, round_manager)\n def register_options(cls...
[ { "cid": "contrib/kythe/src/python/pants/contrib/kythe/tasks/index_java.py::IndexJava.implementation_version", "text": "contrib/kythe/src/python/pants/contrib/kythe/tasks/index_java.py::IndexJava.implementation_version\n @classmethod\n def implementation_version(cls):\n # Bump this version to invalidat...
googleapis__google-cloud-python-2390
googleapis/google-cloud-python
train
Make sure our 2 years old license headers are in line with Came up because of #2370. Related to #2371. To paraphrase @rimey: The Apache license header given in our internal instructions differs from the one used in this project. /cc @rimey @jgeewax
[ "docs/bigquery_snippets.py", "docs/conf.py", "docs/pubsub_snippets.py", "google/__init__.py", "google/cloud/__init__.py", "google/cloud/_helpers.py", "google/cloud/bigquery/__init__.py", "google/cloud/bigquery/_helpers.py", "google/cloud/bigquery/client.py", "google/cloud/bigquery/connection.py", ...
[ "docs/bigquery_snippets.py::<module>", "docs/conf.py::<module>", "docs/pubsub_snippets.py::<module>", "google/__init__.py::<module>", "google/cloud/__init__.py::<module>", "google/cloud/_helpers.py::<module>", "google/cloud/bigquery/__init__.py::<module>", "google/cloud/bigquery/_helpers.py::<module>"...
[ { "cid": "docs/bigquery_snippets.py", "text": "docs/bigquery_snippets.py\ndef snippet(func) # Mark ``func`` as a snippet example function.\ndef _millis()\nclass _CloseOnDelete\n def __init__(self, wrapped)\n def delete(self)\ndef client_list_datasets(client, _) # List datasets for a project.\n de...
[ { "cid": "docs/bigquery_snippets.py::snippet", "text": "docs/bigquery_snippets.py::snippet\ndef snippet(func):\n \"\"\"Mark ``func`` as a snippet example function.\"\"\"\n func._snippet = True\n return func", "label": 0 }, { "cid": "docs/bigquery_snippets.py::_millis", "text": "docs...
Lightning-AI__lightning-1724
Lightning-AI/lightning
train
Also update progress_bar in training_epoch_end ## 🚀 Feature [PR 1357](https://github.com/PyTorchLightning/pytorch-lightning/pull/1357) implements training_epoch_end to log metrics. The comments in the issue suggest that it should behave like validation_epoch_end, but the PR only replicates the callbacks and metric lo...
[ "pytorch_lightning/core/lightning.py", "pytorch_lightning/trainer/training_loop.py" ]
[ "pytorch_lightning/core/lightning.py::LightningModule.training_epoch_end", "pytorch_lightning/trainer/training_loop.py::TrainerTrainLoopMixin.run_training_epoch" ]
[ { "cid": "pl_examples/__init__.py", "text": "pl_examples/__init__.py", "label": 0 }, { "cid": "pytorch_lightning/callbacks/progress.py", "text": "pytorch_lightning/callbacks/progress.py\nclass ProgressBarBase # The base class for progress bars in Lightning. It is a :class:`~pytorch_lightnin...
[ { "cid": "pytorch_lightning/callbacks/progress.py::ProgressBarBase.__init__", "text": "pytorch_lightning/callbacks/progress.py::ProgressBarBase.__init__\n def __init__(self):\n\n self._trainer = None\n self._train_batch_idx = 0\n self._val_batch_idx = 0\n self._test_batch_idx ...
Qiskit__qiskit-989
Qiskit/qiskit
train
Changing style in matplotlib circuit_drawer changes the circuit layout <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Informations - **Qiskit Terra version**: current master - **Python version**: 3.7 - **Operating syst...
[ "qiskit/tools/visualization/_circuit_visualization.py" ]
[ "qiskit/tools/visualization/_circuit_visualization.py::<module>", "qiskit/tools/visualization/_circuit_visualization.py::MatplotlibDrawer.parse_circuit", "qiskit/tools/visualization/_circuit_visualization.py::qx_color_scheme" ]
[ { "cid": "doc/conf.py", "text": "doc/conf.py\ndef remove_module_docstring(app, what, name, obj, options, lines)\ndef setup(app)", "label": 0 }, { "cid": "examples/python/using_qiskit_terra_level_1.py", "text": "examples/python/using_qiskit_terra_level_1.py", "label": 0 }, { "cid"...
[ { "cid": "doc/conf.py::remove_module_docstring", "text": "doc/conf.py::remove_module_docstring\ndef remove_module_docstring(app, what, name, obj, options, lines):\n if name.startswith('qiskit.qasm._qasmlexer.QasmLexer.t_') and lines:\n lines[0] = u'Token matching: ``%s``' % lines[0]", "label":...
pantsbuild__pants-11400
pantsbuild/pants
train
Ctrl+C delayed when pantsd is disabled #11223 broke `Ctrl+C` when `pantsd` is disabled, because we no longer explicitly poll the Python code inside the `Scheduler::execute` loop.
[ "src/python/pants/base/exception_sink.py" ]
[ "src/python/pants/base/exception_sink.py::<module>", "src/python/pants/base/exception_sink.py::SignalHandler.handle_sigint", "src/python/pants/base/exception_sink.py::SignalHandler.handle_sigquit", "src/python/pants/base/exception_sink.py::SignalHandler.handle_sigterm" ]
[ { "cid": "src/python/pants/base/exception_sink.py", "text": "src/python/pants/base/exception_sink.py\nclass SignalHandler # A specification for how to handle a fixed set of nonfatal signals.\n def signal_handler_mapping(self) # A dict mapping (signal number) -> (a method handling the signal).\n def ...
[ { "cid": "src/python/pants/base/exception_sink.py::SignalHandler.signal_handler_mapping", "text": "src/python/pants/base/exception_sink.py::SignalHandler.signal_handler_mapping\n @property\n def signal_handler_mapping(self) -> Dict[signal.Signals, Callable]:\n \"\"\"A dict mapping (signal numbe...
dagster-io__dagster-6986
dagster-io/dagster
train
computing config for a partitioned asset job fails when it includes an asset downstream of a non-partitioned asset This test fails: ``` def test_access_partition_keys_from_context_only_one_asset_partitioned(): upstream_partitions_def = StaticPartitionsDefinition(["a", "b", "c"]) class MyIOManager(IOMana...
[ "python_modules/dagster/dagster/core/asset_defs/assets_job.py" ]
[ "python_modules/dagster/dagster/core/asset_defs/assets_job.py::build_job_partitions_from_assets.run_config_for_partition_fn" ]
[ { "cid": "examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/sensors/sensors.py", "text": "examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/sensors/sensors.py\ndef process_file(context)\ndef log_file_job()\ndef my_directory_sensor()\ndef my_running_sensor()\...
[ { "cid": "examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/sensors/sensors.py::process_file", "text": "examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/sensors/sensors.py::process_file\n@op(config_schema={\"filename\": str})\ndef process_file(context):\n ...
ray-project__ray-4469
ray-project/ray
train
[tune] EXAMPLE DOESN'T RUN only show failing information from two examples: mnist_pytorch.py and tune_mnist_keras.py <!-- General questions should be asked on the mailing list ray-dev@googlegroups.com. Questions about how to use Ray should be asked on [StackOverflow](https://stackoverflow.com/questions/tagged/ray). ...
[ "python/ray/tune/examples/mnist_pytorch.py", "python/ray/tune/examples/mnist_pytorch_trainable.py", "python/ray/tune/examples/tune_mnist_keras.py" ]
[ "python/ray/tune/examples/mnist_pytorch.py::<module>", "python/ray/tune/examples/mnist_pytorch_trainable.py::<module>", "python/ray/tune/examples/tune_mnist_keras.py::<module>" ]
[ { "cid": "python/ray/actor.py", "text": "python/ray/actor.py\ndef compute_actor_handle_id(actor_handle_id, num_forks) # Deterministically compute an actor handle ID.\ndef compute_actor_handle_id_non_forked(actor_handle_id, current_task_id) # Deterministically compute an actor handle ID in the non-forked c...
[ { "cid": "python/ray/actor.py::compute_actor_handle_id", "text": "python/ray/actor.py::compute_actor_handle_id\ndef compute_actor_handle_id(actor_handle_id, num_forks):\n \"\"\"Deterministically compute an actor handle ID.\n\n A new actor handle ID is generated when it is forked from another actor\n ...
pyca__cryptography-3638
pyca/cryptography
train
Update release automation for new wheel builder Once #3636 is merged we need to update the release automation to trigger the new wheel builder and download the artifacts.
[ "release.py" ]
[ "release.py::<module>", "release.py::release" ]
[ { "cid": "docs/conf.py", "text": "docs/conf.py", "label": 0 }, { "cid": "release.py", "text": "release.py\ndef run(*args, **kwargs)\ndef wait_for_build_completed(session)\ndef download_artifacts(session)\ndef release(version) # ``version`` should be a string like '0.4' or '1.0'.", "labe...
[ { "cid": "release.py::run", "text": "release.py::run\ndef run(*args, **kwargs):\n kwargs.setdefault(\"stderr\", subprocess.STDOUT)\n subprocess.check_output(list(args), **kwargs)", "label": 0 }, { "cid": "release.py::wait_for_build_completed", "text": "release.py::wait_for_build_comple...
conan-io__conan-13841
conan-io/conan
train
[bug] In the CMakeDeps Generator IMPORTED_LOCATION is overridden by IMPORTED_LOCATION${config_suffix} ### Environment details * Operating System+version: Windows 10 * Compiler+version: MSVC 19 * Conan version: 2.0.2 * Python version: 3.10 ### Steps to reproduce 1. Download a dependency (e.g. thrift) with ...
[ "conan/tools/cmake/cmakedeps/templates/macros.py" ]
[ "conan/tools/cmake/cmakedeps/templates/macros.py::MacrosTemplate.template" ]
[ { "cid": "conan/internal/api/new/cmake_lib.py", "text": "conan/internal/api/new/cmake_lib.py", "label": 0 }, { "cid": "conan/tools/cmake/cmakedeps/templates/config.py", "text": "conan/tools/cmake/cmakedeps/templates/config.py\nclass ConfigTemplate\n def filename(self)\n def context(sel...
[ { "cid": "conan/tools/cmake/cmakedeps/templates/config.py::ConfigTemplate.filename", "text": "conan/tools/cmake/cmakedeps/templates/config.py::ConfigTemplate.filename\n @property\n def filename(self):\n if self.generating_module:\n return \"Find{}.cmake\".format(self.file_name)\n ...
gitpython-developers__GitPython-1224
gitpython-developers/GitPython
train
GitCommand missing stderr With GitPython 3.1.14 `GitCommandError`, for failed clones would pass on the captured stderr output into its `stderr` attribute. With 3.1.15 this contains the empty string instead. This was caught by this unit test: https://github.com/tomtom-international/hopic/blob/9a35520388f8109ccff6a894...
[ "git/repo/base.py" ]
[ "git/repo/base.py::Repo._clone" ]
[ { "cid": "git/cmd.py", "text": "git/cmd.py\ndef handle_process_output(process, stdout_handler, stderr_handler, finalizer=None, decode_streams=True) # Registers for notifications to learn that process output is ready to read, and d\n def pump_stream(cmdline, name, stream, is_decode, handler)\ndef dashify...
[ { "cid": "git/cmd.py::handle_process_output", "text": "git/cmd.py::handle_process_output\ndef handle_process_output(process, stdout_handler, stderr_handler,\n finalizer=None, decode_streams=True):\n \"\"\"Registers for notifications to learn that process output is ready to read, ...
pandas-dev__pandas-24547
pandas-dev/pandas
train
(row) Index Name with to_html(header=False) is not displayed #### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np df = pd.DataFrame(np.zeros((2, 2), dtype=int)) df.index.name = 'index.name' df.to_html(header=False) ``` <table border="1" class="dataframe"> <...
[ "pandas/io/formats/html.py" ]
[ "pandas/io/formats/html.py::<module>", "pandas/io/formats/html.py::HTMLFormatter._write_header", "pandas/io/formats/html.py::HTMLFormatter.write_style" ]
[ { "cid": "asv_bench/benchmarks/io/stata.py", "text": "asv_bench/benchmarks/io/stata.py\nclass Stata\n def setup(self, convert_dates)\n def time_read_stata(self, convert_dates)\n def time_write_stata(self, convert_dates)", "label": 0 }, { "cid": "pandas/io/formats/html.py", "text": "...
[ { "cid": "asv_bench/benchmarks/io/stata.py::Stata.setup", "text": "asv_bench/benchmarks/io/stata.py::Stata.setup\n def setup(self, convert_dates):\n self.fname = '__test__.dta'\n N = 100000\n C = 5\n self.df = DataFrame(np.random.randn(N, C),\n colum...
Lightning-AI__lightning-2565
Lightning-AI/lightning
train
Can't use None (anymore) in checkpoint_callback ## 🐛 Bug using None in checkpoint_callback now errors out ``` -- Process 0 terminated with the following error: Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) ...
[ "pytorch_lightning/trainer/distrib_data_parallel.py", "pytorch_lightning/trainer/trainer.py" ]
[ "pytorch_lightning/trainer/distrib_data_parallel.py::<module>", "pytorch_lightning/trainer/distrib_data_parallel.py::TrainerDDPMixin.ddp_train", "pytorch_lightning/trainer/distrib_data_parallel.py::TrainerDDPMixin.save_spawn_weights", "pytorch_lightning/trainer/trainer.py::<module>", "pytorch_lightning/trai...
[ { "cid": "pytorch_lightning/trainer/__init__.py", "text": "pytorch_lightning/trainer/__init__.py", "label": 0 }, { "cid": "pytorch_lightning/trainer/distrib_data_parallel.py", "text": "pytorch_lightning/trainer/distrib_data_parallel.py\nclass TrainerDDPMixin\n def is_global_zero(self) # ...
[ { "cid": "pytorch_lightning/trainer/distrib_data_parallel.py::TrainerDDPMixin.is_global_zero", "text": "pytorch_lightning/trainer/distrib_data_parallel.py::TrainerDDPMixin.is_global_zero\n @property\n @abstractmethod\n def is_global_zero(self) -> bool:\n \"\"\"Warning: this is just empty she...
conan-io__conan-492
conan-io/conan
train
ConfigureEnvironment overwrites flags instead of augmenting C/CPPFLAGS mainly. Consider also the possibility to add UI so the user could add easily their own flags to the ConfigureEnvironment. Initially reported by @tru
[ "conans/client/configure_environment.py" ]
[ "conans/client/configure_environment.py::ConfigureEnvironment.command_line" ]
[ { "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 Command # A single command of the conan application, with...
[ { "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...
jupyterlab__jupyterlab-5196
jupyterlab/jupyterlab
train
Upgrading JupyterLab to 0.34.1 causes crash on startup I tried to update the version of Jupyter Lab with conda, and after installing 0.34.1. the application does not start anymore, with the following error message appearing after any jupyter lab command: ``` >>> jupyter lab Traceback (most recent call last): Fi...
[ "jupyterlab/commands.py" ]
[ "jupyterlab/commands.py::<module>", "jupyterlab/commands.py::_AppHandler._get_extensions_in_dir", "jupyterlab/commands.py::_AppHandler._get_package_template", "jupyterlab/commands.py::_AppHandler._list_extensions" ]
[ { "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 user settings directory.\ndef get_workspaces_dir() # Get the configured JupyterLab workspaces directory.\ndef get_app_dir()...
[ { "cid": "jupyterlab/commands.py::pjoin", "text": "jupyterlab/commands.py::pjoin\ndef pjoin(*args):\n \"\"\"Join paths to create a real path.\n \"\"\"\n return osp.realpath(osp.join(*args))", "label": 0 }, { "cid": "jupyterlab/commands.py::get_user_settings_dir", "text": "jupyterlab...
Qiskit__qiskit-2037
Qiskit/qiskit
train
Add quiet= and to_err= to job monitor to suppress or redirect status messages. <!-- ⚠️ 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. --> ### Add quiet= and to_err= to job monitor to suppress or redire...
[ "qiskit/tools/monitor/job_monitor.py" ]
[ "qiskit/tools/monitor/job_monitor.py::_text_checker", "qiskit/tools/monitor/job_monitor.py::job_monitor" ]
[ { "cid": "qiskit/circuit/quantumcircuit.py", "text": "qiskit/circuit/quantumcircuit.py\nclass QuantumCircuit # Quantum circuit.\n def __init__(self, *regs, name=None) # Create a new circuit.\n def __str__(self)\n def __eq__(self, other)\n def _increment_instances(cls)\n def cls_instances(cl...
[ { "cid": "qiskit/circuit/quantumcircuit.py::QuantumCircuit.__init__", "text": "qiskit/circuit/quantumcircuit.py::QuantumCircuit.__init__\n def __init__(self, *regs, name=None):\n \"\"\"Create a new circuit.\n\n A circuit is a list of instructions bound to some registers.\n\n Args:\n ...
ray-project__ray-3731
ray-project/ray
train
[autoscaler] Fault tolerance testing ### Describe the problem Add functionality to the autoscaler to kill and restart a raylet (but not the machine), to automate fault tolerance testing.
[ "python/ray/autoscaler/commands.py", "python/ray/scripts/scripts.py" ]
[ "python/ray/autoscaler/commands.py::<module>", "python/ray/scripts/scripts.py::<module>", "python/ray/scripts/scripts.py::create_or_update", "python/ray/scripts/scripts.py::start", "python/ray/scripts/scripts.py::teardown" ]
[ { "cid": "python/ray/autoscaler/commands.py", "text": "python/ray/autoscaler/commands.py\ndef create_or_update_cluster(config_file, override_min_workers, override_max_workers, no_restart, restart_only, yes, override_cluster_name) # Create or updates an autoscaling Ray cluster from a config json.\ndef _boot...
[ { "cid": "python/ray/autoscaler/commands.py::create_or_update_cluster", "text": "python/ray/autoscaler/commands.py::create_or_update_cluster\ndef create_or_update_cluster(config_file, override_min_workers,\n override_max_workers, no_restart, restart_only,\n ...
docker__compose-7121
docker/compose
train
Stack Trace "ERROR: for web a bytes-like object is required, not 'str'" 1.25.0-rc4 fails to run basic project ## Description of the issue docker-compose (macOS) fails with rc4 (Docker Desktop Mac Edge 2.1.5.0). It looks like there's a syntax error or something. ``` $ docker-compose -f badcompose.yaml up Crea...
[ "compose/service.py" ]
[ "compose/service.py::<module>", "compose/service.py::Service.create_container", "compose/service.py::Service.start_container" ]
[ { "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.__...
dagster-io__dagster-9792
dagster-io/dagster
train
API for loading an asset into a Python object In a notebook, or in an op, you might want to load an asset to inspect it. Imagine if you could do something like this: ``` @repo def repo(): ... my_repo.load_asset(AssetKey("abc")) ``` It would call the IO manager associated with the asset and load it. `...
[ "python_modules/dagster/dagster/_core/definitions/assets.py", "python_modules/dagster/dagster/_core/definitions/repository_definition.py", "python_modules/dagster/dagster/_core/execution/build_resources.py", "python_modules/dagster/dagster/_core/execution/context/input.py", "python_modules/dagster/dagster/_...
[ "python_modules/dagster/dagster/_core/definitions/assets.py::<module>", "python_modules/dagster/dagster/_core/definitions/repository_definition.py::<module>", "python_modules/dagster/dagster/_core/execution/build_resources.py::_get_mapped_resource_config", "python_modules/dagster/dagster/_core/execution/build...
[ { "cid": "python_modules/dagster/dagster/_core/definitions/assets.py", "text": "python_modules/dagster/dagster/_core/definitions/assets.py\nclass AssetsDefinition # Defines a set of assets that are produced by the same op or graph.\n def __init__(self, *, keys_by_input_name: Mapping[str, AssetKey], keys...
[ { "cid": "python_modules/dagster/dagster/_core/definitions/assets.py::AssetsDefinition.__init__", "text": "python_modules/dagster/dagster/_core/definitions/assets.py::AssetsDefinition.__init__\n def __init__(\n self,\n *,\n keys_by_input_name: Mapping[str, AssetKey],\n keys_by...