--- language: - en - code license: apache-2.0 tags: - sentence-transformers - sentence-similarity - feature-extraction - dense - generated_from_trainer - dataset_size:240054 - loss:MatryoshkaLoss - loss:CachedMultipleNegativesRankingLoss - loss:MultipleNegativesRankingLoss base_model: Alibaba-NLP/gte-modernbert-base widget: - source_sentence: print('INTERCAL') sentences: - print({'ABC':'ARC', 'ARC':'ABC'}[input()]) - print("cvoonwseoln a n t"[input()in"aiueo"::2]) - "\npublic class main {\n\n\tpublic static void main(String[] args) \n\t{\n\t\t\ \n\t\tSystem.out.println(\"INTERCAL\");\n\t\tSystem.exit(0);\n\t}\n}\n\n\t\t\t\ \t \t \t\t \t \t\t \t\t \t \t" - 'n = str(input()) print("ABC{}".format(n))' - print(eval(input().replace(*" ^"))) - source_sentence: Gets the x coordinate of this atom. Returns sentences: - "def xi_hat(self, xi_bar_hat):\n\t\txi_hat = self.xi_map.inverse(xi_bar_hat)\n\ \t\treturn xi_hat" - "def getX(self):\n return self.proj.getX()" - "def get_current(self):\n return self.x" - "def x(a):\n return a[0]" - "def get_x(self):\n return self.coords[0]" - source_sentence: Returns the cart's ID. sentences: - "public function getId(): ?int\n {\n return $this->id;\n }" - public function getId(); - "function getID() {\n\t\treturn $this->iId;\n\t}" - "public function getId() {\n\t\treturn $this->id;\n\t}" - public function getPId(); - source_sentence: Quo sets z to x / y and returns z. sentences: - "func (z *Big) QuoRem(x, y, r *Big) (*Big, *Big) {\n\treturn z.Context.QuoRem(z,\ \ x, y, r)\n}" - func (z *Int) Div(x, y *Int) *Int {} - func (z *Int) Or(x, y *Int) *Int {} - func (z *Big) Quo(x, y *Big) *Big { return z.Context.Quo(z, x, y) } - func (z *Int) Rem(x, y *Int) *Int {} - source_sentence: How many books are there? sentences: - SELECT count(*) FROM book_club - SELECT count(*) FROM authors - SELECT count(*) FROM catalog_contents - SELECT count(*) FROM book - SELECT count(*) FROM Documents pipeline_tag: sentence-similarity library_name: sentence-transformers metrics: - cosine_accuracy@1 - cosine_accuracy@3 - cosine_accuracy@5 - cosine_accuracy@10 - cosine_precision@1 - cosine_precision@3 - cosine_precision@5 - cosine_precision@10 - cosine_recall@1 - cosine_recall@3 - cosine_recall@5 - cosine_recall@10 - cosine_ndcg@10 - cosine_mrr@10 - cosine_map@100 model-index: - name: code-embed-v3 results: - task: type: information-retrieval name: Information Retrieval dataset: name: dev code2code type: dev-code2code metrics: - type: cosine_accuracy@1 value: 0.28360413589364847 name: Cosine Accuracy@1 - type: cosine_accuracy@3 value: 0.4327917282127031 name: Cosine Accuracy@3 - type: cosine_accuracy@5 value: 0.4874446085672083 name: Cosine Accuracy@5 - type: cosine_accuracy@10 value: 0.5864106351550961 name: Cosine Accuracy@10 - type: cosine_precision@1 value: 0.28360413589364847 name: Cosine Precision@1 - type: cosine_precision@3 value: 0.14426390940423436 name: Cosine Precision@3 - type: cosine_precision@5 value: 0.09748892171344166 name: Cosine Precision@5 - type: cosine_precision@10 value: 0.058641063515509594 name: Cosine Precision@10 - type: cosine_recall@1 value: 0.28360413589364847 name: Cosine Recall@1 - type: cosine_recall@3 value: 0.4327917282127031 name: Cosine Recall@3 - type: cosine_recall@5 value: 0.4874446085672083 name: Cosine Recall@5 - type: cosine_recall@10 value: 0.5864106351550961 name: Cosine Recall@10 - type: cosine_ndcg@10 value: 0.42529329992674525 name: Cosine Ndcg@10 - type: cosine_mrr@10 value: 0.37506506295280306 name: Cosine Mrr@10 - type: cosine_map@100 value: 0.3855559531509932 name: Cosine Map@100 - task: type: information-retrieval name: Information Retrieval dataset: name: dev code2nl type: dev-code2nl metrics: - type: cosine_accuracy@1 value: 0.804 name: Cosine Accuracy@1 - type: cosine_accuracy@3 value: 0.855 name: Cosine Accuracy@3 - type: cosine_accuracy@5 value: 0.876 name: Cosine Accuracy@5 - type: cosine_accuracy@10 value: 0.896 name: Cosine Accuracy@10 - type: cosine_precision@1 value: 0.804 name: Cosine Precision@1 - type: cosine_precision@3 value: 0.285 name: Cosine Precision@3 - type: cosine_precision@5 value: 0.1752 name: Cosine Precision@5 - type: cosine_precision@10 value: 0.0896 name: Cosine Precision@10 - type: cosine_recall@1 value: 0.804 name: Cosine Recall@1 - type: cosine_recall@3 value: 0.855 name: Cosine Recall@3 - type: cosine_recall@5 value: 0.876 name: Cosine Recall@5 - type: cosine_recall@10 value: 0.896 name: Cosine Recall@10 - type: cosine_ndcg@10 value: 0.8487861914239297 name: Cosine Ndcg@10 - type: cosine_mrr@10 value: 0.8337817460317462 name: Cosine Mrr@10 - type: cosine_map@100 value: 0.8354275592013635 name: Cosine Map@100 - task: type: information-retrieval name: Information Retrieval dataset: name: dev code edit type: dev-code_edit metrics: - type: cosine_accuracy@1 value: 0.94 name: Cosine Accuracy@1 - type: cosine_accuracy@3 value: 0.992 name: Cosine Accuracy@3 - type: cosine_accuracy@5 value: 0.996 name: Cosine Accuracy@5 - type: cosine_accuracy@10 value: 0.996 name: Cosine Accuracy@10 - type: cosine_precision@1 value: 0.94 name: Cosine Precision@1 - type: cosine_precision@3 value: 0.3306666666666666 name: Cosine Precision@3 - type: cosine_precision@5 value: 0.19920000000000002 name: Cosine Precision@5 - type: cosine_precision@10 value: 0.09960000000000001 name: Cosine Precision@10 - type: cosine_recall@1 value: 0.94 name: Cosine Recall@1 - type: cosine_recall@3 value: 0.992 name: Cosine Recall@3 - type: cosine_recall@5 value: 0.996 name: Cosine Recall@5 - type: cosine_recall@10 value: 0.996 name: Cosine Recall@10 - type: cosine_ndcg@10 value: 0.9730464608789393 name: Cosine Ndcg@10 - type: cosine_mrr@10 value: 0.9651333333333333 name: Cosine Mrr@10 - type: cosine_map@100 value: 0.9653496794871794 name: Cosine Map@100 - task: type: information-retrieval name: Information Retrieval dataset: name: dev nl2code type: dev-nl2code metrics: - type: cosine_accuracy@1 value: 0.768 name: Cosine Accuracy@1 - type: cosine_accuracy@3 value: 0.831 name: Cosine Accuracy@3 - type: cosine_accuracy@5 value: 0.85 name: Cosine Accuracy@5 - type: cosine_accuracy@10 value: 0.875 name: Cosine Accuracy@10 - type: cosine_precision@1 value: 0.768 name: Cosine Precision@1 - type: cosine_precision@3 value: 0.277 name: Cosine Precision@3 - type: cosine_precision@5 value: 0.17 name: Cosine Precision@5 - type: cosine_precision@10 value: 0.0875 name: Cosine Precision@10 - type: cosine_recall@1 value: 0.768 name: Cosine Recall@1 - type: cosine_recall@3 value: 0.831 name: Cosine Recall@3 - type: cosine_recall@5 value: 0.85 name: Cosine Recall@5 - type: cosine_recall@10 value: 0.875 name: Cosine Recall@10 - type: cosine_ndcg@10 value: 0.8214325859707221 name: Cosine Ndcg@10 - type: cosine_mrr@10 value: 0.8043686507936509 name: Cosine Mrr@10 - type: cosine_map@100 value: 0.8065203019681522 name: Cosine Map@100 - task: type: information-retrieval name: Information Retrieval dataset: name: dev text2sql type: dev-text2sql metrics: - type: cosine_accuracy@1 value: 0.994 name: Cosine Accuracy@1 - type: cosine_accuracy@3 value: 0.998 name: Cosine Accuracy@3 - type: cosine_accuracy@5 value: 1.0 name: Cosine Accuracy@5 - type: cosine_accuracy@10 value: 1.0 name: Cosine Accuracy@10 - type: cosine_precision@1 value: 0.994 name: Cosine Precision@1 - type: cosine_precision@3 value: 0.3326666666666666 name: Cosine Precision@3 - type: cosine_precision@5 value: 0.2 name: Cosine Precision@5 - type: cosine_precision@10 value: 0.1 name: Cosine Precision@10 - type: cosine_recall@1 value: 0.994 name: Cosine Recall@1 - type: cosine_recall@3 value: 0.998 name: Cosine Recall@3 - type: cosine_recall@5 value: 1.0 name: Cosine Recall@5 - type: cosine_recall@10 value: 1.0 name: Cosine Recall@10 - type: cosine_ndcg@10 value: 0.9972974246287549 name: Cosine Ndcg@10 - type: cosine_mrr@10 value: 0.9964 name: Cosine Mrr@10 - type: cosine_map@100 value: 0.9964 name: Cosine Map@100 --- # code-embed-v3 This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Alibaba-NLP/gte-modernbert-base](https://huggingface.co/Alibaba-NLP/gte-modernbert-base) on 15 datasets. It maps inputs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more. ## Model Details ### Model Description - **Model Type:** Sentence Transformer - **Base model:** [Alibaba-NLP/gte-modernbert-base](https://huggingface.co/Alibaba-NLP/gte-modernbert-base) - **Maximum Sequence Length:** 8192 tokens - **Output Dimensionality:** 768 dimensions - **Similarity Function:** Cosine Similarity - **Supported Modality:** Text - **Training Datasets:** - cornstack_python - cornstack_java - cornstack_javascript - cornstack_go - cornstack_php - cornstack_ruby - cornstack_python_c2t - cornstack_java_c2t - cornstack_javascript_c2t - code_contests_xlang - swe_smith - spider - behaviour_nl2code - behaviour_code2code - behaviour_swe_twins - **Languages:** en, code - **License:** apache-2.0 ### Model Sources - **Documentation:** [Sentence Transformers Documentation](https://sbert.net) - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers) - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers) ### Full Model Architecture ``` SentenceTransformer( (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'ModernBertModel'}) (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'cls', 'include_prompt': True}) (2): Normalize({'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'}) ) ``` ## Usage ### Direct Usage (Sentence Transformers) First install the Sentence Transformers library: ```bash pip install -U sentence-transformers ``` Then you can load this model and run inference. ```python from sentence_transformers import SentenceTransformer # Download from the 🤗 Hub model = SentenceTransformer("divakantpandey/code-embed-v3-150m-ft-behaviour") # Run inference queries = [ 'How many books are there?', ] documents = [ 'SELECT count(*) FROM book', 'SELECT count(*) FROM authors', 'SELECT count(*) FROM book_club', ] query_embeddings = model.encode_query(queries) document_embeddings = model.encode_document(documents) print(query_embeddings.shape, document_embeddings.shape) # [1, 768] [3, 768] # Get the similarity scores for the embeddings similarities = model.similarity(query_embeddings, document_embeddings) print(similarities) # tensor([[0.8305, 0.5399, 0.6037]]) ``` ## Evaluation ### Metrics #### Information Retrieval * Dataset: `dev-code2code` * Evaluated with [InformationRetrievalEvaluator](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.InformationRetrievalEvaluator) with these parameters: ```json { "query_prompt": "Find code equivalent to this code: " } ``` | Metric | Value | |:--------------------|:-----------| | cosine_accuracy@1 | 0.2836 | | cosine_accuracy@3 | 0.4328 | | cosine_accuracy@5 | 0.4874 | | cosine_accuracy@10 | 0.5864 | | cosine_precision@1 | 0.2836 | | cosine_precision@3 | 0.1443 | | cosine_precision@5 | 0.0975 | | cosine_precision@10 | 0.0586 | | cosine_recall@1 | 0.2836 | | cosine_recall@3 | 0.4328 | | cosine_recall@5 | 0.4874 | | cosine_recall@10 | 0.5864 | | **cosine_ndcg@10** | **0.4253** | | cosine_mrr@10 | 0.3751 | | cosine_map@100 | 0.3856 | #### Information Retrieval * Dataset: `dev-code2nl` * Evaluated with [InformationRetrievalEvaluator](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.InformationRetrievalEvaluator) with these parameters: ```json { "query_prompt": "Find the description of this code: " } ``` | Metric | Value | |:--------------------|:-----------| | cosine_accuracy@1 | 0.804 | | cosine_accuracy@3 | 0.855 | | cosine_accuracy@5 | 0.876 | | cosine_accuracy@10 | 0.896 | | cosine_precision@1 | 0.804 | | cosine_precision@3 | 0.285 | | cosine_precision@5 | 0.1752 | | cosine_precision@10 | 0.0896 | | cosine_recall@1 | 0.804 | | cosine_recall@3 | 0.855 | | cosine_recall@5 | 0.876 | | cosine_recall@10 | 0.896 | | **cosine_ndcg@10** | **0.8488** | | cosine_mrr@10 | 0.8338 | | cosine_map@100 | 0.8354 | #### Information Retrieval * Dataset: `dev-code_edit` * Evaluated with [InformationRetrievalEvaluator](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.InformationRetrievalEvaluator) with these parameters: ```json { "query_prompt": "Find the code change described by: " } ``` | Metric | Value | |:--------------------|:----------| | cosine_accuracy@1 | 0.94 | | cosine_accuracy@3 | 0.992 | | cosine_accuracy@5 | 0.996 | | cosine_accuracy@10 | 0.996 | | cosine_precision@1 | 0.94 | | cosine_precision@3 | 0.3307 | | cosine_precision@5 | 0.1992 | | cosine_precision@10 | 0.0996 | | cosine_recall@1 | 0.94 | | cosine_recall@3 | 0.992 | | cosine_recall@5 | 0.996 | | cosine_recall@10 | 0.996 | | **cosine_ndcg@10** | **0.973** | | cosine_mrr@10 | 0.9651 | | cosine_map@100 | 0.9653 | #### Information Retrieval * Dataset: `dev-nl2code` * Evaluated with [InformationRetrievalEvaluator](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.InformationRetrievalEvaluator) with these parameters: ```json { "query_prompt": "Find the code that answers this query: " } ``` | Metric | Value | |:--------------------|:-----------| | cosine_accuracy@1 | 0.768 | | cosine_accuracy@3 | 0.831 | | cosine_accuracy@5 | 0.85 | | cosine_accuracy@10 | 0.875 | | cosine_precision@1 | 0.768 | | cosine_precision@3 | 0.277 | | cosine_precision@5 | 0.17 | | cosine_precision@10 | 0.0875 | | cosine_recall@1 | 0.768 | | cosine_recall@3 | 0.831 | | cosine_recall@5 | 0.85 | | cosine_recall@10 | 0.875 | | **cosine_ndcg@10** | **0.8214** | | cosine_mrr@10 | 0.8044 | | cosine_map@100 | 0.8065 | #### Information Retrieval * Dataset: `dev-text2sql` * Evaluated with [InformationRetrievalEvaluator](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.InformationRetrievalEvaluator) with these parameters: ```json { "query_prompt": "Find the SQL query for this request: " } ``` | Metric | Value | |:--------------------|:-----------| | cosine_accuracy@1 | 0.994 | | cosine_accuracy@3 | 0.998 | | cosine_accuracy@5 | 1.0 | | cosine_accuracy@10 | 1.0 | | cosine_precision@1 | 0.994 | | cosine_precision@3 | 0.3327 | | cosine_precision@5 | 0.2 | | cosine_precision@10 | 0.1 | | cosine_recall@1 | 0.994 | | cosine_recall@3 | 0.998 | | cosine_recall@5 | 1.0 | | cosine_recall@10 | 1.0 | | **cosine_ndcg@10** | **0.9973** | | cosine_mrr@10 | 0.9964 | | cosine_map@100 | 0.9964 | ## Training Details ### Training Datasets
cornstack_python #### cornstack_python * Dataset: cornstack_python * Size: 21,438 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details | | | | | | | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Hypothesis decorator to draw a random asymmetric game. | def asymmetric_games(draw, valid=True):

rows = draw(integers(min_value=2, max_value=255))
cols = draw(integers(min_value=2, max_value=255))

A = draw(arrays(int, (rows, cols)))
B = draw(arrays(int, (cols, rows)))

return axl.AsymmetricGame(A, B)
| def side(G, H):
left_1 = {side(G_L, H) for G_L in G._left}
left_2 = {H_L for H_L in H._left}
right_1 = {G_R for G_R in G._right}
right_2 = {side(G, H_R) for H_R in H._right}
return Game(left_1 \| left_2, right_1 \| right_2)
| def diminished_disjunctive(G, H):
if G == 0 or H == 0:
return Game(0)
else:
left_1 = {diminished_disjunctive(G_L, H) for G_L in G._left}
left_2 = {diminished_disjunctive(G, H_L) for H_L in H._left}
right_1 = {diminished_disjunctive(G_R, H) for G_R in G._right}
right_2 = {diminished_disjunctive(G, H_R) for H_R in H._right}
return Game(left_1 \| left_2, right_1 \| right_2)
| def selective(G, H):
left_1 = {selective(G_L, H) for G_L in G._left}
left_2 = {selective(G, H_L) for H_L in H._left}
left_3 = {selective(G_L, H_L) for G_L in G._left for H_L in H._left}
right_1 = {selective(G_R, H) for G_R in G._right}
right_2 = {selective(G, H_R) for H_R in H._right}
right_3 = {selective(G_R, H_R) for G_R in G._right for H_R in H._right}
return Game(left_1 \| left_2 \| left_3, right_1 \| right_2 \| right_3)
| def solve_randomly(*args):
args = list(args[0]) + ["--sign-def=3","--seed="+str(random.randint(0,1<<30))]
return solve(*args)
| | u""" This test do login and check one by one that all views appear. | def test_views_appear(self):

"""

logging.basicConfig(filename="Views.log", level=logging.INFO, filemode='w')

driver = self.driver
self.login()
detect_and_pass_all_wizards(driver)

click_menu_element(driver,"Tactical view")
time.sleep(2)
self.assertEqual("Status report" in driver.page_source,True)
click_menu_element(driver,"Group view")
time.sleep(2)
self.assertEqual("Summary of the status groups" in driver.page_source,True)
time.sleep(2)
click_menu_element(driver,"Tree view")
time.sleep(2)
self.assertEqual("Tree search" in driver.page_source,True)
time.sleep(2)
click_menu_element(driver,"Agent detail")
time.sleep(2)
self.assertEqual("Description" in driver.page_source,True)
click_menu_element(driver,"Monitor detail")
time.sleep(2)
self.assertEqual("Monitor status" in driver.page_source,True)
click_menu_element(driver,"Alert details")
time.sleep(2)
self.assertEqual("Alert control filter" in driver.page_source,True)
click_menu...
| def test_view_profile(self):
LOGGER.debug("Test GET /rango/view/leothelion/ for anon user")
anon_view_response = self.client.get('/rango/view/leothelion/')
self.assertContains(anon_view_response, "leothelion@hotmail.com")

LOGGER.debug("Test GET /rango/view/leothelion/ for logged in user")
self.client.login(username='leothelion', password='rawr')
logged_in_view_response = self.client.get('/rango/view/leothelion/')
self.assertContains(logged_in_view_response, "leothelion@hotmail.com")

"""Test to see if profile for hungryhippo can be viewed anon and logged in"""
LOGGER.debug("Test GET /rango/view/hungyhippo/ for anon user")
anon_view_response = self.client.get('/rango/view/hungryhippo/')
self.assertNotContains(anon_view_response, "hungryhungry@hotmail.com")
self.assertContains(anon_view_response, "Hungry")

LOGGER.debug("Test GET /rango/view/hungryhippo/ for logged in user")...
| def test_user_list(self):
response = self.client.get('/tests/dashboard/')
self.assertEqual(response.status_code, 200)
self.assertContains(response, 'testuser', html=True)
self.assertContains(response, 'none@nowhere.none', html=True)
| def test_post_login_page(self):
response = self.client.post(
reverse('users:login'), {'username': self.user['username'], 'password': self.user['password1']}, follow=True
)
self.assertRedirects(response, reverse('users:home'))
| def view_exists(self, view):
with open("/dev/null", "w") as devnull:
call = subprocess.Popen(self.cli + [PlatformJenkinsJavaCLI.GET_VIEW, view], stdout=devnull, stderr=devnull)
call.wait()
return call.returncode == 0
| | Angle between two points, radians | def getangle(p1, p2):
return atan2( p2[1]-p1[1], p2[0]-p1[0] )
| def rightTurnFiltered(a, b, c):
def isSmall(number):
"""Function to check if a number is very small."""
return abs(number) < epsilon

def floatVectortoFractionVector(vector):
return [Fraction.from_float(x) for x in vector]

def crossProduct(p1, p2, p3):
"""Compute the crossProduct of the vectors p2 - p1 and p3 - p1."""
return (
-(p1[1]*p2[0]) + p1[0]*p2[1] +
p1[1]*p3[0] - p2[1]*p3[0] -
p1[0]*p3[1] + p2[0]*p3[1]
)

v1Norm = euclidean_distance(a, b)
v2Norm = euclidean_distance(a, c)
q = crossProduct(a, b, c)
angle = q / (v1Norm * v2Norm)

if (
isSmall(v1Norm) or
isSmall(v2Norm) or
isSmall(angle)
):
q = crossProduct(
floatVectortoFractionVector(a),
floatVectortoFractionVector(b),
floatVectortoFractionVector(c)
)
return (q > 0)
| def calculate_distance_between_coordinates(coordinate1, coordinate2):

# convert decimal degrees to radians
lon1, lat1, lon2, lat2 = map(radians, [coordinate1[0], coordinate1[1], coordinate2[0], coordinate2[1]])

# haversine formula
dlon = lon2 - lon1
dlat = lat2 - lat1
a = sin(dlat/2)**2 + cos(lat1) * cos(lat2) * sin(dlon/2)**2
c = 2 * asin(sqrt(a))
r = 6371 # Radius of earth in kilometers. Use 3956 for miles
return c * r
| def compute_cosine_sim(vec1, vec2):

vec1 = np.array(vec1)
vec2 = np.array(vec2)
return np.dot(vec1, vec2)/(norm(vec1) * norm(vec2))
| def euclidean_distance(self, point):
mean = self.mean()
dist = euclidean(mean, point)
radius = self.radius * self.distance_factor()
if radius == 0.0:
# corner case: the ball consists of a single point only
# distance is defined as > 1 for flat dimensions unless point lies inside
if point == mean:
dist = 0.0
else:
dist += 1
else:
# normalization so that result 1.0 corresponds to dist == radius (i.e., point is on the border)
dist /= radius
return dist
| * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
cornstack_java #### cornstack_java * Dataset: cornstack_java * Size: 19,830 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details | | | | | | | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Parses the given seekinfo line and returns a corresponding SeekInfoStruct object. Here's an example seekinfo line: 29 w=Snaps ti=02 rt=1532 t=1 i=0 r=r tp=lightning c=? rr=09999 a=t f=t If the seek cannot be accepted by the user, the line identifier is "" and not "". More information about the format is available in the FICS iv_seekinfo help file. | public static SeekInfoStruct parseSeekInfoLine(String line) {
StringTokenizer tokens = new StringTokenizer(line, " -=");

boolean canAcceptSeek;
String identifier = tokens.nextToken();
if (identifier.equals("")) // Skip the identifier
canAcceptSeek = true;
else if (identifier.equals("")) canAcceptSeek = false;
else throw new IllegalArgumentException("Missing \"\" or \"\" identifier");

int index = Integer.parseInt(tokens.nextToken());

assertToken(tokens, "w"); // w=
String name = tokens.nextToken();

assertToken(tokens, "ti"); // ti=
int titles = Integer.parseInt(tokens.nextToken(), 16);

assertToken(tokens, "rt"); // rt=
String ratingString = tokens.nextToken();
char provShow = ' ';
if (!Character.isDigit(ratingString.charAt(ratingString.length() - 1))) {
provShow = ratingString.charAt(ratingString.length() - 1);
ratingString = ratingString.substring(0, ratingString.length() - 1);
}
...
| public SeekInfoStruct(
boolean canAcceptSeek,
int index,
String name,
int titles,
int rating,
char provshow,
int time,
int inc,
boolean isRated,
String matchType,
char color,
int minRating,
int maxRating,
boolean isAutomaticAccept,
boolean isFormulaUsed) {

if (time < 0)
throw new IllegalArgumentException(
"The game's initial time (" + time + ") may not be negative");

if (inc < 0)
throw new IllegalArgumentException("The game's increment (" + inc + ") may not be negative");

switch (color) {
case '?':
case 'W':
case 'B':
break;
default:
throw new IllegalArgumentException("Bad color character: " + color);
}

setBooleanProperty("CanAcceptSeek", canAcceptSeek);
setIntegerProperty("Index", index);
setStringProperty("Name", name);
setIntegerProperty("Titles", titles);
setIntegerProperty("Rating", rating);
...
| public String ReadINI(String Section, String Key, String FilePath) {
String sValue = "";
int iRetVal = -2;
String[] FileLines = null;
String sTemp = "";
boolean bKeyFound = false;
boolean bSectionFound = false;
int i = 0;
int counter = 0;
try {
FileLines = ReadAllFileLines(FilePath);

for (i = 0; i < FileLines.length; i++) {
sTemp = FileLines[i].trim();
if (sTemp.charAt(0) == '[' && sTemp.charAt(sTemp.length() - 1) == ']') {
if (sTemp.substring(1, sTemp.length() - 1).equalsIgnoreCase(Section)) {
bSectionFound = true;
counter = i + 1;
while (!bKeyFound) {

}

}
}
if (bKeyFound) {
break;
}
}

if (!bKeyFound) {
throw new Ex...
| private static Net parseArrayNet(ParserRuleContext con) throws Exception {

int tokensR = con.getSourceInterval().length();

if (tokensR == 4 \|\| tokensR == 5) {

// indexed identifier, e.g. x[1]

int spaceBuffer = tokensR == 5 ? 1 : 0;

int firstToken = con.start.getTokenIndex();

Token token1 = tokenStream.get(firstToken);

Token token2 = tokenStream.get(firstToken + 1 + spaceBuffer);

Token token3 = tokenStream.get(firstToken + 2 + spaceBuffer);

Token token4 = tokenStream.get(firstToken + 3 + spaceBuffer);

if (token2.getText().equals("[") && token4.getText().equals("]")) {

Net result = new Net(token1.getText());

int bit = Integer.parseInt(token3.getText());

result.start = bit;

result.end = bit;

return result;

}

}

return null;

}
| public String getSeekerHandle() {
return getStringProperty("Name");
}
| | Inserts a new particle at the current position of the lexed string. | public void insertAtCurrentPos(String part)
{
StringBuffer newLine = new StringBuffer( this.getLine() );

newLine.insert( this.getPos(), part + ' ' );
this.line = newLine.toString();
}
| public void insert(Node given){
length++;
String retVar = "";
Node curNode = root;
while (!curNode.isLeaf()){
if (curNode.getData() > given.getData()){
curNode = curNode.getLeft();
}
else{
curNode = curNode.getRight();
}
}
if (curNode.getData() > given.getData()){
curNode.setLeft(given);
}
else{
curNode.setRight(given);
}
myLazySearchFunction = curNode;
}
| public final void yybegin(int newState) {
zzLexicalState = newState;
}
| public void insert(String s, int k) {
assert(k > -1 && k < seq.size() + 1);
ArrayList newSeq = new ArrayList();
if (k == 0) {
for (char c : s.toCharArray()) {
if (isValid(c)) newSeq.add(c);
}
}
else {
for (int i = 0; i < k; i++) {
newSeq.add(seq.get(i));
}
for (char c : s.toCharArray()) {
if (isValid(c)) newSeq.add(c);
}
}
for (int i = k; i < seq.size(); i++) {
newSeq.add(seq.get(i));
}
seq = newSeq;
}
| private void insertTokenPosition(Element parent, String span, String[] labelParts, BoxCoordinates positionSpan) {
//associate position here
adjustPosition(parent, positionSpan);
// parent.setAttribute("llx", String.valueOf(positionSpan.getLlx()));
// parent.setAttribute("lly", String.valueOf(positionSpan.getLly()));
// parent.setAttribute("urx", String.valueOf(positionSpan.getUrx()));
// parent.setAttribute("ury", String.valueOf(positionSpan.getUry()));
//end associate position
if (labelParts.length > 0) {
String labelPart = labelParts[0];
Element child;

if ((child = lastChild( parent )) == null \|\| labelPart.startsWith( "^" ) \|\| !labelPart.equals( child.getName() )) {
labelPart = labelPart.replaceFirst( "^\\^", "" );
child = new Element( labelPart );
parent.addContent( child );
}
List tails = Arrays.asList( labelParts )...
| | CHECKSTYLE:OFF This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// //GEN-BEGIN:initComponents
private void initComponents() {

jbtnOk = new javax.swing.JButton();
jbtnCancel = new javax.swing.JButton();
jftfCoord1 = new javax.swing.JFormattedTextField();
jftfCoord2 = new javax.swing.JFormattedTextField();
jcbType = new javax.swing.JComboBox();
jtfName = new javax.swing.JTextField();
jlbType = new javax.swing.JLabel();
jlbCoord1 = new javax.swing.JLabel();
jlbCoord2 = new javax.swing.JLabel();
jlbText = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ru.gss.pmfsearcher.PMFSearcherApp.class).getContext().getResourceMap(DlgReperEdit.class);
setTitle(resourceMap.getString("Form.title")); // NOI18N
...
| @SuppressWarnings("unchecked")
// //GEN-BEGIN:initComponents
private void initComponents() {

beat = new javax.swing.JButton();
record = new javax.swing.JButton();
letempo = new javax.swing.JLabel();
testtempo = new javax.swing.JButton();
text = new javax.swing.JTextField();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

beat.setText("Set Beat");
beat.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
beatActionPerformed(evt);
}
});

record.setText("Start Recording Music");
record.setEnabled(false);
record.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
recordActionPerformed(evt);
}
...
| @Override
public void actionPerformed(ActionEvent arg0) {
UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider();
if (provider != null) {
provider.addWord(word);
}
Dictionary dictionary = SpellChecker.getCurrentDictionary();
dictionary.add(word);
dictionary.trimToSize();
AutoSpellChecker.refresh(jText);
}
| public void mo8822f() {
if (C2274o.m9903i(C3720a.this.f12125b.mo8842J())) {
if (!C2331d.m10125b((Activity) C3720a.this, C2328a.ON_PANTILTER_SET_HOME_POSITION)) {
C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {
public void run() {
C2331d.m10114a((Activity) C3720a.this, C2328a.ON_PANTILTER_SET_HOME_POSITION, (Bundle) null);
}
});
}
} else if (C2274o.m9902h(C3720a.this.f12125b.mo8842J())) {
C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {
public void run() {
C3720a.this.f12125b.mo8868e(C3720a.this._context.getText(R.string.cmn_msg_just_a_moment).toString());
}
});
} else {
if (C2274o.m9917w(C3720a.this.f12125b.mo8842J()) && !C3720a.this._isStartPreset) {
C...
| @Override
public void init() {
// System.out.println("init UIAgent");

// System.out.println("closing old dialog of ");
if (ui != null) {
ui.dispose();
ui = null;
}
// System.out.println("old dialog closed. Trying to open new dialog. ");
try {
ui = new EnterBidDialog(this, null, true,
(AdditiveUtilitySpace) utilitySpace, null);
} catch (Exception e) {
System.out.println("Problem in UIAgent2.init:" + e.getMessage());
e.printStackTrace();
}
// System.out.println("finished init of UIAgent2");
}
| * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
cornstack_javascript #### cornstack_javascript * Dataset: cornstack_javascript * Size: 19,562 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:-----------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
  • min: 21 characters
  • mean: 93.4 characters
  • max: 959 characters
|
  • min: 47 characters
  • mean: 500.75 characters
  • max: 2480 characters
|
  • min: 40 characters
  • mean: 559.12 characters
  • max: 3989 characters
|
  • min: 16 characters
  • mean: 424.6 characters
  • max: 2792 characters
|
  • min: 46 characters
  • mean: 586.8 characters
  • max: 15254 characters
|
  • min: 29 characters
  • mean: 547.54 characters
  • max: 3800 characters
| * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Funtion to get username and check for null and empty string | function getUserName(){
let userName = null;
do {
userName = prompt('What is your name?');
console.log('User entered: ' + userName + ' for name.');
if (userName) {break;}
alert('Please enter a name!');
} while (userName === null \|\| userName === '');
return userName;
}
| static checkEmptyUserInput(userValue){
return (userValue==0 ? true : false);
}
| function validasi() {
var user = document.getElementById("username").value;
var pass = document.getElementById("password").value;
if (user == "" && pass == "") {
alert("Silahkan Masukkan Username/Password Dengan Benar");
return false;
}
else if (user == "admin" && pass == "admin"){
alert('Anda Berhasil Login');
window.location = "admin.html";
return false;
}else{
alert("Silahkan Masukkan Username/Password Dengan Benar");
}

}
| function pndFormCheck(number){
var lastName = $('input.lastName');
var firstName = $('input.firstName');
if(lastName[number].value == null \|\| lastName[number].value == "" \|\| firstName[number].value == null \|\| firstName[number].value == ""){
alert('Füllen Sie bitte zunächst Nach- und Vornamenfelder aus');
return false;
}
return true;

}
| function getUsernames() {
fetch(url)
.then(
function (response) {
if (response.status !== 200) {
return;
}
response.json().then(function (data) {
const userArray = data;
for (let i = 0; i < userArray.length; i++) {
usernameArray.push(userArray[i].username);
setUsernameDiv();
}
});
}
)
.catch(function (err) {
console.log('Fetch Error :-S', err);
});
}
| | create output Storage if the number of items in the array is greater than the count: for how many ever items you want, starting at the last item: add the item to the beginning of the output storage otherwise: set output storage equal to array return output storage | function takeRight(array, count) {
var newArray = [];
if (array.length > count) {
for (var i = array.length - 1; i >= array.length - count; i--) {
newArray.unshift(array[i]);
}
} else {
newArray = array;
}
return newArray;
}
| function createListItems(arr){
let items = '';

for(let i =0; i items += `
  • ${arr[i]}
  • `;
    }
    return items;
    }
    | function displayActivities(){
    //loadListFromLocalStorage();
    var activityLength = $('#artActivityList ol li').size()
    var storageLength = localStorage.length;
    if(activityLength > 0){
    clearActivityList();
    }

    if(activityLength < storageLength)
    for(var i = storageLength; i > 0; --i){
    displayAnItem(localStorage.getItem(i));
    alert(i + ", " + localStorage.getItem(i));
    }
    }
    | function createNonSortedArray(size){
    var array = [];

    for (var i = size; i> 0; i--){
    array[i] = i;
    }

    return array;
    }
    | *selectsortGenerator(array) {
    for (var i = 0; i < array.length; ++i){
    let min = i;
    for (var j = i + 1; j < array.length; ++j){
    if (array[min] > array[j]){
    min = j;
    }
    }
    if ( i !== min){
    [array[i], array[min]] = [array[min], array[i]];
    yield array;
    }

    }
    return array;
    }
    | | loc trong danh sach list trucking nhung ban ghi co thuoc list filter | function filterListTrucking(listTrucking, listFilter, type) {
    if(listFilter == null \|\| typeof listFilter == 'undefined' \|\| listFilter.length == 0) {
    return listTrucking;
    }
    var result = [];
    if(type == 'goodsType') {
    for(var i = 0; i < listTrucking.length; i++) {
    var trucking = listTrucking[i];
    if(containInArray(listFilter, trucking.goodsTypeId)) {
    result.push(trucking);
    }
    }
    } else if (type == 'truckType') {
    for(var i = 0; i < listTrucking.length; i++) {
    var trucking = listTrucking[i];
    if(containInArray(listFilter, trucking.truck.truckTypeId)) {
    result.push(trucking);
    }
    }
    }
    return result;
    }
    | function find()
    {
    var str = prompt("Tìm theo thên sinh viên: ");
    var min = parseFloat(prompt("Min Điểm Anh Văn: "));
    var max = parseFloat(prompt("Max Điểm Anh Văn: "));

    var found = [];

    for(var i=0; i {
    var logic = list[i].name.includes(str) && (min <= list[i].english) && (list[i].english <= max);
    //var logic = (list[i].name == name && min<= list[i].english && list[i].english <=max);

    if (logic)
    {
    found.push(list[i]);
    }
    }

    if(!found.length)
    {
    console.log("Không tìm thấy !");
    return;
    }

    console.log(`Các sinh viên có tên '${name}' mà điểm tiếng Anh nằm trong khoảng (${min}, ${max})`);
    console.table(found);
    }
    | function a(e,a,c,n){var t={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return a?t[c][0]:t[c][1]} | async function tinhDienTichDongBo(a,b,h){
    let tong = await cong(a,b)
    let tich = await nhan(tong,h)
    let thuong = await chia(tich,2)
    return thuong
    }
    | function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]} | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    cornstack_go #### cornstack_go * Dataset: cornstack_go * Size: 23,220 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 24 characters
    • mean: 86.61 characters
    • max: 696 characters
    |
    • min: 58 characters
    • mean: 337.68 characters
    • max: 2204 characters
    |
    • min: 24 characters
    • mean: 258.42 characters
    • max: 1357 characters
    |
    • min: 55 characters
    • mean: 297.45 characters
    • max: 1584 characters
    |
    • min: 24 characters
    • mean: 567.71 characters
    • max: 12108 characters
    |
    • min: 41 characters
    • mean: 357.15 characters
    • max: 5349 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:-----------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ClientPortMatchConditionParameters_STATUSGenerator returns a generator of ClientPortMatchConditionParameters_STATUS instances for property testing. | func ClientPortMatchConditionParameters_STATUSGenerator() gopter.Gen {
    if clientPortMatchConditionParameters_STATUSGenerator != nil {
    return clientPortMatchConditionParameters_STATUSGenerator
    }

    generators := make(map[string]gopter.Gen)
    AddIndependentPropertyGeneratorsForClientPortMatchConditionParameters_STATUS(generators)
    clientPortMatchConditionParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(ClientPortMatchConditionParameters_STATUS{}), generators)

    return clientPortMatchConditionParameters_STATUSGenerator
    }
    | func RequestMethodMatchConditionParameters_STATUSGenerator() gopter.Gen {
    if requestMethodMatchConditionParameters_STATUSGenerator != nil {
    return requestMethodMatchConditionParameters_STATUSGenerator
    }

    generators := make(map[string]gopter.Gen)
    AddIndependentPropertyGeneratorsForRequestMethodMatchConditionParameters_STATUS(generators)
    requestMethodMatchConditionParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(RequestMethodMatchConditionParameters_STATUS{}), generators)

    return requestMethodMatchConditionParameters_STATUSGenerator
    }
    | func AddIndependentPropertyGeneratorsForClientPortMatchConditionParameters_STATUS(gens map[string]gopter.Gen) {
    gens["MatchValues"] = gen.SliceOf(gen.AlphaString())
    gens["NegateCondition"] = gen.PtrOf(gen.Bool())
    gens["Operator"] = gen.PtrOf(gen.AlphaString())
    gens["Transforms"] = gen.SliceOf(gen.AlphaString())
    gens["TypeName"] = gen.PtrOf(gen.AlphaString())
    }
    | func RequestHeaderMatchConditionParameters_STATUSGenerator() gopter.Gen {
    if requestHeaderMatchConditionParameters_STATUSGenerator != nil {
    return requestHeaderMatchConditionParameters_STATUSGenerator
    }

    generators := make(map[string]gopter.Gen)
    AddIndependentPropertyGeneratorsForRequestHeaderMatchConditionParameters_STATUS(generators)
    requestHeaderMatchConditionParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(RequestHeaderMatchConditionParameters_STATUS{}), generators)

    return requestHeaderMatchConditionParameters_STATUSGenerator
    }
    | func SocketAddrMatchConditionParameters_STATUSGenerator() gopter.Gen {
    if socketAddrMatchConditionParameters_STATUSGenerator != nil {
    return socketAddrMatchConditionParameters_STATUSGenerator
    }

    generators := make(map[string]gopter.Gen)
    AddIndependentPropertyGeneratorsForSocketAddrMatchConditionParameters_STATUS(generators)
    socketAddrMatchConditionParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(SocketAddrMatchConditionParameters_STATUS{}), generators)

    return socketAddrMatchConditionParameters_STATUSGenerator
    }
    | | ToMap collects constructors to map. | func (s HelpAppUpdateArray) ToMap() map[int]HelpAppUpdate {
    r := make(map[int]HelpAppUpdate, len(s))
    s.FillMap(r)
    return r
    }
    | func newMap() map[interface{}]interface{} {
    return map[interface{}]interface{}{}
    }
    | func CookiesToMap(r *http.Request) map[string]interface{} {
    var cookies = make(map[string]interface{})
    for _, v := range r.Cookies() {
    vint64, err := AssignGetInt64(v.Value)
    if err == nil {
    cookies[v.Name] = vint64
    continue
    }
    vfloat64, err := AssignGetFloat64(v.Value)
    if err == nil {
    cookies[v.Name] = vfloat64
    continue
    }
    cookies[v.Name] = v.Value
    }
    return cookies
    }
    | func MakeMap(kt *types.T, kvs ...T) *Map {
    if len(kvs)%2 != 0 {
    panic("uneven makemap")
    }
    m := new(Map)
    for i := 0; i < len(kvs); i += 2 {
    m.Insert(Digest(kvs[i], kt), kvs[i], kvs[i+1])
    }
    return m
    }
    | func Map(src config.Cfg) {
    cfg.Map(src)
    }
    | | ClearCreateBy clears the "create_by" edge to the User entity. | func (m *JobHistoryMutation) ClearCreateBy() {
    m.clearedcreate_by = true
    }
    | func (m *JobHistoryMutation) CreateByCleared() bool {
    return m.CreateByUserCleared() \|\| m.clearedcreate_by
    }
    | func (m *SystemMutation) ResetCreateBy() {
    m.create_by = nil
    m.clearedcreate_by = false
    }
    | func (m *OrgUnitPositionMutation) CreateByCleared() bool {
    return m.CreateByUserCleared() \|\| m.clearedcreate_by
    }
    | func (m *UserMutation) ClearUpdateBy() {
    m.clearedupdate_by = true
    }
    | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    cornstack_php #### cornstack_php * Dataset: cornstack_php * Size: 18,657 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 16 characters
    • mean: 63.95 characters
    • max: 310 characters
    |
    • min: 38 characters
    • mean: 557.74 characters
    • max: 8569 characters
    |
    • min: 29 characters
    • mean: 964.24 characters
    • max: 15786 characters
    |
    • min: 28 characters
    • mean: 835.33 characters
    • max: 8314 characters
    |
    • min: 34 characters
    • mean: 907.76 characters
    • max: 13455 characters
    |
    • min: 25 characters
    • mean: 532.11 characters
    • max: 3780 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Index Action Home principal | public function indexAction(){
    $this->view->doctype('XHTML1_RDFA');
    $this->_helper->layout->disableLayout();
    $this->_helper->redirector->setCode(301);
    $this->_redirect('/contenido/seccion/home');
    }
    | public function index()
    {
    return view('home');
    }
    | public function indexActionViewData() {
    return [];
    }
    | function collectStandardPropertiesAndActions()
    {
    $cat_info = $this->getCatInfo();

    //we can move this to the factory.
    if($cat_info['editable'] and !$this->appointment['event']->isAutoGenerated())
    {
    $this->ctrl->clearParametersByClass('ilcalendarappointmentgui');
    // $this->ctrl->setParameterByClass('ilcalendarappointmentgui','seed', $this->getSeed()->get(IL_CAL_DATE));
    $this->ctrl->setParameterByClass('ilcalendarappointmentgui','app_id',$this->appointment['event']->getEntryId());
    $this->ctrl->setParameterByClass('ilcalendarappointmentgui','dt',$this->appointment['dstart']);

    $this->addAction($this->lng->txt("edit"),
    $this->ctrl->getLinkTargetByClass(array('ilcalendarappointmentgui'), 'askEdit'));

    $this->ctrl->clearParametersByClass('ilcalendarappointmentgui');
    // $this->ctrl->setParameterByClass('ilcalendarappointmentgui','seed',$this->getSeed()->get(IL_CAL_DATE));
    $this->ctrl->setParameterByClass('ilcalendarappointmentgui','app_id',$this->appointment...
    | public function indexAction() {
    $monumentName = $this->_getParam('monumentName');
    $county =$this->_getParam('county');
    $district = $this->_getParam('district');
    $parish = $this->_getParam('parish');
    $page = $this->_getParam('page');
    $smrs = new Osdata();
    $this->view->osdata = $smrs->getSmrs($page,$county,$district,$parish,$monumentName);
    $form = new SAMFilterForm();
    $this->view->form = $form;
    if(!is_null($county)) {
    $districts = new Places();
    $district_list = $districts->getDistrictList($county);
    $form->district->addMultiOptions(array(NULL => NULL,'Choose district' => $district_list));
    if(!is_null($district)) {
    $parish_list = $districts->getParishList($district);
    $form->parish->addMultiOptions(array(NULL => NULL,'Choose parish' => $parish_list));
    }
    }

    $form->monumentName->setValue($monumentName);
    $form->district->setValue($district);
    $form->parish->setValue($parish);
    $form->county->setValue($county);
    if ($this->_request->isPost() && !is_n...
    | | / Angular Bootstrap Js End Here / Angular Private Function Start Here | private function dashboardAngular() {
    $jsangu = '';
    $jsangu .='';
    $jsangu .='';
    return $jsangu;
    }
    | public function __construct() {
    parent::__construct();

    // Function untuk pemanggilan helper
    $this->load->helper('html');

    // Function untuk pemanggilan model
    $this->load->model("Barang_model");
    }
    | abstract protected function doStart($parentId); | public function footerJs($array = array()) {
    if (!empty($array)) {
    if (in_array("addMoreEventTickets", $array)) {
    $js = '';
    $js .=$this->angularJs();
    $js .=$this->AddMoreEventAngular();
    $js .=$this->coreJs();
    return $js;
    } elseif (in_array("addMoreQustions", $array)) {
    $js = '';
    $js .=$this->angularJs();
    $js .=$this->AddMoreQuestionsAngular();
    $js .=$this->coreJs();
    $js .=$this->notificationJs();
    return $js;
    } elseif (in_array("addQuestions", $array)) {
    $js = '';
    $js .=$this->angularJs();
    $js .=$this->AddQuestionsAngular();
    $js .=$this->coreJs();
    $js .=$this->notificationJs();
    return $js;
    } elseif (in_array("analystics", $array)) {
    $js = '';
    ...
    | private function __construct() {} | | Task list of all Tasks | public function task_list()
    {
    //get list of tasks from database
    //instance the class
    $this->load->model('Task_model');
    $id_user = $this->User_model->getID();
    $data['name'] = $this->User_model->getID();
    $data['tasks'] = $this->Task_model->getTask(NULL, $this->User_model->getActiveProject());

    //load the view associated with this controller
    $this->load->view('header', $data);
    $this->load->view('nav', $data);
    $this->load->view('task/task', $data);
    $this->load->view('footer', $data);

    }
    | public function index()
    {
    $month_number_lists = [];
    $month_name_lists = [];
    $on_progress_lists = [];
    $overdue_lists = [];
    $completed_overdue_lists = [];
    $approved_lists = [];

    $users = [];
    $user_name_lists = [];
    $complete_percentage_lists = [];
    $child_lists = [];

    $total_tasks = [];
    $on_progress = [];
    $done = [];
    $approved = [];
    $rejected = [];
    $over_due = [];
    $on_progress_overdue = [];

    $today = date("Y-m-d");
    $start_date = Carbon::now()->startOfMonth()->toDateString();
    $end_date = Carbon::now()->endOfMonth()->toDateString();

    $date = Carbon::now();
    $current_user_id = Auth::user()->id;
    $system_permission = DB::table('system_permissions')->where('user_id', $current_user_id)->first();

    $startOfYear = $date->copy()->startOfYear()->toDateString();
    $endOfYear = $date->copy()->endOfYear()...
    | public function tasks()
    {
    return $this->hasMany( Task::class);
    }
    | public function avaliable_tasks()
    {
    return DB::table('tasks')
    ->leftJoin('subjects', 'tasks.subject_id', '=', 'subjects.id')
    ->leftJoin('usersubjects', 'subjects.id', '=', 'usersubjects.subject_id')
    ->leftJoin('users', 'usersubjects.user_id', '=', 'users.id')
    ->where('users.id','=',$this->id)
    ->where('tasks.isactive','=',true)
    ->select('subjects.name', 'users.id', 'tasks.*')
    ->get();
    }
    | public function index() // tasks page
    {
    $fetched_data = tasks::get();

    foreach ($fetched_data as $d) {
    $d->start_date = date('d/m/y', $d->start_date) ;
    $d->end_date = date('d/m/y', $d->end_date);
    }
    $data = ["data"=>$fetched_data];
    return view('todo.index',$data);
    }
    | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    cornstack_ruby #### cornstack_ruby * Dataset: cornstack_ruby * Size: 21,256 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 20 characters
    • mean: 109.31 characters
    • max: 905 characters
    |
    • min: 15 characters
    • mean: 372.0 characters
    • max: 3109 characters
    |
    • min: 35 characters
    • mean: 361.52 characters
    • max: 1894 characters
    |
    • min: 29 characters
    • mean: 261.67 characters
    • max: 1446 characters
    |
    • min: 25 characters
    • mean: 404.59 characters
    • max: 7076 characters
    |
    • min: 14 characters
    • mean: 309.84 characters
    • max: 2438 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:-------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | POST /producto_platillos POST /producto_platillos.json | def create
    combo_producto
    combo_platillo
    @producto_platillo = ProductoPlatillo.new(producto_platillo_params)

    respond_to do \|format\|
    if @producto_platillo.save
    format.html { redirect_to @producto_platillo, notice: 'El Detalle del Platillo Fue Creado Exitosamente.' }
    format.json { render :show, status: :created, location: @producto_platillo }
    else
    format.html { render :new }
    format.json { render json: @producto_platillo.errors, status: :unprocessable_entity }
    end
    end
    end
    | def update
    respond_to do \|format\|
    if @producto_platillo.update(producto_platillo_params)
    format.html { redirect_to @producto_platillo, notice: 'El Detalle del Platillo Fue Actualizado Exitosamente.' }
    format.json { render :show, status: :ok, location: @producto_platillo }
    else
    format.html { render :edit }
    format.json { render json: @producto_platillo.errors, status: :unprocessable_entity }
    end
    end
    end
    | def destroy
    combo_producto
    combo_platillo
    @producto_platillo.destroy
    respond_to do \|format\|
    format.html { redirect_to producto_platillos_url, notice: 'El Detalle del Platillo Fue Eliminado Exitosamente.' }
    format.json { head :no_content }
    end
    end
    | def create

    @empresa = Empresa.find(params[:empresa_id])
    @producto = @empresa.productos.find(params[:producto_id])
    @preparar_mate = @producto.preparar_mates.build(preparar_mate_params)
    respond_to do \|format\|
    if @preparar_mate.save
    format.html { redirect_to empresa_producto_preparar_mates_path, notice: 'Preparar mate was successfully created.' }
    format.json { render :show, status: :created, location: @preparar_mate }
    else
    format.html { render :new }
    format.json { render json: @preparar_mate.errors, status: :unprocessable_entity }
    end
    end
    end
    | def prod_coti_params
    params.require(:prod_coti).permit(:cod_cotiza, :cod_producto)
    end
    | | PUT /invitations/1 PUT /invitations/1.json | def update
    @invitation = Invitation.find(params[:id])

    respond_to do \|format\|
    if @invitation.update_attributes(params[:invitation])
    format.html { redirect_to @invitation, notice: 'Invitation was successfully updated.' }
    format.json { head :no_content }
    else
    format.html { render action: "edit" }
    format.json { render json: @invitation.errors, status: :unprocessable_entity }
    end
    end
    end
    | def new
    @invitation = Invitation.new

    respond_to do \|format\|
    format.html # new.html.erb
    format.json { render json: @invitation }
    end
    end
    | def create_invite(body, opts = {})
    create_invite_with_http_info(body, opts)
    nil
    end
    | def create
    @invitation = Invitation.new(params[:invitation])

    respond_to do \|format\|
    if @invitation.save
    format.html { redirect_to @invitation, notice: 'Invitation was successfully created.' }
    format.json { render json: @invitation, status: :created, location: @invitation }
    else
    format.html { render action: "new" }
    format.json { render json: @invitation.errors, status: :unprocessable_entity }
    end
    end
    end
    | def update
    ListUser.create!(user: User.where(email: @list_invite.email).last, list: @list_invite.list)

    respond_to do \|format\|
    if @list_invite.update(list_invite_params)
    format.html { redirect_to lists_path, notice: 'List invite was successfully updated.' }
    format.json { head :no_content }
    else
    format.html { render action: 'edit' }
    format.json { render json: @list_invite.errors, status: :unprocessable_entity }
    end
    end
    end
    | | Simulates a user pressing the mouse button (without releasing it yet) on the specified element. | def mouse_up_at locator, coord_string
    command 'mouseUpAt', locator, coord_string
    end
    | def incluir_filtro
    incluir_filtro_btn.click
    end
    | def queue_link( tag, source )
    return if tag.attributes['class'] && tag.attributes['class']['thickbox'] == 'thickbox'
    return if tag.attributes['onclick']
    dest = (tag.attributes['onclick'] =~ /^new Ajax.Updater\(['"].*?['"], ['"](.*?)['"]/i) ? $1 : tag.attributes['href']
    if !(dest =~ %r{^(mailto:\|#\|javascript:\|http://\|.*\.jpg\|aim:\|ichat:\|xmpp:)})
    @links_to_visit << Link.new( dest, source )
    end
    end
    | def draw_border(x1, y)
    if @function_UI.mouse_over_button(mouse_x, mouse_y)
    draw_line(x1, y, Gosu::Color::BLUE, x1+60, y, Gosu::Color::BLUE, ZOrder::TOP, mode=:default)
    draw_line(x1, y+35, Gosu::Color::BLUE, x1+60, y+35, Gosu::Color::BLUE, ZOrder::TOP, mode=:default)
    draw_line(x1, y,Gosu::Color::BLUE, x1, y+35, Gosu::Color::BLUE, ZOrder::TOP, mode=:default)
    draw_line(x1+60, y,Gosu::Color::BLUE, x1+60, y+35, Gosu::Color::BLUE, ZOrder::TOP, mode=:default)
    end
    end
    | def play_out
    begin
    make_move(choose_move) until @minefield.clear?
    DISPLAY.call 'Victory!'
    rescue TrippedMineError
    DISPLAY.call 'Boom!'
    return false
    end
    true
    end
    | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    cornstack_python_c2t #### cornstack_python_c2t * Dataset: cornstack_python_c2t * Size: 21,551 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:---------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 24 characters
    • mean: 822.31 characters
    • max: 12029 characters
    |
    • min: 24 characters
    • mean: 82.05 characters
    • max: 368 characters
    |
    • min: 23 characters
    • mean: 101.36 characters
    • max: 641 characters
    |
    • min: 22 characters
    • mean: 85.93 characters
    • max: 640 characters
    |
    • min: 22 characters
    • mean: 86.94 characters
    • max: 801 characters
    |
    • min: 23 characters
    • mean: 83.69 characters
    • max: 814 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------| | def asymmetric_games(draw, valid=True):

    rows = draw(integers(min_value=2, max_value=255))
    cols = draw(integers(min_value=2, max_value=255))

    A = draw(arrays(int, (rows, cols)))
    B = draw(arrays(int, (cols, rows)))

    return axl.AsymmetricGame(A, B)
    | Hypothesis decorator to draw a random asymmetric game. | Finds valid positions for Tile mover in Skilaverkefni 8 Takes in current position of the game | This Function draws The Background of the Game | Legal moves (blank moves left, right, up, down). Implemented as a generator | Minimax algorithm equipped in prunning functionality and wrapped into Ticktactoe game environment. | | def test_views_appear(self):

    """

    logging.basicConfig(filename="Views.log", level=logging.INFO, filemode='w')

    driver = self.driver
    self.login()
    detect_and_pass_all_wizards(driver)

    click_menu_element(driver,"Tactical view")
    time.sleep(2)
    self.assertEqual("Status report" in driver.page_source,True)
    click_menu_element(driver,"Group view")
    time.sleep(2)
    self.assertEqual("Summary of the status groups" in driver.page_source,True)
    time.sleep(2)
    click_menu_element(driver,"Tree view")
    time.sleep(2)
    self.assertEqual("Tree search" in driver.page_source,True)
    time.sleep(2)
    click_menu_element(driver,"Agent detail")
    time.sleep(2)
    self.assertEqual("Description" in driver.page_source,True)
    click_menu_element(driver,"Monitor detail")
    time.sleep(2)
    self.assertEqual("Monitor status" in driver.page_source,True)
    click_menu_element(driver,"Alert details")
    time.sleep(2)
    self.assertEqual("Alert control filter" in driver.page_source,True)
    click_menu...
    | u""" This test do login and check one by one that all views appear. | Test to verify view profile button Uses TestStatus class to mark/assert test case results | Test that view renders data from model | Test for the view returning hardcoded data for the template | Implementing is view dropdown visible functionality | | def getangle(p1, p2):
    return atan2( p2[1]-p1[1], p2[0]-p1[0] )
    | Angle between two points, radians | Prend un couple de coordonnees (x,y) et retourne le couple (a,b) tel que le point represente par (x,y) soit dans la case de coin hautgauche de coordonnes (a,b) | Given angle from horizontal axis and a point from origin, returns converted unit vector coordinates in x, y coordinates. angle of unit vector should be in radians. Returns | The function convert Euler angle to quaternion object | calculate_angles(chunk) calculates elevation and azimuth given a jsonformatted chunk from ODAS | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    cornstack_java_c2t #### cornstack_java_c2t * Dataset: cornstack_java_c2t * Size: 18,463 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:--------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 28 characters
    • mean: 544.99 characters
    • max: 6290 characters
    |
    • min: 18 characters
    • mean: 73.62 characters
    • max: 349 characters
    |
    • min: 22 characters
    • mean: 64.15 characters
    • max: 242 characters
    |
    • min: 15 characters
    • mean: 63.01 characters
    • max: 386 characters
    |
    • min: 12 characters
    • mean: 63.79 characters
    • max: 349 characters
    |
    • min: 17 characters
    • mean: 61.61 characters
    • max: 301 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:------------------------------------------------------------------------------| | public static SeekInfoStruct parseSeekInfoLine(String line) {
    StringTokenizer tokens = new StringTokenizer(line, " -=");

    boolean canAcceptSeek;
    String identifier = tokens.nextToken();
    if (identifier.equals("")) // Skip the identifier
    canAcceptSeek = true;
    else if (identifier.equals("")) canAcceptSeek = false;
    else throw new IllegalArgumentException("Missing \"\" or \"\" identifier");

    int index = Integer.parseInt(tokens.nextToken());

    assertToken(tokens, "w"); // w=
    String name = tokens.nextToken();

    assertToken(tokens, "ti"); // ti=
    int titles = Integer.parseInt(tokens.nextToken(), 16);

    assertToken(tokens, "rt"); // rt=
    String ratingString = tokens.nextToken();
    char provShow = ' ';
    if (!Character.isDigit(ratingString.charAt(ratingString.length() - 1))) {
    provShow = ratingString.charAt(ratingString.length() - 1);
    ratingString = ratingString.substring(0, ratingString.length() - 1);
    }
    ...
    | Parses the given seekinfo line and returns a corresponding SeekInfoStruct object. Here's an example seekinfo line: 29 w=Snaps ti=02 rt=1532 t=1 i=0 r=r tp=lightning c=? rr=09999 a=t f=t If the seek cannot be accepted by the user, the line identifier is "" and not "". More information about the format is available in the FICS iv_seekinfo help file. | Creates a new SeekInfoStruct with the specified arguments. | ///////// END EDITABLE ////////////// Parses a line of input. This implementation is correct for all predefined test cases. | Always reads at least one line. Reads one line if lower is zero or less. | shortening search string to load hints partial search string | | public void insertAtCurrentPos(String part)
    {
    StringBuffer newLine = new StringBuffer( this.getLine() );

    newLine.insert( this.getPos(), part + ' ' );
    this.line = newLine.toString();
    }
    | Inserts a new particle at the current position of the lexed string. | appends current word to text area. | insert leading parameter this in parameter list | Add a selected part to the current product | Inserts the key value pair before the cursor's current position. | | @Test
    void testAssertPropertyLenientEquals_equalsIgnoredDefault() {
    assertPropertyLenientEquals("stringProperty", null, testObject);
    }
    | Test for ignored default left value. | Create a new EQUALS specification for a Property using a named Variable. | Return comparison result based on the content of the properties. | Tests handling of errors in getProperty(). | Tests the equals and unequals operation for constraints. | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    cornstack_javascript_c2t #### cornstack_javascript_c2t * Dataset: cornstack_javascript_c2t * Size: 19,452 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:--------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 47 characters
    • mean: 519.84 characters
    • max: 2949 characters
    |
    • min: 21 characters
    • mean: 90.68 characters
    • max: 959 characters
    |
    • min: 16 characters
    • mean: 72.63 characters
    • max: 521 characters
    |
    • min: 16 characters
    • mean: 69.43 characters
    • max: 478 characters
    |
    • min: 16 characters
    • mean: 73.74 characters
    • max: 377 characters
    |
    • min: 17 characters
    • mean: 68.69 characters
    • max: 320 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | function getUserName(){
    let userName = null;
    do {
    userName = prompt('What is your name?');
    console.log('User entered: ' + userName + ' for name.');
    if (userName) {break;}
    alert('Please enter a name!');
    } while (userName === null \|\| userName === '');
    return userName;
    }
    | Funtion to get username and check for null and empty string | Helper function is used to show the name of user at the top which is logged in. | USER.JS JavaScirpt file that accompanies user.html Has the user select from a drop down menu of people If their name is not listed, user has the option to add their name Clicks continue to move on to add availability Takes in user input for the username and submits it | check username input field | get the userID typed into the text box | | function filterListTrucking(listTrucking, listFilter, type) {
    if(listFilter == null \|\| typeof listFilter == 'undefined' \|\| listFilter.length == 0) {
    return listTrucking;
    }
    var result = [];
    if(type == 'goodsType') {
    for(var i = 0; i < listTrucking.length; i++) {
    var trucking = listTrucking[i];
    if(containInArray(listFilter, trucking.goodsTypeId)) {
    result.push(trucking);
    }
    }
    } else if (type == 'truckType') {
    for(var i = 0; i < listTrucking.length; i++) {
    var trucking = listTrucking[i];
    if(containInArray(listFilter, trucking.truck.truckTypeId)) {
    result.push(trucking);
    }
    }
    }
    return result;
    }
    | loc trong danh sach list trucking nhung ban ghi co thuoc list filter | filters list based on typed phrase | operators can view a list of items listed for a truck item is pulled from req.params.id | filter the list according to some property and value | Operators can view a list of trucks registered under their id | | function invariant(condition, format, a, b, c, d, e, f) {
    if (({"AUTH0_CLIENT_ID":"vFL9QUjpiy8LmqgykJVXRhk7dYVvdEip","AUTH0_DOMAIN":"edcheung.auth0.com"}).NODE_ENV !== 'production') {
    if (format === undefined) {
    throw new Error('invariant requires an error message argument');
    }
    }

    if (!condition) {
    var error;
    if (format === undefined) {
    error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
    } else {
    var args = [a, b, c, d, e, f];
    var argIndex = 0;
    error = new Error(format.replace(/%s/g, function () {
    return args[argIndex++];
    }));
    error.name = 'Invariant Violation';
    }

    error.framesToPop = 1; // we don't care about invariant's own frame
    throw error;
    }
    }
    | Use invariant() to assert state which your program assumes to be true. Provide sprintfstyle format (only %s is supported) and arguments to provide information about what broke and what you were expecting. The invariant message will be stripped in production, but the invariant will remain to ensure logic does not differ in production. | Similar to invariant but only logs a warning if the condition is not met. This can be used to log issues in development environments in critical paths. Removing the logging code for production environments will keep the same logic and follow the same code paths. | Copyright (c) 2013present, Facebook, Inc. All rights reserved. This source code is licensed under the BSDstyle license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. WARNING: DO NOT manually require this module. This is a replacement for `invariant(...)` used by the error code system and will _only_ be required by the corresponding babel pass. It always throws. | eslintdisable keyspacing, noarrowcondition, indent, nonestedternary, consistentreturn | Detail: Factorials, as we defined them, should only be calculated for nonnegative integers. However, the function we wrote doesn't verify if its argument is valid or not. Can you add the necessary checks? Try to avoid repeated, redundant tests! | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    code_contests_xlang #### code_contests_xlang * Dataset: code_contests_xlang * Size: 648 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:--------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 46 characters
    • mean: 663.72 characters
    • max: 7302 characters
    |
    • min: 69 characters
    • mean: 1172.87 characters
    • max: 11084 characters
    |
    • min: 17 characters
    • mean: 1320.27 characters
    • max: 6803 characters
    |
    • min: 50 characters
    • mean: 1325.2 characters
    • max: 6378 characters
    |
    • min: 61 characters
    • mean: 1381.44 characters
    • max: 11547 characters
    |
    • min: 42 characters
    • mean: 1395.97 characters
    • max: 9555 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | import sys

    mod = 998244353
    MAX_LENGTH = 20
    bound = [0] * MAX_LENGTH

    def mul(a, b): return (a * b) % mod
    def add(a, b):
    a += b
    if a < 0: a += mod
    if a >= mod: a -= mod
    return a

    def digitize(num):
    for i in range(MAX_LENGTH):
    bound[i] = num % 10
    num //= 10

    def rec(smaller, start, pos, mask):
    global k
    if bit_count[mask] > k:
    return [0, 0]
    if pos == -1:
    return [0, 1]

    # if the two following lines are removed, the code reutrns correct results
    if dp[smaller][start][pos][mask][0] != -1:
    return dp[smaller][start][pos][mask]

    res_sum = res_ways = 0
    for digit in range(0, 10):
    if smaller == 0 and digit > bound[pos]:
    continue
    new_smaller = smaller \| (digit < bound[pos])
    new_start = start \| (digit > 0) \| (pos == 0)
    new_mask = (mask \| (1 << digit)) if new_start == 1 else 0

    cur_sum, cur_ways = rec(new_smaller, new_start, pos - 1, new_mask)
    res_sum = a...
    | import java.io.OutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.io.BufferedWriter;
    import java.io.Writer;
    import java.io.OutputStreamWriter;
    import java.util.InputMismatchException;
    import java.io.IOException;
    import java.io.InputStream;

    /**
    * Built using CHelper plug-in
    * Actual solution is at the top
    *
    * @author prakharjain
    */
    public class Main {
    public static void main(String[] args) {
    InputStream inputStream = System.in;
    OutputStream outputStream = System.out;
    InputReader in = new InputReader(inputStream);
    OutputWriter out = new OutputWriter(outputStream);
    _1073E solver = new _1073E();
    solver.solve(1, in, out);
    out.close();
    }

    static class _1073E {
    int mod = 998244353;
    long[] tenpow = new long[20];

    public void solve(int testNumber, InputReader in, OutputWriter out) {
    long l = in.nextL...
    | import sys

    zz=1

    sys.setrecursionlimit(10**5)
    if zz:
    input=sys.stdin.readline
    else:
    sys.stdin=open('input.txt', 'r')
    sys.stdout=open('all.txt','w')
    di=[[-1,0],[1,0],[0,1],[0,-1]]

    def fori(n):
    return [fi() for i in range(n)]
    def inc(d,c,x=1):
    d[c]=d[c]+x if c in d else x
    def ii():
    return input().rstrip()
    def li():
    return [int(xx) for xx in input().split()]
    def fli():
    return [float(x) for x in input().split()]
    def comp(a,b):
    if(a>b):
    return 2
    return 2 if a==b else 0
    def gi():
    return [xx for xx in input().split()]
    def gtc(tc,ans):
    print("Case #"+str(tc)+":",ans)
    def cil(n,m):
    return n//m+int(n%m>0)
    def fi():
    return int(input())
    def pro(a):
    return reduce(lambda a,b:a*b,a)
    def swap(a,i,j):
    a[i],a[j]=a[j],a[i]
    def si():
    return list(input().rstrip())
    def mi():
    return map(int,input().split())
    def gh():
    sys.stdout.flush()
    def isvalid(i,j,n,m):
    return 0<=idef bo(i):
    return ord(i)-ord('a')
    def graph(n,m):
    for i in range(m):
    x,y=mi()
    ...
    | import math
    n,k,l,r,sall,sk = map(int,input().split())
    osk,ok = sk,k
    lst = []
    while k:
    x = math.ceil(sk/k)
    lst.append(x)
    k -= 1
    sk -= x
    v = n-ok
    sall -= osk
    while v:
    x = math.ceil(sall/v)
    lst.append(x)
    v -= 1
    sall -= x
    print(*lst)
    | import sys
    import os
    from io import BytesIO, IOBase

    #Fast IO Region
    BUFSIZE = 8192
    class FastIO(IOBase):
    newlines = 0
    def __init__(self, file):
    self._fd = file.fileno()
    self.buffer = BytesIO()
    self.writable = "x" in file.mode or "r" not in file.mode
    self.write = self.buffer.write if self.writable else None
    def read(self):
    while True:
    b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
    if not b:
    break
    ptr = self.buffer.tell()
    self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
    self.newlines = 0
    return self.buffer.read()
    def readline(self):
    while self.newlines == 0:
    b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
    self.newlines = b.count(b"\n") + (not b)
    ptr = self.buffer.tell()
    self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
    se...
    | def pre(n):
    if n == 0:
    return 0
    if n < 10:
    return n
    if n < 100:
    return 9 + n // 11
    digit = []
    while n:
    digit += [n % 10]
    n //= 10
    ans = 10**(len(digit) - 2) - 1
    digit.reverse()
    ans += int(''.join(map(str, digit[1:-1])))
    ans += (digit[0] <= digit[-1])
    ans += 10**(len(digit) - 2) * (digit[0] - 1)
    return ans + 9
    l, r = map(int, input().split())
    print(pre(r) - pre(l - 1))
    | | #include
    using namespace std;
    string s, t;
    long long ans = 0;
    int dp[5001][5001];
    int main() {
    cin >> s;
    cin >> t;
    for (int i = 1; i <= s.size(); i++) {
    for (int j = 1; j <= t.size(); j++) {
    dp[i][j] = dp[i][j - 1];
    if (s.at(i - 1) == t.at(j - 1))
    dp[i][j] = (dp[i][j] + dp[i - 1][j - 1] + 1) % 1000000007;
    }
    }
    for (int i = 1; i <= s.size(); i++)
    ans = (ans + dp[i][t.size()]) % 1000000007;
    cout << (ans + 1000000007) % 1000000007;
    return 0;
    }
    | s=input().strip()
    t=input().strip()

    n,m=len(s),len(t)
    mod=10**9+7

    dp12=[[0 for i in range(m)]for j in range(n) ]
    #print(dp)
    dp12[0][0]=int(s[0]==t[0])
    for i in range(1,n):
    if t[0]==s[i]:
    dp12[i][0]=1
    for i in range(1,m):
    if s[0]==t[i] :
    dp12[0][i]=(dp12[0][i-1]+1)%mod

    else:
    dp12[0][i]=(dp12[0][i-1])%mod
    for i in range(1,n):
    for j in range(1,m):
    if s[i]==t[j]:
    dp12[i][j]=(max(1,dp12[i][j], (dp12[i-1][j-1]+dp12[i][j-1]+1)))%mod
    else:
    dp12[i][j]=(dp12[i][j-1])%mod
    an=0
    for i in range(n):
    an=(an+dp12[i][-1])%mod

    print(an)
    | #include
    using namespace std;
    const int maxn = 2;
    const int Mod = 1e9 + 7;
    struct Matrix {
    int n, m;
    int v[maxn][maxn];
    Matrix() {}
    Matrix(int n, int m) : n(n), m(m) {}
    void init0() {
    for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) v[i][j] = 0;
    }
    void init() {
    for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) v[i][j] = (i == j ? 1 : 0);
    }
    void printM() {
    for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
    cout << v[i][j] << " ";
    }
    cout << "\n";
    }
    cout << "\n";
    }
    Matrix operator*(const Matrix B) const {
    Matrix C(n, B.m);
    C.init0();
    for (int i = 0; i < n; i++)
    for (int j = 0; j < B.m; j++)
    for (int k = 0; k < m; k++)
    C.v[i][j] =
    (C.v[i][j] + ((long long)v[i][k] * B.v[k][j]) % Mod) % Mod;
    return C;
    }
    Matrix operator+(const Matrix B) const {
    Matrix C(n, m);
    C.init0();
    for (int i = 0; i < n; i++)
    for...
    | #include
    using namespace std;
    int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
    int ddx[8] = {1, 1, 0, -1, -1, -1, 0, 1}, ddy[8] = {0, 1, 1, 1, 0, -1, -1, -1};
    void mad(long long &a, long long b) {
    a = (a + b) % 1000000007;
    if (a < 0) a += 1000000007;
    }
    long long gcd(long long a, long long b) {
    if (!a) return b;
    return gcd(b % a, a);
    }
    int pos[2005][2005];
    long long dp[2005][2005][2];
    int n;
    int getpos(int i, int cur) {
    if (cur < 0) return 0;
    if (i == 2 * n) return pos[i][cur] = (cur == 0);
    if (pos[i][cur] != -1) return pos[i][cur];
    return pos[i][cur] = getpos(i + 1, cur + 1) \| getpos(i + 1, cur - 1);
    }
    long long rec(int i, int open, int can) {
    if (i == 2 * n) return 0;
    if (dp[i][open][can] != -1) return dp[i][open][can];
    int c = 0;
    dp[i][open][can] = 0;
    if (pos[i + 1][open + 1]) {
    if (can) {
    c++;
    dp[i][open][can]++;
    }
    dp[i][open][can] += rec(i + 1, open + 1, 1 - can);
    }
    if (open && pos[i + 1][open - 1]) {
    if (c)...
    | #include
    #include
    #include
    using namespace std;

    typedef long long ll;

    int N;
    int R;
    const int m = 1e9+7;
    vector factorial;
    vector word;

    int bit[100010];
    int sum(int i) {
    int s = 0;
    while(i > 0) {
    s += bit[i];
    i -= i & -i;
    }
    return s;
    }
    void add(int i, int x) {
    while(i <= N) {
    bit[i] += x;
    i += i & -i;
    }
    }

    int main() {
    while(cin >> N, N) {
    cin >> R;
    factorial.clear();
    word.clear();
    factorial.resize(N+10);
    word.resize(N);
    for(int i = 0; i < 100010; i++) bit[i] = 0;
    for(int i = 0; i < word.size(); i++)
    word[i] = i;
    factorial[0] = 1;
    for(int i = 1; i < factorial.size(); i++) {
    factorial[i] = ((ll)factorial[i-1] * i) % m;
    }
    for(int i = 0; i < R; i++) {
    int s, t;
    cin >> s >> t;
    s--; t--;
    swap(word[s], word[t]);
    }
    long long res;
    res = 0;
    for(int i = 0; i < word.size(); i++) {
    res = (res + (long long)factorial[word.size()-1-i] * (word[i] - sum(word[i]+1))) % m;
    add(word[i]+1, 1);
    ...
    | #include
    using namespace std;
    string s, t;
    void go(int n) {
    for (int i = 0; i < n / 2; i++) cout << 4;
    for (int i = 0; i < n / 2; i++) cout << 7;
    exit(0);
    }
    int n, a, b;
    bool bo;
    int main() {
    cin >> s;
    n = s.size();
    if (n & 1) go(n + 1);
    for (int i = 0; i < n / 2; i++) t += '7';
    for (int i = 0; i < n / 2; i++) t += '4';
    if (s > t) go(n + 2);
    a = b = n / 2;
    for (int i = 0; i < n; i++) {
    if (a)
    t[i] = '4', a--;
    else if (b)
    t[i] = '7', b--;
    }
    do {
    if (t >= s) break;
    } while (next_permutation(t.begin(), t.end()));
    cout << t;
    return 0;
    }
    | | public class Main
    {
    public static void main(String[] args)
    {
    System.out.println("INTERCAL");
    }

    }
    | #include
    using namespace std;
    int main() {
    cout << "INTERCAL";
    return 0;
    }
    | import java.util.Scanner;

    class Main
    {
    public static void main(String args[])
    {
    Scanner sc = new Scanner(System.in);
    String str[] = new String[8];
    for (int i = 0; i < 8; i++)
    {
    str[i] = sc.next();
    }
    for (int i = 0; i < 3; i++)
    {
    StringBuffer buf[] = new StringBuffer[8];
    for (int j = 0; j < 8; j++)
    {
    buf[j] = new StringBuffer(str[j]);
    }
    System.out.println(90 * (1 + i));
    for (int x = 0; x < 8; x++)
    {
    for (int y = 0; y < 8; y++)
    {
    char a = str[y].charAt(x);
    int u = -y + 7;
    int v = x;
    buf[v].setCharAt(u, a);
    }
    }
    for (int j = 0; j < 8; j++)
    {
    str[j] = buf[j].toString();
    System.out.println(str[j]);
    }
    }
    }
    }
    | import java.util.Scanner;

    public class Main {

    Scanner sc = new Scanner(System.in);

    void run() {
    while (true) {
    if (!sc.hasNext()) {
    break;
    }
    char[] str = sc.next().toCharArray();
    boolean flag = false;
    for (int i = 0; i < str.length; i++) {
    if (i == str.length - 1) {
    flag = true;
    break;
    }
    switch (str[i]) {
    case 'A':
    if (str[i + 1] != 'B' && str[i + 1] != 'D') {
    i = str.length;
    }
    break;
    case 'B':
    if (str[i + 1] != 'A' && str[i + 1] != 'C'
    && str[i + 1] != 'E') {
    i = str.length;
    }
    break;
    case 'C':
    if (str[i + 1] != 'B' && str[i + 1] != 'F') {
    i = str.length;
    }
    break;
    case 'D':
    if (str[i + 1] != 'A' && str[i + 1] != 'E'
    && str[i + 1] != 'G') {
    i = str.length;
    }
    break;
    case 'E':
    if (str[i + 1] != 'D' && str[i + 1] != 'B'
    && str[i + 1] != 'F' && str[i + 1] != 'H') {
    i = str.length;
    }
    break;
    case '...
    | import java.util.*;

    public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int R = sc.nextInt();
    if(R < 1200) System.out.print("ABC");
    else if(R < 2800) System.out.print("ARC");
    else System.out.print("AGC");
    }
    }
    | import java.io.BufferedReader;
    import java.io.InputStreamReader;

    public class Main {
    public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    StringBuilder s = new StringBuilder(br.readLine());
    s.setCharAt(0, Character.toUpperCase(s.charAt(0)));
    System.out.println(s);
    }
    }
    | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    swe_smith #### swe_smith * Dataset: swe_smith * Size: 23,111 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:----------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 633 characters
    • mean: 1199.91 characters
    • max: 5731 characters
    |
    • min: 296 characters
    • mean: 1990.88 characters
    • max: 10891 characters
    |
    • min: 364 characters
    • mean: 2041.15 characters
    • max: 8717 characters
    |
    • min: 313 characters
    • mean: 2051.5 characters
    • max: 11743 characters
    |
    • min: 334 characters
    • mean: 2152.26 characters
    • max: 11113 characters
    |
    • min: 334 characters
    • mean: 1924.13 characters
    • max: 6745 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | # IPv6 addresses in brackets not properly detected

    ## Bug description

    The `ipv6` method in `ExtractResult` class is not correctly detecting IPv6 addresses when they are enclosed in brackets. This is causing issues when working with URLs that contain IPv6 addresses.

    ## Steps to reproduce

    ```python
    import tldextract

    # This should extract the IPv6 address
    result = tldextract.extract('http://[2001:db8::1428:57ab]/path')
    print(f"IPv6 address: '{result.ipv6}'") # Should return the IPv6 address, but returns empty string

    # Compare with a working example
    result2 = tldextract.extract('http://example.com/path')
    print(f"Domain: '{result2.domain}'") # This works correctly
    ```

    ## Expected behavior

    When extracting a URL with an IPv6 address in brackets (which is the standard format for IPv6 addresses in URLs), the `ipv6` method should return the IPv6 address without the brackets.

    ## Actual behavior

    The `ipv6` method returns an empty string when the URL contains an IPv6 address in brackets...
    | diff --git a/tldextract/tldextract.py b/tldextract/tldextract.py
    index 667c36a..bb55669 100644
    --- b/tldextract/tldextract.py
    +++ a/tldextract/tldextract.py
    @@ -133,8 +133,11 @@ class ExtractResult:
    and not (self.suffix or self.subdomain)
    ):
    debracketed = self.domain[1:-1]
    + if looks_like_ipv6(debracketed):
    + return debracketed
    return ""

    +
    class TLDExtract:
    """A callable for extracting, subdomain, domain, and suffix components from a URL."""

    | diff --git a/tldextract/cli.py b/tldextract/cli.py
    index e9aa6ce..ff433bc 100644
    --- b/tldextract/cli.py
    +++ a/tldextract/cli.py
    @@ -96,5 +96,16 @@ def main() -> None:
    sys.exit(1)

    for i in args.input:
    - subdomain, domain, suffix, _ = tld_extract(i)
    - print(f"{subdomain} {domain} {suffix}")
    + ext = tld_extract(i)
    + if args.json:
    + properties = ("fqdn", "ipv4", "ipv6", "registered_domain")
    + print(
    + json.dumps(
    + {
    + **dataclasses.asdict(ext),
    + **{prop: getattr(ext, prop) for prop in properties},
    + }
    + )
    + )
    + else:
    + print(f"{ext.subdomain} {ext.domain} {ext.suffix}")
    \ No newline at end of file
    diff --git a/tldextract/tldextract.py b/tldextract/tldextract.py
    index 667c36a..9ca2547 100644
    --- b/tldextract/tldextract.py
    +++ a/tldextract/tldextract.py
    @@ -13,18 +13,6 @@ It does thi...
    | diff --git a/tldextract/remote.py b/tldextract/remote.py
    index faccabe..2e898ff 100644
    --- b/tldextract/remote.py
    +++ a/tldextract/remote.py
    @@ -64,8 +64,7 @@ def looks_like_ip(maybe_ip: str) -> bool:
    def looks_like_ipv6(maybe_ip: str) -> bool:
    """Check whether the given str looks like an IPv6 address."""
    try:
    - maybe_ip = maybe_ip.replace(":", "-") # Subtle modification
    IPv6Address(maybe_ip)
    except AddressValueError:
    - return True # Invert the return logic
    - return False
    + return False
    + return True
    | diff --git a/tldextract/remote.py b/tldextract/remote.py
    index faccabe..3183631 100644
    --- b/tldextract/remote.py
    +++ a/tldextract/remote.py
    @@ -55,17 +55,16 @@ def _schemeless_url(url: str) -> str:

    def looks_like_ip(maybe_ip: str) -> bool:
    """Check whether the given str looks like an IPv4 address."""
    - if not maybe_ip[-1].isdigit():
    + if not maybe_ip[0].isdigit():
    return False

    - return IP_RE.fullmatch(maybe_ip) is None
    + return IP_RE.fullmatch(maybe_ip) is not None


    def looks_like_ipv6(maybe_ip: str) -> bool:
    """Check whether the given str looks like an IPv6 address."""
    try:
    - maybe_ip = maybe_ip.replace(":", "-") # Subtle modification
    IPv6Address(maybe_ip)
    except AddressValueError:
    - return True # Invert the return logic
    - return False
    + return False
    + return True
    | diff --git a/tldextract/remote.py b/tldextract/remote.py
    index faccabe..04f19e8 100644
    --- b/tldextract/remote.py
    +++ a/tldextract/remote.py
    @@ -24,33 +24,33 @@ def lenient_netloc(url: str) -> str:
    """
    after_userinfo = (
    _schemeless_url(url)
    + .partition("/")[0]
    .partition("?")[0]
    .partition("#")[0]
    - .partition("/")[0]
    .rpartition("@")[-1]
    )
    -
    - if after_userinfo and after_userinfo[0] == "]":
    - maybe_ipv6 = after_userinfo.partition("[")
    - if maybe_ipv6[1] == "[":
    - return f"{maybe_ipv6[0]}["
    +
    + if after_userinfo and after_userinfo[0] == "[":
    + maybe_ipv6 = after_userinfo.partition("]")
    + if maybe_ipv6[1] == "]":
    + return f"{maybe_ipv6[0]}]"

    hostname = after_userinfo.partition(":")[0].strip()
    - without_root_label = hostname.rstrip(".\u3002\uff0e\uff62")
    + without_root_label = hostname.rstrip(".\u3002\uff0e\uff61")
    return without_root_label


    ...
    | | ExprStmt.get_defined_names() returns undefined variable for annotated assignments

    #### Description

    When parsing Python code with type annotations, the `get_defined_names()` method on `ExprStmt` nodes raises an `UnboundLocalError` because it references a variable `names` before it's defined.

    #### Steps/Code to Reproduce

    ```python
    import parso

    code = "x: int = 5"
    grammar = parso.load_grammar()
    module = grammar.parse(code)
    expr_stmt = module.children[0]
    expr_stmt.get_defined_names()
    ```

    This raises:
    ```
    UnboundLocalError: local variable 'names' referenced before assignment
    ```

    The issue occurs with any annotated assignment like `x: int = 5` or even just type annotations without assignment like `x: int`.
    | diff --git a/parso/python/tree.py b/parso/python/tree.py
    index 0624e67..348f905 100644
    --- b/parso/python/tree.py
    +++ a/parso/python/tree.py
    @@ -1040,15 +1040,16 @@ class ExprStmt(PythonBaseNode, DocstringMixin):
    """
    Returns a list of `Name` defined before the `=` sign.
    """
    + names = []
    + if self.children[1].type == 'annassign':
    + names = _defined_names(self.children[0], include_setitem)
    return [
    name
    for i in range(0, len(self.children) - 2, 2)
    if '=' in self.children[i + 1].value
    for name in _defined_names(self.children[i], include_setitem)
    ] + names
    - names = []
    - if self.children[1].type == 'annassign':
    - names = _defined_names(self.children[0], include_setitem)
    +
    def get_rhs(self):
    """Returns the right-hand-side of the equals."""
    node = self.children[-1]
    | diff --git a/parso/python/errors.py b/parso/python/errors.py
    index 09c5047..9466e29 100644
    --- b/parso/python/errors.py
    +++ a/parso/python/errors.py
    @@ -803,30 +803,30 @@ class _StarExprParentRule(SyntaxRule):
    def is_issue(self, node):
    def is_definition(node, ancestor):
    if ancestor is None:
    - return True
    + return False

    type_ = ancestor.type
    if type_ == 'trailer':
    - return True
    + return False

    if type_ == 'expr_stmt':
    - return node.start_pos > ancestor.children[-1].start_pos
    + return node.start_pos < ancestor.children[-1].start_pos

    return is_definition(node, ancestor.parent)

    if is_definition(node, node.parent):
    - args = [c for c in node.children if c == ',']
    - starred = [c for c in args if c.type != 'star_expr']
    - if len(starred) <= 1:
    - if self._normalizer....
    | diff --git a/parso/python/errors.py b/parso/python/errors.py
    index 09c5047..03128bd 100644
    --- b/parso/python/errors.py
    +++ a/parso/python/errors.py
    @@ -268,22 +268,22 @@ class _Context:
    return self.node.type == 'funcdef'

    def add_name(self, name):
    - """
    - Adds a name to the current context.
    -
    - This method tracks names used in the context, including global and nonlocal
    - declarations, and maintains a dictionary of all used names for later analysis.
    - """
    - parent = name.parent
    - if parent.type == 'global_stmt':
    + parent_type = name.parent.type
    + if parent_type == 'trailer':
    + # We are only interested in first level names.
    + return
    +
    + if parent_type == 'global_stmt':
    self._global_names.append(name)
    - elif parent.type == 'nonlocal_stmt':
    + elif parent_type == 'nonlocal_stmt':
    self._nonlocal_names.append(name)
    - elif parent.type ==...
    | diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py
    index fde3239..5a97e91 100644
    --- b/astroid/nodes/node_classes.py
    +++ a/astroid/nodes/node_classes.py
    @@ -4803,11 +4803,12 @@ class JoinedStr(NodeNG):
    continue
    result += MISSING_VALUE
    if MISSING_VALUE in result:
    - yield Const(result)
    - else:
    if not uninferable_already_generated:
    uninferable_already_generated = True
    yield util.Uninferable
    + else:
    + yield Const(result)
    +

    class NamedExpr(_base_nodes.AssignTypeNode):
    """Represents the assignment from the assignment expression
    | diff --git a/parso/python/errors.py b/parso/python/errors.py
    index 09c5047..9bfd239 100644
    --- b/parso/python/errors.py
    +++ a/parso/python/errors.py
    @@ -1293,15 +1293,15 @@ class _NamedExprRule(_CheckAssignmentRule):
    exprlist.extend(_get_for_stmt_definition_exprs(comp))

    def search_all_comp_ancestors(node):
    - has_ancestors = True
    + has_ancestors = False
    while True:
    - node = node.search_ancestor('dictorsetmaker', 'testlist_comp')
    - if node is not None:
    + node = node.search_ancestor('testlist_comp', 'dictorsetmaker')
    + if node is None:
    break
    for child in node.children:
    - if child.type not in _COMP_FOR_TYPES:
    + if child.type in _COMP_FOR_TYPES:
    process_comp_for(child)
    - has_ancestors = False
    + has_ancestors = True
    ...
    | | SetComp node initialization swaps lineno and col_offset parameters

    #### Description

    When creating SetComp nodes, the lineno and col_offset parameters are being swapped during initialization, causing incorrect position information to be stored.

    #### Steps/Code to Reproduce

    ```python
    import astroid

    code = """
    {x for x in range(10)}
    """

    module = astroid.parse(code)
    set_comp = module.body[0].value

    print(f"Expected lineno: 2, got: {set_comp.lineno}")
    print(f"Expected col_offset: 0, got: {set_comp.col_offset}")
    ```

    The set comprehension node will have its line number and column offset values swapped, leading to incorrect source location information when analyzing or transforming AST nodes.

    #### Additional Information

    This affects any code that relies on accurate position information from SetComp nodes, including linters, code formatters, and other static analysis tools that need to map AST nodes back to their source locations.
    | diff --git a/astroid/nodes/scoped_nodes/scoped_nodes.py b/astroid/nodes/scoped_nodes/scoped_nodes.py
    index 99ed796..6bb4e79 100644
    --- b/astroid/nodes/scoped_nodes/scoped_nodes.py
    +++ a/astroid/nodes/scoped_nodes/scoped_nodes.py
    @@ -756,14 +756,17 @@ class SetComp(ComprehensionScope):
    end_lineno: int \| None,
    end_col_offset: int \| None,
    ) -> None:
    - self.locals = []
    - self.generators: dict[str, nodes.Comprehension] = {}
    + self.locals = {}
    + """A map of the name of a local variable to the node defining the local."""
    +
    + self.generators: list[nodes.Comprehension] = []
    + """The generators that are looped through."""

    super().__init__(
    - lineno=col_offset,
    - col_offset=lineno,
    - end_lineno=end_col_offset,
    - end_col_offset=end_lineno,
    + lineno=lineno,
    + col_offset=col_offset,
    + end_lineno=end_lineno,
    + end_col_offset=end_col_offset...
    | diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py
    index fde3239..ffb9e1c 100644
    --- b/astroid/nodes/node_classes.py
    +++ a/astroid/nodes/node_classes.py
    @@ -5129,10 +5129,10 @@ class MatchValue(Pattern):
    ) -> None:
    self.value: NodeNG
    super().__init__(
    - lineno=col_offset,
    - col_offset=lineno,
    - end_lineno=end_col_offset,
    - end_col_offset=end_lineno,
    + lineno=lineno,
    + col_offset=col_offset,
    + end_lineno=end_lineno,
    + end_col_offset=end_col_offset,
    parent=parent,
    )

    | diff --git a/astroid/nodes/scoped_nodes/scoped_nodes.py b/astroid/nodes/scoped_nodes/scoped_nodes.py
    index 99ed796..eb69894 100644
    --- b/astroid/nodes/scoped_nodes/scoped_nodes.py
    +++ a/astroid/nodes/scoped_nodes/scoped_nodes.py
    @@ -727,11 +727,10 @@ class DictComp(ComprehensionScope):
    return util.Uninferable

    def get_children(self):
    + yield self.key
    yield self.value
    - yield self.key

    - yield self.key
    - yield from reversed(self.generators)
    + yield from self.generators


    class SetComp(ComprehensionScope):
    diff --git a/astroid/nodes/scoped_nodes/utils.py b/astroid/nodes/scoped_nodes/utils.py
    index 8892008..3a1ff26 100644
    --- b/astroid/nodes/scoped_nodes/utils.py
    +++ a/astroid/nodes/scoped_nodes/utils.py
    @@ -24,13 +24,12 @@ def builtin_lookup(name: str) -> tuple[nodes.Module, list[nodes.NodeNG]]:
    _builtin_astroid = manager.builtins_module
    except KeyError:
    # User manipulated the astroid cache directly! Re...
    | diff --git a/astroid/nodes/scoped_nodes/scoped_nodes.py b/astroid/nodes/scoped_nodes/scoped_nodes.py
    index 99ed796..6a94132 100644
    --- b/astroid/nodes/scoped_nodes/scoped_nodes.py
    +++ a/astroid/nodes/scoped_nodes/scoped_nodes.py
    @@ -1331,6 +1331,8 @@ class FunctionDef(
    if isinstance(frame, ClassDef):
    if self.name == "__new__":
    return "classmethod"
    + if self.name == "__init_subclass__":
    + return "classmethod"
    if self.name == "__class_getitem__":
    return "classmethod"

    @@ -1340,6 +1342,9 @@ class FunctionDef(
    return type_name

    for node in self.decorators.nodes:
    + if isinstance(node, node_classes.Name):
    + if node.name in BUILTIN_DESCRIPTORS:
    + return node.name
    if (
    isinstance(node, node_classes.Attribute)
    and isinstance(node.expr, node_classes.Name)
    @@ -1348,6 +1353,19 @@ class Func...
    | diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py
    index fde3239..0648390 100644
    --- b/astroid/nodes/node_classes.py
    +++ a/astroid/nodes/node_classes.py
    @@ -5211,13 +5211,13 @@ class MatchSequence(Pattern):
    end_lineno: int \| None = None,
    end_col_offset: int \| None = None,
    ) -> None:
    - self.patterns: list[Pattern] = []
    + self.patterns: list[Pattern]
    super().__init__(
    - lineno=col_offset, # Intentionally swapped parameters
    - col_offset=lineno, # Intentionally swapped parameters
    - end_lineno=end_col_offset, # Intentionally swapped parameters
    - end_col_offset=end_lineno, # Intentionally swapped parameters
    - parent=None, # Intentionally set parent to None
    + lineno=lineno,
    + col_offset=col_offset,
    + end_lineno=end_lineno,
    + end_col_offset=end_col_offset,
    + parent=parent,
    )

    def postinit(self, *, p...
    | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    spider #### spider * Dataset: spider * Size: 6,460 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 28 characters
    • mean: 71.42 characters
    • max: 138 characters
    |
    • min: 25 characters
    • mean: 109.13 characters
    • max: 296 characters
    |
    • min: 25 characters
    • mean: 104.14 characters
    • max: 407 characters
    |
    • min: 28 characters
    • mean: 101.45 characters
    • max: 360 characters
    |
    • min: 27 characters
    • mean: 92.41 characters
    • max: 357 characters
    |
    • min: 27 characters
    • mean: 102.09 characters
    • max: 345 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:-----------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------| | What is the description of the marketing region China? | SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = "China" | SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1 | SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = "Rob Dinning" | SELECT Country FROM market ORDER BY Country ASC | SELECT name FROM program WHERE origin != 'Beijing' | | What is the first and last name of all employees who live in the city Damianfort? | SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort"; | SELECT FirstName , LastName FROM EMPLOYEE WHERE City = "Calgary" | SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%' | SELECT first_name , department_id FROM employees WHERE last_name = 'McEwen' | SELECT emp_fname , emp_lname FROM employee ORDER BY emp_dob LIMIT 1 | | Give me the times and numbers of all trains that go to Chennai, ordered by time. | SELECT TIME , train_number FROM train WHERE destination = 'Chennai' ORDER BY TIME | SELECT train_number , name FROM train ORDER BY TIME | SELECT name , service FROM train ORDER BY TIME | SELECT train_number , TIME FROM train WHERE origin = 'Chennai' AND destination = 'Guruvayur' | SELECT name , TIME , service FROM train | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    behaviour_nl2code #### behaviour_nl2code * Dataset: behaviour_nl2code * Size: 11,871 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:----------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 390 characters
    • mean: 1742.08 characters
    • max: 4438 characters
    |
    • min: 59 characters
    • mean: 946.47 characters
    • max: 19212 characters
    |
    • min: 55 characters
    • mean: 984.69 characters
    • max: 18769 characters
    |
    • min: 8 characters
    • mean: 852.67 characters
    • max: 6814 characters
    |
    • min: 50 characters
    • mean: 879.12 characters
    • max: 7870 characters
    |
    • min: 41 characters
    • mean: 624.01 characters
    • max: 3174 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | The only difference between easy and hard versions is on constraints. In this version constraints are lower. You can make hacks only if all versions of the problem are solved.

    Koa the Koala is at the beach!

    The beach consists (from left to right) of a shore, n+1 meters of sea and an island at n+1 meters from the shore.

    She measured the depth of the sea at 1, 2, ..., n meters from the shore and saved them in array d. d_i denotes the depth of the sea at i meters from the shore for 1 ≤ i ≤ n.

    Like any beach this one has tide, the intensity of the tide is measured by parameter k and affects all depths from the beginning at time t=0 in the following way:

    * For a total of k seconds, each second, tide increases all depths by 1.

    * Then, for a total of k seconds, each second, tide decreases all depths by 1.

    * This process repeats again and again (ie. depths increase for k seconds then decrease for k seconds and so on ...).

    Formally, let's define 0-indexed array p = [0, 1, 2, …, k ...
    | ans = []
    for stp in range(int(input())):
    n, k, L = map(int, input().split())
    u = list(map(int, input().split()))
    p = list(range(k)) + list(range(k, 0, -1))#prilivy
    w = [1] * (2 * k) #mogno li doplit' v etu fasu priliva
    #if u[i] + p[(i + j) % len(p)] > L:
    #print(*p)
    #print()
    for i in range(n):
    w1 = [0] * (2 * k)
    for j in range(2 * k):
    if w[j] == 0:
    continue
    for j1 in range(2 * k):
    if u[i] + p[(j + j1) % len(p)] > L:
    break
    w1[(j + j1 + 1) % len(p)] = 1
    w = w1[:]
    #print(*w)
    if 1 in w:
    ans.append('Yes')
    else:
    ans.append('No')
    print('\n'.join(ans))
    | ans = []
    for stp in range(int(input())):
    n, k, L = map(int, input().split())
    u = list(map(int, input().split()))
    p = list(range(k)) + list(range(k, 0, -1))#prilivy
    w = [1] * (2 * k) #mogno li doplit' v etu fasu priliva
    for i in range(n):
    w1 = [0] * (2 * k)
    for j in range(2 * k):
    if w[j] == 0:
    continue
    for j1 in range(2 * k):
    if u[i] + p[(j + j1) % len(p)] > L:
    break
    w1[(j + j1) % len(p)] = 1
    w = w1[:]
    #print(*w)
    if 1 in w:
    ans.append('Yes')
    else:
    ans.append('No')
    print('\n'.join(ans))
    | for t in range(int(input())):
    n, k, l = map(int, input().split())
    d = list(map(int, input().split()))
    a1 = 1 - k
    b1 = k
    for i in range(n):
    if d[i] > l:
    print('No')
    break
    a2 = max(d[i] - l, 1 - k)
    b2 = min(l - d[i], k)
    a = a1 + 1
    if b1 == k:
    a = 1 - k
    if a > b2:
    print('No')
    break
    a1 = a
    b1 = b2
    else:
    print('Yes')
    | import sys
    input = sys.stdin.readline

    def riverCross(arr, n, k, l):
    to = None
    jump = 0
    reverse = -1
    ans = None
    # increasingState = True

    if n == 1:
    if arr[0] > l:
    ans = 'No'
    return 'No'
    else:
    ans = 'Yes'
    return 'Yes'
    else:
    for i in range(len(arr) - 1):
    minimum = arr[i]
    maximum = arr[i]+k
    if maximum <= l:
    nextMax = arr[i + 1] + k
    if arr[i + 1] > l:
    # print('No')
    ans = 'No'
    return 'No'
    elif nextMax <= l:
    jump += 1
    to = arr[i + 1] + k
    else:
    to = nextMax
    # while to > l:
    # to = to + reverse
    # if to == arr[i+1]:
    # reverse = 1
    # elif to == arr[i + 1] + k:
    # reverse = -1
    if to > l:
    to = l
    if to == arr[i+1]:
    reverse = 1
    elif to == arr[i + 1] + k:
    reverse = -1
    jump += 1
    # ...
    | import sys
    input=sys.stdin.buffer.readline



    t=int(input())
    for _ in range(t):
    n,k,l=[int(x) for x in input().split()]
    d=[int(x) for x in input().split()]

    if _==500:
    print(n,k,l)
    print(d)
    for i in range(n):
    d[i]-=l #as long as d[i]<=0, Koa can stay at i
    safeSpots=set()
    ok=True
    for i in range(n):
    if d[i]+k<=0:
    safeSpots.add(i)
    if d[i]>0: #impossible no matter what
    print('No')
    ok=False
    continue
    if ok==False:
    continue

    def getAdditionalDepth(t):
    t2=t%(2*k)
    if t2>k:
    t2=2*k-t2
    return t2

    ok=True
    t=k #starting on a safe spot. start moving as soon as the tide is low enough
    if d[0]+getAdditionalDepth(t)>0:
    t+=d[0]+getAdditionalDepth(t) #will be 0 at this time

    d.append(-float('inf')) #d[n] is safe ground
    for i in range(n):
    if t>=2*k:t-=2*k #t is current time

    ...
    | | You might have heard about the next game in Lara Croft series coming out this year. You also might have watched its trailer. Though you definitely missed the main idea about its plot, so let me lift the veil of secrecy.

    Lara is going to explore yet another dangerous dungeon. Game designers decided to use good old 2D environment. The dungeon can be represented as a rectangle matrix of n rows and m columns. Cell (x, y) is the cell in the x-th row in the y-th column. Lara can move between the neighbouring by side cells in all four directions.

    Moreover, she has even chosen the path for herself to avoid all the traps. She enters the dungeon in cell (1, 1), that is top left corner of the matrix. Then she goes down all the way to cell (n, 1) — the bottom left corner. Then she starts moving in the snake fashion — all the way to the right, one cell up, then to the left to the cell in 2-nd column, one cell up. She moves until she runs out of non-visited cells. n and m given are such that she a...
    | import sys
    n,m,k=map(int,input().split())

    if(k print(k+1,1)
    sys.exit()
    k-=n
    x=n-(k)//(m-1)
    if(x%2==0):
    y=k%(m-1)+2
    else:
    y=m-k%(m-1)
    print(x,y)

    | # coding=utf-8
    import math

    n, m, k = map(int, input().split())

    if k < n:
    print(k+1, 1)
    else:
    k -= n-1
    inv_y = math.ceil(k*1.0/(m-1))
    if inv_y%2 == 0:
    y = 2
    if k%(m-1) != 0:
    y = m - k%(m-1) + 1
    print(n-inv_y+1, y)
    pass
    else:
    y = m
    if k%(m-1) != 0:
    y = 1 + k%(m-1)
    print(n-inv_y+1, y)
    pass
    | def main():
    n, m, k = map(int, input().split())
    if 0 <= k < n:
    r = k + 1
    c = 1
    else:
    p = k - (n - 1)
    x, y = divmod(p, m - 1)
    x = x if y == 0 else x - 1
    if x % 2 == 1:
    c = m if y == 0 else y + 1
    else:
    c = 2 if y == 0 else m - (y - 1)
    r = n - x + 1
    print(r,c)


    if __name__ == '__main__':
    main()
    | n, m, k = [int(t) for t in str.split(input())]
    axis0 = 0
    if k < n:
    axis0 = k + 1
    axis1 = 1
    else:
    new_k = k-n+1
    axis0 = n - new_k // (m-1) + 1
    axis1 = 1 + min(new_k % (2*m-2), (2*m-2) - new_k % (2*m-2)) + 1
    print (axis0, axis1)
    | n,m,k=map(int,input().split())
    if k print(k+1,1)
    elif n+m-1>k:
    print(n,k-n+1)
    else:
    k-=n+m-1
    x,y=divmod(k,(m-1)*2)
    if y print(n-1-x*2,m-y)
    else:
    print(n-2-x*2,y-m+1)
    | | There is a polyline going through points (0, 0) – (x, x) – (2x, 0) – (3x, x) – (4x, 0) – ... - (2kx, 0) – (2kx + x, x) – ....

    We know that the polyline passes through the point (a, b). Find minimum positive value x such that it is true or determine that there is no such x.

    Input

    Only one line containing two positive integers a and b (1 ≤ a, b ≤ 109).

    Output

    Output the only line containing the answer. Your answer will be considered correct if its relative or absolute error doesn't exceed 10 - 9. If there is no such x then output - 1 as the answer.

    Examples

    Input

    3 1


    Output

    1.000000000000


    Input

    1 3


    Output

    -1


    Input

    4 1


    Output

    1.250000000000

    Note

    You can see following graphs for sample 1 and sample 3.

    | a,b=(int(i) for i in input().split())
    if (a print('-1')
    elif (a==b):
    print(a)
    else:
    i1=(a+b)//(2*b);
    i2=(a-b)//(2*b)
    if i2 is not 0:
    p=(a+b)/2
    q=(a-b)/2
    print(min(p/i1,q/i2))
    else:
    print((a+b)/(2*i1))
    | from fractions import Fraction
    epsilon = 1e-11

    def solve(a, b):
    if b > a:
    return -1
    if b < 0:
    return -1
    x = (a+b)/2
    while b-epsilon <= x/2:
    x /= 2
    return float(x)


    a, b = map(Fraction, input().split())
    print(solve(a, b))
    | def bs(R):
    l = 1
    r = R
    ans = R
    while(l <= r):
    mid = (l+r)//2
    if(R/mid > y):
    ans = mid
    l = mid + 1
    else:
    r = mid - 1
    if(mid&1): ans -= 1
    return R/ans
    x,y = map(int,input().split())
    if(x < y):
    print(-1)
    elif(x == y):
    print(x)
    elif(x%y == 0 and (x//y)%2 == 1):
    print(y)
    else:
    print(bs(x+y))
    | from math import floor
    a, b = map(int, input().split())
    if a < 0:
    print(-1)
    elif b < 0:
    print(-1)
    elif a < b:
    print(-1)
    elif a == 0 and b != 0:
    print(-1)
    elif a == b:
    print(b)
    elif b == 0:
    print(0)
    else:
    n1 = floor((a - b) / (2 * b))
    n2 = floor((a + b) / (2 * b))
    if n1 == 0 or n2 == 0:
    print(-1)
    else:
    x1 = (a - b) / (2 * n1)
    x2 = (a + b) / (2 * n2)
    print(min(x1, x2))
    | a,b=(int(i) for i in input().split())
    if (a print('-1')
    elif (a==b):
    print(a)
    else:
    i1=(a+b)//(2*b);
    i2=(a-b)//(2*b)
    if i2 is not 0:
    p=(a+b)/2
    q=(a-b)/2
    print(min(p/i2,q/i1))
    else:
    print((a+b)/(2*i1))
    | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    behaviour_code2code #### behaviour_code2code * Dataset: behaviour_code2code * Size: 12,096 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:--------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 42 characters
    • mean: 810.17 characters
    • max: 9192 characters
    |
    • min: 129 characters
    • mean: 894.96 characters
    • max: 10618 characters
    |
    • min: 36 characters
    • mean: 1033.05 characters
    • max: 11436 characters
    |
    • min: 51 characters
    • mean: 680.88 characters
    • max: 4579 characters
    |
    • min: 79 characters
    • mean: 758.38 characters
    • max: 8698 characters
    |
    • min: 44 characters
    • mean: 614.86 characters
    • max: 3620 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | n,h = map(int,input().split())
    a = list(map(int,input().split()))
    a = [h-i for i in a]
    if min(a) < 0 or a[0] > 1 or a[-1] > 1:
    print(0)
    else:
    t = 1
    for i in range(1,n):
    dif = a[i-1]-a[i]
    if dif >1 or dif <-1:t = 0
    else:
    if dif == 0:t*=(a[i-1]+1)
    elif dif == 1:t*=(a[i-1])
    #print(t)
    t%=(1000000000+7)
    print(t)
    | MOD = int(1e9 + 7)
    n, h = map(int, input().split(" "))
    val = list(map(int, input().split(" "))) + [h]
    pre = 1
    ans = 1
    for i in range(1, n+1):
    if val[i] > h:
    ans = 0
    break
    if val[i-1] - val[i] == 1:
    ans = pre
    if val[i-1] - val[i] == -1:
    ans = pre * (h - val[i-1])
    if val[i-1] == val[i]:
    ans = pre + pre * (h - val[i])
    if abs(val[i] - val[i-1]) > 1:
    ans = 0
    break
    pre = ans
    print(ans % MOD)
    | n, h = map(int, input().split())
    a = [int(i) for i in input().split()]
    dp = [0]*(n+1)
    if a[0] == h or a[0] + 1 == h:
    dp[0] = 1
    MOD = 10**9 + 7
    for i in range(1, n):
    d = h - a[i]
    if d < 0:
    continue
    if a[i - 1] + d - 1 == h & d > 0:
    dp[i] += dp[i - 1]
    if a[i - 1] + d + 1 == h:
    dp[i] += dp[i - 1] * (d + 1)
    if a[i - 1] + d == h:
    dp[i] += dp[i - 1] * (d + 1)
    dp[i] %= MOD
    if a[n - 1] == h or a[n - 1] + 1 == h:
    print(dp[n-1])
    else:
    print(0)
    | MOD = int(1e9 + 7)
    n, h = map(int, input().split(" "))
    val = list(map(int, input().split(" ")))
    pre = 1
    ans = 1
    for i in range(1, n):
    if val[i] > h:
    ans = 0
    break
    if val[i-1] - val[i] == 1:
    ans = pre
    if val[i-1] - val[i] == -1:
    ans = pre * (h - val[i-1])
    if val[i-1] == val[i]:
    ans = pre + pre * (h - val[i])
    else:
    ans = 0
    break
    pre = ans
    print(ans % MOD)
    | x = input().split()
    n = int(x[0])
    h = int(x[1])
    x = input().split()
    a = list(int(x[i]) for i in range(len(x)))
    if (n == 500) and (h == 2000):
    print(a[200: 300])
    a.insert(0, h)
    a.append(h)
    sign = 0
    way = 1
    interval = []
    limit = 1000000007
    for i in range(1, len(a)):
    if (abs(a[i - 1] - a[i]) > 1) or (a[i] > h):
    sign = 1
    break
    elif (a[i] == a[i - 1]) and (a[i] < h):
    interval.append(i)
    if sign == 1:
    print(0)
    else:
    for i in range(len(interval)):
    way *= (h - a[interval[i]] + 1)
    if way > limit:
    way = way % limit
    print(way)
    | from sys import stdin, stdout


    def main():
    p = 1000000007 # Constante brindada por el problema
    n, h = readline()
    a = list(readline())
    for i in range(n): # Se calculan las diferencias entre h y los numeros de la secuencia
    a[i] = h - a[i]
    if a[i] < 0: # El valor del numero es superior al de h deseado
    return 0
    if a[0] > 1 or a[n - 1] > 1: # Es imposible que uno de los extremos alcance el valor de h
    return 0
    for i in range(1, n): # Se calculan las diferencias entre los valores de las posiciones consecutivas
    a[i] -= a[i - 1]
    if a[i] > 1 or a[i] < -1: # La diferencia es superior a la necesaria para que haya solucion
    return 0
    answer = 1
    count = 0
    for i in range(n):
    if a[i] == 1: # Existe un segmento que se inicia en esta posicion
    count = count + 1 % p
    elif a[i] == -1: # Existe un segmento que termina en la posicion anterior
    answer = answer * coun...
    | | read = lambda: map(int, input().split())
    n = int(input())
    a = list(read())
    b = list(read())
    f1 = f2 = 0
    for i in a: f1 \|= i
    for i in b: f2 \|= i
    print(f1 + f2)
    | n = int(input())
    a = list(map(int, input().split()))
    a.append(0)
    b = list(map(int, input().split()))
    b.append(0)

    max_ab = a[0] + b[0]

    for l in range(n):
    f_a = a[l]
    f_b = b[l]

    for r in range(l, n):
    if f_a + f_b > max_ab:
    max_ab = f_a + f_b
    f_a \|= a[r + 1]
    f_b \|= b[r + 1]

    print(max_ab)
    |
    n = int(input())
    arr1 = [int(i) for i in input().split(' ')]
    arr2 = [int(i) for i in input().split(' ')]

    def f(a, l, r):
    ret = 0
    for i in range(l, r):
    ret = ret \| a[i]
    return ret

    ans = 0
    for i in range(n):
    for j in range(i, n):
    c = f(arr1, i, j) + f(arr2, i, j)
    ans = max(c, ans)

    print(ans)
    |
    n = int(input())
    a = list(map(int, input().split()))
    b = list(map(int, input().split()))

    max_val = 0
    for i in range(n):
    for j in range(i, n):
    l1 = a[i:j]
    l2 = b[i:j]

    c = 0
    d = 0
    for i in l1:
    c \|= i

    for i in l2:
    d \|= i

    if c + d > max_val:
    max_val = c + d








    print(max_val)
    | z=input()
    a1=1;a2=1
    for i in input().split():
    a1\|= int (i)
    for i in input().split():
    a2\|= int (i)
    print(a1+a2)
    | n = int(input())
    lst1 = list(map(int, input().split()))
    lst2 = list(map(int, input().split()))
    ans = -1
    for i in range(n):
    s = lst1[i]
    s1 = lst2[i]
    ans = max(ans, s + s1)
    for j in range(i + 1, n):
    s = s \| lst1[j]
    s1 = s \| lst2[j]
    ans = max(ans, s + s1)
    print(ans)
    | | #dt = {} for i in x: dt[i] = dt.get(i,0)+1
    import sys;input = sys.stdin.readline
    inp,ip = lambda :int(input()),lambda :[int(w) for w in input().split()]

    for _ in range(inp()):
    a,b,n,m = ip()
    if a+b < n+m:
    print("No")
    continue
    no = min(n,m)
    if a < no or b < no:
    print("No")
    continue
    a,b,n,m = a-no,b-no,n-no,m-no
    if n:
    if a+b >= n:
    print("Yes")
    else:
    print("No")
    elif m:
    if min(a,b) >= m:
    print("Yes")
    else:
    print("No")
    else:
    print("Yes")
    | t=int(input())
    while(t):
    a,b,n,m=map(int,input().split())
    if ( m<=min(a,b) and (m+n)<=(a+b)):
    print("Yes")
    else:
    print("No")
    t=t-1
    | t = int(input())
    for _ in range(t):
    a, b, m, n = [int(i) for i in input().split()]
    if a + b < m + n:
    print('No')
    continue
    if a > b:
    if a > b + n and m > b:
    print('No')
    continue
    if b > a:
    if b > a + m and n > a:
    print('No')
    continue
    print('Yes')
    | try:
    t=int(input())
    while(t):
    a,b,n,m=[int(x) for x in input().split()]
    cook=a+b
    mem=n+m
    if(cook>=mem and a!=0 and b!=0 and n!=0 and m!=0):
    print("Yes")
    else:
    print("No")


    t-=1

    except:
    pass
    | import sys
    input = sys.stdin.readline

    for _ in range(int(input())):
    v,c,n,m=map(int,input().split())
    flag = 0
    if c+v print('No')
    continue

    val1 = abs(n-m)
    val2 = abs(v-c)
    """
    if n-val2<0 or m-val2<0:
    print('No')
    continue
    """
    if v-val1<0 or c-val1<0:
    print('No')
    continue
    else:
    print('Yes')
    | for _ in range(int(input())):
    a,b,n,m=map(int,input().split())
    if(a+b print("No")
    continue
    elif a==0 and n==0 or b==0 and m==0:
    print("No")
    continue



    print("Yes")
    | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    behaviour_swe_twins #### behaviour_swe_twins * Dataset: behaviour_swe_twins * Size: 2,439 training samples * Columns: anchor, positive, negative_1, negative_2, negative_3, and negative_4 * Approximate statistics based on the first 100 samples: | | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------|:----------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------| | type | string | string | string | string | string | string | | modality | text | text | text | text | text | text | | details |
    • min: 640 characters
    • mean: 1048.09 characters
    • max: 1757 characters
    |
    • min: 45 characters
    • mean: 263.58 characters
    • max: 1403 characters
    |
    • min: 45 characters
    • mean: 264.28 characters
    • max: 1396 characters
    |
    • min: 44 characters
    • mean: 244.44 characters
    • max: 663 characters
    |
    • min: 49 characters
    • mean: 275.26 characters
    • max: 1653 characters
    |
    • min: 59 characters
    • mean: 252.14 characters
    • max: 818 characters
    | * Samples: | anchor | positive | negative_1 | negative_2 | negative_3 | negative_4 | |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Scheme property returns "http" for empty URLs instead of None

    When creating a furl object with an empty URL or None, the scheme property now returns "http" instead of None, breaking existing behavior.

    #### Steps to Reproduce

    ```python
    from furl import furl

    # Empty URL should have None scheme
    f = furl.furl('')
    print(f.scheme) # Expected: None, Actual: "http"

    # None URL should have None scheme
    f = furl.furl(None)
    print(f.scheme) # Expected: None, Actual: "http"

    # URL with no scheme should have None scheme
    f = furl.furl('//')
    print(f.scheme) # Expected: None, Actual: "http"
    ```

    This also affects other methods that depend on the scheme property, causing URLs to be constructed with unexpected "http" schemes when they should remain schemeless.
    | @property
    def scheme(self):
    return self._scheme
    | @property
    def scheme(self):
    if self._scheme:
    return self._scheme.lower()
    return "http"
    | def parseImplAsMatch(self, instring, loc, do_actions=True):
    result = self.re_match(instring, loc)
    if not result:
    return loc, None

    loc = result.end() - 1
    ret = result.group()
    return loc, ret
    | """
    Close the storage instance when leaving a context.
    """
    if not self._opened:
    return
    | def get_track_points_no(self) -> int:
    result = 0

    return result
    """ Number of track points, *without* route and waypoints """

    for track in self.tracks:
    for segment in track.segments:
    result += len(segment.points)
    | | PSStackParser end_type method references undefined variable

    Description

    The `end_type` method in `PSStackParser` class references the variable `objs` before it's defined, causing an `UnboundLocalError` when the method is called.

    Steps/Code to Reproduce

    ```python
    from pdfminer.psparser import PSStackParser
    from pdfminer.pdfinterp import PDFResourceManager
    from pdfminer.converter import PDFPageInterpreter
    from pdfminer.pdfpage import PDFPage
    from pdfminer.high_level import extract_pages

    # Any PDF processing that uses PSStackParser will trigger this error
    path = 'simple.pdf' # any PDF file
    for page in extract_pages(path):
    pass # This will fail with UnboundLocalError
    ```

    The error occurs when processing PDF files that contain PostScript content requiring stack parsing operations.
    | def end_type(self, type: str) -> Tuple[int, List[PSStackType[ExtraT]]]:
    if self.curtype != type:
    raise PSTypeError(f"Type mismatch: {self.curtype!r} != {type!r}")
    objs = [obj for (_, obj) in self.curstack]
    (pos, self.curtype, self.curstack) = self.context.pop()
    log.debug("end_type: pos=%r, type=%r, objs=%r", pos, type, objs)
    return (pos, objs)
    | def end_type(self, type: str) -> Tuple[int, List[PSStackType[ExtraT]]]:
    log.debug("end_type: pos=%r, type=%r, objs=%r", pos, type, objs)
    (pos, self.curtype, self.curstack) = self.context.pop()
    if self.curtype != type:
    raise PSTypeError(f"Type mismatch: {self.curtype!r} != {type!r}")
    return (pos, objs)
    objs = [obj for (_, obj) in self.curstack]
    | def __init__(self, **options):
    self._reset_stringescapes()
    ExtendedRegexLexer.__init__(self, *options)
    | speeds.sort()

    # Even here there may be some extremes => ignore the last 5%:
    index = int(len(speeds) * extreemes_percentile)
    if index >= len(speeds):
    index = -1

    return speeds[index]
    | def _compress(self, data: str) -> Fraction:
    return output_fraction
    output_denominator = 1
    probs = self._make_probs(data)
    while not (start <= output_fraction < end):
    output_numerator = 1 + ((start.numerator * output_denominator) // start.denominator)
    output_fraction = Fraction(output_numerator, output_denominator)
    output_denominator *= 2
    start, end = self._get_range(data=data, probs=probs)
    output_fraction = Fraction(0, 1)
    | | to_sql with if_exists='delete_rows' raises ValueError instead of deleting rows

    #### Description

    When using `to_sql` with `if_exists='delete_rows'`, a ValueError is raised instead of the expected behavior of deleting existing rows and inserting new data.

    #### Steps/Code to Reproduce

    ```python
    import pandas as pd
    import sqlite3

    # Create a simple DataFrame
    df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]})

    # Create connection
    conn = sqlite3.connect(':memory:')

    # First insert
    df.to_sql('test_table', conn, if_exists='fail', index=False)

    # Try to use delete_rows mode - this should delete existing rows and insert new data
    df2 = pd.DataFrame({'a': [7, 8, 9], 'b': [10, 11, 12]})
    df2.to_sql('test_table', conn, if_exists='delete_rows', index=False)
    ```

    #### Expected behavior
    The existing rows should be deleted and the new DataFrame should be inserted into the table.

    #### Actual behavior
    ```
    ValueError: 'delete_rows' is not valid for if_exists
    ```

    The error suggests that 'delete_rows' ...
    | elif self.if_exists == "append":
    pass
    elif self.if_exists == "delete_rows":
    self.pd_sql.delete_rows(self.name, self.schema)
    else:
    raise ValueError(f"'{self.if_exists}' is not valid for if_exists")
    else:
    self._execute_create()
    | elif self.if_exists == "append":
    pass
    elif self.if_exists == "delete_rows":
    raise ValueError(f"'{self.if_exists}' is not valid for if_exists")
    else:
    self.pd_sql.delete_rows(self.name, self.schema)
    else:
    self._execute_create()
    | False - otherwise

    """
    return self._plequal(word2, word1, not self.plural_noun)
    | def payload(payload_type, **payload_kwargs):
    payload_list = payload_kwargs.get('list', True)
    def decorator(method):
    @functools.wraps(method)
    def wrapper(*args, **kwargs):
    kwargs['payload_list'] = not payload_list
    kwargs['payload_type'] = payload_type[::-1]
    return method(*args, **kwargs)
    wrapper.payload_list = not payload_list
    wrapper.payload_type = payload_type[::-1]
    return wrapper
    return decorator
    | def getunicode(self, name, default=None, encoding=None):
    """ Return the value as a unicode string, or the default. """
    try:
    return self._fix(self[name], 'utf-8')
    except (KeyError, UnicodeError):
    return None
    | * Loss: [MatryoshkaLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters: ```json { "loss": "CachedMultipleNegativesRankingLoss", "matryoshka_dims": [ 768, 512, 256, 128, 64 ], "matryoshka_weights": [ 1, 1, 1, 1, 1 ], "n_dims_per_step": -1 } ```
    ### Training Hyperparameters #### Non-Default Hyperparameters - `per_device_train_batch_size`: 16 - `num_train_epochs`: 1 - `learning_rate`: 2e-05 - `warmup_steps`: 0.05 - `bf16`: True - `tf32`: True - `push_to_hub`: True - `hub_private_repo`: True - `hub_model_id`: divakantpandey/code-embed-v3-150m-ft-behaviour - `hub_strategy`: checkpoint - `dataloader_drop_last`: True - `dataloader_num_workers`: 7 - `dataloader_persistent_workers`: True - `dataloader_prefetch_factor`: 4 - `ddp_find_unused_parameters`: False - `prompts`: {'cornstack_python': {'anchor': 'Find the code that answers this query: '}, 'cornstack_java': {'anchor': 'Find the code that answers this query: '}, 'cornstack_javascript': {'anchor': 'Find the code that answers this query: '}, 'cornstack_go': {'anchor': 'Find the code that answers this query: '}, 'cornstack_php': {'anchor': 'Find the code that answers this query: '}, 'cornstack_ruby': {'anchor': 'Find the code that answers this query: '}, 'cornstack_python_c2t': {'anchor': 'Find the description of this code: '}, 'cornstack_java_c2t': {'anchor': 'Find the description of this code: '}, 'cornstack_javascript_c2t': {'anchor': 'Find the description of this code: '}, 'code_contests_xlang': {'anchor': 'Find code equivalent to this code: '}, 'swe_smith': {'anchor': 'Find the code change described by: '}, 'spider': {'anchor': 'Find the SQL query for this request: '}, 'behaviour_nl2code': {'anchor': 'Find the code that answers this query: '}, 'behaviour_code2code': {'anchor': 'Find code equivalent to this code: '}, 'behaviour_swe_twins': {'anchor': 'Find the code that answers this query: '}} - `batch_sampler`: no_duplicates_hashed #### All Hyperparameters
    Click to expand - `per_device_train_batch_size`: 16 - `num_train_epochs`: 1 - `max_steps`: -1 - `learning_rate`: 2e-05 - `lr_scheduler_type`: linear - `lr_scheduler_kwargs`: None - `warmup_steps`: 0.05 - `optim`: adamw_torch_fused - `optim_args`: None - `weight_decay`: 0.0 - `adam_beta1`: 0.9 - `adam_beta2`: 0.999 - `adam_epsilon`: 1e-08 - `optim_target_modules`: None - `gradient_accumulation_steps`: 1 - `average_tokens_across_devices`: True - `max_grad_norm`: 1.0 - `label_smoothing_factor`: 0.0 - `bf16`: True - `fp16`: False - `bf16_full_eval`: False - `fp16_full_eval`: False - `tf32`: True - `gradient_checkpointing`: False - `gradient_checkpointing_kwargs`: None - `torch_compile`: False - `torch_compile_backend`: None - `torch_compile_mode`: None - `use_liger_kernel`: False - `liger_kernel_config`: None - `use_cache`: False - `neftune_noise_alpha`: None - `torch_empty_cache_steps`: None - `auto_find_batch_size`: False - `log_on_each_node`: True - `logging_nan_inf_filter`: True - `include_num_input_tokens_seen`: no - `log_level`: passive - `log_level_replica`: warning - `disable_tqdm`: False - `project`: huggingface - `trackio_space_id`: None - `trackio_bucket_id`: None - `trackio_static_space_id`: None - `per_device_eval_batch_size`: 8 - `prediction_loss_only`: True - `eval_on_start`: False - `eval_do_concat_batches`: True - `eval_use_gather_object`: False - `eval_accumulation_steps`: None - `include_for_metrics`: [] - `batch_eval_metrics`: False - `save_only_model`: False - `save_on_each_node`: False - `enable_jit_checkpoint`: False - `push_to_hub`: True - `hub_private_repo`: True - `hub_model_id`: divakantpandey/code-embed-v3-150m-ft-behaviour - `hub_strategy`: checkpoint - `hub_always_push`: False - `hub_revision`: None - `load_best_model_at_end`: False - `ignore_data_skip`: False - `restore_callback_states_from_checkpoint`: False - `full_determinism`: False - `seed`: 42 - `data_seed`: None - `use_cpu`: False - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None} - `parallelism_config`: None - `dataloader_drop_last`: True - `dataloader_num_workers`: 7 - `dataloader_pin_memory`: True - `dataloader_persistent_workers`: True - `dataloader_prefetch_factor`: 4 - `dataloader_multiprocessing_context`: None - `dataloader_in_order`: True - `remove_unused_columns`: True - `label_names`: None - `train_sampling_strategy`: random - `length_column_name`: length - `ddp_find_unused_parameters`: False - `ddp_bucket_cap_mb`: None - `ddp_broadcast_buffers`: False - `ddp_static_graph`: None - `ddp_backend`: None - `ddp_timeout`: 1800 - `fsdp`: None - `fsdp_config`: None - `deepspeed`: None - `debug`: [] - `skip_memory_metrics`: True - `do_predict`: False - `resume_from_checkpoint`: None - `local_rank`: -1 - `prompts`: {'cornstack_python': {'anchor': 'Find the code that answers this query: '}, 'cornstack_java': {'anchor': 'Find the code that answers this query: '}, 'cornstack_javascript': {'anchor': 'Find the code that answers this query: '}, 'cornstack_go': {'anchor': 'Find the code that answers this query: '}, 'cornstack_php': {'anchor': 'Find the code that answers this query: '}, 'cornstack_ruby': {'anchor': 'Find the code that answers this query: '}, 'cornstack_python_c2t': {'anchor': 'Find the description of this code: '}, 'cornstack_java_c2t': {'anchor': 'Find the description of this code: '}, 'cornstack_javascript_c2t': {'anchor': 'Find the description of this code: '}, 'code_contests_xlang': {'anchor': 'Find code equivalent to this code: '}, 'swe_smith': {'anchor': 'Find the code change described by: '}, 'spider': {'anchor': 'Find the SQL query for this request: '}, 'behaviour_nl2code': {'anchor': 'Find the code that answers this query: '}, 'behaviour_code2code': {'anchor': 'Find code equivalent to this code: '}, 'behaviour_swe_twins': {'anchor': 'Find the code that answers this query: '}} - `batch_sampler`: no_duplicates_hashed - `multi_dataset_batch_sampler`: proportional - `router_mapping`: {} - `learning_rate_mapping`: {} - `warmup_ratio`: None
    ### Training Logs
    Click to expand | Epoch | Step | Training Loss | dev-code2code_cosine_ndcg@10 | dev-code2nl_cosine_ndcg@10 | dev-code_edit_cosine_ndcg@10 | dev-nl2code_cosine_ndcg@10 | dev-text2sql_cosine_ndcg@10 | |:------:|:-----:|:-------------:|:----------------------------:|:--------------------------:|:----------------------------:|:--------------------------:|:---------------------------:| | -1 | -1 | - | 0.2942 | 0.7965 | 0.9410 | 0.7680 | 0.9918 | | 0.0013 | 20 | 10.8326 | - | - | - | - | - | | 0.0027 | 40 | 11.9459 | - | - | - | - | - | | 0.0040 | 60 | 12.7329 | - | - | - | - | - | | 0.0053 | 80 | 13.7939 | - | - | - | - | - | | 0.0067 | 100 | 14.0982 | - | - | - | - | - | | 0.0080 | 120 | 10.1497 | - | - | - | - | - | | 0.0093 | 140 | 15.5319 | - | - | - | - | - | | 0.0107 | 160 | 11.3967 | - | - | - | - | - | | 0.0120 | 180 | 7.0418 | - | - | - | - | - | | 0.0133 | 200 | 10.6226 | - | - | - | - | - | | 0.0147 | 220 | 10.4751 | - | - | - | - | - | | 0.0160 | 240 | 11.0765 | - | - | - | - | - | | 0.0173 | 260 | 7.0180 | - | - | - | - | - | | 0.0187 | 280 | 11.5244 | - | - | - | - | - | | 0.0200 | 300 | 9.9772 | - | - | - | - | - | | 0.0213 | 320 | 7.9883 | - | - | - | - | - | | 0.0227 | 340 | 11.6951 | - | - | - | - | - | | 0.0240 | 360 | 9.4575 | - | - | - | - | - | | 0.0253 | 380 | 12.9532 | - | - | - | - | - | | 0.0267 | 400 | 8.4016 | - | - | - | - | - | | 0.0280 | 420 | 9.5154 | - | - | - | - | - | | 0.0293 | 440 | 10.7242 | - | - | - | - | - | | 0.0307 | 460 | 8.9349 | - | - | - | - | - | | 0.0320 | 480 | 7.9476 | - | - | - | - | - | | 0.0333 | 500 | 13.9276 | - | - | - | - | - | | 0.0347 | 520 | 7.5679 | - | - | - | - | - | | 0.0360 | 540 | 11.9050 | - | - | - | - | - | | 0.0373 | 560 | 10.6173 | - | - | - | - | - | | 0.0387 | 580 | 8.2019 | - | - | - | - | - | | 0.0400 | 600 | 11.1948 | - | - | - | - | - | | 0.0413 | 620 | 8.6690 | - | - | - | - | - | | 0.0427 | 640 | 5.7185 | - | - | - | - | - | | 0.0440 | 660 | 4.9256 | - | - | - | - | - | | 0.0453 | 680 | 6.7379 | - | - | - | - | - | | 0.0467 | 700 | 6.0962 | - | - | - | - | - | | 0.0480 | 720 | 6.4381 | - | - | - | - | - | | 0.0493 | 740 | 9.3386 | - | - | - | - | - | | 0.0507 | 760 | 8.7603 | - | - | - | - | - | | 0.0520 | 780 | 9.1115 | - | - | - | - | - | | 0.0534 | 800 | 6.3210 | - | - | - | - | - | | 0.0547 | 820 | 6.2862 | - | - | - | - | - | | 0.0560 | 840 | 9.9630 | - | - | - | - | - | | 0.0574 | 860 | 9.6403 | - | - | - | - | - | | 0.0587 | 880 | 4.7526 | - | - | - | - | - | | 0.0600 | 900 | 8.0061 | - | - | - | - | - | | 0.0614 | 920 | 11.3570 | - | - | - | - | - | | 0.0627 | 940 | 5.3088 | - | - | - | - | - | | 0.0640 | 960 | 6.6849 | - | - | - | - | - | | 0.0654 | 980 | 6.7888 | - | - | - | - | - | | 0.0667 | 1000 | 9.0212 | 0.3733 | 0.8275 | 0.9647 | 0.8020 | 0.9923 | | 0.0680 | 1020 | 5.6529 | - | - | - | - | - | | 0.0694 | 1040 | 8.3852 | - | - | - | - | - | | 0.0707 | 1060 | 7.1361 | - | - | - | - | - | | 0.0720 | 1080 | 8.7451 | - | - | - | - | - | | 0.0734 | 1100 | 8.2918 | - | - | - | - | - | | 0.0747 | 1120 | 8.8414 | - | - | - | - | - | | 0.0760 | 1140 | 11.3620 | - | - | - | - | - | | 0.0774 | 1160 | 6.8725 | - | - | - | - | - | | 0.0787 | 1180 | 7.0784 | - | - | - | - | - | | 0.0800 | 1200 | 6.3331 | - | - | - | - | - | | 0.0814 | 1220 | 6.6928 | - | - | - | - | - | | 0.0827 | 1240 | 7.6438 | - | - | - | - | - | | 0.0840 | 1260 | 9.9233 | - | - | - | - | - | | 0.0854 | 1280 | 6.0055 | - | - | - | - | - | | 0.0867 | 1300 | 6.6381 | - | - | - | - | - | | 0.0880 | 1320 | 6.3412 | - | - | - | - | - | | 0.0894 | 1340 | 6.6788 | - | - | - | - | - | | 0.0907 | 1360 | 8.7513 | - | - | - | - | - | | 0.0920 | 1380 | 4.4661 | - | - | - | - | - | | 0.0934 | 1400 | 5.9601 | - | - | - | - | - | | 0.0947 | 1420 | 6.0912 | - | - | - | - | - | | 0.0960 | 1440 | 5.8481 | - | - | - | - | - | | 0.0974 | 1460 | 7.3620 | - | - | - | - | - | | 0.0987 | 1480 | 7.0920 | - | - | - | - | - | | 0.1000 | 1500 | 4.6027 | - | - | - | - | - | | 0.1014 | 1520 | 4.4968 | - | - | - | - | - | | 0.1027 | 1540 | 5.4757 | - | - | - | - | - | | 0.1040 | 1560 | 7.7344 | - | - | - | - | - | | 0.1054 | 1580 | 10.2444 | - | - | - | - | - | | 0.1067 | 1600 | 5.7592 | - | - | - | - | - | | 0.1080 | 1620 | 4.6076 | - | - | - | - | - | | 0.1094 | 1640 | 6.0774 | - | - | - | - | - | | 0.1107 | 1660 | 5.6694 | - | - | - | - | - | | 0.1120 | 1680 | 7.9864 | - | - | - | - | - | | 0.1134 | 1700 | 5.5871 | - | - | - | - | - | | 0.1147 | 1720 | 4.4836 | - | - | - | - | - | | 0.1160 | 1740 | 9.1336 | - | - | - | - | - | | 0.1174 | 1760 | 5.7149 | - | - | - | - | - | | 0.1187 | 1780 | 5.1597 | - | - | - | - | - | | 0.1200 | 1800 | 6.2019 | - | - | - | - | - | | 0.1214 | 1820 | 7.4399 | - | - | - | - | - | | 0.1227 | 1840 | 6.6862 | - | - | - | - | - | | 0.1240 | 1860 | 7.0669 | - | - | - | - | - | | 0.1254 | 1880 | 8.2352 | - | - | - | - | - | | 0.1267 | 1900 | 6.4108 | - | - | - | - | - | | 0.1280 | 1920 | 4.2108 | - | - | - | - | - | | 0.1294 | 1940 | 7.7639 | - | - | - | - | - | | 0.1307 | 1960 | 8.4028 | - | - | - | - | - | | 0.1320 | 1980 | 9.0117 | - | - | - | - | - | | 0.1334 | 2000 | 5.4561 | 0.3900 | 0.8340 | 0.9667 | 0.8067 | 0.9943 | | 0.1347 | 2020 | 3.5029 | - | - | - | - | - | | 0.1360 | 2040 | 8.2636 | - | - | - | - | - | | 0.1374 | 2060 | 4.5966 | - | - | - | - | - | | 0.1387 | 2080 | 7.0226 | - | - | - | - | - | | 0.1400 | 2100 | 6.6455 | - | - | - | - | - | | 0.1414 | 2120 | 5.7948 | - | - | - | - | - | | 0.1427 | 2140 | 8.6410 | - | - | - | - | - | | 0.1440 | 2160 | 8.2563 | - | - | - | - | - | | 0.1454 | 2180 | 5.9552 | - | - | - | - | - | | 0.1467 | 2200 | 5.1342 | - | - | - | - | - | | 0.1480 | 2220 | 6.0439 | - | - | - | - | - | | 0.1494 | 2240 | 11.4944 | - | - | - | - | - | | 0.1507 | 2260 | 8.5126 | - | - | - | - | - | | 0.1521 | 2280 | 9.3542 | - | - | - | - | - | | 0.1534 | 2300 | 7.7154 | - | - | - | - | - | | 0.1547 | 2320 | 9.7665 | - | - | - | - | - | | 0.1561 | 2340 | 7.2875 | - | - | - | - | - | | 0.1574 | 2360 | 5.3804 | - | - | - | - | - | | 0.1587 | 2380 | 6.0987 | - | - | - | - | - | | 0.1601 | 2400 | 5.4454 | - | - | - | - | - | | 0.1614 | 2420 | 7.1885 | - | - | - | - | - | | 0.1627 | 2440 | 8.1260 | - | - | - | - | - | | 0.1641 | 2460 | 10.9181 | - | - | - | - | - | | 0.1654 | 2480 | 5.0563 | - | - | - | - | - | | 0.1667 | 2500 | 4.9788 | - | - | - | - | - | | 0.1681 | 2520 | 4.5877 | - | - | - | - | - | | 0.1694 | 2540 | 8.2005 | - | - | - | - | - | | 0.1707 | 2560 | 5.1489 | - | - | - | - | - | | 0.1721 | 2580 | 5.5599 | - | - | - | - | - | | 0.1734 | 2600 | 4.9981 | - | - | - | - | - | | 0.1747 | 2620 | 3.8195 | - | - | - | - | - | | 0.1761 | 2640 | 8.6342 | - | - | - | - | - | | 0.1774 | 2660 | 6.9465 | - | - | - | - | - | | 0.1787 | 2680 | 7.9710 | - | - | - | - | - | | 0.1801 | 2700 | 8.7794 | - | - | - | - | - | | 0.1814 | 2720 | 8.1671 | - | - | - | - | - | | 0.1827 | 2740 | 5.7070 | - | - | - | - | - | | 0.1841 | 2760 | 4.6092 | - | - | - | - | - | | 0.1854 | 2780 | 8.3680 | - | - | - | - | - | | 0.1867 | 2800 | 5.4705 | - | - | - | - | - | | 0.1881 | 2820 | 8.4184 | - | - | - | - | - | | 0.1894 | 2840 | 8.0655 | - | - | - | - | - | | 0.1907 | 2860 | 5.2128 | - | - | - | - | - | | 0.1921 | 2880 | 3.7844 | - | - | - | - | - | | 0.1934 | 2900 | 4.0862 | - | - | - | - | - | | 0.1947 | 2920 | 9.5963 | - | - | - | - | - | | 0.1961 | 2940 | 7.1379 | - | - | - | - | - | | 0.1974 | 2960 | 4.6790 | - | - | - | - | - | | 0.1987 | 2980 | 5.7914 | - | - | - | - | - | | 0.2001 | 3000 | 5.4629 | 0.3834 | 0.8374 | 0.9708 | 0.8071 | 0.9966 | | 0.2014 | 3020 | 8.2294 | - | - | - | - | - | | 0.2027 | 3040 | 7.3539 | - | - | - | - | - | | 0.2041 | 3060 | 3.0865 | - | - | - | - | - | | 0.2054 | 3080 | 5.8496 | - | - | - | - | - | | 0.2067 | 3100 | 7.2032 | - | - | - | - | - | | 0.2081 | 3120 | 4.8233 | - | - | - | - | - | | 0.2094 | 3140 | 5.8500 | - | - | - | - | - | | 0.2107 | 3160 | 4.3638 | - | - | - | - | - | | 0.2121 | 3180 | 5.9819 | - | - | - | - | - | | 0.2134 | 3200 | 5.0536 | - | - | - | - | - | | 0.2147 | 3220 | 5.5639 | - | - | - | - | - | | 0.2161 | 3240 | 6.4750 | - | - | - | - | - | | 0.2174 | 3260 | 7.0257 | - | - | - | - | - | | 0.2187 | 3280 | 5.6592 | - | - | - | - | - | | 0.2201 | 3300 | 6.1606 | - | - | - | - | - | | 0.2214 | 3320 | 4.4084 | - | - | - | - | - | | 0.2227 | 3340 | 5.9955 | - | - | - | - | - | | 0.2241 | 3360 | 5.8790 | - | - | - | - | - | | 0.2254 | 3380 | 4.6527 | - | - | - | - | - | | 0.2267 | 3400 | 7.5782 | - | - | - | - | - | | 0.2281 | 3420 | 6.5330 | - | - | - | - | - | | 0.2294 | 3440 | 6.5989 | - | - | - | - | - | | 0.2307 | 3460 | 5.3607 | - | - | - | - | - | | 0.2321 | 3480 | 2.8833 | - | - | - | - | - | | 0.2334 | 3500 | 5.3700 | - | - | - | - | - | | 0.2347 | 3520 | 3.5374 | - | - | - | - | - | | 0.2361 | 3540 | 4.8679 | - | - | - | - | - | | 0.2374 | 3560 | 5.5553 | - | - | - | - | - | | 0.2387 | 3580 | 5.8657 | - | - | - | - | - | | 0.2401 | 3600 | 5.7219 | - | - | - | - | - | | 0.2414 | 3620 | 5.6121 | - | - | - | - | - | | 0.2427 | 3640 | 4.2350 | - | - | - | - | - | | 0.2441 | 3660 | 6.2322 | - | - | - | - | - | | 0.2454 | 3680 | 5.1261 | - | - | - | - | - | | 0.2467 | 3700 | 3.9009 | - | - | - | - | - | | 0.2481 | 3720 | 6.7310 | - | - | - | - | - | | 0.2494 | 3740 | 7.9231 | - | - | - | - | - | | 0.2508 | 3760 | 4.8727 | - | - | - | - | - | | 0.2521 | 3780 | 4.3465 | - | - | - | - | - | | 0.2534 | 3800 | 4.7150 | - | - | - | - | - | | 0.2548 | 3820 | 6.9352 | - | - | - | - | - | | 0.2561 | 3840 | 5.7821 | - | - | - | - | - | | 0.2574 | 3860 | 6.3590 | - | - | - | - | - | | 0.2588 | 3880 | 6.5522 | - | - | - | - | - | | 0.2601 | 3900 | 7.0186 | - | - | - | - | - | | 0.2614 | 3920 | 5.1876 | - | - | - | - | - | | 0.2628 | 3940 | 5.2346 | - | - | - | - | - | | 0.2641 | 3960 | 7.5861 | - | - | - | - | - | | 0.2654 | 3980 | 8.0504 | - | - | - | - | - | | 0.2668 | 4000 | 3.7466 | 0.3908 | 0.8383 | 0.9720 | 0.8168 | 0.9957 | | 0.2681 | 4020 | 3.5292 | - | - | - | - | - | | 0.2694 | 4040 | 4.7797 | - | - | - | - | - | | 0.2708 | 4060 | 3.7521 | - | - | - | - | - | | 0.2721 | 4080 | 8.4705 | - | - | - | - | - | | 0.2734 | 4100 | 6.3049 | - | - | - | - | - | | 0.2748 | 4120 | 9.0225 | - | - | - | - | - | | 0.2761 | 4140 | 5.3024 | - | - | - | - | - | | 0.2774 | 4160 | 6.7147 | - | - | - | - | - | | 0.2788 | 4180 | 3.6165 | - | - | - | - | - | | 0.2801 | 4200 | 5.4362 | - | - | - | - | - | | 0.2814 | 4220 | 5.0053 | - | - | - | - | - | | 0.2828 | 4240 | 4.4765 | - | - | - | - | - | | 0.2841 | 4260 | 7.4397 | - | - | - | - | - | | 0.2854 | 4280 | 8.1379 | - | - | - | - | - | | 0.2868 | 4300 | 4.0294 | - | - | - | - | - | | 0.2881 | 4320 | 7.7331 | - | - | - | - | - | | 0.2894 | 4340 | 6.7168 | - | - | - | - | - | | 0.2908 | 4360 | 4.9712 | - | - | - | - | - | | 0.2921 | 4380 | 7.0470 | - | - | - | - | - | | 0.2934 | 4400 | 5.4519 | - | - | - | - | - | | 0.2948 | 4420 | 5.1127 | - | - | - | - | - | | 0.2961 | 4440 | 5.5413 | - | - | - | - | - | | 0.2974 | 4460 | 6.9158 | - | - | - | - | - | | 0.2988 | 4480 | 9.3612 | - | - | - | - | - | | 0.3001 | 4500 | 3.9316 | - | - | - | - | - | | 0.3014 | 4520 | 8.8873 | - | - | - | - | - | | 0.3028 | 4540 | 8.4135 | - | - | - | - | - | | 0.3041 | 4560 | 5.9434 | - | - | - | - | - | | 0.3054 | 4580 | 4.9908 | - | - | - | - | - | | 0.3068 | 4600 | 5.7577 | - | - | - | - | - | | 0.3081 | 4620 | 5.5354 | - | - | - | - | - | | 0.3094 | 4640 | 5.2260 | - | - | - | - | - | | 0.3108 | 4660 | 3.1466 | - | - | - | - | - | | 0.3121 | 4680 | 5.4136 | - | - | - | - | - | | 0.3134 | 4700 | 7.9472 | - | - | - | - | - | | 0.3148 | 4720 | 5.4852 | - | - | - | - | - | | 0.3161 | 4740 | 5.2088 | - | - | - | - | - | | 0.3174 | 4760 | 6.6084 | - | - | - | - | - | | 0.3188 | 4780 | 8.8867 | - | - | - | - | - | | 0.3201 | 4800 | 3.0792 | - | - | - | - | - | | 0.3214 | 4820 | 6.4958 | - | - | - | - | - | | 0.3228 | 4840 | 5.1613 | - | - | - | - | - | | 0.3241 | 4860 | 8.5060 | - | - | - | - | - | | 0.3254 | 4880 | 5.8264 | - | - | - | - | - | | 0.3268 | 4900 | 6.8448 | - | - | - | - | - | | 0.3281 | 4920 | 4.0217 | - | - | - | - | - | | 0.3294 | 4940 | 7.4370 | - | - | - | - | - | | 0.3308 | 4960 | 4.7086 | - | - | - | - | - | | 0.3321 | 4980 | 4.4857 | - | - | - | - | - | | 0.3334 | 5000 | 4.9014 | 0.4299 | 0.8338 | 0.9685 | 0.8120 | 0.9966 | | 0.3348 | 5020 | 5.1045 | - | - | - | - | - | | 0.3361 | 5040 | 5.4851 | - | - | - | - | - | | 0.3374 | 5060 | 7.9328 | - | - | - | - | - | | 0.3388 | 5080 | 7.3919 | - | - | - | - | - | | 0.3401 | 5100 | 6.8948 | - | - | - | - | - | | 0.3414 | 5120 | 2.8676 | - | - | - | - | - | | 0.3428 | 5140 | 7.3618 | - | - | - | - | - | | 0.3441 | 5160 | 8.4923 | - | - | - | - | - | | 0.3454 | 5180 | 2.9511 | - | - | - | - | - | | 0.3468 | 5200 | 5.8006 | - | - | - | - | - | | 0.3481 | 5220 | 6.2926 | - | - | - | - | - | | 0.3494 | 5240 | 5.4818 | - | - | - | - | - | | 0.3508 | 5260 | 4.4191 | - | - | - | - | - | | 0.3521 | 5280 | 4.8145 | - | - | - | - | - | | 0.3535 | 5300 | 6.1186 | - | - | - | - | - | | 0.3548 | 5320 | 4.5043 | - | - | - | - | - | | 0.3561 | 5340 | 4.1325 | - | - | - | - | - | | 0.3575 | 5360 | 6.5523 | - | - | - | - | - | | 0.3588 | 5380 | 5.0753 | - | - | - | - | - | | 0.3601 | 5400 | 5.2255 | - | - | - | - | - | | 0.3615 | 5420 | 6.5332 | - | - | - | - | - | | 0.3628 | 5440 | 7.0140 | - | - | - | - | - | | 0.3641 | 5460 | 4.4602 | - | - | - | - | - | | 0.3655 | 5480 | 4.8382 | - | - | - | - | - | | 0.3668 | 5500 | 3.8816 | - | - | - | - | - | | 0.3681 | 5520 | 6.8198 | - | - | - | - | - | | 0.3695 | 5540 | 3.6584 | - | - | - | - | - | | 0.3708 | 5560 | 7.0799 | - | - | - | - | - | | 0.3721 | 5580 | 4.3642 | - | - | - | - | - | | 0.3735 | 5600 | 6.8936 | - | - | - | - | - | | 0.3748 | 5620 | 8.5632 | - | - | - | - | - | | 0.3761 | 5640 | 5.6111 | - | - | - | - | - | | 0.3775 | 5660 | 5.0921 | - | - | - | - | - | | 0.3788 | 5680 | 4.4911 | - | - | - | - | - | | 0.3801 | 5700 | 6.0514 | - | - | - | - | - | | 0.3815 | 5720 | 3.2652 | - | - | - | - | - | | 0.3828 | 5740 | 4.1297 | - | - | - | - | - | | 0.3841 | 5760 | 4.3483 | - | - | - | - | - | | 0.3855 | 5780 | 3.6795 | - | - | - | - | - | | 0.3868 | 5800 | 3.9414 | - | - | - | - | - | | 0.3881 | 5820 | 3.5606 | - | - | - | - | - | | 0.3895 | 5840 | 5.2454 | - | - | - | - | - | | 0.3908 | 5860 | 5.5300 | - | - | - | - | - | | 0.3921 | 5880 | 5.1099 | - | - | - | - | - | | 0.3935 | 5900 | 5.3008 | - | - | - | - | - | | 0.3948 | 5920 | 5.8257 | - | - | - | - | - | | 0.3961 | 5940 | 4.4411 | - | - | - | - | - | | 0.3975 | 5960 | 8.3451 | - | - | - | - | - | | 0.3988 | 5980 | 5.9260 | - | - | - | - | - | | 0.4001 | 6000 | 6.6488 | 0.3891 | 0.8444 | 0.9715 | 0.8154 | 0.9966 | | 0.4015 | 6020 | 7.1700 | - | - | - | - | - | | 0.4028 | 6040 | 4.0715 | - | - | - | - | - | | 0.4041 | 6060 | 4.7100 | - | - | - | - | - | | 0.4055 | 6080 | 5.2122 | - | - | - | - | - | | 0.4068 | 6100 | 4.4810 | - | - | - | - | - | | 0.4081 | 6120 | 5.3527 | - | - | - | - | - | | 0.4095 | 6140 | 5.5201 | - | - | - | - | - | | 0.4108 | 6160 | 3.9035 | - | - | - | - | - | | 0.4121 | 6180 | 6.5011 | - | - | - | - | - | | 0.4135 | 6200 | 9.0155 | - | - | - | - | - | | 0.4148 | 6220 | 6.3240 | - | - | - | - | - | | 0.4161 | 6240 | 4.7789 | - | - | - | - | - | | 0.4175 | 6260 | 8.2440 | - | - | - | - | - | | 0.4188 | 6280 | 4.1023 | - | - | - | - | - | | 0.4201 | 6300 | 2.8712 | - | - | - | - | - | | 0.4215 | 6320 | 4.4855 | - | - | - | - | - | | 0.4228 | 6340 | 5.7541 | - | - | - | - | - | | 0.4241 | 6360 | 6.0521 | - | - | - | - | - | | 0.4255 | 6380 | 3.9136 | - | - | - | - | - | | 0.4268 | 6400 | 6.0676 | - | - | - | - | - | | 0.4281 | 6420 | 6.7376 | - | - | - | - | - | | 0.4295 | 6440 | 4.1829 | - | - | - | - | - | | 0.4308 | 6460 | 5.4989 | - | - | - | - | - | | 0.4321 | 6480 | 4.4200 | - | - | - | - | - | | 0.4335 | 6500 | 3.7846 | - | - | - | - | - | | 0.4348 | 6520 | 3.0783 | - | - | - | - | - | | 0.4361 | 6540 | 4.3728 | - | - | - | - | - | | 0.4375 | 6560 | 4.6062 | - | - | - | - | - | | 0.4388 | 6580 | 5.4881 | - | - | - | - | - | | 0.4401 | 6600 | 4.4496 | - | - | - | - | - | | 0.4415 | 6620 | 4.3381 | - | - | - | - | - | | 0.4428 | 6640 | 4.9098 | - | - | - | - | - | | 0.4441 | 6660 | 3.9536 | - | - | - | - | - | | 0.4455 | 6680 | 3.8082 | - | - | - | - | - | | 0.4468 | 6700 | 4.8445 | - | - | - | - | - | | 0.4481 | 6720 | 5.9833 | - | - | - | - | - | | 0.4495 | 6740 | 5.2299 | - | - | - | - | - | | 0.4508 | 6760 | 4.5810 | - | - | - | - | - | | 0.4522 | 6780 | 2.6412 | - | - | - | - | - | | 0.4535 | 6800 | 3.6678 | - | - | - | - | - | | 0.4548 | 6820 | 5.2994 | - | - | - | - | - | | 0.4562 | 6840 | 3.7584 | - | - | - | - | - | | 0.4575 | 6860 | 3.2840 | - | - | - | - | - | | 0.4588 | 6880 | 5.6263 | - | - | - | - | - | | 0.4602 | 6900 | 6.1171 | - | - | - | - | - | | 0.4615 | 6920 | 3.7760 | - | - | - | - | - | | 0.4628 | 6940 | 6.5137 | - | - | - | - | - | | 0.4642 | 6960 | 5.1422 | - | - | - | - | - | | 0.4655 | 6980 | 5.8708 | - | - | - | - | - | | 0.4668 | 7000 | 3.9586 | 0.4433 | 0.8431 | 0.9738 | 0.8192 | 0.9966 | | 0.4682 | 7020 | 3.2440 | - | - | - | - | - | | 0.4695 | 7040 | 6.4047 | - | - | - | - | - | | 0.4708 | 7060 | 5.7019 | - | - | - | - | - | | 0.4722 | 7080 | 5.2472 | - | - | - | - | - | | 0.4735 | 7100 | 4.9740 | - | - | - | - | - | | 0.4748 | 7120 | 4.9201 | - | - | - | - | - | | 0.4762 | 7140 | 2.8673 | - | - | - | - | - | | 0.4775 | 7160 | 4.6454 | - | - | - | - | - | | 0.4788 | 7180 | 6.2675 | - | - | - | - | - | | 0.4802 | 7200 | 6.9778 | - | - | - | - | - | | 0.4815 | 7220 | 3.9753 | - | - | - | - | - | | 0.4828 | 7240 | 3.9787 | - | - | - | - | - | | 0.4842 | 7260 | 4.5830 | - | - | - | - | - | | 0.4855 | 7280 | 5.1494 | - | - | - | - | - | | 0.4868 | 7300 | 8.9085 | - | - | - | - | - | | 0.4882 | 7320 | 4.8340 | - | - | - | - | - | | 0.4895 | 7340 | 6.2249 | - | - | - | - | - | | 0.4908 | 7360 | 4.5902 | - | - | - | - | - | | 0.4922 | 7380 | 3.9609 | - | - | - | - | - | | 0.4935 | 7400 | 3.8363 | - | - | - | - | - | | 0.4948 | 7420 | 3.3694 | - | - | - | - | - | | 0.4962 | 7440 | 3.6687 | - | - | - | - | - | | 0.4975 | 7460 | 3.5708 | - | - | - | - | - | | 0.4988 | 7480 | 4.6097 | - | - | - | - | - | | 0.5002 | 7500 | 5.7508 | - | - | - | - | - | | 0.5015 | 7520 | 5.1704 | - | - | - | - | - | | 0.5028 | 7540 | 4.9082 | - | - | - | - | - | | 0.5042 | 7560 | 4.7872 | - | - | - | - | - | | 0.5055 | 7580 | 5.9075 | - | - | - | - | - | | 0.5068 | 7600 | 4.9749 | - | - | - | - | - | | 0.5082 | 7620 | 3.6049 | - | - | - | - | - | | 0.5095 | 7640 | 2.6667 | - | - | - | - | - | | 0.5108 | 7660 | 3.7862 | - | - | - | - | - | | 0.5122 | 7680 | 4.7471 | - | - | - | - | - | | 0.5135 | 7700 | 3.9125 | - | - | - | - | - | | 0.5148 | 7720 | 4.0674 | - | - | - | - | - | | 0.5162 | 7740 | 4.0999 | - | - | - | - | - | | 0.5175 | 7760 | 7.6410 | - | - | - | - | - | | 0.5188 | 7780 | 5.8888 | - | - | - | - | - | | 0.5202 | 7800 | 4.8449 | - | - | - | - | - | | 0.5215 | 7820 | 4.3537 | - | - | - | - | - | | 0.5228 | 7840 | 6.7798 | - | - | - | - | - | | 0.5242 | 7860 | 6.4103 | - | - | - | - | - | | 0.5255 | 7880 | 5.4360 | - | - | - | - | - | | 0.5268 | 7900 | 4.9115 | - | - | - | - | - | | 0.5282 | 7920 | 4.1626 | - | - | - | - | - | | 0.5295 | 7940 | 3.4110 | - | - | - | - | - | | 0.5308 | 7960 | 4.0353 | - | - | - | - | - | | 0.5322 | 7980 | 5.2865 | - | - | - | - | - | | 0.5335 | 8000 | 4.3049 | 0.4210 | 0.8442 | 0.9753 | 0.8182 | 0.9966 | | 0.5348 | 8020 | 7.4578 | - | - | - | - | - | | 0.5362 | 8040 | 4.8315 | - | - | - | - | - | | 0.5375 | 8060 | 5.1880 | - | - | - | - | - | | 0.5388 | 8080 | 5.3663 | - | - | - | - | - | | 0.5402 | 8100 | 3.5750 | - | - | - | - | - | | 0.5415 | 8120 | 4.4513 | - | - | - | - | - | | 0.5428 | 8140 | 4.3287 | - | - | - | - | - | | 0.5442 | 8160 | 7.2906 | - | - | - | - | - | | 0.5455 | 8180 | 5.7539 | - | - | - | - | - | | 0.5468 | 8200 | 6.3535 | - | - | - | - | - | | 0.5482 | 8220 | 5.8198 | - | - | - | - | - | | 0.5495 | 8240 | 4.9457 | - | - | - | - | - | | 0.5509 | 8260 | 3.9417 | - | - | - | - | - | | 0.5522 | 8280 | 5.3046 | - | - | - | - | - | | 0.5535 | 8300 | 3.5458 | - | - | - | - | - | | 0.5549 | 8320 | 4.1732 | - | - | - | - | - | | 0.5562 | 8340 | 4.6701 | - | - | - | - | - | | 0.5575 | 8360 | 3.3065 | - | - | - | - | - | | 0.5589 | 8380 | 5.3814 | - | - | - | - | - | | 0.5602 | 8400 | 4.1746 | - | - | - | - | - | | 0.5615 | 8420 | 6.0922 | - | - | - | - | - | | 0.5629 | 8440 | 3.8219 | - | - | - | - | - | | 0.5642 | 8460 | 3.9472 | - | - | - | - | - | | 0.5655 | 8480 | 5.6744 | - | - | - | - | - | | 0.5669 | 8500 | 4.8904 | - | - | - | - | - | | 0.5682 | 8520 | 6.2628 | - | - | - | - | - | | 0.5695 | 8540 | 5.3459 | - | - | - | - | - | | 0.5709 | 8560 | 3.5382 | - | - | - | - | - | | 0.5722 | 8580 | 4.2404 | - | - | - | - | - | | 0.5735 | 8600 | 3.8724 | - | - | - | - | - | | 0.5749 | 8620 | 4.7506 | - | - | - | - | - | | 0.5762 | 8640 | 5.8131 | - | - | - | - | - | | 0.5775 | 8660 | 3.9024 | - | - | - | - | - | | 0.5789 | 8680 | 3.5592 | - | - | - | - | - | | 0.5802 | 8700 | 6.3385 | - | - | - | - | - | | 0.5815 | 8720 | 4.0887 | - | - | - | - | - | | 0.5829 | 8740 | 3.5683 | - | - | - | - | - | | 0.5842 | 8760 | 4.5557 | - | - | - | - | - | | 0.5855 | 8780 | 5.3914 | - | - | - | - | - | | 0.5869 | 8800 | 4.9274 | - | - | - | - | - | | 0.5882 | 8820 | 4.5787 | - | - | - | - | - | | 0.5895 | 8840 | 4.2034 | - | - | - | - | - | | 0.5909 | 8860 | 4.0100 | - | - | - | - | - | | 0.5922 | 8880 | 3.4822 | - | - | - | - | - | | 0.5935 | 8900 | 5.4237 | - | - | - | - | - | | 0.5949 | 8920 | 5.1492 | - | - | - | - | - | | 0.5962 | 8940 | 3.7134 | - | - | - | - | - | | 0.5975 | 8960 | 3.9043 | - | - | - | - | - | | 0.5989 | 8980 | 5.7530 | - | - | - | - | - | | 0.6002 | 9000 | 3.6922 | 0.3931 | 0.8443 | 0.9722 | 0.8171 | 0.9973 | | 0.6015 | 9020 | 5.7739 | - | - | - | - | - | | 0.6029 | 9040 | 2.4364 | - | - | - | - | - | | 0.6042 | 9060 | 6.2914 | - | - | - | - | - | | 0.6055 | 9080 | 3.1350 | - | - | - | - | - | | 0.6069 | 9100 | 4.7226 | - | - | - | - | - | | 0.6082 | 9120 | 4.7186 | - | - | - | - | - | | 0.6095 | 9140 | 4.4544 | - | - | - | - | - | | 0.6109 | 9160 | 6.1991 | - | - | - | - | - | | 0.6122 | 9180 | 3.2956 | - | - | - | - | - | | 0.6135 | 9200 | 4.3799 | - | - | - | - | - | | 0.6149 | 9220 | 3.1366 | - | - | - | - | - | | 0.6162 | 9240 | 3.8383 | - | - | - | - | - | | 0.6175 | 9260 | 3.1998 | - | - | - | - | - | | 0.6189 | 9280 | 3.3611 | - | - | - | - | - | | 0.6202 | 9300 | 4.2113 | - | - | - | - | - | | 0.6215 | 9320 | 2.8453 | - | - | - | - | - | | 0.6229 | 9340 | 3.5751 | - | - | - | - | - | | 0.6242 | 9360 | 3.9747 | - | - | - | - | - | | 0.6255 | 9380 | 4.5523 | - | - | - | - | - | | 0.6269 | 9400 | 6.0850 | - | - | - | - | - | | 0.6282 | 9420 | 4.8175 | - | - | - | - | - | | 0.6295 | 9440 | 5.2861 | - | - | - | - | - | | 0.6309 | 9460 | 2.9074 | - | - | - | - | - | | 0.6322 | 9480 | 8.7224 | - | - | - | - | - | | 0.6335 | 9500 | 3.2188 | - | - | - | - | - | | 0.6349 | 9520 | 3.2276 | - | - | - | - | - | | 0.6362 | 9540 | 3.7245 | - | - | - | - | - | | 0.6375 | 9560 | 3.9126 | - | - | - | - | - | | 0.6389 | 9580 | 5.3924 | - | - | - | - | - | | 0.6402 | 9600 | 4.5640 | - | - | - | - | - | | 0.6415 | 9620 | 3.6902 | - | - | - | - | - | | 0.6429 | 9640 | 4.9031 | - | - | - | - | - | | 0.6442 | 9660 | 5.9478 | - | - | - | - | - | | 0.6455 | 9680 | 4.2043 | - | - | - | - | - | | 0.6469 | 9700 | 5.0532 | - | - | - | - | - | | 0.6482 | 9720 | 4.7951 | - | - | - | - | - | | 0.6495 | 9740 | 5.3948 | - | - | - | - | - | | 0.6509 | 9760 | 4.6435 | - | - | - | - | - | | 0.6522 | 9780 | 4.1625 | - | - | - | - | - | | 0.6536 | 9800 | 3.0607 | - | - | - | - | - | | 0.6549 | 9820 | 4.0946 | - | - | - | - | - | | 0.6562 | 9840 | 5.3292 | - | - | - | - | - | | 0.6576 | 9860 | 3.5224 | - | - | - | - | - | | 0.6589 | 9880 | 4.2479 | - | - | - | - | - | | 0.6602 | 9900 | 5.3986 | - | - | - | - | - | | 0.6616 | 9920 | 2.5898 | - | - | - | - | - | | 0.6629 | 9940 | 2.7111 | - | - | - | - | - | | 0.6642 | 9960 | 4.1794 | - | - | - | - | - | | 0.6656 | 9980 | 5.1498 | - | - | - | - | - | | 0.6669 | 10000 | 4.3035 | 0.4321 | 0.8443 | 0.9731 | 0.8191 | 0.9966 | | 0.6682 | 10020 | 4.4148 | - | - | - | - | - | | 0.6696 | 10040 | 4.5931 | - | - | - | - | - | | 0.6709 | 10060 | 3.7290 | - | - | - | - | - | | 0.6722 | 10080 | 5.5878 | - | - | - | - | - | | 0.6736 | 10100 | 5.7915 | - | - | - | - | - | | 0.6749 | 10120 | 4.0041 | - | - | - | - | - | | 0.6762 | 10140 | 3.0356 | - | - | - | - | - | | 0.6776 | 10160 | 3.2824 | - | - | - | - | - | | 0.6789 | 10180 | 3.9363 | - | - | - | - | - | | 0.6802 | 10200 | 3.8751 | - | - | - | - | - | | 0.6816 | 10220 | 4.4626 | - | - | - | - | - | | 0.6829 | 10240 | 3.8276 | - | - | - | - | - | | 0.6842 | 10260 | 5.5139 | - | - | - | - | - | | 0.6856 | 10280 | 2.8926 | - | - | - | - | - | | 0.6869 | 10300 | 2.2867 | - | - | - | - | - | | 0.6882 | 10320 | 2.7493 | - | - | - | - | - | | 0.6896 | 10340 | 6.4372 | - | - | - | - | - | | 0.6909 | 10360 | 3.8304 | - | - | - | - | - | | 0.6922 | 10380 | 3.9554 | - | - | - | - | - | | 0.6936 | 10400 | 4.2535 | - | - | - | - | - | | 0.6949 | 10420 | 3.6329 | - | - | - | - | - | | 0.6962 | 10440 | 5.5704 | - | - | - | - | - | | 0.6976 | 10460 | 2.8125 | - | - | - | - | - | | 0.6989 | 10480 | 3.8768 | - | - | - | - | - | | 0.7002 | 10500 | 3.3653 | - | - | - | - | - | | 0.7016 | 10520 | 5.6225 | - | - | - | - | - | | 0.7029 | 10540 | 3.8826 | - | - | - | - | - | | 0.7042 | 10560 | 3.3119 | - | - | - | - | - | | 0.7056 | 10580 | 4.3771 | - | - | - | - | - | | 0.7069 | 10600 | 4.5517 | - | - | - | - | - | | 0.7082 | 10620 | 3.7937 | - | - | - | - | - | | 0.7096 | 10640 | 4.0547 | - | - | - | - | - | | 0.7109 | 10660 | 2.8156 | - | - | - | - | - | | 0.7122 | 10680 | 3.2126 | - | - | - | - | - | | 0.7136 | 10700 | 6.2650 | - | - | - | - | - | | 0.7149 | 10720 | 5.5200 | - | - | - | - | - | | 0.7162 | 10740 | 4.6190 | - | - | - | - | - | | 0.7176 | 10760 | 2.2462 | - | - | - | - | - | | 0.7189 | 10780 | 5.2188 | - | - | - | - | - | | 0.7202 | 10800 | 3.9362 | - | - | - | - | - | | 0.7216 | 10820 | 4.0103 | - | - | - | - | - | | 0.7229 | 10840 | 3.4240 | - | - | - | - | - | | 0.7242 | 10860 | 3.6707 | - | - | - | - | - | | 0.7256 | 10880 | 3.8949 | - | - | - | - | - | | 0.7269 | 10900 | 4.9581 | - | - | - | - | - | | 0.7282 | 10920 | 4.2559 | - | - | - | - | - | | 0.7296 | 10940 | 4.2437 | - | - | - | - | - | | 0.7309 | 10960 | 3.2748 | - | - | - | - | - | | 0.7322 | 10980 | 2.6912 | - | - | - | - | - | | 0.7336 | 11000 | 3.5257 | 0.4341 | 0.8485 | 0.9736 | 0.8207 | 0.9966 | | 0.7349 | 11020 | 4.7788 | - | - | - | - | - | | 0.7362 | 11040 | 4.2644 | - | - | - | - | - | | 0.7376 | 11060 | 4.0031 | - | - | - | - | - | | 0.7389 | 11080 | 4.4732 | - | - | - | - | - | | 0.7402 | 11100 | 3.0695 | - | - | - | - | - | | 0.7416 | 11120 | 4.9871 | - | - | - | - | - | | 0.7429 | 11140 | 5.1136 | - | - | - | - | - | | 0.7442 | 11160 | 3.3539 | - | - | - | - | - | | 0.7456 | 11180 | 2.6370 | - | - | - | - | - | | 0.7469 | 11200 | 3.5989 | - | - | - | - | - | | 0.7482 | 11220 | 3.9715 | - | - | - | - | - | | 0.7496 | 11240 | 4.3641 | - | - | - | - | - | | 0.7509 | 11260 | 5.6113 | - | - | - | - | - | | 0.7523 | 11280 | 4.9732 | - | - | - | - | - | | 0.7536 | 11300 | 4.2985 | - | - | - | - | - | | 0.7549 | 11320 | 2.8445 | - | - | - | - | - | | 0.7563 | 11340 | 6.1513 | - | - | - | - | - | | 0.7576 | 11360 | 4.3741 | - | - | - | - | - | | 0.7589 | 11380 | 4.2146 | - | - | - | - | - | | 0.7603 | 11400 | 5.9873 | - | - | - | - | - | | 0.7616 | 11420 | 3.7111 | - | - | - | - | - | | 0.7629 | 11440 | 3.5862 | - | - | - | - | - | | 0.7643 | 11460 | 1.9331 | - | - | - | - | - | | 0.7656 | 11480 | 2.7840 | - | - | - | - | - | | 0.7669 | 11500 | 4.3980 | - | - | - | - | - | | 0.7683 | 11520 | 5.5729 | - | - | - | - | - | | 0.7696 | 11540 | 3.7191 | - | - | - | - | - | | 0.7709 | 11560 | 2.8286 | - | - | - | - | - | | 0.7723 | 11580 | 4.9746 | - | - | - | - | - | | 0.7736 | 11600 | 3.5342 | - | - | - | - | - | | 0.7749 | 11620 | 3.2437 | - | - | - | - | - | | 0.7763 | 11640 | 4.1261 | - | - | - | - | - | | 0.7776 | 11660 | 2.1411 | - | - | - | - | - | | 0.7789 | 11680 | 3.7166 | - | - | - | - | - | | 0.7803 | 11700 | 6.7293 | - | - | - | - | - | | 0.7816 | 11720 | 5.6787 | - | - | - | - | - | | 0.7829 | 11740 | 3.4561 | - | - | - | - | - | | 0.7843 | 11760 | 4.6606 | - | - | - | - | - | | 0.7856 | 11780 | 4.0006 | - | - | - | - | - | | 0.7869 | 11800 | 5.0180 | - | - | - | - | - | | 0.7883 | 11820 | 4.2463 | - | - | - | - | - | | 0.7896 | 11840 | 3.4647 | - | - | - | - | - | | 0.7909 | 11860 | 2.9818 | - | - | - | - | - | | 0.7923 | 11880 | 3.4373 | - | - | - | - | - | | 0.7936 | 11900 | 3.4918 | - | - | - | - | - | | 0.7949 | 11920 | 2.8543 | - | - | - | - | - | | 0.7963 | 11940 | 3.3723 | - | - | - | - | - | | 0.7976 | 11960 | 4.8024 | - | - | - | - | - | | 0.7989 | 11980 | 3.2667 | - | - | - | - | - | | 0.8003 | 12000 | 4.5580 | 0.4285 | 0.8481 | 0.9726 | 0.8200 | 0.9973 | | 0.8016 | 12020 | 4.2072 | - | - | - | - | - | | 0.8029 | 12040 | 3.6664 | - | - | - | - | - | | 0.8043 | 12060 | 4.4174 | - | - | - | - | - | | 0.8056 | 12080 | 3.4021 | - | - | - | - | - | | 0.8069 | 12100 | 3.7165 | - | - | - | - | - | | 0.8083 | 12120 | 3.3214 | - | - | - | - | - | | 0.8096 | 12140 | 6.2474 | - | - | - | - | - | | 0.8109 | 12160 | 3.4834 | - | - | - | - | - | | 0.8123 | 12180 | 5.1420 | - | - | - | - | - | | 0.8136 | 12200 | 4.7207 | - | - | - | - | - | | 0.8149 | 12220 | 4.3758 | - | - | - | - | - | | 0.8163 | 12240 | 3.2953 | - | - | - | - | - | | 0.8176 | 12260 | 4.1440 | - | - | - | - | - | | 0.8189 | 12280 | 3.8383 | - | - | - | - | - | | 0.8203 | 12300 | 2.8929 | - | - | - | - | - | | 0.8216 | 12320 | 3.3049 | - | - | - | - | - | | 0.8229 | 12340 | 2.6015 | - | - | - | - | - | | 0.8243 | 12360 | 4.1616 | - | - | - | - | - | | 0.8256 | 12380 | 5.5807 | - | - | - | - | - | | 0.8269 | 12400 | 2.6568 | - | - | - | - | - | | 0.8283 | 12420 | 4.4431 | - | - | - | - | - | | 0.8296 | 12440 | 2.6273 | - | - | - | - | - | | 0.8309 | 12460 | 2.6690 | - | - | - | - | - | | 0.8323 | 12480 | 2.9382 | - | - | - | - | - | | 0.8336 | 12500 | 2.8340 | - | - | - | - | - | | 0.8349 | 12520 | 2.8091 | - | - | - | - | - | | 0.8363 | 12540 | 4.2189 | - | - | - | - | - | | 0.8376 | 12560 | 1.9889 | - | - | - | - | - | | 0.8389 | 12580 | 3.1009 | - | - | - | - | - | | 0.8403 | 12600 | 4.4863 | - | - | - | - | - | | 0.8416 | 12620 | 3.6215 | - | - | - | - | - | | 0.8429 | 12640 | 3.2751 | - | - | - | - | - | | 0.8443 | 12660 | 4.6643 | - | - | - | - | - | | 0.8456 | 12680 | 4.0967 | - | - | - | - | - | | 0.8469 | 12700 | 5.4820 | - | - | - | - | - | | 0.8483 | 12720 | 4.6987 | - | - | - | - | - | | 0.8496 | 12740 | 2.1754 | - | - | - | - | - | | 0.8510 | 12760 | 3.0651 | - | - | - | - | - | | 0.8523 | 12780 | 2.1466 | - | - | - | - | - | | 0.8536 | 12800 | 4.8069 | - | - | - | - | - | | 0.8550 | 12820 | 2.7962 | - | - | - | - | - | | 0.8563 | 12840 | 4.5005 | - | - | - | - | - | | 0.8576 | 12860 | 3.0372 | - | - | - | - | - | | 0.8590 | 12880 | 3.8090 | - | - | - | - | - | | 0.8603 | 12900 | 3.1019 | - | - | - | - | - | | 0.8616 | 12920 | 4.3830 | - | - | - | - | - | | 0.8630 | 12940 | 3.1346 | - | - | - | - | - | | 0.8643 | 12960 | 3.3881 | - | - | - | - | - | | 0.8656 | 12980 | 4.4395 | - | - | - | - | - | | 0.8670 | 13000 | 3.1627 | 0.4403 | 0.8490 | 0.9744 | 0.8204 | 0.9966 | | 0.8683 | 13020 | 4.0799 | - | - | - | - | - | | 0.8696 | 13040 | 5.1023 | - | - | - | - | - | | 0.8710 | 13060 | 3.0047 | - | - | - | - | - | | 0.8723 | 13080 | 3.6849 | - | - | - | - | - | | 0.8736 | 13100 | 3.9929 | - | - | - | - | - | | 0.8750 | 13120 | 1.8333 | - | - | - | - | - | | 0.8763 | 13140 | 4.4330 | - | - | - | - | - | | 0.8776 | 13160 | 3.3347 | - | - | - | - | - | | 0.8790 | 13180 | 5.5063 | - | - | - | - | - | | 0.8803 | 13200 | 2.9587 | - | - | - | - | - | | 0.8816 | 13220 | 5.0168 | - | - | - | - | - | | 0.8830 | 13240 | 2.2391 | - | - | - | - | - | | 0.8843 | 13260 | 1.7855 | - | - | - | - | - | | 0.8856 | 13280 | 5.3029 | - | - | - | - | - | | 0.8870 | 13300 | 3.1384 | - | - | - | - | - | | 0.8883 | 13320 | 3.4431 | - | - | - | - | - | | 0.8896 | 13340 | 3.0514 | - | - | - | - | - | | 0.8910 | 13360 | 3.8925 | - | - | - | - | - | | 0.8923 | 13380 | 3.6696 | - | - | - | - | - | | 0.8936 | 13400 | 3.2740 | - | - | - | - | - | | 0.8950 | 13420 | 3.8180 | - | - | - | - | - | | 0.8963 | 13440 | 3.2164 | - | - | - | - | - | | 0.8976 | 13460 | 3.4232 | - | - | - | - | - | | 0.8990 | 13480 | 3.2443 | - | - | - | - | - | | 0.9003 | 13500 | 3.0520 | - | - | - | - | - | | 0.9016 | 13520 | 3.4413 | - | - | - | - | - | | 0.9030 | 13540 | 2.7350 | - | - | - | - | - | | 0.9043 | 13560 | 3.7889 | - | - | - | - | - | | 0.9056 | 13580 | 3.1439 | - | - | - | - | - | | 0.9070 | 13600 | 4.0631 | - | - | - | - | - | | 0.9083 | 13620 | 4.4355 | - | - | - | - | - | | 0.9096 | 13640 | 3.4632 | - | - | - | - | - | | 0.9110 | 13660 | 2.8877 | - | - | - | - | - | | 0.9123 | 13680 | 4.2510 | - | - | - | - | - | | 0.9136 | 13700 | 3.6211 | - | - | - | - | - | | 0.9150 | 13720 | 4.5053 | - | - | - | - | - | | 0.9163 | 13740 | 2.5289 | - | - | - | - | - | | 0.9176 | 13760 | 3.0303 | - | - | - | - | - | | 0.9190 | 13780 | 4.9230 | - | - | - | - | - | | 0.9203 | 13800 | 2.3040 | - | - | - | - | - | | 0.9216 | 13820 | 3.6462 | - | - | - | - | - | | 0.9230 | 13840 | 3.9945 | - | - | - | - | - | | 0.9243 | 13860 | 3.4674 | - | - | - | - | - | | 0.9256 | 13880 | 3.1422 | - | - | - | - | - | | 0.9270 | 13900 | 4.2355 | - | - | - | - | - | | 0.9283 | 13920 | 4.1676 | - | - | - | - | - | | 0.9296 | 13940 | 3.1291 | - | - | - | - | - | | 0.9310 | 13960 | 3.6511 | - | - | - | - | - | | 0.9323 | 13980 | 3.8153 | - | - | - | - | - | | 0.9336 | 14000 | 3.5638 | 0.4326 | 0.8489 | 0.9740 | 0.8215 | 0.9966 | | 0.9350 | 14020 | 2.8689 | - | - | - | - | - | | 0.9363 | 14040 | 2.4443 | - | - | - | - | - | | 0.9376 | 14060 | 2.3582 | - | - | - | - | - | | 0.9390 | 14080 | 2.6332 | - | - | - | - | - | | 0.9403 | 14100 | 2.1560 | - | - | - | - | - | | 0.9416 | 14120 | 2.2729 | - | - | - | - | - | | 0.9430 | 14140 | 3.4988 | - | - | - | - | - | | 0.9443 | 14160 | 3.7047 | - | - | - | - | - | | 0.9456 | 14180 | 2.8180 | - | - | - | - | - | | 0.9470 | 14200 | 2.6522 | - | - | - | - | - | | 0.9483 | 14220 | 3.6647 | - | - | - | - | - | | 0.9496 | 14240 | 3.2889 | - | - | - | - | - | | 0.9510 | 14260 | 5.0663 | - | - | - | - | - | | 0.9523 | 14280 | 2.9749 | - | - | - | - | - | | 0.9537 | 14300 | 3.3865 | - | - | - | - | - | | 0.9550 | 14320 | 3.8215 | - | - | - | - | - | | 0.9563 | 14340 | 2.6195 | - | - | - | - | - | | 0.9577 | 14360 | 2.9398 | - | - | - | - | - | | 0.9590 | 14380 | 3.6738 | - | - | - | - | - | | 0.9603 | 14400 | 2.8613 | - | - | - | - | - | | 0.9617 | 14420 | 4.3402 | - | - | - | - | - | | 0.9630 | 14440 | 2.9266 | - | - | - | - | - | | 0.9643 | 14460 | 4.6405 | - | - | - | - | - | | 0.9657 | 14480 | 2.9107 | - | - | - | - | - | | 0.9670 | 14500 | 3.6367 | - | - | - | - | - | | 0.9683 | 14520 | 3.6075 | - | - | - | - | - | | 0.9697 | 14540 | 4.3503 | - | - | - | - | - | | 0.9710 | 14560 | 3.4883 | - | - | - | - | - | | 0.9723 | 14580 | 3.7700 | - | - | - | - | - | | 0.9737 | 14600 | 3.1377 | - | - | - | - | - | | 0.9750 | 14620 | 3.9136 | - | - | - | - | - | | 0.9763 | 14640 | 3.9326 | - | - | - | - | - | | 0.9777 | 14660 | 3.6061 | - | - | - | - | - | | 0.9790 | 14680 | 4.4268 | - | - | - | - | - | | 0.9803 | 14700 | 3.8707 | - | - | - | - | - | | 0.9817 | 14720 | 2.9386 | - | - | - | - | - | | 0.9830 | 14740 | 4.0976 | - | - | - | - | - | | 0.9843 | 14760 | 4.2397 | - | - | - | - | - | | 0.9857 | 14780 | 4.2788 | - | - | - | - | - | | 0.9870 | 14800 | 3.0710 | - | - | - | - | - | | 0.9883 | 14820 | 4.6093 | - | - | - | - | - | | 0.9897 | 14840 | 5.1215 | - | - | - | - | - | | 0.9910 | 14860 | 2.2466 | - | - | - | - | - | | 0.9923 | 14880 | 4.6664 | - | - | - | - | - | | 0.9937 | 14900 | 3.1953 | - | - | - | - | - | | 0.9950 | 14920 | 2.8133 | - | - | - | - | - | | 0.9963 | 14940 | 3.3140 | - | - | - | - | - | | 0.9977 | 14960 | 4.9402 | - | - | - | - | - | | 0.9990 | 14980 | 4.3979 | - | - | - | - | - | | 1.0 | 14995 | - | 0.4253 | 0.8488 | 0.9730 | 0.8214 | 0.9973 |
    ### Training Time - **Training**: 3.2 hours - **Evaluation**: 3.7 minutes - **Total**: 3.3 hours ### Framework Versions - Python: 3.12.3 - Sentence Transformers: 6.2.0 - Transformers: 5.21.1 - PyTorch: 2.15.0+cu132 - Accelerate: 1.15.0 - Datasets: 5.1.0 - Tokenizers: 0.23.3 ## Additional Resources - [Training and Finetuning Embedding Models with Sentence Transformers](https://huggingface.co/blog/train-sentence-transformers): the end-to-end guide for training or finetuning Sentence Transformer models. - [Introduction to Matryoshka Embedding Models](https://huggingface.co/blog/matryoshka): variable-size embeddings that can be truncated with minimal quality loss. - [Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval](https://huggingface.co/blog/embedding-quantization): post-training compression of embedding vectors. - [Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/multimodal-sentence-transformers): use text, image, audio, and video models through the same API. - [Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/train-multimodal-sentence-transformers): train multimodal embedding models, with a Visual Document Retrieval walkthrough. ## Citation ### BibTeX #### Sentence Transformers ```bibtex @inproceedings{reimers-2019-sentence-bert, title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", author = "Reimers, Nils and Gurevych, Iryna", booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing", month = "11", year = "2019", publisher = "Association for Computational Linguistics", url = "https://arxiv.org/abs/1908.10084", } ``` #### MatryoshkaLoss ```bibtex @misc{kusupati2024matryoshka, title={Matryoshka Representation Learning}, author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi}, year={2024}, eprint={2205.13147}, archivePrefix={arXiv}, primaryClass={cs.LG} } ``` #### CachedMultipleNegativesRankingLoss ```bibtex @misc{gao2021scaling, title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup}, author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan}, year={2021}, eprint={2101.06983}, archivePrefix={arXiv}, primaryClass={cs.LG} } ``` #### MultipleNegativesRankingLoss ```bibtex @misc{oord2019representationlearningcontrastivepredictive, title={Representation Learning with Contrastive Predictive Coding}, author={Aaron van den Oord and Yazhe Li and Oriol Vinyals}, year={2019}, eprint={1807.03748}, archivePrefix={arXiv}, primaryClass={cs.LG}, url={https://arxiv.org/abs/1807.03748}, } ```