Dataset Viewer
Auto-converted to Parquet Duplicate
file
stringlengths
8
116
function
stringlengths
2
72
version_data
listlengths
2
2
diff_code
stringlengths
87
17.4k
diff_docstring
stringlengths
31
12k
whitespace_only_code
bool
1 class
whitespace_only_docstring
bool
1 class
file_path
stringlengths
9
116
filename
stringlengths
5
52
project
stringclasses
100 values
owner
stringclasses
96 values
python_ccxt_oceanex.py
oceanex.fetch_orders
[ { "version": "v124", "docstring_lines": { "start_line": 679, "end_line": 688 }, "code_lines": { "start_line": 688, "end_line": 709 }, "commit_date_time": "2023-11-16 12:46:12", "commit_sha": "8d2f99100013351c73cf0629d66e28e7a2e45c0a", "commit_message": "Merge ...
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]: - self.check_required_symbol('fetchOrders', symbol) + if symbol is None: + raise ArgumentsRequired(self.id + ' fetchOrders() requires a symbol argume...
fetches information on multiple orders made by the user :see: https://api.oceanex.pro/doc/v1/#order-status-with-filters-post :param str symbol: unified market symbol of the market orders were made in :param int [since]: the earliest time in ms to fetch orders for :param int [li...
false
false
python/ccxt/oceanex.py
oceanex.py
ccxt
ccxt
tests_tests_pytorch_models_test_tpu.py
test_accelerator_set_when_using_tpu
[ { "version": "v85", "docstring_lines": { "start_line": 266, "end_line": 268 }, "code_lines": { "start_line": 268, "end_line": 276 }, "commit_date_time": "2022-10-04 22:54:14", "commit_sha": "7ef87464ddd740f8af8388bd95130066c65874da", "commit_message": "Refacto...
- def test_accelerator_set_when_using_tpu(tpu_cores): ? ^^^^ -- + def test_accelerator_set_when_using_tpu(devices): ? ^^^^ - assert isinstance(Trainer(accelerator="tpu", devices=tpu_cores).accelerator, TPUAccelerator) ? ...
- Test if the accelerator is set to `tpu` when tpu_cores is not None. ? ^^^^ -- + Test if the accelerator is set to `tpu` when devices is not None. ? ^^^^
false
false
tests/tests_pytorch/models/test_tpu.py
test_tpu.py
pytorch-lightning
Lightning-AI
homeassistant_components_feedreader___init__.py
StoredData.__init__
[ { "version": "v35", "docstring_lines": { "start_line": 224, "end_line": 226 }, "code_lines": { "start_line": 226, "end_line": 231 }, "commit_date_time": "2023-04-28 19:16:08", "commit_sha": "c303487c1bf234bad2901882476dceefec2243a9", "commit_message": "Fix lin...
- def __init__(self, data_file: str) -> None: + def __init__(self, hass: HomeAssistant, legacy_data_file: str) -> None: ? ++++++++++++++++++++++++++++ - self._data_file = data_file + self._legacy_data_file = legacy_data_file ? +++++++ +++++++ - ...
- Initialize pickle data storage. ? ------- + Initialize data storage.
false
false
homeassistant/components/feedreader/__init__.py
__init__.py
core
home-assistant
python_ccxt_bitmex.py
bitmex.fetch_funding_rate_history
[ { "version": "v255", "docstring_lines": { "start_line": 2369, "end_line": 2382 }, "code_lines": { "start_line": 2382, "end_line": 2420 }, "commit_date_time": "2022-06-15 02:49:29", "commit_sha": "9fb56f853b7e4893488e3bc55d0c2c324d7cfef5", "commit_message": "1....
def fetch_funding_rate_history(self, symbol=None, since=None, limit=None, params={}): self.load_markets() request = {} market = None if symbol in self.currencies: code = self.currency(symbol) request['symbol'] = code[...
Fetches the history of funding rates :param str|None symbol: unified symbol of the market to fetch the funding rate history for :param int|None since: timestamp in ms of the earliest funding rate to fetch :param int|None limit: the maximum amount of `funding rate structures <https://docs...
false
false
python/ccxt/bitmex.py
bitmex.py
ccxt
ccxt
python_ccxt_bitmex.py
bitmex.fetch_my_trades
[ { "version": "v325", "docstring_lines": { "start_line": 1630, "end_line": 1638 }, "code_lines": { "start_line": 1638, "end_line": 1680 }, "commit_date_time": "2023-09-14 23:49:35", "commit_sha": "2e126035c9575c4748f136085bded8c4660286b1", "commit_message": "Me...
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}): self.load_markets() + paginate = False + paginate, params = self.handle_option_and_params(params, 'fetchMyTrades', 'paginate') + ...
+ see https://www.bitmex.com/api/explorer/#not /Execution/Execution_getTradeHistory - fetch all trades made by the user + fetch all trades made by the user ? ++++++++ :param str symbol: unified market symbol :param int [since]: the earliest time in ms to fetch trades for :param in...
false
false
python/ccxt/bitmex.py
bitmex.py
ccxt
ccxt
python_ccxt_bitmex.py
bitmex.create_order
[ { "version": "v353", "docstring_lines": { "start_line": 1725, "end_line": 1738 }, "code_lines": { "start_line": 1738, "end_line": 1789 }, "commit_date_time": "2023-12-23 12:50:45", "commit_sha": "f279fec2e79975ff33dc107d275902286fffef96", "commit_message": "4....
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}): self.load_markets() market = self.market(symbol) orderType = self.capitalize(type) reduceOnly = self.safe_value(params, 'reduceOnly') ...
create a trade order :see: https://www.bitmex.com/api/explorer/#not /Order/Order_new :param str symbol: unified symbol of the market to create an order in :param str type: 'market' or 'limit' :param str side: 'buy' or 'sell' :param float amount: how much of currency y...
false
false
python/ccxt/bitmex.py
bitmex.py
ccxt
ccxt
python_ray_serve_context.py
_connect
[ { "version": "v8", "docstring_lines": { "start_line": 89, "end_line": 106 }, "code_lines": { "start_line": 106, "end_line": 142 }, "commit_date_time": "2022-06-01 18:27:54", "commit_sha": "905258dbc19753c81039f993477e7ab027960729", "commit_message": "Clean up ...
- def _connect( - _override_controller_namespace: Optional[str] = None, - ) -> ServeControllerClient: + def _connect() -> ServeControllerClient: ? +++++++++++++ - # Initialize ray if needed. ? ^ + # Initialize Ray if needed. ? ^ ray.worker.global_w...
- Connect to an existing Serve instance on this Ray cluster. ? ^^ ^^^^^ + Connect to an existing Serve application on this Ray cluster. ? ++++ ^^ ^ +++ - If calling from the driver program, the Serve instance on this Ray cluster ? ...
false
false
python/ray/serve/context.py
context.py
ray
ray-project
homeassistant_components_goalzero_binary_sensor.py
YetiBinarySensor.is_on
[ { "version": "v8", "docstring_lines": { "start_line": 84, "end_line": 86 }, "code_lines": { "start_line": 86, "end_line": 87 }, "commit_date_time": "2021-10-14 22:20:08", "commit_sha": "abf6720cd3d12d5bed3194754481aa39933c349e", "commit_message": "Add strict t...
def is_on(self) -> bool: - return cast(bool, self.api.data.get(self.entity_description.key) == 1) ? ^^^^^ ^ + return cast(bool, self.api.data[self.entity_description.key] == 1) ? ^ ...
- Return if the service is on. + Return True if the service is on. ? +++++
false
false
homeassistant/components/goalzero/binary_sensor.py
binary_sensor.py
core
home-assistant
plugins_convert_writer__base.py
Output.cache_frame
[ { "version": "v5", "docstring_lines": { "start_line": 67, "end_line": 69 }, "code_lines": { "start_line": 69, "end_line": 70 }, "commit_date_time": "2019-07-30 16:59:50", "commit_sha": "1d0d7214525205caf841c8d8e7789862a600b2a4", "commit_message": "bugfix: Fram...
- def cache_frame(self, filename, image): + def cache_frame(self, filename, image) -> None: ? ++++++++ - ? - + + frame_no = int(re.search(self.re_search, filename).group()) self.cache[frame_no] = image logger.tr...
- Add the incoming frame to the cache + Add the incoming converted frame to the cache ready for writing out. + + Used for ffmpeg and gif writers to ensure that the frames are written out in the correct + order. + + Parameters + ---------- + filename: str + The filen...
false
false
plugins/convert/writer/_base.py
_base.py
faceswap
deepfakes
plugins_convert_writer__base.py
Output.output_filename
[ { "version": "v7", "docstring_lines": { "start_line": 121, "end_line": 139 }, "code_lines": { "start_line": 139, "end_line": 140 }, "commit_date_time": "2022-05-14 11:15:50", "commit_sha": "e0e2779bd3ab59b7bab2ee7ebaaa567d543173c2", "commit_message": "gif writ...
- def output_filename(self, filename: str) -> str: + def output_filename(self, filename: str, separate_mask: bool = False) -> List[str]: filename = os.path.splitext(os.path.basename(filename))[0] out_filename = f"{filename}.{self.config['format']}" - out_filename = os....
Obtain the full path for the output file, including the correct extension, for the given input filename. NB: The plugin must have a config item 'format' that contains the file extension to use this method. Parameters ---------- filename: str ...
false
false
plugins/convert/writer/_base.py
_base.py
faceswap
deepfakes
timm_models_registry.py
list_models
[ { "version": "v2", "docstring_lines": { "start_line": 46, "end_line": 56 }, "code_lines": { "start_line": 56, "end_line": 66 }, "commit_date_time": "2019-06-29 22:50:33", "commit_sha": "b8762cc67d79464ae3105fecf6e6f35ebe8ae230", "commit_message": "Model update...
- def list_models(filter='', module='', pretrained=False): + def list_models(filter='', module='', pretrained=False, exclude_filters=''): ? ++++++++++++++++++++ if module: models = list(_module_to_models[module]) else: ...
Return list of available model names, sorted alphabetically Args: filter (str) - Wildcard filter string that works with fnmatch module (str) - Limit model selection to a specific sub-module (ie 'gen_efficientnet') + pretrained (bool) - Include only models with pretrained weights i...
false
false
timm/models/registry.py
registry.py
pytorch-image-models
huggingface
timm_models_registry.py
get_pretrained_cfg_value
[ { "version": "v8", "docstring_lines": { "start_line": 155, "end_line": 157 }, "code_lines": { "start_line": 157, "end_line": 159 }, "commit_date_time": "2022-01-26 05:54:13", "commit_sha": "abc9ba254430ef971ea3dbd12f2b4f1969da55be", "commit_message": "Transiti...
def get_pretrained_cfg_value(model_name, cfg_key): if model_name in _model_pretrained_cfgs: - return _model_pretrained_cfgs[model_name].get(cfg_key, None) ? ^^^^^ + return getattr(_model_pretrained_cfgs[model_name], cfg_key, None) ...
- Get a specific model default_cfg value by key. None if it doesn't exist. ? ^^ + Get a specific model default_cfg value by key. None if key doesn't exist. ? ^^^
false
false
timm/models/registry.py
registry.py
pytorch-image-models
huggingface
bin_proxy.py
translate
[ { "version": "v22", "docstring_lines": { "start_line": 128, "end_line": 131 }, "code_lines": { "start_line": 131, "end_line": 135 }, "commit_date_time": "2021-01-02 21:43:18", "commit_sha": "0b8ead03e60bf248112d0834ffd064b5ce8ef875", "commit_message": "Use cas...
def translate(text, lang): + + if "," in text: + terms = text.split(",") + translated_terms = [translate(term.strip(), lang) for term in terms] + return ", ".join(translated_terms) + translated = TRANSLATIONS.get(lang, {}).get(text.lower(), text) - if text ...
- Translate `text` into `lang` + Translate `text` into `lang`. ? + + If `text` is comma-separated, translate each term independently. + If no translation found, leave it untouched.
false
false
bin/proxy.py
proxy.py
wttr.in
chubin
third_party_acados_acados_template_acados_sim_solver.py
AcadosSimSolver.get
[ { "version": "v5", "docstring_lines": { "start_line": 384, "end_line": 390 }, "code_lines": { "start_line": 390, "end_line": 439 }, "commit_date_time": "2023-01-01 05:00:50", "commit_sha": "cd8e03d53ed210aec46a2ff728cb4a830314a21a", "commit_message": "move all...
def get(self, field_): - field = field_ - field = field.encode('utf-8') + field = field_.encode('utf-8') ? + - if field_ in self.gettable.keys(): ? ^^ ^ -- + if field_ in self.gettable_...
Get the last solution of the solver. - :param str field: string in ['x', 'u', 'z', 'S_forw', 'Sx', 'Su', 'S_adj', 'S_hess', 'S_algebraic'] + :param str field: string in ['x', 'u', 'z', 'S_forw', 'Sx', 'Su', 'S_adj', 'S_hess', 'S_algebraic', 'CPUtime', 'time_tot', 'ADtime', 'time_ad', 'LAtim...
false
false
third_party/acados/acados_template/acados_sim_solver.py
acados_sim_solver.py
openpilot
commaai
deepspeed_inference_v2_ragged_ragged_manager.py
DSStateManager.get_cache
[ { "version": "v1", "docstring_lines": { "start_line": 100, "end_line": 111 }, "code_lines": { "start_line": 111, "end_line": 117 }, "commit_date_time": "2023-11-03 22:07:35", "commit_sha": "38b41dffa1d593ad8a8ab3ee2795dc203800f08c", "commit_message": "DeepSpee...
- def get_cache(self, cache_id: int) -> torch.Tensor: + def get_cache(self, cache_id: int, cache_group: int = 0) -> torch.Tensor: ? ++++++++++++++++++++++ - return self._kv_cache.get_cache(cache_id) + return self._kv_cache.get_cache(cach...
- Return the Tensor associated with the given cache id. + Return the Tensor associated with the given cache id in the specified cache group. ? +++++++++++++++++++++++++++++ + + Arguments: + cache_group (str): The KV cache group. + cac...
false
false
deepspeed/inference/v2/ragged/ragged_manager.py
ragged_manager.py
DeepSpeed
microsoft
samcli_lib_providers_sam_stack_provider.py
SamLocalStackProvider.get_stacks
[ { "version": "v18", "docstring_lines": { "start_line": 202, "end_line": 229 }, "code_lines": { "start_line": 229, "end_line": 261 }, "commit_date_time": "2022-05-02 15:57:05", "commit_sha": "17d9abbe6e74a3f45bd65dcf61649440d89c15f1", "commit_message": "#3826: ...
def get_stacks( - template_file: str, + template_file: Optional[str] = None, ? +++++++++ ++++++++ stack_path: str = "", name: str = "", parameter_overrides: Optional[Dict] = None, global_parameter_overrides: Optional[Dict] = None, ...
Recursively extract stacks from a template file. Parameters ---------- template_file: str - the file path of the template to extract stacks from + the file path of the template to extract stacks from. Only one of either template_dict or template_file + ...
false
false
samcli/lib/providers/sam_stack_provider.py
sam_stack_provider.py
aws-sam-cli
aws
samcli_lib_providers_sam_stack_provider.py
SamLocalStackProvider.__init__
[ { "version": "v21", "docstring_lines": { "start_line": 202, "end_line": 232 }, "code_lines": { "start_line": 232, "end_line": 274 }, "commit_date_time": "2023-03-03 15:54:21", "commit_sha": "e3b382df18d8e80b1c3d06eecc34c5ee0977efa6", "commit_message": "bug: Al...
def __init__( self, template_file: str, stack_path: str, template_dict: Dict, parameter_overrides: Optional[Dict] = None, global_parameter_overrides: Optional[Dict] = None, + use_sam_transform: bool = True, ): ...
Initialize the class with SAM template data. The SAM template passed to this provider is assumed to be valid and a dictionary. This class will perform template normalization to remove structures like ``Globals``, resolve intrinsic functions etc. This class does not perform any syntactic ...
false
false
samcli/lib/providers/sam_stack_provider.py
sam_stack_provider.py
aws-sam-cli
aws
samcli_lib_providers_sam_stack_provider.py
SamLocalStackProvider._extract_stacks
[ { "version": "v6", "docstring_lines": { "start_line": 206, "end_line": 229 }, "code_lines": { "start_line": 229, "end_line": 255 }, "commit_date_time": "2021-03-03 03:28:38", "commit_sha": "af19bdbcb26a0950ab7a21a181ac0d9e0bf5083f", "commit_message": "feat: En...
- def _extract_stacks(self) -> Dict[str, Stack]: ? ^^^^^^^^^^^^^^^^ + def _extract_stacks(self) -> None: ? ^^^^ - - result: Dict[str, Stack] = {} for name, resource in self._resources.items(): ...
Extracts and returns nested application information from the given dictionary of SAM/CloudFormation resources. This method supports applications defined with AWS::Serverless::Application - :return dict(string : application): Dictionary of application LogicalId to the - Application object...
false
false
samcli/lib/providers/sam_stack_provider.py
sam_stack_provider.py
aws-sam-cli
aws
samcli_lib_providers_sam_stack_provider.py
SamLocalStackProvider.normalize_resource_path
[ { "version": "v8", "docstring_lines": { "start_line": 289, "end_line": 311 }, "code_lines": { "start_line": 311, "end_line": 314 }, "commit_date_time": "2021-03-09 00:30:43", "commit_sha": "ab3dcfae17f971cfbfea3f459ed872ba14cead83", "commit_message": "fix: Cod...
def normalize_resource_path(stack_file_path: str, path: str) -> str: if os.path.isabs(path): return path + + if os.path.islink(stack_file_path): + # os.path.realpath() always returns an absolute path while + # the return valu...
Convert resource paths found in nested stack to ones resolvable from root stack. For example, root stack -> template.yaml child stack -> folder/template.yaml a resource in child stack -> folder/resource the resource path is "re...
false
false
samcli/lib/providers/sam_stack_provider.py
sam_stack_provider.py
aws-sam-cli
aws
libs_core_langchain_core_runnables_branch.py
RunnableBranch.get_lc_namespace
[ { "version": "v10", "docstring_lines": { "start_line": 134, "end_line": 136 }, "code_lines": { "start_line": 136, "end_line": 153 }, "commit_date_time": "2023-12-06 23:02:29", "commit_sha": "77c38df36cf96f1a2050b56875690ac7088dd12d", "commit_message": "[core/m...
def get_lc_namespace(cls) -> List[str]: - return cls.__module__.split(".")[:-1] + return ["langchain", "schema", "runnable"]
- The namespace of a RunnableBranch is the namespace of its default branch. + Get the namespace of the langchain object.
false
false
libs/core/langchain_core/runnables/branch.py
branch.py
langchain
langchain-ai
data_structures_linked_list_print_reverse.py
print_reverse
[ { "version": "v2", "docstring_lines": { "start_line": 38, "end_line": 40 }, "code_lines": { "start_line": 40, "end_line": 56 }, "commit_date_time": "2019-11-14 18:59:43", "commit_sha": "5df8aec66cdd87b893a0ee17b97ca8684262f7f7", "commit_message": "GitHub Actio...
- def print_reverse(head_node): + def print_reverse(head_node: Node) -> None: ? ++++++ ++++++++ + + if head_node is not None and isinstance(head_node, Node): - - # If reached end of the List - if head_node is None: - return None - else: - # Recurs...
Prints the elements of the given Linked List in reverse order + >>> print_reverse([]) + >>> linked_list = make_linked_list([69, 88, 73]) + >>> print_reverse(linked_list) + 73 + 88 + 69
false
false
data_structures/linked_list/print_reverse.py
print_reverse.py
Python
TheAlgorithms
freqtrade_rpc_rpc.py
RPC.__rpc_analysed_dataframe_raw
[ { "version": "v449", "docstring_lines": { "start_line": 947, "end_line": 1082 }, "code_lines": { "start_line": 1082, "end_line": 1093 }, "commit_date_time": "2022-12-15 06:05:07", "commit_sha": "7a0eadbdf5013c967d45c185da510c231e11dbe9", "commit_message": "Don...
- def __rpc_analysed_dataframe_raw(self, pair: str, timeframe: str, - limit: Optional[int]) -> Tuple[DataFrame, datetime]: + def __rpc_analysed_dataframe_raw( + self, + pair: str, + timeframe: str, + limit: Optional[int] + ) -> Tuple[DataFrame, da...
Get the dataframe and last analyze from the dataprovider + + :param pair: The pair to get + :param timeframe: The timeframe of data to get + :param limit: The amount of candles in the dataframe
false
false
freqtrade/rpc/rpc.py
rpc.py
freqtrade
freqtrade
data_structures_linked_list_circular_linked_list.py
CircularLinkedList.delete_front
[ { "version": "v1", "docstring_lines": { "start_line": 151, "end_line": 166 }, "code_lines": { "start_line": 166, "end_line": 187 }, "commit_date_time": "2019-11-19 09:53:44", "commit_sha": "c57c4ca1a126871a2153cec6425cf19ed6ed1e49", "commit_message": "Adds ope...
def delete_front(self) -> None: if not self.head: raise IndexError("Deleting from an empty list") current_node = self.head if current_node.next_ptr == current_node: - self.head, self.length = None, 0 ? ...
Removes the 1st node from the CircularLinkedList >>> cll = CircularLinkedList() >>> cll.delete_front() Traceback (most recent call last): ... IndexError: Deleting from an empty list >>> cll.append(1) >>> cll.append(2) >>> print(f"{len(cll...
false
false
data_structures/linked_list/circular_linked_list.py
circular_linked_list.py
Python
TheAlgorithms
homeassistant_components_sia_sia_entity_base.py
SIABaseEntity.async_handle_event
[ { "version": "v8", "docstring_lines": { "start_line": 101, "end_line": 103 }, "code_lines": { "start_line": 103, "end_line": 112 }, "commit_date_time": "2022-02-03 23:06:30", "commit_sha": "faa8ac692e98c389b3cd96d8a4ff41a3e8b2d926", "commit_message": "Fix SIA ...
def async_handle_event(self, sia_event: SIAEvent) -> None: + _LOGGER.debug("Received event: %s", sia_event) if int(sia_event.ri) not in (self.zone, SIA_HUB_ZONE): return + + relevant_event = self.update_state(sia_event) + + if relevant_event: - ...
Listen to dispatcher events for this port and account and update state and attributes. + + If the event is for either the zone or the 0 zone (hub zone), then handle it further. + If the event had a code that was relevant for the entity, then update the attributes. + If the event had a code th...
false
false
homeassistant/components/sia/sia_entity_base.py
sia_entity_base.py
core
home-assistant
gym_wrappers_normalize.py
NormalizeObservation.__init__
[ { "version": "v13", "docstring_lines": { "start_line": 59, "end_line": 66 }, "code_lines": { "start_line": 66, "end_line": 74 }, "commit_date_time": "2022-08-23 15:09:54", "commit_sha": "3a8daafce113c6161190c0252c6a3a340cc38fd4", "commit_message": "Removing re...
- def __init__(self, env: gym.Env, epsilon: float = 1e-8, new_step_api: bool = False): ? ---------------------------- + def __init__(self, env: gym.Env, epsilon: float = 1e-8): - super().__init__(env, new_step_api) ? ...
This wrapper will normalize observations s.t. each coordinate is centered with unit variance. Args: env (Env): The environment to apply the wrapper epsilon: A stability parameter that is used when scaling the observations. - new_step_api (bool): Whether the wrapper...
false
false
gym/wrappers/normalize.py
normalize.py
gym
openai
homeassistant_components_withings_sensor.py
WithingsHealthSensor.state
[ { "version": "v13", "docstring_lines": { "start_line": 283, "end_line": 293 }, "code_lines": { "start_line": 293, "end_line": 300 }, "commit_date_time": "2020-04-08 18:57:42", "commit_sha": "ea709d06303ec98ccd68d324ed8ecf75aa634bac", "commit_message": "Remove ...
- def state(self) -> Union[str, int, float, None]: ? ------ + def state(self) -> Union[None, str, int, float]: ? ++++++ - return self._state + return self._state_data ? +++++
- Return the state of the sensor. ? - ^^^ + Return the state of the entity. ? ^^^^
false
false
homeassistant/components/withings/sensor.py
sensor.py
core
home-assistant
python_ray_serve_handle.py
_DeploymentResponseBase.cancel
[ { "version": "v91", "docstring_lines": { "start_line": 593, "end_line": 595 }, "code_lines": { "start_line": 595, "end_line": 598 }, "commit_date_time": "2023-08-30 13:17:42", "commit_sha": "1cb46faa9dc7da352e544b8c75f812e70c920af5", "commit_message": "[serve]...
def cancel(self): + if not self._assign_request_task.done(): - # TODO(edoakes): when actor task cancellation is supported, we should cancel - # the scheduled actor task here if the assign request task is done. - self._assign_request_task.cancel() + sel...
Attempt to cancel the `DeploymentHandle` call. - This is best effort and will only successfully cancel the call if it has not yet - been assigned to a replica actor. If the call is successfully cancelled, - subsequent operations on the ref will raise an `asyncio.CancelledError` (or a - ...
false
false
python/ray/serve/handle.py
handle.py
ray
ray-project
chainer_links_model_vision_googlenet.py
GoogLeNet.__call__
[ { "version": "v47", "docstring_lines": { "start_line": 225, "end_line": 259 }, "code_lines": { "start_line": 259, "end_line": 263 }, "commit_date_time": "2017-05-16 02:28:16", "commit_sha": "fbf91dd9a715282061cc9a91da6cace44d088f1e", "commit_message": "Remove ...
- def __call__(self, x, layers=['prob'], train=False): ? ^ ^^^^^^^ - + def __call__(self, x, layers=['prob'], **kwargs): ? ^^^^^ ^ + + argument.check_unexpected_kwargs( + kwargs, train='train ar...
+ __call__(self, x, layers=['prob']) + - Computes all the feature maps specified by ``layers``. + Computes all the feature maps specified by ``layers``. ? ++++++++ + + .. warning:: + + ``train`` argument is not supported anymore since v2. + Instead, use ``chainer.using_config('...
false
false
chainer/links/model/vision/googlenet.py
googlenet.py
chainer
chainer
chainer_links_model_vision_googlenet.py
GoogLeNet.extract
[ { "version": "v44", "docstring_lines": { "start_line": 221, "end_line": 244 }, "code_lines": { "start_line": 244, "end_line": 248 }, "commit_date_time": "2017-05-15 02:15:31", "commit_sha": "6a650c8793eaa5e81928a81fdb7a6571ec188ee5", "commit_message": "Remove ...
- def extract(self, images, layers=['pool5'], size=(224, 224), ? ^ + def extract(self, images, layers=['pool5'], size=(224, 224)): ? ^^ - volatile=flag.OFF): ...
Extracts all the feature maps of given images. The difference of directly executing ``__call__`` is that it directly accepts images as an input and automatically transforms them to a proper variable. That is, it is also interpreted as a shortcut method that implicitly calls ...
false
false
chainer/links/model/vision/googlenet.py
googlenet.py
chainer
chainer
End of preview. Expand in Data Studio

Dataset Card for CoDocBench: A Dataset for Code-Documentation Alignment in Software Maintenance

Dataset Sources

Citation

BibTeX:

@misc{pai2025codocbenchdatasetcodedocumentationalignment,
      title={CoDocBench: A Dataset for Code-Documentation Alignment in Software Maintenance}, 
      author={Kunal Pai and Premkumar Devanbu and Toufique Ahmed},
      year={2025},
      eprint={2502.00519},
      archivePrefix={arXiv},
      primaryClass={cs.SE},
      url={https://arxiv.org/abs/2502.00519}, 
}
Downloads last month
207

Paper for guineapig/codocbench