Repository Analysis

google-research/google-research

Google Research

15.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of google-research/google-research, a Jupyter Notebook project with 38,371 GitHub stars. SynthScan v2.0 examined 3,897,910 lines of code across 15004 source files, recording 41772 pattern matches distributed across 27 syntactic categories. The overall adjusted score of 15.8 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

15.8
Adjusted Score
15.8
Raw Score
100%
Time Factor
2026-07-11
Last Push
38.4K
Stars
Jupyter Notebook
Language
3.9M
Lines of Code
15.0K
Files
41.8K
Pattern Hits
2026-07-14
Scan Date
0.26
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 80HIGH 3861MEDIUM 1663LOW 36168

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 41772 distinct pattern matches across 27 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Cross-File Repetition2626 hits · 13130 pts
SeverityFileLineSnippetContext
HIGHfm4tlp/models/jodie.py0generates predictions from input edges. args: source_nodes: source nodes. target_nodes_pos: target nodes for positive edSTRING
HIGHfm4tlp/models/model_template.py0generates predictions from input edges. args: source_nodes: source nodes. target_nodes_pos: target nodes for positive edSTRING
HIGHfm4tlp/models/dyrep.py0generates predictions from input edges. args: source_nodes: source nodes. target_nodes_pos: target nodes for positive edSTRING
HIGHfm4tlp/models/tgn.py0generates predictions from input edges. args: source_nodes: source nodes. target_nodes_pos: target nodes for positive edSTRING
HIGHfm4tlp/models/edgebank.py0generates predictions from input edges. args: source_nodes: source nodes. target_nodes_pos: target nodes for positive edSTRING
HIGHfm4tlp/models/jodie.py0predicts memory embeddings from structural embeddings.STRING
HIGHfm4tlp/models/dyrep.py0predicts memory embeddings from structural embeddings.STRING
HIGHfm4tlp/models/tgn.py0predicts memory embeddings from structural embeddings.STRING
HIGHnigt_optimizer/nigt_optimizer.py0whether to do layer-wise learning rate adaptation for `param_name`.STRING
HIGHetcmodel/models/lamb_optimizer.py0whether to do layer-wise learning rate adaptation for `param_name`.STRING
HIGHmobilebert/lamb_optimizer.py0whether to do layer-wise learning rate adaptation for `param_name`.STRING
HIGHreadtwice/models/lamb_optimizer.py0whether to do layer-wise learning rate adaptation for `param_name`.STRING
HIGHsupcon/utils.py0whether to do layer-wise learning rate adaptation for `param_name`.STRING
HIGHrce/rce_agent.py0returns an op to initialize the agent. copies weights from the q networks to the target q network.STRING
HIGHc_learning/c_learning_agent.py0returns an op to initialize the agent. copies weights from the q networks to the target q network.STRING
HIGHreset_free_learning/agents/sac_agent.py0returns an op to initialize the agent. copies weights from the q networks to the target q network.STRING
HIGHrce/rce_agent.py0returns a train op to update the agent's networks. this method trains with the provided batched experience. args: experiSTRING
HIGHc_learning/c_learning_agent.py0returns a train op to update the agent's networks. this method trains with the provided batched experience. args: experiSTRING
HIGHreset_free_learning/agents/sac_agent.py0returns a train op to update the agent's networks. this method trains with the provided batched experience. args: experiSTRING
HIGHrce/rce_agent.py0performs a soft update of the target network parameters. for each weight w_s in the original network, and its correspondSTRING
HIGHc_learning/c_learning_agent.py0performs a soft update of the target network parameters. for each weight w_s in the original network, and its correspondSTRING
HIGHreset_free_learning/agents/sac_agent.py0performs a soft update of the target network parameters. for each weight w_s in the original network, and its correspondSTRING
HIGHreset_free_learning/agents/td3_agent.py0performs a soft update of the target network parameters. for each weight w_s in the original network, and its correspondSTRING
HIGHrce/rce_agent.py0get actions and corresponding log probabilities from policy.STRING
HIGHc_learning/c_learning_agent.py0get actions and corresponding log probabilities from policy.STRING
HIGHreset_free_learning/agents/sac_agent.py0get actions and corresponding log probabilities from policy.STRING
HIGHschema_guided_dst/baseline/train_and_predict.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHschema_guided_dst/baseline/extract_schema_embedding.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHcubert/run_classifier.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHcbertscore/bert_lib.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHsmith/input_fns.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHbam/data/preprocessing.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHdrfact/input_fns.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHetcmodel/models/hotpotqa/run_finetuning_lib.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHetcmodel/models/openkp/run_finetuning_lib.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHetcmodel/models/nq/run_nq_lib.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHetcmodel/models/wikihop/run_wikihop_lib.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHmobilebert/run_squad.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHmobilebert/run_pretraining.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHmobilebert/run_classifier.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHgoemotions/bert_classifier.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHgoemotions/learn_emotion_relations.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHreadtwice/models/run_pretraining_demo.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHreadtwice/models/hotpot_qa/run_finetuning.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHreadtwice/models/trivia_qa/run_finetuning.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHreadtwice/models/narrative_qa/run_finetuning.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHdocent/bert/run_pretraining.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHschema_guided_dst/baseline/data_utils.py0fake example so the num input examples is a multiple of the batch size. when running eval/predict on the tpu, we need toSTRING
HIGHcubert/run_classifier.py0fake example so the num input examples is a multiple of the batch size. when running eval/predict on the tpu, we need toSTRING
HIGHetcmodel/models/wikihop/data_utils.py0fake example so the num input examples is a multiple of the batch size. when running eval/predict on the tpu, we need toSTRING
HIGHmobilebert/run_classifier.py0fake example so the num input examples is a multiple of the batch size. when running eval/predict on the tpu, we need toSTRING
HIGHbam/data/preprocessing.py0fake example so the num input examples is a multiple of the batch size. when running eval/predict on the tpu, we need toSTRING
HIGHschema_guided_dst/baseline/data_utils.py0convert a set of `inputexample`s to a tfrecord file.STRING
HIGHcubert/run_classifier.py0convert a set of `inputexample`s to a tfrecord file.STRING
HIGHbam/data/preprocessing.py0convert a set of `inputexample`s to a tfrecord file.STRING
HIGHmobilebert/run_classifier.py0convert a set of `inputexample`s to a tfrecord file.STRING
HIGHgoemotions/bert_classifier.py0convert a set of `inputexample`s to a tfrecord file.STRING
HIGHgoemotions/learn_emotion_relations.py0convert a set of `inputexample`s to a tfrecord file.STRING
HIGHschema_guided_dst/baseline/bert/optimization.py0functions and classes related to optimization (weight updates).STRING
HIGHsmith/bert/optimization.py0functions and classes related to optimization (weight updates).STRING
2566 more matches not shown…
Unused Imports11407 hits · 11272 pts
SeverityFileLineSnippetContext
LOWfm4tlp/generate_subgraphs.py33CODE
LOWfm4tlp/generate_structural_features_pipeline.py30CODE
LOWfm4tlp/utils/communities.py20CODE
LOWfm4tlp/utils/train_test_helper.py29CODE
LOWfm4tlp/utils/train_test_helper.py30CODE
LOWfm4tlp/utils/train_test_helper.py33CODE
LOWfm4tlp/utils/train_test_helper.py34CODE
LOWfm4tlp/utils/train_test_helper.py35CODE
LOWfm4tlp/utils/train_test_helper.py36CODE
LOWfm4tlp/utils/negative_generator.py26CODE
LOWfm4tlp/utils/negative_generator.py27CODE
LOWfm4tlp/utils/pre_process.py21CODE
LOWfm4tlp/utils/dataset_pyg_transfer.py16CODE
LOWfm4tlp/utils/dataset_pyg_transfer.py16CODE
LOWfm4tlp/utils/dataset.py18CODE
LOWfm4tlp/utils/dataset.py18CODE
LOWfm4tlp/utils/dataset.py18CODE
LOWfm4tlp/utils/dataset.py18CODE
LOWfm4tlp/utils/utils.py23CODE
LOWfm4tlp/utils/evaluate.py19CODE
LOWfm4tlp/utils/dataset_transfer.py17CODE
LOWfm4tlp/utils/dataset_transfer.py17CODE
LOWfm4tlp/utils/dataset_transfer.py17CODE
LOWfm4tlp/utils/dataset_transfer.py20CODE
LOWfm4tlp/utils/dataset_pyg.py16CODE
LOWfm4tlp/utils/dataset_pyg.py16CODE
LOWfm4tlp/models/jodie.py18CODE
LOWfm4tlp/models/jodie.py21CODE
LOWfm4tlp/models/jodie.py23CODE
LOWfm4tlp/models/jodie.py30CODE
LOWfm4tlp/models/model_template.py20CODE
LOWfm4tlp/models/model_template.py23CODE
LOWfm4tlp/models/model_template.py25CODE
LOWfm4tlp/models/model_template.py26CODE
LOWfm4tlp/models/dyrep.py18CODE
LOWfm4tlp/models/dyrep.py21CODE
LOWfm4tlp/models/dyrep.py23CODE
LOWfm4tlp/models/dyrep.py30CODE
LOWfm4tlp/models/tgn.py18CODE
LOWfm4tlp/models/tgn.py21CODE
LOWfm4tlp/models/tgn.py23CODE
LOWfm4tlp/models/tgn.py30CODE
LOWfm4tlp/models/edgebank.py19CODE
LOWfm4tlp/models/edgebank.py23CODE
LOWfm4tlp/models/edgebank.py25CODE
LOWfm4tlp/models/edgebank.py27CODE
LOWfm4tlp/modules/decoder.py20CODE
LOWfm4tlp/modules/neighbor_loader.py18CODE
LOWfm4tlp/modules/early_stopping.py21CODE
LOWfm4tlp/modules/memory_module.py31CODE
LOWfm4tlp/modules/nodebank.py16CODE
LOWcola/contrastive.py22CODE
LOWcola/supervised.py19CODE
LOWledge/networks.py21CODE
LOWledge/utils.py20CODE
LOWnigt_optimizer/nigt_test.py18CODE
LOWnigt_optimizer/nigt_test.py19CODE
LOWnigt_optimizer/nigt_test.py20CODE
LOWnigt_optimizer/nigt_optimizer.py23CODE
LOWnigt_optimizer/nigt_optimizer.py24CODE
11347 more matches not shown…
Over-Commented Block10810 hits · 10738 pts
SeverityFileLineSnippetContext
LOWcompile_protos.sh1#!/bin/bashCOMMENT
LOW__init__.py1# coding=utf-8COMMENT
LOWfm4tlp/experiment_config.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_wiki_subgraph_prep.py1# coding=utf-8COMMENT
LOWfm4tlp/model_config.py1# coding=utf-8COMMENT
LOWfm4tlp/generate_structural_features_pipeline_array.py1# coding=utf-8COMMENT
LOWfm4tlp/get_embedding_correlation.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_comment_dataprep.py1# coding=utf-8COMMENT
LOWfm4tlp/generate_subgraphs.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_review_dataprep.py1# coding=utf-8COMMENT
LOWfm4tlp/test.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_review_subgraph_prep.py1# coding=utf-8COMMENT
LOWfm4tlp/generate_structural_features_pipeline.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_flight_negatives.py1# coding=utf-8COMMENT
LOWfm4tlp/train.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_comment_subgraph_prep.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_wiki_dataprep.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_coin_subgraph_prep.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_flight_dataprep.py1# coding=utf-8COMMENT
LOWfm4tlp/tgbl_coin_dataprep.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/negative_sampler.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/communities.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/train_test_helper.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/negative_generator.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/pre_process.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/dataset_pyg_transfer.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/dataset.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/utils.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/evaluate.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/structural_feature_helper.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/dataset_transfer.py1# coding=utf-8COMMENT
LOWfm4tlp/utils/dataset_pyg.py1# coding=utf-8COMMENT
LOWfm4tlp/models/jodie.py1# coding=utf-8COMMENT
LOWfm4tlp/models/model_template.py1# coding=utf-8COMMENT
LOWfm4tlp/models/all_models.py1# coding=utf-8COMMENT
LOWfm4tlp/models/dyrep.py1# coding=utf-8COMMENT
LOWfm4tlp/models/tgn.py1# coding=utf-8COMMENT
LOWfm4tlp/models/edgebank.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/decoder.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/edgebank_predictor.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/emb_module.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/time_enc.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/heuristics.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/message_agg.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/neighbor_loader.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/early_stopping.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/message_func.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/structural_mapper.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/memory_module.py1# coding=utf-8COMMENT
LOWfm4tlp/modules/nodebank.py1# coding=utf-8COMMENT
LOWcola/contrastive.py1# coding=utf-8COMMENT
LOWcola/constants.py1# coding=utf-8COMMENT
LOWcola/run.sh1#!/bin/bashCOMMENT
LOWcola/network.py1# coding=utf-8COMMENT
LOWcola/supervised.py1# coding=utf-8COMMENT
LOWcola/main.py1# coding=utf-8COMMENT
LOWcola/data.py1# coding=utf-8COMMENT
LOWledge/functions.py1# coding=utf-8COMMENT
LOWledge/ledge.py1# coding=utf-8COMMENT
LOWledge/run.sh1#!/bin/bashCOMMENT
10750 more matches not shown…
Hyper-Verbose Identifiers9041 hits · 9131 pts
SeverityFileLineSnippetContext
LOWfm4tlp/utils/communities.py26def _sample_community_cluster(CODE
LOWfm4tlp/utils/communities.py60def _get_edges_in_time_interval(CODE
LOWfm4tlp/utils/communities.py74def _enough_edges_in_interval(CODE
LOWfm4tlp/utils/communities.py109def get_community_cluster_nodes(CODE
LOWfm4tlp/utils/train_test_helper.py47def normalize_structural_features(CODE
LOWfm4tlp/utils/train_test_helper.py417def split_for_warmstart_quantile(test_data, warmstart_quantile):STRING
LOWfm4tlp/utils/train_test_helper.py426def split_for_warmstart_batches(test_data, batch_fraction, batch_size):STRING
LOWfm4tlp/utils/negative_generator.py91 def generate_negative_samples(STRING
LOWfm4tlp/utils/negative_generator.py126 def generate_negative_samples_rnd(STRING
LOWfm4tlp/utils/negative_generator.py201 def generate_historical_edge_set(STRING
LOWfm4tlp/utils/negative_generator.py238 def generate_negative_samples_hist_rnd(STRING
LOWfm4tlp/utils/utils.py85def _compute_total_structural_feature_mean_std(CODE
LOWfm4tlp/utils/utils.py117def _compute_total_structural_feature_dimension(CODE
LOWfm4tlp/utils/utils.py199def _get_structural_measurement_filepath_from_model_path(STRING
LOWfm4tlp/utils/utils.py210def save_structural_feature_measurement(STRING
LOWfm4tlp/utils/utils.py222def load_structural_feature_measurement(STRING
LOWfm4tlp/utils/structural_feature_helper.py248def subgraph_isomorphism_vertex_counts(edge_index, **kwargs):STRING
LOWfm4tlp/utils/structural_feature_helper.py426 def get_all_automorphism_counts(self, nx_graph):STRING
LOWfm4tlp/models/jodie.py320 def predict_memory_embeddings(CODE
LOWfm4tlp/models/model_template.py148 def predict_memory_embeddings(CODE
LOWfm4tlp/models/model_template.py153 def initialize_memory_embedding(CODE
LOWfm4tlp/models/dyrep.py310 def predict_memory_embeddings(CODE
LOWfm4tlp/models/tgn.py289 def predict_memory_embeddings(CODE
LOWfm4tlp/models/edgebank.py189 def predict_memory_embeddings(CODE
LOWfm4tlp/modules/edgebank_predictor.py130 def _update_time_window_memory(STRING
LOWcola/network.py88def get_efficient_net_encoder(input_shape, pooling):CODE
LOWcola/supervised.py59 def _prepare_standard_example(self, example, is_training):CODE
LOWcola/supervised.py78 def _prepare_downstream_task_data(self):CODE
LOWcola/data.py71def extract_log_mel_spectrogram(waveform,CODE
LOWpersistent-nature/utils/soat_util.py69def bilinear_interpolate_features(feature00, feature01, feature10, feature11):CODE
LOWpersistent-nature/utils/camera_util.py127def get_full_image_parameters(CODE
LOWmentormix/code/cifar_data_provider.py137def _apply_with_random_selector(x, func, num_cases):CODE
LOWmentormix/code/utils.py46def summarize_data_utilization(v, tf_global_step, batch_size, epsilon=0.001):CODE
LOWmentormix/code/utils.py189def loss_thresholding_function(loss, para_lambda=0.75):CODE
LOWmentormix/code/utils.py400def get_mentornet_network_hyperparameter(checkpoint_path):CODE
LOWrce/rce_agent.py656 def _critic_loss_debug_summaries(self, td_targets, pred_td_targets1,CODE
LOWrce/rce_agent.py671 def _actor_loss_debug_summaries(self, actor_loss, actions, log_pi,CODE
LOWrce/train_eval.py295 def _filter_invalid_transition(trajectories, unused_arg1):CODE
LOWschema_guided_dst/metrics.py186def get_active_intent_accuracy(frame_ref, frame_hyp):CODE
LOWschema_guided_dst/metrics.py244def get_average_and_joint_goal_accuracy(frame_ref, frame_hyp, service,CODE
LOWschema_guided_dst/metrics_test.py63 def _assert_dicts_almost_equal(self, ref_dict, other_dict):CODE
LOWschema_guided_dst/metrics_test.py68 def test_active_intent_accuracy(self):CODE
LOWschema_guided_dst/metrics_test.py114 def test_average_and_joint_goal_accuracy(self):CODE
LOWschema_guided_dst/schema.py101 def get_categorical_slot_values(self, slot):CODE
LOWschema_guided_dst/schema.py110 def get_categorical_slot_from_id(self, slot_id):CODE
LOWschema_guided_dst/schema.py113 def get_non_categorical_slot_from_id(self, slot_id):CODE
LOWschema_guided_dst/schema.py116 def get_categorical_slot_value_from_id(self, slot_id, value_id):CODE
LOWschema_guided_dst/schema.py120 def get_categorical_slot_value_id(self, slot, value):CODE
LOWschema_guided_dst/baseline/pred_utils.py118def write_predictions_to_file(predictions, input_json_files, schema_json_file,CODE
LOWschema_guided_dst/baseline/train_and_predict.py163def _file_based_input_fn_builder(dataset_config, input_dial_file,CODE
LOWschema_guided_dst/baseline/train_and_predict.py569 def _get_categorical_slot_goals(self, features):CODE
LOWschema_guided_dst/baseline/train_and_predict.py597 def _get_noncategorical_slot_goals(self, features):CODE
LOWschema_guided_dst/baseline/train_and_predict.py714def _create_schema_embeddings(bert_config, schema_embedding_file,CODE
LOWschema_guided_dst/baseline/data_utils.py73class Dstc8DataProcessor(object):CODE
LOWschema_guided_dst/baseline/data_utils.py121 def _create_examples_from_dialog(self, dialog, schemas, dataset):CODE
LOWschema_guided_dst/baseline/data_utils.py153 def _create_examples_from_turn(self, turn_id, system_utterance,CODE
LOWschema_guided_dst/baseline/data_utils.py530 def make_copy_with_utterance_features(self):CODE
LOWschema_guided_dst/baseline/data_utils.py621def file_based_convert_examples_to_features(dial_examples, dataset_config,CODE
LOWschema_guided_dst/baseline/extract_schema_embedding.py258 def _get_intents_input_features(self, service_schema):CODE
LOWschema_guided_dst/baseline/extract_schema_embedding.py286 def _get_req_slots_input_features(self, service_schema):CODE
8981 more matches not shown…
Docstring Block Structure1146 hits · 5718 pts
SeverityFileLineSnippetContext
HIGHfm4tlp/utils/negative_sampler.py103For each positive edge in `pos_batch` returns a list of negative edges. `split_mode` specifies whether the valiatioSTRING
HIGHfm4tlp/utils/structural_feature_helper.py179Computes the automorphism group of a given substructure and the orbit partition of the vertices of the substructure. STRING
HIGHfm4tlp/utils/structural_feature_helper.py249Computes the number of subgraph isomorphisms for each vertex in a graph. Parameters: edge_index: the edge indexSTRING
HIGHpersistent-nature/utils/midas.py23Read pfm file. Args: path (str): path to file Returns: tuple: (data, scale) Raises: ExceptionSTRING
HIGHmentormix/code/cifar_data_provider.py52Provides batches of CIFAR images for resnet. Args: dataset_name: Eiether 'cifar10' or 'cifar100'. split_name:STRING
HIGHmentormix/code/cifar_data_provider.py117Given a dataset name and a split_name returns a Dataset. Args: name: String, name of the dataset. split_name:STRING
HIGHmentormix/code/cifar_data_provider.py157Distort the color of the image. Each color distortion is non-commutative and thus ordering of the color ops mattersSTRING
HIGHmentormix/code/cifar100_dataset.py61Gets a dataset tuple with instructions for reading cifar100. Args: split_name: A train/test split name. datasSTRING
HIGHmentormix/code/cifar_train_mentormix.py117Function that takes a gradient step and specifies whether to stop. Args: sess: The current session. train_op:STRING
HIGHmentormix/code/cifar10_dataset.py60Gets a dataset tuple with instructions for reading cifar10. Args: split_name: A train/test split name. dataseSTRING
HIGHrce/rce_agent.py250Returns a train op to update the agent's networks. This method trains with the provided batched experience. ArSTRING
HIGHschema_guided_dst/baseline/data_utils.py96Return a list of `InputExample`s of the data splits' dialogues. Args: dataset: str. can be "train", "dev", orSTRING
HIGHschema_guided_dst/baseline/bert/modeling.py299Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the actSTRING
HIGHschema_guided_dst/baseline/bert/modeling.py456Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_sizSTRING
HIGHschema_guided_dst/baseline/bert/modeling.py705Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attentioSTRING
HIGHschema_guided_dst/baseline/bert/modeling.py848Multi-headed, multi-layer Transformer from "Attention is All You Need". This is almost an exact implementation of theSTRING
HIGHloss_functions_transfer/resnet_model.py79DropBlock: a regularization method for convolutional neural networks. DropBlock is a form of structured dropout, wherSTRING
HIGHloss_functions_transfer/resnet_model.py375Generator for ResNet v1 models. Args: block_fn: `function` for the block to use within the model. Either STRING
HIGHmusiq/model/preprocessing.py306Gets the preprocessing function for Multiscale Image Quality Transformer. The output preprocessing function expects aSTRING
HIGHoptimizing_interpretability/regularizers.py188Computes the specified regularization loss. Args: regularizer: string name of the penalty to apply. logits: tSTRING
HIGHoptimizing_interpretability/metrics_utils.py26Checks if two image tensors are compatible for metric computation. This function checks if two sets of images have raSTRING
HIGHoptimizing_interpretability/imagenet/resnet_model.py86Strided 2-D convolution with explicit padding. The padding is consistent and is based only on `kernel_size`, not on tSTRING
HIGHoptimizing_interpretability/imagenet/utils.py23Transformation of a single image by adding noise. If a random gaussian distribution of noisy is specified (noise='r_nSTRING
HIGHoptimizing_interpretability/imagenet/utils.py102Formats metrics to be callable as tf.summary scalars on tpu's. Args: *dicts: A set of metric dictionaries, contaiSTRING
HIGH…fied_exemplars/pie_dataset_gen/imagenet_predictions.py63Outputs predictions as a pandas dataframe. Args: directory_path: The path to the directory where dataset is storeSTRING
HIGHpruning_identified_exemplars/pruning_tools/pruning.py376Updates the mask for a given weight tensor for magnitude based pruning. This functions first computes the cdf of thSTRING
HIGHpruning_identified_exemplars/pruning_tools/pruning.py424Randomly identifies subset of weights to be set to zero in the network. If pruning method is specified as 'randoSTRING
HIGHpruning_identified_exemplars/pruning_tools/pruning.py487Performs block-granular masking of the weights. Block pruning occurs only if the block_height or block_width is > 1STRING
HIGH…ng_identified_exemplars/pruning_tools/pruning_utils.py99Expands a 2D tensor by replicating the tensor values. This is equivalent to the kronecker product of the tensor and aSTRING
HIGH…ng_identified_exemplars/pruning_tools/pruning_utils.py172Performs m x n pooling through a combination of 1xm and 1xn pooling. Args: input_tensor: Input tensor. Must be raSTRING
HIGH…ng_identified_exemplars/pruning_tools/pruning_layer.py41Returns an initializer that generates tensors without scaling variance. When initializing a deep network, it is in prSTRING
HIGHpruning_identified_exemplars/utils/resnet_model.py125Strided 2-D convolution with explicit padding. The padding is consistent and is based only on `kernel_size`, not on tSTRING
HIGHcompositional_rl/gwob/CoDE/web_environment.py363Visit an element with a given value. Element HTML ids uniquely define a concept for each page. An example would STRING
HIGHcompositional_rl/gwob/CoDE/web_environment.py526Run the action in the WoB environment and get observation and reward. There are two types of actions: (i) (AbstraSTRING
HIGHcompositional_rl/gwob/CoDE/web_observation_wrappers.py95Generate dom element sequence from a given observation. Args: obs: Observation from WoB environment state. loSTRING
HIGHcompositional_rl/gwob/CoDE/web_observation_wrappers.py173Wrap intersection between profile and dom elements. For each profile field key and value tokens (such as ["first", "nSTRING
HIGHcompositional_rl/gwob/CoDE/web_observation_wrappers.py329Wrap a given observation into numpy arrays. Args: obs: Observation from WoB environment state. structured_fieSTRING
HIGHcompositional_rl/gwob/CoDE/base_web_environment.py463Run the action in the WoB environment. The main purpose of the 'step' function is to convert the input action into STRING
HIGHcompositional_rl/gwob/CoDE/base_web_environment.py622Execute miniwob level action on the miniwob environment. Args: miniwob_action: A Low level miniwob action thaSTRING
HIGHcompositional_rl/gwob/CoDE/vocabulary_node.py124Add words to the global vocabulary until a specified limit. Args: words_to_add: A list of words to add to theSTRING
HIGHcompositional_rl/gwob/CoDE/utils.py296Generate a click or keyboard action. Args: dom_elements: A list of dom elements. action_type: Type of the actSTRING
HIGHcompositional_rl/gwob/CoDE/utils.py327Return a list of dom attributes. Args: dom_element: A dom element. num_attributes: If given, use this many aSTRING
HIGHcompositional_rl/gwob/CoDE/utils.py351Tokenize and indexify a dom element. Args: dom_element: A dom element instance. local_vocabulary: A dictionarSTRING
HIGHmeta_reward_learning/semantic_parsing/nsm/data_utils.py534Helper function for pack_nest_as. Args: structure: Substructure (tuple of elements and/or tuples) to mimic flSTRING
HIGHmeta_reward_learning/semantic_parsing/nsm/data_utils.py565Returns a given flattened sequence packed into a nest. If `structure` is a scalar, `flat_sequence` must be a single-eSTRING
HIGHmeta_reward_learning/semantic_parsing/nsm/data_utils.py623Applies `func` to each entry in `structure` and returns a new structure. Applies `func(x[0], x[1], ...)` where x[i] iSTRING
HIGH…_reward_learning/semantic_parsing/nsm/model_factory.py128Run the TF graph for one pass through the data in feed_dict. Args: fetch_list: A list of the names of the nodSTRING
HIGHmeta_reward_learning/semantic_parsing/nsm/tf_utils.py268Linear map: sum_i(args[i] * W[i]), where W[i] is a variable. Args: args: a 2D Tensor or a list of 2D, batch x n, STRING
HIGHdp_topk/experiment.py170Computes 25th, 50th, and 75th percentile errors and times for each method. Args: item_counts: Array of item countSTRING
HIGHdp_topk/joint.py99Computes array of log(sequence count) for each diff in diff_matrix. Args: diff_matrix: Matrix of distinct count dSTRING
HIGHdp_topk/joint.py148Numerically stable method for sampling from an exponential distribution. Args: log_terms: Array of terms of form STRING
HIGHdp_topk/joint.py197Computes max values from (simulated) draws from the expo distribution. Args: expo_lambda: Exponential distributioSTRING
HIGHdp_topk/joint.py235Samples an index of sorted_diffs according to permute-and-flip (PNF). Args: log_diff_counts: Array of log(# sequeSTRING
HIGHgfsa/sparse_operator.py162Pad the number of entries in the operator's `nonzero` axis. We can always expand an operator by adding new entries STRING
HIGHgfsa/generic_ast_graphs.py220Converts a generic AST into a graph POMDP. The graph returned by this function will conform to the schema produced bySTRING
HIGHgfsa/jax_util.py171Register a dataclass as a JAX pytree and a flax serializable object. This makes it so that wrapped dataclasses can beSTRING
HIGHgfsa/ast_spec_inference.py163Infers an AST spec compatible with all observations. Since nonterminal information is not available when looking at oSTRING
HIGHgfsa/training/train_util.py103Train the model for one step in parallel across devices. Args: optimizer: Optimizer that tracks the model and parSTRING
HIGHgfsa/training/simple_runner.py188Run the main training loop. Args: optimizer: Initial optimizer object. Also responsible for tracking the model STRING
HIGHgfsa/datasets/data_loading.py115Batch together elements from source. Args: source: Iterable of elements. batch_dim_sizes: Prefix of the shapeSTRING
1086 more matches not shown…
Deep Nesting2738 hits · 2656 pts
SeverityFileLineSnippetContext
LOWfm4tlp/utils/communities.py109CODE
LOWfm4tlp/utils/train_test_helper.py64CODE
LOWfm4tlp/utils/train_test_helper.py193CODE
LOWfm4tlp/utils/train_test_helper.py438CODE
LOWfm4tlp/utils/negative_generator.py238CODE
LOWfm4tlp/utils/pre_process.py95CODE
LOWfm4tlp/utils/pre_process.py176CODE
LOWfm4tlp/utils/pre_process.py260CODE
LOWfm4tlp/utils/pre_process.py382CODE
LOWfm4tlp/utils/pre_process.py510CODE
LOWfm4tlp/utils/utils.py117CODE
LOWfm4tlp/utils/structural_feature_helper.py375CODE
LOWfm4tlp/utils/dataset_transfer.py91CODE
LOWfm4tlp/modules/edgebank_predictor.py161CODE
LOWfm4tlp/modules/memory_module.py481CODE
LOWcola/main.py78CODE
LOWledge/ledge.py110CODE
LOWscrna_benchmark/compute_metrics.py147CODE
LOWwarmstart_graphcut_image_segmentation/warmstart.py37CODE
LOW…start_graphcut_image_segmentation/imagesegmentation.py181CODE
LOW…start_graphcut_image_segmentation/imagesegmentation.py244CODE
LOWwarmstart_graphcut_image_segmentation/augmentingPath.py38CODE
LOWpersistent-nature/utils/soat_util_triplane.py127CODE
LOWpersistent-nature/utils/soat_util_triplane.py234CODE
LOWpersistent-nature/utils/soat_util_triplane.py310CODE
LOWpersistent-nature/utils/show.py63CODE
LOWpersistent-nature/utils/soat_util.py141CODE
LOWaloe/aloe/rfill/main_supervised.py57CODE
LOWaloe/aloe/rfill/editor.py79CODE
LOWaloe/aloe/rfill/editor.py190CODE
LOWaloe/aloe/rfill/sampler.py145CODE
LOWaloe/aloe/rfill/main_editor.py66CODE
LOWaloe/aloe/rfill/utils/program_struct.py26CODE
LOWaloe/aloe/rfill/utils/rfill_grammar_short.py29CODE
LOWaloe/aloe/rfill/utils/rfill_grammar_short.py50CODE
LOWaloe/aloe/common/pytorch_util.py99CODE
LOWaloe/aloe/common/synthetic/dataset.py36CODE
LOWaloe/aloe/common/synthetic/toy_data_gen.py24CODE
LOWaloe/aloe/synthetic/reverse_train.py78CODE
LOWaloe/aloe/synthetic/reverse_train.py115CODE
LOWmentormix/code/cifar_train_mentormix.py153CODE
LOWrce/rce_envs.py43CODE
LOWrce/rce_envs.py276CODE
LOWschema_guided_dst/metrics.py129CODE
LOWschema_guided_dst/evaluate.py81CODE
LOWschema_guided_dst/evaluate.py102CODE
LOWschema_guided_dst/baseline/pred_utils.py35CODE
LOWschema_guided_dst/baseline/train_and_predict.py752CODE
LOWschema_guided_dst/baseline/data_utils.py204CODE
LOWschema_guided_dst/baseline/data_utils.py565CODE
LOWschema_guided_dst/baseline/bert/tokenization.py99CODE
LOWschema_guided_dst/baseline/bert/tokenization.py119CODE
LOWschema_guided_dst/baseline/bert/tokenization.py337CODE
LOWschema_guided_dst/baseline/bert/modeling.py298CODE
LOWschema_guided_dst/baseline/bert/modeling.py837CODE
LOWschema_guided_dst/multiwoz/create_data_from_multiwoz.py164CODE
LOWschema_guided_dst/multiwoz/create_data_from_multiwoz.py244CODE
LOWschema_guided_dst/multiwoz/create_data_from_multiwoz.py397CODE
LOWschema_guided_dst/multiwoz/create_data_from_multiwoz.py463CODE
LOWschema_guided_dst/multiwoz/create_data_from_multiwoz.py476CODE
2678 more matches not shown…
Decorative Section Separators770 hits · 2542 pts
SeverityFileLineSnippetContext
MEDIUMfm4tlp/get_embedding_correlation.py128 # ==========STRING
MEDIUMfm4tlp/get_embedding_correlation.py129 # ==========STRING
MEDIUMfm4tlp/get_embedding_correlation.py130 # ==========STRING
MEDIUMfm4tlp/get_embedding_correlation.py142 # ==========STRING
MEDIUMfm4tlp/test.py187 # ==========STRING
MEDIUMfm4tlp/test.py188 # ==========STRING
MEDIUMfm4tlp/test.py189 # ==========STRING
MEDIUMfm4tlp/test.py201 # ==========STRING
MEDIUMfm4tlp/train.py191 # ==========STRING
MEDIUMfm4tlp/train.py192 # ==========STRING
MEDIUMfm4tlp/train.py193 # ==========STRING
MEDIUMfm4tlp/train.py209 # ==========STRING
MEDIUMpersistent-nature/utils/camera_util.py165# --------------------------------------------------------------------COMMENT
MEDIUMpersistent-nature/utils/camera_util.py243# --------------------------------------------------------------------COMMENT
MEDIUMpersistent-nature/utils/camera_util.py299# --------------------------------------------------------------------COMMENT
MEDIUMpersistent-nature/utils/sky_util.py24# --------------------------------------------------------------------------COMMENT
MEDIUMpersistent-nature/utils/sky_util.py100# --------------------------------------------------------------------------COMMENT
MEDIUMpersistent-nature/models/misc/networks.py22# -------------------------------------------------------------------------------------COMMENT
MEDIUMmentormix/code/cifar_data_provider.py29# ==============================================================================COMMENT
MEDIUMmentormix/code/training_mentormix_command.sh14# ==============================================================================COMMENT
MEDIUMmentormix/code/cifar100_dataset.py29# ==============================================================================COMMENT
MEDIUMmentormix/code/resnet_model.py29# ==============================================================================COMMENT
MEDIUMmentormix/code/cifar_train_mentormix.py29# ==============================================================================COMMENT
MEDIUMmentormix/code/utils.py29# ==============================================================================COMMENT
MEDIUMmentormix/code/cifar_eval.py29# ==============================================================================COMMENT
MEDIUMmentormix/code/cifar10_dataset.py29# ==============================================================================COMMENT
MEDIUMgfsa/automaton_builder_test.py805 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py808 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py811 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py814 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py834 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py839 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py844 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py849 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py870 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py873 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py876 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py879 # -----------------COMMENT
MEDIUMgfsa/automaton_builder_test.py884 # -----------------COMMENT
MEDIUMugsl/tfgnn_datasets.py29# ==============================================================================COMMENT
MEDIUMaav/util/residue_encoding.py29# ==============================================================================COMMENT
MEDIUMaav/util/model_utils.py29# ==============================================================================COMMENT
MEDIUMaav/util/config.py29# ==============================================================================COMMENT
MEDIUMaav/util/mutation_encoding.py29# ==============================================================================COMMENT
MEDIUMaav/util/dataset_utils.py29# ==============================================================================COMMENT
MEDIUMaav/util/inference_utils.py29# ==============================================================================COMMENT
MEDIUMaav/model_training/train_utils.py29# ==============================================================================COMMENT
MEDIUMaav/model_training/lr.py29# ==============================================================================COMMENT
MEDIUMaav/model_training/cnn.py29# ==============================================================================COMMENT
MEDIUMaav/model_training/train.py29# ==============================================================================COMMENT
MEDIUMaav/model_training/rnn.py29# ==============================================================================COMMENT
MEDIUMsimpdom/block_lstm.py29# ==============================================================================COMMENT
MEDIUMfast_gradient_clipping/src/custom_registry_functions.py393 # ----------------------COMMENT
MEDIUMfast_gradient_clipping/src/custom_registry_functions.py395 # ----------------------COMMENT
MEDIUMfast_gradient_clipping/src/custom_registry_functions.py440 # ------------------------------COMMENT
MEDIUMfast_gradient_clipping/src/custom_registry_functions.py442 # ------------------------------COMMENT
MEDIUMfast_gradient_clipping/src/custom_registry_functions.py487 # ------------------------COMMENT
MEDIUMfast_gradient_clipping/src/custom_registry_functions.py489 # ------------------------COMMENT
MEDIUMimp/max/projects/imp/config/model.py27# ----------------------------------------------------------------------COMMENT
MEDIUMimp/max/projects/imp/config/model.py29# ----------------------------------------------------------------------COMMENT
710 more matches not shown…
Self-Referential Comments466 hits · 1376 pts
SeverityFileLineSnippetContext
MEDIUMpersistent-nature/utils/soat_util_triplane.py402 # Create a batch of rays for volume renderingCOMMENT
MEDIUMmentormix/code/cifar_train_mentormix.py187 # Define the model:COMMENT
MEDIUMmentormix/code/cifar_train_mentormix.py325 # Create an initial assignment function.COMMENT
MEDIUMmentormix/code/cifar_eval.py103 # Define the model:COMMENT
MEDIUMmentormix/code/cifar_eval.py126 # Define the metrics:COMMENT
MEDIUMschema_guided_dst/baseline/pred_utils.py111 # Create a new dict to avoid overwriting the state in previous turnsCOMMENT
MEDIUMschema_guided_dst/baseline/data_utils.py173 # Create an example for this service.COMMENT
MEDIUMschema_guided_dst/baseline/bert/modeling.py508 # Create the variable outside the assertion to avoid TF2 compatibilityCOMMENT
MEDIUMschema_guided_dst/multiwoz/create_data_from_multiwoz.py814 # Create a new json file and save the dialogues.COMMENT
MEDIUMjrl/evaluation/__init__.py92 # Create the run loop and return it.COMMENT
MEDIUMmulti_resolution_rec/model_test.py111 with self.test_session(graph=tf.Graph()) as sess: # Create a new graph.CODE
MEDIUM…fied_exemplars/pie_dataset_gen/generate_pie_dataset.py59 # Create a single Session to run all image coding calls.COMMENT
MEDIUM…positional_rl/gwob/examples/web_environment_example.py43 # Create a generic web environment to which we will add primitives andCOMMENT
MEDIUM…positional_rl/gwob/examples/web_environment_example.py65 # Create a shopping website design with difficulty = 3.COMMENT
MEDIUM…_reward_learning/semantic_parsing/nsm/graph_factory.py330 # Create the update op for theta (model parameters)COMMENT
MEDIUM…_reward_learning/semantic_parsing/nsm/graph_factory.py343 # Create the meta training lossCOMMENT
MEDIUMmeta_reward_learning/semantic_parsing/nsm/data_utils.py495# The following code are copied from TensorFlow source code.COMMENT
MEDIUMmeta_reward_learning/textworld/lib/model.py249 # Create a trainable weight variable for this layer.COMMENT
MEDIUMgfsa/model/automaton_layer_test.py79 # Create a simple schema and empty encoded graph.COMMENT
MEDIUMmave/benchmark/models/crf_layer.py16# This file is branched from 'tensorflow_addons/layers/crf.py'COMMENT
MEDIUMmave/benchmark/models/crf_utils.py16# This file is branched from 'tensorflow_addons/text/crf.py'COMMENT
MEDIUMaav/model_training/cnn.py136 # Define a scope for reusing the variablesCOMMENT
MEDIUMsimpdom/extract_xpaths.py396 # Define the fixed-text nodes and variable nodes.COMMENT
MEDIUMimp/max/core/utils.py789 # Create an empty array with full expected shapeCOMMENT
MEDIUMimp/max/modeling/attention.py164 # Create a OHE of the current index. NOTE: the index is increased below.COMMENT
MEDIUMimp/max/execution/config.py116 # Create a random seed based on the current time and process toCOMMENT
MEDIUMimp/max/execution/executors.py606 # Initialize model variablesCOMMENT
MEDIUMdpok/train_online_pg.py1476 # Create the pipeline using the trained modules and save it.COMMENT
MEDIUMlow_rank_local_connectivity/data_provider.py35 # Create a mask variable to track the real vs padded data in the last batch.COMMENT
MEDIUMlow_rank_local_connectivity/data_provider.py193 # Create a mask variable to track the real vs padded data in the last batch.COMMENT
MEDIUMjaxbarf/install.sh5# Create the virtual environment.COMMENT
MEDIUM…aph_compression/compression_lib/compression_op_test.py517 # Create a compression object using the compression hyperparametersCOMMENT
MEDIUM…ompression_lib/examples/cifar10/cifar10_compression.py30 # Create a graph to run one step of training with respect to the loss.STRING
MEDIUM…ompression_lib/examples/cifar10/cifar10_compression.py157 # Create a compression object using the compression hyperparametersCOMMENT
MEDIUM…sion/compression_lib/examples/cifar10/cifar10_input.py117 # Create a queue that shuffles the examples, and thenCOMMENT
MEDIUM…sion/compression_lib/examples/cifar10/cifar10_input.py158 # Create a queue that produces the filenames to read.COMMENT
MEDIUM…sion/compression_lib/examples/cifar10/cifar10_input.py231 # Create a queue that produces the filenames to read.COMMENT
MEDIUM…sion/compression_lib/examples/cifar10/cifar10_train.py59 # Create a compression object using the compression hyperparametersCOMMENT
MEDIUMhct/tests/test_ndp.py39 # Create a small modelCOMMENT
MEDIUMhct/tests/test_ndp.py114 # Create a batch of data, split across devicesCOMMENT
MEDIUMsparse_soft_topk/_src/isotonic_pav.py448 # Define the expected shape & dtype of output.COMMENT
MEDIUMsparse_soft_topk/_src/isotonic_pav.py917 # Define the expected shape & dtype of output.COMMENT
MEDIUMcaql/caql_agent_test.py76 # Create an agent, train 17 steps, and save a checkpoint.COMMENT
MEDIUMcaql/caql_agent_test.py109 # Create an agent and restore TF variables from the checkpoint.COMMENT
MEDIUMk_norm/ellipse_plot.py26# The following code computes the mean squared l_2 norms of samples from theCOMMENT
MEDIUMk_norm/ellipse_plot.py48# The following code plots the data generated by the two experiments above, on aCOMMENT
MEDIUMk_norm/k_norm_plot.py30# The following code computes the mean squared l_2 norms of samples from theCOMMENT
MEDIUMk_norm/k_norm_plot.py81# The following code is similar to the Sum code above but uses the Count ball.COMMENT
MEDIUMk_norm/k_norm_plot.py127# The following code is similar to the Sum code above, but uses the Vote ball.COMMENT
MEDIUMk_norm/k_norm_plot.py173# The following code plots the data generated by the three experiments above, onCOMMENT
MEDIUMsmu/pipeline.py830 # Create a collection of molecules with duplicate informationCOMMENT
MEDIUMsmu/parser/smu_utils_lib.py29"""This class provides shared utilities for parsing and writing SMU7 files."""STRING
MEDIUMsmu/parser/smu_parser_lib.py245 # This function is the only one that uses gfile.COMMENT
MEDIUMara_optimization/synthetic_dataset.py465 # Create a CSV fileCOMMENT
MEDIUMvila/coca_vila_layers.py158 # Create the unimodal transformer layers.COMMENT
MEDIUMvila/coca_vila_layers.py176 # Create the crossmodal transformer layers.COMMENT
MEDIUMfrmt/lexical_accuracy.py289 # Create a single row for each source language term.COMMENT
MEDIUMtask_set/tasks/losg_problems/problem_generator.py321 # Define the network as a list of weight + bias shapes for each layer.COMMENT
MEDIUMtask_set/tasks/losg_problems/problem_generator.py469 # Create a mesh over the given coordinate ranges.COMMENT
MEDIUMgraphqa/graph_task_generator.py214 # Defining a task on the graphsCOMMENT
406 more matches not shown…
AI Structural Patterns1172 hits · 1130 pts
SeverityFileLineSnippetContext
LOWfm4tlp/utils/pre_process.py51CODE
LOWfm4tlp/utils/dataset_pyg_transfer.py193CODE
LOWfm4tlp/utils/dataset_pyg_transfer.py218CODE
LOWfm4tlp/utils/dataset_pyg.py222CODE
LOWfm4tlp/utils/dataset_pyg.py247CODE
LOWfm4tlp/modules/structural_mapper.py33CODE
LOWledge/functions.py67CODE
LOWnigt_optimizer/nigt_optimizer.py35CODE
LOWpersistent-nature/utils/regularizers.py51CODE
LOWpersistent-nature/utils/utils.py55CODE
LOWpersistent-nature/utils/filters.py137CODE
LOWaloe/aloe/rfill/utils/rfill_parser.py176CODE
LOWrce/rce_agent.py51CODE
LOWrce/train_eval.py98CODE
LOWschema_guided_dst/baseline/bert/modeling.py377CODE
LOWschema_guided_dst/baseline/bert/modeling.py542CODE
LOWschema_guided_dst/baseline/bert/modeling.py446CODE
LOWschema_guided_dst/baseline/bert/modeling.py692CODE
LOWschema_guided_dst/baseline/bert/modeling.py837CODE
LOWschema_guided_dst/baseline/bert/modeling.py36CODE
LOWschema_guided_dst/baseline/bert/modeling.py106CODE
LOWlearn_to_infer/eval_gmm.py71CODE
LOWlearn_to_infer/eval_gmm.py94CODE
LOWlearn_to_infer/ring_models.py34CODE
LOWlearn_to_infer/run_lda.py82CODE
LOWlearn_to_infer/run_lda.py116CODE
LOWlearn_to_infer/transformer.py210CODE
LOWlearn_to_infer/run_gmm.py92CODE
LOWlearn_to_infer/run_gmm.py115CODE
LOWlearn_to_infer/run_gmm.py141CODE
LOWlearn_to_infer/train.py42CODE
LOWlearn_to_infer/gmm_models.py34CODE
LOWlearn_to_infer/gmm_models.py164CODE
LOWlearn_to_infer/gmm_models.py300CODE
LOWlearn_to_infer/lda_models.py68CODE
LOWlearn_to_infer/lda_models.py127CODE
LOWlearn_to_infer/run_ncp.py81CODE
LOWjrl/agents/msg/networks.py274CODE
LOWjrl/agents/msg/learning.py64CODE
LOWjrl/agents/snr/learning.py66CODE
LOWjrl/agents/bc/learning.py52CODE
LOWjrl/agents/cql/learning.py56CODE
LOWjrl/agents/batch_ensemble_msg/learning.py62CODE
LOWjrl/utils/logger_utils.py74CODE
LOWmusiq/model/multiscale_transformer_utils.py141CODE
LOWmulti_resolution_rec/modules.py154CODE
LOWcascaded_networks/models/dense_blocks.py64CODE
LOWcascaded_networks/models/dense_blocks.py88CODE
LOWcascaded_networks/models/densenet.py168CODE
LOWcascaded_networks/models/resnet.py163CODE
LOWcascaded_networks/models/layers.py120CODE
LOWcascaded_networks/models/layers.py141CODE
LOWcascaded_networks/models/layers.py197CODE
LOWcascaded_networks/models/layers.py218CODE
LOWpruning_identified_exemplars/pruning_tools/pruning.py204CODE
LOW…ning_identified_exemplars/pruning_tools/core_layers.py50CODE
LOW…ning_identified_exemplars/pruning_tools/core_layers.py211CODE
LOW…ng_identified_exemplars/pruning_tools/pruning_layer.py173CODE
LOW…ng_identified_exemplars/pruning_tools/pruning_layer.py230CODE
LOWpruning_identified_exemplars/utils/resnet_model.py25CODE
1112 more matches not shown…
Hallucination Indicators80 hits · 905 pts
SeverityFileLineSnippetContext
CRITICALprivate_text_transformers/private_t5x/tasks.py80for b in tfds.text.glue.Glue.builder_configs.values():CODE
CRITICAL…logue_ope/airdialogue_ope/modeling/modeling_roberta.py103 self.roberta_qnet.embeddings.token_type_embeddings.weight.data.zero_()CODE
CRITICALsmu/parser/smu_parser_lib.py669 self._molecule.opt_geo.brot.val.extend(float(x) for x in values)CODE
CRITICAL…llm-intrinsic-reward/trl/models/modeling_value_head.py136 self.v_head.summary.weight.data.normal_(mean=0.0, std=initializer_range)STRING
CRITICAL…llm-intrinsic-reward/trl/models/modeling_value_head.py137 self.v_head.summary.bias.data.zero_()STRING
CRITICAL…llm-intrinsic-reward/trl/models/modeling_value_head.py391 self.v_head.summary.weight.data.normal_(mean=0.0, std=initializer_range)STRING
CRITICAL…llm-intrinsic-reward/trl/models/modeling_value_head.py392 self.v_head.summary.bias.data.zero_()STRING
CRITICALpostproc_fairness/utils/load_adult.py314 encoded_feature = tf.keras.layers.experimental.preprocessing.HashedCrossing(CODE
CRITICALpostproc_fairness/utils/load_adult.py321 encoded_feature = tf.keras.layers.experimental.preprocessing.HashedCrossing(CODE
CRITICAL…ation/centralized_so_nwp/stackoverflow_basis_models.py113 return tf.compat.v1.nn.rnn_cell.LSTMStateTuple(self._num_units,CODE
CRITICALgenomics_ood/images_ood/utils.py34 dataset = tf.compat.v1.data.Dataset.from_tensor_slices(CODE
CRITICALgenomics_ood/images_ood/train.py133 tf.compat.v1.keras.backend.set_session(sess)STRING
CRITICALgenomics_ood/images_ood/eval.py110 tf.compat.v1.keras.backend.set_session(sess)CODE
CRITICALieg/models/basemodel.py317 tf.compat.v2.profiler.experimental.start(CODE
CRITICALieg/models/basemodel.py329 tf.compat.v2.profiler.experimental.stop()CODE
CRITICALdistracting_control/background.py242 with self._env.physics.contexts.gl.make_current() as ctx:CODE
CRITICALgift/pipelines/multi_env_end2end.py136 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/multi_env_end2end.py264 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/multi_env_domain_adversarial.py48 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/multi_env_domain_adversarial.py224 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/gradual_adaptation_with_mixup.py87 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/gradual_adaptation_with_mixup.py289 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/multi_env_manifold_mixup.py35 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/multi_env_manifold_mixup.py171 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/multi_env_trainer.py77 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/multi_env_trainer.py257 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALgift/pipelines/self_adaptive_trainer.py232 map(int, self.task.dataset.data_iters.validation.keys()))CODE
CRITICALkws_streaming/layers/non_scaling_dropout_test.py30 tf.compat.v1.keras.backend.set_session(self.sess)CODE
CRITICALkws_streaming/layers/non_scaling_dropout_test.py35 tf.compat.v1.keras.backend.clear_session()CODE
CRITICALkws_streaming/layers/quantize.py143 scheme = tfmot.quantization.keras.experimental.default_n_bit.DefaultNBitQuantizeScheme(CODE
CRITICALkws_streaming/models/utils.py687 converter = tf.compat.v2.lite.TFLiteConverter.from_saved_model(CODE
CRITICAL…tein_universe/evaluation/model_performance_analysis.py146 with tf.io.tf.io.gfile.GFile(filename, 'r') as f:CODE
CRITICALstructured_multihashing/README.md35 net = tf.compat.v2.keras.layers.Conv2D(CODE
CRITICALstructured_multihashing/README.md37 net = tf.compat.v2.keras.layers.MaxPool2D(CODE
CRITICALstructured_multihashing/README.md39 net = tf.compat.v2.keras.layers.Flatten()(net)CODE
CRITICALstructured_multihashing/README.md40 logits = tf.compat.v2.keras.layers.Dense(10)(net)CODE
CRITICALstructured_multihashing/README.md140 net = tf.compat.v2.keras.layers.Conv2D(CODE
CRITICALstructured_multihashing/README.md142 net = tf.compat.v2.keras.layers.MaxPool2D(CODE
CRITICALstructured_multihashing/README.md144 net = tf.compat.v2.keras.layers.Flatten()(net)CODE
CRITICALstructured_multihashing/README.md145 logits = tf.compat.v2.keras.layers.Dense(10)(net)CODE
CRITICALsifer/learning/algorithms.py249 self.aux_network.featurizer.network.conv1.parameters(),CODE
CRITICALsifer/learning/algorithms.py250 self.aux_network.featurizer.network.bn1.parameters(),CODE
CRITICALsifer/learning/algorithms.py251 self.aux_network.featurizer.network.layer1.parameters(),CODE
CRITICALsifer/learning/algorithms.py252 self.aux_network.featurizer.network.layer2.parameters(),CODE
CRITICALsifer/learning/algorithms.py253 self.aux_network.featurizer.network.layer3.parameters(),CODE
CRITICALsifer/learning/algorithms.py254 self.aux_network.featurizer.network.layer4.parameters(),CODE
CRITICALsifer/models/networks.py133 tmp = self.network.conv1.weight.data.clone()CODE
CRITICALsifer/models/networks.py188 tmp = self.network.conv1.weight.data.clone()CODE
CRITICALuq_benchmark_2019/experiment_utils.py233 return tf.compat.v1.distribute.experimental.ParameterServerStrategy()CODE
CRITICALl2tl/svhn_data/svhn_small.py95 data = tfds.core.lazy_imports.scipy.io.loadmat(f)CODE
CRITICALgenerative_trees/src/Generator_Node.java193 true); // Feature.copyOf((Feature) gt.myBoost.myDomain.myDS.features.elementAt(fni),CODE
CRITICAL…ormer_modifications/transformer_modifications/tasks.py87for b in tfds.text.super_glue.SuperGlue.builder_configs.values():CODE
CRITICALfactors_of_influence/fids/berkeley_deep_drive.py211 file_names = tf.io.tf.io.gfile.listdir(test_path)CODE
CRITICALtempered_boosting/PoincareDiskEmbedding.java111 == boss.myViewer.myExperiments.myAlgos.all_algorithms.elementAt(index_algorithm_plot)CODE
CRITICALtempered_boosting/PoincareDiskEmbedding.java122 == boss.myViewer.myExperiments.myAlgos.all_algorithms.elementAt(index_algorithm_plot)CODE
CRITICALtempered_boosting/PoincareDiskEmbedding.java132 if (boss.myViewer.myExperiments.myAlgos.all_algorithms.size() > 0) {CODE
CRITICALtempered_boosting/PoincareDiskEmbedding.java134 if (nextAlg == boss.myViewer.myExperiments.myAlgos.all_algorithms.size()) nextAlg = 0;CODE
CRITICALtempered_boosting/DecisionTreeNode.java124 for (i = 0; i < myTree.myBoost.myDomain.myDS.features.size(); i++) {CODE
CRITICALtempered_boosting/DecisionTreeNode.java127 ((Feature) myTree.myBoost.myDomain.myDS.features.elementAt(i)).type))) {CODE
CRITICALtempered_boosting/DecisionTreeNode.java132 ((Feature) myTree.myBoost.myDomain.myDS.features.elementAt(i)).tests.size()));CODE
20 more matches not shown…
AI Slop Vocabulary264 hits · 702 pts
SeverityFileLineSnippetContext
MEDIUMaloe/aloe/rfill/utils/rfill_parser.py16"""Parser for robust fill language."""STRING
MEDIUMaloe/aloe/common/configs.py82#robust fillCOMMENT
LOWschema_guided_dst/baseline/bert/modeling.py315 # function, so we just return it.COMMENT
MEDIUMmusiq/model/resnet.py133 if isinstance(num_layers, list): # Be robust to silly mistakes.CODE
MEDIUMcompositional_rl/gwob/CoDE/q_networks.py195 # Apply dropout on the value. Essentially, this allows ignoring the valueCOMMENT
LOW…ward_learning/semantic_parsing/nsm/executor_factory.py618 # entity, otherwise just use hop.COMMENT
MEDIUMrobust_loss/distribution.py225 r"""Draw samples from the robust distribution.STRING
MEDIUMsimpdom/models.py409 # Reshape the shape into three dims to facilitate the tf.matmul.COMMENT
MEDIUMTimesX/dataset_agent/modules/module_01_trends.py48 """Create a robust TrendReq instance with optional proxy and retry mechanisms.STRING
MEDIUMTimesX/dataset_agent/modules/module_01_trends.py236 # Check if this is a rate limit error and we haven't switched to robust mode yetCOMMENT
MEDIUMTimesX/dataset_agent/modules/module_01_trends.py244 # Switch to robust pytrends instanceCOMMENT
MEDIUMTimesX/dataset_agent/modules/module_01_trends.py252 # Retry the failed keyword with robust instanceCOMMENT
MEDIUMTimesX/dataset_agent/modules/module_01_trends.py262 # Additional delay for robust modeCOMMENT
MEDIUMTimesX/dataset_agent/modules/module_01_trends.py300 # Either not a rate limit error or already in robust modeCOMMENT
MEDIUMpolicy_eval/train_eval.py244 # Doubly-robust is effectively the same as importance-weighting butCOMMENT
MEDIUMara_optimization/synthetic_dataset.py80 # support, we utilize the following equation:COMMENT
LOWtask_set/variable_replace.py132 # If there is no initializer set, just use the initial value.COMMENT
LOWdata_selection/wmt/clf_infer.py166 # the targets were decoded above so just use the ones that were decodedCOMMENT
MEDIUMstudy_recommend/datasource.py327 # We get the indices of sequences pertaining to the current student thatCOMMENT
MEDIUMstudy_recommend/datasource.py329 # n is the number of sequences pertaining to the current student.COMMENT
MEDIUMdvrl/main_corrupted_sample_discovery.py16"""Main experiment for corrupted sample discovery and robust learning.STRING
MEDIUMeli5_retrieval_large_lm/utils.py210 # Definitely unnecessary. (len(list(matches)) > 0 felt ugly.)COMMENT
MEDIUM…sion/experiments/language/architectures/transformer.py166 # If we utilize a context, only the embeddings for the data need to beCOMMENT
MEDIUMsmerf/smerf/internal/baking.py526 # TODO(duckworthd): Use pjitter_rays to leverage all devices.COMMENT
LOWmico/dm_control/dbc_agent.py159 # covariance matrix, we can just use l2.COMMENT
MEDIUMhyperbolic/utils/train.py43 """Maps FLAGS to dictionnary in order to save it in json format."""STRING
MEDIUMweak_disentangle/tensorsketch/modules/base.py271 # We leverage isinstance to properly handle edge-case whereCOMMENT
MEDIUMdp_posets/sensitivity_space_sampler_test.py220 # `ground_set` is listed in reversed order to facilitate `order` andCOMMENT
LOWpvn/offline.py377 # If we don't have a mesh just use regular jitCOMMENT
LOWpvn/offline.py436 # If we don't have a mesh just use regular jitCOMMENT
MEDIUMbetum_tool/models/yolo26/scripts/parse_output.py88 # Also add stripped stem for robust matching with weird spacing namesCOMMENT
MEDIUMbetum_tool/models/owlv2/losses.py153 # This logic is made robust to a potential off-by-one error inCOMMENT
LOWsmith/bert/modeling.py485 # function, so we just return it.COMMENT
MEDIUMxirl/sac/wrappers.py281 # like to use it in conjunction with the learned reward.COMMENT
LOW…g_prediction/eq_mag_prediction/ingestion/ingest_jma.py100 # instead I3, 2X whatever that means. We just use the integer and ignore theCOMMENT
LOWbam/bert/modeling.py300 # function, so we just return it.COMMENT
MEDIUMmol_dqn/experimental/deep_q_networks_noise.py187 # It will makes the optimization robust.COMMENT
MEDIUMmol_dqn/experimental/deep_q_networks_noise.py524 # It will makes the optimization robust.COMMENT
MEDIUMmol_dqn/chemgraph/dqn/deep_q_networks.py197 # It will makes the optimization robust.COMMENT
MEDIUMm_theory/dim4/so8_supergravity_extrema/code/algebra.py355 # even in conjunction with high-accuracy numerics(!). However,STRING
MEDIUMm_theory/dim4/so8/src/dyonic.py607 # We only resort to very robust methods for writing out dataCOMMENT
MEDIUMm_theory/dim1/papers/gamma_bth/gamma11.py201 # We henceforth call the left spinor-index on Gamma^I_AB the "row-index",COMMENT
MEDIUMm_theory/m_theory_lib/algebra.py519 # even in conjunction with high-accuracy numerics(!). However,STRING
LOWm_theory/m_theory_lib/m_util.py1134 # there on. This breaks if we just return the cached vector -COMMENT
MEDIUMcnn_quantization/tf_cnn_benchmarks/benchmark_cnn.py545# NOTE: collective_all_reduce in conjunction with use_fp16 canCOMMENT
LOWetcmodel/tensor_utils.py62 # are statically known. Otherwise, just use -1.COMMENT
LOWetcmodel/tensor_utils.py702 # function, so we just return it.COMMENT
LOWetcmodel/feature_utils.py288 # We just use `make_segmented_att_mask` to constrain attention within unmaskedCOMMENT
LOWbisimulation_aaai2020/grid_world/grid_world.py685 # Otherwise we just use the last evaluation metric.COMMENT
MEDIUMcovid_epidemiology/src/constants.py224# static features pertaining to county-level modelsCOMMENT
LOWquantile_regression/qr_lib_gasthaus.py106 # Can't just use exclusive=True since we need L+1 elements.COMMENT
MEDIUMuflow/uflow_utils.py621 """The so-called robust loss used by DDFlow."""STRING
LOWwidget_caption/widget_caption_input.py37 # If indices is empty (no valid tokens/annotations), just use the index 0,COMMENT
LOW…pretability/experiments/saving_litm_interpretations.py401 if not found: # just pass all instances throughCODE
LOWvideo_structure/dynamics.py379 # If we have only 1 sample, we can just return that:COMMENT
LOWmobilebert/run_squad.py542 # "Japanese", we just use "Japanese" as the annotation. This is fairly rareCOMMENT
LOWmobilebert/run_squad.py942 # just create a nonce prediction in this case to avoid failure.COMMENT
LOWmobilebert/run_squad.py1021 # can fail in certain cases in which case we just return `orig_text`.COMMENT
LOWmobilebert/modeling.py430 # function, so we just return it.COMMENT
LOWprotseq/protseq_analysis.py153 # Sometimes files are empty, just return empty Counter.COMMENT
204 more matches not shown…
Excessive Try-Catch Wrapping435 hits · 576 pts
SeverityFileLineSnippetContext
MEDIUMcompositional_rl/compwob/fields.py35def extractor(utterance):CODE
MEDIUMcompositional_rl/compwob/fields.py48def get_field_extractor(task_name):CODE
LOWcompositional_rl/compwob/fields.py39 except Exception as exc:CODE
LOWcompositional_rl/compwob/fields.py2569 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…ward_learning/semantic_parsing/nsm/executor_factory.py581 except Exception as e:CODE
LOW…ward_learning/semantic_parsing/nsm/computer_factory.py238 except Exception as e:CODE
MEDIUM…ward_learning/semantic_parsing/nsm/computer_factory.py239 print('Error: ', e)CODE
LOW…ward_learning/semantic_parsing/nsm/computer_factory.py303 except Exception as e:CODE
LOWmeta_reward_learning/textworld/lib/helpers.py159 except Exception as e:CODE
MEDIUMf_divergence_tests/test_two_samples.py227 print('Error: Invalid JSON string for divergence parameters.')CODE
LOWtable_rag/utils/execute.py108 except Exception:CODE
LOWtable_rag/utils/execute.py119 except Exception as e:CODE
LOWtable_rag/agent/model.py99 except Exception as e:CODE
LOWtable_rag/agent/rag_agent.py39 except Exception as e:CODE
LOWtable_rag/agent/rag_agent.py67 except Exception as e:CODE
MEDIUMtable_rag/agent/agent.py167 print('Error: table is too large.')CODE
LOWstacked_capsule_autoencoders/eval_mnist_model.py133 except Exception as err: # pylint: disable=broad-exceptCODE
LOWstacked_capsule_autoencoders/train.py222 except Exception as err: # pylint: disable=broad-exceptCODE
MEDIUM…ope/airdialogue_model_transformer/generate_ope_data.py226 print('Error IDs: ', errorids)CODE
LOWdialogue_ope/airdialogue_ope/modeling/utils.py143 except Exception:CODE
MEDIUMdialogue_ope/airdialogue_ope/data/convai2/eval.py162 print('Error IDs: ', errorids)CODE
LOW…ssion/compression_lib/examples/cifar10/cifar10_eval.py122 except Exception as e: # pylint: disable=broad-exceptCODE
LOWTimesX/dataset_agent/orchestrator.py439 except Exception as e:CODE
LOWTimesX/dataset_agent/orchestrator.py505 except Exception as e:CODE
LOWTimesX/dataset_agent/orchestrator.py559 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py81 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py158 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py258 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py334 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py494 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py552 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py710 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py767 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py1077 except Exception as e:CODE
LOWTimesX/dataset_agent/event_pipeline.py1235 except Exception as e:CODE
MEDIUMTimesX/dataset_agent/modules/module_04_events.py43def _classify_customsearch_error(response):CODE
LOWTimesX/dataset_agent/modules/module_04_events.py46 except Exception:CODE
LOWTimesX/dataset_agent/modules/module_04_events.py404 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/module_04_events.py535 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/module_04_events.py770 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/module_04_events.py1190 except Exception as crawl_error:CODE
LOWTimesX/dataset_agent/modules/module_04_events.py1212 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/module_04_events.py1391 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/module_04_events.py1612 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/module_04_events.py1774 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/module_04_events.py1022 except Exception as e:STRING
LOWTimesX/dataset_agent/modules/task_runtime.py101 except Exception:CODE
LOWTimesX/dataset_agent/modules/module_01_trends.py230 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/module_01_trends.py293 except Exception as retry_error:CODE
LOWTimesX/dataset_agent/modules/module_01_trends.py334 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/llm_retry_handler.py121 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/llm_retry_handler.py161 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/llm_retry_handler.py219 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/llm_retry_handler.py259 except Exception as e:CODE
LOW…mesX/dataset_agent/modules/module_06_peak_discovery.py160 except Exception as e:CODE
LOW…mesX/dataset_agent/modules/module_06_peak_discovery.py254 except Exception as e:CODE
LOWTimesX/dataset_agent/modules/evidence_cleaning.py146 except Exception:CODE
LOWTimesX/dataset_agent/modules/evidence_cleaning.py156 except Exception as exc:CODE
LOWTimesX/dataset_agent/modules/llm_handler.py134 except Exception as e:STRING
LOWTimesX/dataset_agent/modules/llm_handler.py338 except Exception as e:CODE
375 more matches not shown…
Cross-Language Confusion80 hits · 405 pts
SeverityFileLineSnippetContext
HIGHjaxraytrace/vector.py77 return self / self.length()CODE
HIGHebp/ebp/common/cmd_args.py54 help='type for gradient norm (lp1 || norm2)')CODE
HIGHebp/ebp/common/cmd_args.py117 help='type for flows (planar || ires)')CODE
HIGHebp/ebp/common/cmd_args.py122 help='form of flows (param || hyper)')CODE
HIGHebp/ebp/common/cmd_args.py214 '-net_type', type=str, default='mlp', help='type for vae (cnn || mlp)')CODE
HIGHTimesX/dataset_agent/modules/llm_handler.py233 "content_date": null,CODE
HIGHTimesX/dataset_agent/modules/llm_handler.py254 "content_date": null,CODE
HIGHstudy_recommend/utils/input_pipeline_utils.py246 # If either value is undefined, put the student in their own classroomCOMMENT
HIGHneutra/ebm/train_ebm.py198 """KL[P || Q].STRING
HIGHneutra/ebm/train_ebm.py220 """KL[Q || U].STRING
HIGHneutra/ebm/train_ebm.py244 """KL[Q || U].STRING
HIGHneutra/ebm/train_ebm.py268 """alpha KL[Q || U] + beta KL[data || Q].STRING
HIGHneutra/ebm/train_ebm.py320 """KL[data || Q].STRING
HIGHlinear_dynamical_systems/experiments.py78 'is comma separated. E.g. `0.9,0.1 0.5,0.1`. When null, generate random 'STRING
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py42 (dnf_lib.Clause(3, 2, False, False), '(x_2 || x_3)'),CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py45 (dnf_lib.Clause(4, 5, True, False), '(!x_4 || x_5)'),CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py189 self.assertIn('(x_0 || x_2)', str(dnf))CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py271 ('(x_32 || x_0)', dnf_lib.Clause(0, 32, False, False)),CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py273 ('(!x_11 || x_12)', dnf_lib.Clause(11, 12, True, False)),CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py284 ('x_0 || x_1)'),CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py285 ('x_0 || x_1'),CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py286 ('(!!x_3 || x_5)'),CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py287 ('(!x_3 || x_4 || x_5)')CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py306 'Number of Literals: 24, DNF: (!x_0 || x_1)',CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py310 'Number of Literals: 5, DNF:(x_2 || x_4) && (x_3 || !x_1)',CODE
HIGHbangbang_qaoa/two_sat/dnf_lib_test.py322 ('Number of Literals: 5, DNF: (x_0 || x_1) && ')CODE
HIGHbangbang_qaoa/two_sat/dnf_lib.py102 An example would be: (!x_0 || x_5)STRING
HIGHetcmodel/layers/recompute_grad.py47 return _context_stack.push(self)CODE
HIGHetcmodel/models/wikihop/data_utils.py118 max_heap.push((index, num_sentences))CODE
HIGHetcmodel/models/wikihop/data_utils.py211 max_heap.push((index, num_sentences if num_sentences > 0 else 0))CODE
HIGHcovid_epidemiology/src/feature_preprocessing.py110 for each location will be set to this value if it is null.STRING
HIGHcovid_epidemiology/src/feature_preprocessing.py145 for each location will be set to this value if it is null.STRING
HIGH…iology/src/models/definitions/base_model_definition.py863 value for each location will be set to this value if it is null.STRING
HIGHipagnn/lib/setup.py98 same_config = config_utils.equals(config.model, original_config.model)CODE
HIGHipagnn/lib/setup.py110 same_config = config_utils.equals(config.dataset, original_config.dataset)CODE
HIGHipagnn/lib/config_utils_test.py44 self.assertTrue(config_utils.equals(config, restored_config))CODE
HIGHipagnn/lib/config_utils_test.py47 self.assertFalse(config_utils.equals(config, restored_config))CODE
HIGHipagnn/lib/config_utils_test.py56 self.assertTrue(config_utils.equals(config, restored_config))CODE
HIGHgraph_sampler/graph_sampler/graph_sampler.py220 self._num_graphs_stats.push(importance * weight)CODE
HIGHgraph_sampler/graph_sampler/graph_sampler.py221 self._importance_stats.push(importance)CODE
HIGHgraph_sampler/graph_sampler/graph_sampler.py222 self._weight_stats.push(weight)CODE
HIGHsymbolic_functionals/syfes/dataset/dataset.py478 if not pd.DataFrame.equals(CODE
HIGHreadtwice/layers/recompute_grad.py47 return _context_stack.push(self)CODE
HIGHdpsgd_batch_sampler_accounting/balls_and_bins.py351 The hockey stick divergence D_{e^eps}(P || Q) is given bySTRING
HIGHdpsgd_batch_sampler_accounting/monte_carlo_estimator.py78 """Returns the smallest p s.t. KL(q || p) >= kl_bound or 1 if none exists."""STRING
HIGHdpsgd_batch_sampler_accounting/monte_carlo_estimator.py161 Then for `p` such that KL(q/C || p/C) * n >= log(1 / error_prob), we haveSTRING
HIGHdpsgd_batch_sampler_accounting/monte_carlo_estimator.py167 Pr[(X_1 + ... + X_n) / n <= q] <= exp(-KL(q || m) n).STRING
HIGHdpsgd_batch_sampler_accounting/monte_carlo_estimator.py169 such that KL(q || m) > KL(q || p) >= log(1 / error_prob) / n.STRING
HIGHcorrect_batch_effects_wdn/io_utils_test.py47 self.assertTrue(actual.equals(df))CODE
HIGH…nnotate_protein_universe/hmm_blast_baselines/phmmer.py74 # Here we discard the normal stdout of phmmer with -o /dev/null, as we don'tSTRING
HIGHcamp_zipnerf/tests/render_test.py113 basis = jnp.linalg.svd(null)[0][:, :2]CODE
HIGHcamp_zipnerf/internal/math.py66 """Make plus_eps()'s gradient a no-op (nextafter's gradient is undefined)."""STRING
HIGHcamp_zipnerf/internal/math.py72 """Make minus_eps()'s gradient a no-op (nextafter's gradient is undefined)."""STRING
HIGHaptamers_mlpd/util/selection.py404 If template_sequence is undefined, generates a sane default.STRING
HIGHaptamers_mlpd/simulation/pool.py370 return (self.aptamers.equals(other.aptamers)CODE
HIGHyobo/multiscope_renderer.py445 self.spl.push(self.get_kf())CODE
HIGHyobo/internal/math.py67 """Make plus_eps()'s gradient a no-op (nextafter's gradient is undefined)."""STRING
HIGHyobo/internal/math.py73 """Make minus_eps()'s gradient a no-op (nextafter's gradient is undefined)."""STRING
HIGH…guided_symbolic_regression/utils/postprocessor_test.py275 stack.push('x')CODE
HIGHlighthouse/data_loader.py106 self.timestamp, [0], [self.length()], strides=[stride]),CODE
20 more matches not shown…
Redundant / Tautological Comments201 hits · 293 pts
SeverityFileLineSnippetContext
LOWschema_guided_dst/multiwoz/create_data_from_multiwoz.py492 # Check if the utterance mentions any phrases that are semantically same asCOMMENT
LOWcompositional_rl/gwob/CoDE/web_environment.py204 page) not in selected_designs: # Check if design is duplicate.CODE
LOWgfsa/schema_util.py52 # Check if the list of edges with this type exists and is non-emptyCOMMENT
LOWgfsa/automaton_builder_test.py425 # Set another to sum to less than 1.COMMENT
LOWpsycholab/game.py507 # Check if no wall or (unpassable + unpushable) object:COMMENT
LOWpsycholab/game.py558 # Check if it is an unpassable/unpushable player who stays:COMMENT
LOWimp/max/optimization/objectives.py902 # Check if the objective modalities exist in the common spaceCOMMENT
LOWimp/max/utils/sharding.py153 # Check if this sequence has valid membersCOMMENT
LOWimp/max/utils/sharding.py159 # Check if a member of the sequence is a valid sharding super-axis.COMMENT
LOWimp/max/modeling/garden/imp.py1148 # Check if the dataflow exists in the inputdataCOMMENT
LOWimp/max/modeling/garden/imp.py2138 # Check if the dataflow exists in the inputdataCOMMENT
LOWimp/max/execution/executors.py252 # Check if the leaf-of-interest is scalar or non-scalarCOMMENT
LOWimp/max/execution/checkpointing.py563 # Check if the shapes of the array on disk match the expected shape basedCOMMENT
LOWimp/max/evaluation/evaluators.py166 # Check if the leaf-of-interest is scalar or non-scalarCOMMENT
LOWzebra_puzzle_generator/zebra_solver.py344 # Check if any entity has only one possible value leftCOMMENT
LOWzebra_puzzle_generator/zebra_puzzle_generator.py459 # Check if puzzle is solvable.COMMENT
LOWtable_rag/utils/utils.py130 # Check if the markdown string is empty or only contains the header and delimiterCOMMENT
LOWtable_rag/utils/utils.py134 # Check if the markdown string contains the correct delimiter for a tableCOMMENT
LOWTimesX/dataset_agent/orchestrator.py246 # Check if any time blocks for this keyword need processingCOMMENT
LOWTimesX/dataset_agent/modules/module_01_trends.py236 # Check if this is a rate limit error and we haven't switched to robust mode yetCOMMENT
LOWTimesX/dataset_agent/modules/module_01_trends.py303 # Check if we have any successful dataCOMMENT
LOWsmu/parser/smu_writer_lib.py2421 # Check if the modified lines match the original.COMMENT
LOWgraphqa/graph_task.py434 # Check if these are not integers, sortCOMMENT
LOWkl_guided_sampling/decoding.py509 # Check if the next token is padding (a target) or non-padding (an input).COMMENT
LOWdata_selection/wmt/input_pipeline.py742 # Iterate through dataset and write to memoryCOMMENT
LOW…mples/research_projects/summarization/ppo_summ_rlhf.py179 # Check if the number is smaller than the smallest value in quantilesCOMMENT
LOW…mples/research_projects/summarization/ppo_summ_rlhf.py182 # Check if the number is greater than the largest value in quantilesCOMMENT
LOW…c/llm-intrinsic-reward/trl/extras/summ_reward_model.py91 # Check if there is any padding otherwise take length of sequenceCOMMENT
LOWpolysketchformer/polynomial_attention.py50 assert query.shape[-1] == key.shape[-1] # Check if it supports dot productsCODE
LOWpolysketchformer/polynomial_attention.py51 assert key.shape[-2] == value.shape[-2] # Check if num_keys match num_valuesCODE
LOWexperience_replay/run_experience_replay_experiment.py120 # Check if checkpoint exists. Note that the existence of checkpoint 0 meansCOMMENT
LOWsummae/model_test.py308 # Check if it's unique class ID for each permutation.COMMENT
LOWsummae/text_encoder_test.py144 max_subtoken_length = 10 # Set this to `None` to get problems.CODE
LOWfelix/example_builder_for_felix_insert.py68 # Check if the labels(_mask) is None or an empty list.COMMENT
LOWrecs_ecosystem_creator_rl/environment/environment.py211 # Check if reaches a terminal state and return.COMMENT
LOWeli5_retrieval_large_lm/check_flags.py39 # Verify if all m_base_pat matches overlap partially with at least oneCOMMENT
LOWeli5_retrieval_large_lm/utils.py208 # Check if the prefix path FLAGS.source_embeddings_prefix has at least oneCOMMENT
LOWsd_gym/env.py147 # Set type to float if unit has '/' or 'per ' in it (inferring division),COMMENT
LOWsd_gym/util.py83 # Check if it is observableCOMMENT
LOWsd_gym/util.py89 # Check if it is actionableCOMMENT
LOWjaxsel/_src/train_utils.py51 # Check if a datapoint in the batch matches the labelCOMMENT
LOWjaxsel/examples/utils/data.py175 # Set thresh to .5 by leveraging the image discretization.COMMENT
LOWsmerf/smerf/internal/grid_utils.py541 # Assign sm_idxs to each query position.COMMENT
LOWsmerf/smerf/internal/grid_utils.py613 # Assign sm_idxs to each query position.COMMENT
LOWsmerf/webviewer/launch_webserver_utils.sh46 # Check if this command existsCOMMENT
LOWsmerf/webviewer/launch_webserver_utils.sh66 # Check if this command existsCOMMENT
LOWweak_disentangle/main.py245 # Check if we're resuming training if not in debugging modeCOMMENT
LOW…ext_aware_transliteration/transformer/data_pipeline.py246 # Read files and interleave results. When training, the order of the examplesCOMMENT
LOWcompositional_classification/scripts/cfq_parse_util.py303 # Assign indices to the structure tokens of constituency parsingCOMMENT
LOWpvn/state.py263 # Check if the directory is empty, Orbax could have failed to saveCOMMENT
LOWbetum_tool/models/diffusiondet/scripts/parse_output.py152 # Check if it's already formatted as COCO format or needs conversionCOMMENT
LOWbetum_tool/models/owlv2/tests/losses_test.py128 # Check if it computes without crash.COMMENT
LOWxirl/utils.py160 # Check if the env is in x-magical.COMMENT
LOWxirl/base_configs/rl.py38 # Set this to True to allow CUDA to find the best convolutional algorithm toCOMMENT
LOW…object_detection/balanced_positive_negative_sampler.py153 # Check if indicator and labels have a static size.COMMENT
LOWpse/jumping_task/evaluation_helpers.py132 # Loop over data dimensions and create text annotations.COMMENT
LOWassessment_plan_modeling/ap_parsing/data_lib.py542 # Check if labeled span is contained in section:COMMENT
LOWresolve_ref_exp_elements_ml/eval.py99 # Check if the elements selected are part of the ground truth bounding boxCOMMENT
LOWramsey_number_bounds/code/ramsey_4_19_213.py482 # Check if this is a new global best or an improved S for this NCOMMENT
LOWramsey_number_bounds/code/ramsey_4_20_234.py948 # Check if a better graph (in terms of the overall goal) was found in g2COMMENT
141 more matches not shown…
Modern AI Meta-Vocabulary65 hits · 216 pts
SeverityFileLineSnippetContext
MEDIUMimp/max/evaluation/evaluators.py833 # Initialize the zero-shot classifier.COMMENT
MEDIUMimp/max/evaluation/evaluators.py1088 # perform zero-shot probingCOMMENT
MEDIUMimp/max/evaluation/evaluators.py1157 # perform zero-shot probingCOMMENT
MEDIUMgraphqa/graph_task_generator.py247 # Loading few-shot graphs.COMMENT
MEDIUMstate_of_sparsity/sparse_rn50/imagenet_train_eval.py490 # define a custom scaffold function to enable initializing the mask from anCOMMENT
MEDIUMmol_dqn/experimental/multi_obj_opt.py159 # if the current molecule does not contain the scaffold of the target,COMMENT
MEDIUMmol_dqn/experimental/multi_obj_gen.py65 # if the current molecule does not contain the scaffold of the target,COMMENT
MEDIUMmol_dqn/experimental/multi_obj_gen.py96 # if the current molecule does not contain the scaffold of the target,COMMENT
MEDIUMmol_dqn/experimental/multi_obj.py63 # if the current molecule does not contain the scaffold of the target,COMMENT
MEDIUMmol_dqn/experimental/multi_obj.py94 # if the current molecule does not contain the scaffold of the target,COMMENT
MEDIUMmol_dqn/chemgraph/multi_obj_opt.py107 # if the current molecule does not contain the scaffold of the target,COMMENT
MEDIUMmol_dqn/chemgraph/dqn/run_dqn.py160 # if the current molecule does not contain the scaffold of the target,COMMENT
MEDIUMmol_dqn/chemgraph/dqn/py/molecules_test.py42 # Note that the carbonyl is included in the scaffold...COMMENT
MEDIUMresolve_ref_exp_elements_ml/elements_embeddings.py605 # Text model refers to embedding model for sentencesCOMMENT
MEDIUMscaling_transformer_inference_efficiency/attention.py315 # smaller batch size earlier in the sequence: for example, during few-shotCOMMENT
MEDIUMscaling_transformer_inference_efficiency/attention.py316 # prompting, the few-shot examples typically have batch size 1, whereas theCOMMENT
MEDIUMsocial_rl/multiagent_tfagents/multiagent_ppo.py45 # Specific to multi-agent caseCOMMENT
MEDIUMsocial_rl/multiagent_tfagents/multiagent_ppo_policy.py103 # Make multi-agent policy_state specCOMMENT
MEDIUMsocial_rl/multiagent_tfagents/multiagent_ppo_policy.py131 # Make multi-agent info specCOMMENT
MEDIUMsocial_rl/multiagent_tfagents/multiagent_ppo_policy.py276 # Stack actions into multi-agent actionCOMMENT
MEDIUMsocial_rl/multiagent_tfagents/joint_attention/README.md1# Joint attention extension to multi-agent tf-agentsCOMMENT
MEDIUM…agent_tfagents/joint_attention/attention_ppo_policy.py111 # Make multi-agent info specCOMMENT
MEDIUMdistribution_embedding_networks/simulation.py196 # We first create the embedding modelCOMMENT
MEDIUMpolish/ppo/ppo_model_fn.py551 # Setup fine tune scaffoldCOMMENT
MEDIUMpolish/ppo/ppo_model_fn.py552 # The scaffold here is used to restore the weights from _warmstart_file.COMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_7.py590 # Filter augmented_locations_df to only 'State' region_type for the base scaffoldCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_7.py608 # Create base scaffold for all (observation_date, location) combinationsCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_3.py191# ii. Create a scaffold of all `(target_end_date, location)` combinations within this range, merging `population`COMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_3.py192# iii. Merge `df_full_history`'s `target_end_date`, `location`, `TARGET_STR_LOG`, `unweighted_ili`, `national_iliCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_3.py193# iv. For any NaNs in `unweighted_ili`, `national_ili`, `hhs_ili` in the scaffold, impute them using the seasonalCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_3.py194# v. For any NaNs in `TARGET_STR_LOG` in the scaffold (e.g., dates before `df_full_history` or in the future testCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_3.py195# vi. Set `(target_end_date, location)` as the index for the scaffold and convert relevant columns (`TARGET_STR_LCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_3.py980 # NEW: Add sin_week and cos_week to lookup scaffold for transformationCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_3.py988 # Merge df_full_history onto the scaffold to get actual/synthetic valuesCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_3.py1003 # Merge seasonal averages onto the scaffold for imputationCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_3.py1057 # First, ensure transformation params are available on the scaffoldCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_8.py434 # Create an empty scaffold for all historical dataCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_8.py441 # Add population data to the full historical scaffoldCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_8.py826 # Initialize prediction_df_state with the full history and future scaffoldCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Hybrid_3.py1321 # Create a scaffold for test features, initially with NaN for dynamic featuresCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_10.py521 # Create a scaffold for all location-date combinations for ILI historyCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_10.py527 # Merge state-level ILI onto the scaffoldCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_10.py842 # Now, extend the combined_tracker (DataFrame itself) with the test scaffold for recursive updates.COMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_10.py846 # Combine historical tracker data with future scaffoldCOMMENT
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Novel_6.py158 ) # create features for test_x scaffoldCODE
MEDIUMepi_forecasts/flu_hub/model_py/Google_SAI-Adapted_5.py118# 7. **`fit_and_predict_fn` orchestration**:COMMENT
MEDIUMepi_forecasts/covid_hub/model_py/Google_SAI-Hybrid_1.py164 # Return necessary columns including the original 'population' for consistency in scaffold processingCOMMENT
MEDIUMCOSTAR/config/config.yaml21 few_shot_sample_num: -1 # when > 0, resample generated training samples to make the dataset few-shotCODE
MEDIUMCOSTAR/config/config.yaml29# few_shot_sample_num: -1 # when > 0, resample generated training samples to make the dataset few-shotCOMMENT
MEDIUMCOSTAR/scripts_release/baselines.sh20## zero-shot transferCOMMENT
MEDIUMCOSTAR/scripts_release/baselines.sh53# semi-synthetic MIMIC-III (run zero-shot transfer experiments first)COMMENT
MEDIUMCOSTAR/scripts_release/baselines.sh54## zero-shot transferCOMMENT
MEDIUMCOSTAR/scripts_release/baselines.sh103# M5 (run zero-shot transfer experiments first)COMMENT
MEDIUMCOSTAR/scripts_release/baselines.sh104## zero-shot transferCOMMENT
MEDIUMCOSTAR/scripts_release/costar.sh2## zero-shot transfer/data-efficient transfer/standard supervised learningCOMMENT
MEDIUMCOSTAR/scripts_release/costar.sh3## zero-shot transfer metrics: dst-zero-shot-encoder_test_rmse_last, dst-zero-shot-decoder_test_rmse_[2-6]-stepCOMMENT
MEDIUMCOSTAR/scripts_release/costar.sh8# semi-synthetic MIMIC-III (run zero-shot transfer/data-efficient transfer experiments first)COMMENT
MEDIUMCOSTAR/scripts_release/costar.sh9## zero-shot transfer/data-efficient transferCOMMENT
MEDIUMCOSTAR/scripts_release/costar.sh10## zero-shot transfer metrics: dst-zero-shot-encoder_test_rmse_last, dst-zero-shot-decoder_test_rmse_[2-6]-stepCOMMENT
MEDIUMCOSTAR/scripts_release/costar.sh17# M5 (run zero-shot transfer/data-efficient transfer experiments first)COMMENT
5 more matches not shown…
Structural Annotation Overuse89 hits · 160 pts
SeverityFileLineSnippetContext
LOWledge/ledge.py379 # Step 3: Run the net once for each pass to compute the commands andCOMMENT
LOWledge/ledge.py385 # Step 4: Apply the computed commands to the bases.COMMENT
LOWledge/ledge.py389 # Step 5: Optimize the parameters to fit the bases to the target_func.COMMENT
LOWara_optimization/synthetic_dataset.py306 # Step 2: Generate conversions for each impression.COMMENT
LOWara_optimization/synthetic_dataset.py381 # Step 1: Generate impression side distribution.COMMENT
LOWml_debiaser/reduce_to_binary.py111 # Step 1: debias each label separately.COMMENT
LOWml_debiaser/reduce_to_binary.py124 # Step 2: update ADMM variables.COMMENT
LOWhmc_swindles/utils.py314 # Step 1: mask = [False, False, True, False]COMMENT
LOWhmc_swindles/utils.py316 # Step 2: mask = [0, 0, 1, 1]COMMENT
LOWhmc_swindles/utils.py318 # Step 3: mask = [0, 0, 1, 2]COMMENT
LOWhmc_swindles/utils.py320 # Step 4: mask = [1, 1, 0, 0]COMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py65# Step 1: Load the modelCOMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py86# Step 2: Load the dataset and pre-process itCOMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py139# Step 3: Define the training argumentsCOMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py155# Step 4: Define the LoraConfigCOMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py161# Step 5: Define the TrainerCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py75# Step 1: Load the modelCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py99# Step 2: Load the datasetCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py102# Step 3: Define the training argumentsCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py118# Step 4: Define the LoraConfigCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py129# Step 5: Define the TrainerCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py141# Step 6: Save the modelCOMMENT
LOWrelc/llm-intrinsic-reward/trl/trainer/ppo_trainer.py186 # Step 0: check positional arguments validitySTRING
LOWrelc/llm-intrinsic-reward/trl/trainer/ppo_trainer.py197 # Step 1: Initialize AcceleratorSTRING
LOWrelc/llm-intrinsic-reward/trl/trainer/ppo_trainer.py272 # Step 3: Initialize optimizer and data collatorSTRING
LOWneutra/utils.py578 # Step 1: mask = [False, False, True, False]COMMENT
LOWneutra/utils.py580 # Step 2: mask = [0, 0, 1, 1]COMMENT
LOWneutra/utils.py582 # Step 3: mask = [0, 0, 1, 2]COMMENT
LOWneutra/utils.py584 # Step 4: mask = [1, 1, 0, 0]COMMENT
LOWdrops/drops_test_time.py525 # Step 2: Update softmaxed of logits get model prediction (post-shift)COMMENT
LOWdrops/drops_test_time.py536 # Step 3: Calculate L_y (per class loss), L is the 0-1 lossCOMMENT
LOWdrops/drops_test_time.py561 # Step 4: Get the Lagrangian constraint termCOMMENT
LOWdrops/drops_test_time.py582 # Step 5: Get the Lagrangian (with L_y list of size K)COMMENT
LOWdrops/drops_test_time.py587 # Step 6: EG update on g_yCOMMENT
LOWdrops/drops_test_time.py615# Step 7: EG update on lambdaCOMMENT
LOWdrops/drops_test_time.py618 # Step 8: Update alpha_yCOMMENT
LOWdrops/main_lt.py526 # Step 1: Prepare w_y (optional--for ce loss)COMMENT
LOWdrops/main_lt.py541 # Step 2: Update softmaxed of logits get model prediction (post-shift)COMMENT
LOWdrops/main_lt.py551 # Step 3: Calculate L_y (per class loss), L is the 0-1 lossCOMMENT
LOWdrops/main_lt.py576 # Step 4: Get the Lagrangian constraint termCOMMENT
LOWdrops/main_lt.py595 # Step 5: Get the Lagrangian (with L_y list of size K)COMMENT
LOWdrops/main_lt.py600 # Step 6: EG update on g_yCOMMENT
LOWdrops/main_lt.py621# Step 7: EG update on lambdaCOMMENT
LOWdrops/main_lt.py624 # Step 8: Update alpha_yCOMMENT
LOW…quantization/tf_cnn_benchmarks/all_reduce_benchmark.py113 # Step 1: Do the aggregation.COMMENT
LOWOpenMSD/README.md17## Step 1: Download dataCOMMENT
LOWOpenMSD/README.md35## Step 2: Get papersCOMMENT
LOWOpenMSD/README.md51## Step 3: Get Citation, Co-Citation and Bibliographic-Coupling pairsCOMMENT
LOWspeculative_kd/transformers/utils.py3020 # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memorySTRING
LOWspeculative_kd/transformers/utils.py3339 # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memorySTRING
LOWspeculative_kd/transformers/utils.py3578 # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memorySTRING
LOWtft/run.sh28# Step 1: Setup environment.COMMENT
LOWtft/run.sh41# Step 2: Downloads data if not present.COMMENT
LOWtft/run.sh45# Step 3: Train & TestCOMMENT
LOWtft/README.md30### Step 1: Download data for default experimentsCOMMENT
LOWtft/README.md37### Step 2: Train and evaluate networkCOMMENT
LOWtft/README.md53### Step 1: Implement custom data formatterCOMMENT
LOWtft/README.md56### Step 2: Update configs.pyCOMMENT
LOWtft/README.md111### Step 3: Run training scriptCOMMENT
LOWcontrack/model.py521 # Step 1: Concatenate input data into a single sequenceCOMMENT
29 more matches not shown…
Fake / Example Data117 hits · 147 pts
SeverityFileLineSnippetContext
LOWcompositional_rl/integrate_miniwob.py60 " self._placeholder = raw_dom.get('placeholder')\n"CODE
LOWcompositional_rl/gwob/gminiwob/env-design.js594 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet numquam aspernatur!'CODE
LOWcompositional_rl/gwob/gminiwob/env-design.js594 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet numquam aspernatur!'CODE
LOWsparse_mixers/train_utils_test.py120 dummy_data = jax.random.randint(CODE
LOWsparse_mixers/train_utils_test.py122 return {"a": dummy_data, "b": dummy_data}CODE
LOWsmerf/smerf/internal/baked_render.py305 # Therefore we want to eliminate case B and append M "placeholder" hits toCOMMENT
LOWbetum_tool/tests/data_test.py34 dummy_data = {"images": [{"id": 1, "file_name": "img1.jpg"}]}CODE
LOWbetum_tool/tests/data_test.py36 json.dump(dummy_data, f)CODE
LOWbetum_tool/tests/data_test.py39 self.assertEqual(result, dummy_data)CODE
LOW…ediction/eq_mag_prediction/forecasting/metrics_test.py753 fake_data = np.arange(0.5, 9.5, 1)CODE
LOW…ediction/eq_mag_prediction/forecasting/metrics_test.py762 data_pool=fake_data,CODE
LOW…ediction/eq_mag_prediction/forecasting/metrics_test.py770 data_pool=fake_data,CODE
LOW…ediction/eq_mag_prediction/forecasting/metrics_test.py778 data_pool=fake_data,CODE
LOW…ediction/eq_mag_prediction/forecasting/metrics_test.py786 data_pool=fake_data,CODE
LOWsemantic_routing/benchmark/datasets/touring_dataset.py275 fake_data = datapoint["query_data"].copy()CODE
LOWsemantic_routing/benchmark/datasets/touring_dataset.py276 if "time_budget" not in fake_data:CODE
LOWsemantic_routing/benchmark/datasets/touring_dataset.py277 fake_data["time_budget"] = 10000000CODE
LOWsemantic_routing/benchmark/datasets/touring_dataset.py279 fake_data, datapoint["end"], edgelistCODE
LOWd3pm/text/diffusion.py2490 fake_key = jrandom.PRNGKey(0)CODE
LOWd3pm/text/diffusion.py2492 key=fake_key,CODE
LOW…d/data_processing/xmile_parser/bindings/xmile_style.py169 "name": "placeholder",CODE
LOW…_processing/xmile_parser/bindings/xmile_placeholder.py27 name = "placeholder"CODE
LOW…benchmark/eval_embedding/sklearn/sklearn_utils_test.py47 fake_data = [CODE
LOW…benchmark/eval_embedding/sklearn/sklearn_utils_test.py67 for emb, label_index in fake_data:CODE
LOW…benchmark/eval_embedding/sklearn/sklearn_utils_test.py77 expected_embs = np.array([d[0] for d in fake_data], np.float32)CODE
LOWUboreshaji_Modeli/tests/data_test.py36 dummy_data = {"images": [{"id": 1, "file_name": "img1.jpg"}]}CODE
LOWUboreshaji_Modeli/tests/data_test.py38 json.dump(dummy_data, f)CODE
LOWUboreshaji_Modeli/tests/data_test.py41 self.assertEqual(result, dummy_data)CODE
LOWuq_benchmark_2019/mnist/data_lib.py107def build_dataset(opts, fake_data=False):CODE
LOWuq_benchmark_2019/mnist/data_lib.py112 if fake_data:CODE
LOWuq_benchmark_2019/mnist/experiment_test.py32flags.DEFINE_bool('fake_data', True, 'Whether to use fake dataset data.')CODE
LOWuq_benchmark_2019/mnist/experiment_test.py46 if not flags.FLAGS.fake_data:CODE
LOWuq_benchmark_2019/mnist/experiment.py41 fake_data=test_level > 1,CODE
LOWuq_benchmark_2019/mnist/experiment.py58 fake_data = test_level > 1CODE
LOWuq_benchmark_2019/mnist/experiment.py65 dataset_train = data_lib.build_dataset(data_opts_list[0], fake_data=fake_data)CODE
LOWuq_benchmark_2019/mnist/experiment.py66 dataset_eval = data_lib.build_dataset(data_opts_list[1], fake_data=fake_data)CODE
LOWuq_benchmark_2019/mnist/experiment.py73 dataset = data_lib.build_dataset(data_opts, fake_data=fake_data)CODE
LOWuq_benchmark_2019/mnist/hparams_lib.py50 fake_data=False, fake_training=False):CODE
LOWuq_benchmark_2019/mnist/hparams_lib.py53 fake_data=fake_data,CODE
LOWuq_benchmark_2019/mnist/hparams_lib.py58 fake_data=False, fake_training=False):CODE
LOWuq_benchmark_2019/mnist/hparams_lib.py60 num_train_examples = (data_lib.DUMMY_DATA_SIZE if fake_data elseCODE
LOWuq_benchmark_2019/imagenet/end_to_end_test.py43flags.DEFINE_bool('fake_data', True, 'Use dummy random data.')CODE
LOWuq_benchmark_2019/imagenet/end_to_end_test.py57 if flags.FLAGS.fake_data and (data_name != 'test'):CODE
LOWuq_benchmark_2019/imagenet/end_to_end_test.py63 metrics=metrics, fake_data=flags.FLAGS.fake_data,CODE
LOWuq_benchmark_2019/imagenet/end_to_end_test.py69 fake_data=flags.FLAGS.fake_data)CODE
LOWuq_benchmark_2019/imagenet/data_lib.py57 config, batch_size, is_training=False, fake_data=False, use_bfloat16=False):CODE
LOWuq_benchmark_2019/imagenet/data_lib.py65 fake_data: If True, use randomly generated data.STRING
LOWuq_benchmark_2019/imagenet/data_lib.py70 if fake_data:CODE
LOWuq_benchmark_2019/imagenet/run_predict.py55 max_examples, output_dir, fake_data=False):CODE
LOWuq_benchmark_2019/imagenet/run_predict.py59 dataset = data_lib.build_dataset(data_config, batch_size, fake_data=fake_data)CODE
LOWuq_benchmark_2019/imagenet/imagenet_input.py58 use_bfloat16=False, fake_data=False):CODE
LOWuq_benchmark_2019/imagenet/imagenet_input.py67 fake_data: If True, use synthetic random data.STRING
LOWuq_benchmark_2019/imagenet/imagenet_input.py74 self.fake_data = fake_dataCODE
LOWuq_benchmark_2019/imagenet/imagenet_input.py122 if self.fake_data:CODE
LOWuq_benchmark_2019/imagenet/data_lib_test.py30flags.DEFINE_bool('fake_data', True, 'Bypass tests that rely on real data and 'CODE
LOWuq_benchmark_2019/imagenet/data_lib_test.py45 dataset = data_lib.build_dataset(config, BATCH_SIZE, fake_data=True)CODE
LOWuq_benchmark_2019/imagenet/data_lib_test.py54 if not flags.FLAGS.fake_data:CODE
LOWuq_benchmark_2019/imagenet/data_lib_test.py64 if not flags.FLAGS.fake_data:CODE
LOWuq_benchmark_2019/imagenet/data_lib_test.py73 if not flags.FLAGS.fake_data:CODE
LOWuq_benchmark_2019/imagenet/data_lib_test.py89 if not flags.FLAGS.fake_data:CODE
57 more matches not shown…
Verbosity Indicators72 hits · 129 pts
SeverityFileLineSnippetContext
LOWledge/ledge.py379 # Step 3: Run the net once for each pass to compute the commands andCOMMENT
LOWledge/ledge.py385 # Step 4: Apply the computed commands to the bases.COMMENT
LOWledge/ledge.py389 # Step 5: Optimize the parameters to fit the bases to the target_func.COMMENT
LOWscrna_benchmark/dca_process.py170 # We need to check if the file exists before creating it.COMMENT
LOWscrna_benchmark/scvi_process.py204 # We need to check if the file exists before creating it.COMMENT
LOWschema_guided_dst/multiwoz/create_data_from_multiwoz.py69# we need to check if it is a correct match.COMMENT
LOWara_optimization/synthetic_dataset.py306 # Step 2: Generate conversions for each impression.COMMENT
LOWara_optimization/synthetic_dataset.py381 # Step 1: Generate impression side distribution.COMMENT
LOWml_debiaser/reduce_to_binary.py111 # Step 1: debias each label separately.COMMENT
LOWml_debiaser/reduce_to_binary.py124 # Step 2: update ADMM variables.COMMENT
LOWhmc_swindles/utils.py314 # Step 1: mask = [False, False, True, False]COMMENT
LOWhmc_swindles/utils.py316 # Step 2: mask = [0, 0, 1, 1]COMMENT
LOWhmc_swindles/utils.py318 # Step 3: mask = [0, 0, 1, 2]COMMENT
LOWhmc_swindles/utils.py320 # Step 4: mask = [1, 1, 0, 0]COMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py65# Step 1: Load the modelCOMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py86# Step 2: Load the dataset and pre-process itCOMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py139# Step 3: Define the training argumentsCOMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py155# Step 4: Define the LoraConfigCOMMENT
LOW…lm-intrinsic-reward/examples/scripts/reward_trainer.py161# Step 5: Define the TrainerCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py75# Step 1: Load the modelCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py99# Step 2: Load the datasetCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py102# Step 3: Define the training argumentsCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py118# Step 4: Define the LoraConfigCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py129# Step 5: Define the TrainerCOMMENT
LOW…c/llm-intrinsic-reward/examples/scripts/sft_trainer.py141# Step 6: Save the modelCOMMENT
LOWrelc/llm-intrinsic-reward/trl/trainer/ppo_trainer.py186 # Step 0: check positional arguments validitySTRING
LOWrelc/llm-intrinsic-reward/trl/trainer/ppo_trainer.py197 # Step 1: Initialize AcceleratorSTRING
LOWrelc/llm-intrinsic-reward/trl/trainer/ppo_trainer.py272 # Step 3: Initialize optimizer and data collatorSTRING
LOWneutra/utils.py578 # Step 1: mask = [False, False, True, False]COMMENT
LOWneutra/utils.py580 # Step 2: mask = [0, 0, 1, 1]COMMENT
LOWneutra/utils.py582 # Step 3: mask = [0, 0, 1, 2]COMMENT
LOWneutra/utils.py584 # Step 4: mask = [1, 1, 0, 0]COMMENT
LOWvdvae_flax/optimizers.py37 The purpose of this function is to prevent any optimisation to happen if theSTRING
LOWdrops/drops_test_time.py525 # Step 2: Update softmaxed of logits get model prediction (post-shift)COMMENT
LOWdrops/drops_test_time.py536 # Step 3: Calculate L_y (per class loss), L is the 0-1 lossCOMMENT
LOWdrops/drops_test_time.py561 # Step 4: Get the Lagrangian constraint termCOMMENT
LOWdrops/drops_test_time.py582 # Step 5: Get the Lagrangian (with L_y list of size K)COMMENT
LOWdrops/drops_test_time.py587 # Step 6: EG update on g_yCOMMENT
LOWdrops/drops_test_time.py615# Step 7: EG update on lambdaCOMMENT
LOWdrops/drops_test_time.py618 # Step 8: Update alpha_yCOMMENT
LOWdrops/main_lt.py526 # Step 1: Prepare w_y (optional--for ce loss)COMMENT
LOWdrops/main_lt.py541 # Step 2: Update softmaxed of logits get model prediction (post-shift)COMMENT
LOWdrops/main_lt.py551 # Step 3: Calculate L_y (per class loss), L is the 0-1 lossCOMMENT
LOWdrops/main_lt.py576 # Step 4: Get the Lagrangian constraint termCOMMENT
LOWdrops/main_lt.py595 # Step 5: Get the Lagrangian (with L_y list of size K)COMMENT
LOWdrops/main_lt.py600 # Step 6: EG update on g_yCOMMENT
LOWdrops/main_lt.py621# Step 7: EG update on lambdaCOMMENT
LOWdrops/main_lt.py624 # Step 8: Update alpha_yCOMMENT
LOW…quantization/tf_cnn_benchmarks/all_reduce_benchmark.py113 # Step 1: Do the aggregation.COMMENT
LOWetcmodel/models/hotpotqa/data_utils.py176 the exact answer, 1895. The purpose of this function is to find such "betterSTRING
LOWcorrect_batch_effects_wdn/evaluate.py292 The purpose of this function is to check whether batch effects have beenSTRING
LOWtft/run.sh28# Step 1: Setup environment.COMMENT
LOWtft/run.sh41# Step 2: Downloads data if not present.COMMENT
LOWtft/run.sh45# Step 3: Train & TestCOMMENT
LOWcontrack/model.py521 # Step 1: Concatenate input data into a single sequenceCOMMENT
LOWcontrack/model.py524 # Step 2: Identify new entities.COMMENT
LOWcontrack/model.py535 # Step 3: Compute enref ids for new entitiesCOMMENT
LOWcontrack/model.py539 # Step 4: Determine enref predictionsCOMMENT
LOWcontrack/model.py542 # Step 5: Merge ids from new and existing enrefsCOMMENT
LOWgraph_temporal_ai/src/mpnn_cell.py151 # Step 4: Normalize node features.COMMENT
12 more matches not shown…
Modern Structural Boilerplate92 hits · 92 pts
SeverityFileLineSnippetContext
LOWdialogue_ope/airdialogue_ope/airope_processors.py38logger = logging.getLogger(__name__)CODE
LOWdialogue_ope/airdialogue_ope/utils.py42logger = logging.getLogger(__name__)CODE
LOWdialogue_ope/airdialogue_ope/main.py40logger = logging.getLogger(__name__)CODE
LOWTimesX/dataset_agent/event_pipeline.py36logger = logging.getLogger(__name__)CODE
LOWTimesX/dataset_agent/modules/module_04_events.py40logger = logging.getLogger(__name__)CODE
LOW…sX/dataset_agent/modules/module_07_cross_validation.py22logger = logging.getLogger(__name__)CODE
LOWTimesX/dataset_agent/modules/module_01_trends.py28logger = logging.getLogger(__name__)CODE
LOWTimesX/dataset_agent/modules/llm_retry_handler.py25logger = logging.getLogger(__name__)CODE
LOW…mesX/dataset_agent/modules/module_06_peak_discovery.py30logger = logging.getLogger(__name__)CODE
LOWTimesX/dataset_agent/modules/utils.py19logger = logging.getLogger(__name__)CODE
LOWTimesX/dataset_agent/modules/llm_handler.py36logger = logging.getLogger(__name__)CODE
LOW…mesX/dataset_agent/modules/module_05_initial_events.py41logger = logging.getLogger(__name__)CODE
LOWhmc_swindles/targets/probit_regression.py36__all__ = [CODE
LOWhmc_swindles/targets/target_spec.py33__all__ = [CODE
LOWhmc_swindles/targets/joint_distribution_posterior.py29__all__ = [CODE
LOWhmc_swindles/targets/__init__.py37__all__ = [CODE
LOWhmc_swindles/targets/item_response_theory.py37__all__ = [CODE
LOWhmc_swindles/targets/sparse_logistic_regression.py36__all__ = [CODE
LOWhmc_swindles/targets/neals_funnel.py29__all__ = [CODE
LOWhmc_swindles/targets/banana.py29__all__ = [CODE
LOWhmc_swindles/targets/logistic_regression.py35__all__ = [CODE
LOWhmc_swindles/targets/ill_conditioned_gaussian.py33__all__ = [CODE
LOWhmc_swindles/targets/data.py37__all__ = [CODE
LOWxirl/xirl/trainers/__init__.py25__all__ = [CODE
LOWxirl/xirl/evaluators/__init__.py27__all__ = [CODE
LOW…ects/mmdet3d_plugin/occformer/decode_heads/__init__.py20__all__ = [CODE
LOW…_ref_exp_elements_ml/deeplab/mobilenet/mobilenet_v2.py184__all__ = ['training_scope', 'mobilenet_base', 'mobilenet', 'V2_DEF']CODE
LOWetcmodel/models/hotpotqa/generate_tf_examples_lib.py317 def set_paragraph_breakpoint(self, is_actual_paragraph: bool = False) -> None:CODE
LOWlearning_to_clarify/act/src/act/utils/artifact_utils.py26logger = logging.getLogger(__name__)CODE
LOW…ning_to_clarify/act/src/act/models/generative_model.py34logger = logging.getLogger(__name__)CODE
LOWlearning_to_clarify/act/src/act/scripts/run_act.py53logger = logging.getLogger(__name__)CODE
LOWlearning_to_clarify/act/src/act/scripts/run_sft.py46logger = logging.getLogger(__name__)CODE
LOW…ng_to_clarify/act/src/act/data/preference_generator.py26logger = logging.getLogger(__name__)CODE
LOWjaxstronomy/psf_models.py28__all__ = ['Gaussian', 'Pixel']CODE
LOWjaxstronomy/lens_models.py26__all__ = ['EPL', 'NFW', 'Shear', 'TNFW']CODE
LOWjaxstronomy/source_models.py25__all__ = ['Interpol', 'SersicElliptic']CODE
LOWSTraTA/selftraining.py37logger = logging.getLogger(__name__)CODE
LOWSTraTA/finetuning.py53logger = logging.getLogger(__name__)CODE
LOWspeculative_kd/train/train_sft.py42logger = logging.getLogger(__name__)CODE
LOWaptamers_mlpd/learning/train_feedforward.py247logger = logging.getLogger(__name__)CODE
LOWaptamers_mlpd/learning/dataset_stats.py32logger = logging.getLogger(__name__)CODE
LOWaptamers_mlpd/learning/eval_feedforward.py49logger = logging.getLogger(__name__)CODE
LOWcold_posterior_flax/cifar10/sample/__init__.py22__all__ = ["SymEulerSGMCMC"]CODE
LOWnerflets/models/rendering.py32__all__ = ['render_rays']CODE
LOWCOSTAR/utils/ckpt.py33logger = logging.getLogger(__name__)CODE
LOWCOSTAR/runnables/train_rep_est.py43logger = logging.getLogger(__name__)CODE
LOWCOSTAR/runnables/train_msm.py33logger = logging.getLogger(__name__)CODE
LOWCOSTAR/runnables/train_rmsn.py43logger = logging.getLogger(__name__)CODE
LOWCOSTAR/runnables/train_enc_dec.py46logger = logging.getLogger(__name__)CODE
LOWCOSTAR/runnables/train_multi.py49logger = logging.getLogger(__name__)CODE
LOWCOSTAR/runnables/train_gnet.py41logger = logging.getLogger(__name__)CODE
LOWCOSTAR/src/models/rmsn.py40logger = logging.getLogger(__name__)CODE
LOWCOSTAR/src/models/time_varying_model.py59logger = logging.getLogger(__name__)CODE
LOWCOSTAR/src/models/ct.py40logger = logging.getLogger(__name__)CODE
LOWCOSTAR/src/models/msm.py41logger = logging.getLogger(__name__)CODE
LOWCOSTAR/src/models/crn.py35logger = logging.getLogger(__name__)CODE
LOWCOSTAR/src/models/edct.py42logger = logging.getLogger(__name__)CODE
LOWCOSTAR/src/models/gnet.py39logger = logging.getLogger(__name__)CODE
LOWCOSTAR/src/models/rep_est/rep_est.py34logger = logging.getLogger(__name__)CODE
LOWCOSTAR/src/models/rep_est/cotrans.py33logger = logging.getLogger(__name__)CODE
32 more matches not shown…
Dead Code34 hits · 68 pts
SeverityFileLineSnippetContext
MEDIUMjrl/agents/msg/networks.py547CODE
MEDIUMjrl/agents/msg/networks.py555CODE
MEDIUMjrl/agents/msg/networks.py556CODE
MEDIUMjrl/agents/msg/networks.py557CODE
MEDIUMjrl/utils/network_utils.py85CODE
MEDIUMjrl/utils/network_utils.py86CODE
MEDIUMjrl/utils/network_utils.py87CODE
MEDIUMjrl/utils/network_utils.py89CODE
MEDIUMjrl/utils/network_utils.py112CODE
MEDIUMsmerf/smerf/internal/train_utils.py757CODE
MEDIUMsmerf/smerf/internal/train_utils.py760CODE
MEDIUMsmerf/smerf/internal/train_utils.py764CODE
MEDIUM…ion/diffusion_distillation/config/church128_distill.py100CODE
MEDIUM…ion/diffusion_distillation/config/church128_distill.py106CODE
MEDIUM…on/diffusion_distillation/config/imagenet64_distill.py100CODE
MEDIUM…on/diffusion_distillation/config/imagenet64_distill.py106CODE
MEDIUM…on/diffusion_distillation/config/bedroom128_distill.py100CODE
MEDIUM…on/diffusion_distillation/config/bedroom128_distill.py106CODE
MEDIUMbnn_hmc/utils/train_utils.py215CODE
MEDIUMlocal_forward_gradient/train_mixer_supervised.py1484CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py313CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py314CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py316CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py317CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py319CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py321CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py322CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py323CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py325CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py326CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py327CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py328CODE
MEDIUMstrategic_exploration/hrl/env_wrapper.py330CODE
MEDIUMstrategic_exploration/hrl/graph_update.py142CODE
Slop Phrases37 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMschema_guided_dst/baseline/data_utils.py587 # the value was mentioned earlier in the dialogue. Since this modelCOMMENT
MEDIUMjrl/utils/saved_model_lib.py107 # names, you can use `tree.map_structure_with_path` from the `dm-tree` packageCOMMENT
LOWmultimodalchat/photochat/test/test_01.json31017 "message": "You should! Don't forget to grab some coffee while you're out.",CODE
MEDIUMmultimodalchat/photochat/test/test_01.json38183 "message": "Haha yeah, I'm unable to share the photo right now. But I will soon. I wish you could see it now thoCODE
MEDIUMmultimodalchat/photochat/train/train_01.json9999 "message": "I'm unable to share the photo for some reason",CODE
MEDIUMmultimodalchat/photochat/train/train_16.json9493 "message": "Let me know if you need any extra help!",CODE
LOWmultimodalchat/photochat/train/train_07.json32842 "message": "the game is over at the high school fields, 7pm sharp, don't forget to cheer on my Mom, her jersey hCODE
LOWmultimodalchat/photochat/train/train_10.json2164 "message": "Better late than never. Don't forget to invite me.",CODE
LOWmultimodalchat/photochat/train/train_05.json7432 "message": "Oh thats beautiful. next time don't forget to invite me.",CODE
LOWmultimodalchat/photochat/train/train_13.json2321 "message": "don't forget to bring your mobile device in case we need to call for a ride home",CODE
LOWmultimodalchat/photochat/train/train_08.json14788 "message": "That sounds great! I'm sure you'll love it. Don't forget to pack your apple laptop to bring with youCODE
MEDIUMmultimodalchat/photochat/train/train_03.json2971 "message": "I'm unable to sleep for the past few days.",CODE
LOWmultimodalchat/photochat/train/train_15.json1611 "message": "I'll buy us each a beer, don't forget to bring your mobile device in case we need to call for a rideCODE
LOWmultimodalchat/photochat/dev/dev_00.json7022 "message": "don't forget to join us",CODE
LOWimp/max/execution/executors.py543 # we make sure to cache the transformed obj_fns to avoid re-compilingCOMMENT
MEDIUMdata_selection/wmt/input_pipeline.py810 # Optionally you can add a seed for better reproducibilityCOMMENT
LOW…ples/research_projects/summarization/ppo_summ_rouge.py265 # We make sure to use `Adam` optimizer on the model parametersCOMMENT
LOW…mples/research_projects/summarization/ppo_summ_rlhf.py369 # make sure to use `Adam` optimizer on parameters that require gradients.COMMENT
LOW…ch_projects/toxicity/ppo-intrinsic-rewards-toxicity.py170 # We make sure to use `Adam` optimizer on the model parametersCOMMENT
LOW…_projects/sentiment/ppo-intrinsic-rewards-sentiment.py326 # the sentiment analysis pipeline arguments. Let's also make sure to setCOMMENT
LOW…/examples/research_projects/sentiment/ppo-sentiment.py131 # the sentiment analysis pipeline arguments. Let's also make sure to set theCOMMENT
MEDIUMfvlm/utils/saved_model_lib.py127 # names, you can use `tree.map_structure_with_path` from the `dm-tree` packageCOMMENT
LOWcovid_epidemiology/src/constants.py645# If you are changing any of the parameters below, please make sure to updateCOMMENT
LOW…ogy/src/models/generic_seir_state_model_constructor.py1018 # If you are changing any of the parameters below, please make sure toCOMMENT
LOW…els/generic_seir_japan_prefecture_model_constructor.py960 # If you are changing any of the parameters below, please make sure toCOMMENT
LOW…gy/src/models/generic_seir_county_model_constructor.py1297 # If you are changing any of the parameters below, please make sure toCOMMENT
LOWgigamol/run_test.sh1# To run this script, please make sure you have virtualenv and bazel installed.COMMENT
MEDIUM…resample_with_dp_histogram/resample_with_embeddings.py185ratio = noisy_p_bins / q_bins # you can also use full_q_bins instead of q_bins.CODE
LOWncsnv3/utils.py197 # logic will make sure to only commit checkpoints if they completeCOMMENT
LOW…ined_language_typology/build_feature_matrix_example.py85 # Obviously if you use this make sure you do the same thing to both trainingCOMMENT
LOWinvariant_explanations/utils.py146 # make sure to filter to the right stratum here before further analysis.COMMENT
LOWinvariant_explanations/utils.py435 # the same hparams, but make sure you get the correct rows for tr/te acc!!!COMMENT
MEDIUManthea/template-mqm-source-media.js686 As mentioned earlier, the context of the document is sometimes theCODE
MEDIUManthea/template-mqm-speech-to-speech.js596 As mentioned earlier, the context of the document is sometimes theCODE
MEDIUManthea/template-base.js432 As mentioned earlier, the context of the document is sometimes theCODE
LOWsnerg/snerg/eval_and_refine.py209 # Then, make sure to populate the output array in the same orderCOMMENT
LOWabstract_nas/synthesis/enum_sequential.py211 # may have changed, so make sure to randomize from the most up-to-dateCOMMENT
AI Response Leakage5 hits · 41 pts
SeverityFileLineSnippetContext
HIGH…positional_rl/gwob/examples/web_environment_example.py47 # are used to shape them. In this example, they don't have that effect.COMMENT
HIGHdvrl/main_corrupted_sample_discovery.py88 # In this example, we consider a classification problem and we use LogisticCOMMENT
HIGHm_theory/m_theory_lib/ode/ode_hessian_test.py45 # In this example, we are going for 'recovered = 0.80' at-end.COMMENT
HIGHcorrect_batch_effects_wdn/transform_test.py140 # In this example, the eigenvalues are discrete, so the eigenvectors areCOMMENT
HIGH…e_representations_for_entity_retrieval/mel/mewsli-x.md210# In this example, just locate the gold entity by its ID to look at some ofCOMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…ory/dim4/so8_supergravity_extrema/code/distillation.py151 # Diagonalizes either the 35s or 35c, as requested.COMMENT
HIGH…n_semantic_speech_benchmark/data_prep/splitter_test.py80 # Check number of groups in train/dev/test are as requested.COMMENT
Overly Generic Function Names13 hits · 12 pts
SeverityFileLineSnippetContext
LOWfm4tlp/utils/dataset_pyg_transfer.py148 def process_data(self):STRING
LOWfm4tlp/utils/dataset_pyg.py177 def process_data(self):STRING
LOWnf_diffusion/models/ldm_reluf_dual_v2.py496 def helper(zt, xt, gt):CODE
LOWnf_diffusion/models/ldm_reluf_dual_v3.py467 def helper(zt, xt, gt):CODE
LOWjaxstronomy/source_models_test.py104 def test_function(self):CODE
LOWjaxstronomy/source_models_test.py154 def test_function(self):CODE
LOWspeculative_kd/train/train_sft.py114def process_data(args, data, tokenizer, remove_columns):CODE
LOWvct/src/tf_memoize.py25def my_function(x, y, z):STRING
LOWconstrained_language_typology/build_feature_matrix.py315 def process_data(self, target_feature, force_recompute=False,CODE
LOWhipi/envs/dm_env.py251def run_task(time_limit=quadruped._DEFAULT_TIME_LIMIT, # pylint: disable=protected-accessCODE
LOWCOSTAR/src/data/mimic_iii/semi_synthetic_dataset.py1368 def process_data(self, scaling_params):CODE
LOWCOSTAR/src/data/cancer_sim/dataset.py183 def process_data(self, scaling_params):CODE
LOWmerf/internal/coord.py88 def helper(x, d):CODE
Example Usage Blocks7 hits · 10 pts
SeverityFileLineSnippetContext
LOWhmc_swindles/scripts/fetch_datasets.sh20# Usage:COMMENT
LOWautoml_zero/run_integration_tests.sh21# Usage:COMMENT
LOWautoml_zero/run_demo.sh18# Usage:COMMENT
LOWagile_deliberation/setup.sh19# Usage:COMMENT
LOWinformally_romanized_lang_id/train_pair_lm.sh20# Example usage:COMMENT
LOW…lly_romanized_lang_id/create_supplementary_lexicons.sh21# Example usage:COMMENT
LOWsimulation_research/traffic/fcd_file_cutter.sh22# Example usage:COMMENT
Magic Placeholder Names2 hits · 8 pts
SeverityFileLineSnippetContext
HIGHrelc/llm-intrinsic-reward/README.md151export PERSPECTIVE_API_KEY="YOUR_API_KEY"CODE
HIGHbehavioral_dispositions/src/gemini_runner.py39 client = genai.Client(api_key="YOUR_API_KEY")STRING
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtide_nlp/identity_annotator.py139 # TODO: implement confidence measure and don't filter out low confidence.COMMENT