messages listlengths 2 2 |
|---|
[
{
"role": "user",
"content": "You are given two arrays, A and B, each of length n. You need to perform a convolution operation on these arrays and output the resulting array.\n\nThe convolution of two arrays A and B is defined as follows:\n- Let C be the resulting array of length 2n-1, where C[i] = Σ(A[j] *... |
[
{
"role": "user",
"content": "You are tasked with implementing a simple Python function that takes a list of strings as input and returns a new list containing only the strings that are palindromes. A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backw... |
[
{
"role": "user",
"content": "You are given a class `Solution` with a method `checkPerfectNumber` which takes an integer `num` as input. The method should return `true` if the given number is a perfect number, and `false` otherwise. A perfect number is a positive integer that is equal to the sum of its prop... |
[
{
"role": "user",
"content": "You are tasked with implementing a parser for a simple programming language. The language has four types of tokens: \"daddress\", \"dcommand\", \"doaddress\", and \"dosymbol\". The parser should take a list of tokens as input and return a parsed representation of the input.\n\n... |
[
{
"role": "user",
"content": "You are tasked with implementing a function to parse a string containing names separated by whitespace. The function should handle various edge cases and return a list of parsed names. The function should also remove any leading or trailing whitespace, as well as any occurrence... |
[
{
"role": "user",
"content": "You are tasked with implementing a file path manipulation function in a programming language of your choice. The function should take a base path and a relative path as input and return the combined absolute path. The base path represents the starting directory, and the relativ... |
[
{
"role": "user",
"content": "You are tasked with implementing a Python function that validates an authorization header token for a web API. The function should extract the token from the provided header, check its format, and return the token if it is valid. If the token is not in the expected format or th... |
[
{
"role": "user",
"content": "You are tasked with creating a program that analyzes a software license file to extract specific information. The license file contains comments and the actual license text. Your program needs to extract the license type, the permissions, and the limitations from the file.\n\nY... |
[
{
"role": "user",
"content": "You are tasked with creating a program to control a dispenser for a women's restroom. The dispenser is connected to a microcontroller, and the code snippet provided contains a comment indicating the pin number and the corresponding relay number for the dispenser. Your task is t... |
[
{
"role": "user",
"content": "You are tasked with creating a Rust module system for a 2D game engine. The game engine consists of several modules, each serving a specific purpose. The provided code snippet includes the module declarations and re-exports for the game engine.\n\nYour task is to design and imp... |
[
{
"role": "user",
"content": "You are given a snippet of HTML code representing a portion of a web page. The code contains a nested structure of HTML elements. Your task is to write a function that takes this HTML snippet as input and returns the number of nested levels in the HTML structure.\n\nFor the pur... |
[
{
"role": "user",
"content": "You are tasked with implementing a buffer management system for a graphics application using OpenGL. The system should allow for efficient modification and flushing of ranges of data within a buffer object, while ensuring that OpenGL can still use other parts of the buffer. \n\... |
[
{
"role": "user",
"content": "You are tasked with implementing a custom permission class for a Django REST Framework (DRF) API. The custom permission class should allow access to all authenticated users who belong to any group. You are provided with a code snippet that includes a base permission class and a... |
[
{
"role": "user",
"content": "You are tasked with implementing a class that connects to an MQTT broker and subscribes to a specific topic. The provided code snippet is a part of a larger MQTT client implementation. Your task is to complete the implementation by adding the necessary code to subscribe to a gi... |
[
{
"role": "user",
"content": "You are tasked with implementing a simple event-driven system for a reactor simulation. The reactor is represented by a class `Reactor` with a method `stop()` that shuts down the reactor. Your goal is to create a program that simulates the behavior of the reactor and its shutdo... |
[
{
"role": "user",
"content": "You are tasked with implementing a delegate pattern in Swift for a custom scanner class. The `EvrythngScanner` class is responsible for scanning and processing images, and it requires a delegate to handle the scanned results. Your goal is to create a protocol for the delegate a... |
[
{
"role": "user",
"content": "You are tasked with implementing a function to calculate the digest of a given input string using various hashing algorithms. The function should support multiple hashing algorithms and return the digest along with the algorithm used for hashing.\n\nYou are provided with a part... |
[
{
"role": "user",
"content": "You are tasked with creating a web form for a placement application system. The form should include fields for the applicant's information such as the form type, branch, category, student name, father's name, residential address, and present address. Each field should be valida... |
[
{
"role": "user",
"content": "You are tasked with implementing a Swift initializer for a custom data type called `Location` that represents geographical coordinates. The `Location` type should have two properties: `latitude` and `longitude`, both of type `Double`. Your task is to implement the initializer `... |
[
{
"role": "user",
"content": "You are tasked with implementing a custom permission system for a user management application. The application has a method `getUsers` that retrieves a list of users based on certain criteria. The method is annotated with `@Permissions` and `@Permission` to define the required ... |
[
{
"role": "user",
"content": "You are tasked with creating a web application for managing related news articles. The application has a backend built with Laravel, and the code snippet provided is from the related news controller. The `create` method retrieves all related news articles and passes them to the... |
[
{
"role": "user",
"content": "You are working on a data processing pipeline for anomaly detection and need to organize the output data into specific directories. The code snippet provided is a part of the setup process for creating the necessary directory structure. Your task is to complete the directory cr... |
[
{
"role": "user",
"content": "You are tasked with implementing a text processing class that normalizes input text based on certain language-specific rules. The class has an `__init__` method that initializes the language and sets up some language-specific tools, and a `do` method that normalizes the input t... |
[
{
"role": "user",
"content": "You are given a dataset containing several records, each consisting of four numerical values. The first value represents the class label (0 or 1), and the remaining three values represent features. Your task is to implement a Python function that calculates the Euclidean distan... |
[
{
"role": "user",
"content": "You are tasked with creating a Python function that processes a dictionary containing student names as keys and their respective marks as values. The function should return the name of the student with the highest mark. If there are multiple students with the same highest mark,... |
[
{
"role": "user",
"content": "You are tasked with creating a Python function that generates a set of tmux commands for managing a distributed machine learning job. Tmux is a terminal multiplexer that allows multiple terminal sessions to be accessed and controlled from a single window. The provided code snip... |
[
{
"role": "user",
"content": "You are tasked with implementing a simple drawing application using the wxPython library. The provided code snippet is a part of a larger program that handles the drawing canvas and event handling. Your task is to complete the implementation by adding the necessary methods to h... |
[
{
"role": "user",
"content": "You are tasked with implementing a Python function that processes a given input to extract specific information and perform a series of operations. The input will consist of a multi-line string containing code snippets in Python. Your function should identify and extract all th... |
[
{
"role": "user",
"content": "You are tasked with implementing a function to count the total number of words across multiple text files in a given directory using threading. The code snippet provided demonstrates the usage of the function `count_words_threading` to count the words in all text files within a... |
[
{
"role": "user",
"content": "You are tasked with creating a TypeScript class method that fetches and processes data from a server using the provided code snippet as a reference. Your task is to implement the `jsonMutationDataFetcher` function and ensure that the `fetchData` method correctly handles the asy... |
[
{
"role": "user",
"content": "You are tasked with creating a Python function that validates a given domain against a list of allowed hosts. The function should take the domain as input and return a boolean value indicating whether the domain is allowed or not.\n\nYou are provided with a snippet of generic D... |
[
{
"role": "user",
"content": "You are working on a supply management system for a manufacturing company. The system uses Django as the backend framework. The provided code snippet is a part of the Django model definitions for managing the supply and connector relations.\n\nThe code snippet defines two model... |
[
{
"role": "user",
"content": "You are tasked with implementing a TypeScript function that adds one or more CSS classes to an HTML element.\n\nYou are given the following TypeScript declaration for the `addClass` function:\n```typescript\nexport declare function addClass(elm: Element, classes: string | strin... |
[
{
"role": "user",
"content": "You are given a code snippet that represents a function in a programming language. Your task is to complete the function by implementing the missing logic. The function takes in an array of integers and an integer target. The goal is to find two distinct elements in the array t... |
[
{
"role": "user",
"content": "You are tasked with creating a Python class that simulates a simple banking system. The class should have methods for depositing funds, withdrawing funds, and checking the current balance. Additionally, the class should be able to handle multiple accounts, each identified by a ... |
[
{
"role": "user",
"content": "You are tasked with implementing a function to determine whether a given unsigned 16-bit number represents a negative number or not. The function should take two parameters: the number to be checked and the number of bits in the representation. The function should return `true`... |
[
{
"role": "user",
"content": "You are given a Java method that takes an array of integers as input and is intended to return true if the array contains any duplicate elements, and false otherwise. However, the given code snippet is incomplete and contains a logical error. Your task is to complete the method... |
[
{
"role": "user",
"content": "You are tasked with implementing a Java interface for verifying digital signatures. The interface, `SignatureVerifier`, extends another interface `SignatureVerifierSimple` and takes a generic type `S` that extends `SignatureBinary`. The interface includes a default method `veri... |
[
{
"role": "user",
"content": "You are tasked with implementing a class for managing index buffers in an OpenGL-based graphics application. The provided code snippet is a part of the implementation for an OpenGLIndexBuffer class. The class is responsible for binding the index buffer and returning the count o... |
[
{
"role": "user",
"content": "You are tasked with simulating a robotic arm movement using a simplified kinematic model. The given code snippet is a part of a larger program that controls the movement of a robotic arm with 6 joints. The code snippet includes a loop that updates the joint angles based on the ... |
[
{
"role": "user",
"content": "You are tasked with creating a function that processes user data and generates a report containing user information and associated API authentication details. The function should take an array of user objects as input and return an array of user information with corresponding A... |
[
{
"role": "user",
"content": "You are tasked with creating a Python function that simulates a simplified version of a database migration system. In this system, each migration is represented by a class that contains a list of its dependencies. Your task is to implement a function that takes a list of migrat... |
[
{
"role": "user",
"content": "You are given a list of integers representing the daily stock prices of a company. Your task is to write a function to calculate the maximum profit that can be obtained by buying and selling the stock at most once. If it is not possible to make any profit, the function should r... |
[
{
"role": "user",
"content": "You are tasked with implementing a Python function that performs fine-tuning on a gesture classifier model. The function takes several parameters, including the model, a flag to indicate whether to use softmax, a flag to indicate whether to resume training from a checkpoint, an... |
End of preview. Expand in Data Studio
Dataset Card for distilled-code-data
Dataset Summary
ဒီ dataset က distilled-code-data အတွက် ဖန်တီးထားတာပါ။
Languages
- Myanmar (my) / English (en)
Dataset Structure
Data Instances
{ "text": "နမူနာ စာသား", "label": "အညွှန်း" }
Data Fields
text: main content,label: optional.
Data Splits
| Split | Files |
|---|---|
| train | data/train-00000-of-00001.parquet |
Licensing Information
ဒီ dataset က CC BY-NC 4.0 အောက်မှာ ရှိပါတယ်။
Citation
@dataset{distilled-code-data,
author = {{Your Name}},
title = {distilled-code-data},
year = {2026},
license = {{CC BY-NC 4.0}}
}}
- Downloads last month
- 26