Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
3
3
source
stringclasses
5 values
task
stringclasses
4 values
eval_split
stringclasses
1 value
[ { "content": "You are a defensive security assistant. Explain the weakness and provide a secure fix or remediation.", "role": "system" }, { "content": "Analyze the following vulnerability: CVE-2026-41502\nAffected software: bacnet_stack\nCVSS Score: 7.5 | CWE: CWE-125\nCVSS Vector: CVSS:3.1/AV:N/AC:...
cve-sft-v5
security
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: JavaScript\nFile: lib/rule-tester/rule-tester.js\n\nDiff hunk:\n```\n@@ -1096,6 +1142,18 @@ class RuleTester {\n ...
github-codereview
code_review
[ { "content": "You apply GitHub review feedback and produce the corrected code.", "role": "system" }, { "content": "Language: PowerShell\nFile: Databases/VSSTester/ExchangeInformation/Get-ExchangeVersion.ps1\n\nOriginal code:\n```\n# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT Lic...
github-codereview
code_review_fix
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a dictionary representing a sequence of words and their corresponding frequencies. Your task is to write a function that filters out all words with a frequency less...
opencodeinstruct
code_instruct
[ { "content": "You are a defensive security assistant. Explain the weakness and provide a secure fix or remediation.", "role": "system" }, { "content": "Analyze the following vulnerability: CVE-2026-8558\nAffected software: Unknown\nCVSS Score: 8.8 | CWE: CWE-787\nCVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N...
cve-sft-v5
security
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "Implement a Python class named `SimpleCalculator` that supports basic arithmetic operations: addition, subtraction, multiplication, and division. Each operation should be impleme...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Rust\nFile: tokio/src/runtime/handle.rs\n\nDiff hunk:\n```\n@@ -164,9 +164,8 @@ impl Handle {\n /// thread pool. The ...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a list of integers `nums`. Your task is to determine the length of the longest increasing subsequence within the list. An increasing subsequence is defined as a seq...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Python\nFile: tests/components/fritz/test_binary_sensor.py\n\nDiff hunk:\n```\n@@ -0,0 +1,71 @@\n+\"\"\"Tests for Fritz!T...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a list of strings `words` and a target string `target`. Your task is to implement a function `find_closest_word(words, target)` that returns the word in the list `w...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Java\nFile: jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Jar.java\n\nDiff hunk:\n```\n@@ -80,37 +80,37 @@\n \n ...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given an angle in degrees. Your task is to write a function `deg2rad_and_back(degrees)` that performs the following operations:\n1. Convert the angle from degrees to radi...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given an array `arr` containing both integers and strings. Your task is to identify the numeric duplicates in the array, i.e., integers that appear more than once, and re...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: C++\nFile: src/server/set_family.cc\n\nDiff hunk:\n```\n@@ -1150,23 +1158,27 @@ void SPop(CmdArgList args, CommandContext...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are tasked with implementing a function to validate email addresses. Your function should determine if a given string conforms to the standard email format. The function shou...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a list of integers. Your task is to write a function `find_even_indices(numbers)` that identifies all the indices of even numbers in the list. The function should r...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: C++\nFile: src/llama-context.cpp\n\nDiff hunk:\n```\n@@ -294,7 +294,7 @@ llama_context::llama_context(\n // enabl...
github-codereview
code_review
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Python\nFile: yt_dlp/extractor/generic.py\n\nDiff hunk:\n```\n@@ -2373,6 +2374,14 @@ def _real_extract(self, url):\n ...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given two matrices represented as 2D lists, `matrix1` and `matrix2`. Determine if it is possible to multiply `matrix1` with `matrix2` after optionally transposing `matrix...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a Python function that compares two integers and prints which one is greater. Refactor the code to adhere to PEP 8 guidelines. Your function should take two integer...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are tasked with implementing a function `create_file_structure` that constructs a specified directory structure based on a list of file paths. Each path in the list represent...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given an integer `n`. Your task is to write a function `prime_factors(n)` that returns a list of its prime factors, including each factor as many times as it divides `n`....
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are tasked with developing a function to determine if a player can navigate from the top-left corner to the bottom-right corner of a maze. The maze is represented as a 2D gri...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Go\nFile: pkg/lightning/mydump/region.go\n\nDiff hunk:\n```\n@@ -244,13 +251,16 @@ func MakeTableRegions(\n \t\t\t} else ...
github-codereview
code_review
[ { "content": "You apply GitHub review feedback and produce the corrected code.", "role": "system" }, { "content": "Language: TypeScript\nFile: packages/jest-core/src/TestScheduler.ts\n\nOriginal code:\n```\n? this.addReporter(new VerboseReporter(this._globalConfig))\n : this.addReporter(n...
github-codereview
code_review_fix
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a function `process_value(val_type, val)` where `val_type` is a string indicating the expected type of the value and `val` is a string representing a JSON object. Y...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: C/C++\nFile: src/core/search/hnsw_index.h\n\nDiff hunk:\n```\n@@ -22,6 +22,25 @@ struct HnswIndexMetadata {\n double mu...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a sorted list of integers `container` and an integer `value`. Your task is to implement a function `find_element_position(value, container)` that uses a binary sear...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a list of integers. Your task is to implement a function `remove_duplicates` that processes this list and returns a new list containing only the unique elements, ma...
opencodeinstruct
code_instruct
[ { "content": "You are a defensive security assistant. Explain the weakness and provide a secure fix or remediation.", "role": "system" }, { "content": "Analyze the following vulnerability: CVE-2026-7501\nAffected software: Unknown\nCVSS Score: 3.5 | CWE: CWE-79\nCVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/...
cve-sft-v5
security
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a list of integers `arr` of length `n`. Your task is to determine the number of increasing triplets `(i, j, k)` such that `i < j < k` and `arr[i] < arr[j] < arr[k]`...
opencodeinstruct
code_instruct
[ { "content": "You apply GitHub review feedback and produce the corrected code.", "role": "system" }, { "content": "Language: JavaScript\nFile: ui/tests/acceptance/vault-reporting/index-test.js\n\nOriginal code:\n```\n* SPDX-License-Identifier: BUSL-1.1\n */\n\nimport { module, test } from 'qunit';\n...
github-codereview
code_review_fix
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given an array of integers `nums` and a list of queries. Each query is defined by a pair of integers `(start, end)`, and the result of the query is the sum of the element...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a dictionary `my_dict` where each key is associated with a value. Your task is to write a function `sort_keys_by_value` that returns a list of keys sorted by their ...
opencodeinstruct
code_instruct
[ { "content": "You are a defensive security assistant. Explain the weakness and provide a secure fix or remediation.", "role": "system" }, { "content": "Write a kotlin code that defines an `Animal` class with a method `sound()` which prints 'Animal makes sound'. Then, define a `Dog` class that extend...
cybernative-dpo
security
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "Implement a stack data structure using a Python class. Your stack should support the following operations:\n- `is_empty()`: Returns `True` if the stack is empty, otherwise `False...
opencodeinstruct
code_instruct
[ { "content": "You apply GitHub review feedback and produce the corrected code.", "role": "system" }, { "content": "Language: Go\nFile: internal/buffer/buffer.go\n\nOriginal code:\n```\nb.Settings[\"fastdirty\"] = true\n\t\t} else if !hasBackup {\n\t\t\t// since applying a backup does not save the ap...
github-codereview
code_review_fix
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: C++\nFile: editor/docks/filesystem_dock.cpp\n\nDiff hunk:\n```\n@@ -3953,6 +3953,29 @@ void FileSystemDock::_project_sett...
github-codereview
code_review
[ { "content": "You are a defensive security assistant. Explain the weakness and provide a secure fix or remediation.", "role": "system" }, { "content": "Write a c++ code that includes iostream and string.h libraries. Define a function named 'vulnerable_function' which takes a character pointer as an ...
cybernative-dpo
security
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Python\nFile: monai/transforms/utils_pytorch_numpy_unification.py\n\nDiff hunk:\n```\n@@ -480,7 +480,7 @@ def max(x: Ndar...
github-codereview
code_review
[ { "content": "You apply GitHub review feedback and produce the corrected code.", "role": "system" }, { "content": "Language: Go\nFile: openai/openai.go\n\nOriginal code:\n```\n}\n}\n\n// ToListCompletion converts an api.ListResponse to ListCompletion\nfunc ToListCompletion(r api.ListResponse) ListCo...
github-codereview
code_review_fix
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given the Tower of Hanoi puzzle with `n` disks. The objective is to move the entire stack to another rod, obeying the following rules:\n1. Only one disk can be moved at a...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a list of integers. Your task is to sort the list in ascending order and convert each integer to its corresponding English word representation. The list can contain...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "Given a binary string of length `n`, determine the longest subsequence consisting of identical characters. Return this subsequence as a string. For example, if the input is `'110...
opencodeinstruct
code_instruct
[ { "content": "You apply GitHub review feedback and produce the corrected code.", "role": "system" }, { "content": "Language: Rust\nFile: crates/nu-command/src/network/http/get.rs\n\nOriginal code:\n```\n}\n\n fn run(\n &self,\n engine_state: &EngineState,\n stack: &mut Stack,...
github-codereview
code_review_fix
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "Maxim has a wallet that can hold up to $k$ bills at any time. When he receives a new bill and his wallet is full, he must discard the least valuable bill(s) to make room for the ...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are tasked with implementing the `format_sequence` function. This function should accept a variable number of arguments and return a formatted string. The output should inclu...
opencodeinstruct
code_instruct
[ { "content": "You are a defensive security assistant. Explain the weakness and provide a secure fix or remediation.", "role": "system" }, { "content": "Write a swift code that takes an input string and returns a new string where each character from the input string is appended to the end of the new ...
cybernative-dpo
security
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Rust\nFile: libraries/cbor/src/macros.rs\n\nDiff hunk:\n```\n@@ -13,14 +13,14 @@\n // limitations under the License.\n \n...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a list of integers. Your task is to write a Python function that returns the maximum and minimum values from the list. If the list is empty, the function should ret...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are tasked with implementing a function to compute the `n`-th Fibonacci number. The Fibonacci sequence is defined as follows: `F(0) = 0`, `F(1) = 1`, and for `n >= 2`, `F(n) ...
opencodeinstruct
code_instruct
[ { "content": "You are a defensive security assistant. Explain the weakness and provide a secure fix or remediation.", "role": "system" }, { "content": "Write a python code that connects to an SQLite database named 'mydatabase.db'. The code should have a function called 'get_user_data' which takes a ...
cybernative-dpo
security
[ { "content": "You are a defensive security assistant. Explain the weakness and provide a secure fix or remediation.", "role": "system" }, { "content": "Analyze the following vulnerability: CVE-2026-41259\nAffected software: mastodon\nCVSS Score: 7.5 | CWE: CWE-841\nCVSS Vector: CVSS:3.1/AV:N/AC:L/PR...
cve-sft-v5
security
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Python\nFile: homeassistant/components/dwd_weather_warnings/sensor.py\n\nDiff hunk:\n```\n@@ -95,13 +96,30 @@ def __init_...
github-codereview
code_review
[ { "content": "You apply GitHub review feedback and produce the corrected code.", "role": "system" }, { "content": "Language: Python\nFile: monai/transforms/utils.py\n\nOriginal code:\n```\nn_samples: number of patch samples\n r_state: a random state container\n\n Returns:\n a list o...
github-codereview
code_review_fix
[ { "content": "You are a defensive security assistant. Explain the weakness and provide a secure fix or remediation.", "role": "system" }, { "content": "Write a ruby code that uses Sinatra web framework. Create two routes, one for GET request at '/' and another for POST request at '/'. For GET reques...
cybernative-dpo
security
[ { "content": "You apply GitHub review feedback and produce the corrected code.", "role": "system" }, { "content": "Language: TypeScript\nFile: core/src/components/picker/test/keyboard-entry/picker.e2e.ts\n\nOriginal code:\n```\n{ text: '07', value: 7 },\n { text: '08', value: 8 },\n { ...
github-codereview
code_review_fix
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given an array of integers. Your task is to compute the product of all unique elements in the array after sorting them in ascending order. You must implement the function...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: C++\nFile: src/server/stream_family.cc\n\nDiff hunk:\n```\n@@ -1997,11 +2014,14 @@ void DelConsumer(facade::CmdArgParser*...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a list of integers. Your task is to implement a function `remove_duplicates(nums)` that removes all duplicate elements from the list while preserving the order of t...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Go\nFile: silence/silence_test.go\n\nDiff hunk:\n```\n@@ -109,6 +109,119 @@ func TestSilencesGC(t *testing.T) {\n \trequi...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given the dimensions of a rectangle, specifically its length and width. Your task is to compute and return three properties of the rectangle: its perimeter, its area, and...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given two strings `X` and `Y`. Your task is to write a function that finds and returns the longest common subsequence (LCS) between these two strings. The LCS is the long...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a string `text` containing a mix of characters. Your task is to implement a function `extract_emails(text: str) -> List[str]` that identifies and returns a list of ...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Python\nFile: airflow-core/tests/unit/models/test_dag.py\n\nDiff hunk:\n```\n@@ -1899,6 +1901,28 @@ def test_dag_with_mul...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a connected undirected graph with `n` vertices and `m` edges. The graph has no self-loops or multiple edges. Your task is to direct the edges of the graph such that...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a list of integers `numbers`. Your task is to implement a function `find_largest_prime` that identifies and returns the largest prime number in the list. If no prim...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are tasked with analyzing customer feedback for a company. Given a list of customer reviews, determine the sentiment of each review and return a summary of the counts for pos...
opencodeinstruct
code_instruct
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are tasked with organizing a school trip and need to ensure that there is sufficient food for all students based on their dietary preferences. Each student can choose from on...
opencodeinstruct
code_instruct
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Go\nFile: fstest/fstests/fstests.go\n\nDiff hunk:\n```\n@@ -196,6 +196,45 @@ func PutTestContentsMetadata(ctx context.Con...
github-codereview
code_review
[ { "content": "You apply GitHub review feedback and produce the corrected code.", "role": "system" }, { "content": "Language: Lua\nFile: test/functional/plugin/lsp/diagnostic_spec.lua\n\nOriginal code:\n```\n}, {\n params = {\n textDocument = { uri = fake_uri },\n },\n ...
github-codereview
code_review_fix
[ { "content": "You are a senior GitHub code reviewer. Find bugs, risks, and security issues. Be concise. If the code is fine, say so.", "role": "system" }, { "content": "Language: Python\nFile: python/ray/data/_internal/datasource/parquet_datasource.py\n\nDiff hunk:\n```\n@@ -328,8 +326,7 @@ def __in...
github-codereview
code_review
[ { "content": "You are a helpful coding assistant. Implement correct, clear solutions.", "role": "system" }, { "content": "You are given a string representing a mathematical expression in postfix notation (Reverse Polish Notation). Your task is to evaluate the expression and return the result. The in...
opencodeinstruct
code_instruct
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
48