Dataset Viewer
Auto-converted to Parquet Duplicate
instruction_seed
stringlengths
43
8.03k
source
stringclasses
1 value
embeddings
sequencelengths
1.02k
1.02k
mean_positive_score
float64
0.73
0.85
mean_negative_score
float64
0.71
0.82
difference_score
float64
0.01
0.07
You are tasked with creating a program that calculates the maximum probability for a given set of quantum states. The program should take into account the amplitude and probability functions provided in the code snippet. The goal is to use the NMaximize function to find the maximum probability for a specified range of ...
glaive
[ 0.007450448349118233, 0.031140390783548355, -0.03861173987388611, -0.018775925040245056, 0.04819726571440697, -0.022155646234750748, -0.022115448489785194, 0.0678970217704773, 0.038633041083812714, 0.005564420018345118, 0.025590283796191216, 0.0387304425239563, -0.01943463273346424, -0.006...
0.801281
0.77694
0.024341
You are tasked with writing a program that performs bitwise OR operations on two memory locations and stores the result in another memory location. The memory locations are represented by variables {m1} and {m2}, and the constants to be OR-ed are represented by {c1}. Write a program that performs the following steps: 1...
glaive
[ 0.028822418302297592, 0.009146404452621937, -0.03796716406941414, -0.01736493967473507, 0.018976861611008644, -0.04221959412097931, -0.026082690805196762, 0.07305489480495453, 0.06170855835080147, -0.02114589884877205, 0.010131613351404667, 0.022522540763020515, -0.027895234525203705, -0.0...
0.812412
0.778884
0.033527
You are tasked with creating a program that calculates the maximum probability and plots the probability distribution for a given quantum state. The quantum state is represented by a function `probability(x, y)` that takes in two variables x and y and returns the absolute value squared of the amplitude of the quantum s...
glaive
[ -0.0034064012579619884, 0.024621542543172836, -0.03783266618847847, -0.02762950025498867, 0.03839040547609329, -0.016389550641179085, -0.02036128379404545, 0.07437698543071747, 0.044439397752285004, 0.0006892979145050049, 0.029734596610069275, 0.04218144714832306, -0.013743291608989239, -0...
0.797365
0.773997
0.023368
You are tasked with creating a function in Fortran that calculates the elliptic blending function for momentum. The function should take in two arguments: a type called Turb_Type and an integer called c. The elliptic blending function for momentum is defined as follows: Turb_Mod_Ebf_Momentum = max(0.01 * turb % y_plu...
glaive
[ 0.018342718482017517, 0.044493697583675385, -0.015632687136530876, -0.03913145139813423, 0.03738747909665108, -0.0054704900830984116, -0.022922737523913383, 0.07014420628547668, 0.04207693040370941, 0.007516579702496529, 0.012844789773225784, 0.045620646327733994, -0.017119290307164192, -0...
0.785882
0.771224
0.014658
You are tasked with implementing a CUDA kernel function to calculate the percent change in a vector and store the result in another vector. The formula to calculate the percent change is given as: C = log(A[x]/A[x-1]) You need to write a CUDA kernel function that takes in two Vector objects A and C, and computes the p...
glaive
[ 0.0024789602030068636, 0.0657244324684143, -0.027159295976161957, -0.017754709348082542, 0.03518250957131386, -0.023101961240172386, -0.03073704242706299, 0.10942719131708145, 0.05421338230371475, -0.01301406417042017, 0.026733025908470154, 0.018118197098374367, -0.01427160482853651, 0.018...
0.805296
0.784829
0.020467
You are required to create a function that calculates the sum of elements in a vector or 1D matrix. The function should take the vector or 1D matrix as input and return the sum of its elements. Additionally, you need to write a function to calculate the sum of squares of values in a vector or 1D matrix. The function sh...
glaive
[ 0.01644056662917137, 0.04772300645709038, -0.0331571102142334, -0.049280133098363876, 0.06634040176868439, -0.02183256857097149, -0.021467536687850952, 0.05058629810810089, 0.03849869966506958, -0.008539509028196335, 0.019392229616642, 0.027323298156261444, -0.025422438979148865, -0.027098...
0.807066
0.785897
0.021169
You are tasked with implementing a function that takes a list of numbers and performs various operations based on the type of number in the list. The operations to be performed include checking if the number is an integer, natural number, bit list, dab digit list, and more. You need to create a function that can handle...
glaive
[ 0.03565787151455879, 0.010558543726801872, -0.032671112567186356, -0.026395155116915703, 0.048721008002758026, -0.02257087454199791, -0.014344444498419762, 0.05404016748070717, 0.047902874648571014, -0.001954799285158515, 0.01968439668416977, 0.042382895946502686, -0.023897331207990646, -0...
0.799257
0.779017
0.02024
You are tasked with implementing a subroutine that computes the eigenvalues and eigenvectors of a 2-by-2 symmetric matrix. The input to the subroutine will be the elements of the 2-by-2 matrix (A, B, and C), and the output will be the eigenvalues (RT1 and RT2) and the unit right eigenvector (CS1, SN1). The purpose of t...
glaive
[ 0.03159602731466293, 0.034303538501262665, -0.04118023067712784, -0.0301585141569376, 0.030071381479501724, -0.0009035326074808836, -0.018365036696195602, 0.0751173347234726, 0.045992061495780945, -0.01407466921955347, 0.010324028320610523, 0.03870400786399841, -0.03453836217522621, 0.0063...
0.795312
0.765634
0.029679
Can you provide an algorithm that counts the number of words in a given paragraph of text?
glaive
[0.017885847017169,0.011420093476772308,-0.00860915519297123,-0.01786734163761139,0.0253204368054866(...TRUNCATED)
0.787429
0.772648
0.014781
"I am trying to implement a parallel Breadth-First Search (BFS) algorithm using CUDA in C++. I have (...TRUNCATED)
glaive
[-0.0015961057506501675,0.05024024844169617,-0.03340458497405052,-0.025380386039614677,0.02014916948(...TRUNCATED)
0.790552
0.775965
0.014587
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
8