row_id int64 0 48.4k | init_message stringlengths 1 342k | conversation_hash stringlengths 32 32 | scores dict |
|---|---|---|---|
40,157 | class pswMng {
private:
//private variables
std::string passPhase;
public:
// Setter
void setpassPhase(std::string p) {
passPhase = p;
}
// Getter
std::string getpassPhase() const {
return passPhase;
}
};
how to make deleter | 97005b16872f65d05a60cbc85b116e16 | {
"intermediate": 0.2596912682056427,
"beginner": 0.5239582061767578,
"expert": 0.21635054051876068
} |
40,158 | Python code to read data from csv file | fd3b0ec04d77b853c96e98381a45081e | {
"intermediate": 0.536635160446167,
"beginner": 0.1791781336069107,
"expert": 0.2841867208480835
} |
40,159 | def add_sprite():
""" Add cow sprite to the stage and set its speed """
cow = codesters.Sprite("cow",-400, -150)
cow.set_x_speed(3)
return cow
def setup_stage():
""" Set up the stage with background and sprites """
stage.set_background("barn")
stage.disable_right_wall()
ha... | 521a52f0ff788a82d464e5e6160261ad | {
"intermediate": 0.42214643955230713,
"beginner": 0.2671257555484772,
"expert": 0.3107277750968933
} |
40,160 | voici classement pourquoi j'ai cette erreur ? [{'num_licence': 49866, 'victoires': {'V': 1, 'TD': Decimal('8'), 'TR': Decimal('15'), 'TD-TR': Decimal('-7')}, 'ratio_donner_recu': 0}, {'num_licence': 73096, 'victoires': 0, 'ratio_donner_recu': 0}, {'num_licence': 113727, 'victoires': {'V': 2, 'TD': Decimal('10'), 'TR':... | da1a333553d66e14381def145ae79b41 | {
"intermediate": 0.24898651242256165,
"beginner": 0.5372166633605957,
"expert": 0.21379688382148743
} |
40,161 | refactor using playwright library
import os
import time
import logging
from concurrent.futures import ProcessPoolExecutor
from selenium import webdriver
from selenium.common import TimeoutException, NoSuchElementException
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWai... | 96444a9d6345635ad8eb0d4d8fac8c9f | {
"intermediate": 0.370364785194397,
"beginner": 0.48584407567977905,
"expert": 0.14379113912582397
} |
40,162 | laravel flash message not working it didn't display on front-end | 2ae108ed5bbde80456aa53dcb52cb06f | {
"intermediate": 0.3127191960811615,
"beginner": 0.38039112091064453,
"expert": 0.30688974261283875
} |
40,163 | keep in remember the following, following to this requirement i will give you my code alter the code according to the below given requirement.
State: The RL agent processes the circuit graph component by component. For a circuit with n components in topology graph G, the state sk for the kth component is defined as sk ... | 804b18005f3c46cb7646212c63e8f42b | {
"intermediate": 0.2395201027393341,
"beginner": 0.19606654345989227,
"expert": 0.56441330909729
} |
40,164 | @foreach (session('flash_notification', collect())->toArray() as $message)
AIZ.plugins.notify('{{ $message['level'] }}', '{{ $message['message'] }}');
@endforeach
notify message will not popup | 4a4c0c9593c78583df716cecfd8c1c4e | {
"intermediate": 0.3820097744464874,
"beginner": 0.28486326336860657,
"expert": 0.3331269323825836
} |
40,165 | # To clarify dict is dictionary in which I have stored my values(questions and answers)
questions_dict = {
"What is the capital of France?": "Paris",
"What color do you get when you mix blue and yellow?": "Green",
"Who is the president of the USA?": "Joe Biden",
"What is the name of the fairy in Peter ... | d3b2635970eeac89c8832941dd6f05a1 | {
"intermediate": 0.2658253014087677,
"beginner": 0.5195912718772888,
"expert": 0.21458348631858826
} |
40,166 | Explain this joke to me | f693023b454b29986f1a28fa60f1cca1 | {
"intermediate": 0.2879602909088135,
"beginner": 0.5039299130439758,
"expert": 0.20810973644256592
} |
40,167 | **Thank you** | 53f0f57cab2519409999b065d213803a | {
"intermediate": 0.34148427844047546,
"beginner": 0.2575589716434479,
"expert": 0.4009567201137543
} |
40,168 | **Generate longer text, but monospace text** | a2e567319367599fdfb2954fbf4bee8e | {
"intermediate": 0.3239867389202118,
"beginner": 0.17022740840911865,
"expert": 0.5057858228683472
} |
40,169 | **Generate longer text, but monospace text** | 17d6f83b6c748ee747a07036ac781179 | {
"intermediate": 0.3239867389202118,
"beginner": 0.17022740840911865,
"expert": 0.5057858228683472
} |
40,170 | Deepika wants her server should be free from intruder. She wants to detect whether the received client request is a legitimate or an attack (normal/attack). Design an incursion detection model to help Deepika using Adaboost classifier.
give me python program
FEATURE SELECTION
rfc = RandomForestClassifier();
Import... | 2afdf133085e2eea993c780a0d82e8ee | {
"intermediate": 0.38951265811920166,
"beginner": 0.3043423891067505,
"expert": 0.3061448931694031
} |
40,171 | i have this script "import gradio as gr
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
" i want to add video in left and the prediction parrt with yolo in the riht | 3ed609903b17b8de67524136fb72fbc5 | {
"intermediate": 0.44310295581817627,
"beginner": 0.27042290568351746,
"expert": 0.28647416830062866
} |
40,172 | Please create the froshims.db for the following flask app:
# Implements a registration form, storing registrants in a SQLite database, with support for deregistration
from cs50 import SQL
from flask import Flask, redirect, render_template, request
app = Flask(__name__)
db = SQL("sqlite:///froshims.db")
SPORTS = [
... | 1e21e4bcb72485c43a88ab2a3b50f2c3 | {
"intermediate": 0.6464335918426514,
"beginner": 0.20223434269428253,
"expert": 0.1513320654630661
} |
40,173 | sistemami questo <body bgcolor="#0000ff" background=url(https://cdn.hovia.com/app/uploads/Green-Tropical-Plant-Wallpaper-Mural-Plain-820x532.jpg")> | eb49fdd74fa7f1ff8acaba0df874da74 | {
"intermediate": 0.21574677526950836,
"beginner": 0.40125760436058044,
"expert": 0.38299560546875
} |
40,174 | Comment afficher des données de ce type avec une indexation comme un json.
[(INITIAL, END_PKI, {'subsystem_abbr': 'MGR', '@timestamp': '2024-02-20T09:42:56.000Z', 'event': {'original': 'Feb 20 09:42:56 15[MGR] <1> checkin of IKE_SA successful'}, 'message': '%{subsytem_abbr}: IKE_SA manager, handling synchronization fo... | 2eea6af7c6ca8114eb97faa0335017e3 | {
"intermediate": 0.3309198319911957,
"beginner": 0.4549320340156555,
"expert": 0.21414814889431
} |
40,175 | give me the code for an aop annotation that I can put on a method and it will log.info the inputs and the ouput while specifying the name of each | 7198d3d6f6524904485782a067edef5b | {
"intermediate": 0.5109885931015015,
"beginner": 0.21057452261447906,
"expert": 0.2784368395805359
} |
40,176 | bool level_3() {
float total = 0;
unsigned int *seed;
vector<float> n_arr;
// Random seed
seed = (unsigned int *)getauxval(AT_RANDOM);
srand(*seed);
// Add user input
add_user_input(&n_arr, "Number to add to array to equal zero: ");
// Add many random integers
for (int i = 0; i < 1024 * (8 + rand() % 102... | ba4d1b39e53dcad519f0e7faa71757fa | {
"intermediate": 0.2929113805294037,
"beginner": 0.39635804295539856,
"expert": 0.31073057651519775
} |
40,177 | this is my algorithm
Step 1: Start
Step 2: Set score to 0
Step 3: Ask the user “What is the capital of France?”
Step 4: If correct, add point
Step 5: Ask the user “What color do you get when you mix blue and yellow?”
Step 6: If correct, add a point
Step 7: Ask the user”Who is the president of the USA?”
Step 8: If corr... | 89c1b348e437ce8084902ca6cdbc2758 | {
"intermediate": 0.2249426394701004,
"beginner": 0.1522650122642517,
"expert": 0.6227923631668091
} |
40,178 | My current code only finds first video in this json. I want it to search all the jsonData.data.mediaDetails.
This is my current code : "const getMp4FileSizes = async (jsonData) => {
const mp4FileSizes = [];
if (jsonData.data.mediaDetails) {
for (const media of jsonData.data.mediaDetails) {
if (media.vide... | 0fba8f06f8886f010d55caf056ac4b3a | {
"intermediate": 0.29113316535949707,
"beginner": 0.5130364894866943,
"expert": 0.19583027064800262
} |
40,179 | Please show me the complete code for collectMediaVariantsAndImageUrls function as I can’t to figure out which code to add from previous code | 4dd2ae68286f68d4dfd9a01838c5ed87 | {
"intermediate": 0.6177976727485657,
"beginner": 0.17567987740039825,
"expert": 0.2065224051475525
} |
40,180 | Could you make me a Java script bookmark to automatically add site:YouTube.com to google search | ebd360948880c3fced83f4766c313430 | {
"intermediate": 0.43732398748397827,
"beginner": 0.18792301416397095,
"expert": 0.37475305795669556
} |
40,181 | this is my current code :
"
async function fetchAndSendMedia(number) {
try {
const response = await fetch(`https://react-tweet.vercel.app/api/tweet/${number}`);
const jsonData = await response.json();
if (jsonData.data === null) {
console.log("Protected content");
... | b81a0c795e978775af8eb8366dc062fe | {
"intermediate": 0.34728580713272095,
"beginner": 0.4313805103302002,
"expert": 0.22133372724056244
} |
40,182 | How do i replace pinterest for whatsapp in the code and ensure that when users click on the whatsapp icon or link, their default WhatsApp client will open in a new tab and they will be able to start a chat with me: import React from 'react';
import Link from "next/link";
import { Tooltip } from "react-tooltip";
import... | 0ff909ad70b3a6cc64128943211727f1 | {
"intermediate": 0.320573091506958,
"beginner": 0.46100541949272156,
"expert": 0.21842150390148163
} |
40,183 | If i am adding a js game that uses jquery to a react app, do i have to import jquery to react and if yes how? | 3155a9585d624f262edab740e30b834b | {
"intermediate": 0.5846304893493652,
"beginner": 0.24477653205394745,
"expert": 0.1705930382013321
} |
40,184 | If P and Q are logically equivalent, then the implication, inverse, converse, contrapositive are all logically equivalent.
1. True
2. False | d144e7505e93588901b27383c3fd9d1f | {
"intermediate": 0.3722848892211914,
"beginner": 0.3053441047668457,
"expert": 0.3223710358142853
} |
40,185 | Task 3
In this task, you will be learning how to scrape website (extracting data from websites and
cleaning the scrapped Data) and data visualization using matplotlib.
a) Write a Python script to scrape the Top 250 TV-shows of all time from the IMDB
website. After scraping the data, save it to a MySQL database named ‘t... | 076ad30f60cd425ba17219502443b365 | {
"intermediate": 0.5386105179786682,
"beginner": 0.22310136258602142,
"expert": 0.23828813433647156
} |
40,186 | I have a prestylized text layer on After Effects. Say its name is "01".
I need a script which imports txt file and creates multiple comps
for each line separated with "*****". (Comp names should be as "Text01", "Text02",...
Such as;
This is text 01
*****
This is text 02
*****
So script should create 2 comps and replace... | 8d7b70c7e2fc4c6eb28017ea0f467349 | {
"intermediate": 0.41955098509788513,
"beginner": 0.2192881852388382,
"expert": 0.36116087436676025
} |
40,187 | How can i send this every 3 seconds | 517f7e6a0a3016ad17dd1314080873fd | {
"intermediate": 0.4262734055519104,
"beginner": 0.16603171825408936,
"expert": 0.40769490599632263
} |
40,188 | I have a txt file with the content
This is a test 01
-----
This is a test 02
-----
This is a test 03
-----
This is a test 04
I want an user-interface which user can select txt file and run it. The script import the contents into separate lines with the delimeter "-----" and duplicate current after effects comp,(There ... | 411a37e91dedebaad77ffb093df08fa3 | {
"intermediate": 0.4180503785610199,
"beginner": 0.2705708146095276,
"expert": 0.3113787770271301
} |
40,189 | Can you find and fix the errors : function readTextFile(filePath) {
var file = new File(filePath);
var textArray = [];
if (file.exists) {
file.encoding = "UTF-8"; // Set the file encoding to UTF-8
file.open('r');
var text = file.read(); // Read the contents of the file
file.c... | 8e50c655517efbc6ca26a2425fc4af85 | {
"intermediate": 0.7375653386116028,
"beginner": 0.15202149748802185,
"expert": 0.11041311919689178
} |
40,190 | Using after effects scripting I'm getting an error on this line: var trimmedBlock = rawTextArray[i].trim(); | 64e59e316f42fac620b8d84858c8c7ea | {
"intermediate": 0.22330045700073242,
"beginner": 0.49658918380737305,
"expert": 0.28011029958724976
} |
40,191 | give me professional upload image and video "<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Object Detection with YOLO</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0... | fa7c5764394a1573b2270ccdfd9b4006 | {
"intermediate": 0.35111096501350403,
"beginner": 0.5482949018478394,
"expert": 0.10059409588575363
} |
40,192 | Task 3
In this task, you will be learning how to scrape website (extracting data from websites and
cleaning the scrapped Data) and data visualization using matplotlib.
a) Write a Python script to scrape the Top 250 TV-shows of all time from the IMDB
website. After scraping the data, save it to a MySQL database named ‘t... | 0c1b4a1af42f87b56fe123df9c60bed0 | {
"intermediate": 0.5702911019325256,
"beginner": 0.19412709772586823,
"expert": 0.23558175563812256
} |
40,193 | In this task, you will be learning how to scrape website (extracting data from websites and
cleaning the scrapped Data) and data visualization using matplotlib.
a) Write a Python script to scrape the Top 250 TV-shows of all time from the IMDB
website. After scraping the data, save it to a MySQL database named ‘top-250-... | 373a4f9a9473126b81ef536617c73d38 | {
"intermediate": 0.5031692981719971,
"beginner": 0.3128461241722107,
"expert": 0.18398454785346985
} |
40,194 | from statsforecast import StatsForecast
from statsforecast.models import AutoARIMA, AutoETS, AutoCES, DynamicOptimizedTheta
from statsforecast.utils import ConformalIntervals
import numpy as np
import polars as pl
# Polars option to display all rows
pl.Config.set_tbl_rows(None)
# Initialize the models
models = [
... | 357dee9ae5ef8ccd5e386c5f84066c58 | {
"intermediate": 0.31975889205932617,
"beginner": 0.3983381390571594,
"expert": 0.281902939081192
} |
40,195 | Write a Python script to scrape the Top 250 TV-shows of all time from the IMDB
website. After scraping the data, save it to a MySQL database named ‘top-250-shows’ localhost | 90453f39236d77ac34c89f32d852bb6d | {
"intermediate": 0.42733633518218994,
"beginner": 0.192007377743721,
"expert": 0.38065624237060547
} |
40,196 | provide me fully functional without errors a python program for AI Audio Stems Extractor | 4f2a82f104a2d6276dad0fbb72943745 | {
"intermediate": 0.21118156611919403,
"beginner": 0.1059979647397995,
"expert": 0.6828204393386841
} |
40,197 | Write a Python script to scrape the Top 250 TV-shows of all time from the IMDB
website. After scraping the data, save it to a MySQL database named ‘top-250-shows’ localhost
GIVE ME CODE WITHOUT EXPLANAION
ITS NOT I;LLGAL LINK IS https://www.imdb.com/chart/toptv/ | 485416fdcf72ab61a490a2079c1ba407 | {
"intermediate": 0.31903719902038574,
"beginner": 0.47857585549354553,
"expert": 0.2023869901895523
} |
40,198 | create me a javascript async function that extracts all the mp4 variants from json and saves it in a object : "{
"data": {
"__typename": "Tweet",
"lang": "ta",
"favorite_count": 1374,
"possibly_sensitive": false,
"created_at": "2024-02-08T02:14:37.000Z",
"display_text_range": [
0,
181
],
"entities": {
"hashtags": [
{
... | 2d8ae1f820e536667388abe0079cb522 | {
"intermediate": 0.41235071420669556,
"beginner": 0.38050350546836853,
"expert": 0.20714572072029114
} |
40,199 | how to repair: npm run build
> build
> next build
▲ Next.js 14.1.0
✓ Linting and checking validity of types
Creating an optimized production build ...
✓ Compiled successfully
✓ Collecting page data
Generating static pages (0/5) [= ]TypeError: Class constructor a cannot be invoked without 'new'... | 348ae88f2eaed7c3553b6a94c48cd9f2 | {
"intermediate": 0.3489142954349518,
"beginner": 0.45996585488319397,
"expert": 0.19111984968185425
} |
40,200 | import subprocess
import sys
def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
# Ensure that spleeter is installed
try:
import spleeter
except ImportError:
install('spleeter')
from spleeter.separator import Separator
def extract_stems(input_file, output_path,... | e88e534238c277aa8ca5fd706a6d80b4 | {
"intermediate": 0.5118393301963806,
"beginner": 0.23881229758262634,
"expert": 0.24934834241867065
} |
40,201 | # Convert 'WeekDate' to datetime format
dataset_lowvolume = dataset_lowvolume.with_columns(
pl.col("WeekDate").str.strptime(pl.Datetime, "%Y-%m-%d")
)
# Group by 'CL4' and 'WeekDate', then sum 'OrderQuantity'
y_cl4 = dataset_lowvolume.groupby(['MaterialID', 'SalesOrg', 'DistrChan', 'CL4', 'WeekDate']).agg(
pl.... | 5057c478475a672f34a701acdcd61317 | {
"intermediate": 0.3618541359901428,
"beginner": 0.27716419100761414,
"expert": 0.3609815835952759
} |
40,202 | Image we have a text layer in after effects let's say "This is a ***test***". I want to highlight word "test" by adding a rectangle shape behind text layer same size with test. How do it with scripting? (Notice that hightlighted test will be in between "***" characters. | 8a4f0fa7a6b6726c45ce4bd20fd4cf84 | {
"intermediate": 0.38686898350715637,
"beginner": 0.3634116053581238,
"expert": 0.24971947073936462
} |
40,203 | class VideoStream:
def __init__(self, video_bytes: bytes):
self.video_bytes = video_bytes
self.buffer = np.frombuffer(self.video_bytes, dtype=np.uint8)
self.frame_idx = 0
def read(self):
# Read the next frame from the video bytes buffer
frame = cv2.imdecode(self.buffer[s... | 06aab101c325bea44f49f86992b9b843 | {
"intermediate": 0.35258668661117554,
"beginner": 0.3243612051010132,
"expert": 0.3230521082878113
} |
40,204 | In this exercise, you’ll make some changes to Magpie.java to improve how it understands and responds.
Exercises
Teach Magpie to ask about your pets. Any time a statement contains “dog,” “cat,” or “pet,” have Magpie ask a followup question, like “What do your pets eat?”
If you say something about your teacher, Magpie... | d5a26359e35ef21dccd1c230696877d5 | {
"intermediate": 0.31690531969070435,
"beginner": 0.2973731458187103,
"expert": 0.38572147488594055
} |
40,205 | make it professional "<html>
<head>
<title>FastAPI File Upload</title>
</head>
<body>
<form method="POST" action="/uploadfile/" enctype="multipart/form-data">
<input type="file" name="file_upload">
<input type="submit">
</form>
</body>
</html> | 828742e951e2acaf5d908c7298c210f9 | {
"intermediate": 0.49326732754707336,
"beginner": 0.2478330135345459,
"expert": 0.25889962911605835
} |
40,206 | I do have the code
Where do you think it could possibly be caused the exception?
internal ObjectWeaponItem DropWeaponItem(SFD.Weapons.WeaponItemType wpnToDrop, int directionToDrop, Microsoft.Xna.Framework.Vector2 power, bool ignoreHolsteredModel, Microsoft.Xna.Framework.Vector2 dropOffset, bool handleCoverObject, Pla... | 28d73d90e0b683fbd237688c26883953 | {
"intermediate": 0.39743611216545105,
"beginner": 0.34321412444114685,
"expert": 0.2593498229980469
} |
40,207 | analogRead(A0) returns the value 414. What’s the voltage on the A0 pin on an Arduino | 98e6f3e9bfe9725ca529f702bd58d1c5 | {
"intermediate": 0.42158129811286926,
"beginner": 0.2650371193885803,
"expert": 0.313381552696228
} |
40,208 | Hi I would like to split sales by item. How can I do this in sql while keeping the totals equal? I.e a transaction of 10$ into 3 should be 33.33,33.33 and 33.34 | 12c4abd69d30885ab00ec913eb19b5fc | {
"intermediate": 0.45713844895362854,
"beginner": 0.20664066076278687,
"expert": 0.336220920085907
} |
40,209 | Help | d159c4235d4e4509c16120f4640b25ab | {
"intermediate": 0.3571339249610901,
"beginner": 0.32243141531944275,
"expert": 0.32043468952178955
} |
40,210 | i got a string "3 c=32 r=4-9"
write a python string that exctracts "4-9" | 3d0d864f15cacc9d9edd732705378aa6 | {
"intermediate": 0.2857537269592285,
"beginner": 0.4817226827144623,
"expert": 0.2325236052274704
} |
40,211 | convert list [3,4] to slice "(3,4) | 35d85098b65c4d4b3d4ba560c61f9bcb | {
"intermediate": 0.3538084030151367,
"beginner": 0.28877562284469604,
"expert": 0.35741594433784485
} |
40,212 | I am trying to make a nice looking octagon in Minecraft. It currently exists 40 blocks from a center point in NESW fashion. How long should each side be for it to look nice? | 929d974a99471b54bf4311f66e22d814 | {
"intermediate": 0.4637402594089508,
"beginner": 0.2978905141353607,
"expert": 0.23836928606033325
} |
40,213 | const altObjects = {
sockets: [],
parties: [],
altId: 0,
mousePosition: { x: 0, y: 0 },
mouseMove: true,
keyboard: true,
states: {
controlled: true,
locked: false
},
sendPacketToAll: (opcode, packetData = {}) => {
altObjects.sockets.forEach((ws) => {
... | fd9ae28f1050e83854a29e74478b96fe | {
"intermediate": 0.3329053223133087,
"beginner": 0.3928236961364746,
"expert": 0.27427101135253906
} |
40,214 | quick question, is there any benefit of storing keys in a HashMap as bytes in rust? | 4237a113bb428d23fa0b2cdbf0b3e0b2 | {
"intermediate": 0.35638850927352905,
"beginner": 0.19172118604183197,
"expert": 0.4518902897834778
} |
40,215 | This is my code:
pub fn parse_tracks<'a>(contents: &'a str) -> Result<TranscriptMap, &'static str> {
// let pseudomap: Arc<DashMap<String, Vec<(u32, u32, String)>>> = Arc::new(DashMap::new());
let mut tracks = contents
.par_lines()
.filter(|x| !x.starts_with("#"))
.filter_map(|x| Recor... | 708d9859d5ccd973e714103d02280980 | {
"intermediate": 0.3780178129673004,
"beginner": 0.3024728298187256,
"expert": 0.3195093274116516
} |
40,216 | This is my code:
pub fn parse_tracks<'a>(contents: &'a str) -> Result<TranscriptMap, &'static str> {
let mut tracks = contents
.par_lines()
.filter(|x| !x.starts_with("#"))
.filter_map(|x| Record::new(x).ok())
.fold(
|| HashMap::new(),
|mut acc, record| {
... | 6e9f5b2b856f1adf3aa86c3f750d0620 | {
"intermediate": 0.43713515996932983,
"beginner": 0.2696744203567505,
"expert": 0.2931903600692749
} |
40,217 | const altObjects = {
sockets: [],
parties: [],
altId: 0,
mousePosition: { x: 0, y: 0 },
mouseMove: true,
keyboard: true,
states: {
controlled: true,
locked: false
},
sendPacketToAll: (opcode, packetData = {}) => {
altObjects.sockets.forEach((ws) => {
... | c7386cde97e9a243f442e1f9a4455c87 | {
"intermediate": 0.3252173960208893,
"beginner": 0.35484084486961365,
"expert": 0.31994184851646423
} |
40,218 | const DirectionMapper = {
movements: [90, 225, 44, 314, 135, 359, 180, 270],
yawActions: {
90: { right: 1, left: 0, up: 0, down: 0 },
225: { down: 1, left: 1, up: 0, right: 0 },
44: { down: 0, left: 0, up: 1, right: 1 },
314: { down: 0, left: 1, up: 1, right: 0 },
135: { ... | 247bba6191ec95114ef343f8179b436d | {
"intermediate": 0.35921087861061096,
"beginner": 0.2175305187702179,
"expert": 0.42325860261917114
} |
40,219 | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract SimpleContract {
uint256 public number = 5;
// Long-named function
function ThisIsAVeryLongFunctionNameThatDoesTheSameThingAsTheShortOne() public {
number++;
}
}
contract SimpleContract {
uint256 public numner = 5;
//... | 1caca902ff938914bbd55cf7f1a400c1 | {
"intermediate": 0.40583518147468567,
"beginner": 0.36268532276153564,
"expert": 0.23147952556610107
} |
40,220 | def pseudo_rand_num_gen(seed=None, k=1):
if seed is None:
seed = int(time.time()) # Use current system time as seed
# Ensure we have an even length for the seed
seed_str = str(seed)
if len(seed_str) % 2 != 0:
seed_str = '0' + seed_str
n = len(seed_str)
rand_nums = []
for ... | 737fffee3579b7fa430b587156b6ee87 | {
"intermediate": 0.373975545167923,
"beginner": 0.17715109884738922,
"expert": 0.4488734006881714
} |
40,221 | contract SimpleContract {
uint256 public number = 5;
// Long-named function
function ThisIsAVeryLongFunctionNameThatDoesTheSameThingAsTheShortOne() public {
number++;
}
}
contract SimpleContract {
uint256 public number = 5;
// Short-named function
function A() public {
nu... | 45f1e1805b12555a9a21ec2b40d3b2a9 | {
"intermediate": 0.33560290932655334,
"beginner": 0.4528568983078003,
"expert": 0.21154020726680756
} |
40,222 | const DirectionMapper = {
yawActions: {
90: { right: 1, left: 0, up: 0, down: 0 },
225: { down: 1, left: 1, up: 0, right: 0 },
44: { down: 0, left: 0, up: 1, right: 1 },
314: { down: 0, left: 1, up: 1, right: 0 },
135: { down: 1, left: 0, up: 0, right: 1 },
359: { up:... | 5e7f51e748812b009139db4acc9caac1 | {
"intermediate": 0.42988497018814087,
"beginner": 0.25347787141799927,
"expert": 0.31663718819618225
} |
40,223 | const DirectionMapper = {
movements: [90, 225, 44, 314, 135, 359, 180, 270],
yawActions: {
90: { right: 1, left: 0, up: 0, down: 0 },
225: { down: 1, left: 1, up: 0, right: 0 },
44: { down: 0, left: 0, up: 1, right: 1 },
314: { down: 0, left: 1, up: 1, right: 0 },
135: { ... | 8f6bd422081f894381b0d3a378db84ad | {
"intermediate": 0.315583735704422,
"beginner": 0.4066173732280731,
"expert": 0.2777988314628601
} |
40,224 | b) Estimating π
Imagine a Cartesian coordinate plane and a square of side length 2 centered at the origin.
The square will have vertices at (-1, -1), (-1, 1), (1, 1), and (1, -1). Inside the square, a circle
of radius 1 unit centered at origin as shown below.
Figure 1: Monte-Carlo Simulation
Now, we randomly generate a... | f27f14d9694c45c24b0532186e8cfdff | {
"intermediate": 0.3885692059993744,
"beginner": 0.2778486907482147,
"expert": 0.3335821330547333
} |
40,225 | print(f"Estimated π using pseudo RNG: {pi_estimate_pseudo_rng}“)
print(f"Estimated π using built-in random.random(): {pi_estimate_random}”)
The updated script should now look like this:
# Assuming the part (a) code is imported as pseudo_rand_num_gen
from q1_a import pseudo_rand_num_gen
import random
def monte_carlo... | 8541cd1cf1e878b9b554e29ae5a00f06 | {
"intermediate": 0.40674450993537903,
"beginner": 0.3619741201400757,
"expert": 0.23128141462802887
} |
40,226 | Write python code to read an image of your choice and display only the left half of the image. | 8e78d173545c9430e977cc12dc08530d | {
"intermediate": 0.38590481877326965,
"beginner": 0.19657474756240845,
"expert": 0.4175204336643219
} |
40,227 | What does this mean in terms of building the website npm run build: Any file inside the folder pages/api is mapped to /api/* and will be treated as an API endpoint instead of a page. They are server-side only bundles and won't increase your client-side bundle size. | c8368c3cb2e2d6171fc31198162d2d60 | {
"intermediate": 0.6124440431594849,
"beginner": 0.25844070315361023,
"expert": 0.1291152387857437
} |
40,228 | Hi, could you check out the code in this code base, and tell me how you would go about building this website locally on Win10? https://github.com/Esurielt/spirit-seeker-site | e987fb4b93e752f1f68963a5d22dc9af | {
"intermediate": 0.6201077103614807,
"beginner": 0.13331836462020874,
"expert": 0.24657389521598816
} |
40,229 | how to speed the process "from ultralytics import YOLO
import pandas as pd
import os
model = YOLO("/content/saqib/best_seg_75.pt") ## add he path of your model
## add the path of your video
results = model.predict('/content/out.mp4', save=True, save_txt=True, stream=True, save_frames=True)
list_entries = []
i = 1... | 040296f64952670bd49cec5f61408c47 | {
"intermediate": 0.5621098875999451,
"beginner": 0.22989876568317413,
"expert": 0.20799140632152557
} |
40,230 | speed up my soluution 'from ultralytics import YOLO
import pandas as pd
import os
model = YOLO("/content/saqib/best_seg_75.pt") ## add he path of your model
## add the path of your video
results = model.predict('/content/out.mp4', save=True, save_txt=True, stream=True, save_frames=True)
list_entries = []
i = 1
fo... | b427afda32862819ce6f07f487c20396 | {
"intermediate": 0.43421950936317444,
"beginner": 0.28959351778030396,
"expert": 0.2761869728565216
} |
40,231 | Write a full code in python to convert any 2d images into 3d model | 64c2c6c41480a2aefa3e2746257c1361 | {
"intermediate": 0.3002091646194458,
"beginner": 0.1092541366815567,
"expert": 0.5905367136001587
} |
40,232 | i have model detection, i detect object in video, and save the result in labels, with class and bounding box, i want script that can take many labels and extract just the object without repeating it with possibilite of righ, left, up, down | 4e84a34675d02473f4b5b121b76384f8 | {
"intermediate": 0.4494077265262604,
"beginner": 0.12411988526582718,
"expert": 0.42647236585617065
} |
40,233 | # Group by ‘unique_id’ and calculate the length of each group
lengths = y_cl4.groupby('unique_id').agg(pl.count().alias('length'))
# Count the occurrences of each length
counts = lengths.groupby('length').agg(pl.count().alias('count'))
counts = counts.sort('length')
pl.Config.set_tbl_rows(200)
print(counts) ┌───... | c56eea5df693ac11e0319455f321c9a7 | {
"intermediate": 0.37903082370758057,
"beginner": 0.44379737973213196,
"expert": 0.17717181146144867
} |
40,234 | <frozen importlib._bootstrap>:241: RuntimeWarning: scipy._lib.messagestream.MessageStream size changed, may indicate binary incompatibility. Expected 56 from C header, got 64 from PyObject
<frozen importlib._bootstrap>:241: RuntimeWarning: scipy._lib.messagestream.MessageStream size changed, may indicate binary incompa... | dee9cd3c4c6b8ddaacdc9ce6540e07ec | {
"intermediate": 0.32800722122192383,
"beginner": 0.3323187232017517,
"expert": 0.33967408537864685
} |
40,235 | Hi | e08cc890dc56baf1eeba784bcb61b0f5 | {
"intermediate": 0.33010533452033997,
"beginner": 0.26984941959381104,
"expert": 0.400045245885849
} |
40,236 | AI stems audio AI
write me python program to extract audio files to drums, guitar, vocals, etc in high quality lossless | acf7498aa2773a667c50bfa44d199adb | {
"intermediate": 0.16278554499149323,
"beginner": 0.06499689072370529,
"expert": 0.7722175717353821
} |
40,237 | Hi, i got a problem in my unity project. NullReferenceException: Object reference not set to an instance of an object
FPSController.HandleMovement () (at Assets/Scripts/FPSController.cs:42)
FPSController.Update () (at Assets/Scripts/FPSController.cs:35)
There is code snippet it reffering to;
public class FPSController ... | ae13473efa8a68511e30e3bb7848488c | {
"intermediate": 0.4108164310455322,
"beginner": 0.43335631489753723,
"expert": 0.15582719445228577
} |
40,238 | Traceback (most recent call last):
File "D:\Рабочие файлы и программы\Хлебников_Movie_Code\MoviePyCodesNew.zip_expanded\projectMovie\loadusers.py", line 1, in <module>
from py2neo import Graph, Node
ModuleNotFoundError: No module named 'py2neo' | 39381df4bbd64951cec6984042e3d633 | {
"intermediate": 0.45001861453056335,
"beginner": 0.2639007866382599,
"expert": 0.28608065843582153
} |
40,239 | Please convert this Batch file to linux shell file:
@echo off
python -m venv venv
call venv\Scripts\activate.bat (for linux it is just venv\Scripts\activate. Remember chmod +x)
pip install flask
pip install youtube-search-python
pip install pytube
pip install moviepy
pip install pydub
python server.py
pause | ad8197a57d94d70451797054c5ce8ec5 | {
"intermediate": 0.32988032698631287,
"beginner": 0.30797824263572693,
"expert": 0.3621414005756378
} |
40,240 | Write a python function which sharpens an image. Try to find the associated kernel for sharpening images. | 0258767c7f7314d4c9d36bac1c74186e | {
"intermediate": 0.28332969546318054,
"beginner": 0.21367892622947693,
"expert": 0.5029913187026978
} |
40,241 | Write a python function which implements the convolution operation on an image given the kernel.def 2D_convolution(img, kernel):
# Write your code here
code compatible with jupyter notebook | c4dce6e297a47ae21033b9810a14278b | {
"intermediate": 0.3138531446456909,
"beginner": 0.24578097462654114,
"expert": 0.44036588072776794
} |
40,242 | Using after effects expressions I would like to select each word in a sentence of a text layer using Animator. I would like to control it using Controller Slider. | a5b011b28b5579340b73d5fcf8ec029f | {
"intermediate": 0.40825361013412476,
"beginner": 0.26353153586387634,
"expert": 0.3282148838043213
} |
40,243 | I have a PC. I need to make it only run one app: Skype. I'm thinking of using linux as a base, as I don't need any functionality nor a desktop interface, just the Skype app. How can I achieve this? | 00d76a2a1ad3dc72ab63dec9e30d568f | {
"intermediate": 0.30434152483940125,
"beginner": 0.317080020904541,
"expert": 0.37857842445373535
} |
40,244 | import os
from discord.ext import commands
import discord
from discord import app_commands
json_files_folder = 'comfyUI-workflows'
class Bot(commands.Bot):
def __init__(self):
intents = discord.Intents.default()
intents.message_content = True
super().__init__(command_prefix='!', intents=in... | 88a7d5977d4127bb1b0a529921863ba7 | {
"intermediate": 0.25545668601989746,
"beginner": 0.6421927809715271,
"expert": 0.10235056281089783
} |
40,245 | I have a PC. I need to make it only run one app: Skype. I’m thinking of using linux as a base, as I don’t need any functionality nor a desktop interface, just the Skype app. How can I achieve this? I want to achieve all this on a system without a graphical interface. What OS do you recommend for this (that has only ve... | 66202d9a593af7a00885488057464e7a | {
"intermediate": 0.30265429615974426,
"beginner": 0.3646959066390991,
"expert": 0.33264973759651184
} |
40,246 | I have a PC. I need to make it only run one app: Skype. I’m thinking of using linux as a base, as I don’t need any functionality nor a desktop interface, just the Skype app. How can I achieve this? I want to achieve all this on a system without a graphical interface. What OS do you recommend for this (that has only ver... | ec5dbfb42c145b6f5057f5d8c353db0e | {
"intermediate": 0.292106956243515,
"beginner": 0.3682247996330261,
"expert": 0.33966824412345886
} |
40,247 | def convolve_polynomial(poly1, poly2):
# The size of the resultant polynomial will be
# the sum of the sizes of the input polynomials minus 1
result_size = len(poly1) + len(poly2) - 1
# Initialize the result polynomial with zeros
result_poly = [0] * result_size
# Perform the convolutio... | 63252010991e7932673f66cf6dad2ad1 | {
"intermediate": 0.2739759683609009,
"beginner": 0.19089162349700928,
"expert": 0.5351323485374451
} |
40,248 | Imagine a Cartesian coordinate plane and a square of side length 2 centered at the origin.
The square will have vertices at (-1, -1), (-1, 1), (1, 1), and (1, -1). Inside the square, a circle
of radius 1 unit centered at origin as shown below.
Figure 1: Monte-Carlo Simulation
Now, we randomly generate a large number of... | 5480783b5b72a52acf657b1cfc29ab98 | {
"intermediate": 0.3849082887172699,
"beginner": 0.2665771245956421,
"expert": 0.3485146760940552
} |
40,249 | in ubuntu linux, how can I start an app in Kiosk mode form terminal? (For example Skype)? | dd5a4e91141d108bda6c76347e1c016e | {
"intermediate": 0.5480345487594604,
"beginner": 0.2133040577173233,
"expert": 0.23866139352321625
} |
40,250 | tell me the differences between python and scratch in points | de03aec72bb4c03ec4a4d5ca77e4bc5d | {
"intermediate": 0.4497406780719757,
"beginner": 0.20001740753650665,
"expert": 0.35024186968803406
} |
40,251 | Can you analyse the Bitcoin market | e8ae99c5ccbc4e7ce653d4d904104793 | {
"intermediate": 0.35270634293556213,
"beginner": 0.2720164358615875,
"expert": 0.37527719140052795
} |
40,252 | Give me a python coding to scrap TikTok data | 7e095c4d24864b580728a1c22d1411f5 | {
"intermediate": 0.4307386875152588,
"beginner": 0.19375041127204895,
"expert": 0.37551090121269226
} |
40,253 | Hi | 644b5e8383aa79f2bb1df6629ae0b350 | {
"intermediate": 0.33010533452033997,
"beginner": 0.26984941959381104,
"expert": 0.400045245885849
} |
40,254 | I had a nightmare where I was in my school, but things were "off". But as I continue, the layout changes. Soon after I find one of my teachers who apparently has moved into a new building, who leads me into the basement. The basement apparently leads to a long hallway, nothings off about it, besides the fact that there... | fecc9915d1cd83f9349a17b005179c25 | {
"intermediate": 0.31356656551361084,
"beginner": 0.3174292743206024,
"expert": 0.36900418996810913
} |
40,255 | How can i make it so my python code checks for an xpath and if it find the element clicks it and if it doesnt find that element it just continues? | dc0529d3e943dddf861470f70976f261 | {
"intermediate": 0.6303231120109558,
"beginner": 0.06724792718887329,
"expert": 0.3024290204048157
} |
40,256 | Write a python code snippet that checks a certain website (that is already opened in the webdriver) for the xpath of an element. As long as its present, it should wait and after its gone, the code should continue | a3479945da0127864b5d9ead25319e91 | {
"intermediate": 0.6138734817504883,
"beginner": 0.1546512097120285,
"expert": 0.23147527873516083
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.