language string | code-snippit string | instruction string | flaws list | flaw_count int64 |
|---|---|---|---|---|
python | with patch("io.TextIOWrapper", lambda *args, **kwargs: output):
try:
black.format_stdin_to_stdout(
fast=True,
content="",
write_back=black.WriteBack.YES,
mode=DEFAULT_MODE,
)
except io... | Review this code and list any quality issues. | [
{
"issue": "Technically still would succeed without the dummy code, but the exit code can't tell the source. Should we assert on error message?",
"severity": "minor",
"line": 26
}
] | 1 |
python | main_parser.add_argument(
"--debug-allocations",
action="append_const",
const="debug_allocations",
dest="features",
help=("The console will be used to output allocator statistics every "
"time an allocation/deallocation happens."),
)
main_parser.add_argument(
"--verbo... | Review this code and list any quality issues. | [
{
"issue": "`--ctap2.1` could be more readable?",
"severity": "minor",
"line": 26
}
] | 1 |
python | if my_rank != src:
for i, obj_size in enumerate(object_sizes_tensor):
obj_view = object_tensor[offset: offset + obj_size]
obj_view = obj_view.type(torch.uint8)
if obj_view.device != torch.device("cpu"):
obj_view = obj_view.cpu()
offset += obj_size
... | Review this code and list any quality issues. | [
{
"issue": "It seems `c10d._get_pg_device()` is similar to this. Why not just use it?",
"severity": "minor",
"line": 26
}
] | 1 |
python | def abcd_normalize(A=None, B=None, C=None, D=None):
r"""Check state-space matrices compatibility and ensure they are 2d arrays.
First, the input matrices are converted into two-dimensional arrays with
appropriate dtype as needed. Then the dimensions n, q, p are determined by
investigating the array sha... | Review this code and list any quality issues. | [
{
"issue": "It would be helpful to mention here how the input arrays are promoted into a floating point `dtype`. \nNote that the docstrs of [sstf] and [StateSpace] need a correction in that regard as well.\n\nFurthermore, it would help to point to a place where the promotion rules are explained in a little mor... | 1 |
python | hass_client: ClientSessionGenerator,
caplog: pytest.LogCaptureFixture,
mock_onedrive_client: MagicMock,
mock_large_file_upload_client: AsyncMock,
mock_config_entry: MockConfigEntry,
) -> None:
"""Test agent upload backup."""
client = await hass_client()
test_backup = AgentBackup.from_dict(BA... | Review this code and list any quality issues. | [] | 0 |
python | src = str(path / "b/")
report = black.Report()
expected: List[Path] = [
path / "b/.definitely_exclude/a.py",
path / "b/.definitely_exclude/a.pyi",
]
sources = list(
black.get_sources(
ctx=FakeContext(),
src=(src,),
... | Review this code and list any quality issues. | [
{
"issue": "Is it worth it to add another test that's like this one but the complete opposite? So like making sure .gitignore is not used when --exclude is present. OR is that already tested somewhere else (wouldn't surprised if so)?",
"severity": "minor",
"line": 26
}
] | 1 |
python | logger.warning(
f"Model type {config.model_type} not tested. "
f"Using {auto_model_class} as the model class. "
"If you encounter errors, please open an issue at https://github.com/oumi-ai/oumi."
)
else:
auto_model_class = transformers.AutoModelFor... | Review this code and list any quality issues. | [] | 0 |
python | def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
title = get_elements_by_class('heading', webpage)[-1]
duration = parse_duration(self._search_regex(
r'Duration: ([0-9]{2}:[0-9]{2})',
webpage, 'duration', ... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n 'https://daxab.com/player/%s?color=%s' % (player_hash, player_color),\r\n video_id, headers={'Referer': url})\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | """
if family:
for submob in self.get_family():
submob.sheen_direction = rotate_vector(
submob.sheen_direction, angle, axis
)
else:
self.sheen_direction = rotate_vector(self.sheen_direction, angle, axis)
return self
... | Review this code and list any quality issues. | [
{
"issue": "The example currently doesn't render correctly due to a missing newline before the code block.\r\n\r\n```suggestion\r\n :save_last_frame:\r\n\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | assert text == "hello"
def test_explicit_target_on_button_tag(self):
self.pyscript_run(
"""
<py-script>
def display_hello():
display('hello', target='my-button')
</py-script>
<button id="my-button" py-onClick="display_hello... | Review this code and list any quality issues. | [] | 0 |
python | ) -> None:
for dataset in pipeline.datasets():
try:
catalog.exists(dataset)
except DatasetNotFoundError:
pass
for name, ds in catalog._datasets.items():
if isinstance(ds, SharedMemoryDataset):
ds.set_manager(self._manage... | Review this code and list any quality issues. | [
{
"issue": "Any reason to not allow a setting in ParallelRunner rather than an env var?",
"severity": "minor",
"line": 26
}
] | 1 |
python | def __init__(
self,
merged_shape: Sequence[int],
cropped_shape: Sequence[int] | None = None,
dtype: np.dtype | str = "float32",
value_dtype: np.dtype | str = "float32",
count_dtype: np.dtype | str = "uint8",
store: zarr.storage.Store | str = "merged.zarr",
... | Review this code and list any quality issues. | [
{
"issue": "`TemporaryDirectory` should delete the directory once the context block if left, is this a problem here? It might not be immediate but we can't rely on it existing outside the block I don't think. If you store an instance of `TemporaryDirectory` as an attribute it will get cleaned up when the object... | 1 |
python | Whether the SVGMobject should be centered to the origin. Defaults to `True`.
height : :class:`float`
Specify the final height of the SVG file. Defaults to 2 units.
width : :class:`float`
Specify the width the SVG file should occupy. Defaults to `None`.
unpack_groups : :class:`bool`
W... | Review this code and list any quality issues. | [
{
"issue": "Is this a typo or intentional?",
"severity": "minor",
"line": 26
}
] | 1 |
python | parse_args: list[str] = []
if disable_plugin_method == "env_var":
monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
elif disable_plugin_method == "flag":
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
parse_args.append("--disable-plugin-autoload")
else:
assert ... | Review this code and list any quality issues. | [
{
"issue": "using parens here would be good to make the precedence more obvious",
"severity": "minor",
"line": 26
}
] | 1 |
python | self.trading_days,
self.ASSET_FINDER_COUNTRY_CODE,
),
)
result = self.run_pipeline(
pipe, self.trading_days[-5], self.trading_days[-1]
)
# We should have one maximum every day.
maxes_per_day = result.groupby(level=0)['maximum'].sum()
... | Review this code and list any quality issues. | [
{
"issue": "I'd probably use `NamedExplodingObject` for these so that we raise a clear error if something in the engine starts depending on the asset finder or countries in loader dispatcher at construction time.",
"severity": "minor",
"line": 26
}
] | 1 |
python | ) -> Iterator[Line]:
"""Transform a `line`, potentially splitting it into many lines.
They should fit in the allotted `line_length` but might not be able to.
`features` are syntactical features that may be used in the output.
"""
if line.is_comment:
yield line
return
line_str ... | Review this code and list any quality issues. | [
{
"issue": "This is probably the line that causes instability but it cannot be easily removed.",
"severity": "minor",
"line": 26
}
] | 1 |
python | import warnings
from typing import Any, Optional, Union
import numpy as np
import torch
from transformers.data.data_collator import DataCollatorForLanguageModeling
class DataCollatorForCompletionOnlyLM(DataCollatorForLanguageModeling):
"""Data collator used for completion tasks."""
def __init__(
sel... | Review this code and list any quality issues. | [
{
"issue": "Is this the correct version number?",
"severity": "minor",
"line": 26
}
] | 1 |
python | french = Locale.objects.create(language_code="fr")
self.homepage.copy_for_translation(french)
french_page = self.page.copy_for_translation(french)
with translation.override("fr"):
response = french_page.serve(self.request)
response.render()
self.assertContains(r... | Review this code and list any quality issues. | [
{
"issue": "note (non-blocking): I like this and I wish you could make it more explicit. Other than `self.assertNotEqual(expected_text, \"Go to Wagtail admin\")` I can't think of a nice way to do this.",
"severity": "minor",
"line": 26
}
] | 1 |
python | import functools
from .common import InfoExtractor
from ..utils import (
format_field,
int_or_none,
js_to_json,
make_archive_id,
url_basename,
url_or_none,
urlencode_postdata,
)
from ..utils.traversal import traverse_obj
class JioSaavnBaseIE(InfoExtractor):
_VALID_BITRATES = ('16', '3... | Review this code and list any quality issues. | [
{
"issue": "Why `ValueError`? Won't it behave like `expected=False`?\r\n```suggestion\r\n raise ExtractorError(\r\n f'Invalid bitrate(s): {\", \".join(invalid_bitrates)}. '\r\n f'Valid bitrates are: {\", \".join(self._VALID_BITRATES)}', expected=True)\r\n```",
"sever... | 1 |
python | import pytest
from crawlee._utils.requests import compute_unique_key, normalize_headers, normalize_url, unique_key_to_request_id
if TYPE_CHECKING:
from crawlee._types import HttpMethod, HttpPayload
# Tests for normalize_headers
def test_normalize_headers_whitelist() -> None:
headers = {
'Content-Typ... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\ndef test_normalize_headers_strips_whitespaces() -> None:\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | assert len(msg.file_hashes) == 2
assert msg.file_hashes.get("/src/utils/test.py") == "hash_for_src_utils"
assert msg.file_hashes.get("/tests/test.py") == "hash_for_tests"
# Round-trip through TOML should preserve both
toml_str = msg.to_toml()
loaded = Message.from_toml(toml_str)
assert loaded.f... | Review this code and list any quality issues. | [
{
"issue": "I'm thinking it should maybe look like:\n\n```\n{\n \"model\": \"...\",\n \"tokens\": {\"input\": {\"base\": 2, \"cache_read\": 10, \"cache_write\": 6}, \"output\": 2} \n # or {\"input\": 2, \"cache_read\": 10, \"cache_write\": 6, \"output\": 2},\n \"cost\": 0.05,\n}",
"severity... | 1 |
python | # Write summary file to artifacts dir
if inventory_id is not None:
artifact_dir = os.path.join('artifacts', f'inventory_{inventory_id}')
os.makedirs(artifact_dir, exist_ok=True)
summary_file = os.path.join(artifact_dir, 'host_cache_summary.json')
summary_data = {'last_write_time': la... | Review this code and list any quality issues. | [
{
"issue": "I looked at your test failures, and was awfully perplexed. It seems that what is making this very difficult to debut is the use of `system_tracking_logger` as opposed to `logger`. The former will present the logs in normal logs. I would avoid the former except for the very narrow cases where it is a... | 1 |
python | from test_framework.util import (
assert_raises_rpc_error,
assert_equal,
assert_greater_than,
assert_greater_than_or_equal,
)
from test_framework.authproxy import JSONRPCException
class RpcMiscTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 1
def run_test(self... | Review this code and list any quality issues. | [
{
"issue": "fa18c82 — Perhaps add a short note that these sizes target historical/modern `ARG_MAX` boundaries (64KiB, ~128KiB, ~2MiB, ~4MiB) and that `-1` tests just-below the power-of-two to catch off-by-ones? Took me a while to understand the intent.",
"severity": "critical",
"line": 26
}
] | 1 |
python | node_id=NODE_B,
runners=runners, # type: ignore
download_status={},
global_download_status={NODE_A: [], NODE_B: []},
instances=instances,
all_runners=all_runners,
tasks={},
)
assert result is None
def test_plan_does_not_start_warmup_for_rank_zero_until_others_... | Review this code and list any quality issues. | [] | 0 |
python | """Return the color mode of the light."""
if self._supports_color():
return ColorMode.HS
return ColorMode.BRIGHTNESS
@property
def supported_color_modes(self) -> set[ColorMode]:
"""Return the supported color modes."""
if self._supports_color():
return {Co... | Review this code and list any quality issues. | [
{
"issue": "It feels kinda weird to have BRIGHTNESS in a `HomematicipLightHS`",
"severity": "minor",
"line": 26
}
] | 1 |
python | """Sure Petcare Felaqua."""
_attr_device_class = SensorDeviceClass.VOLUME
_attr_native_unit_of_measurement = UnitOfVolume.MILLILITERS
def __init__(
self, surepetcare_id: int, coordinator: SurePetcareDataCoordinator
) -> None:
"""Initialize a Sure Petcare Felaqua sensor."""
supe... | Review this code and list any quality issues. | [
{
"issue": "Break the docstring up like this:\n ```py\n \"\"\"Sensor for the last flap device id used by the pet.\n\n Note: Only if the last status is from a flap update.\n \"\"\"\n```\n\nAlso, try to rephrase to clarify what this sensor shows if the last status update was not from a flap update. Does ... | 1 |
python | async with get_any_service_client(FullNodeRpcClient, root_path, rpc_port) as (
node_client,
config,
):
blockchain_state: dict[str, Any] = await node_client.get_blockchain_state()
if blockchain_state is None or blockchain_state["peak"] is None:
# Peak height is required fo... | Review this code and list any quality issues. | [
{
"issue": "minor thing, but this should be:\r\n```suggestion\r\n cycle_start: float = time.monotonic()\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | def test_allocating_heterogeneous(allocator):
"""Test allocating with heterogeneous sizes."""
if hasattr(allocator, "num_memory_regions"):
assert allocator.num_memory_regions == 1024
sizes = [random.randint(8, 1024) for _ in range(31)]
status = allocator.alloc(sizes)
allocator.assert_consist... | Review this code and list any quality issues. | [] | 0 |
python | r'(?:www\.)?piped\.privacy\.com\.de',
)
# extracted from account/account_menu ep
# XXX: These are the supported YouTube UI and API languages,
# which is slightly different from languages supported for translation in YouTube studio
_SUPPORTED_LANG_CODES = [
'af', 'az', 'id', 'ms', 'bs', 'ca'... | Review this code and list any quality issues. | [
{
"issue": "what do we think about also printing all the language codes here:\r\n\r\n```suggestion\r\n if preferred_lang not in self._SUPPORTED_LANG_CODES:\r\n raise ExtractorError( f'Unsupported language code: {preferred_lang}. Supported language codes: {join_nonempty(*self._SUPPORTED_LANG_CO... | 1 |
python | 'uploader_id': 'coronacommittee',
'description': 'md5:98986acdf656aa836bf36f9c9704c65b',
'uploader': 'Corona Investigative Committee',
'thumbnail': r're:^https?://.+',
'duration': 21872.507,
'timestamp': 1643976662.858,
'upload_date': '20220204',
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n thumbnails = [{\r\n 'url': urljoin(self._MEDIA_BASE_URL, thumbnail),\r\n } for thumbnail in try_get(video_info, lambda x: x['postData']['imgs']) or []]\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | EXAMPLES = '''
- name: Export all assets
export:
all: True
register: export_output
- name: Import all assets from our export
import:
assets: "{{ export_output.assets }}"
- name: Load data from a json file created by a command like awx export --organization Default
import:
assets: "{{ lookup('file'... | Review this code and list any quality issues. | [
{
"issue": "post-change, this doesn't make any sense.",
"severity": "minor",
"line": 26
}
] | 1 |
python | the URL?
10 if it's what the URL is about,
-1 for default (don't know),
-10 otherwise, other values reserved for now.
* quality Order number of the video quality of this
... | Review this code and list any quality issues. | [
{
"issue": "Could you also add extra_params... here?",
"severity": "minor",
"line": 26
}
] | 1 |
python | if not capa.ghidra.helpers.is_supported_ghidra_version():
logger.error("unsupported ghidra version")
return capa.main.E_UNSUPPORTED_GHIDRA_VERSION
if not capa.ghidra.helpers.is_supported_file_type():
logger.error("unsupported file type")
return capa.main.E_INVALID_FILE_TYPE
if ... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n popup(\"capa explorer analysis complete.\\nPlease see results in the Bookmarks and Namespaces section of the Symbol Tree Window.\") # type: ignore [name-defined] # noqa: F821\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | webpage = self._download_webpage(url, video_id)
formats = []
for mobj in re.finditer(r'<a[^>]+href="(?P<video_url>[^"]+download=true[^"]+)".*>(?P<ext>[^\s]+) (?P<quality>[^<]+)p</a>', webpage):
url, ext, quality = mobj.groups()
formats.append({
'url': url,
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n 'tags': list(map(unescapeHTML, re.findall(\r\n r'<a class=\"tag_item\"[^>]+\\bhref=\"https://rule34video\\.com/tags/\\d+/\"[^>]*>(?P<tag>[^>]*)</a>', webpage))),\r\n```",
"severity": "critical",
"line": 26
}
] | 1 |
python | fatal=False))
else:
fd = {'url': video_url}
fmt = item.get('name')
if fmt:
fd['format'] = fmt
fd.update(parse_resolution(fmt))
mo = re.search(r'\((\d+)\s*kbps\)\s*\+\s*(\d+)\s*kbps', fmt)
... | Review this code and list any quality issues. | [
{
"issue": "if this gives None, the format should not be added to dict",
"severity": "minor",
"line": 26
}
] | 1 |
python | .options(alias_loader)
.options(selectinload(TI.dag_version))
.with_hint(TI, "USE INDEX (ti_state)", dialect_name="mysql")
.join(DM, TI.dag_id == DM.dag_id)
.where(
TI.state.in_((TaskInstanceState.RUNNING, TaskInstanceState.RESTARTING))... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\n if conf.getboolean(\"core\", \"multi_team\"):\n unique_dag_ids = {ti.dag_id for ti in task_instances_without_heartbeats}\n dag_id_to_team_name = self._get_team_names_for_dag_ids(unique_dag_ids, session)\n else:\n dag_id_to_team_name = {}... | 1 |
python | 'alt_title': 'Westwood One >',
'cast': 'count:2',
'description': 'md5:6828234f410ab88c85655495c5fcfa88',
'display_id': '174556405',
'duration': 1203,
'series': 'The BOB & TOM Show Free Podcast',
'series_id': 'p20069',
'thumbnail': r're:... | Review this code and list any quality issues. | [
{
"issue": "metadata-only request should be non-fatal",
"severity": "minor",
"line": 26
}
] | 1 |
python | 'body', 'content', 'article', 'headline', {str})) or playlist_title
return self.playlist_result(
entries, playlist_id, playlist_title, playlist_description)
# various PRELOADED_STATE JSON
preload_state = self._search_json(
r'window\.__(?:PWA_)?PRELOADED_S... | Review this code and list any quality issues. | [
{
"issue": "For the BBC Sounds test:\r\n```suggestion\r\n 'uploader_id': ('network', 'id', {str}),\r\n 'timestamp': ((('availability', 'from'), ('release', 'date')), {parse_iso8601}, any),\r\n 'series': ('titles', 'primary', {str}),\r\n```",
"severity... | 1 |
python | # - pytest
# - python -m pytest
# - python3 -m pytest
# - with optional whitespace variations
PYTEST_PATTERN = re.compile(
r"""
^ # start of string
(?: # non-capturing group for optional python invocation
python # 'python'
(?:3)?... | Review this code and list any quality issues. | [
{
"issue": "The comment should end with a period to follow proper grammar and punctuation guidelines.\n```suggestion\n # Fail secure: block (exit 2) if we can't parse input to verify safety.\n```",
"severity": "critical",
"line": 26
}
] | 1 |
python | import importlib
import importlib.abc
import importlib.machinery
import importlib.util
import inspect
import itertools
import os
import pkgutil
import sys
import traceback
import zipimport
from pathlib import Path
from zipfile import ZipFile
from .compat import functools # isort: split
from .compat import compat_expa... | Review this code and list any quality issues. | [
{
"issue": "keeping this private for time-being as likely would change in the future.\r\n\r\nany ideas for better location or solution?",
"severity": "minor",
"line": 26
}
] | 1 |
python | # Copyright 2021-2024 Avaiga Private Limited
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n<|{value}|input|active=false|>\r\n```\r\nSimpler is better.",
"severity": "minor",
"line": 21
}
] | 1 |
python | 'type': 'object',
}
),
snapshot(True),
),
(
tool_with_optional_dataclass,
None,
snapshot(
{
'additionalProperties': False,
'properties': {'foo': {'anyOf': [{'type': 'string... | Review this code and list any quality issues. | [] | 0 |
python | if color is None: # use checkerboard texture
n_tile_x, n_tile_y = plane_size[0] / tile_size[0], plane_size[1] / tile_size[1]
vmesh.visual = trimesh.visual.TextureVisuals(
uv=np.array(
[
[0, 0],
[n_tile_x, 0],
[n_til... | Review this code and list any quality issues. | [
{
"issue": "I'm not a huge fan of returning metadata this way, because this helpers are not aware of what `metadata` is. \n\nMaybe create plane should take some `color_to_texture_path` input argument, that default to some global variable `DEFAULT_PLANE_TEXTURE_PATH` that would be defined on top of this module. ... | 1 |
python | import unittest
import torch
from parameterized import parameterized
from monai.data.meta_tensor import MetaTensor
from monai.transforms import SaveImage
from monai.utils import optional_import
_, has_itk = optional_import("itk", allow_namespace_pkg=True)
TEST_CASE_1 = [torch.randint(0, 255, (1, 2, 3, 4)), {"filena... | Review this code and list any quality issues. | [] | 0 |
python | return self._download_json(
self._GRAPHQL_API, id, note='Downloading json from GRAPHQL API',
data=json.dumps(payload, separators=(',', ':')).encode(), headers=headers, fatal=False)
def _real_extract(self, url):
page_id = self._match_id(url)
webpage = self._download_webpage(u... | Review this code and list any quality issues. | [
{
"issue": "same\r\n```suggestion\r\n formats, subtitles = self._extract_media_from_json(lead_video_id, json_obj)\r\n```",
"severity": "major",
"line": 26
}
] | 1 |
python | self.assertIsNone(cache.get_or_set("null", lambda: None))
# Previous get_or_set() stores None in the cache.
self.assertIsNone(cache.get("null", "default"))
def test_get_or_set_version(self):
msg = "get_or_set() missing 1 required positional argument: 'default'"
self.assertEqual(cach... | Review this code and list any quality issues. | [
{
"issue": "I would suggest a more verbose test method name. You could do away with the comment in that case.",
"severity": "minor",
"line": 26
}
] | 1 |
python | font_size: float = DEFAULT_FONT_SIZE,
line_spacing: float = -1,
font: str = "",
slant: str = NORMAL,
weight: str = NORMAL,
t2c: dict[str, str] = None,
t2f: dict[str, str] = None,
t2g: dict[str, tuple] = None,
t2s: dict[str, str] = None,
t2w: dict[s... | Review this code and list any quality issues. | [
{
"issue": "More of a semantical question: is there any particular argument against implementing this as a cached method of `Text`? Like\r\n\r\n```py\r\nclass Text(...):\r\n ...\r\n \r\n @staticmethod\r\n @functools.lru_cache(maxsize=None)\r\n def font_list() -> list[str]:\r\n return manim... | 1 |
python | class Migration(migrations.Migration):
dependencies = [
("wagtailsearchpromotions", "0002_capitalizeverbose"),
]
operations = [
migrations.CreateModel(
name="Query",
fields=[
(
"id",
models.AutoField(
... | Review this code and list any quality issues. | [] | 0 |
python | template_args={
"is_report": True,
"requests_statistics": [stat.to_dict(escape_string_values=True) for stat in requests_statistics],
"failures_statistics": [stat.to_dict() for stat in failures_statistics],
"exceptions_statistics": [stat for stat in exceptions_statistics],... | Review this code and list any quality issues. | [
{
"issue": "Can you double check this? I think if no profile is set this gets sent to the frontend as a string `\"None\"`. I think we'll want to return `None` or an empty string here",
"severity": "minor",
"line": 26
}
] | 1 |
python | headline="Nobody remembers the early years",
pub_date=datetime(1, 2, 3, 4, 5, 6),
)
serial_str = serializers.serialize(self.serializer_name, [a])
date_values = self._get_field_values(serial_str, "pub_date")
self.assertEqual(date_values[0].replace("T", " "), "0001-02-03 04:05... | Review this code and list any quality issues. | [
{
"issue": "Can you tell me why this change should be made?",
"severity": "minor",
"line": 26
}
] | 1 |
python | trainer = Trainer(logger=wandb_logger)
See Also:
- `Tutorial <https://app.wandb.ai/cayush/pytorchlightning/reports/
Use-Pytorch-Lightning-with-Weights-%26-Biases--Vmlldzo2NjQ1Mw>`__
on how to use W&B with Pytorch Lightning.
"""
LOGGER_JOIN_CHAR = '-'
def __init__(
... | Review this code and list any quality issues. | [
{
"issue": "We need `wandb=None` so that we can mock the variable.",
"severity": "minor",
"line": 26
}
] | 1 |
python | with torch.no_grad():
out_ref = model_ref(x)
out = model(x)
self.assertTrue(
torch.allclose(out_ref, out, atol=1e-5),
f"Outputs do not match for standalone Conv layers with {offload_type}.",
)
def test_multiple_invocations_with_vae_like_model(self):
... | Review this code and list any quality issues. | [
{
"issue": "(nit): we can reduce the iteration number to 2.",
"severity": "minor",
"line": 26
}
] | 1 |
python | exclude_idxes.append(idx)
continue
config['op_names'] = sorted(list(set(config['op_names']).difference(exclude)))
exclude.update(config['op_names'])
for idx in sorted(exclude_idxes, reverse=True):
config_list.pop(idx)
return config_list
def compute_sparsity_compact2origin(o... | Review this code and list any quality issues. | [] | 0 |
python | from sympy.core.symbol import Symbol
from sympy.core.sympify import sympify
from sympy.functions.elementary.exponential import log
from sympy.functions.elementary.trigonometric import sec, csc, cot, tan, cos
from sympy.functions.elementary.hyperbolic import (
sech, csch, coth, tanh, cosh, asech, acsch, atanh, acoth... | Review this code and list any quality issues. | [
{
"issue": "An Interval is a Set in sympy terminology.",
"severity": "minor",
"line": 26
}
] | 1 |
python | @pytest.mark.anyio
async def test_bundle_coin_spends() -> None:
# This tests the construction of bundle_coin_spends map for mempool items
# We're creating sb123e with 4 coins, one of them being eligible
mempool_manager, coins = await setup_mempool_with_coins(coin_amounts=list(range(1000000000, 1000000005)))... | Review this code and list any quality issues. | [
{
"issue": "I sent a clarification on these numbers.",
"severity": "minor",
"line": 26
}
] | 1 |
python | raise ExtractorError('There was a problem with the auth token')
self._TOKEN_EXPIRY = expiry
def _perform_login(self, username, password):
login = self._download_json(
'https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword', None,
'Logging in', query=self._LOG... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n login = self._download_json(\r\n 'https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword', None,\r\n 'Logging in', query=self._LOGIN_QUERY, headers=self._LOGIN_HEADERS, data=json.dumps({\r\n 'returnSecureToken': True,\r\n ... | 1 |
python | ...
... @property
... def support(self):
... def left(*, a, b):
... return a**3
...
... def right(*, a, b):
... return b**3
... return (left, right)
...
... def pdf(self, x, *, a, b):
... return 1 / (3*(b - a... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n custom version of the beta distribution that has an alternative parameterization\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | Load data from a multiclass folder structure into a ClassificationDataset.
Args:
root_directory_path (str): The path to the dataset directory.
Returns:
ClassificationDataset: The dataset.
Example:
```python
>>> import supervision as sv
... | Review this code and list any quality issues. | [
{
"issue": "Is it possible that `os.path.join(root_directory_path, class_name)` does not exist if we got that value from `os.listdir(root_directory_path)`?",
"severity": "minor",
"line": 26
}
] | 1 |
python | self._download_webpage(url, video_id)
json_info = {}
token = self._get_cookies(url).get('CT')
if token:
json_info = self._download_json('https://fod-sp.fujitv.co.jp/apps/api/episode/detail/?ep_id=%s&is_premium=false' % video_id, video_id, headers={'x-authorization': f'Bearer {token.v... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n 'thumbnail': f'{self._BASE_URL}img/program/{series_id}/episode/{video_id}_a.jpg',\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | url_fragment=f'{story_id}-url',
)
def _create_topic(
self,
topic_id: str,
canonical_story_refs: list[dict[str, str]],
name: str = 'Topic',
language_code: str = 'en',
) -> topic_models.TopicModel:
"""Creates and returns a TopicModel instance."""
re... | Review this code and list any quality issues. | [] | 0 |
python | # Copyright (C) 2020 Mandiant, Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at: [package root]/LICENSE.txt
# Unless required by applicable law or agreed to in writing... | Review this code and list any quality issues. | [
{
"issue": "I dug and I did not find a solution for mypy complaining about undefined names. Let’s be explicit about the names Ghidrathon has injected by adding the comment # type: ignore [name-defined] to each line that uses a name injected by Ghidrathon. This solution is unfortunately far more verbose but help... | 1 |
python | 'url': 'https://tube.tugraz.at/paella/ui/watch.html?id=f2634392-e40e-4ac7-9ddc-47764aa23d40',
'md5': 'a23a3d5c9aaca2b84932fdba66e17145',
'info_dict': {
'id': 'f2634392-e40e-4ac7-9ddc-47764aa23d40',
'ext': 'mp4',
'title': '#6 (23.11.2017)',
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n },\r\n 'expected_warnings': ['no title given'],\r\n },\r\n```\r\nlike this",
"severity": "minor",
"line": 26
}
] | 1 |
python | if (attention_mask is not None and not attention_mask.all()) or (past_key_values and seq_length != 1):
full_attention_mask = get_masks(
self, input_ids, infer_state.cache_manager.past_key_values_length, padding_mask=attention_mask
)
# Run encoder.
hid... | Review this code and list any quality issues. | [] | 0 |
python | with pytest.raises(httpx.InvalidURL) as exc:
httpx.URL(path="//abc")
assert str(exc.value) == "Relative URLs cannot have a path starting with '//'"
with pytest.raises(httpx.InvalidURL) as exc:
httpx.URL(path=":abc")
assert str(exc.value) == "Relative URLs cannot have a path starting with ':... | Review this code and list any quality issues. | [] | 0 |
python | @frames_comparison(last_frame=False)
def test_DrawBorderThenFill(scene):
square = Square(fill_opacity=1)
scene.play(DrawBorderThenFill(square))
# NOTE : Here should be the Write Test. But for some reasons it appears that this function is untestable (see issue #157)
@frames_comparison(last_frame=False)
def tes... | Review this code and list any quality issues. | [] | 0 |
python | post_count = len(post_devices)
post_identifiers = {
identifier for device in post_devices for identifier in device.identifiers
}
# Since the products data didn't change, we should have the same devices
assert post_count == pre_count
assert post_identifiers == original_identifiers
async de... | Review this code and list any quality issues. | [] | 0 |
python | self.server_info = server_info
# Check if there's an existing entry
if entry := await self.async_set_unique_id(server_info.server_id):
# Update the entry with new URL and token
if self.hass.config_entries.async_update_entry(
entry, data={**entry.data, CONF_URL: s... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\n \"\"\"Confirm the Home Assistant app discovery.\"\"\"\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | if model_type == "mixtral":
from transformers.models.mixtral.modeling_mixtral import MixtralSparseMoeBlock
_set_z3_leaf_modules(model, [MixtralSparseMoeBlock])
if model_type == "olmoe":
from transformers.models.olmoe.modeling_olmoe import OlmoeSparseMoeBlock
_set_z3_leaf_modules(m... | Review this code and list any quality issues. | [] | 0 |
python | Documents:
{docs_text}
Return the ranking as JSON. Make sure every document appears once. Scores must be between 0 and 1.
"""
).strip()
return [
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_prompt},
]... | Review this code and list any quality issues. | [
{
"issue": "might the final prompt be too big? if 200 documents are reranked at the same time\r\nor a user has to use the llm that handles this amout if text?",
"severity": "minor",
"line": 26
}
] | 1 |
python | Also, aws_domain could be specified in ``extra`` of your connection.
PyAthena and AWS Authentication parameters could be passed in extra field of ``athena_conn_id`` connection.
Passing authentication parameters in ``athena_conn_id`` will override those in ``aws_conn_id``.
.. seealso::
:class:`~ai... | Review this code and list any quality issues. | [
{
"issue": "Instead of doing that, can you declare these parameters in the constructor? That would avoid doing a filtering",
"severity": "minor",
"line": 26
}
] | 1 |
python | },
},
{
# premium
'url': 'https://www.ruutu.fi/video/3618715',
'only_matching': True,
},
]
_API_BASE = 'https://gatling.nelonenmedia.fi'
@classmethod
def _extract_urls(cls, webpage):
# nelonen.fi
settings = try_call(
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n lambda: json.loads(re.search(\r\n '(?s)<script[^>]+id=[\\'\"]__NEXT_DATA__[\\'\"][^>]*>([^<]+)</script>',\r\n webpage).group(1), strict=False))\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | webpage = self._download_webpage(url, video_id=video_id)
domain = self.find_value_with_regex(var='requireNewDomain', webpage=webpage)
vid = self.find_value_with_regex(var='vid', webpage=webpage)
app_key = self.find_value_with_regex(var='modeServerAppKey', webpage=webpage)
api = update_ur... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n } for prog in v if prog.get('url') or []])\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | def test_sample_weights_infinite():
msg = "Sample weights have reached infinite values"
clf = AdaBoostClassifier(n_estimators=30, learning_rate=23.0)
with pytest.warns(UserWarning, match=msg):
clf.fit(iris.data, iris.target)
@pytest.mark.parametrize(
"sparse_container, expected_internal_type",... | Review this code and list any quality issues. | [
{
"issue": "It's weird to write a custom class named `CustomSVC` that derives from `CalibratedClassifierCV` which is not a generic meta-estimator that can work with `SVC` base estimators but also with any other classifiers.\r\n\r\nLet's renamed it `CustomProbabilisticClassifier` and inherit from `LogisticRegres... | 1 |
python | from __future__ import unicode_literals
from .common import InfoExtractor
class BreitBartIE(InfoExtractor):
_VALID_URL = r'https?:\/\/(?:www\.)breitbart.com/videos/v/(?P<id>[^/]+)'
_TESTS = [{
'url': 'https://www.breitbart.com/videos/v/5cOz1yup/?pl=Ij6NDOji',
'md5': '0aa6d1d6e183ac5ca09207fe4... | Review this code and list any quality issues. | [
{
"issue": "description is too long. use `md5:`",
"severity": "major",
"line": 15
}
] | 1 |
python | Additional arguments to be passed to the :class:`~.Vector` constructor
"""
output = np.array(self.func(point))
norm = np.linalg.norm(output)
if norm != 0:
output *= self.length_func(norm) / norm
vect = Vector(output, **self.vector_config)
vect.shift(point)
... | Review this code and list any quality issues. | [
{
"issue": "I can see the point of this second implementation, but I am not sure I really like that there has to be a so different and more complex implementation when the `apply_function`-approach from the parent class also does the job. I guess it all depends on how difficult it is to change the style of the ... | 1 |
python | self._username,
self._password,
Store(self.hass, STORAGE_VERSION, STORAGE_KEY).path,
True,
None,
self._with_family,
)
except PyiCloudFailedLoginException as error:
_LOGGER.error("Error logging into iCloud ser... | Review this code and list any quality issues. | [
{
"issue": "`except PyiCloudServiceNotActivatedException, PyiCloudNoDevicesException:` is invalid syntax in Python 3. Use `except (PyiCloudServiceNotActivatedException, PyiCloudNoDevicesException):`.\n```suggestion\n except (\n PyiCloudServiceNotActivatedException,\n PyiCloudNoDevic... | 1 |
python | from consoleme.config import config
from consoleme.handlers.base import BaseAPIV2Handler
from consoleme.lib.policies import can_manage_policy_requests
class SelfServiceConfigHandler(BaseAPIV2Handler):
allowed_methods = ["GET"]
async def get(self):
self_service_iam_config: dict = config.get("self_serv... | Review this code and list any quality issues. | [
{
"issue": "This will introduce a security vulnerability since dictionaries are treated as references in Python So this line is actually mutating the global configuration. What we want here is something like :\r\n\r\n```\r\nadmin_bypass_approval_enabled: bool = await can_manage_policy_requests(self.groups)\r\ns... | 1 |
python | (_("Undo"), f"{KEYS.MOD} + z"),
(
_("Redo"),
f"{KEYS.MOD} + {KEYS.SHIFT} + z" if is_mac else f"{KEYS.MOD} + y",
),
],
("actions", _("Actions")): [
(_("Save changes"), f"{KEYS.MOD} + s"),
(_("P... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n (_(\"Strike-through\"), f\"{KEYS.MOD} + {KEYS.SHIFT} + x\"),\r\n```\r\n\r\nWhite space missing.",
"severity": "minor",
"line": 26
}
] | 1 |
python | 'episode_id': '267851',
'episode_number': 1,
'title': '1 残酷',
'duration': 1425.256,
'timestamp': 1554566400,
'upload_date': '20190406',
'thumbnail': r're:^https?://.*\.(jpg|jpeg|png)$'
},
'skip': 'According to the copyright owner\'s... | Review this code and list any quality issues. | [
{
"issue": "- add a `headers` var since we're using the same headers multiple times\r\n - use `episode_id` in the query\r\n```suggestion\r\n headers = {'Referer': url, **self.geo_verification_headers()}\r\n play_info = self._download_json(\r\n 'https://api.bilibili.com/pgc/player/web/v2... | 1 |
python | 'duration': 82,
'upload_date': '20201109',
'thumbnail': r're:https://\w+\.dmcdn\.net/v/SaMes1Zg3lxLv9j5u/x1080',
'uploader': 'Moviepilot',
'like_count': int,
'view_count': int,
'tags': ['Alle Trailer', 'Movie', 'Verleih'],
'uploader_id'... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n clip = clip_store['props']['initialProps']['pageProps']\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | response = self._download_json(
'https://www.freetv.com/wordpress/wp-admin/admin-ajax.php',
contentId,
'Downloading %s video JSON' % contentId,
data=urlencode_postdata(request_body),
fatal=False
)
if response is False:
return False... | Review this code and list any quality issues. | [
{
"issue": "1. Get rid of variables that are only used once\r\n2. Lack of video id/URL should throw error. So make their extraction fatal",
"severity": "major",
"line": 26
}
] | 1 |
python | ("datatable(x:int) [1, 2, 3] | take 100", 100),
(
"""
Table1 | where msg contains 'abc;xyz'
| limit 5
""",
5,
),
("table | take five", None),
],
)
def test_get_kql_limit_value(kql: str, expected: str) -> None:
assert KustoKQLStatement(kql, "kust... | Review this code and list any quality issues. | [] | 0 |
python | pos : tuple, shape (3,), optional
The center position of the plane in meters. Defaults to (0.0, 0.0, 0.0).
euler : tuple, shape (3,), optional
The euler angle of the entity in degrees. This follows scipy's extrinsic x-y-z rotation convention.
Defaults to (0.0, 0.0, 0.0).
quat : tuple, sh... | Review this code and list any quality issues. | [
{
"issue": "`plane_size` may be? `size` is not very clear.",
"severity": "minor",
"line": 26
}
] | 1 |
python | class NebulaSeasonIE(NebulaBaseIE):
IE_NAME = 'nebula:seasons'
_VALID_URL = rf'{_BASE_URL_RE}/(?P<sn>\w+)/?season/(?P<sid>\d+)'
_TESTS = [{
'url': 'https://nebula.tv/jetlag/season/15',
'info_dict': {
'id': 'jetlag_15',
},
'playlist_count': 6,
}, {
'url... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n data = self._call_api(\r\n f'https://content.api.nebula.app/content/{series}/season/{season_number}', playlist_id)\r\n\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | """
result = script.pip("install", "INITools")
result.did_create(script.site_packages / "initools")
result2 = script.pip("install", "--upgrade", "--force-reinstall", "INITools")
assert result2.files_updated, "upgrade to INITools 0.3 failed"
result3 = script.pip("uninstall", "initools", "-y")
ass... | Review this code and list any quality issues. | [] | 0 |
python | )
items.extend(self._data_from_dynamo_replace(response["Items"]))
return_value = []
if status:
for item in items:
if status and item["status"] == status:
return_value.append(item)
else:
return_value = items
return ... | Review this code and list any quality issues. | [] | 0 |
python | assert da.texts == ['hello']
assert exec.metas.name == 'hello123'
def test_executor_import_with_external_dependencies(capsys):
ex = Executor.load_config('../../hubble-executor/config.yml')
assert ex.bar == 123
ex.foo()
out, err = capsys.readouterr()
assert 'hello' in out
def test_executor_wi... | Review this code and list any quality issues. | [
{
"issue": "do this with an independent file and in a fixture separated from the test logic",
"severity": "minor",
"line": 26
}
] | 1 |
python | buff=SMALL_BUFF,
)
y_axis.add(y_label)
self.y_axis_label_mob = y_label
axes = []
if self.x_axis_visibility:
axes.append(x_axis)
if self.y_axis_visibility:
axes.append(y_axis)
if animate:
self.play(Write(VGroup(*axe... | Review this code and list any quality issues. | [
{
"issue": "In the way this is currently written, it will make \"The graph is smaller than the scene.\" show up as the one-line documentation of this function. Suggestion for improvement:\r\n\r\n```suggestion\r\n \"\"\"Maps a pair of coordinates (with respect to the axes)\r\n to a point in the sce... | 1 |
python | def test_help_when_required(self):
format_help = self.get_parser(required=True).format_help
help = self.usage_when_required + self.help
self.assertEqual(format_help(), textwrap.dedent(help))
class TestMutuallyExclusiveSimple(MEMixin, TestCase):
def get_parser(self, required=None):
... | Review this code and list any quality issues. | [] | 0 |
python | from .common import InfoExtractor
from ..utils import (
traverse_obj,
)
class YleAreenaIE(InfoExtractor):
_VALID_URL = r'https?://areena\.yle\.fi/(?P<id>[0-9-]+)'
_TESTS = [{
'url': 'https://areena.yle.fi/1-4371942',
'md5': '932edda0ecf5dfd6423804182d32f8ac',
'info_dict': {
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n _VALID_URL = r'https?://areena\\.yle\\.fi/(?P<id>[\\d-]+)'\r\n```",
"severity": "minor",
"line": 8
}
] | 1 |
python | """Test enter enters app context if available."""
app_ctx = NullAppContext()
ctx = ExecutionContext(app_context=app_ctx)
# Should not raise any exception
with ctx.enter():
pass
def test_enter_without_app_context(self):
"""Test enter works without app context."""... | Review this code and list any quality issues. | [] | 0 |
python | assert_eq(ddf[:8], df[:8])
def test_loc_on_numpy_datetimes():
df = pd.DataFrame(
{"x": [1, 2, 3]}, index=list(map(np.datetime64, ["2014", "2015", "2016"]))
)
a = dd.from_pandas(df, 2)
a = a.repartition(divisions=tuple(map(np.datetime64, a.divisions)))
assert_eq(a.loc["2014":"2015"], a.loc... | Review this code and list any quality issues. | [] | 0 |
python | def run_ffmpeg(args : List[str]) -> bool:
commands = [ 'ffmpeg', '-hide_banner', '-loglevel', 'error' ]
commands.extend(args)
try:
subprocess.run(commands, stderr = subprocess.PIPE, check = True)
return True
except subprocess.CalledProcessError as exception:
logger.debug(exception.stderr.decode().strip(), __n... | Review this code and list any quality issues. | [
{
"issue": "keep using the fps that are passed to the extract_frames() method",
"severity": "major",
"line": 26
}
] | 1 |
python | ]
def _fix_rope_inv_freq(model):
"""Fix inv_freq corruption caused by transformers v5 meta-device loading.
Transformers v5 initializes models on the meta device, then
_move_missing_keys_from_meta_to_device() (modeling_utils.py) replaces ALL
non-persistent buffers with torch.empty_like() -- uninitiali... | Review this code and list any quality issues. | [
{
"issue": "Why? we iterate over a module only once right?",
"severity": "minor",
"line": 26
}
] | 1 |
python | @app.get("/path/param-gt0/{item_id}")
def get_path_param_gt0(item_id: float = Path(gt=0)):
return item_id
@app.get("/path/param-ge/{item_id}")
def get_path_param_ge(item_id: float = Path(ge=3)):
return item_id
@app.get("/path/param-lt/{item_id}")
def get_path_param_lt(item_id: float = Path(lt=3)):
retur... | Review this code and list any quality issues. | [] | 0 |
python | import sys
def is_db_command():
if len(sys.argv) > 1 and sys.argv[0].endswith("flask") and sys.argv[1] == "db":
return True
return False
# create app
if is_db_command():
from app_factory import create_migrations_app
app = create_migrations_app()
else:
# Gunicorn and Celery handle monkey... | Review this code and list any quality issues. | [
{
"issue": "The filename reference is incorrect. The file is named `gunicorn.conf.py` (with `.conf`), not `gunicorn_conf.py`. This will confuse developers trying to locate the file.\n```suggestion\n # For third-party library patching, refer to `gunicorn.conf.py` and `celery_entrypoint.py`.\n```",
"severi... | 1 |
python | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from typing import Any
from pydantic import BaseModel, Field, SecretStr
from llama_stack.providers.utils.inference.mo... | Review this code and list any quality issues. | [] | 0 |
python | LEFT,
RIGHT,
tip_shape_start=ArrowCircleTip,
tip_shape_end=ArrowSquareFilledTip,
)
scene.add(arrow, double_arrow)
@frames_comparison
def test_LabeledLine(scene):
line = LabeledLine(
label="0.5",
label_position=0.8,
font_size=20,
label_color=WHITE,
... | Review this code and list any quality issues. | [
{
"issue": "Because of the default parameter change, the test data either has to be regenerated, or font_size has to be passed:\r\n```suggestion\r\n \"0.5\", start=LEFT * 3, end=RIGHT * 3 + UP * 2, label_position=0.5, font_size=15\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | if judge.prompt_template["type"] == "pairwise":
g1_winner, g1_user_prompt, g1_judgment = run_judge_pair(
question, answer_1, answer_2, judge, ref_answer, multi_turn=multi_turn
)
g2_winner, g2_user_prompt, g2_judgment = run_judge_pair(
question, answer_2, answer_1, judge, ... | Review this code and list any quality issues. | [] | 0 |
python | break
# Update shared media for next step
shared_images.extend(step_output.images or [])
shared_videos.extend(step_output.videos or [])
shared_audio.extend(step_output.audio or [])
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\n else:\n```",
"severity": "minor",
"line": 26
}
] | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.