messages listlengths 1 1 |
|---|
[
{
"content": "You are tasked with creating a build system for running tests on a programming project. The build system should be able to handle different test targets and modes, such as comparing output, testing runtime safety, compiling errors, building examples, testing CLI, assembling and linking, translatin... |
[
{
"content": "You are required to create a Verilog module that implements a Merlin Router. The module should assert the appropriate one-hot encoded channel based on the address and set the binary-encoded destination id. The module should also have generation parameters such as decoder_type, default_channel, def... |
[
{
"content": "You are tasked with implementing a distributive multiplicative action along with a monoid homomorphism for a given monoid and additive structure. The distributive multiplicative action should include scalar multiplication by a monoid element on the additive structure. Additionally, you need to def... |
[
{
"content": "You are tasked with implementing a function in the uim Project that can find a sequence in a given set of rules. The function should take in a sequence and the set of rules as input and return the matched sequence based on the rules. If no sequence is found, the function should return false.\n\nWr... |
[
{
"content": "You have been tasked with implementing the front-end of a communication controller module in SystemVerilog. The module needs to handle UART interface, interface to a decoder, and interface to a backend. It also needs to manage a state machine, baud divider MUX, UART, buffer for echo back, instruct... |
[
{
"content": "You are tasked with implementing a warp-level GEMM (General Matrix Multiply) using the CUDA programming language and the CUTLASS library. Your objective is to create a program that performs matrix multiplication using the Volta Tensor Core on an NVIDIA GPU.\n\nThe specific problem involves impleme... |
[
{
"content": "You are working on a C++ project and need to incorporate the MinCTest library for unit testing. However, you want to use CMake to manage the build process and ensure that the MinCTest library is automatically fetched and included in your project.\n\nYou need to write a CMakeLists.txt file that acc... |
[
{
"content": "You are tasked with implementing a CUDA kernel to load vectors and compute the error between the loaded vector and a provided correct vector. The goal is to determine if the loaded vector matches the correct vector within a specified error threshold. The vectors are represented using the wmma::mma... |
[
{
"content": "I am trying to set up a Jupyter notebook environment on my Linux system using a bash script. However, when I run the script, I encounter an error. Can someone help me write a bash script to install Jupyter, upgrade necessary packages, and start Jupyter notebook in a specific directory?",
"role... |
[
{
"content": "You are tasked with creating a program that emulates a cache write port. The program needs to be able to generate randomized or linear read sequences. The program should include the following parameters:\n- PortName (default: \"write port 0\")\n- MemWords (default: 1024*1024 in 64bit words)\n- Cac... |
[
{
"content": "I need to create a ThreadLocal class in Scala that allows me to store thread-local variables. The class should have a method to get the value of the variable for the current thread, and another method to retrieve all the instances of the variables stored for all threads. The class should be thread... |
[
{
"content": "You are tasked with creating a CMake function to build a list of instance extensions for a graphics rendering application. The function should take in a list of extension names, their corresponding versions, and output a formatted string containing the instance extensions. The output should be in ... |
[
{
"content": "You are working on a project that involves building a ScaleGan model using TensorFlow. The ScaleGan model is designed to generate high-resolution images from low-resolution input images. However, you are facing a problem with the implementation of the `generator` method in the ScaleGan class. The ... |
[
{
"content": "You are tasked with implementing a data structure in C++ that includes various nested containers and sorted vectors. The data structure should include the following fields:\n- A boolean field named fieldA\n- An integer field named fieldB\n- A string field named fieldC\n- A list of integers field n... |
[
{
"content": "How can I write a Python program that checks if any two numbers in a given list of integers sum up to a specific number?",
"role": "user"
}
] |
[
{
"content": "I need to write a Python algorithm that can find the maximum number in a given list. Can you provide a solution for this problem?",
"role": "user"
}
] |
[
{
"content": "You are tasked with writing a batch file that runs a specific test case using MSTest in Visual Studio. The batch file should navigate to the directory of the script, run the specified test case from a test suite DLL, and utilize a test settings file for configuration. The batch file should also pa... |
[
{
"content": "You are tasked with implementing a function to perform element-wise conditional selection from two input arrays, based on a provided condition array. The function should take in three input arrays (cond, arr1, arr2) and an output array (output). The condition array (cond) contains boolean values, ... |
[
{
"content": "You are tasked with creating a program that processes a specific input format and produces a file with specific output. The input consists of a series of mathematical expressions, each separated by a line break, and followed by a file name. Additionally, there are several parameters and settings l... |
[
{
"content": "You are tasked with creating a program that extracts and displays the information from a given article citation in the format of a BibTeX entry. The citation includes the author names, article title, journal name, publication month, publisher, DOI, URL, and publication year. Your program should ta... |
[
{
"content": "You are tasked with creating a web application using Clojure and the Immutant framework. The application should establish a connection to a messaging queue, set up a WebSocket server, and define callbacks for handling incoming messages and WebSocket events. The application should be able to publis... |
[
{
"content": "You are working on a project where you need to implement a function to automatically fetch the latest changes from a git repository at regular intervals. The function should check if the repository is a valid git repository and if a specific file called NO_AUTO_FETCH exists. If the file doesn't ex... |
[
{
"content": "What is the probability of rolling two dice and getting two even numbers?",
"role": "user"
}
] |
[
{
"content": "You are tasked with creating a program that handles the rendering and animation of sprites in a game. The program should be able to define the properties of the sprites, including their dimensions, texture groups, frames, sequences, layers, and other attributes. The program should also be able to ... |
[
{
"content": "You have a set of data in Excel files that you need to read and plot using R. The data is spread across multiple sheets in different Excel files. You also need to calculate and plot error bars for the data points, and add a legend to your plot. Additionally, you need to define a function to create... |
[
{
"content": "You want to create a smart contract that can create a new token and a Liquid Democracy Controller using the given MiniMeTokenFactory and LiquidDemocracyControllerFactory contracts. You need to write a function that will create a new token using the MiniMeTokenFactory and then use that token to cre... |
[
{
"content": "You need to implement a subroutine in Fortran called CSYEQUB, which computes row and column scalings intended to equilibrate a symmetric matrix A and reduce its condition number (with respect to the two-norm). The subroutine takes in the following arguments:\n- UPLO: a character indicating whether... |
[
{
"content": "Can you provide an algorithm to determine if a given input string is a palindrome or not?",
"role": "user"
}
] |
[
{
"content": "You are tasked with creating a program that simulates a war using a language with flexible contexts. The program needs to handle various instructions and manipulate memory based on these instructions. The program also needs to implement addressing modes and perform arithmetic operations. Your task... |
[
{
"content": "You need to create a class in Groovy to handle version numbers. The class should be able to accept version numbers in different formats (string, array, or another instance of the same class) and compare them. The class should have methods to increment the major, minor, and revision numbers, and al... |
[
{
"content": "How can I write a JavaScript function that sorts an array of strings alphabetically and groups them by their first character? I want the function to return an object where the keys are the first characters of the words, and the values are arrays containing the words that start with those keys, sor... |
[
{
"content": "You are tasked with implementing a `VolumeSnapshotClass` resource in Kubernetes. The `VolumeSnapshotClass` should contain the fields `driver`, `deletionPolicy`, and `parameters`, which are used when a `VolumeSnapshot` belonging to the class needs to be dynamically provisioned. The name of the `Vol... |
[
{
"content": "You are tasked with implementing a Vector3 class in C++ that represents a 3-dimensional vector and supports various operations. The class should include the following functionalities:\n\n1. Constructors to initialize the vector with default values, specific values, or convert from another type of ... |
[
{
"content": "You are tasked with creating a Java class that represents information about a component in a software system. The class should have the following attributes:\n- name (string): the name of the component\n- type (string): the type of the component\n- passCount (integer): the number of successful pas... |
[
{
"content": "I am working on a project that involves GPU processing, and I need to implement functions to get and set values in a GPU array. I want to create two functions: one to get a value at a specific index in the GPU array, and another to set a value at a specific index in the GPU array. The functions sh... |
[
{
"content": "I am trying to create a Qt plugin for a shake sensor gesture, but I am encountering some issues with the code. Can someone help me create the necessary CMakeLists.txt and .cpp files to define and build the plugin for this sensor gesture? I need to ensure that the plugin is properly linked to the S... |
[
{
"content": "I am working on a C++ program where I need to take three numbers as input from the user and then determine and display the largest number among them. Can someone help me with the code for this?",
"role": "user"
}
] |
[
{
"content": "I am working on a school database system and need to create a program to calculate the average grade of a student. The database contains information about courses, students, registrations, grades, and course ratings. Each course has a different difficulty level, and each student has a different in... |
[
{
"content": "You are tasked with creating a LaTeX package that will help in typesetting homework assignments. The package must include features such as setting the margins, using various colors, including mathematical symbols, incorporating graphics, creating tcolorbox environments, and setting up hyperlinks. ... |
[
{
"content": "You are tasked with creating a new Weapon class for a game using the 'swlegion' package in Dart. The weapon, named 'Ion Disruptor', should have the following properties:\n- Name: 'Ion Disruptor'\n- Dice: 1 black attack dice\n- Minimum range: 2\n- Maximum range: 4\n- Keywords: 'Impact 2', 'High Vel... |
[
{
"content": "You are tasked with creating a program that handles kernel push requests for a coding platform. The program should allow users to push their code to a specific kernel, with the option to specify various attributes such as title, language, privacy settings, GPU usage, internet access, and data sour... |
[
{
"content": "I recently completed a compilers course in university and now I want to create a toy language to experiment with different language design principles. However, I'm unsure about what language or format I should choose for my compiler's output. I would like to output bytecode for a virtual machine t... |
[
{
"content": "You are tasked with implementing a lighting system for a 3D scene using OpenGL 3.3 core. The lighting system will incorporate directional lighting, point lights, and a spot light. You are required to write the necessary shader code to calculate the color for each type of light.\n\nYou will need to... |
[
{
"content": "You are tasked with creating a function in OCaml that generates files based on certain input parameters. The function should take the following arguments:\n\n1. opens: a list of strings representing modules to open\n2. with_typedefs: a boolean indicating whether type definitions should be included... |
[
{
"content": "I want to create a RESTful API endpoint that allows me to update a specific record in the database. Can you show me how to do that using Python and Flask?",
"role": "user"
}
] |
[
{
"content": "You are tasked with creating a Zig build script to handle the building and testing of a static library. The build script should allow for the selection of build mode between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Additionally, the script should include a test step to run library tests.... |
[
{
"content": "I need to create a module in Erlang that can handle the manipulation and management of a checksum table for a specific file. The module needs to be able to open a checksum table, find chunks of data within the table, write new chunk information, find left and right neighbors of a specific offset, ... |
[
{
"content": "I am working on a website and I want to create a navigation bar with a dropdown menu. The navigation bar should have a logo on the left and some menu items on the right. When a user hovers over the dropdown menu, it should display the menu items. I also want to display some images in a grid layout... |
[
{
"content": "You are tasked with creating a Java program to implement a PersonService that interacts with a database to retrieve and save person information. The PersonService should have methods to get a person by name and save a person's information. The person object should have fields for name, age, and ma... |
[
{
"content": "I am building a web application using the Laravel framework and I need to implement a middleware that redirects authenticated users based on their role. I want to create a middleware called \"RedirectIfAuthenticated\" that will redirect users to different dashboards based on their role. For exampl... |
[
{
"content": "I am trying to load an image from a file using the \"cv\" library in my programming project. However, I am encountering some issues and need help with the following:\n\n1. How to properly load an image from a file using the \"cv\" library?\n2. How to display the loaded image in a window?\n3. How t... |
[
{
"content": "You are tasked with creating an InventoryComponent in the io.github.lhanson.possum.component package that will set the frame of reference for entities to 'PARENT' when initialized. The InventoryComponent should take in a list of GameEntity objects, each with an AreaComponent. The constructor of In... |
[
{
"content": "I am trying to create a visualizer for an entity with a DamageableComponent to display its damaged status. The visualizer can be an overlay for the entity or target multiple layers on the same entity. The visualizer can be disabled dynamically by passing a key-value pair into SetData, with the key... |
[
{
"content": "You are tasked with implementing a DMA (Direct Memory Access) module in a hardware description language, using the TLM (Transaction-Level Modeling) package. The module needs to support read and write transactions, and should interface with master and slave interfaces defined in the TLM package. Th... |
[
{
"content": "You are tasked with implementing a service that retrieves a list of EiL (Employment in Lifetime) persons for the current year, as well as removing already excluded EiL persons from a search result list.\n\nYou need to implement the following functionalities:\n1. Implement a method `currentYearEiL`... |
[
{
"content": "Can you provide an example of a GraphQL query to retrieve specific data from an API endpoint?",
"role": "user"
}
] |
[
{
"content": "How can I use a PHP script to insert multiple records into a MySQL table named \"employee\"? I have a table with the following fields: id, name, age, and salary. I want to insert the following records: (1, John Doe, 25, 6000), (2, Jane Doe, 30, 7000), (3, Max Doe, 28, 8000). Can you provide an exa... |
[
{
"content": "Is there a way to create a Bash script that can help me easily create a new sub-directory within the current active directory?",
"role": "user"
}
] |
[
{
"content": "You are working on a project that requires the implementation of a tooltip rendering configuration object for a series in a chart. The tooltip configuration object should inherit properties from a general tooltip configuration, but only specific properties can be defined on a series level. You nee... |
[
{
"content": "I want to gain a better understanding of k8s and helm. While working with helm charts, I noticed that there are two files: `service.yaml` and `deployment.yaml`. Both of these files have a `name` field. From what I understand, the deployment manages the pods, replicasets, and the service. My questi... |
[
{
"content": "You are required to implement a smart contract for a new ERC20 token called \"horizex.ltd\" with the symbol \"HRX\". The token should have a total supply of 8000 HRX with 18 decimal places. The contract should include functions to check the balance of an address, transfer tokens, approve token tra... |
[
{
"content": "I need to create a program in OCaml that will involve creating a type, defining functions, and using modules. The program should involve creating a type t and implementing functions for it, as well as using a module called Store. The program should also involve working with paths and trees.\n\nCan... |
[
{
"content": "You are tasked with creating an install script that sets the install prefix, install configuration name, install component, shared libraries permissions, and checks if the installation is the result of a crosscompile. Write a script that handles these tasks for a given directory.",
"role": "us... |
[
{
"content": "Can you compare two strings \"Hello\" and \"World\" using AI?",
"role": "user"
}
] |
[
{
"content": "You are tasked with creating a CMake script to find and include the CLP library in your project. The script should search for the CLP library in different directories, including environment variables and specific paths. If the library is found, the script should extract the CLP version from the Cl... |
[
{
"content": "You are tasked with creating a testbench module for a rv_plic, intended to use with a formal tool. The module should have the following inputs and outputs:\n- Input: clk_i, rst_ni, tl_i, intr_src_i\n- Output: tl_o, irq_o, irq_id_o, msip_o\n\nThe module should be able to test all implementations, a... |
[
{
"content": "I am trying to create an Erlang application that can detect and handle double occurrences of a specific event. I want to implement a supervisor that can start and stop this application. Can someone provide a complete code implementation for this?",
"role": "user"
}
] |
[
{
"content": "I'm trying to create a Rust function that can find the maximum number in a vector of integers. Can someone help me with the implementation?",
"role": "user"
}
] |
[
{
"content": "I am trying to create a checkbox menu using Python and the widgetastic library. I want to be able to select and deselect items in the menu, as well as read the current selection status of each item. How can I implement a checkbox menu using the BaseCheckboxMenu class and the Dropdown class in widg... |
[
{
"content": "I am working with a programming language that includes a module for handling binary data. I am currently trying to create a custom data type to represent a character (char) as a binary sequence, but I am running into some issues. I need to create a type `t` that represents a char as a binary seque... |
[
{
"content": "You are tasked with implementing a notification system using the provided classes and interfaces in the org.openide package. Your goal is to create a custom notification dialog that can display different types of messages, such as error, warning, and information messages.\n\nYour custom notificati... |
[
{
"content": "You are tasked with creating a Flutter page for registering new patients in a healthcare application. The page should include input fields for the patient's first and last names, gender at birth, birthdate, primary contact, and neighborhood. Additionally, there should be a button to save the patie... |
[
{
"content": "I am trying to implement a new special form called \"ramb\" that is similar to \"amb\" but searches alternatives in a random order, rather than from left to right. The goal is to show how this can help with a specific problem. The problem I am trying to solve is to find sentences with different st... |
[
{
"content": "You are required to create a SAS program to load an ASCII inpatient stay core file into SAS and define SAS informats for missing values. The program needs to input the variables from the ASCII file and assign lengths and formats to each variable. Additionally, the program should attribute each var... |
[
{
"content": "I am working on a project using a TeamCity server and I need to add a PostgreSQL JDBC driver to the server's classpath. Can someone guide me on how to achieve this using Dockerfile and the `FROM` and `ADD` commands? I want to ensure that the JDBC driver is available in the specified directory with... |
[
{
"content": "I need to create a script that activates a virtual environment in csh (C Shell). The script should set the VIRTUAL_ENV environment variable to the path of the virtual environment and prepend the bin directory of the virtual environment to the PATH environment variable. Additionally, the script sho... |
[
{
"content": "You are tasked with creating a Dockerfile to build and run a Node.js application using the ficusio/node-alpine:5.7 base image. The Dockerfile should install the lambda-local package globally, set the working directory to /app, and define the default command to start the container with the sh shell... |
[
{
"content": "You are tasked with creating a program in T-SQL to implement a new full-text stoplist in a database. A stoplist is a list of stopwords that, when associated with a full-text index, is applied to full-text queries on that index.\n\nYour program should include the following features:\n- The ability ... |
[
{
"content": "I am working on a Clojure project and I need to define the project's dependencies using Leiningen. How can I create a project.clj file with the necessary information about the project's dependencies?",
"role": "user"
}
] |
[
{
"content": "You are tasked with creating a CMake build system that removes specific object files and libraries from the target directory. This involves removing multiple object files (ending in .o) and a library file (ending in .a) and its associated debug information file (ending in .pdb). The files to be re... |
[
{
"content": "I am encountering an error when trying to use `pip install` for any module on my Ubuntu 16.04 system with python 2.7.11+. The error message is \"TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'\". What could be causing this issue with pip and how can I rectify it? Should I reinstal... |
[
{
"content": "You are tasked with creating a program that retrieves a collection of courses related to Azure security from the Microsoft Virtual Academy (MVA) website. The program should be able to extract the course titles, descriptions, and links to the individual courses. Furthermore, the program should be a... |
[
{
"content": "I am working on a web application using the Cforum framework and I need to implement a password reset functionality for my users. I want to create a new page for users to request a password reset, send them an email with instructions, allow them to reset their password using a token, and also give... |
[
{
"content": "I am trying to implement a custom logging system in my C# application using the Yaaf.AsyncTrace namespace. I want to create a new trace source with a specific name and then create a default tracer for it. However, I am not sure how to go about doing this. Can someone provide me with a step-by-step... |
[
{
"content": "You are working on a project that requires testing a specific directory and its subdirectories using CMake. The testing commands need to be included in a CMake generated Testfile, and the subdirectories need to be listed for testing as well. You need to ensure that the testing commands are set up ... |
[
{
"content": "I have four tables: POST, USER, IMAGE, and COMMENT. I want to retrieve the information about all the posts, the users who posted them, the image associated with each post, and the comments associated with each post. Currently, I am using the following SQL query:\n\n```sql\nSELECT * \nFROM post \nL... |
[
{
"content": "You are tasked with creating a shader program in OpenGL 3.3 that takes in a vertex color attribute and outputs it as the final fragment color. The shader should be written in GLSL version 330.\n\nWrite a vertex shader that takes in a vec4 vertex color attribute and passes it to the fragment shader... |
[
{
"content": "The Intel Developer's Manual states that when using the EBP register as the base register, memory operations use the SS segment. This means that when using the addressing mode [ebp + esi], it references the SS segment, while [esi + ebp] references the DS segment. The NASM documentation in section ... |
[
{
"content": "You are asked to implement a function in C++ that checks the status of a CUDA NPP operation and handles the failure accordingly. The function should take the NppStatus as input, along with the file name, function name, and line number where the operation is being performed. If the NPP operation fa... |
[
{
"content": "You are tasked with implementing a function that returns a list of doubles of all numbers from a given input down to 0. The function should return '(0) if the input is 0. The function should be named `list-of-doubles` and should take a single parameter `x`. The function should recursively call its... |
[
{
"content": "You are tasked with implementing a Node.js module that handles user login and email verification. The module should take in the user's email, password, and two-factor authentication code (if enabled) from the request body. It should then validate the email, login the user, and handle different err... |
[
{
"content": "You are tasked with creating a simple system for managing a list of books in a library. The system should allow users to add new books, remove existing books, and display the list of all books in the library. The system should also be able to handle dependencies, such as linking one book to anothe... |
[
{
"content": "I've encountered a very unusual problem with MySQL, involving backslashes. Basically when I do a wildcard match with LIKE for \\n which is in the database as text rather than an actual newline, it will only return a match if I have just a right hand wildcard. Now, if I query like this, it will not... |
[
{
"content": "You are tasked with implementing a P3 Core interface for the DARPA SSITH project. The P3 Core contains MIT's RISCY-OOO CPU, including Near_Mem (ICache and DCache), Near_Mem_IO (Timer, Software-interrupt, and other mem-mapped-locations), External interrupt request lines, and 2 x AXI4 Master interfa... |
[
{
"content": "You are tasked with implementing a memory-mapped packet communication system in VHDL. The system should be able to receive packets, extract memory address and data, write the data to memory, read data from memory, and transmit packets. The system should also handle handshaking with both the memory... |
[
{
"content": "How can I create two arrays of random integers within a specific range in Python using the `random.randint()` function? The first array should contain numbers from 50 to 100 and the second array should contain numbers from 200 to 300. Each array should have a length of 15. Additionally, I need to ... |
[
{
"content": "You are tasked with implementing the parallel ICT factorization algorithm using CUDA for a given sparse matrix. The parallel ICT factorization is a method for efficiently factorizing a matrix into lower and upper triangular matrices. Your task is to implement the `add_candidates` and `compute_fact... |
[
{
"content": "You are tasked with implementing a program to simulate a grid-based display. The grid has a width and height specified by the input, and the program will receive a series of commands to manipulate the grid.\n\nThe input will consist of commands in the following format:\n- \"rect AxB\" - this comma... |
[
{
"content": "I am trying to create a program that involves working with statistical models, particularly with the use of the Stan programming language. I need to define a data block with an integer variable K and a vector of real numbers y, a parameters block with a real variable alpha, and a transformed param... |
[
{
"content": "Consider the following sequence of guest VM instructions:\n\n```\n701: 55 push %rbp \n702: 41 54 push %r12 \n704: 41 55 push %r13\n```\n\nFor any of the above instructions, is an `EXIT` possible for any reason?\nI think it is possible because the `PUSH` instruction can raise a page fault if ... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 11