group_id string | repo_family string | category string | language string | source_id string | query string | positive_text string | negative_text string |
|---|---|---|---|---|---|---|---|
cp-java-18564 | benmfaul/XRTB | tests_regressions | en | commitpackft | [benmfaul/XRTB] (java) Add password auth when configured on RTB | [type=test status=verified commit=bf0b85c1eb files=src/com/xrtb/tests/TestDeadmanSwitch.java]
[benmfaul/XRTB] Add password auth when configured on RTB
File: src/com/xrtb/tests/TestDeadmanSwitch.java
Updated code: package com.xrtb.tests; import static org.junit.Assert.*; import org.junit.Test; import redis.clients.jedis... | [type=failed_attempt status=verified commit=2cbdc5fa72 files=src/com/xrtb/bidder/MimeTypes.java]
[benmfaul/XRTB] Fix the unchecked type and add javadoc
File: src/com/xrtb/bidder/MimeTypes.java
Updated code: package com.xrtb.bidder; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java... |
cf-62600 | codefeedback/java | implementation | en | codefeedback-filtered | You are tasked with implementing a Java class that represents a date in a specific format and provides functionality to manipulate and display the date. The class should be named `DayDate` and should adhere to the following requirements: 1. The class should have a static block that sets the default time zone to UTC for... | [type=implementation status=verified files=snippet.java]
[java] You are tasked with implementing a Java class that represents a date in a specific format
```java import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.TimeZone; public class DayDate { private static final SimpleDateFormat dayDate... | [type=debugging status=verified files=snippet.java]
[java] You are tasked with implementing a custom exception class for a command processing system.
```java public class ErrorResponse { public String error; public ErrorResponse(CommandNoSupportException commandNoSupportException) { this.error = commandNoSupportExcepti... |
cp-markdown-5826 | trapped/sqlite_adapter.cr | requirements_adr | en | commitpackft | [trapped/sqlite_adapter.cr] (markdown) Add travis build status image | [type=adr status=verified commit=d3d222f73e files=README.md]
[trapped/sqlite_adapter.cr] Add travis build status image
File: README.md
Updated code: # sqlite_adapter.cr [](https://travis-ci.org/trapped/sqlite_adapter.cr) SQLite3 adapter f... | [type=implementation status=verified files=snippet.python]
[python] You are tasked with implementing a Python function to decode distance predictions to bound
```python import torch def distance2bbox(points, distance, max_shape=None): """Decode distance prediction to bounding box. Args: - points (Tensor): A tensor of s... |
cf-15307 | codefeedback/cpp | implementation | en | codefeedback-filtered | Write a C++ program that prints out all the prime numbers up to 1,000,000. | [type=implementation status=verified files=snippet.cpp]
[cpp] Write a C++ program that prints out all the prime numbers up to 1,000,000.
Here is a C++ program that prints out all the prime numbers up to 1,000,000: ```cpp #include <iostream> #include <cmath> bool isPrime(int num) { if (num <= 1) { return false; } for (i... | [type=debugging status=verified files=snippet.cpp]
[cpp] You are tasked with implementing a Mean Squared Error (MSE) class for a neural network fra
```cpp #include <vector> #include <cstdint> class MSE { private: double loss; public: // Constructor and other methods are not shown for brevity // Compute the derivative o... |
grp-swe-rebench-linkml__linkml-1714 | linkml/linkml | debugging | en | swe-rebench | [linkml/linkml] rdflib v7 introduces breaking changes When we migrated from v5 to v6 (https://github.com/linkml/linkml/issues/291) we left the `.decode()`s in place; while no longer necessary, they worked in both 5 and 6. v7 seems to drop support for this altogether, which introduces breaking changes in owlgen `Attribu... | [type=implementation status=verified commit=598376ce7f8c files=linkml/generators/docgen.py,linkml/generators/docgen/class.md.jinja2,linkml/generators/docgen/slot.md.jinja2,linkml/generators/rdfgen.py,linkml/generators/shaclgen.py]
[linkml/linkml] Fix for linkml__linkml-1714
diff --git a/linkml/generators/docgen.py b/li... | [type=implementation status=verified commit=596bedfb0b5a files=Makefile,linkml/linter/__init__.py,linkml/linter/cli.py,linkml/linter/config/datamodel/.linkmllint.yaml,linkml/linter/config/datamodel/__init__.py]
[linkml/linkml] Fix for linkml__linkml-912
diff --git a/Makefile b/Makefile index 41d7568d..89481bd1 100644 -... |
cf-28096 | codefeedback/sql | implementation | en | codefeedback-filtered | Write a SQL query to select the top 2 most recently hired employees who have at least 3 years of experience, considering that the 'hire_date' column in the 'employees' table is stored as a string in the format 'yyyy-mm-dd'. | [type=implementation status=verified files=snippet.sql]
[sql] Write a SQL query to select the top 2 most recently hired employees who have at least 3 ye
Assuming that the 'experience' column in the 'employees' table stores the number of years of experience, the SQL query to select the top 2 most recently hired employee... | [type=implementation status=verified files=snippet.sql]
[sql] Formulate a thoughtfully designed structured query language (SQL) algorithm to extract all
Given that I don't have a concrete structure of your database, I will make a few assumptions to create an SQL query. I am presuming that there is a table named `compos... |
cf-135394 | codefeedback/python | implementation | en | codefeedback-filtered | Elucidate on the principles of the recursive programming paradigm in the Python language, provide specific instances demonstrating its frequent application, and draw distinctions by juxtaposing it against solutions utilizing iterative methodologies. | [type=implementation status=verified files=snippet.python]
[python] Elucidate on the principles of the recursive programming paradigm in the Python language,
Recursive programming paradigm in Python: Recursive programming is a paradigm where a problem is divided into smaller and simpler instances of the same problem. ... | [type=implementation status=verified files=snippet.python]
[python] Write a function that takes in a string of HTML code and returns a modified version of the
Here's the implementation for the `format_html` function: ```python def format_html(html_code): # Indentation level for each line of HTML code indent_level = 0 #... |
mg-7158 | magicoder/cpp | implementation | en | magicoder-oss-instruct | You are tasked with implementing a function that calculates the length of a string without using any built-in string length functions. You are given a C code snippet that uses the `strlen` function to calculate the length of a string. Your task is to create a custom function that achieves the same result without using ... | [type=implementation status=verified files=solution.cpp]
[cpp] OSS Solution
```c int customStrlen(const char* str) { int length = 0; while (str[length] != '\0') { length++; } return length; } ``` The `customStrlen` function iterates through the input string `str` character by character until it encounters the null term... | [type=implementation status=verified files=solution.cpp]
[cpp] OSS Solution
```cpp #include <mutex> #include <unordered_map> struct ChunkIt_t { size_t size; bool valid; bool lastModifyValid; bool inUse; }; class ChunkManager { public: ChunkIt_t AllocateChunk(size_t size) { std::lock_guard<std::mutex> lock(mutex_); Chun... |
mg-8882 | magicoder/python | implementation | en | magicoder-oss-instruct | You are working on a natural language processing (NLP) project and need to implement a function to create minibatches of data for training a neural network. The provided code snippet contains part of the implementation for this task. Your task is to complete the implementation of the `minibatches` function. The `miniba... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
```python def minibatches(data, minibatchSize): x_batch, y_batch = [], [] for i in range(0, len(data), minibatchSize): batch = data[i:i + minibatchSize] x_batch.append([item[0] for item in batch]) # Extract input sequences y_batch.append(... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
```python import json import pandas as pd # Read the JSON file data_dir = '/path/to/data/directory/' synsets = json.load(open(data_dir + 'words_synsets.json')) # Create dataframes from noun and verb synsets syn_obj = pd.DataFrame.from_dic... |
cf-88463 | codefeedback/python | implementation | en | codefeedback-filtered | Design a program to find the longest palindromic subsequence from a given string. Furthermore, your program should be able to handle multiple strings as input, return the longest palindromic subsequences individually, and finally return the common longest palindromic subsequence between all strings. If there is no comm... | [type=implementation status=verified files=snippet.python]
[python] Design a program to find the longest palindromic subsequence from a given string. Furtherm
Here is a Python solution using Dynamic Programming: ```Python from functools import lru_cache def find_common_longest_palindromic_subsequences(strings): def fin... | [type=implementation status=verified files=snippet.python]
[python] You are tasked with implementing a dropout layer for a feed-forward neural network. The dr
```python import tensorflow as tf def apply_dropout(input_data, dropout_ratio, training_mode): if training_mode: dropout_mask = tf.random.uniform(tf.shape(input_... |
cf-135347 | codefeedback/python | implementation | en | codefeedback-filtered | Evaluate the nature of the ensuing assertion considering additional constraints like limited resources and multiple simultaneous tasks. The task of project completion necessitates fulfillment by the subsequent dawn, and also requires communication with an international team across different time zones. | [type=implementation status=verified files=snippet.python]
[python] Evaluate the nature of the ensuing assertion considering additional constraints like limit
Solving this problem via programming calls for development of a program that allows efficient project management including streamlined communication and successf... | [type=implementation status=verified files=snippet.python]
[python] Extract all values from the following dictionary, but only include values that are greater
To extract all values from the dictionary that are greater than 5 and less than 9, we can iterate over the dictionary and filter the values that meet the conditi... |
cp-javascript-40801 | pcardune/pyret-ide | implementation | en | commitpackft | [pcardune/pyret-ide] (javascript) Add action types for running code | [type=implementation status=verified commit=458b683a66 files=src/redux/action-types.js]
[pcardune/pyret-ide] Add action types for running code
File: src/redux/action-types.js
Updated code: export const START_LOAD_RUNTIME = 'START_LOAD_RUNTIME'; export const FINISH_LOAD_RUNTIME = 'FINISH_LOAD_RUNTIME'; export const FAIL... | [type=failed_attempt status=verified commit=a5164cf372 files=src/redux/reducer.js]
[pcardune/pyret-ide] Add error state and fail payload
File: src/redux/reducer.js
Updated code: import * as actType from './action-types'; const initialState = { loadingApi: undefined, runtimeApi: undefined, error: undefined }; function l... |
cp-python-6487 | katajakasa/utuputki2 | implementation | en | commitpackft | [katajakasa/utuputki2] (python) Clear all session data from websocket obj | [type=implementation status=verified commit=d3bc714478 files=utuputki-webui/utuputki/handlers/logout.py]
[katajakasa/utuputki2] Clear all session data from websocket obj
File: utuputki-webui/utuputki/handlers/logout.py
Updated code: # -*- coding: utf-8 -*- from handlers.handlerbase import HandlerBase from db import db_... | [type=test status=verified commit=9749cdaaeb files=test_projects/test_module_b/test_feat_4.py]
[martinsmid/pytest-ui] Add empty time tests (for ui testing)
File: test_projects/test_module_b/test_feat_4.py
Updated code: import time import unittest class TestG(unittest.TestCase): def test_feat_1_case_1(self): pass def te... |
grp-swe-gym-modin-project__modin-6404 | modin-project/modin | debugging | en | swe-gym | [modin-project/modin] BUG: Ray to_parquet defaults to Pandas while documentation says supported ### Modin version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest released version of Modin. - [ ] I have confirmed this bug exists on the main ... | [type=implementation status=verified commit=2a6aafed41f7 files=modin/core/io/column_stores/parquet_dispatcher.py]
[modin-project/modin] Fix for modin-project__modin-6404
diff --git a/modin/core/io/column_stores/parquet_dispatcher.py b/modin/core/io/column_stores/parquet_dispatcher.py --- a/modin/core/io/column_stores/p... | [type=implementation status=verified commit=02215b4abbf6 files=modin/pandas/series.py,modin/pandas/series_utils.py]
[modin-project/modin] Fix for modin-project__modin-6057
diff --git a/modin/pandas/series.py b/modin/pandas/series.py --- a/modin/pandas/series.py +++ b/modin/pandas/series.py @@ -39,7 +39,7 @@ from .itera... |
cp-java-2668 | Chavjoh/NgramTagStackoverflow | tests_regressions | en | commitpackft | [Chavjoh/NgramTagStackoverflow] (java) Add a example mapreduce job using stackoverflow class | [type=test status=verified commit=8a097562fe files=src/main/java/ch/hesso/master/StackTest.java]
[Chavjoh/NgramTagStackoverflow] Add a example mapreduce job using stackoverflow class
File: src/main/java/ch/hesso/master/StackTest.java
Updated code: package ch.hesso.master; import org.apache.hadoop.conf.Configuration; im... | [type=failed_attempt status=verified commit=29f0c6c695 files=_posts/2014-6-19-Markdown-Style-Guide.md]
[creamee/creamee.github.io] Fix headers all on the same line
File: _posts/2014-6-19-Markdown-Style-Guide.md
Updated code: --- layout: post title: Markdown Style Guide --- A demo of all styled elements in Jekyll Now. T... |
cp-javascript-1303 | Upplication/majora | implementation | en | commitpackft | [Upplication/majora] (javascript) Change on Controllers Login and Register | [type=implementation status=verified commit=d0bb832647 files=app/src/app.js]
[Upplication/majora] Change on Controllers Login and Register
File: app/src/app.js
Updated code: (function (window, angular) { "use strict"; var upp = angular.module('upp', ['ngRoute']); upp.config(['$routeProvider', function ($routeProvider) ... | [type=test status=verified commit=eadc204176 files=app/tests/protractor.conf.js]
[Upplication/majora] Add glob for protractor specs
File: app/tests/protractor.conf.js
Updated code: 'use strict'; exports.config = { jasmineNodeOpts: { isVerbose: true, showColors: true, defaultTimeoutInterval: 30000 }, specs: [ 'e2e/**/*.... |
cf-62973 | codefeedback/python | implementation | en | codefeedback-filtered | You are tasked with creating a program to analyze daily stock market data using box plots. A box plot is a graphical representation of the distribution of a dataset, showing the median, quartiles, and potential outliers. Your program should read in daily stock data, calculate the necessary statistics, and generate a bo... | [type=implementation status=verified files=snippet.python]
[python] You are tasked with creating a program to analyze daily stock market data using box plots.
```python import matplotlib.pyplot as plt import pandas as pd # Read daily stock data from file data = pd.read_csv('stock_data.txt', header=None, names=['Closing... | [type=implementation status=verified files=snippet.python]
[python] You are given a Python script that reads integers from a file and processes them in a slid
```python SLIDE_WINDOWS = 3 THRESHOLD = 10 f = open("input.txt", "r") window = [] for i in range(SLIDE_WINDOWS): window.append(int(f.readline())) count = 0 for c... |
cp-kotlin-1942 | elpassion/mainframer-intellij-plugin | implementation | en | commitpackft | [elpassion/mainframer-intellij-plugin] (kotlin) Replace negated all with none | [type=implementation status=verified commit=b84f83c99c files=src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTask.kt]
[elpassion/mainframer-intellij-plugin] Replace negated all with none
File: src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTask.kt
Updated code: package com.elpassion.intelijidea.tas... | [type=test status=verified commit=95e996ce27 files=src/test/kotlin/com/elpassion/intelijidea/common/MFCommandLineTest.kt]
[elpassion/mainframer-intellij-plugin] Add command line factory for test purpose
File: src/test/kotlin/com/elpassion/intelijidea/common/MFCommandLineTest.kt
Updated code: package com.elpassion.intel... |
cp-javascript-14580 | jhass/carc.in | implementation | en | commitpackft | [jhass/carc.in] (javascript) Stabilize code rerendering on page changes | [type=implementation status=verified commit=171c35e0e1 files=frontend/app/components/source-code.js]
[jhass/carc.in] Stabilize code rerendering on page changes
File: frontend/app/components/source-code.js
Updated code: import Ember from "ember"; var LanguageMap = { "crystal": "ruby", "gcc": "c++" }; export default Embe... | [type=implementation status=verified commit=cba57c3ab3 files=frontend/app/components/source-code.js]
[jhass/carc.in] Enable line numbers on result view
File: frontend/app/components/source-code.js
Updated code: var LanguageMap = { "crystal": "ruby", "gcc": "c++" }; export default Ember.Component.extend({ highlightLangu... |
mg-49407 | magicoder/python | implementation | en | magicoder-oss-instruct | You are tasked with implementing a Gaussian Mixture Model (GMM) using the `viDKL` algorithm to fit and predict on a given dataset. The `viDKL` function takes in the dimensionality of the input data and returns a GMM model. The `fit_predict` method of the GMM model fits the model to the training data and predicts the cl... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
```python from sklearn.mixture import GaussianMixture import numpy as np def viDKL(dim): # Define and return a Gaussian Mixture Model with 3 components return GaussianMixture(n_components=3, covariance_type='full', random_state=42) def ge... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
```python from faker import Faker fake = Faker() def sanitize_email(value): return fake.email() def sanitize_email_if_exist(value): if value: return sanitize_email(value) else: return None ``` In the solution, we use the `faker` library t... |
cp-python-51339 | moqada/django-simple-spam-blocker | debugging | en | commitpackft | [moqada/django-simple-spam-blocker] (python) Fix syntax error for python 2.5 | [type=failed_attempt status=verified commit=90f80bf6dd files=simplespamblocker/forms.py]
[moqada/django-simple-spam-blocker] Fix syntax error for python 2.5
File: simplespamblocker/forms.py
Updated code: # -*- coding: utf-8 -*- import re from django import forms class ValidRegexField(forms.CharField): def clean(self, v... | [type=implementation status=verified commit=315aedbfff files=oopconcepts.py]
[cunctat0r/pythonstudy] Create classroom and some encapsulation
File: oopconcepts.py
Updated code: class Classroom: def __init__(self): self._people = [] def add_person(self, person): self._people.append(person) def remove_person(self, person)... |
cp-java-10038 | chriswalker/DashTube | implementation | en | commitpackft | [chriswalker/DashTube] (java) Change ID to String (easier for comparisons) | [type=implementation status=verified commit=d4cd731ec2 files=DashTube/src/main/java/com/taw/dashtube/model/Line.java]
[chriswalker/DashTube] Change ID to String (easier for comparisons)
File: DashTube/src/main/java/com/taw/dashtube/model/Line.java
Updated code: /* * Copyright 2013 That Amazing Web Ltd. * * Licensed und... | [type=implementation status=verified commit=db81003245 files=DashTube/src/main/java/com/taw/dashtube/AboutDialogFragment.java]
[chriswalker/DashTube] Create fragment for About dialog
File: DashTube/src/main/java/com/taw/dashtube/AboutDialogFragment.java
Updated code: /* * Copyright 2013 That Amazing Web Ltd. * * Licens... |
cf-131527 | codefeedback/python | implementation | en | codefeedback-filtered | The task is titled: Identifying the Weekday from a Date and Calculating the Number of Days Until the Next Same Weekday. The task requires you to determine the specific day of the week that corresponds to a given date and calculate the number of days until the next occurrence of the same weekday. The date is provided as... | [type=implementation status=verified files=snippet.python]
[python] The task is titled: Identifying the Weekday from a Date and Calculating the Number of Days
Here is a Python solution using the `datetime` module: ```python import datetime def weekday_from_date(day, month, year): # Create a datetime object from day, mo... | [type=debugging status=verified files=snippet.python]
[python] Write a code to generate the factorial of a given integer. In addition, your program shoul
You didn't specify which language to program this in, so I will use Python. Here is a simple function that calculates the factorial of a single number: ```python def ... |
cp-javascript-36208 | Creatiwity/gatsby-plugin-favicon | debugging | en | commitpackft | [Creatiwity/gatsby-plugin-favicon] (javascript) Use prefix parameter to set prefixPath | [type=failed_attempt status=verified commit=63f57fc147 files=gatsby-node.js]
[Creatiwity/gatsby-plugin-favicon] Use prefix parameter to set prefixPath
File: gatsby-node.js
Updated code: const FaviconsWebpackPlugin = require('favicons-webpack-plugin'); module.exports.onCreateWebpackConfig = ({ actions, stage, getConfig ... | [type=adr status=verified commit=37b42c64d9 files=README.md]
[Creatiwity/gatsby-plugin-favicon] Add save option on npm for backward compatibility
File: README.md
Updated code: # gatsby-plugin-favicon Generates all favicons for Web, Android, iOS, ... ## Install `yarn add gatsby-plugin-favicon` or `npm install --save gat... |
cp-shell-3033 | eawsy/aws-lambda-go-shim | debugging | en | commitpackft | [eawsy/aws-lambda-go-shim] (shell) Fix invalid concurrent builds bug | [type=failed_attempt status=verified commit=b78ea43c4c files=src/pack.bash]
[eawsy/aws-lambda-go-shim] Fix invalid concurrent builds bug
File: src/pack.bash
Updated code: #!/usr/bin/env bash # # Copyright 2017 Alsanium, SAS. or its affiliates. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
```python class Person: def __init__(self, nome, endereco, telefone): self.nome = str(nome) self._endereco = str(endereco) self.__telefone = str(telefone) def imprimeNome(self): print(f"VocΓͺ pode chamar essa pessoa de {self.nome}.") def _... |
cp-markdown-49121 | tyrasd/osm-tile-access-log-viewer | requirements_adr | en | commitpackft | [tyrasd/osm-tile-access-log-viewer] (markdown) Add rudimentary readme with some see-also's | [type=adr status=verified commit=facbe3a0a2 files=README.md]
[tyrasd/osm-tile-access-log-viewer] Add rudimentary readme with some see-also's
File: README.md
Updated code: osm-tile-access-log-viewer ========================== Visualizes tile logs from [planet.osm.org/tile_logs](https://planet.openstreetmap.org/tile_logs... | [type=implementation status=verified commit=9746f8dbb7f5 files=gspread/spreadsheet.py]
[burnash/gspread] Fix for burnash__gspread-1269
diff --git a/gspread/spreadsheet.py b/gspread/spreadsheet.py index 4d95967..ad3ceb7 100644 --- a/gspread/spreadsheet.py +++ b/gspread/spreadsheet.py @@ -7,6 +7,7 @@ This module contains... |
mg-56858 | magicoder/swift | implementation | en | magicoder-oss-instruct | You are tasked with implementing a custom error handling system in Swift. Your goal is to create a protocol and an enumeration to represent different types of errors and their associated error codes. Additionally, you need to define a function that throws these custom errors based on specific conditions. Create a proto... | [type=implementation status=verified files=solution.swift]
[swift] OSS Solution
```swift import Foundation protocol CustomError { var code: ErrorCode { get } } enum FileError: Error, CustomError { case fileNotFound case permissionDenied case fileCorrupted var code: ErrorCode { switch self { case .fileNotFound: return 4... | [type=implementation status=verified files=solution.swift]
[swift] OSS Solution
```swift /** A class to manage book information. */ class Book { public var authors: [String]? /** The publication date in the format ISO 8601. */ public var publicationDate: String? /** Adds an author to the book. - Parameter author: The n... |
cp-markdown-41963 | WillowChat/Kale | requirements_adr | en | commitpackft | [WillowChat/Kale] (markdown) Add goals for channel and user abstraction | [type=adr status=verified commit=6574e951c8 files=README.md]
[WillowChat/Kale] Add goals for channel and user abstraction
File: README.md
Updated code: # Kale Kotlin IRC message parsing, serialising and notifying. Provides useful abstractions with the intention of splitting message parsing and IRC state management. Wri... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
```python from yourapp.serializers import OrderDetailSerializer # Import the appropriate serializer class OrderDetailManager: def get_order_details(self): """ Retrieve all order details from a database. Returns: list: A list of order deta... |
cp-python-9829 | SuyashD95/python-assignments | implementation | en | commitpackft | [SuyashD95/python-assignments] (python) Add the answer to the sixth question of Assignment 3 | [type=implementation status=verified commit=a635a8d58e files=countVowels.py]
[SuyashD95/python-assignments] Add the answer to the sixth question of Assignment 3
File: countVowels.py
Updated code: """ Q6- Write a program that counts up the number of vowels contained in the string s. Valid vowels are: 'a', 'e', 'i', 'o',... | [type=implementation status=verified commit=1999515136 files=odd.py]
[SuyashD95/python-assignments] Add the answer to the fourth question of Assignment 3
File: odd.py
Updated code: def odd( number ): return number % 2 == 1 number = int( input( "Enter a number: ") ) print( "Is the number " + str( number ) + " odd? Answe... |
cp-python-5462 | RuddockHouse/RuddockWebsite | implementation | en | commitpackft | [RuddockHouse/RuddockWebsite] (python) Set hash rounds back to 100000 | [type=implementation status=verified commit=f2071eb578 files=constants.py]
[RuddockHouse/RuddockWebsite] Set hash rounds back to 100000
File: constants.py
Updated code: # Store various constants here # Maximum file upload size (in bytes). MAX_CONTENT_LENGTH = 1 * 1024 * 1024 * 1024 # Authentication constants PWD_HASH_A... | [type=failed_attempt status=verified commit=6d2d908879 files=decorators.py]
[RuddockHouse/RuddockWebsite] Fix typo in login_required decorator
File: decorators.py
Updated code: from functools import update_wrapper from flask import session, redirect, flash import auth def login_required(permission=None): ''' Login requ... |
cf-44103 | codefeedback/python | implementation | en | codefeedback-filtered | You are tasked with creating a secure login system for a web application. The given code snippet is a part of the backend logic for user authentication. The code receives a POST request containing the user's email and password. It then queries a database table called `userlist` to check if the provided email and passwo... | [type=implementation status=verified files=snippet.python]
[python] You are tasked with creating a secure login system for a web application. The given code s
```python uid = request.POST.get('email') passwd=[REDACTED:secret]pass') context = {} # Replace <PASSWORD> with the correct variable or expression to compare the... | [type=implementation status=verified files=snippet.python]
[python] You are tasked with creating a script to parse and modify Java options specified in a stri
```python from typing import List def modify_java_options(java_opts: str, modifications: List[str]) -> str: options_dict = {} for opt in java_opts.split(): if op... |
cf-12202 | codefeedback/python | implementation | en | codefeedback-filtered | Write a code to split a list of numbers into two sets with equal sum and an equal number of elements. The sum of the numbers in the list will always be even. The list can contain duplicate numbers. The output should be the two sets of numbers that have equal sums and an equal number of elements. If it is not possible t... | [type=implementation status=verified files=snippet.python]
[python] Write a code to split a list of numbers into two sets with equal sum and an equal number o
Here is a possible solution in Python: ```python def split_list(nums): total_sum = sum(nums) if total_sum % 2 != 0: return [] # if sum is odd, cannot split into ... | [type=implementation status=verified files=snippet.python]
[python] Create a recursive function in Python that identifies and prints all Fibonacci sequence nu
Here is a Python function that uses recursion to generate Fibonacci sequence. It starts from 1 and 1 since these are the first two numbers in the Fibonacci seque... |
cp-python-51429 | mouadino/pyes | tests_regressions | en | commitpackft | [mouadino/pyes] (python) Add a checkRaises method to check that an exception is raised, but also return it for futher tests. | [type=test status=verified commit=6c929f0455 files=pyes/tests/pyestest.py]
[mouadino/pyes] Add a checkRaises method to check that an exception is raised, but also return it for futher tests.
File: pyes/tests/pyestest.py
Updated code: #!/usr/bin/python # -*- coding: utf-8 -*- """ Unit tests for pyes. These require an es... | [type=test status=verified commit=5cf83322d8 files=client/tests/unit/login/route-test.js]
[mblayman/lcp] Add a login model hook test.
File: client/tests/unit/login/route-test.js
Updated code: import Ember from 'ember'; import { moduleFor, test } from 'ember-qunit'; moduleFor('route:login', 'Unit | Route | login', { nee... |
cp-python-49541 | javierjulio/python-koans-completed | tests_regressions | en | commitpackft | [javierjulio/python-koans-completed] (python) Simplify logic conditionals as tests still pass. | [type=test status=verified commit=24ca480987 files=koans/triangle.py]
[javierjulio/python-koans-completed] Simplify logic conditionals as tests still pass.
File: koans/triangle.py
Updated code: #!/usr/bin/env python # -*- coding: utf-8 -*- # Triangle Project Code. # Triangle analyzes the lengths of the sides of a trian... | [type=adr status=verified commit=b5aa907727 files=README.md]
[javierjulio/python-koans-completed] Update with examples from doing lists koan.
File: README.md
Updated code: # python-koans-completed This is my attempt at completing all the tests in Python Koans using Python 3. Since I'm learning Python along the way I ha... |
cp-python-45731 | cf-platform-eng/tile-generator | evolution_deps | en | commitpackft | [cf-platform-eng/tile-generator] (python) Comment out our one breaking example from pipeline | [type=deployment status=verified commit=80a5558080 files=ci/generate_pipeline_yml.py]
[cf-platform-eng/tile-generator] Comment out our one breaking example from pipeline
File: ci/generate_pipeline_yml.py
Updated code: #!/usr/bin/env python import os from jinja2 import Template clusters = ['1-12', '2-0', '2-1', '2-2'] #... | [type=deployment status=verified commit=dacd028351 files=ci/generate_pipeline_yml.py]
[cf-platform-eng/tile-generator] Remove PCF 1.12 from CI.
File: ci/generate_pipeline_yml.py
Updated code: #!/usr/bin/env python import os from jinja2 import Template clusters = ['2_0', '2_1', '2_2'] # Commenting out this as we only ha... |
cp-shell-20799 | elamperti/dotfiles | evolution_deps | en | commitpackft | [elamperti/dotfiles] (shell) Add Steam client bundle :space_invader: | [type=deployment status=verified commit=f8239f7c8b files=bundles/steam/steam.sh]
[elamperti/dotfiles] Add Steam client bundle :space_invader:
File: bundles/steam/steam.sh
Updated code: #!/bin/bash get_name() { echo "Steam"; } get_desc() { echo "Valve's game platform"; } pushd ".." &>/dev/null source "bundle-tools.sh" p... | [type=adr status=verified commit=218d819431 files=docs/doxygen-call-graphs.md]
[elamperti/dotfiles] Add small Doxygen tutorial :chart_with_upwards_trend:
File: docs/doxygen-call-graphs.md
Updated code: # Creating call graphs with Doxygen To create call graphs from your C++ code, install Doxygen and GraphViz. ## Install... |
cp-python-4502 | adanoff/iTunesTUI | debugging | en | commitpackft | [adanoff/iTunesTUI] (python) Add custom exception for track-related errors | [type=failed_attempt status=verified commit=b78c457d52 files=itunes/exceptions.py]
[adanoff/iTunesTUI] Add custom exception for track-related errors
File: itunes/exceptions.py
Updated code: """ exceptions.py Copyright Β© 2015 Alex Danoff. All Rights Reserved. 2015-08-02 This file defines custom exceptions for the iTunes... | [type=test status=verified commit=f6748408ec files=tests/test_itunes.py]
[adanoff/iTunesTUI] Add test case for `parse_value`
File: tests/test_itunes.py
Updated code: """ test_itunes.py Copyright Β© 2015 Alex Danoff. All Rights Reserved. 2015-08-02 This file tests the functionality provided by the itunes module. """ impo... |
cf-4106 | codefeedback/python | implementation | en | codefeedback-filtered | Output the sum of the first n prime numbers using recursion, where n is a positive integer. | [type=implementation status=verified files=snippet.python]
[python] Output the sum of the first n prime numbers using recursion, where n is a positive integer
To solve this problem using recursion, we can define a recursive function that calculates the sum of the first n prime numbers. Here's the code: ```python def is... | [type=implementation status=verified files=snippet.python]
[python] You are given a DataFrame `dataTable` containing numerical and NaN (Not a Number) values.
```python import pandas as pd import numpy as np def fillna_and_transform(dataTable: pd.DataFrame) -> pd.DataFrame: dataTable.fillna(0, inplace=True) # Fill NaN ... |
cp-javascript-28495 | tuvokki/pleague | implementation | en | commitpackft | [tuvokki/pleague] (javascript) Add in progress game to helper data | [type=implementation status=verified commit=f5169fb988 files=client/scripts/controllers/games.controller.js]
[tuvokki/pleague] Add in progress game to helper data
File: client/scripts/controllers/games.controller.js
Updated code: /* global Games */ angular .module('PLeague') .controller('GamesCtrl', GamesCtrl); functio... | [type=test status=verified commit=95f24db73e files=src/test/dutch.spec.ts]
[Jason3S/cspell] Increase the timeout for Dutch
File: src/test/dutch.spec.ts
Updated code: import {expect} from 'chai'; import * as cspell from '../index'; import * as path from 'path'; import * as fsp from 'fs-extra'; import * as dutchDict from... |
cp-javascript-28301 | kutyel/react-css-props | tests_regressions | en | commitpackft | [kutyel/react-css-props] (javascript) Add latest generated build file (es5) | [type=test status=verified commit=6ef63ccd3e files=dist/index.js]
[kutyel/react-css-props] Add latest generated build file (es5)
File: dist/index.js
Updated code: "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (theme, mapper) { return function (props, defaultClas... | [type=implementation status=verified commit=45eb702c2a38 files=doc/source/whatsnew/v2.0.2.rst,pandas/core/series.py]
[pandas-dev/pandas] Fix for pandas-dev__pandas-53189
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 0d6647dc38b3c..8ef733f825d00 100644 --- a/doc/source/whatsnew/v2.0.... |
cp-java-2331 | elexis/elexis-server | debugging | en | commitpackft | [elexis/elexis-server] (java) Fix wrong loading of Userconfig entities, missing class | [type=failed_attempt status=verified commit=1e1488cc13 files=bundles/es.core.connector.elexis.jpa/src/info/elexis/server/core/connector/elexis/jpa/model/annotated/UserconfigId.java]
[elexis/elexis-server] Fix wrong loading of Userconfig entities, missing class
File: bundles/es.core.connector.elexis.jpa/src/info/elexis/... | [type=failed_attempt status=verified commit=68658405c4 files=tests/es.core.rest.test/src/info/elexis/server/core/rest/test/swagger/SwaggerTest.java]
[elexis/elexis-server] Remove HTTPS support, fix swagger test
File: tests/es.core.rest.test/src/info/elexis/server/core/rest/test/swagger/SwaggerTest.java
Updated code: pa... |
mg-38162 | magicoder/typescript | implementation | en | magicoder-oss-instruct | You are tasked with implementing a custom comparator function in JavaScript to sort an array of objects based on a specific property. The custom comparator should be concatenated into the array and used to sort the objects based on the specified property. You are given an array of objects, where each object represents ... | [type=implementation status=verified files=solution.typescript]
[typescript] OSS Solution
```javascript function sortRowsByProperty(rows, property) { const customComparator = (a, b) => { if (a[property] < b[property]) { return -1; } if (a[property] > b[property]) { return 1; } return 0; }; rows.sort(customComparator); ... | [type=implementation status=verified files=solution.typescript]
[typescript] OSS Solution
```javascript function constructObject(Type, TypeBase) { // Assuming TypeBase.skipToken is a valid reference to skip a token const constructedObject = new Type(TypeBase.skipToken); return constructedObject.name(); } ``` In the sol... |
cp-markdown-52368 | laserlemon/simple_oauth | requirements_adr | en | commitpackft | [laserlemon/simple_oauth] (markdown) Add link to Travis CI | [type=adr status=verified commit=19ec44d938 files=README.md]
[laserlemon/simple_oauth] Add link to Travis CI
File: README.md
Updated code: simple_oauth ============ Simply builds and verifies OAuth headers Continuous Integration ---------------------- [](... | [type=deployment status=verified commit=5663895b4e files=.travis.yml]
[laserlemon/simple_oauth] Allow failure on Rubinius 2
File: .travis.yml
Updated code: language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 - 2.1 - rbx-2 - ruby-head matrix: include: - rvm: jruby-18mode env: JRUBY_OPTS="$JRUBY_OPTS --debug" - rvm: jrub... |
cf-49767 | codefeedback/python | implementation | en | codefeedback-filtered | You are given a code snippet from a C header file that defines various constants for different peripherals in a microcontroller. Your task is to write a program that parses this code snippet and extracts the peripheral names and their corresponding values. Write a function `parsePeripheralConstants` that takes a string... | [type=implementation status=verified files=snippet.python]
[python] You are given a code snippet from a C header file that defines various constants for diffe
```python import re def parsePeripheralConstants(code_snippet): peripheral_constants = {} pattern = r'#if defined\((.*?)\)\s+([\w]+)\s+=\s+(.*?),' matches = re.f... | [type=implementation status=verified files=snippet.python]
[python] Classify this short programming code into its data structure category. h = [x for x in ran
List comprehension - a data structure that uses a single expression to generate a list of elements. |
cp-markdown-21076 | burtonageo/rebind | requirements_adr | en | commitpackft | [burtonageo/rebind] (markdown) Trim \'improvements to be made\' header | [type=adr status=verified commit=99bb8831f6 files=Readme.md]
[burtonageo/rebind] Trim \'improvements to be made\' header
File: Readme.md
Updated code: [rebind](https://github.com/burtonageo/rebind) ============================================== A library for binding input keys to actions, and modifying mouse behaviour.... | [type=implementation status=verified commit=8dd53ec44d files=rebind_plugins/src/derive_action.rs]
[burtonageo/rebind] Add file allow annotations for warnings
File: rebind_plugins/src/derive_action.rs
Updated code: #![allow(dead_code, unused_imports, unused_variables)] use syntax::ast; use syntax::ast::{MetaItem, Expr};... |
mg-18092 | magicoder/cpp | implementation | en | magicoder-oss-instruct | You are working on a constrained device that communicates using the CoAP (Constrained Application Protocol) and need to implement a function to handle CoAP options. The CoAP options are encoded in a compact manner, and you need to parse the option details from the received buffer. The code snippet provided is part of a... | [type=implementation status=verified files=solution.cpp]
[cpp] OSS Solution
```c #include <stdio.h> #include <stdint.h> #define kOption1ByteExtension 13 void parseCoapOptions(const uint8_t* buf, size_t bufSize) { size_t offset = 0; while (offset < bufSize) { uint8_t optionLength = buf[offset] & 0x0f; offset += sizeof(u... | [type=implementation status=verified files=solution.cpp]
[cpp] OSS Solution
```cpp void remove(size_t index) { if (index >= size) { throw std::out_of_range("Index out of range"); } for (size_t i = index; i < size - 1; ++i) { elements[i] = elements[i + 1]; } size--; } ``` |
cp-markdown-8350 | djhvscf/stringcaser | requirements_adr | en | commitpackft | [djhvscf/stringcaser] (markdown) Update readme with travis status | [type=adr status=verified commit=258cc71439 files=README.md]
[djhvscf/stringcaser] Update readme with travis status
File: README.md
Updated code: stringcaser =========== [](https://travis-ci.org/djhvscf/stringcaser) StringCaser is a plugin that... | [type=implementation status=verified commit=e602aa1d19f2 files=changes/2761.feature.1.rst,src/zarr/api/synchronous.py,src/zarr/core/array.py]
[zarr-developers/zarr-python] Fix for zarr-developers__zarr-python-2761
diff --git a/changes/2761.feature.1.rst b/changes/2761.feature.1.rst new file mode 100644 index 00000000..... |
cp-javascript-17571 | kriskowal/is-empty-object | tests_regressions | en | commitpackft | [kriskowal/is-empty-object] (javascript) Test more cases for array | [type=test status=verified commit=4d9f6fd67c files=test/index.js]
[kriskowal/is-empty-object] Test more cases for array
File: test/index.js
Updated code: /** * Dependencies */ var test = require('tape') var isEmptyObject = require('../') /** * Tests */ test('isEmptyObject(obj)', function(assert) { assert.equal(isEmptyO... | [type=implementation status=verified commit=a55269774b files=src/rest-api/login/loginAPI.real.ts]
[MasterLemon2016/LeanMood] Handle success and fail login
File: src/rest-api/login/loginAPI.real.ts
Updated code: import { LoginCredentials } from '../../model/login/loginCredentials'; import { LoginResponse } from '../../m... |
cp-python-3444 | tomaszzacharczuk/social-website-django-angular | evolution_deps | en | commitpackft | [tomaszzacharczuk/social-website-django-angular] (python) Set up url for index page | [type=deployment status=verified commit=062e65a161 files=social_website_django_angular/social_website_django_angular/urls.py]
[tomaszzacharczuk/social-website-django-angular] Set up url for index page
File: social_website_django_angular/social_website_django_angular/urls.py
Updated code: """social_website_django_angula... | [type=deployment status=verified commit=c2792efbb7 files=social_website_django_angular/social_website_django_angular/urls.py]
[tomaszzacharczuk/social-website-django-angular] Add login endpoint to URLs
File: social_website_django_angular/social_website_django_angular/urls.py
Updated code: """social_website_django_angul... |
cp-markdown-38230 | emory-lits-labs/annotator-meltdown | requirements_adr | en | commitpackft | [emory-lits-labs/annotator-meltdown] (markdown) Document updates included in 0.3 | [type=adr status=verified commit=ec3c29b9d8 files=CHANGELOG.md]
[emory-lits-labs/annotator-meltdown] Document updates included in 0.3
File: CHANGELOG.md
Updated code: # Changelog ## 0.3 * Trigger new custom events: **annotator-meltdown:meltdown-initialized** when the meltdown editor is initialized for the first time; *... | [type=implementation status=verified files=snippet.cpp]
[cpp] Create a matrix in C++ that stores the prime numbers from 1 to 1000. #Explanation# To incr
#include <iostream> #include <vector> #include <cmath> using namespace std; vector<bool> sieveOfEratosthenes(int n) { vector<bool> prime(n+1, true); prime[0] = false; ... |
cp-shell-7594 | Tyriar/tyr-tools | evolution_deps | en | commitpackft | [Tyriar/tyr-tools] (shell) Make config directory before symlinking | [type=deployment status=verified commit=1ccd3b345a files=modules/vscode/symlink_variants.sh]
[Tyriar/tyr-tools] Make config directory before symlinking
File: modules/vscode/symlink_variants.sh
Updated code: # Symlink config files for all variants of Code to the stable versions if [ -z "$1" ]; then echo "The first argum... | [type=deployment status=verified commit=14d08a4da7 files=modules/vscode/install_extensions.sh]
[Tyriar/tyr-tools] Improve install extensions to support multiple variants
File: modules/vscode/install_extensions.sh
Updated code: # Install extensions for variants supporting --install-extension for VARIANT in "code-alpha" ... |
cp-rust-2491 | dorayakikun/alfred_jira_workflow | implementation | en | commitpackft | [dorayakikun/alfred_jira_workflow] (rust) Change return value to the type SearchResponse | [type=implementation status=verified commit=06a52cab16 files=src/search_command.rs]
[dorayakikun/alfred_jira_workflow] Change return value to the type SearchResponse
File: src/search_command.rs
Updated code: extern crate alfred; use config::Config; use jira_api::SearchIssue; use jira_client; use search_response::Search... | [type=implementation status=verified commit=8776382efe files=src/jira_client.rs]
[dorayakikun/alfred_jira_workflow] Improve structure of JIRA Client
File: src/jira_client.rs
Updated code: extern crate serde; extern crate serde_json; use hyper::Client; use hyper::client::{Body, Response}; use hyper::header::Headers; use... |
cp-python-46403 | IATI/IATI-Website-Tests | tests_regressions | en | commitpackft | [IATI/IATI-Website-Tests] (python) Change test name to be more descriptive | [type=test status=verified commit=2ac5befcfe files=tests/test_iati_standard.py]
[IATI/IATI-Website-Tests] Change test name to be more descriptive
File: tests/test_iati_standard.py
Updated code: from web_test_base import * class TestIATIStandard(WebTestBase): """ TODO: Add tests to assert that: - the number of activitie... | [type=test status=verified commit=43edc7a519 files=tests/test_validator.py]
[IATI/IATI-Website-Tests] Check forms on validator page
File: tests/test_validator.py
Updated code: import pytest from web_test_base import * class TestIATIValidator(WebTestBase): requests_to_load = { 'IATI Validator': { 'url': 'http://validato... |
cp-python-49616 | PrecisionMojo/pm-www | implementation | en | commitpackft | [PrecisionMojo/pm-www] (python) Set the default URL to point to index.html. | [type=implementation status=verified commit=b07f4997b7 files=vsub/urls.py]
[PrecisionMojo/pm-www] Set the default URL to point to index.html.
File: vsub/urls.py
Updated code: from django.conf.urls import patterns, include, url from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlp... | [type=implementation status=verified commit=feb2dd41d4 files=vsub/settings/gunicorn.py]
[PrecisionMojo/pm-www] Add a configuration file for Gunicorn.
File: vsub/settings/gunicorn.py
Updated code: """gunicorn WSGI server configuration.""" # Based on https://github.com/rdegges/django-skel/blob/master/gunicorn.py.ini. imp... |
cf-75275 | codefeedback/python | implementation | en | codefeedback-filtered | Construct a Python function dedicated to pulling information from the Amazon Redshift data warehouse system, and subsequently sanitize it for thorough scrutiny. Presume the data is stored within a table designated as 'marketing_data' and the data extraction command should obtain the statistics exclusively for the immed... | [type=implementation status=verified files=snippet.python]
[python] Construct a Python function dedicated to pulling information from the Amazon Redshift data
To interact with Amazon Redshift using Python, you will need to install the `psycopg2` and `pandas` libraries if you have not done so yet. `psycopg2` is a Postgr... | [type=implementation status=verified files=snippet.python]
[python] You are tasked with creating a caching mechanism for a Flask web application. The applicat
```python import sys from flask import Flask from flask_caching import Cache import requests app = Flask(__name__) # Configure the Flask-Caching cache = Cache(ap... |
cf-71607 | codefeedback/python | implementation | en | codefeedback-filtered | You are tasked with simulating the flight trajectory of a disc golf disc using the given code snippet as a reference. The `Disc` class represents a disc model and its properties, and the `compute_trajectory` method calculates the disc's trajectory over time. Your goal is to create a Python function that takes the neces... | [type=implementation status=verified files=snippet.python]
[python] You are tasked with simulating the flight trajectory of a disc golf disc using the given c
```python import math class Disc: def __init__(self, model, params): self.model = model self.params = params def compute_trajectory(self, time, **kwargs): # Simu... | [type=implementation status=verified files=snippet.python]
[python] I have a group, people, and have converted their heights into z-scores. I separated the gr
Yes, a t-test would work for this situation. A t-test is used to determine whether there is a significant difference between the means of two groups. With a t-te... |
cp-javascript-49004 | DoSomething/gambit | tests_regressions | en | commitpackft | [DoSomething/gambit] (javascript) Load test 170 per process | [type=test status=verified commit=38aa4dc763 files=config/processes.js]
[DoSomething/gambit] Load test 170 per process
File: config/processes.js
Updated code: 'use strict'; const config = {}; /** * Heroku makes it available to help calculate correct concurrency * @see https://devcenter.heroku.com/articles/node-concurre... | [type=test status=verified commit=a6c59edab4 files=config/lib/northstar.js]
[DoSomething/gambit] Add TODO to intercept calls to get credentials for integration tests
File: config/lib/northstar.js
Updated code: 'use strict'; module.exports = { clientOptions: { apiKey:[REDACTED:secret], baseURI: process.env.DS_NORTHSTAR_... |
cp-python-25412 | indygreg/pymake | implementation | en | commitpackft | [indygreg/pymake] (python) Set .PYMAKE so we can distinguish pymake from gmake | [type=implementation status=verified commit=6c4343837f files=pymake/builtins.py]
[indygreg/pymake] Set .PYMAKE so we can distinguish pymake from gmake
File: pymake/builtins.py
Updated code: """ Implicit variables; perhaps in the future this will also include some implicit rules, at least match-anything cancellation rul... | [type=implementation status=verified commit=221ff606f1 files=make.py]
[indygreg/pymake] Disable GC, since we no longer create cycles anywhere.
File: make.py
Updated code: #!/usr/bin/env python """ make.py A drop-in or mostly drop-in replacement for GNU make. """ import sys, os import pymake.command, pymake.process impo... |
cf-55443 | codefeedback/python | implementation | en | codefeedback-filtered | You are tasked with creating a program that analyzes HTML code to identify and count the occurrences of specific HTML tags within a given snippet. Your program should be able to handle various HTML tags and provide the count of each tag present in the input. Write a function `count_html_tags(html_snippet: str, tags: Li... | [type=implementation status=verified files=snippet.python]
[python] You are tasked with creating a program that analyzes HTML code to identify and count the o
```python from typing import List, Dict import re def count_html_tags(html_snippet: str, tags: List[str]) -> Dict[str, int]: tag_counts = {} for tag in tags: pat... | [type=implementation status=verified files=snippet.python]
[python] Create a function that takes an integer n as an argument and returns the sum of all prime
To solve this problem, we will use the Sieve of Eratosthenes algorithm to efficiently find all prime numbers up to n. Then, we will calculate the sum of those pr... |
cf-103431 | codefeedback/java | implementation | en | codefeedback-filtered | Increase the difficulty of this Java programming test which involves writing a function to check if two string fractions are reciprocals of each other, with the given fractions in the format <numerator>/<denominator>. | [type=implementation status=verified files=snippet.java]
[java] Increase the difficulty of this Java programming test which involves writing a function to
Here is a more elaborate and advanced Java problem that involves not only checking if the two fractions are reciprocals of each other but also handles large integers... | [type=implementation status=verified files=snippet.java]
[java] You are tasked with creating a command-based autonomous system for a robot that needs to p
```java public class HomeCommand extends SequentialCommandGroup { public HomeCommand(Subsystem subsystem, Command move, BooleanSupplier atLimit, Command zeroSensors)... |
cp-python-22074 | wdiv-scrapers/dc-base-scrapers | implementation | en | commitpackft | [wdiv-scrapers/dc-base-scrapers] (python) Store raw data as well as content hash | [type=implementation status=verified commit=00a29c535d files=common.py]
[wdiv-scrapers/dc-base-scrapers] Store raw data as well as content hash
File: common.py
Updated code: import datetime import hashlib import os # hack to override sqlite database filename # see: https://help.morph.io/t/using-python-3-with-morph-scra... | [type=implementation status=verified commit=2b0bcbb7ce files=geojson_scraper.py]
[wdiv-scrapers/dc-base-scrapers] Add key param to geojson scraper
File: geojson_scraper.py
Updated code: import json import os import urllib.request from retry import retry from urllib.error import HTTPError from common import store_histor... |
cf-15226 | codefeedback/python | implementation | en | codefeedback-filtered | Write a Python function to create a two-dimensional array of specified dimensions, ensuring that all elements in the array are unique. | [type=implementation status=verified files=snippet.python]
[python] Write a Python function to create a two-dimensional array of specified dimensions, ensurin
Here's a Python function that creates a two-dimensional array of specified dimensions and ensures that all elements in the array are unique: ```python import ran... | [type=debugging status=verified files=snippet.python]
[python] Develop a function that calculates the multiplication of the initial prime number and the
Here's a Python solution that fits your needs: ```python def is_prime(n): if n <= 1: return False elif n <= 3: return True elif n%2 == 0 or n%3 == 0: return False i =... |
cp-markdown-56049 | gempesaw/writing | requirements_adr | en | commitpackft | [gempesaw/writing] (markdown) Add post about finding bitlbee account xml file | [type=adr status=verified commit=313e8b204b files=bitlbee-account-file.md]
[gempesaw/writing] Add post about finding bitlbee account xml file
File: bitlbee-account-file.md
Updated code: This is primarily for me to find next time I run into this issue! Having previously installed bitlbee on my OS X machine via [homebrew... | [type=adr status=verified commit=1fc68f4162 files=ios-appium-proxy.md]
[gempesaw/writing] Add beginning of appium proxy doc
File: ios-appium-proxy.md
Updated code: # Proxying Safari traffic on a real iOS device with Appium At $WORK, we need to analyze our network traffic during our mobile web tests. In particular, we w... |
mg-15744 | magicoder/python | implementation | en | magicoder-oss-instruct | You are tasked with implementing a Python class for provenance tracking, which records the lineage of data and activities in a computational workflow. The class, named `Provenance`, should support the following functionalities: 1. Recording a configuration using the `record_configuration` method, which takes a dictiona... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
The solution provides a Python class `Provenance` for provenance tracking, supporting the required functionalities such as recording configuration, finishing activities, converting to JSON, managing activities with a context manager, rese... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
```python def PrintPubRecord(count, pub_id, url, pub_title, bgcolor): if bgcolor: print('<tr align=left class="table1">') else: print('<tr align=left class="table2">') print('<td>%d</td>' % (count)) print('<td>%s</td>' % ISFDBLink('pl.cgi... |
grp-swe-rebench-missionpinball__mpf-1262 | missionpinball/mpf | debugging | en | swe-rebench | [missionpinball/mpf] Add conditional variables to shots and shot_groups Expose the current state of shots and shot_groups to conditional events. | [type=implementation status=verified commit=d245805eef8a files=mpf/core/placeholder_manager.py,mpf/devices/shot.py,mpf/devices/shot_group.py]
[missionpinball/mpf] Fix for missionpinball__mpf-1262
diff --git a/mpf/core/placeholder_manager.py b/mpf/core/placeholder_manager.py index 601650f00..29a98ba5a 100644 --- a/mpf/c... | [type=test status=verified commit=879c4891d320 files=mpf/tests/machine_files/shows/config/test_sync_ms.yaml,mpf/tests/test_Shows.py]
[missionpinball/mpf] Regression test for missionpinball__mpf-1169
diff --git a/mpf/tests/machine_files/shows/config/test_sync_ms.yaml b/mpf/tests/machine_files/shows/config/test_sync_ms.y... |
mg-60355 | magicoder/python | implementation | en | magicoder-oss-instruct | You are tasked with creating a Python test suite for a web service using the `pytest` framework. The web service provides information about software libraries and their dependencies. Your goal is to write a test that verifies the functionality of a fixture that retrieves routes from the service. Write a test suite that... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
```python import pytest import requests @pytest.fixture(scope="module") def librariesio_routes(): response = requests.get('https://example.com/routes') # Replace with the actual URL return response.json() def test_librariesio_routes(libra... | [type=implementation status=verified files=solution.python]
[python] OSS Solution
```python import os class ConfigManager: def __init__(self, config, dialplan_entry): self.config = config self.dialplan_entry = dialplan_entry self.sources = [] def build_sources(self): self.sources.append(os.path.join(str(self.config['pa... |
cp-java-10068 | flipper83/KattaPotter | implementation | en | commitpackft | [flipper83/KattaPotter] (java) Return valid total amount for a basket with one book | [type=implementation status=verified commit=33a2e650fe files=katapotter/src/main/java/com/flipper83/katapotter/BasketCalculator.java]
[flipper83/KattaPotter] Return valid total amount for a basket with one book
File: katapotter/src/main/java/com/flipper83/katapotter/BasketCalculator.java
Updated code: package com.flipp... | [type=implementation status=verified commit=535a9b0027 files=katapotter/src/main/java/com/flipper83/katapotter/BasketCalculator.java]
[flipper83/KattaPotter] Add code for check different discounts for different number of books.
File: katapotter/src/main/java/com/flipper83/katapotter/BasketCalculator.java
Updated code: ... |
cp-markdown-21468 | lumoslabs/campystrano | requirements_adr | en | commitpackft | [lumoslabs/campystrano] (markdown) Add travis badge to readme | [type=adr status=verified commit=1293e42344 files=README.md]
[lumoslabs/campystrano] Add travis badge to readme
File: README.md
Updated code: [](https://travis-ci.org/lumoslabs/campystrano) Campystrano =========== This project rocks and uses MIT-LICENSE. C... | [type=adr status=verified commit=dd5b18955e files=README.md]
[lumoslabs/campystrano] Update readme with new installation instructions
File: README.md
Updated code: Campystrano =========== This project rocks and uses MIT-LICENSE. Campystrano adds Campfire deploy hooks into the Capistrano deploy process. Installation ---... |
cf-59572 | codefeedback/java | implementation | en | codefeedback-filtered | You are tasked with implementing a homograph index generator that processes a given set of words and generates an index based on their homographs. Homographs are words that are spelled the same but have different meanings, origins, or pronunciations. Your task is to create a program that takes a list of words as input ... | [type=implementation status=verified files=snippet.java]
[java] You are tasked with implementing a homograph index generator that processes a given set of
```java import java.util.List; import java.util.Map; import java.util.HashMap; import java.util.ArrayList; public class HomographIndexGenerator { public Map<String, ... | [type=implementation status=verified files=snippet.java]
[java] Write a simple Java class that implements a binary search algorithm to search for a specif
Sure! Here's a simple Java class that implements a binary search algorithm to search for a specific element in an array of integers. It also includes a method to sor... |
cp-python-8334 | MikeDelaney/sentiment | implementation | en | commitpackft | [MikeDelaney/sentiment] (python) Create load balanced function to perform cross validation. Use main block to display best result | [type=implementation status=verified commit=7561e95b6f files=parallel.py]
[MikeDelaney/sentiment] Create load balanced function to perform cross validation. Use main block to display best result
File: parallel.py
Updated code: from IPython import parallel from sklearn.datasets import fetch_20newsgroups_vectorized def g... | [type=adr status=verified commit=b5ea8b1a71 files=calvin/examples/ui_in_gui/readme.md]
[EricssonResearch/calvin-base] Update list of UI components
File: calvin/examples/ui_in_gui/readme.md
Updated code: # UI in GUI When using a Calvin runtime together with the web-based GUI, it is possible to use virtual instances for ... |
cp-kotlin-882 | blindpirate/gradle | tests_regressions | en | commitpackft | [blindpirate/gradle] (kotlin) Update baseline JDK version for tests to 17 | [type=test status=verified commit=1c479b5560 files=.teamcity/src/main/kotlin/common/JvmCategory.kt]
[blindpirate/gradle] Update baseline JDK version for tests to 17
File: .teamcity/src/main/kotlin/common/JvmCategory.kt
Updated code: /* * Copyright 2019 the original author or authors. * * Licensed under the Apache Licen... | [type=failed_attempt status=verified commit=bf0cf553b9 files=subprojects/docs/src/snippets/buildCache/caching-android-projects/kotlin/build.gradle.kts]
[blindpirate/gradle] Fix sample by updating to newer Kotlin version
File: subprojects/docs/src/snippets/buildCache/caching-android-projects/kotlin/build.gradle.kts
Upda... |
cp-shell-11634 | svoxx/Emby.Build | debugging | en | commitpackft | [svoxx/Emby.Build] (shell) Fix opts, pass SUID option to wrapped binfmt script. | [type=failed_attempt status=verified commit=a34581f521 files=docker-containers/qemu-builder/register/root/usr/sbin/qemu-binfmt-register.sh]
[svoxx/Emby.Build] Fix opts, pass SUID option to wrapped binfmt script.
File: docker-containers/qemu-builder/register/root/usr/sbin/qemu-binfmt-register.sh
Updated code: #!/bin/bas... | [type=adr status=verified commit=9225439ba9 files=README.md]
[Narigo/adventuring] Add a tiny bit more docs
File: README.md
Updated code: # Adventuring Let's see Point & Click adventures in browsers. TODO: * Frontend * Utility functions for actions (like picking up, open/close, etc) Puzzles can be done by combining item... |
mg-27805 | magicoder/php | implementation | en | magicoder-oss-instruct | You are tasked with creating a program that extracts specific information from an HTML file and performs certain operations based on the extracted data. You are given an HTML snippet as follows: ``` <div class="container"> <div class="card" style="max-width: 18rem;"> <div class="card-body"> <br> <b>Password</b> <div cl... | [type=implementation status=verified files=solution.php]
[php] OSS Solution
```python from bs4 import BeautifulSoup html_snippet = ''' <div class="container"> <div class="card" style="max-width: 18rem;"> <div class="card-body"> <br> <b>Password</b> <div class="font-weight-light">password</div> </div> </div> <div class=... | [type=implementation status=verified files=solution.php]
[php] OSS Solution
```python def delete_role(role_id: int) -> str: roles = {1: "Admin", 2: "User", 3: "Manager"} # Predefined list of role IDs and names if role_id in roles: del roles[role_id] return f"Role with ID {role_id} has been successfully deleted." else: ... |
cp-shell-6967 | dshorthouse/SimpleMappr | evolution_deps | en | commitpackft | [dshorthouse/SimpleMappr] (shell) Revert to MapServer 7.0.2 for Travis-CI | [type=deployment status=verified commit=0c62e074a2 files=.travis/scripts/mapserver.sh]
[dshorthouse/SimpleMappr] Revert to MapServer 7.0.2 for Travis-CI
File: .travis/scripts/mapserver.sh
Updated code: #!/bin/sh mapserver="mapserver-7.0.2" echo "---> Starting $mapserver installation" wget http://download.osgeo.org/maps... | [type=test status=verified commit=bafd1f42cc files=.travis/scripts/mapserver.sh]
[dshorthouse/SimpleMappr] Adjust MapServer for Travis tests again
File: .travis/scripts/mapserver.sh
Updated code: #!/bin/sh echo "---> Starting MapServer 7.0.0 installation" wget http://download.osgeo.org/mapserver/mapserver-7.0.0.tar.gz ... |
cp-markdown-51796 | jakeonrails/update_in_batches | requirements_adr | en | commitpackft | [jakeonrails/update_in_batches] (markdown) Update Readme with a description and usage | [type=adr status=verified commit=3fe3e4852e files=README.md]
[jakeonrails/update_in_batches] Update Readme with a description and usage
File: README.md
Updated code: # update_in_batches This gem adds a class/scope method to your ActiveRecord models, that gives you the same functionality of `update_all` but using the ba... | [type=implementation status=verified commit=4e9b16ff15 files=js/ThreeInstrumentable.ts]
[phetsims/mobius] Move phet-core general types to /types
File: js/ThreeInstrumentable.ts
Updated code: // Copyright 2021-2022, University of Colorado Boulder /** * Mixin for THREE.Object3D types that handles instrumentation details.... |
cp-python-43507 | thisgeek/topiCal | implementation | en | commitpackft | [thisgeek/topiCal] (python) Create a script for printing the chatroom topic with the next event. | [type=implementation status=verified commit=920e20ea68 files=main.py]
[thisgeek/topiCal] Create a script for printing the chatroom topic with the next event.
File: main.py
Updated code: import urllib import yaml from datetime import datetime from icalendar import Calendar # Load configuration data with open('config.yam... | [type=implementation status=verified files=solution.swift]
[swift] OSS Solution
```swift import UIKit extension UIColor { public static func colorFromHex(_ hex: UInt32) -> UIColor { let red = CGFloat((hex & 0xFF0000) >> 16) / 255.0 let green = CGFloat((hex & 0x00FF00) >> 8) / 255.0 let blue = CGFloat(hex & 0x0000FF) / ... |
cf-59894 | codefeedback/java | implementation | en | codefeedback-filtered | You are tasked with implementing a motion control system for a differential drive robot. The robot has two independent motors for its left and right sides, and it is equipped with a gyro sensor for measuring orientation. The provided code snippet includes the initialization of various components used in the motion cont... | [type=implementation status=verified files=snippet.java]
[java] You are tasked with implementing a motion control system for a differential drive robot. T
```java public void calculateWheelSpeeds(double desiredLinearVelocity, double desiredAngularVelocity) { // Calculate the feedforward component double feedforwardLeft... | [type=implementation status=verified files=snippet.java]
[java] You are tasked with creating a photo management system for a photography application. The
```java import javafx.application.Application; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.input... |
End of preview. Expand in Data Studio
RLX SDLC Memory Intelligence β 500K Dataset (v3)
Full-scale 500,000 query-group audited, deduplicated, secret-redacted, zero-leakage SDLC retrieval and reranking dataset for rlx (Agent Memory across Codex, Claude Code CLI, and Pi).
Audited Permissive Upstream Sources (MIT / Apache-2.0 / CC-BY-4.0)
| Source | License | Pinned Revision | Query Groups |
|---|---|---|---|
bigcode/commitpackft (19 SDLC langs) |
MIT | fc56fe33c030 |
272,650 |
m-a-p/CodeFeedback-Filtered-Instruction |
Apache-2.0 | a08c213a9748 |
130,138 |
ise-uiuc/Magicoder-OSS-Instruct-75K |
MIT | 5f839b1f368a |
68,000 |
nebius/SWE-rebench |
CC-BY-4.0 | 89cdfbab4ab1 |
20,829 |
R2E-Gym/R2E-Gym-Subset |
Apache-2.0 | 2e8108ff942f |
4,578 |
SWE-Gym/SWE-Gym |
MIT | bb94ed9e39bb |
2,405 |
rlx-curated-pilot-v1 (EN/VI/mixed) |
Apache-2.0 | pilot-v1 |
1,400 |
| Total | Permissive OSS | β | 500,000 |
Splits & Governance
train: 494,849 query groups (train-00000..00004.parquet, zstd compressed) + 118,449 balanced reranker training pairs (rerank_train-00000..00001.parquet).dev(frozen benchmark): 2,837 query groups.private_test(frozen benchmark): 2,314 query groups.- Leakage Control:
0overlapping repository families betweentrainand frozendev/private_test. - Secret/PII Redaction:
33,686matches scrubbed prior to export; zero hidden reasoning collected.
Category Breakdown
{
"debugging": 90496,
"requirements_adr": 52075,
"implementation": 289221,
"checkpoint_handoff": 200,
"tests_regressions": 37515,
"evolution_deps": 30293,
"cross_harness": 100,
"general_multilingual": 100
}
- Downloads last month
- 58