language string | code-snippit string | instruction string | flaws list | flaw_count int64 |
|---|---|---|---|---|
python | gcp_conn_id: str = "google_cloud_default",
facebook_conn_id: str = "facebook_default",
impersonation_chain: str | Sequence[str] | None = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.bucket_name = bucket_name
self.object_name = object_name
self.gc... | Review this code and list any quality issues. | [
{
"issue": "It seems `:rtype: List[str]` indicate the return type of the method . \nGenerally, we don’t mention the return type in the method (description - comment) since it’s already specified in the function definition\n\nCould you please share your thoughts on this ?",
"severity": "minor",
"line": 2... | 1 |
python | ]
)
self.handler.native_query = MagicMock(return_value=Response(RESPONSE_TYPE.TABLE, data_frame=df))
result = self.handler.meta_get_columns(table_names=["orders"])
query = self.handler.native_query.call_args[0][0]
self.assertIn("AND TABLE_NAME IN ('ORDERS')", query)
sel... | Review this code and list any quality issues. | [] | 0 |
python | class SubplotTool(Widget):
figure: Figure
targetfig: Figure
buttonreset: Button
def __init__(self, targetfig: Figure, toolfig: Figure) -> None: ...
class Cursor(AxesWidget):
visible: bool
horizOn: bool
vertOn: bool
useblit: bool
lineh: Line2D
linev: Line2D
background: Any
... | Review this code and list any quality issues. | [] | 0 |
python | from airflow.api_fastapi.core_api.security import (
GetUserDep,
ReadableDagRunsFilterDep,
requires_access_asset,
requires_access_dag,
)
from airflow.api_fastapi.core_api.services.public.dag_run import DagRunWaiter
from airflow.api_fastapi.logging.decorators import action_logging
from airflow.configurati... | Review this code and list any quality issues. | [
{
"issue": "`airflow-core/src/airflow/api_fastapi/core_api/routes/ui/dag_run.py` might be a better place for this route.",
"severity": "minor",
"line": 26
}
] | 1 |
python | self._idx: int = sensor_idx
self._manager: SensorManager = sensor_manager
self._cache_idx: int = -1 # cache_idx is set by the SensorManager during the scene build phase
# =============================== implementable methods ===============================
@gs.assert_unbuilt
def build(sel... | Review this code and list any quality issues. | [
{
"issue": "0 by default; something like lidar have `n`, and imu has `0` (special return processing)",
"severity": "minor",
"line": 26
}
] | 1 |
python | stdout, stderr = proc.communicate()
self.assertIn("Starting web interface at", stderr)
try:
response = requests.get(f"http://0.0.0.0:{port}/")
self.assertEqual(200, response.status_code)
except Exception:
pass
def test_invalid_perc... | Review this code and list any quality issues. | [
{
"issue": "No need to send signal, I think you can remove it.",
"severity": "minor",
"line": 26
}
] | 1 |
python | pytester.makepyfile(self.source)
result = pytester.runpytest_inprocess("--durations=10")
assert result.ret == 0
result.stdout.fnmatch_lines_random(
["*durations*", "*call*test_3*", "*call*test_2*"]
)
result.stdout.fnmatch_lines(
["(8 durations < 0.005s h... | Review this code and list any quality issues. | [
{
"issue": "This only checks whether test 3 is in the output, but not if the other tests are not. Fixed this.",
"severity": "minor",
"line": 26
}
] | 1 |
python | self.actor_rollout_wg.save_checkpoint(
actor_local_path, actor_remote_path, self.global_steps, max_ckpt_to_keep=max_actor_ckpt_to_keep
)
if self.use_critic:
critic_local_path = os.path.join(local_global_step_folder, str(Role.Critic))
critic_remote_path = (
... | Review this code and list any quality issues. | [
{
"issue": "why we have to skip saving latest checkpoint iteration step here? please show me the reason",
"severity": "minor",
"line": 26
}
] | 1 |
python | if not os.path.exists(result):
command = tex_compilation_command(
tex_compiler, output_format, tex_file, tex_dir
)
exit_code = os.system(command)
if exit_code != 0:
log_file = tex_file.replace(".tex", ".log")
if not Path(log_file).exists():
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n context = \"Context for error:\\n\\n\"\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | c: !!0,
d: !!42.42,
e: !!![],
f: !"abc",
g: !"",
!42: 42
}''')
self.assertEqual(json.loads(on), {
'a': 0,
'b': 1,
'c': 0,
'd': 42.42,
'e': [],
'f': "abc",
'g': ... | Review this code and list any quality issues. | [] | 0 |
python | The streamer object is contructed using runtime arguments stored in the `JINA_STREAMER_ARGS` environment variable.
If this method is used outside a Jina context (process not controlled/orchestrated by jina), this method will
raise an error.
The streamer object does not have tracing/instrumentati... | Review this code and list any quality issues. | [
{
"issue": "the request size is not respected, here you are not sending multiple `requests`",
"severity": "minor",
"line": 26
}
] | 1 |
python | )
logger.warning(warning_message)
print(json.dumps(result_list, indent=4))
def _get_cli_activity_name(cli, args):
activity_name = cli
if getattr(args, "action", None):
activity_name += f".{args.action}"
if getattr(args, "sub_action", None):
activity_name += f".{args.sub_act... | Review this code and list any quality issues. | [
{
"issue": "may add some test later, guard the result line content is expected",
"severity": "minor",
"line": 26
}
] | 1 |
python | import os
import logging
from pathlib import Path
from collections.abc import Callable, Generator
import contextlib
from packaging.version import Version
from matplotlib._api import MatplotlibDeprecationWarning
from typing import Any, Literal, NamedTuple, overload
from matplotlib.typing import LogLevel
class _Versi... | Review this code and list any quality issues. | [
{
"issue": "What are you doing here? You can't implement in a stub file.",
"severity": "minor",
"line": 26
}
] | 1 |
python | """Make a request to the model for counting tokens."""
# This method is not required, but you need to implement it if you want to support `UsageLimits.count_tokens_before_request`.
raise NotImplementedError(f'Token counting ahead of the request is not supported by {self.__class__.__name__}')
@async... | Review this code and list any quality issues. | [] | 0 |
python | intermediate_size_per_partition, 128
)
hidden_size = round_up(hidden_size, 128)
elif current_platform.is_rocm():
pad_align = get_padding_alignment()
intermediate_size_per_partition_after_pad = round_up(
intermediate_size_per_partition, pad_align
... | Review this code and list any quality issues. | [
{
"issue": "is `hidden_pad` ever passed in from somewhere? i'm updating #34285 to make sure conflicts are resolved but couldn't find where this is from",
"severity": "minor",
"line": 26
}
] | 1 |
python | for download_url in traverse_obj(video_info, (('downloadAddr', ('download', 'url')), {url_or_none})):
formats.append({
'format_id': 'download',
'url': self._proto_relative_url(download_url),
'ext': 'mp4',
'width': width,
... | Review this code and list any quality issues. | [
{
"issue": "revert\r\n```suggestion\r\n for download_url in traverse_obj(video_info, (('downloadAddr', ('download', 'url')), {url_or_none})):\r\n formats.append({\r\n 'format_id': 'download',\r\n 'url': self._proto_relative_url(download_url),\r\n 'e... | 1 |
python | f"\n\tIf you are using the data provided by qlib: "
f"https://qlib.readthedocs.io/en/latest/component/data.html#qlib-format-dataset"
f"\n\tIf you are using your own data, please dump the data again: "
f"https://qlib.readthedocs.io/en/latest/component/data.html#converting-csv-format-i... | Review this code and list any quality issues. | [
{
"issue": "Hi, \r\nDo you think this will make the logic easier to understand?\r\n```python\r\nif not idx.is_monotonic_increasing or \\ # This case is for both new and old version\r\n not is_deprecated_lexsorted_pandas and isinstance(idx, pd.MultiIndex) and not idx.is_lexsorted(): # this case is for t... | 1 |
python | scene=annotated_frame, detections=detections
)
annotated_frame = box_annotator.annotate(
scene=annotated_frame, detections=detections
)
annotated_frame = label_annotator.annotate(
scene=annotated_frame, detections=detections, labels=labels
... | Review this code and list any quality issues. | [
{
"issue": "The error message for insufficient arguments should provide more helpful guidance. Consider specifying what arguments are required and providing a usage example, such as: \"Usage: script.py source_video_path target_video_path [model_id] [roboflow_api_key] [confidence_threshold] [iou_threshold]\"\n``... | 1 |
python | "sql,dialect,expected",
[
("created_at > '2024-01-01'", "postgresql", "created_at > '2024-01-01'"),
("created_at > '2024-01-01'", "mysql", "created_at > '2024-01-01'"),
("created_at > '2024-01-01'", "snowflake", "created_at > '2024-01-01'"),
],
)
def test_date_comparison(sql: str, dialec... | Review this code and list any quality issues. | [] | 0 |
python | },
'params': {
'format': 'bv',
'skip_download': True,
},
}]
def _real_extract(self, url):
video_type, display_id, video_id = self._match_valid_url(url).groups()
if 'show' in video_type:
video_type = 'episode'
data_json = self._downlo... | Review this code and list any quality issues. | [
{
"issue": "By the way, can this be inline? If the values don't exist, we'll get None by default",
"severity": "minor",
"line": 26
}
] | 1 |
python | self.use_smoothing = use_smoothing
self.x_range = x_range or [
-config.frame_width / 2,
config.frame_width / 2,
]
self.y_range = y_range or [
-config.frame_height / 2,
config.frame_height / 2,
]
super().__init__(**kwargs)
def ... | Review this code and list any quality issues. | [
{
"issue": "I think \"for list in point_lists\" is more descriptive.",
"severity": "minor",
"line": 26
}
] | 1 |
python | po = self.get_parent_object()
content_type = ContentType.objects.get_for_model(self.parent_model)
return models.Role.objects.filter(content_type=content_type, object_id=po.pk)
@extend_schema_if_available(extensions={"x-ai-description": "Copy credential"})
class CredentialCopy(CopyAPIView):
model =... | Review this code and list any quality issues. | [
{
"issue": "Hey Jessica! Nice work! \nOnly minor issue is that right now we are targeting x-ai-description to be shorter. Ideally something around 120 to 140 characters. Do you think we can shorten this one? If not I can reach someone to check if this one can be longer than usual.",
"severity": "minor",
... | 1 |
python | "homeassistant.components.touchline_sl.async_setup_entry", return_value=True
) as mock_setup_entry:
yield mock_setup_entry
@pytest.fixture
def mock_touchlinesl_client() -> Generator[AsyncMock]:
"""Mock a pytouchlinesl client."""
with (
patch(
"homeassistant.components.touchline... | Review this code and list any quality issues. | [
{
"issue": "I am wondering if we can also use the other client. Now we have two fixtures, potentially, mocking the same. Can't it be merged with the other client and utilize that for your new tests?",
"severity": "minor",
"line": 26
}
] | 1 |
python | import re
from .common import InfoExtractor
from ..utils import (
filter_dict,
int_or_none,
iri_to_uri,
parse_age_limit,
smuggle_url,
traverse_obj,
unsmuggle_url,
url_or_none,
)
class CineverseBaseIE(InfoExtractor):
_VALID_URL_BASE = r'https://www\.(?P<host>%s)' % '|'.join(map... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n _VALID_URL_BASE = r'https://www\\.(?P<host>%s)' % '|'.join(map(re.escape, (\r\n```",
"severity": "critical",
"line": 17
}
] | 1 |
python | break
parsed_args.append(arg)
env_argv = ['-e'] + parsed_args
parser = argparse.ArgumentParser()
parser.add_argument('-e', '--env', nargs='+', help='''
filenames for additional env variables to load
''', default=os.getenv("DOTENV_EXTENSIONS", "").split(' '))
return parser.parse... | Review this code and list any quality issues. | [] | 0 |
python | """GraySwan security analyzer for OpenHands."""
import asyncio
import os
from typing import Any, Optional
import aiohttp
from fastapi import Request
from openhands.core.logger import openhands_logger as logger
from openhands.events.action.action import Action, ActionSecurityRisk
from openhands.events.event_store_abc... | Review this code and list any quality issues. | [
{
"issue": "Minor nit, but we prefer `* | None` to `Optional[*]`.",
"severity": "minor",
"line": 25
}
] | 1 |
python | Intersection: _SpecialForm
TypeOf: _SpecialForm
CallableTypeOf: _SpecialForm
Top: _SpecialForm
"""
`Top[T]` represents the "top materialization" of `T`.
For any type `T`, the top [materialization] of `T` is a type that is
a supertype of all materializations of `T`.
For a [fully static] type `T`, `Top[T]` is always e... | Review this code and list any quality issues. | [
{
"issue": "I think the most succinct description that I find helpful could be added here:\r\n```suggestion\r\ntop materialization of `list[Any]` is simply `Top[list[Any]]`: the\r\ninfinite union of `list[T]` for every possible fully static type `T`.\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | no arguments) immediately after importing the module::
.. plot:: path/to/plot.py plot_function1
2. Included as **inline content** to the directive::
.. plot::
import matplotlib.pyplot as plt
plt.plot([1, 2, 3], [4, 5, 6])
plt.title("A plotting exammple")
3. Using **doctest** synta... | Review this code and list any quality issues. | [
{
"issue": "Is this really only the filename base or can it be a relative or absolute path without extension? Either case should be documented. Also, since you start giving users control over the created files, you probably should mention where they go.",
"severity": "minor",
"line": 26
}
] | 1 |
python | # See the License for the specific language governing permissions and
# limitations under the License.
#
"""
This module provide the function :py:func:`summary` that is used for printing
an `execution summary
<https://github.com/spotify/luigi/blob/master/examples/execution_summary_example.py>`_
at the end of luigi invo... | Review this code and list any quality issues. | [
{
"issue": "Remember to update this once you've applied the other change I suggested.",
"severity": "minor",
"line": 26
}
] | 1 |
python | from .common import InfoExtractor
from .redge import RedCDNLivxIE
from ..utils import (
clean_html,
js_to_json,
strip_or_none,
traverse_obj,
update_url_query,
)
from datetime import datetime, timedelta
def is_dst(date):
year = date.year
# last sunday of march and october, respectively. mi... | Review this code and list any quality issues. | [
{
"issue": "in light of https://github.com/yt-dlp/yt-dlp/pull/8978/commits/f070f2d48e39dd65351307590370941f30cdbe07 we may want to revise this somehow\r\n\r\nin discord discussion, somebody suggested `import datetime as dt` and I thought that was a manageable solution/compromise",
"severity": "minor",
"... | 1 |
python | if degrees:
return self.angle_value / DEGREES
return self.angle_value
@staticmethod
def from_three_points(A, B, C, **kwargs):
"""Create an instance of the :class:`Angle` class from three points.
Parameters
----------
A
:class:Numpy.array() - En... | Review this code and list any quality issues. | [
{
"issue": "This is not how the directive works: the argument after `::` is the name of a class in the subsequent code block which contains an example that should be rendered. This is not the case here -- take a look at how the directive is used in other examples.\r\n\r\nThe tests currently fail because of the ... | 1 |
python | ), # select the last anchor from the first skeleton by index
],
)
def test_key_points_getitem(key_points, index, expected_result, exception):
with exception:
result = key_points[index]
assert result == expected_result
def test_key_points_empty():
"""Test the creation and behavior of an em... | Review this code and list any quality issues. | [
{
"issue": "This line contains trailing whitespace. Please remove the trailing whitespace to maintain code cleanliness.",
"severity": "minor",
"line": 26
}
] | 1 |
python | if load_reference and "reference" in dataset_.dataset:
new_dataset_name = f"{dataset_name}_reference"
debug_args[new_dataset_name] = dataset_parameter["debug"]
few_shot_args[new_dataset_name] = dataset_parameter["few_shot"]
inference_data[new_dataset_name] = dataset_.data... | Review this code and list any quality issues. | [
{
"issue": "Why this param named `cat_num_mapping`?",
"severity": "minor",
"line": 26
}
] | 1 |
python | def test_groupby_apply_store_copy():
# GH40673
rng = np.random.default_rng(seed=42)
df = DataFrame(
{
"A": rng.normal(10, 12, size=(4,)),
"B": [1, 2, 1, 2],
}
)
# Empty dict to hold the chunks
store = {}
def addstore(x):
store[len(store)] = ... | Review this code and list any quality issues. | [
{
"issue": "Expected here can just be `df.iloc[[0, 2], 1]` I think.",
"severity": "minor",
"line": 26
}
] | 1 |
python | )
# Add a console handler to the logger for only global leader.
if device_rank == 0:
if should_use_rich_logging():
console_handler = _configure_rich_handler(device_rank, level)
else:
console_handler = logging.StreamHandler(sys.stdout)
console_handler.setForma... | Review this code and list any quality issues. | [] | 0 |
python | if len(inspect.stack()) > 3 and inspect.stack()[2].function != "<module>":
self._frame = t.cast(FrameType, t.cast(FrameType, inspect.stack()[3].frame))
elif len(inspect.stack()) < 4:
raise RuntimeError(f"Can't resolve module. Page '{type(self).__name__}' is not registered.")
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n self.scripts(kwargs.get(\"scripts\", None))\r\n```\r\n(see above)",
"severity": "minor",
"line": 26
}
] | 1 |
python | if lmoment is None and 'quadrature_icdf' in methods:
lmoment = self._lmoment_integrate_icdf(order, **params)
if lmoment is not None and self.cache_policy != _NO_CACHE:
self._lmoment_cache[order] = lmoment
return lmoment
def _lmoment_formula(self, order, **params):
... | Review this code and list any quality issues. | [
{
"issue": "Yup, this looks correct to me.",
"severity": "minor",
"line": 26
}
] | 1 |
python | }
GPT35_MODEL_LIST = [
"gpt-3.5-turbo",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-16k",
"gpt-3.5-turbo-0613",
"gpt-3.5-turbo-16k-0613",
"gpt-3.5-turbo-0301",
"gpt-3.5-turbo-0125",
]
GPT4_MODEL_LIST = [
"gpt-4-1106-preview",
"gpt-4",
"gpt-4-32k",
"gpt-4o-2024-05-13",
"gpt-4-06... | Review this code and list any quality issues. | [
{
"issue": "let's make a config.py file for these?",
"severity": "minor",
"line": 26
}
] | 1 |
python | num_bytes = 2
print("Avg Per Token Latency: {0:8.2f} ms".format(avg * 1000))
print("Avg BW: {0:8.2f} GB/s".format(1 / avg * num_parameters * num_bytes / 1e9))
print("Avg flops: {0:8.2f} TFlops/s".format(1 / avg * num_parameters * num_bytes * bs / 1e12))
print("Avg Throughput: tokens/s: ... | Review this code and list any quality issues. | [] | 0 |
python | from sympy.matrices.dense import MutableDenseMatrix
from sympy.polys import Poly
from sympy import Symbol
__all__ = ['RouthHurwitz', 'negative_real_root_conditions']
def negative_real_root_conditions(
polynomial,
var = None, /,
*, domain=None):
"""
Returns a list of conditions for a po... | Review this code and list any quality issues. | [
{
"issue": "I'm not sure I've ever seen the `/` notation. What does it do?",
"severity": "minor",
"line": 9
}
] | 1 |
python | self.session.save()
async def test_asave(self):
msg = self.not_implemented_msg % "a save"
with self.assertRaisesMessage(NotImplementedError, msg):
await self.session.asave()
def test_test_cookie(self):
self.assertIs(self.session.has_key(self.session.TEST_COOKIE_NAME), False... | Review this code and list any quality issues. | [
{
"issue": "We're missing a test where there is a key but no data and the result is still True.",
"severity": "minor",
"line": 26
}
] | 1 |
python | @pytest.mark.parametrize("amount_of_channels", [2])
async def test_nvr_entities_with_channel_names(
hass: HomeAssistant,
mock_config_entry: MockConfigEntry,
mock_hikcamera: MagicMock,
device_registry: dr.DeviceRegistry,
) -> None:
"""Test NVR camera entities use custom channel names when available."... | Review this code and list any quality issues. | [] | 0 |
python | async def test_beta_graph_parallel_execution_in_workflow(client: Client):
"""Test that beta graph API with parallel execution works in Temporal workflows.
This test verifies the fix for the bug where parallel task execution in graphs
wasn't working properly with Temporal workflows due to GraphTask/GraphTas... | Review this code and list any quality issues. | [
{
"issue": "Let's have another test to verify that it also works without subclassing",
"severity": "minor",
"line": 26
}
] | 1 |
python | @classmethod
def create(cls, expr, binds):
"""
Helper for creating new NumExprFactors.
This is just a wrapper around NumericalExpression.__new__ that always
forwards `bool` as the dtype, since Filters can only be of boolean
dtype.
"""
return cls(expr=expr, bi... | Review this code and list any quality issues. | [] | 0 |
python | async def test_auth_error(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
) -> None:
"""Test if the auth server returns an error refreshing the token."""
with patch(
"homeassistant.components.gentex_homelink.config_flow.SRPAuth"
) as MockSRPAuth:
instance = MockSRPAuth.return_v... | Review this code and list any quality issues. | [
{
"issue": "What are we testing? we don't assert anything here",
"severity": "minor",
"line": 26
}
] | 1 |
python | return data
def remove_old_files(files_path):
for filename in os.listdir(files_path):
try:
file_path = os.path.join(files_path, filename)
if os.path.isfile(file_path):
os.remove(file_path)
except Exception as e:
logging.error(f"Error deleting ... | Review this code and list any quality issues. | [] | 0 |
python | "changed_on_delta_humanized",
"id",
"thumbnail_url",
"url",
"uuid",
"datasource_id",
"datasource_name_text",
"datasource_type",
"datasource_url",
"datasource_uuid",
... | Review this code and list any quality issues. | [
{
"issue": "Could we merge these tests together and avoid duplication? both for the success and non existent ones",
"severity": "minor",
"line": 26
}
] | 1 |
python | # Skipping links to another channels, note that checking for
# endpoint.commandMetadata.webCommandMetadata.webPageTypwebPageType == WEB_PAGE_TYPE_CHANNEL
# will not work
if skip_channels and '/channels?' in shelf_url:
return
title = self._get_text(shelf_re... | Review this code and list any quality issues. | [
{
"issue": "maybe just to keep the line shorter:\r\n```suggestion\r\n ('content', ('videoRenderer', 'reelItemRenderer', 'playlistRenderer', 'shortsLockupViewModel'), any)) or {}\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | scene.play(TransformMatchingTex(start, end))
@frames_comparison(last_frame=False)
def test_TransformMatchingTex_FadeTransformMismatches(scene):
start = MathTex("A", "+", "B", "=", "C")
end = MathTex("C", "=", "B", "-", "A")
scene.add(start)
scene.play(TransformMatchingTex(start, end, fade_transform_m... | Review this code and list any quality issues. | [
{
"issue": "I'd very much like to replace `->` with actual `Tex` arrows:\r\n\r\n```suggestion\r\n start = MathTex(\"A\", r\"\\to\", \"B\")\r\n end = MathTex(\"B\", r\"\\to\", \"A\")\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | title = self._html_search_regex(r'<h1>(.+?)</h1>', webpage, 'title').replace('\xa0', ' ')
description = self._html_search_meta(('og:description', 'description'), webpage)
video_key = self._html_search_regex(r'player\.peer\.tv/js/([\d\w]+)', webpage, 'video key')
js = self._download_webpage(f'h... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n 'title': self._html_search_regex(r'<h1>(.+?)</h1>', webpage, 'title').replace('\\xa0', ' '),\r\n 'formats': formats,\r\n 'description': self._html_search_meta(('og:description', 'description'), webpage),\r\n```\r\nis cleaner imo",
"severity": "m... | 1 |
python | notifications = ["approved", "rejected", "submitted"]
for notification in notifications:
with self.subTest(f"Testing with {notification}_notifications"):
notifier.notification = notification
self.assertSetEqual(
notifier.get_valid_recipients(self.o... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\n```\n\nand we should make a subclass of this test with `BaseSnippetWorkflowTests`",
"severity": "minor",
"line": 26
}
] | 1 |
python | event_manager = self._service_locator.get_event_manager()
# Collect the context managers to be entered. Context managers that are already active are excluded,
# as they were likely entered by the caller, who will also be responsible for exiting them.
contexts_to_enter = [
cm
... | Review this code and list any quality issues. | [
{
"issue": "Maybe `RecurringTask` could also be an async context manager (two options of usage - `start`/`stop` and `aenter`/`aexit`) and then it can be just another `contexts_to_enter`.",
"severity": "minor",
"line": 26
}
] | 1 |
python | @pytest.mark.parametrize("kernel", non_fixed_kernels)
def test_lml_gradient(kernel):
# Clone the kernel object prior to mutating it to avoid any side effects between
# GP tests:
kernel = clone(kernel)
# Compare analytic and numeric gradient of log marginal likelihood.
gpc = GaussianProcessClassifier... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n for length_scale in length_scales:\r\n kernel.set_params(**{length_scale_param_name: length_scale})\r\n result.append(gpc.log_marginal_likelihood(kernel.theta))\r\n\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | if provider == "local":
os.makedirs(base_config.data_root_directory, exist_ok=True)
# Simple write/read test
test_file = os.path.join(base_config.data_root_directory, "health_check_test")
with open(test_file, "w") as f:
f.write("test")
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\n response_time = int((time.time() - start_time) * 1000)\n logger.error(f\"File storage health check failed: {str(e)}\", exc_info=True)\n return ComponentHealth(\n```",
"severity": "critical",
"line": 26
}
] | 1 |
python | login_form = self._hidden_inputs(login_page)
login_form.update({
'email': username.encode('cp1251'),
'pass': password.encode('cp1251'),
})
# vk serves two same remixlhk cookies in Set-Cookie header and expects
# first one to be actually set
self._apply_f... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n data['al'] = 1\r\n code, payload = self._download_json(\r\n f'https://vk.com/{path}.php', video_id, data=urlencode_postdata(data), fatal=fatal,\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | test_witness_block(self.nodes[0], self.test_node, block, accepted=True)
# Now try extra witness/signature data on an input that DOES require a
# witness
tx2 = CTransaction()
tx2.vin.append(CTxIn(COutPoint(tx.txid_int, 0), b"")) # witness output
tx2.vin.append(CTxIn(COutPoint(tx... | Review this code and list any quality issues. | [] | 0 |
python | except AttributeError:
vdb_index_ids_present = False
if is_embedding and has_vdb_indexes and vdb_index_ids_present:
for vdb_index in self.meta.vdb_indexes:
id = vdb_index["id"]
self.delete_vdb_index(id)
except Exception as e:
... | Review this code and list any quality issues. | [
{
"issue": "This and also lines to get `commit_id` and `b` also should be removed.",
"severity": "minor",
"line": 26
}
] | 1 |
python | """Great! Now you can install the dependencies by doing: \n
`pip install -r requirements.txt`\n
\n
To run your app locally:\n
`ec dev`
"""
)
def setup_render_com_app():
render_setup_file = os.path.join(os.path.expanduser... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n To run your app locally:\\n\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | ret = '\n'.join(''.join(row).rstrip() for row in table)
return ret
def _match_one(filter_part, dct, incomplete):
# TODO: Generalize code with YoutubeDL._build_format_filter
STRING_OPERATORS = {
'*=': operator.contains,
'^=': lambda attr, value: attr.startswith(value),
'$=': lambda ... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n fcntl.flock(f,\r\n fcntl.LOCK_SH if not exclusive\r\n else fcntl.LOCK_EX if block\r\n else fcntl.LOCK_EX | fcntl.LOCK_NB)\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | from __future__ import annotations
from contextlib import suppress
from datetime import timedelta
from typing import Annotated, Any, Callable
from pydantic import PlainSerializer, TypeAdapter, ValidationError, WrapValidator
"""Utility types for Pydantic models."""
def _timedelta_to_ms(td: timedelta) -> float:
... | Review this code and list any quality issues. | [
{
"issue": "Was this the problematic type hint? :slightly_smiling_face:",
"severity": "minor",
"line": 23
}
] | 1 |
python | The code that *generates* these types of messages is found in the
ansible-runner display callback plugin.
'''
MAX_RETRIES = 2
last_stats = time.time()
last_flush = time.time()
total = 0
last_event = ''
prof = None
def __init__(self):
self.buff = {}
self.pid = os.get... | Review this code and list any quality issues. | [
{
"issue": "This *could* get prohibitively expensive doing this per-read. That said, I can't think of an alternative here that won't result in potentially inaccurate data.\r\n\r\nI'd be curious to see what happens performance-wise here if we attempt to throw really high event load at this PR.",
"severity":... | 1 |
python | url_or_none,
UserNotLive,
)
class FlexTVIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?flextv\.co\.kr/channels/(?P<id>\d+)/live'
_TESTS = [{
'url': 'https://www.flextv.co.kr/channels/570421/live',
'only_matching': True,
}, {
'url': 'https://www.flextv.co.kr/channels/746/l... | Review this code and list any quality issues. | [
{
"issue": "this is ok to be fatal\r\n```suggestion\r\n playlist_url = stream_data['sources'][0]['url']\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | def __validate_init_configuration(self):
if self.save_top_k is not None and self.save_top_k < -1:
raise MisconfigurationException(
f'Invalid value for save_top_k={self.save_top_k}. Must be None or >= -1'
)
if self.monitor is None:
# None: save last epo... | Review this code and list any quality issues. | [
{
"issue": "in which version will it be removed?",
"severity": "minor",
"line": 26
}
] | 1 |
python | import functools
from .common import InfoExtractor
from .dailymotion import DailymotionIE
from ..utils import (
InAdvancePagedList,
smuggle_url,
traverse_obj,
)
class NetverseBaseIE(InfoExtractor):
_ENDPOINTS = {
'watch': 'watchvideo',
'video': 'watchvideo',
'webseries': 'webs... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\nfrom ..utils import InAdvancePagedList, smuggle_url, traverse_obj\r\n```",
"severity": "minor",
"line": 9
}
] | 1 |
python | def _cleanup_modules(target_module: str, alias_module: str):
if target_module in sys.modules:
del sys.modules[target_module]
if alias_module in sys.modules:
del sys.modules[alias_module]
@pytest.fixture
def mock_tags_module_env():
target_module = "controllers.console.tag.tags"
alias_mo... | Review this code and list any quality issues. | [] | 0 |
python | # 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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES... | Review this code and list any quality issues. | [] | 0 |
python | return type(base_val)(val)
except Exception:
# forget it
pass
return val
def _filter_iterable(list_val: Iterable, operator: t.Callable, val: t.Any):
if operator is contains:
types = {type(v) for v in list_val}
if len(types) == 1:
typed_val... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n _warn(f'Error filtering with \"{col_fn or col}\": not a valid Python identifier.')\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | """Services for Agent DVR."""
from __future__ import annotations
from homeassistant.components.camera import DOMAIN as CAMERA_DOMAIN
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers import service
from .const import DOMAIN
_DEV_EN_ALT = "enable_alerts"
_DEV_DS_ALT = "disable_alerts"... | Review this code and list any quality issues. | [
{
"issue": "The PR title/description mentions `agent_dev`, but the integration and file path are `agent_dvr`. Please align the PR wording to the correct integration domain to avoid confusion when searching/referencing this change later.",
"severity": "minor",
"line": 13
}
] | 1 |
python | # - If a linked field is regular and is required in the block schema, require the leaf
required_fields: set[str] = set()
for link in links:
field_name = link.sink_name
is_dynamic = is_dynamic_field(field_name)
# Always use cleaned field name for property key (Anthropi... | Review this code and list any quality issues. | [] | 0 |
python | """
if is_alpha:
label = label - label.mean(level=0)
if int(1 / quantile) >= len(label.index.get_level_values(1).unique()):
raise ValueError("Need more instruments to calculate precision")
df = pd.DataFrame({"pred": pred, "label": label})
if dropna:
df.dropna(inplace=True)
... | Review this code and list any quality issues. | [
{
"issue": "The number of the stocks may changes over time, this will make the `quantile` parameters works not as what user expected.",
"severity": "minor",
"line": 26
}
] | 1 |
python | hf_text_config = vllm_config.model_config.hf_text_config
mamba_ssm_dtype = getattr(hf_text_config, "mamba_ssm_dtype", None)
if cache_config.mamba_ssm_cache_dtype == "auto":
if mamba_ssm_dtype is not None:
cache_config.mamba_ssm_cache_dtype = mamba_ssm_dtype
elif (
... | Review this code and list any quality issues. | [
{
"issue": "Also move this to fit alphabetical order",
"severity": "major",
"line": 26
}
] | 1 |
python | True if the key is valid, False otherwise
"""
if not (LITE_LLM_API_URL and byor_key):
return False
try:
async with httpx.AsyncClient(
verify=httpx_verify_option(),
timeout=5.0, # Short timeout for lightweight verification
) as client:
# Make a li... | Review this code and list any quality issues. | [
{
"issue": "Would `response.is_success` make more sense here? (Just as a general principle - it means that we don't cut off other responses like 301, 201, etc...)",
"severity": "minor",
"line": 26
}
] | 1 |
python | model_state : dict
state dict saved from unwrapped model
"""
if self.is_wrapped:
self._unwrap_model()
self.bound_model.load_state_dict(model_state)
self._wrap_model()
else:
self.bound_model.load_state_dict(model_state)
def get_prun... | Review this code and list any quality issues. | [] | 0 |
python | """
new_peer_map = []
for idx, peer_id in enumerate(self._index_to_peer_map):
if self._peers_transactions_queues[peer_id].priority_queue.empty():
self._peers_transactions_queues.pop(peer_id, None)
if idx < self._list_cursor:
self._list_curs... | Review this code and list any quality issues. | [
{
"issue": "you must have meant `break` or `return` here, no?\nThis will make it an infinite loop",
"severity": "critical",
"line": 26
}
] | 1 |
python | import pytest
from manim import *
from tests.test_graphical_units.testing.frames_comparison import frames_comparison
from ..utils.GraphicalUnitTester import GraphicalUnitTester
from ..utils.testing_utils import get_scenes_to_test
class CreateTest(Scene):
def construct(self):
square = Square()
se... | Review this code and list any quality issues. | [
{
"issue": "This import is currently unused and should be removed until the tests are migrated to the new syntax.",
"severity": "minor",
"line": 4
}
] | 1 |
python | monkeypatch.setattr(requests, 'post', _mock_post)
HubIO.fetch_meta('dummy_mwu_encoder', tag=None, force=True)
assert mock.call_count == 1
_, kwargs = mock.call_args_list[0]
assert kwargs['headers'].get('Authorization') == f'token {auth_token}'
class DownloadMockResponse:
def __init__(self, res... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n@pytest.mark.parametrize('executer_name', ['alias_dummy', None])\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | k = len(samples)
if k < 2:
raise ValueError("Must provide at least two samples.")
if center == 'median':
def func(x):
return (xp.median(x, axis=-1, keepdims=True)
if (is_numpy(xp) or is_dask(xp))
else stats.quantile(x, 0.5, axis=-1, keepdims=... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n Nis = [_length_nonmasked(sample, axis=-1, keepdims=True, xp=xp)\r\n for sample in samples]\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | from ..utils import (
clean_html,
int_or_none,
join_nonempty,
traverse_obj,
url_or_none,
)
class TapTapBaseIE(InfoExtractor):
_X_UA = 'V=1&PN=WebApp&LANG=zh_CN&VN_CODE=102&LOC=CN&PLT=PC&DS=Android&UID={uuid}&OS=Windows&OSV=10&DT=PC'
_VIDEO_API = 'https://www.taptap.cn/webapiv2/video-resour... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n video_data = self._get_api(self._VIDEO_API, video_id, query={'video_ids': video_id})['list'][0]\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | raise SkipTest("SCIPY_ARRAY_API is not set: not checking array_api input")
with config_context(array_api_dispatch=dispatch):
assert device(a, b) is None
assert device(a, numpy.array([1])) is None
assert get_namespace_and_device(a, b)[2] is None
assert get_namespace_and_device(a, nump... | Review this code and list any quality issues. | [
{
"issue": "💭 (this looks so ugly, I think because I don't love the look of `__foo__` 🙄, which made me wonder if we can't make it nicer. For no other reason than that it looks ugly, so take with many grains of salt. I had two thoughts: (1) make a helper like `matching_namespace(x, y)` that checks namespace an... | 1 |
python | def round_robin_pick_client(clients, idx):
return clients[idx % len(clients)]
def round_robin_pick_clients(counter):
tokenization_client = round_robin_pick_client(app.state.total_clients, counter)
prefill_client = round_robin_pick_client(app.state.prefill_clients, counter)
decode_client = round_robin_p... | Review this code and list any quality issues. | [
{
"issue": "then why we need client_id_key? we can just do the line 310-315 logic without CLIENT_BOUND_KEY for the original logic. is that correct?",
"severity": "minor",
"line": 26
}
] | 1 |
python | from pathlib import Path
from sphinx.application import Sphinx
CURRENT_DIR = Path(__file__).parent
def make_pypi_svg(version: str) -> None:
template: Path = CURRENT_DIR / "_static" / "pypi_template.svg"
target: Path = CURRENT_DIR / "_static" / "pypi.svg"
with open(str(template), encoding="utf8") as f:
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n return f\"([#{number}]({url}))\"\r\n```\r\nLet's not link the parentheses.",
"severity": "minor",
"line": 26
}
] | 1 |
python | """Support for ESPHome water heaters."""
from __future__ import annotations
from typing import Any, cast
from aioesphomeapi import WaterHeaterInfo, WaterHeaterMode, WaterHeaterState
from homeassistant.components.water_heater import (
WaterHeaterEntity,
WaterHeaterEntityFeature,
)
from homeassistant.const im... | Review this code and list any quality issues. | [
{
"issue": "import from\r\n```\r\nfrom .enum_mapper import EsphomeEnumMapper \r\n```",
"severity": "minor",
"line": 19
}
] | 1 |
python | # to 3.4e38 (C float); however experiments suggest that
# Inkscape (which uses cairo for rendering) runs into cairo's
# 24-bit limit (which is apparently shared by Agg).
# Ghostscript (used for pdf rendering appears to overflow even
# earlier, with the max... | Review this code and list any quality issues. | [
{
"issue": "Like above, define the general exp func via a lambda",
"severity": "minor",
"line": 26
}
] | 1 |
python | '243': 'webm',
'244': 'webm',
'245': 'webm',
'246': 'webm',
'247': 'webm',
'248': 'webm',
'271': 'webm',
# itag 272 videos are either 3840x2160 (e.g. RtoitU2A-3E) or 7680x4320 (sLprVF6d7Ug)
'272': 'webm',
'302': 'webm',
'303': 'webm',
... | Review this code and list any quality issues. | [
{
"issue": "Don't think we need `_rtmp` since it doesn't have an `ext`\r\n\r\nWhy don't we *actually* import these from the youtube extractor:\r\n```py\r\nfrom .youtube import YoutubeIE\r\n```\r\nand\r\n```py\r\n _FORMATS_EXT = {\r\n **{k: v['ext'] for k, v in YoutubeIE._formats.items() if v.get('ext'... | 1 |
python | # We've shown that user_1 can't interact with the dataset from user_2
# Now have user_2 give proper permission to user_1 to read QUANTUM dataset
# Note: supported permission types are "read", "write", "delete" and "share"
print(
"\nOperation started as user_2 to give read permission to user_1 for th... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n # If we'd like for user_1 to add new documents to the QUANTUM dataset owned by user_2, user_1 would have to get \"write\" access permission,\r\n```",
"severity": "critical",
"line": 26
}
] | 1 |
python | else:
FreeCAD.Console.PrintWarning(
translate("Arch", "Cannot compute blocks for wall")
+ obj.Label
+ "\n"
)
elif obj.Base.isDerivedFrom("Mesh::Feature"):
... | Review this code and list any quality issues. | [
{
"issue": "Most of these comments apply to all the `print()` messages:\n\n- Use `FreeCAD.Console.PrintWarning()` or any of the other `FreeCAD.Console.Print*` functions instead of `print()`. \n- Please consider not mentioning `ArchSketch` here - only those users who have installed it will know what it is, but i... | 1 |
python | except SerializationError as err:
_LOGGER.error("Failed to serialize to JSON: %s. %s", filename, err)
raise
method = write_utf8_file_atomic if atomic_writes else write_utf8_file
method(filename, json_data, private, mode=mode)
def find_paths_unserializable_data(
bad_data: Any, *, dump: Call... | Review this code and list any quality issues. | [
{
"issue": "This change converts valid Python 3 syntax to deprecated Python 2 syntax. In Python 3, multiple exceptions must be caught using parentheses: `except (ExceptionA, ExceptionB):`. The Python 2 syntax `except ExceptionA, ExceptionB:` is not valid in Python 3 and will cause a syntax error. This line shou... | 1 |
python | 'width': video_res.get('width'),
'height': video_res.get('height'),
'vbr': video_res.get('bandwidth'),
'acodec': 'none',
'vcodec': video_res.get('codecs'),
'filesize': video_res.get('size'),
})
for aud in video_json.get(... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n 'title': video_data.get('title_display') or video_data.get('title'),\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | import torch
import torch.nn as nn
import torch.nn.functional as F
from packaging import version
class Model(nn.Module):
def __init__(self):
super(Model, self).__init__()
def forward(self, x, y, z):
x = x.unflatten(dim=0, sizes=(2,1,2,-1))
y = y.unflatten(dim=1, sizes=(3,4))
z ... | Review this code and list any quality issues. | [] | 0 |
python | 'url': 'https://zen.yandex.ru/media/id/606fd806cc13cb3c58c05cf5/novyi-samsung-fold-3-moskvich-barahlit-612f93b7f8d48e7e945792a2?from=channel&rid=2286618386.482.1630817595976.42360',
'only_matching': True,
}, {
'url': 'https://dzen.ru/media/id/606fd806cc13cb3c58c05cf5/novyi-samsung-fold-3-moskvich-ba... | Review this code and list any quality issues. | [
{
"issue": "i would set `quality` outside of the `for` loop",
"severity": "minor",
"line": 26
}
] | 1 |
python | STUB_MAPPING = {
'jina.JinaDataRequestRPC': jina_pb2_grpc.JinaDataRequestRPCStub,
'jina.JinaSingleDataRequestRPC': jina_pb2_grpc.JinaSingleDataRequestRPCStub,
'jina.JinaDiscoverEndpointsRPC': jina_pb2_grpc.JinaDiscoverEndpointsRPCStub,
'jina.JinaRPC': jina_pb2_grpc.JinaRP... | Review this code and list any quality issues. | [
{
"issue": "Doing update on the histogram_metric_labels might be wrong because it is passed by reference. Make sure to check this",
"severity": "critical",
"line": 26
}
] | 1 |
python | # Count total translatable lines in reference (excluding empty and comments)
num_lines = sum(
1
for line in open(default_file_path, encoding="utf-8")
if line.strip() and not line.strip().startswith("#")
)
ref_keys: set[str] = load_reference_keys(default_file_path)
result_list: ... | Review this code and list any quality issues. | [
{
"issue": "When processing en_GB, both en_GB and en_US are appended to result_list. When processing en_US, they are appended again, leading to duplicates. Although line 317 removes duplicates with `list(set(result_list))`, this logic is confusing and inefficient. Consider appending only the current language: `... | 1 |
python | else:
return func(self, tracing_context=tracing_context, **kwargs)
func = self.requests[req_endpoint]
runtime_name = (
self.runtime_args.name if hasattr(self.runtime_args, 'name') else None
)
_summary = (
self._summary_method.labels(
... | Review this code and list any quality issues. | [
{
"issue": "```suggestion\r\n ):\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | def _reorder_dataframe_by_partition(df: "pyspark.sql.DataFrame", new_partition_order: List[int]):
df_combined = df.select("*").where(f"part_id = {new_partition_order[0]}")
for partition_id in new_partition_order[1:]:
partition_df = df.select("*").where(f"part_id = {partition_id}")
df_combined = ... | Review this code and list any quality issues. | [
{
"issue": "You can remove the comment here",
"severity": "minor",
"line": 26
}
] | 1 |
python | if self.args.verbose_build:
rustup_target.append("--verbose")
rustup_target.extend(
["target", "add", SUPPORTED_BOARDS[self.args.board].arch])
self.checked_command(rustup_target)
info("Rust toolchain up-to-date")
def build_tockos(self):
info("Building Tock OS for board {}".format(self.a... | Review this code and list any quality issues. | [
{
"issue": "Almost... Here you compile the firmware then run the tests. Just swap the 2 lines and we're good.",
"severity": "minor",
"line": 26
}
] | 1 |
python | finally:
if os.path.exists(temp_file.name):
try:
os.remove(temp_file.name)
except OSError:
self.report_warning(f'Unable to delete temporary file "{temp_file.name}"')
f['__working'] = success
i... | Review this code and list any quality issues. | [] | 0 |
python | return await provider.openai_create_vector_store(params)
async def openai_list_vector_stores(
self,
limit: int | None = 20,
order: str | None = "desc",
after: str | None = None,
before: str | None = None,
) -> VectorStoreListResponse:
logger.debug(f"VectorIORoute... | Review this code and list any quality issues. | [] | 0 |
python | )
if not (
math.isfinite(gpu_memory_utilization)
and gpu_memory_utilization > 0
and gpu_memory_utilization <= 1.0
):
raise ValueError(
"GPU memory utilization must be within (0, 1]. Got "
f"{gpu_memory_utilization}."
... | Review this code and list any quality issues. | [
{
"issue": "nit: this should be a `ValueError` if it's a wrong config value from the user",
"severity": "critical",
"line": 26
}
] | 1 |
python | }, {
# radio 2, area specified
# (the area doesnt actually matter, r2 is national)
'url': 'https://www.nhk.or.jp/radio/player/?ch=r2',
'params': {'extractor_args': {'nhkradirulive': {'area': ['fukuoka']}}},
'info_dict': {
'id': 'r2-fukuoka',
'title': 're:^... | Review this code and list any quality issues. | [
{
"issue": "agreed re: comment, but we can cleanup\r\n```suggestion\r\n _NOA_STATION_IDS = {'r1': 'n1', 'r2': 'n2', 'fm': 'n3'}\r\n```",
"severity": "minor",
"line": 26
}
] | 1 |
python | {
'url': 'https://www.theepochtimes.com/kash-patel-a-6-year-saga-of-government-corruption-from-russiagate-to-mar-a-lago_4690250.html',
'info_dict': {
'id': '4690250',
'ext': 'mp4',
'url': 'http://vs1.youmaker.com/assets/aa9ceecd-a127-453d-a2de-7153... | Review this code and list any quality issues. | [
{
"issue": "Use single quote\r\n```suggestion\r\n 'id': video_id,\r\n 'ext': 'mp4',\r\n 'url': f'http://vs1.youmaker.com/assets/{youmaker_video_id}/playlist.m3u8',\r\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.