row_id int64 0 48.4k | init_message stringlengths 1 342k | conversation_hash stringlengths 32 32 | scores dict |
|---|---|---|---|
32,122 | image = cv2.imread("0.0/01.pgm", cv2.COLOR_BGR2GRAY)
def get_coords_by_threshold(image: np.ndarray, threshold: int = 150) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixels_by_min_threshold(
image: np.ndarra... | 3d7046d2c9f6b5a438df91665de4df0c | {
"intermediate": 0.27953797578811646,
"beginner": 0.3785533308982849,
"expert": 0.34190869331359863
} |
32,123 | def Change_Sheet(index):
global Choose_sheet
Choose_sheet = self.cb.itemText(index)
print("选择的项是:", self.cb.itemText(index))
QMessageBox.information(self, "Tips",
"CASE源已设置为" + self.cb.itemText(index), QMessageBox.Ok)
return... | 079593401e6b7ec39d72a44a728c5808 | {
"intermediate": 0.2979243993759155,
"beginner": 0.3711282014846802,
"expert": 0.3309473991394043
} |
32,124 | Write me a mergerfs command that merges the directory /hdd1/downloads into /home/x/downloads | 684cfb7b0653c95a0569199e8ab993f3 | {
"intermediate": 0.470395565032959,
"beginner": 0.1767140030860901,
"expert": 0.3528904616832733
} |
32,125 | image = cv2.imread("0.0/01.pgm", cv2.COLOR_BGR2GRAY)
def get_coords_by_threshold(image: np.ndarray, threshold: int = 150) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixels_by_min_threshold(
image: np.ndarra... | 46ef33d8385465526e427a73f71f8385 | {
"intermediate": 0.27953797578811646,
"beginner": 0.3785533308982849,
"expert": 0.34190869331359863
} |
32,126 | pcregrep: line 1661447 of file ./pcregrep.out is too long for the internal buffer
pcregrep: check the --buffer-size option | c9a9d472622f2f4696df0d6145645828 | {
"intermediate": 0.3798013925552368,
"beginner": 0.3065199851989746,
"expert": 0.31367868185043335
} |
32,127 | (require 2htdp/image)
;; SPD2-Design-Quiz-1.rkt
;; ======================================================================
;; Constants
(define COOKIES .)
;; ======================================================================
;; Data Definitions
;; Natural is one of:
;; - 0
;; - (add1 Natural)
;; interp. a natu... | a06406fe77ae0e73ecada86f9265dffe | {
"intermediate": 0.39120349287986755,
"beginner": 0.37113869190216064,
"expert": 0.23765775561332703
} |
32,128 | def angle_between_lines(line1: np.ndarray, line2: np.ndarray) -> float:
"""Calculates the angle in degrees between two lines."""
k1, b1 = line1
k2, b2 = line2
angle_rad = np.arctan2(k2 - k1, 1 + k1 * k2)
angle_deg = np.degrees(angle_rad)
return angle_deg
def get_best_lines(potential_points: np... | 826143488ea917d5b45ac28531d961d9 | {
"intermediate": 0.22884677350521088,
"beginner": 0.5735277533531189,
"expert": 0.197625532746315
} |
32,129 | (require 2htdp/image)
;; SPD2-Design-Quiz-1.rkt
;; ======================================================================
;; Constants
(define COOKIES .)
;; ======================================================================
;; Data Definitions
;; Natural is one of:
;; - 0
;; - (add1 Natural)
;; interp. a natu... | 7a52d930614d68da5c0c66c1c9fc00c8 | {
"intermediate": 0.39120349287986755,
"beginner": 0.37113869190216064,
"expert": 0.23765775561332703
} |
32,130 | image = cv2.imread("0.0/01.pgm", cv2.COLOR_BGR2GRAY)
def get_coords_by_threshold(image: np.ndarray, threshold: int = 150) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixels_by_min_threshold(
image: np.ndarra... | 3da3272db7ad4d43dcfc1d69ce3715ff | {
"intermediate": 0.3117663562297821,
"beginner": 0.3354601562023163,
"expert": 0.3527734875679016
} |
32,131 | (require 2htdp/image)
;; SPD2-Design-Quiz-1.rkt
;; ======================================================================
;; Constants
(define COOKIES .)
;; ======================================================================
;; Data Definitions
;; Natural is one of:
;; - 0
;; - (add1 Natural)
;; interp. a natu... | d61ed5cc12685a87e688d49e1596a871 | {
"intermediate": 0.39120349287986755,
"beginner": 0.37113869190216064,
"expert": 0.23765775561332703
} |
32,132 | image = cv2.imread("0.0/01.pgm", cv2.COLOR_BGR2GRAY)
def get_coords_by_threshold(image: np.ndarray, threshold: int = 150) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixels_by_min_threshold(
image: np.ndarra... | 5e75f2f4d80a47d6fda3ecb31a23c129 | {
"intermediate": 0.3117663562297821,
"beginner": 0.3354601562023163,
"expert": 0.3527734875679016
} |
32,133 | I have the paths /hdd2/data and /home/x/data merged into /home/x/realdata using mergerfs. When I create a file in /home/x/realdata, it is only created to /hdd2/data. Will the path /home/x/data start filling up when /hdd2/data runs out of space? | 32f7b3de3e70846525149bc622749a47 | {
"intermediate": 0.41861531138420105,
"beginner": 0.26150190830230713,
"expert": 0.3198827803134918
} |
32,134 | image = cv2.imread("0.0/01.pgm", cv2.COLOR_BGR2GRAY)
def get_coords_by_threshold(image: np.ndarray, threshold: int = 150) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixels_by_min_threshold(
image: np.ndarra... | f62c23dc21474a87ce8e86849ae19f2c | {
"intermediate": 0.31419637799263,
"beginner": 0.349216103553772,
"expert": 0.336587518453598
} |
32,135 | In a redis db I gotta save two things, 2. the hash of a question, then a list of hashes of answers to those questions. How should i implement this in python so i can search for a question, then get a list of answers. The whole system works only on hashes so the code does not need any example questions just placeholder... | 999053ec3452c9d5de80c5ae3a351316 | {
"intermediate": 0.5656683444976807,
"beginner": 0.1488102525472641,
"expert": 0.28552132844924927
} |
32,136 | (require 2htdp/image)
;; SPD2-Design-Quiz-1.rkt
;; ======================================================================
;; Constants
(define COOKIES .)
;; ======================================================================
;; Data Definitions
;; Natural is one of:
;; - 0
;; - (add1 Natural)
;; interp. a natura... | 0a95085e9a59fa7b07afa67c29a89398 | {
"intermediate": 0.35803720355033875,
"beginner": 0.39572906494140625,
"expert": 0.2462337166070938
} |
32,137 | image = cv2.imread("0.4/02.pgm", cv2.COLOR_BGR2GRAY)
IMAGE_THRESHOLD = 100
def get_coords_by_threshold(
image: np.ndarray, threshold: int = IMAGE_THRESHOLD
) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixe... | 33a7fcc7f5cff613c3ce00e720b8d14f | {
"intermediate": 0.2695120871067047,
"beginner": 0.47828784584999084,
"expert": 0.25220006704330444
} |
32,138 | (require 2htdp/image)
;; SPD2-Design-Quiz-1.rkt
;; ======================================================================
;; Constants
(define COOKIES .)
;; ======================================================================
;; Data Definitions
;; Natural is one of:
;; - 0
;; - (add1 Natural)
;; interp. a natu... | 5cdcd1a0bd060fdf18ac34f4c8cfada4 | {
"intermediate": 0.39120349287986755,
"beginner": 0.37113869190216064,
"expert": 0.23765775561332703
} |
32,139 | image = cv2.imread("0.4/01.pgm", cv2.COLOR_BGR2GRAY)
IMAGE_THRESHOLD = 100
def get_coords_by_threshold(
image: np.ndarray, threshold: int = IMAGE_THRESHOLD
) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixe... | 24125991d151d45ec761e2d1df98a830 | {
"intermediate": 0.2705646753311157,
"beginner": 0.4763101041316986,
"expert": 0.25312525033950806
} |
32,140 | (require 2htdp/image)
;; SPD2-Design-Quiz-1.rkt
;; ======================================================================
;; Constants
(define COOKIES .)
;; ======================================================================
;; Data Definitions
;; Natural is one of:
;; - 0
;; - (add1 Natural)
;; interp. a natura... | 105c42f0936da702559896820281f569 | {
"intermediate": 0.35803720355033875,
"beginner": 0.39572906494140625,
"expert": 0.2462337166070938
} |
32,141 | i used this for generate unique code but does not work what is the problem: <!DOCTYPE html>
<html>
<body>
<?php
echo uniqid();
?>
</body>
</html> | dec3fe1c632ad411b29cdd41701ec758 | {
"intermediate": 0.3699316382408142,
"beginner": 0.3192090690135956,
"expert": 0.3108592927455902
} |
32,142 | (require 2htdp/image)
;; SPD2-Design-Quiz-1.rkt
;; ======================================================================
;; Constants
(define COOKIES .)
;; ======================================================================
;; Data Definitions
;; Natural is one of:
;; - 0
;; - (add1 Natural)
;; in... | a7a3a59919428d6869f281551700dfd6 | {
"intermediate": 0.35790303349494934,
"beginner": 0.2772781252861023,
"expert": 0.364818811416626
} |
32,143 | (require 2htdp/image)
;; SPD2-Design-Quiz-1.rkt
;; ======================================================================
;; Constants
(define COOKIES .)
;; ======================================================================
;; Data Definitions
;; Natural is one of:
;; - 0
;; - (add1 Natural)
;; interp. a natu... | c34ef3e0540879926b6290bb25de486e | {
"intermediate": 0.39120349287986755,
"beginner": 0.37113869190216064,
"expert": 0.23765775561332703
} |
32,144 | (check-expect (sink empty) empty)
(check-expect (sink (cons “bubble” (cons “solid” (cons “bubble” empty))))
(cons “bubble” (cons “bubble” (cons “solid” empty))))
(check-expect (sink (cons “solid” (cons “solid” (cons “bubble” empty))))
(cons “bubble” (cons “solid” (cons “solid” empty))))
(check-expect (sink (cons “solid... | 5ffeabc2a4ab2a24988093959d078780 | {
"intermediate": 0.23677612841129303,
"beginner": 0.45879489183425903,
"expert": 0.30442899465560913
} |
32,145 | (check-expect (sink empty) empty)
(check-expect (sink (cons “bubble” (cons “solid” (cons “bubble” empty))))
(cons “bubble” (cons “bubble” (cons “solid” empty))))
(check-expect (sink (cons “solid” (cons “solid” (cons “bubble” empty))))
(cons “bubble” (cons “solid” (cons “solid” empty))))
(check-expect (sink (cons “solid... | b1901c2c0612f03de18193f6588a9efa | {
"intermediate": 0.23677612841129303,
"beginner": 0.45879489183425903,
"expert": 0.30442899465560913
} |
32,146 | AttributeError: module 'jieba' has no attribute 'cut'什么意思 | fa888900c9b31e519d6e085b1e0dd0a9 | {
"intermediate": 0.4219312369823456,
"beginner": 0.2770443260669708,
"expert": 0.3010244071483612
} |
32,147 | Rewrite the following script to make it cleaner and more reusable. Some part of this script could be used in future other script.
<script>
"""
Live area detection from TI data.
Run this script with the following parameters: --conf=conf/live_area_detection.json
"""
import math
import numpy as np
from radar_toolbox.fm... | 756debcaf45b5c48bc7ae52cce0d9747 | {
"intermediate": 0.4041692912578583,
"beginner": 0.3182021379470825,
"expert": 0.27762848138809204
} |
32,148 | could you please speed up this function as much as possible? def conjunction_rule_2(self, interpretation):
items_to_add = set()
for concept in self.concepts:
# If d has C and D assigned, assign also C ⊓D to d.
for other_concept in self.concepts:
conjunction_to... | 4701c6fedd3dc43286aa0a28448fae7c | {
"intermediate": 0.4156683385372162,
"beginner": 0.4041616916656494,
"expert": 0.180169939994812
} |
32,149 | const { market_list } = require("./server");
const GarageItem = require("./GarageItem"),
Area = require("./Area"),
{ turrets, hulls, paints, getType } = require("./server"),
InventoryItem = require("./InventoryItem");
class Garage extends Area {
static fromJSON(data) {
if (typeof (data.tank) !== "und... | 8642693caeebaf45eb0f837f052e895a | {
"intermediate": 0.2909576892852783,
"beginner": 0.5029168725013733,
"expert": 0.20612549781799316
} |
32,150 | I have this code:
def signal_generator(df):
if df is None or len(df) < 2:
return ''
signal = []
final_signal = []
exit = []
sell_result = 0.0
buy_result = 0.0
active_signal = None
# Retrieve depth data
depth_data = client.depth(symbol=symbol)
bids = depth... | 154245ed1d5697acc729f23d689561b1 | {
"intermediate": 0.302184134721756,
"beginner": 0.45457717776298523,
"expert": 0.24323873221874237
} |
32,151 | image = cv2.imread("0.0/01.pgm", cv2.COLOR_BGR2GRAY)
IMAGE_THRESHOLD = 100
def get_coords_by_threshold(
image: np.ndarray, threshold: int = IMAGE_THRESHOLD
) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixe... | 7c12d16aceedc917b83d5a2baede22b9 | {
"intermediate": 0.27387356758117676,
"beginner": 0.47204846143722534,
"expert": 0.2540779411792755
} |
32,152 | # Guidelines for Enhanced User Interaction
## Disable Placeholder Responses:
- Please avoid using placeholders like "[existing code here]" in your responses.
- Provide complete and concrete examples or code segments wherever possible.
## Focus on Problem-Solving:
- When provided with a coding or technical issue, focu... | 7d716e1f80c7e5d2fdc4614286d164dc | {
"intermediate": 0.3496643006801605,
"beginner": 0.27746105194091797,
"expert": 0.3728746175765991
} |
32,153 | If I can found the value of class="week", how to get data-title for specified value. See the example of code. If I type class="week" = 5 and value is 6 I need r1c4. Write selenium Python code
<tr><td class="week">5</td><td class="available" data-title="r1c0">1</td><td class="available" data-title="r1c1">2</td><td clas... | 2bba8bf7cd485298345d9406a9e18f02 | {
"intermediate": 0.36884671449661255,
"beginner": 0.44085440039634705,
"expert": 0.1902988702058792
} |
32,154 | I know that class=“week” = 5. How to having this information, I can find 1 in data-title after r using selenium Python code?
<tr><td class=“week”>5</td><td class=“available” data-title=“r1c0”>1</td><td class=“available” data-title=“r1c1”>2</td><td class=“available” data-title=“r1c2”>3</td><td class=“available” data-ti... | 7361fb1c0c25e015cfe7c37a60c5610c | {
"intermediate": 0.362642765045166,
"beginner": 0.4106084406375885,
"expert": 0.2267487645149231
} |
32,155 | image = cv2.imread("0.1/01.pgm", cv2.COLOR_BGR2GRAY)
IMAGE_THRESHOLD = 100
def get_coords_by_threshold(
image: np.ndarray, threshold: int = IMAGE_THRESHOLD
) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixe... | e4e62105197c8db84a4a2a7e01bb2fd9 | {
"intermediate": 0.2737096846103668,
"beginner": 0.47177791595458984,
"expert": 0.2545124292373657
} |
32,156 | How do I make mergerfs changes permanent? Currently I run the commany mergerfs ... via command line and the filesystem disappears after a reboot | b65233c44be41871fa3da04a1140c337 | {
"intermediate": 0.40745311975479126,
"beginner": 0.25438907742500305,
"expert": 0.3381578028202057
} |
32,157 | explain below code: | 54f9f1bb3778ca51793117443a2168f5 | {
"intermediate": 0.2653118073940277,
"beginner": 0.4128739535808563,
"expert": 0.32181423902511597
} |
32,158 | Hello! Write me a dart function that will use reg exp to check if string is 13 digit barcode | f44eab7e8a0327b8d93947a7570a7cdc | {
"intermediate": 0.38475435972213745,
"beginner": 0.28333649039268494,
"expert": 0.33190909028053284
} |
32,159 | image = cv2.imread("0.5/00.pgm", cv2.COLOR_BGR2GRAY)
IMAGE_THRESHOLD = 100
def get_coords_by_threshold(
image: np.ndarray, threshold: int = IMAGE_THRESHOLD
) -> tuple:
"""Gets pixel coords with intensity more then 'theshold'."""
coords = np.where(image > threshold)
return coords
def delete_pixe... | 27beaa9833c1a618a21f8e946b80a2cb | {
"intermediate": 0.2728784382343292,
"beginner": 0.4744689464569092,
"expert": 0.252652645111084
} |
32,160 | What does it do, what technologies and concepts are used and how does it reach its goal. Step by step by step, divide these contents into smaller parts and explain.A fast TCP/UDP tunnel over HTTP
Chisel is a fast TCP/UDP tunnel, transported over HTTP, secured via SSH. Single executable including both client and server... | f0eaec179a56e126a55f0a9d11cd5511 | {
"intermediate": 0.34923186898231506,
"beginner": 0.40379247069358826,
"expert": 0.2469756305217743
} |
32,161 | i want to know how this could be improve /
### Server Setup:
1. Check Open Ports on Your Server:
Connect to your server via SSH and check which ports are open and listening. Ensure port 80 is not being used by another service:
ssh <PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>
netstat -tulnp
If another service is us... | f8335690457de59de40a3848ba228207 | {
"intermediate": 0.3173573613166809,
"beginner": 0.35264304280281067,
"expert": 0.32999956607818604
} |
32,162 | ### Server Setup:
1. Check Open Ports on Your Server:
Connect to your server via SSH and check which ports are open and listening. Ensure port 80 is not being used by another service:
ssh <PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>
netstat -tulnp
If another service is using port 80, consider changing its configura... | bc99459bf3e433a80441a3632526f36e | {
"intermediate": 0.34375783801078796,
"beginner": 0.3083193898200989,
"expert": 0.34792280197143555
} |
32,163 | ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[25], line 1
----> 1 calendar = driver.find_element_by_class_name("datepicker-calendar")
AttributeError: 'WebDriver' object has no attribute 'find_element_by_cl... | f0f466d3cf3246286e97c094239dce43 | {
"intermediate": 0.3919341564178467,
"beginner": 0.4258939027786255,
"expert": 0.1821719855070114
} |
32,164 | 如何解决:
PS F:\codefuntest> yarn install
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
warning node-sass > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning node-sass > node-gyp > request@2.88.2: request has been deprecated, see https... | d388cded875d8815f378ef2f8adda216 | {
"intermediate": 0.5780405402183533,
"beginner": 0.289740651845932,
"expert": 0.1322188526391983
} |
32,165 | In X11, how do I present a pixel array to the window? | 564b5d598673e6c263b3f0dcba896f54 | {
"intermediate": 0.5757284760475159,
"beginner": 0.12863263487815857,
"expert": 0.2956388294696808
} |
32,166 | generate latex code using below resume content GET IN CONTACT
Mobile: <PRESIDIO_ANONYMIZED_PHONE_NUMBER>
Email: <PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>
PERSONAL DETAILS
Total Experience 3 Years 0 Month
Current Location Kolkata
SKILLS
Java
Core Java Programming
Spring Data JPA
Spring Boot
Spring MVC
Spring Security
Mockito
... | bf2a2a5ea82dbc07ead3d5cf2109fdbf | {
"intermediate": 0.5442609190940857,
"beginner": 0.2319788783788681,
"expert": 0.22376015782356262
} |
32,167 | I hace this code:
def signal_generator(df):
if df is None or len(df) < 2:
return ''
signal = []
final_signal = []
exit = []
sell_result = 0.0
buy_result = 0.0
active_signal = None
# Retrieve depth data
depth_data = client.depth(symbol=symbol)
bids = depth... | b95e9a4b790cdbac8690fd40f74fd00e | {
"intermediate": 0.3169669210910797,
"beginner": 0.4309491813182831,
"expert": 0.2520838677883148
} |
32,168 | 如何解决:
Compiled successfully!
You can now view deep-chat-example-ui in the browser.
Local: http://localhost:3000
On Your Network: http://192.168.73.1:3000
Note that the development build is not optimized.
To create a production build, use yarn build.
webpack compiled successfully
ERROR in src/App.tsx... | 13ed120b12d29daefb7fbbd5383446e9 | {
"intermediate": 0.3499695062637329,
"beginner": 0.34870287775993347,
"expert": 0.3013276159763336
} |
32,169 | Compiled with problems:
×
ERROR in src/App.tsx:51:11
TS2322: Type '(_?: string, files?: File[]) => boolean | undefined' is not assignable to type 'ValidateInput'.
Type 'boolean | undefined' is not assignable to type 'boolean'.
Type 'undefined' is not assignable to type 'boolean'.
49 | mixedFiles={tr... | 4e3dd1444052bb88fc8202abc5e184d7 | {
"intermediate": 0.32752469182014465,
"beginner": 0.3273657560348511,
"expert": 0.34510958194732666
} |
32,170 | I used this code:
asks = depth_data['asks']
sell_qty = round(sum(float(ask[1]) for ask in asks), 0)
highest_ask_price = float(asks[0][0])
lowest_ask_price = float(asks[1][0])
s_h = highest_ask_price
s_l = lowest_ask_price
mark_price_data = client.ticker_price(symbol=symbol)
mp = float(... | 2a00bef4f59e0ce2ac90d3da5d7dc0c8 | {
"intermediate": 0.3997327387332916,
"beginner": 0.31989607214927673,
"expert": 0.28037112951278687
} |
32,171 | write me a java script for a button with the title roll | 28fca53baa697b609348dbe68ba9b393 | {
"intermediate": 0.3309478163719177,
"beginner": 0.39125552773475647,
"expert": 0.2777966260910034
} |
32,172 | Need to install VNC Server in Solaris 5.10. Any help? | 190769c7fa8f9f69a9cb0f6472796f9e | {
"intermediate": 0.44972971081733704,
"beginner": 0.2636379301548004,
"expert": 0.2866324186325073
} |
32,173 | chatgpt 3 free | 0c14e4996620a2ea5b44241fa7e4f90d | {
"intermediate": 0.33855050802230835,
"beginner": 0.25471755862236023,
"expert": 0.40673190355300903
} |
32,174 | I have this code: depth_data = client.depth(symbol=symbol)
bids = depth_data['bids']
buy_qty = round(sum(float(bid[1]) for bid in bids), 0)
bid_prices = [float(bid[0]) for bid in bids]
highest_bid_price = max(bid_prices)
lowest_bid_price = min(bid_prices)
b_h = highest_bid_price
b_l = l... | 2731122c4f9a54cb2e37c5dff6235b58 | {
"intermediate": 0.45378226041793823,
"beginner": 0.26336053013801575,
"expert": 0.282857209444046
} |
32,175 | improve the readability + the performance of this and also refractor things that should be classbased:
from fastapi import FastAPI, Request, BackgroundTasks
import uvicorn
from fastapi.templating import Jinja2Templates
import numpy as np
import cv2
import random
import pygame
from pydub import AudioSegment
import log... | 03ad460feb19e83c7f059782e53e1b83 | {
"intermediate": 0.3585488200187683,
"beginner": 0.434363454580307,
"expert": 0.2070877104997635
} |
32,176 | Please make these attributes into a style for me (android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:layout_gravity=“center”
android:layout_weight=“1”
android:backgroundTint=“@color/white”
android:gravity=“center”) | dca90a1972aca4b22535b7aba5e18a1c | {
"intermediate": 0.45872488617897034,
"beginner": 0.22906285524368286,
"expert": 0.3122122883796692
} |
32,177 | In a redis db I gotta save two things, 2. the hash of a question image, then a list of hashes of answer images to those questions. How should i implement this in python so i can search for a question, then get a list of answers. The whole system works only on hashes so the code does not need any example questions or im... | 5dd67c77f349663c767dee66e4d5b3e9 | {
"intermediate": 0.5028850436210632,
"beginner": 0.16912147402763367,
"expert": 0.3279934525489807
} |
32,178 | I used this code:
def signal_generator(df):
if df is None or len(df) < 2:
return ''
signal = []
final_signal = []
exit = []
sell_result = 0.0
buy_result = 0.0
active_signal = None
sell_qty = 0.0
buy_qty = 0.0
# Retrieve depth data
depth_data = client.depth(sym... | e3e38b1f2f10fbe026c60733a2269b5f | {
"intermediate": 0.3402327597141266,
"beginner": 0.4183388352394104,
"expert": 0.2414284497499466
} |
32,179 | In a redis db I gotta save two things, 2. the hash of a question image, then a list of hashes of answer images to those questions. How should i implement this in python so i can search for a question, then get a list of answers. The whole system works only on hashes so the code does not need any example questions or im... | ba1ff3d3bcc6fca8553b6681246a0f29 | {
"intermediate": 0.49413183331489563,
"beginner": 0.13319101929664612,
"expert": 0.37267711758613586
} |
32,180 | Мне нужно, чтобы когда я нажимаю кнопку добавить в корзину (js_buy), в форме которая открывать, чтобы сначала вылез само изображение товара, ниже информация о товаре на php ( Nazvanie, Brend, Razmer, Color, Price), ниже поле выбора количества товара и уже кнопка добавить в корзину (js_send).Код: <?php
/* Установка соед... | 6f03bf845bedc39808081769c6fc59f1 | {
"intermediate": 0.35952356457710266,
"beginner": 0.37146177887916565,
"expert": 0.2690146267414093
} |
32,181 | solidity how to override function | d971a450af3d75c69a891bde20588ea5 | {
"intermediate": 0.5101662874221802,
"beginner": 0.24628527462482452,
"expert": 0.2435484379529953
} |
32,182 | using UnityEngine;
using UnityEditor;
using System.IO;
public class FileExporter : MonoBehaviour
{
public string bundlePath; // Path to the .bundle file
public string saveDirectory; // Directory to save the files
void Start()
{
// Load the AssetBundle
AssetBundle bundle = AssetBundle.L... | 66e57a07ea48ac49a2e09d610292bfec | {
"intermediate": 0.38005268573760986,
"beginner": 0.4886002540588379,
"expert": 0.13134713470935822
} |
32,183 | can you write a python script that will open firefox browser go to google and type in a search bar twitter then login to twitter with user credentials after login find search bar then type twitch.tv/ and press enter wait for page to load complitlly then find latest tweets press on latest tweets wait for page to load th... | fdc1a872a7dea9f9235dba96a9051de8 | {
"intermediate": 0.4288962185382843,
"beginner": 0.09834286570549011,
"expert": 0.4727608561515808
} |
32,184 | using UnityEngine;
using UnityEngine.UI;
using System.IO;
public class bundleunpack : MonoBehaviour
{
public string bundlePath; // Путь к .bundle файлу
public string imageName; // Имя изображения в AssetBundle
public GameObject imageHolder; // Ссылка на объект, содержащий компонент Image
public string sav... | 25fba8914de8440c1b06536bf95f7fe1 | {
"intermediate": 0.332602322101593,
"beginner": 0.2807374894618988,
"expert": 0.38666024804115295
} |
32,185 | using UnityEngine;
using UnityEngine.UI;
using System.IO;
public class NewBehaviourScript1 : MonoBehaviour
{
public string bundlePath;
public string imageName;
public GameObject imageHolder;
public string savePath;
void Start()
{
Debug.Log("program started");
AssetBundle bundle = AssetB... | e89161e1e26470d964877d4cdb0b4e91 | {
"intermediate": 0.5453989505767822,
"beginner": 0.3007907569408417,
"expert": 0.1538103222846985
} |
32,186 | using UnityEngine;
using UnityEngine.UI;
using System.IO;
public class NewBehaviourScript1 : MonoBehaviour
{
public string bundlePath;
public GameObject imageHolder;
public string savePath;
void Start()
{
Debug.Log("program started");
AssetBundle bundle = AssetBundle.LoadFromFile(bundlePath... | 34646491cddf644b6858a605e2f40e64 | {
"intermediate": 0.5026229619979858,
"beginner": 0.32842209935188293,
"expert": 0.16895486414432526
} |
32,187 | create html and css for tab header with icon from close.png on the right side and tab name text must be centered over the tab size not including close icon size | b9ed0dd0d208b0e40c19d65b0a702954 | {
"intermediate": 0.3768391013145447,
"beginner": 0.21316619217395782,
"expert": 0.4099946916103363
} |
32,188 | I used thi scode:
def signal_generator(df):
if df is None or len(df) < 2:
return ''
signal = []
final_signal = []
exit = []
sell_result = 0.0
buy_result = 0.0
active_signal = None
# Retrieve depth data
depth_data = client.depth(symbol=symbol)
bids = depth_data... | f3e418881a298148893854df9e03e58f | {
"intermediate": 0.4078904390335083,
"beginner": 0.426741361618042,
"expert": 0.1653681993484497
} |
32,189 | Problem Description
Raj is running the busiest cafe in the city. It is also the most visited cafe by VIPs
VIPs buys costly Beverages. It gives Raj's Cafe high profit. Raj asked his workers to prefer serving VIPs firat, because VIPs don't like to wait much time. Whenever a person orders something, Raj gives priority v... | 0256e388e0746764235a81723836af84 | {
"intermediate": 0.3731019198894501,
"beginner": 0.26979130506515503,
"expert": 0.3571067750453949
} |
32,190 | please make a python snippet to load a bdas.txt file and save a list of strings, each string is a unique line in the file. | bc9c9d68a3035013a77d56d9282c4339 | {
"intermediate": 0.4099074900150299,
"beginner": 0.16423094272613525,
"expert": 0.42586153745651245
} |
32,191 | using UnityEngine;
using UnityEngine.UI;
using System.IO;
public class NewBehaviourScript2 : MonoBehaviour
{
public string bundlePath;
void Start()
{
Debug.Log("program started");
AssetBundle bundle = AssetBundle.LoadFromFile(bundlePath);
if (bundle != null)
{
Debug.Log("Bundl... | 3b2ddbb483d5c204f96db6a8cba3cdee | {
"intermediate": 0.6328762173652649,
"beginner": 0.20947574079036713,
"expert": 0.15764805674552917
} |
32,192 | Compound Balance
Problem Description
Amir was given an unbalanced chemical compound in his chemistry class, and he was asked to balance them based on their valency and present them.
The chemical compound can have two distinct elements and he must balance them such that they reach the equivalent point.
Here the compou... | 279527db70a671b914aa457cfa3485dc | {
"intermediate": 0.36643221974372864,
"beginner": 0.2522585690021515,
"expert": 0.3813092112541199
} |
32,193 | What are some ways to represent a large torch tensor in short way to get some meaningful understanding of its content? | 4b26f2a121f0a3be2d60d9af8d12e2f3 | {
"intermediate": 0.31276553869247437,
"beginner": 0.14175854623317719,
"expert": 0.545475959777832
} |
32,194 | I am doing a c++ project and I am getting many errors in the following function that orders an unordered_map based on its key values, can you help me do it correctly:
void SortMap(std::unordered_map<wxString, int>* unorderedMap)
{
std::sort(unorderedMap->begin(), unorderedMap->end(), (const pair<string, in... | da4a101ce91a8d0b7f9a7c4c83a8ed4f | {
"intermediate": 0.7263247966766357,
"beginner": 0.1942337155342102,
"expert": 0.07944151014089584
} |
32,195 | Online Shopping
Problem Description
An online shopping store announced an offer for the upcoming festive season. In order to avail that offer, we have to collect the tokens for n consecutive days and using those tokens, we can buy items in the sale.
Mithra, a regular customer, wanted to claim those tokens and decided ... | f7b5ff7951138a33a8953bfb1ee13465 | {
"intermediate": 0.33498844504356384,
"beginner": 0.4270341396331787,
"expert": 0.23797748982906342
} |
32,196 | Online Shopping
Problem Description
An online shopping store announced an offer for the upcoming festive season. In order to avail that offer, we have to collect the tokens for n consecutive days and using those tokens, we can buy items in the sale.
Mithra, a regular customer, wanted to claim those tokens and decided ... | 4d994a209fb5d5a12f95bd40f2792b17 | {
"intermediate": 0.35876330733299255,
"beginner": 0.44009023904800415,
"expert": 0.2011464387178421
} |
32,197 | using UnityEngine;
using UnityEngine.UI;
using System.IO;
public class NewBehaviourScript2 : MonoBehaviour
{
public string bundlePath;
public Transform imageHolder;
public string savePath = @"C:\dir";
void Start()
{
Debug.Log("program started");
AssetBundle bundle = AssetBundle.LoadFromF... | 8e47b5a07d022973c7da6d736acc5c71 | {
"intermediate": 0.6043888926506042,
"beginner": 0.21199281513690948,
"expert": 0.18361833691596985
} |
32,198 | I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you som... | e5991f766753df333c0523d58e42fb46 | {
"intermediate": 0.32150977849960327,
"beginner": 0.2609173655509949,
"expert": 0.41757282614707947
} |
32,199 | loop through ever image in a folder, crop t hem with the following code:
from PIL import Image
img = Image.open("../../challenge_images/3d_rollball_animals/ff80a07e00fa7879.png")
w, h = img.size
if (w % 200) != 0 and (h % 200) != 0:
print("sumn wrong 1")
exit()
if (h / 200) != 2:
print("sumn wrong 2")
... | 32ef45afe90f7a79ca840f0feea46072 | {
"intermediate": 0.37392300367355347,
"beginner": 0.3736051619052887,
"expert": 0.2524718940258026
} |
32,200 | lscpu | fafcc3e4b2a2f689141f3683265b3ee2 | {
"intermediate": 0.3270229995250702,
"beginner": 0.33785420656204224,
"expert": 0.3351227939128876
} |
32,201 | I used this code:
mark_price_data = client.ticker_price(symbol=symbol)
mp = float(mark_price_data['price']) if 'price' in mark_price_data else 0.0
mark_price_data_change = client.ticker_24hr_price_change(symbol=symbol)
mark_price_percent = float(mark_price_data_change['priceChangePercent']) if 'priceCh... | cc052db75b63bf81f85af67c144c8f75 | {
"intermediate": 0.4654114544391632,
"beginner": 0.3037894070148468,
"expert": 0.23079919815063477
} |
32,202 | make a fanf 2 text based game | 182687b0118b0f56cfb51249d63cf275 | {
"intermediate": 0.3590414226055145,
"beginner": 0.37483373284339905,
"expert": 0.2661248743534088
} |
32,203 | make a fanf 1 game phyton with gui | 004f57195ac2d3834fcf85be1c0527c1 | {
"intermediate": 0.3535096049308777,
"beginner": 0.3344379663467407,
"expert": 0.3120524287223816
} |
32,204 | Have a look at the following pseudo code. Please convert it to C to the best of your abilities.
def gmlp_block(x, d_model, d_ffn):
shortcut = x
x = norm(x, axis="channel")
x = proj(x, d_ffn, axis="channel")
x = gelu(x)
x = spatial_gating_unit(x)
x = proj(x, d_model, axis="channel")
return x + shortcut
def spat... | dc47dd2831ff60ec980ade2828b759fa | {
"intermediate": 0.27530741691589355,
"beginner": 0.4350242018699646,
"expert": 0.28966838121414185
} |
32,205 | I want you to simulate a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal . . Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like ... | 5f9ca4962ae38de67e7d59dcf654828c | {
"intermediate": 0.3170722424983978,
"beginner": 0.32523593306541443,
"expert": 0.35769185423851013
} |
32,206 | can you create a CNN BiLSTM attention BiLSTM time series forecasting model with train test and validation sets. assume a random dataset | b06fb83277e148af52aa61d454452ae8 | {
"intermediate": 0.24008053541183472,
"beginner": 0.14789828658103943,
"expert": 0.6120211482048035
} |
32,207 | In a wxwidgets c++ project, I have a wxArrayString with list of different categories, and I have another wxArrayString which contains elements of each category. I want to create a new wxArrayString with the category and its elements count, and this format of "[count] category", how can I achieve this? | c1b6e034b0c420cb1fdb1d8d8b46309b | {
"intermediate": 0.6808833479881287,
"beginner": 0.12438804656267166,
"expert": 0.19472858309745789
} |
32,208 | c sharp coding for quiz game | 4e4f670f89e1ffe66fa59995c49c043f | {
"intermediate": 0.3079853057861328,
"beginner": 0.502452552318573,
"expert": 0.189562126994133
} |
32,209 | Please re-send the last message | 42f2635126d75a328af072091af3a10e | {
"intermediate": 0.3108157813549042,
"beginner": 0.27290207147598267,
"expert": 0.41628211736679077
} |
32,210 | c sharp coding for finding picture name | b24aed77b7b98dc32a55d1ccdda5a95d | {
"intermediate": 0.19220207631587982,
"beginner": 0.4121882915496826,
"expert": 0.39560961723327637
} |
32,211 | Write a program that uses the X window system to display a pixel array of 'uint8_t's. | 501a358ed1c7bed208392df902c9bba5 | {
"intermediate": 0.38308024406433105,
"beginner": 0.25262513756752014,
"expert": 0.36429455876350403
} |
32,212 | write this for me to one file:
1. Setting Up the Project:
- Open Godot 4 and create a new project.
- Add a new 2D scene and save it (this will be the main scene for your automaton).
2. Creating the Script:
- Attach a new script to the main node of your 2D scene.
- Define the parameters of your cellular automaton such... | ea4b1ad063c5483911ad683f78a66267 | {
"intermediate": 0.32750216126441956,
"beginner": 0.4385395348072052,
"expert": 0.23395833373069763
} |
32,213 | Сделай красивую навигацию в css: <div id="header"></div>
<div class="mobile-menu-open-button js_mobile_menu_open_button"><i class="fas fa-bars"></i></div>
<nav class="js_wide_menu">
<i class="fas fa-times close-mobile-menu js_close_mobile_menu"></i>
<div class="wrapper-inside">
<div class="visible-... | 0a87a9778d2bfe3a5d053dabf1c8681b | {
"intermediate": 0.36878085136413574,
"beginner": 0.296745628118515,
"expert": 0.33447355031967163
} |
32,214 | сделай красиво навигационное меню в css <div id="header"></div>
<div class="mobile-menu-open-button js_mobile_menu_open_button"><i class="fas fa-bars"></i></div>
<nav class="js_wide_menu">
<i class="fas fa-times close-mobile-menu js_close_mobile_menu"></i>
<div class="wrapper-inside">
<div class="v... | 3549dfd39d4126331a50c1e70d1eddf6 | {
"intermediate": 0.39369770884513855,
"beginner": 0.3046836853027344,
"expert": 0.3016186058521271
} |
32,215 | I sued this code: # Retrieve depth data
depth_data = client.depth(symbol=symbol)
bids = depth_data['bids']
bid_prices = [float(bid[0]) for bid in bids]
highest_bid_price = max(bid_prices)
lowest_bid_price = min(bid_prices)
buy_lowest_price = 0
for bid_price in bid_prices:
if bi... | 3162ab267f5c55b786948d2a51f8bcc2 | {
"intermediate": 0.4004254639148712,
"beginner": 0.25442004203796387,
"expert": 0.3451545238494873
} |
32,216 | from transformers import BertTokenizer, TFBertModel
import numpy as np
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
from sklearn.metrics import classification_report
# Load Quora dataset
quora_data = pd.... | 61305cff1cb973298dfd0909001c8965 | {
"intermediate": 0.4840421974658966,
"beginner": 0.3515419363975525,
"expert": 0.16441592574119568
} |
32,217 | I have this code:
mark_price_data = client.ticker_price(symbol=symbol)
mp = float(mark_price_data['price']) if 'price' in mark_price_data else 0.0
mark_price_data_change = client.ticker_24hr_price_change(symbol=symbol)
mark_price_percent = float(mark_price_data_change['priceChangePercent']) if 'priceCh... | fdb5c31f5f319147a37ba8192a1e7004 | {
"intermediate": 0.38989531993865967,
"beginner": 0.4627770483493805,
"expert": 0.14732760190963745
} |
32,218 | in wxwidgets c++ project, how to pin rows in wxgrid? I know it can be done with freezeto but I want to be able to pin any number of rows in any position, for example, pinning the first and the third but not the second. | 7367f9da8597bc9e3e2f2bf0528c53ae | {
"intermediate": 0.7761234641075134,
"beginner": 0.07899416983127594,
"expert": 0.14488238096237183
} |
32,219 | Got the same error: ValueError: With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters. The error occurs because of that the Data file is not found. In case you are using jupyter notebook you cannot used the Dataframe for defining X and y.... | 23a1e600ad7f57678835fb5861b7e9fa | {
"intermediate": 0.5431904792785645,
"beginner": 0.14216817915439606,
"expert": 0.31464138627052307
} |
32,220 | str.maketrans how does it work | ad0434a1b5130215536c8f442279b9fa | {
"intermediate": 0.29793059825897217,
"beginner": 0.27565789222717285,
"expert": 0.426411509513855
} |
32,221 | what is green? | 63e429dfe76a78fdc741cae3491ee53c | {
"intermediate": 0.39008629322052,
"beginner": 0.3170086443424225,
"expert": 0.2929050624370575
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.