row_id int64 0 48.4k | init_message stringlengths 1 342k | conversation_hash stringlengths 32 32 | scores dict |
|---|---|---|---|
9,541 | import {useCallback, useEffect, useState} from "react";
import {ReadyState} from "../enums/readyState";
type CupItem = {
futures_price_micro: number;
quantity: number;
spot_quantity: number;
side: string;
};
export interface BestMicroPrice {
buy: number;
sell: number;
}
export function useRustWsServer() ... | e285035127d5878bf799614c4f70ee61 | {
"intermediate": 0.3489033579826355,
"beginner": 0.4464230239391327,
"expert": 0.2046736478805542
} |
9,542 | best article on prey predator system | 67a4b2cb7fe825002a62271d0f6f9833 | {
"intermediate": 0.32477280497550964,
"beginner": 0.36521098017692566,
"expert": 0.3100161552429199
} |
9,543 | <svg-icon
name="card-theme"
width="32"
height="32"
:class="{ active: isActive}"
@click="setIsTable('true')"
/>
<svg-icon
name="table-theme"
width="32"
height="32"
:class="{ active: !isActive}"
@click="set... | c95e5295f26e522183c3e82877bfabb0 | {
"intermediate": 0.37943002581596375,
"beginner": 0.3718937039375305,
"expert": 0.24867618083953857
} |
9,544 | How to get the value from Option<String> or default it to "Hello" in Rust | 2a47da4a4ae4a279b2f9637765480b5e | {
"intermediate": 0.4188527464866638,
"beginner": 0.3651367127895355,
"expert": 0.21601051092147827
} |
9,545 | Previous operation has not finished这是什么意思? | c5d6e212565859f0001d6a87e6565410 | {
"intermediate": 0.32570117712020874,
"beginner": 0.3671545386314392,
"expert": 0.30714431405067444
} |
9,546 | Act as a VBA programmer. Write me VBA code to create PowerPoint slides about business analyst think like a seniorbusiness analist use your knowledge and create at least 10 slides and use Italian as language for the slides. | afac57b349d8b1aa08d9d715d650d1f8 | {
"intermediate": 0.1697935163974762,
"beginner": 0.6872751712799072,
"expert": 0.14293129742145538
} |
9,547 | Can you optimize the following C# Code:
#define Http2
//#define CLOUD_FLARE
//#define SEND_LUMINATI_HEADER
using System;
using System.IO.Compression;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Authentication;
using System.Threading.Tasks;
using System.Threading;
using System.Col... | 30f2a11bb9852f5501ade036192fb7b1 | {
"intermediate": 0.3547944128513336,
"beginner": 0.34378373622894287,
"expert": 0.30142179131507874
} |
9,548 | Can you optimize the following C# Code:
#define Http2
//#define SEND_LUMINATI_HEADER
using System;
using System.IO.Compression;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Authentication;
using System.Threading.Tasks;
using System.Threading;
using System.Collections.Generic;
usin... | e8f15fcbdeeeb172404665e6fee13f82 | {
"intermediate": 0.35278746485710144,
"beginner": 0.40159815549850464,
"expert": 0.2456144243478775
} |
9,549 | нужно исправить код: public.test_mv_incident_report_monitor as SELECT i.id, i.rule_id, i.rule_group, i.uuser, i.created_at, i.priority, i.is_deals, i.is_blacklisted, CASE WHEN i.is_deals THEN min(b.dealdtime) ELSE min(osec.dtime) END AS incidentstartdtime, CASE WHEN i.is_deals THEN max(b.dealdtime) ELSE max(osec.dtime)... | 0943bcc9c1ed7144beefdbc7a2f4a672 | {
"intermediate": 0.23415471613407135,
"beginner": 0.4726247489452362,
"expert": 0.29322052001953125
} |
9,550 | Can you create me a Minecraft Skript that toggles pvp on and off, but players with permission event.pvpbypass can attack even if pvp is disabled? | 7a7d497763c5b400d0a629ab23a9ae07 | {
"intermediate": 0.4910169541835785,
"beginner": 0.19779238104820251,
"expert": 0.311190664768219
} |
9,551 | what I want to do here is to make a visual marix constructor onhover menu, which you can use to update these vertices and edges arrays on the fly to model or draw in that visual marix constructor. I'm not sure how to corretly interpret that VMC. any ideas?: const canvas = document.createElement('canvas');
can... | ae8274341050b1abf3ecd8c93d87acf2 | {
"intermediate": 0.3572104275226593,
"beginner": 0.31404921412467957,
"expert": 0.3287404179573059
} |
9,552 | need that menu to disappear while out of the model bounds or range, because it glitching the performance. maybe you can do that mousemove function even better? output full fixed mousemove function code. also, there is some problem with the reddot not appearing when hovering on vertices. need to make that reddot to be t... | 3dec1397fe8e2aa5399f5e5406fb9e77 | {
"intermediate": 0.46562841534614563,
"beginner": 0.3070106506347656,
"expert": 0.2273610234260559
} |
9,553 | need that menu to disappear while out of the model bounds or range, because it glitching the performance. maybe you can do that mousemove function even better? output full fixed mousemove function code. also, there is some problem with the reddot not appearing when hovering on vertices. need to make that reddot to be t... | 577db359d75993d17cf460888eb65c06 | {
"intermediate": 0.46562841534614563,
"beginner": 0.3070106506347656,
"expert": 0.2273610234260559
} |
9,554 | how to filter array in javascript and check the other array? | 709e7814f38ace8ef680d00453f9eb6a | {
"intermediate": 0.6138095855712891,
"beginner": 0.09578384459018707,
"expert": 0.29040658473968506
} |
9,555 | I am using the function check_not_nested in R 4.0.2 and it works just fine, but when switching to R 4.2.2 I get the following error message:
Function check_not_nested not found in environment usethis.
why? | 2f854a8a457805f0e18eeb645aa6829d | {
"intermediate": 0.4152269661426544,
"beginner": 0.3888686001300812,
"expert": 0.1959044188261032
} |
9,556 | Convert string 192.168.110.1 date=2023-06-01 time=14:45:29 devname="FG60_CHITA_2" devid="FGT60FTK21027413" eventtime=1685598329379539561 tz="+0900" logid="0419016384" type="utm" to JSON | db6cb609aee3bf425ed356c1c544f58a | {
"intermediate": 0.3936181366443634,
"beginner": 0.23018763959407806,
"expert": 0.37619420886039734
} |
9,557 | do you have an api that i can use | dc974b3a8c3fa7555ce2ecbc931fc285 | {
"intermediate": 0.6702500581741333,
"beginner": 0.1453167349100113,
"expert": 0.1844332367181778
} |
9,558 | I used your code: import time
from binance.client import Client
from binance.enums import *
from binance.exceptions import BinanceAPIException
import pandas as pd
import requests
import json
import numpy as np
import pytz
import datetime as dt
date = dt.datetime.now().strftime("%m/%d/%Y %H:%M:%S")
print(date)
url = "... | efef55ce5dc3ea17fcbcc0d8bb91745d | {
"intermediate": 0.40732917189598083,
"beginner": 0.36594638228416443,
"expert": 0.22672443091869354
} |
9,559 | can you use python and chromedrive to webscrape data from this website, https://brokercheck.finra.org/, my input would be the name, output would be the examinations part on the website | 7ad821ab751e7168ec9b7628085d7033 | {
"intermediate": 0.4919739067554474,
"beginner": 0.11976458877325058,
"expert": 0.3882615566253662
} |
9,560 | Wenn ich in flutter einen Qr_Code scanne dann kommt die Fehlermeldung im Code:
"Disposed CameraController"
"StopImageStream() was called on a disposed CameraController"
Wie fixe ich das?
void _throwIfNotInitialized(String functionName) {
if (!value.isInitialized) {
throw CameraException(
'Uninitial... | 83c15fa2d55d2def9901d078e7c7fbe1 | {
"intermediate": 0.40519875288009644,
"beginner": 0.4002436399459839,
"expert": 0.19455760717391968
} |
9,561 | I used this code: import time
from binance.client import Client
from binance.enums import *
from binance.exceptions import BinanceAPIException
import pandas as pd
import requests
import json
import numpy as np
import pytz
import datetime as dt
date = dt.datetime.now().strftime("%m/%d/%Y %H:%M:%S")
print(date)
url = "... | 0892ee5a32975cd1448edd0ced8ef4db | {
"intermediate": 0.45297425985336304,
"beginner": 0.4213167428970337,
"expert": 0.12570896744728088
} |
9,562 | I used your code: import time
from binance.client import Client
from binance.enums import *
from binance.exceptions import BinanceAPIException
import pandas as pd
import requests
import json
import numpy as np
import pytz
import datetime as dt
date = dt.datetime.now().strftime("%m/%d/%Y %H:%M:%S")
print(date)
url = "... | f14fe5e79408ff49a591eee824c5dad0 | {
"intermediate": 0.4116753041744232,
"beginner": 0.3850894272327423,
"expert": 0.2032352238893509
} |
9,563 | def transcribe_audio(path):
# use the audio file as the audio source
with sr.AudioFile(path) as source:
audio_listened = r.record(source)
# try converting it to text
text = r.recognize_google(audio_listened)
return text переменная r не объявлена, что здесь могло подразумеваться? | 999dbe6951cbd692ec59af345470aafa | {
"intermediate": 0.3741142153739929,
"beginner": 0.31719768047332764,
"expert": 0.3086881637573242
} |
9,564 | now need to define new added edges position. I'm not sure how it should look. what if you add 3 small buttons after each "Vertex: <input", and if you press that button, then a new wireframe line appears from that corner that you can drag from its end and snap or auto-attach to any other vertices to construct a new mode... | cf9fd56111dd6802925dde5cbdf34983 | {
"intermediate": 0.33571213483810425,
"beginner": 0.34339439868927,
"expert": 0.32089346647262573
} |
9,565 | now need to define new added edges position. I'm not sure how it should look. what if you add 3 small buttons after each "Vertex: <input", and if you press that button, then a new wireframe line appears from that corner that you can drag from its end and snap or auto-attach to any other vertices to construct a new mode... | 0f922f300e56b0de67a6f68be01b4eb2 | {
"intermediate": 0.33571213483810425,
"beginner": 0.34339439868927,
"expert": 0.32089346647262573
} |
9,566 | now need to define new added edges position. I'm not sure how it should look. what if you add 3 small buttons after each "Vertex: <input", and if you press that button, then a new wireframe line appears from that corner that you can drag from its end and snap or auto-attach to any other vertices to construct a new mode... | 5e121d913a8ff00a25b9c6a6322706ba | {
"intermediate": 0.33571213483810425,
"beginner": 0.34339439868927,
"expert": 0.32089346647262573
} |
9,567 | <svg id="eyeSvg" xmlns="http://www.w3.org/2000/svg" height="36px" viewBox="0 0 24 24" width="36px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 ... | 188ca11cd2009531ba8cf4b206e959e6 | {
"intermediate": 0.3109818398952484,
"beginner": 0.36882659792900085,
"expert": 0.32019153237342834
} |
9,568 | Create a simple user interface for a cyberpunk football game using java . This should be easy to navigate and understand. | 61d6f5a2c57bbb4fabbc0998b1e09aff | {
"intermediate": 0.47438952326774597,
"beginner": 0.18894201517105103,
"expert": 0.336668461561203
} |
9,569 | “Disposed CameraController”
“StopImageStream() was called on a disposed CameraController”
Wie fixe ich das?
import 'dart:async';
import 'package:code_scan/code_scan.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/patient_app_localizations.dart';
import 'package:patient_app/models/s... | f2a3625aa152d7e203a54f4c18fced53 | {
"intermediate": 0.32777103781700134,
"beginner": 0.3456094563007355,
"expert": 0.3266194462776184
} |
9,570 | Me gustaría que en este código, aparezca el temporizador en pantalla al mismo tiempo que las preguntas, y que cuando se termine el tiempo, el espacio donde está el texto de la pregunta aparezca ahora un texto que diga: Tiempo terminado, tu puntaje es: import json
import random
import os
import googletrans
from googletr... | 05509f4030f2ced002ae7aed5adad5e2 | {
"intermediate": 0.29380956292152405,
"beginner": 0.511001467704773,
"expert": 0.195188969373703
} |
9,571 | need that menu to disappear while out of the model bounds or range, because it glitching the performance. maybe you can do that mousemove function even better? output full fixed mousemove function code. also, there is some problem with the reddot not appearing when hovering on vertices. need to make that reddot to be t... | 4ecde01a8396613699f480396cb03d75 | {
"intermediate": 0.46562841534614563,
"beginner": 0.3070106506347656,
"expert": 0.2273610234260559
} |
9,572 | how can i write makarov matrix algorithm in matlab? | 7bd0e0354ea15186da8e5aa05e97f9e6 | {
"intermediate": 0.10638376325368881,
"beginner": 0.05467831715941429,
"expert": 0.8389379382133484
} |
9,573 | c# wpf live charts clear display | d237d6fb5cfaff0d684e3ba5528f3bff | {
"intermediate": 0.3974880576133728,
"beginner": 0.2800578474998474,
"expert": 0.32245415449142456
} |
9,574 | deviceElement = device.split('|') # ╨рёяръют√трхь фрээ√х юЄ фхтрщё ш чряюыэ хь ъюэёюы№ (с√ы ЇюЁьрЄ Hostname|IP|MAC|Ports)
AttributeError: 'int' object has no attribute 'split' | 675001f675a6f2c6805f0c020dc62e75 | {
"intermediate": 0.34963545203208923,
"beginner": 0.3390956223011017,
"expert": 0.3112688958644867
} |
9,575 | Assume the following code:
modify the code in order to calculate the average queuing delay during the simulation. (as a parameter of Measure class)
import simpy
import random
import matplotlib.pyplot as plt
# Parameters
num_edge_nodes = 1
edge_buffer_size = 15
cloud_buffer_size = 20
# service times
cloud_server_time... | a91e67cee8393470e665868a554c3c2f | {
"intermediate": 0.33187994360923767,
"beginner": 0.4394994378089905,
"expert": 0.22862061858177185
} |
9,576 | import { Router } from “express”;
import User from “…/models/User”;
import CryptoJS from “crypto-js”;
import dotenv from “dotenv”;
const authRouter = Router();
dotenv.config();
authRouter.post(“/register”, async (req, res) => {
const newUser = new User({
username: req.body.username,
email: req.body.email,
password: Cry... | 7868a7113bc6f5ca88c7b1e62456d33c | {
"intermediate": 0.4918089509010315,
"beginner": 0.2880063056945801,
"expert": 0.22018477320671082
} |
9,577 | I have this c# code how can I make it to use the combobox which get the events to use it as the parameter of the method?
private void ComboBoxH1_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
ColorearCombobox(ComboBoxH1);
} | ed241b1044901a847d9f986dd186818d | {
"intermediate": 0.7754436731338501,
"beginner": 0.13820482790470123,
"expert": 0.08635152131319046
} |
9,578 | Give me a short script to touch files in a directory recusively | 3683745fc5c8b174e94a918e6b8539ac | {
"intermediate": 0.4493996500968933,
"beginner": 0.1761922389268875,
"expert": 0.37440812587738037
} |
9,579 | in c# is there a way to do this without using new?
articulos = new ObservableCollection<Articulo>(articulos.OrderBy(a => a.Clase)); | 55cddec043fa23fa81f2b7e2d7d8bac1 | {
"intermediate": 0.5736086368560791,
"beginner": 0.23188741505146027,
"expert": 0.19450397789478302
} |
9,580 | I have a kotlin app. What would be the best way to implement a picture gallery - it would read images from a database (which is already implemented and working), add new pictures from internal storage and delete them? | 783fba3161c79e802416395eb520ef94 | {
"intermediate": 0.7076569199562073,
"beginner": 0.06210677698254585,
"expert": 0.23023639619350433
} |
9,581 | password !== req.body.password && res.status(401).json("Wrong credentials"); | 0736ff4ce7456106e97dba1a5c6b6210 | {
"intermediate": 0.40048912167549133,
"beginner": 0.2758738696575165,
"expert": 0.3236369788646698
} |
9,582 | Zuora Postman API Error Required MultipartFile parameter 'file' is not present | 4ddfc3711026e30d4e3cc76e5095c70b | {
"intermediate": 0.6903195977210999,
"beginner": 0.13958220183849335,
"expert": 0.1700981706380844
} |
9,583 | Добавь слева от надписи товары по акции иконку назад , а справа от надписи товараы а=по акции добавь иконку корзина : <?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.andr... | 006496d9d24bdda7be11d891de702fa8 | {
"intermediate": 0.35300296545028687,
"beginner": 0.42912229895591736,
"expert": 0.21787475049495697
} |
9,584 | authRouter.post("/login", async (req, res) => {
try {
const user = await User.findOne({ username: req.body.username });
!user && res.status(401).json("Wrong credentials");
if (user && process.env.PASSWORD_SECRET) {
const hashedPassword = CryptoJS.AES.decrypt(
user.password,
process.e... | 9c0e6e173961ef6f2c023b78b9d7a49d | {
"intermediate": 0.3934479355812073,
"beginner": 0.3377728760242462,
"expert": 0.2687792181968689
} |
9,585 | I used this code: import time
from binance.client import Client
from binance.enums import *
from binance.exceptions import BinanceAPIException
import pandas as pd
import requests
import json
import numpy as np
import pytz
import datetime as dt
import ccxt
binance_futures = ccxt.binance({ 'option': { 'defaultMarket': 'f... | d5053c78f144d58973210c5d9832d40a | {
"intermediate": 0.4590875506401062,
"beginner": 0.4009094536304474,
"expert": 0.1400030255317688
} |
9,586 | i have a kotlin app, in which i want to be able to add pictures from internal storage. i already have a database and a class prepared, and i want to be able to read a picture’s location in the internal storage, and store it in a string of the object. how do i do that? | 3b738fd0d072eb3b42e40fef65886f49 | {
"intermediate": 0.6683378219604492,
"beginner": 0.16861651837825775,
"expert": 0.16304564476013184
} |
9,587 | Write a python script following my instructions.
1) The program takes a path as an argument. It will check every subdirectory of that path (not recursive) for a file called `info.yaml`.
2) The script will show a report of every directory, showing whether there is a yaml file present or not, or if the `info.yaml` file ... | 3aa60531ffe4b81c1db4056cdb3cd7d0 | {
"intermediate": 0.503535807132721,
"beginner": 0.1729613095521927,
"expert": 0.3235028386116028
} |
9,588 | karaf check host port bundles | e85cb526288a5a50d2106b398fc3898a | {
"intermediate": 0.4674607217311859,
"beginner": 0.25533297657966614,
"expert": 0.27720633149147034
} |
9,589 | teach if else and elif statements to a highschooler with no coding experience using analogies and code examples | 046242177b3d807abf75843ec1478b72 | {
"intermediate": 0.2792695462703705,
"beginner": 0.3753582835197449,
"expert": 0.34537217020988464
} |
9,590 | i am creating a layout for a context menu in kotlin, and it says it cannot resolve class item | 0f7781ac2cadb568873b0d57ed09d4d9 | {
"intermediate": 0.5295552015304565,
"beginner": 0.3281240165233612,
"expert": 0.14232081174850464
} |
9,591 | How to use a class and have two different values stored in it java | 2ba1d3f4d8eabc41f993bd97a8799b81 | {
"intermediate": 0.39491236209869385,
"beginner": 0.45222461223602295,
"expert": 0.1528630405664444
} |
9,592 | i have a kotlin app. i want to be able to add and delete images, and see them. i have a database prepared, its named ImageDB. I also have an Images class, which holds information about an image. i have addImage and deleteImage methods. these already exist and work. In my activity, i have a button which adds an image fr... | a6dfe19e0670202f77863cbe1686887c | {
"intermediate": 0.5709146857261658,
"beginner": 0.2544954717159271,
"expert": 0.1745898723602295
} |
9,593 | How to use gpu in a docker container | 35d9cc155c0cf83bbda1ea41245bffd9 | {
"intermediate": 0.4777218699455261,
"beginner": 0.19156786799430847,
"expert": 0.3307103216648102
} |
9,594 | How to use layers in docker | 51b9ddbad7bbb1e08f741b9a5f63685a | {
"intermediate": 0.5729551911354065,
"beginner": 0.08169624954462051,
"expert": 0.345348596572876
} |
9,595 | authRouter.post("/login", async (req, res) => {
try {
const user = await User.findOne({
username: req.body.username,
});
if (!user) {
return res
.status(401)
.json({ message: "Incorrect username or password" });
}
let hashedPassword = CryptoJS.AES.decrypt(
user.p... | 2d4e3e445b71349395617241a73be3ec | {
"intermediate": 0.35575413703918457,
"beginner": 0.34122467041015625,
"expert": 0.3030211329460144
} |
9,596 | how to use (private move[] moves;) in java to store the same values multiple times for multiple other objects | 04bc398fa1e0f7499cdbd1cf32fd6ff9 | {
"intermediate": 0.5466845631599426,
"beginner": 0.17003273963928223,
"expert": 0.28328272700309753
} |
9,597 | I used your code: import time
from binance.client import Client
from binance.enums import *
from binance.exceptions import BinanceAPIException
import pandas as pd
import requests
import json
import numpy as np
import pytz
import datetime as dt
import ccxt
binance_futures = ccxt.binance({ 'option': { 'defaultMarket': 'f... | 70c381d1946b871ff5ae964371977e56 | {
"intermediate": 0.45019787549972534,
"beginner": 0.4073549807071686,
"expert": 0.1424470990896225
} |
9,598 | i have a kotlin app. in my activity, i want to be able to add pictures from my phone gallery to a database. i want to store them as locations on the internal storage. the databases name is ImageDB, and it has an addImage method. it all works fine. i also have an Images class, which stores data about the image, if it ha... | aa1ee927a0ac3c7a0d6a8943203c5413 | {
"intermediate": 0.6732490062713623,
"beginner": 0.19738012552261353,
"expert": 0.12937094271183014
} |
9,599 | debug it:
import simpy
import random
import matplotlib.pyplot as plt
import numpy as np
# Parameters
num_edge_nodes = 1
edge_buffer_size = 10
cloud_buffer_size = 15
# service times
cloud_server_time = 10
A_edge_service_time = 4
A_cloud_service_time = 2
B_edge_sevice_time = 2
B_cloud_service_partialprocess = 4
B_cloud... | 64b0638a9dc47e537975277d52881185 | {
"intermediate": 0.34310340881347656,
"beginner": 0.42063507437705994,
"expert": 0.2362615019083023
} |
9,600 | I used your code: import time
from binance.client import Client
from binance.enums import *
from binance.exceptions import BinanceAPIException
import pandas as pd
import requests
import json
import numpy as np
import pytz
import datetime as dt
import ccxt
binance_futures = ccxt.binance({ 'option': { 'defaultMarket': 'f... | b25b2c4427810731235b3ee6374bca70 | {
"intermediate": 0.45019787549972534,
"beginner": 0.4073549807071686,
"expert": 0.1424470990896225
} |
9,601 | who created you | 976a5fdfa47d37cc402e25addb34746f | {
"intermediate": 0.38410279154777527,
"beginner": 0.3257874548435211,
"expert": 0.2901097536087036
} |
9,602 | Version "‘3.9’" in "./docker-compose.yml" is invalid. | a2945e00a14851b898c262f2aa78423a | {
"intermediate": 0.3858725130558014,
"beginner": 0.26124316453933716,
"expert": 0.35288429260253906
} |
9,603 | Here is a class written in Java:
package pieces;
import model.Action;
import model.Const;
import model.Piece;
public class Aramis extends Piece {
public Aramis(int owner) {
super.setOwner(owner);
super.setPieceType(ARAMIS);
super.loadSide1(actionMatrix1);
super.loadSide2(actionMatrix2);
}
int[][] action... | d47f9c62eac751bb2918a6fc3cf37c4e | {
"intermediate": 0.3259449005126953,
"beginner": 0.42077070474624634,
"expert": 0.25328439474105835
} |
9,604 | if (user && process.env.JWT_SECRET) {
const accessToken = jwt.sign(
{ id: user.id, isAdmin: user.isAdmin },
process.env.JWT_SECRET,
{ expiresIn: "3d" }
);
}
const { password, ...others } = user.toObject();
res.status(200).json({ others, accessToken });
fix it | 0acc2f93967f4074169c5cf3cb4a6358 | {
"intermediate": 0.36488285660743713,
"beginner": 0.3888382911682129,
"expert": 0.24627885222434998
} |
9,605 | Write a java program that works as a small online shop. The program should use the concept of one-dimensional arrays to implement
this small project.
Take into consideration the following requirements:
1- The shop has 10 products.
2- Name the shop after your name and display your Academic ID as the first thing to be di... | 1f08784be8291480cf30433bf6756f79 | {
"intermediate": 0.43971508741378784,
"beginner": 0.24881774187088013,
"expert": 0.3114672303199768
} |
9,606 | Given the following description can please Define all necessary constraints to ensure correctness of the database. These include
integrity constraints, keys, referential integrity, domain integrity, and user-defined constraints and appropriate indexes for the tables and justify your choice based on their usefulness
for... | 8855eae15ab21d1cbba2bd87afcb654e | {
"intermediate": 0.5139751434326172,
"beginner": 0.24458235502243042,
"expert": 0.24144253134727478
} |
9,607 | write a python script that interacts with an free chatbot api | f2f8f13cbaef251bf61f84f604b85df0 | {
"intermediate": 0.5518206357955933,
"beginner": 0.15957753360271454,
"expert": 0.2886018455028534
} |
9,608 | how to make a pdf file using pdf printer with python 3 script? | 6f1557e2bb23ab1618844d065c73a55e | {
"intermediate": 0.49392181634902954,
"beginner": 0.21809232234954834,
"expert": 0.2879858613014221
} |
9,609 | write a python program that interacts with a free chatbot api | 999ece8d7dd00b171728b49ab6153587 | {
"intermediate": 0.5546014308929443,
"beginner": 0.14661532640457153,
"expert": 0.29878315329551697
} |
9,610 | write an algorithm code for registration form | 3764ed813bf5b2533d96a392128d6e9c | {
"intermediate": 0.1241096779704094,
"beginner": 0.13728275895118713,
"expert": 0.7386075258255005
} |
9,611 | give me few examples to convert pdf to jpeg with imagemagick | 73d5bea6dd94d4a8b34323596bfd5b36 | {
"intermediate": 0.4552229642868042,
"beginner": 0.14345280826091766,
"expert": 0.40132421255111694
} |
9,612 | I have a multi connectors microservice with rest, soap, grpc, graphql and I want to register it in the eureka discover server to be accessed from the cloud gateway of course I already added the dependency Eureka client and I added also the config spring.cloud.discovery.enabled=true in application.propreties but it stil... | 46cdb2b23a5d9212915abac1b57479bb | {
"intermediate": 0.5808395743370056,
"beginner": 0.1773587018251419,
"expert": 0.24180181324481964
} |
9,613 | Write a C# layout and position class.
- The class should have an Update(OriginPosition, OriginSize, Padding, GrowthDirection, ElementSize, ElementCount) method which is called each frame, the update method checks if the layout is "dirty" or the ElementCount changed (needs a calculation refresh), this is set with a Set... | ca86dc14faaa27ae98700490a38a13b3 | {
"intermediate": 0.4636070728302002,
"beginner": 0.22322112321853638,
"expert": 0.31317177414894104
} |
9,614 | Write a C# layout and position class.
- The class should have an Update(OriginPosition, OriginSize, Padding, GrowthDirection, ElementSize, ElementCount) method which is called each frame, the update method checks if the layout is "dirty" or the ElementCount changed (needs a calculation refresh), this is set with a Set... | 1172e4b07a6dfd6134f36100a6d5322a | {
"intermediate": 0.4636070728302002,
"beginner": 0.22322112321853638,
"expert": 0.31317177414894104
} |
9,615 | I want you to act as a data scientist and code for me. I will give you some example of my dataset. Please build a machine learning model the prediction. | e84fa8a74d95d658282280cacdc6d8f0 | {
"intermediate": 0.20642215013504028,
"beginner": 0.13400305807590485,
"expert": 0.6595748662948608
} |
9,616 | Create me a simple Unity game in 2D with a top view. The circle character should WASD in all directions, and food circles will spawn around him. The most important condition is to add ML Agents and then explain to me how to set everything up. If anything, I have Unity and ML Agents installed and imported. I only need t... | 59b5b50a29b77db2d67311c1280ba311 | {
"intermediate": 0.2356054186820984,
"beginner": 0.17129892110824585,
"expert": 0.5930956602096558
} |
9,617 | Create me a simple Unity game in 2D with a top view. The circle character should WASD in all directions, and food circles will spawn around him. The most important condition is to add ML Agents and then explain to me how to set everything up. If anything, I have Unity and ML Agents installed and imported. I only need t... | 997d3209624524688312ae9731522262 | {
"intermediate": 0.2356054186820984,
"beginner": 0.17129892110824585,
"expert": 0.5930956602096558
} |
9,618 | Hi, Chatty | b1099524e076bbc4d369023b3e2cae06 | {
"intermediate": 0.3554985821247101,
"beginner": 0.30953460931777954,
"expert": 0.33496683835983276
} |
9,619 | Create me a simple Unity game in 2D with a top view. The circle character should WASD in all directions, and food circles will spawn around him. The most important condition is to add ML Agents and then explain to me how to set everything up. If anything, I have Unity and ML Agents installed and imported. I only need t... | c7fb25176294fbc348cc1619f190b6be | {
"intermediate": 0.2356054186820984,
"beginner": 0.17129892110824585,
"expert": 0.5930956602096558
} |
9,620 | Create me a simple Unity game in 2D with a top view. The circle character should WASD in all directions, and food circles will spawn around him. The most important condition is to add ML Agents and then explain to me how to set everything up. If anything, I have Unity and ML Agents installed and imported. I only need t... | 7e1ae62a7e12b1da2a0bbc77d4d63d86 | {
"intermediate": 0.2356054186820984,
"beginner": 0.17129892110824585,
"expert": 0.5930956602096558
} |
9,621 | microsoft scheduler run visual studio solution every day | 94d21dd5f07dfc8e25cc3a6fc5c78dff | {
"intermediate": 0.3934648334980011,
"beginner": 0.23077096045017242,
"expert": 0.37576422095298767
} |
9,622 | import jwt from "jsonwebtoken";
const verifyToken = (req, res, next) => {
const authHeader = req.headers.token;
if (authHeader) {
jwt.verify(token, process.env.JWT_SECRET, (err, user) => {
if (err) res.status(403).json("Token is invalid");
req.user = user;
next();
});
} else {
retur... | cc4da89ba0242125202e95239d98b577 | {
"intermediate": 0.3995126485824585,
"beginner": 0.3619089424610138,
"expert": 0.23857834935188293
} |
9,623 | import jwt from "jsonwebtoken";
const verifyToken = (req, res, next) => {
const authHeader = req.headers.token;
if (authHeader && process.env.JWT_SECRET !== undefined) {
jwt.verify(authHeader, process.env.JWT_SECRET, (err, user) => {
if (err) res.status(403).json("Token is invalid");
req.user = use... | 90c3ea7d4403f6951ed8b855a06a58c7 | {
"intermediate": 0.29443079233169556,
"beginner": 0.43282729387283325,
"expert": 0.2727418839931488
} |
9,624 | import { Request, Response, NextFunction } from "express";
import jwt from "jsonwebtoken";
const verifyToken = (req: Request, res: Response, next: NextFunction): void => {
const authHeader: string | undefined = req.headers.token as
| string
| undefined;
if (authHeader && process.env.JWT_SECRET !== undefine... | 39bb0645ddf8a3fdff104527e37a2715 | {
"intermediate": 0.3503504991531372,
"beginner": 0.3961409032344818,
"expert": 0.25350862741470337
} |
9,625 | I need an AHK code that loops left-click and releases every 150ms. | f6d9220c1ad89d1d4fe35113c8baad86 | {
"intermediate": 0.263528048992157,
"beginner": 0.4551050066947937,
"expert": 0.2813669443130493
} |
9,626 | I need an AHK code that loops left-click and releases every 150ms. | 76d24356a869c82b40ad9381853a246d | {
"intermediate": 0.263528048992157,
"beginner": 0.4551050066947937,
"expert": 0.2813669443130493
} |
9,627 | C# HttpClient use the same HttpClient and change AllowAutoRedirect per request | 8f94a1fb8ac101e6c153e9ec18f2f30a | {
"intermediate": 0.4963623881340027,
"beginner": 0.19198021292686462,
"expert": 0.3116573691368103
} |
9,628 | Get the code below and convert it to a telegram bot based on “python-telegram-bot 3.17”, but change its funtion to like these explanation:
- It should review and analyze the files when someone forward it to the bot according the sample bashscript below.
- Only Device Overview, Config Overview and mining Overview are n... | 92fd6435aa734021cba27ae0b306d5a5 | {
"intermediate": 0.3279199004173279,
"beginner": 0.3819957673549652,
"expert": 0.2900843918323517
} |
9,629 | In Australia, an address is made up of a number followed by a street name, then a street type (e.g. St, Ave, Cres, Rd, Pl), then a suburb or town and finally a 4 digit postcode. Describe an address using a railroad diagram. | 1e7ed40ef5661ed9388b30be386716e9 | {
"intermediate": 0.3424856960773468,
"beginner": 0.24468542635440826,
"expert": 0.4128289222717285
} |
9,630 | Create me a simple Unity game in 2D with a top view. The circle character should WASD in all directions, and food circles will spawn around him. The most important condition is to add ML Agents and then explain to me how to set everything up. If anything, I have Unity and ML Agents installed and imported. I only need t... | 61926cf1d56dc9f04e6893b376ef72a0 | {
"intermediate": 0.2356054186820984,
"beginner": 0.17129892110824585,
"expert": 0.5930956602096558
} |
9,631 | As a python developer, write a telegram bot with "python-telegram-bot" 3.17 to do the explanation below:
my token is: 1935475560:AAHwHnildfDXMxNw_XVJSt6J7cCIcyO_t9o
I have 3 zip files below with names beside the bot.py file which you will code it:
braiins-toolbox_aarch64-linux.zip
braiins-toolbox_armv7-linux.zip
braii... | fa0ccc7d0f1da1064f0179c5b94b4168 | {
"intermediate": 0.3884311020374298,
"beginner": 0.2800529897212982,
"expert": 0.33151593804359436
} |
9,632 | i have an EmptyObject called "Training Area", in this object i have Player, Floor, WallTop, WallBottom, WallRight, WallLeft and all spawning foods.
when i have more than 1 "Training Area", all food from other Training Areas spawns in first Training Area
here's FoodSpawner.cs, which in "Training Area":
using System.Col... | 59e09723fb92571f0a9f7efd75b21ab1 | {
"intermediate": 0.3473266065120697,
"beginner": 0.43868011236190796,
"expert": 0.21399325132369995
} |
9,633 | I need a telegram bot based on python-telegram-bot 3.17 to decrypt and unzip the files with extension ".zip.enc" that users forward them to it
decrypt command:
openssl aes-128-cbc -d -md md5 -nosalt -pass pass:braiins -in "forwarded_file" -out "random_name"
unzip command:
unzip -q "random_name".zip -d "random_... | 527dea3215212fb4ad45467597874737 | {
"intermediate": 0.2931422293186188,
"beginner": 0.4942917823791504,
"expert": 0.21256597340106964
} |
9,634 | Flutter web platform. how to direct download file? | 5a0cff9d127c654e9d9389897e5c71ec | {
"intermediate": 0.5772952437400818,
"beginner": 0.18191660940647125,
"expert": 0.24078813195228577
} |
9,635 | i have an EmptyObject called "Training Area", in this object i have Player, Floor, WallTop, WallBottom, WallRight, WallLeft and all spawning foods.
when i have more than 1 "Training Area", all food from other Training Areas spawns in first Training Area
here's FoodSpawner.cs, which in "Training Area":
using System.Col... | 592284a2ed1b037b8cc5d4f61f0f28e4 | {
"intermediate": 0.3473266065120697,
"beginner": 0.43868011236190796,
"expert": 0.21399325132369995
} |
9,636 | Flutter web platform. how to direct download file with authorization headers? | c5060e20af909adc4a690b3b0b7286e8 | {
"intermediate": 0.622072696685791,
"beginner": 0.17533758282661438,
"expert": 0.2025897204875946
} |
9,637 | How to print user_chat_id in the welcome_text?
def start_command(update, context):
user_chat_id = update.message.chat_id
welcome_text = '''
Welcome to the 24/7 Support Branch!{user_chat_id}
If you would like to access forward this message to B.
'''
update.message.reply_text(welcome_text) | cd251d73d47757892bd9c724d2d47255 | {
"intermediate": 0.38171353936195374,
"beginner": 0.35808438062667847,
"expert": 0.2602020800113678
} |
9,638 | Can you show me c++ code for ue5 that will let me move a UI window by the top border bar of an user widget | 8c23381a2270802d475bc04b42771fef | {
"intermediate": 0.6353997588157654,
"beginner": 0.13461336493492126,
"expert": 0.22998689115047455
} |
9,639 | Event system for cpp | 7cec0e6b24509a364688c375cbbfc3ab | {
"intermediate": 0.28913018107414246,
"beginner": 0.3480817675590515,
"expert": 0.36278802156448364
} |
9,640 | Flutter web platform. How to save binary data? | 530d1b60f4c6db0256635fb094998372 | {
"intermediate": 0.5359576344490051,
"beginner": 0.14512939751148224,
"expert": 0.31891295313835144
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.