row_id
int64
0
48.4k
init_message
stringlengths
1
342k
conversation_hash
stringlengths
32
32
scores
dict
20,094
give me a python code for rock paper sisccor game
241ac58eb3527c88489f2260c0cc0ad2
{ "intermediate": 0.3757597804069519, "beginner": 0.26047709584236145, "expert": 0.36376312375068665 }
20,095
if (($('.setnewcalendarstatus').val() == "1" || $('.setnewcalendarstatus').val() == "2" || $('.setnewcalendarstatus').val() == "3") && (getcalendaractive == "1")) {                             $.ajax({                                 url: "https://ir-appointment.visametric.com/ir/appointment-form/personal/getdate",                                 type: "POST",                                 async: false,                                 data: {                                     consularid: set_new_consular_id,                                     exitid: set_new_exit_office_id,                                     servicetypeid: set_new_service_type_id,                                     calendarType: set_new_calendar_type,                                     totalperson: personCount,                                     mailConfirmCode: $('#mailConfirmCodeControl').val()                                 }, Write me a xhrhtmlrequest of this code
34cb7061944c64ee0ffb43937ca6871c
{ "intermediate": 0.38287317752838135, "beginner": 0.41173887252807617, "expert": 0.20538799464702606 }
20,096
How can one modify imgui? Ive seen people make guis with imgui thay look nothing like the original defaukt design. I wanna mame a skeumorphic design with imgui but where do i stsrt?
20ce5d0b831d9ae23438cd7f4cf72688
{ "intermediate": 0.40543919801712036, "beginner": 0.2534353733062744, "expert": 0.34112533926963806 }
20,097
Is it possible to have a firejail .local file with syntax that specifies where the "fake" home directory should be (like the --private=directory parameter of the firejail command)?
d8d0d5f94ae529ce30ef2967417ce23b
{ "intermediate": 0.46600452065467834, "beginner": 0.3094959557056427, "expert": 0.22449953854084015 }
20,098
what is BPLA in ANN
12cb68c39d9b357adaac8539478d2827
{ "intermediate": 0.11600302904844284, "beginner": 0.07553911209106445, "expert": 0.8084578514099121 }
20,099
исправь baseUrl.includes('chesnok') ? (it.skip('[FRONT-962] Некорректный номер телефона')): (it('[FRONT-962] Некорректный номер телефона', async () => { const validationText = 'Недопустимый формат номера' await withdrawals.withdrawMoneyW1('1234', minAmountMoney, users.auto_test.password), await expect(await withdrawals.phoneValidation.getText()).toBe(validationText, { message: 'Validation is not displayed correctly' }), await browser.refresh(), await withdrawals.withdrawMoneyW1(users.auto_test.phone, minAmountMoney, users.auto_test.password), await expect(await withdrawals.cancelableBtn).toBeDisplayed({ message: 'No withdrawal request sent' }), await afterEachTestHook() }))
d6effc1acca733ad893e15faa978a2f0
{ "intermediate": 0.3361518383026123, "beginner": 0.4160183370113373, "expert": 0.24782980978488922 }
20,100
Hey, I heard my friends talking about sites which have free premium powerpoint templates that are cracked. They accidentally downloaded from those and are now in trouble. What are this sites? So that, I can avoid those sites when I face them
05a8b46549cbaa21127d7902c7e2ee9f
{ "intermediate": 0.36462560296058655, "beginner": 0.3347017168998718, "expert": 0.30067265033721924 }
20,101
Async Await with Custom Error Handling using Alamofire in SwiftUI
5d0fcb74ad09362908eb32531360ecfe
{ "intermediate": 0.6616520881652832, "beginner": 0.09419531375169754, "expert": 0.24415256083011627 }
20,102
Generate the program code for the Ip allocation of the fdrsa C#
bbb849eb2b2e22258526d85c1d142d98
{ "intermediate": 0.3865450322628021, "beginner": 0.1818709373474121, "expert": 0.4315840005874634 }
20,103
find the percentage of losses and wins from the total ammount of bets import random import time class Limbo: def get_multiplier(seed): random.seed(seed) num = round(random.uniform(1.0,100.0), 1) if num <= 5: multi = 1.00 elif num <= 60.5: multi = random.uniform(1.01,2.10) elif num <= 86: multi = random.uniform(2.11,8.00) elif num <= 97.5: multi = random.uniform(8.01,16.00) elif num <= 99: multi = random.uniform(16.01,100.00) elif num <= 99.96: multi = random.uniform(100.01,200.00) elif num <= 100: multi = random.uniform(200.01,5000.00) return round(multi, 2) # testing profitability/fairness limbo = Limbo bal = 10000000.0 betamm = 1000 betmulti = 4.00 bets=0 losses=0 wins=0 while bal >= betamm: bal -= betamm bets += 1 multi=limbo.get_multiplier(random.random()) if multi >= betmulti: bal += betamm * betmulti wins += 1 else: bal -= betamm losses += 1 print(“Multi:”, multi, “Bal:”, bal) print(“Bets:”,bets) print(“Losses:”,losses) print(“Wins”,wins)
7d470a177ccc43ae9e4a3066085d60d7
{ "intermediate": 0.2448803037405014, "beginner": 0.46175652742385864, "expert": 0.29336318373680115 }
20,104
The entire speech is saved in the text file “policy.txt”. Your goal is to find the top 20 most frequent words in the file and store them in a dictionary called top20words. The keys should be the capitalized words and the values should be their corresponding frequencies. Save the result in a descending order based on the frequency and then the word (if frequencies are the same). For example, the following are the most frequent and the least frequent words. {'GOVERNMENT': 60, 'CHIEF': 13} Notes: 1. Punctuation in words: “government’s” is considered the same as “government”. 2. Singular and plural: “government” and “governments” are considered as two different words. 3. Hyphen/underscore in words: “my-government” is considered as two different words; “my_government” is considered as two different words. 4. Word variations: “you”, “your” and “yours” are considered as three different words; “govern”, “governing”, and “governed” are considered as three different words; “government” and “governmental” are considered as two different words. 5. Numbers: ignore all numbers such as 2.8, 10, 2019. 6. Stop words: they refer to the most common words in a language such as “the,” “from,” and “are” in English. These words appear to be of little value. The text file “stop_words.txt” includes a list of common English stop words. Your top20words should not include any stop words listed in the file.
4214213e14f9ab9ad86bef72cb6b0f30
{ "intermediate": 0.2950538396835327, "beginner": 0.3951241672039032, "expert": 0.30982205271720886 }
20,105
Hi. Could you give me examples of strenghts and weaknesses for programmer for job interview?
7572d1b4cdfc5efebe78e5e699fe4a1c
{ "intermediate": 0.39902082085609436, "beginner": 0.35582417249679565, "expert": 0.2451549768447876 }
20,106
Chosen.prototype.get_search_text = function() { return $('<div/>').text($.trim(this.search_field.val())).html(); };
4be1a0fb620de63d94432d9fcb3b529a
{ "intermediate": 0.35419774055480957, "beginner": 0.4389944076538086, "expert": 0.20680786669254303 }
20,107
Define a function called password_gen(num) that takes an integer number num and returns a valid password of length num. A valid password must  Be created at random  Have a length between 8 and 16 (both inclusive)  Consist of only the following elements: 1. at least one lowercase letter 2. at least one uppercase letter 3. at least one number between 0 and 9 (both inclusive) 4. at least one special character in _$!? (they are underscore, dollar sign, exclamation mark, and question mark) Notes:  There is no additional requirement on the validity of the password.  If the argument value is not an integer number between 8 and 16, the function should produce a warning message (see examples 1, 3, 6).  You may define and call other functions as part of password_gen(num).  Hint: The string module may come in handy. Import it and explore its methods
3503867103cf5b31adaa2431a66daf46
{ "intermediate": 0.2815623879432678, "beginner": 0.27607065439224243, "expert": 0.44236689805984497 }
20,108
const draw = (trades: TradeItem[], camera: number) => { if (null === canvasRef || !Array.isArray(trades)) return; const context = canvasRef.current?.getContext("2d"); if (context) { orderFeedDrawer.clear(context, canvasSize); orderFeedDrawer.drawLine( context, canvasSize, trades, camera, cupParams.aggregatedPriceStep, cupParams.cellHeight, cupParams.quantityDivider, !settings.minQuantity ? 0 : parseFloat(settings.minQuantity), dpiScale, theme, ); }; const clamp = (value: number, min: number, max: number): number => { return Math.min(Math.max(value, min), max); }; const orderFeedDrawer = { clear: (ctx: CanvasRenderingContext2D, size: CanvasSize) => { ctx.clearRect(0, 0, size.width, size.height); }, drawLine: ( ctx: CanvasRenderingContext2D, canvasSize: CanvasSize, trades: TradeItem[], camera: number, aggregatedPriceStep: number, cupCellHeight: number, quantityDivider: number, minQuantity: number, dpiScale: number, theme: Theme, ) => { let startX = canvasSize.width - 10 * dpiScale; const fullHeightRowsCount = parseInt((canvasSize.height / cupCellHeight).toFixed(0)); const startY = (fullHeightRowsCount % 2 ? fullHeightRowsCount - 1 : fullHeightRowsCount) / 2 * cupCellHeight; const halfCupCellHeight = cupCellHeight / 2; ctx.beginPath(); ctx.strokeStyle = orderFeedOptions(theme).line.color; ctx.lineWidth = 2 * dpiScale; trades.forEach(trade => { const yModifier = (trade.price - (trade.price - (trade?.secondPrice || trade.price)) / 2 - camera) / aggregatedPriceStep * cupCellHeight + halfCupCellHeight; const width = 1.75 * clamp((trade.quantity / quantityDivider < minQuantity ? 0 : trade.radius), 5, 50) * dpiScale; ctx.lineTo(startX - width / 2, startY - yModifier); startX = startX - width; }); ctx.stroke(); }, }; export default orderFeedDrawer; Помимо CanvasRenderingContext2D есть еще WebGLRenderingContext. Он исполняется на видеокарте, возможно отрисовка через него будет производительнее. Есть библиотека https://github.com/gpujs/gpu.js/ через которую можно инициализировать canvas с WebGL контекстом. Но синтаксис отрисовки там свой, не такой как мы писали для 2D. нужно разобраться будет ли производительнее такая отрисовка. И если будет, переписать синтаксис на WebGLRenderingContext
66ba3207a0c5f11f291d746604d30e8c
{ "intermediate": 0.308560311794281, "beginner": 0.4815937876701355, "expert": 0.2098459005355835 }
20,109
добавь метод add_key в классе ActionHistory. import os from tkinter import * from tkinter import filedialog from PIL import Image, ImageTk from collections import deque class ToolTip: def __init__(self, widget, text): self.widget = widget self.text = text self.tip_window = None def show(self, event=None): x, y, _, _ = self.widget.bbox("insert") x += self.widget.winfo_rootx() + 25 y += self.widget.winfo_rooty() + 25 self.tip_window = Toplevel(self.widget) self.tip_window.wm_overrideredirect(True) self.tip_window.wm_geometry(f"+{x}+{y}") label = Label(self.tip_window, text=self.text, background="#FFFFE0", relief=SOLID, borderwidth=1) label.pack() def hide(self, event=None): if self.tip_window: self.tip_window.destroy() self.tip_window = None class ImageEditor: def __init__(self): self.master = Tk() self.master.title("Image Editor") self.undo_icon = PhotoImage(file='undo.gif') self.redo_icon = PhotoImage(file='redo.gif') self.open_file_icon = PhotoImage(file='open-file.gif') self.save_file_icon = PhotoImage(file='save-file.gif') self.init_menu() self.init_toolbar() self.init_canvas() self.init_statusbar() self.master.bind("<Key>", self.handle_key_press) self.history = ActionHistory(self) self.key_images = {} self.tk_images = [] def init_menu(self): self.menu = Menu(self.master) self.master.config(menu=self.menu) self.file_menu = Menu(self.menu) self.menu.add_cascade(label="File", menu=self.file_menu) self.file_menu.add_command(label="Open", image=self.open_file_icon, compound=LEFT, command=self.open_file) self.file_menu.add_command(label="Save", image=self.save_file_icon, compound=LEFT, command=self.save_file) self.file_menu.add_separator() self.file_menu.add_command(label="Exit", command=self.master.quit) self.init_help_menu() def init_toolbar(self): self.toolbar = Frame(self.master, bd=1, relief=SUNKEN) self.undo_button = self.create_toolbar_button(self.undo_icon, self.history.undo_key_image, "Undo last action (Ctrl+Z)") self.redo_button = self.create_toolbar_button(self.redo_icon, self.history.redo_key_image, "Redo last action (Ctrl+Y)") def create_toolbar_button(self, icon, command, tooltip_text): button = Button(self.toolbar, image=icon, command=command) button.pack(side=LEFT, padx=2, pady=2) create_tooltip(button, tooltip_text) return button def init_canvas(self): self.canvas = Canvas(self.master, bg="white") self.context_menu = Menu(self.canvas, tearoff=0) self.canvas.bind("<Button-3>", self.show_context_menu) def init_statusbar(self): self.status_var = StringVar() self.status_var.set("Ready") self.statusbar = Label(self.master, textvariable=self.status_var, bd=1, relief=SUNKEN, anchor=W) self.statusbar.pack(side=BOTTOM, fill=X) def handle_key_press(self, event): key = event.keysym.lower() if key.isalpha() and len(key) == 1: if key in self.key_images: self.history.add_key_image_state(self.key_images, key=key) self.display_bound_images(self.key_images[key]) elif key == 'z' and (event.state & 0x0001): # Pressed CTRL+Z self.history.undo_key_image() elif key == 'y' and (event.state & 0x0001): # Pressed CTRL+Y self.history.redo_key_image() def open_file(self): filetypes = (("JPEG files", "*.jpg"), ("PNG files", "*.png"), ("All files", "*.*")) filename = filedialog.askopenfilename(title="Open file", filetypes=filetypes) if filename: try: key = os.path.basename(filename)[0].lower() image = Image.open(filename) self.add_image_to_key(key, image) self.display_bound_images(self.key_images[key]) self.status_var.set(f"Opened {filename}") except Exception as e: self.status_var.set(f"Failed to open {filename}") print(e) def add_image_to_key(self, key, image): if key in self.key_images: self.key_images[key].append(image) else: self.key_images[key] = deque([image]) self.history.add_key_image_state(self.key_images, key=key) def save_file(self): filetypes = (("JPEG files", "*.jpg"), ("PNG files", "*.png"), ("All files", "*.*")) filename = filedialog.asksaveasfilename(title="Save file", filetypes=filetypes) if filename: try: self.canvas.postscript(file="tmp_canvas.eps", colormode="color") img = Image.open("tmp_canvas.eps") img.save(filename) os.remove("tmp_canvas.eps") self.status_var.set(f"Saved {filename}") except Exception as e: self.status_var.set(f"Failed to save {filename}") print(e) def show_context_menu(self, event): self.context_menu.post(event.x_root, event.y_root) def init_help_menu(self): self.help_menu = Menu(self.menu) self.menu.add_cascade(label="Help", menu=self.help_menu) self.help_menu.add_command(label="Hotkeys and actions", command=self.show_help) self.help_menu.add_command(label="Show History", command=self.show_history) def show_help(self): help_text = """ Hotkeys and actions: A-Z: Show images bound to the key. Ctrl+Z: Undo last action. Ctrl+Y: Redo last action. Undo: Undo last action. (Button) Redo: Redo last action. (Button) """ self.show_help_window("Help", help_text) def show_history(self): history_text = "\n".join([f"Action {i + 1}: {action['key']}" for i, action in enumerate(self.history.actions)]) self.show_help_window("Action History", history_text) def show_help_window(self, title, text): help_window = Toplevel(self.master) help_window.title(title) help_label = Label(help_window, text=text, justify=LEFT) help_label.pack(padx=10, pady=10) help_close_button = Button(help_window, text="Close", command=help_window.destroy) help_close_button.pack(pady=5) def run(self): self.master.mainloop() class ActionHistory: def __init__(self, editor): self.editor = editor self.actions = deque() self.current = -1 def add_key
a0025ae9b6714a341c9d4bb320a844d1
{ "intermediate": 0.3912721574306488, "beginner": 0.4094751179218292, "expert": 0.19925275444984436 }
20,110
make a library system code using language c++
8e79b6e0e2a6e48cf491d3694e7ab37b
{ "intermediate": 0.6983921527862549, "beginner": 0.17720043659210205, "expert": 0.12440741062164307 }
20,111
create a react native component that has two items in a row, one is an image and the other is text, the text should be centered vertically
df24db704bd5f554e3d8ff80fbbeb33a
{ "intermediate": 0.35605838894844055, "beginner": 0.19727171957492828, "expert": 0.44666990637779236 }
20,112
can u write a code in Unity C# in which an object can travel certain distance in 1 minute
193b9aaa42136243b4ede81e208a9291
{ "intermediate": 0.6138684749603271, "beginner": 0.16295163333415985, "expert": 0.22317983210086823 }
20,113
make a bot in javascript that reads a proxy.txt file and for each line/proxy in it uses that proxy to create a pupeteer browser that does nothin but wait on the page for 1 minute then ends the browser session. if a thread does not work do not use it and read the next one. they are all non authenticated socks5 proxies
09d54bc67e7be937b6709eeb9061d157
{ "intermediate": 0.42327436804771423, "beginner": 0.2715131640434265, "expert": 0.30521249771118164 }
20,114
$ yarn add gpu.js yarn add v1.22.19 [1/4] Resolving packages… [2/4] Fetching packages… [3/4] Linking dependencies… warning “@emotion/react > @emotion/babel-plugin@11.9.2” has unmet peer dependency “@babel/core@^7.0.0”. warning “@emotion/react > @emotion/babel-plugin > @babel/plugin-syntax-jsx@7.18.6” has unmet peer dependency “@babel/core@^7.0.0-0”. warning " > @mui/x-data-grid@5.17.8" has unmet peer dependency “@mui/system@^5.4.1”. warning " > @mui/x-date-pickers@5.0.0-beta.2" has unmet peer dependency “@mui/system@^5.4.1”. warning " > @typescript-eslint/eslint-plugin@5.59.0" has unmet peer dependency “@typescript-eslint/parser@^5.0.0”. warning " > next-sitemap@3.1.29" has unmet peer dependency “@next/env@*”. warning " > plyr-react@5.1.0" has unmet peer dependency “plyr@^3.7.2”. warning " > react-code-input@3.10.1" has incorrect peer dependency “react@^15.5.4 ||^16.2.0 || ^17.0.0”. warning " > react-code-input@3.10.1" has incorrect peer dependency “react-dom@^15.5.4 ||^16.2.0 || ^17.0.0”. warning " > react-telegram-login@1.1.2" has incorrect peer dependency “react@^16.13.1”. warning " > react-yandex-maps@4.6.0" has incorrect peer dependency “react@^0.14.9 || ^15.x || ^16.x || ^17.x”. warning “react-yandex-maps > create-react-context@0.3.0” has incorrect peer dependency “react@^0.14.0 || ^15.0.0 || ^16.0.0”. warning " > recharts@2.5.0" has unmet peer dependency “prop-types@^15.6.0”. warning “recharts > react-smooth@2.0.2” has unmet peer dependency “prop-types@^15.6.0”. warning " > styled-components@5.3.6" has unmet peer dependency “react-is@>= 16.8.0”. [4/4] Building fresh packages… error D:\IT\front\app\node_modules\gl: Command failed. Exit code: 1 Command: prebuild-install || node-gyp rebuild Arguments: Directory: D:\IT\front\app\node_modules\gl Output: prebuild-install warn install No prebuilt binaries found (target=18.17.0 runtime=node arch=x64 libc= platform=win32) gyp info it worked if it ends with ok gyp info using node-gyp@9.4.0 gyp info using node@18.17.0 | win32 | x64 gyp info find Python using Python version 3.11.4 found at “C:\Python311\python.exe” gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS checking VS2019 (16.11.33801.447) found at: gyp ERR! find VS “C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools” gyp ERR! find VS - found “Visual Studio C++ core features” gyp ERR! find VS - missing any VC++ toolset gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use gyp ERR! find VS looking for Visual Studio 2015 gyp ERR! find VS - not found gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS gyp ERR! find VS ************************************************************** gyp ERR! find VS You need to install the latest version of Visual Studio gyp ERR! find VS including the “Desktop development with C++” workload. gyp ERR! find VS For more information consult the documentation at: gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! find VS ************************************************************** gyp ERR! find VS gyp ERR! configure error gyp ERR! stack Error: Could not find any Visual Studio installation to use gyp ERR! stack at VisualStudioFinder.fail (D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:122:47) gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:75:16 gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:380:14) gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:71:14 gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:401:16 gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\util.js:54:7 gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\util.js:33:16 gyp ERR! stack at ChildProcess.exithandler (node:child_process:427:5) gyp ERR! stack at ChildProcess.emit (node:events:514:28) gyp ERR! stack at maybeClose (node:internal/child_process:1091:16) gyp ERR! System Windows_NT 10.0.22621 gyp ERR! command “C:\Program Files\nodejs\node.exe” “D:\IT\front\app\node_modules\node-gyp\bin\node-gyp.js” “rebuild” gyp ERR! cwd D:\IT\front\app\node_modules\gl gyp ERR! node -v v18.17.0 gyp ERR! node-gyp -v v9.4.0 gyp ERR! not ok info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
0b13ddf54b69803da5e7a716ae635a05
{ "intermediate": 0.36413878202438354, "beginner": 0.40169429779052734, "expert": 0.23416690528392792 }
20,115
name = ['Всех акций\n MOEX', 'Топ 50\nпо капитализации', 'Топ 10\n по капитализации','Доллара'] price = [1,5,2, 3] bars_color = ['#f74990','#f74990','#f74990','#f74990'] # Figure Size fig, ax = plt.subplots(figsize=(16, 9)) # Add x, y gridlines ax.grid(visible=True, color='white', linestyle='-.', linewidth=0.5, alpha=0.2, zorder=0) # Horizontal Bar Plot ax.barh(name, price,color=bars_color, alpha=1.0, zorder=3) # Remove axes splines for s in ['top', 'bottom', 'left', 'right']: ax.spines[s].set_visible(False) # Remove x, y Ticks ax.xaxis.set_ticks_position('none') ax.yaxis.set_ticks_position('none') # Add padding between axes and labels ax.xaxis.set_tick_params(pad=2) ax.yaxis.set_tick_params(pad=5) # Show top values ax.invert_yaxis() # # Add annotation to bars for i in ax.patches: plt.text(i.get_width() + 2, i.get_y() + 0.5, '+'+ str(round(i.get_width(), 2)) + '%', fontsize=30, #fontweight='bold', color='white') # Add Plot Title ax.set_title('Return 2023 (YTD)', loc='left', fontweight='bold', fontsize=66, color='white') # Add Text watermark fig.text(0.85, 0.3, 'source: https://smart-lab.ru/q/shares/', fontsize=12, color='white', ha='right', va='bottom', alpha=0.7) # Set size of the country names plt.tick_params(axis='y', labelsize=15) # Set background color fig.patch.set_facecolor('#09050b') plt.gca().set_facecolor('#09050b') plt.subplots_adjust(left=0.168, bottom=0.387, right=0.789, top=0.789, wspace=0.364, hspace=None) # Show Plot plt.show() Please how to change color of name variables?
b6284302ba93919c6184a2d758ff0459
{ "intermediate": 0.4698297381401062, "beginner": 0.2976232171058655, "expert": 0.23254704475402832 }
20,116
When I close my workbook, I get a prompt to save. Sometimes it does not save and I loose data that I have entered. Is there any way to ascertain if the workbook has saved or not before it eventually closes
894b6adc770a6d2e82c099d2e52f9f73
{ "intermediate": 0.5329098105430603, "beginner": 0.15490488708019257, "expert": 0.3121853172779083 }
20,117
Ex1: Ask the user to enter his age. You must validate the user input (positive numbers only) Show the status of the user knowing that Child is between 1-10 Teenager is between 11-18 Grown up is between 19-50 Old is greater than 50 keep asking the user to enter another age until he clicks cancel Ex2; - Ask the user to enter a string Count the number of vowels in that string (a,e,o,u,i) Ex a=3 e=0 u=6 i=0 Ex3; Write a JavaScript program to convert the 24 hour clock to 12 , adding am or pm based on its value. Examples 0 -> 12AM 11 -> 11AM 13 -> 1PM by html and js
9be7c16b707ba1b52e53747c15c28705
{ "intermediate": 0.540867030620575, "beginner": 0.2077808380126953, "expert": 0.25135207176208496 }
20,118
Write me code in p5 for a drawing app
ef1138ed0d877aefeafd4d6a48fa34c4
{ "intermediate": 0.34121039509773254, "beginner": 0.4650675356388092, "expert": 0.19372200965881348 }
20,119
where is mysql socket created when mysql is downloaded
9edf37b289201d6463271ee01fb8a302
{ "intermediate": 0.4860462546348572, "beginner": 0.24045979976654053, "expert": 0.2734939157962799 }
20,120
write code for a fluid simulation is p5, make it trigger on click
10ad51aad0fe0bc8c0fa935db346ab07
{ "intermediate": 0.21811753511428833, "beginner": 0.27674201130867004, "expert": 0.505140483379364 }
20,121
how do i add a new element to an array in java
9b1500bde1f2177e62ad61f5f8f97533
{ "intermediate": 0.6290905475616455, "beginner": 0.2141796499490738, "expert": 0.15672971308231354 }
20,122
HOw to print a multidimentional array in java
7db6feee78183853ca8235caee8e5388
{ "intermediate": 0.48334839940071106, "beginner": 0.17334745824337006, "expert": 0.3433041572570801 }
20,123
https://klinecharts.com/en-US/guide/styles.html#default-full-configuration import {DeepPartial, Styles, YAxisType} from "klinecharts"; // candle.candle.tooltip useEffect(() => { chart.current = init(`chart-${uniqueId}`, {styles: chartStyles(theme, chartYAxisType, screenerPage)}) as Nullable<ExtendedChart>; }, []); export const chartStyles = (theme: Theme, chartYAxisType: YAxisType, screenerStyle?: boolean): DeepPartial<Styles> => { return { candle: { tooltip: { }, }, }} в тултипе указаны Time, Open, High, Low, Close, Volume... Как мне сократить все названия до одной буквы и сделать серым цветом, а цифры красным. и поменять формат даты
a909f5220df6416ac2d3599dc65ebc50
{ "intermediate": 0.42761099338531494, "beginner": 0.3295143246650696, "expert": 0.2428746223449707 }
20,124
https://klinecharts.com/en-US/guide/styles.html#default-full-configuration import {DeepPartial, Styles, YAxisType} from "klinecharts"; // candle.candle.tooltip useEffect(() => { chart.current = init(`chart-${uniqueId}`, {styles: chartStyles(theme, chartYAxisType, screenerPage)}) as Nullable<ExtendedChart>; }, []); export const chartStyles = (theme: Theme, chartYAxisType: YAxisType, screenerStyle?: boolean): DeepPartial<Styles> => { return { candle: { tooltip: { }, }, }} в тултипе указаны Time, Open, High, Low, Close, Volume... Как мне сократить все названия до одной буквы и сделать серым цветом, а цифры красным. и поменять формат даты
52d472b11cebef2c5ac39bb9949112bd
{ "intermediate": 0.42761099338531494, "beginner": 0.3295143246650696, "expert": 0.2428746223449707 }
20,125
For this assignment, write a Java program that implements a library system using nested control structures and error handling techniques. The program should provide the following functionalities: Add Books: Implement a method called addBook that takes the book title, author, and quantity as parameters. The method should add the book to the library system, considering the quantity of books provided. If the book already exists in the system, the quantity should be updated accordingly. Borrow Books: Implement a method called borrowBook that takes the book title and the number of books to be borrowed as parameters. The method should check if the requested number of books is available in the library system. If the books are available, the quantity should be updated accordingly. If the requested number of books is not available or the book does not exist, an appropriate error message should be displayed. Return Books: Implement a method called returnBook that takes the book title and the number of books to be returned as parameters. The method should check if the books being returned belong to the library system. If they do, the quantity should be updated accordingly. If the books being returned do not exist in the system or the quantity to be returned is greater than the borrowed quantity, an appropriate error message should be displayed. Implement the above functionalities by using nested control structures to handle complex scenarios and incorporate error handling techniques to address anticipated errors and exceptional situations. Assume that the library system is represented by a class called Library with appropriate instance variables and methods. Write the Java program for the library system, including the implementation of the addBook, borrowBook, and returnBook methods, as well as the necessary error handling and nested control structures.
ddc9e2e44fc708a9d89bff3117799beb
{ "intermediate": 0.5649864077568054, "beginner": 0.21195968985557556, "expert": 0.22305382788181305 }
20,126
https://klinecharts.com/en-US/guide/styles.html#default-full-configuration tooltip: { // ‘always’ | ‘follow_cross’ | ‘none’ showRule: ‘always’, // ‘standard’ | ‘rect’ showType: ‘standard’, // Custom display, it can be a callback method or an array, when it is a method, it needs to return an array // The child item type of the array is { title, value } // title and value can be strings or objects, and the object type is { text, color } // title or title.text can be an internationalized key, // value or value.text supports string templates // For example: want to display time, opening and closing, configure [{ title: ‘time’, value: ‘{time}’ }, { title: ‘open’, value: ‘{open}’ }, { title: ’ close’, value: ‘{close}’ }] custom: null defaultValue: ‘n/a’, rect: { // ‘fixed’ | ‘pointer’ position: ‘fixed’, paddingLeft: 0, paddingRight: 0, paddingTop: 0, paddingBottom: 6, offsetLeft: 10, offsetTop: 8, offsetRight: 10, offsetBottom: 8, borderRadius: 4, borderSize: 1, borderColor: ‘#f2f3f5’, color: ‘#FEFEFE’ }, text: { size: 12, family: ‘Helvetica Neue’, weight: ‘normal’, color: ‘#D9D9D9’, marginLeft: 10, marginTop: 8, marginRight: 6, marginBottom: 0 }, // sample: // [{ // id: ‘icon_id’, // position: ‘left’, // types include ‘left’, ‘middle’, ‘right’ // marginLeft: 8, // marginTop: 6, // marginRight: 0, // marginBottom: 0, // paddingLeft: 1, // paddingTop: 1, // paddingRight: 1, // paddingBottom: 1, // icon: ‘\ue900’, // fontFamily: ‘iconfont’, // size: 12, // color: ‘#76808F’, // backgroundColor: ‘rgba(33, 150, 243, 0.2)’, // activeBackgroundColor: ‘rgba(33, 150, 243, 0.4)’ // }] icons: [] } }, import {DeepPartial, Styles, YAxisType} from “klinecharts”; // candle.candle.tooltip useEffect(() => { chart.current = init(chart-${uniqueId}, {styles: chartStyles(theme, chartYAxisType, screenerPage)}) as Nullable<ExtendedChart>; }, []); export const chartStyles = (theme: Theme, chartYAxisType: YAxisType, screenerStyle?: boolean): DeepPartial<Styles> => { return { candle: { tooltip: { }, }, }} в тултипе указаны Time, Open, High, Low, Close, Volume… Как мне сократить все названия до одной буквы и сделать серым цветом, а цифры красным. и поменять формат даты
419aba82103ccf5365a1aa6e584d6a6e
{ "intermediate": 0.36199700832366943, "beginner": 0.3707919120788574, "expert": 0.26721107959747314 }
20,127
Ex1: Create function User will enter first number Then enter an operation (sum ,multi ,subtract ,division) as string Then enter second number Then do the operation and show the result to user by html and js
5479c1b51cd226514dfe6e2917b05519
{ "intermediate": 0.46996164321899414, "beginner": 0.2650686204433441, "expert": 0.26496973633766174 }
20,128
Ex2; - Create function User will enter his Username , Password If username = “admin” and password = “421$$” Show him message “Welcome login success” If he entered incorrect username or password Tell him which data entered wrong by html and js by prompet
f174fd94db199f394854b4b3be1ab7a0
{ "intermediate": 0.42031705379486084, "beginner": 0.2834193706512451, "expert": 0.29626357555389404 }
20,129
- Create function User will enter his Username , Password If username = “admin” and password = “421$$” Show him message “Welcome login success” If he entered incorrect username or password Tell him which data entered wrong by html and js by prompet
b002c5b08011f6190b37a868274bf8cd
{ "intermediate": 0.3763088583946228, "beginner": 0.3219788670539856, "expert": 0.3017122149467468 }
20,130
how do I add a new element to a mutableListOf < Pair<String, E?>()?
cf052943e8bb9cc676e7150952a7bdda
{ "intermediate": 0.5692768692970276, "beginner": 0.22776281833648682, "expert": 0.20296034216880798 }
20,131
im in kaggle colab its a way to acces this local link? Calculating sha256 for /kaggle/temp/models/kizuki.safetensors: Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`.
e8b8ab0f3fb5e035ef1c90e8e7620509
{ "intermediate": 0.4898283779621124, "beginner": 0.15943050384521484, "expert": 0.35074108839035034 }
20,132
how do i search if an element is in an array
66113623218c78a010982c75e7216b49
{ "intermediate": 0.3966353237628937, "beginner": 0.18927304446697235, "expert": 0.41409167647361755 }
20,133
Writing a full, long, detailed article in html format, optimized for search engines | be more than 500 words | Meta Description | Table of Contents | <H1>, <H2>, <H3> | Use dotted paragraph | Use the numbered paragraph | Conclusion | Frequently Asked Questions | Use bullet points and numbering in paragraphs, and be detailed It is written in English, with full targeting of the keyword within the article, to be ranked first in the search results. The title of the article and the keyword is ( “Canadian Immigration Policies and Canadian immigration, skilled This article examines the current Canadian Skilled Workers: Addressing worker immigration, economic immigration policies regarding skilled Economic Needs” growth, labor market workers and explores how they address the country’s economic needs and labor market demands.). اقترح سؤال جدلي للقارئ في اخر المقال ليكتب تعليقا او يضيف رأيا اخر
d08be0bac07b6baf402a0ab217c9ed57
{ "intermediate": 0.2567750811576843, "beginner": 0.44109052419662476, "expert": 0.30213433504104614 }
20,134
write me a command to retry get date xhrhtmlrequest retry every 10 seconds
1c513fdac641f06d22d780a1b524847b
{ "intermediate": 0.39910274744033813, "beginner": 0.272356778383255, "expert": 0.3285404443740845 }
20,135
What type of variables are scanner inputs? Are they Strings?
7d3ef10d88d377b80c98f308f4cd8543
{ "intermediate": 0.23922328650951385, "beginner": 0.41811519861221313, "expert": 0.34266147017478943 }
20,136
use this message org.xml.sax.SAXParseException; lineNumber: 821; columnNumber: 9; Open quote is expected for attribute "id" associated with an element type "div". to fix this code (<div id=‘main-wrapper’>)
59aa8ebc4444f8dc118ce38dcbe6f70f
{ "intermediate": 0.4562852680683136, "beginner": 0.22973056137561798, "expert": 0.3139841556549072 }
20,137
When I use the regex supplied below to match "Leckare erfrischente Lemonade, nur fünfzig Zent das Glas! Kombt und greift zu. Gegen die Hitse!" in "[i]Leckare erfrischente Lemonade, nur fünfzig Zent das Glas! Kombt und greift zu. Gegen die Hitse![/i]", it gets matched, but when I add a line break ("[i]Leckare erfrischente Lemonade, nur fünfzig Zent das Glas! Kombt und greift zu. Gegen die Hitse![/i]"), it doesn't get matched anymore. The regex expression in question: \[i\](.*?(\d*|$))\[/i]
caa65e3374ea88c5e42e634fab491683
{ "intermediate": 0.3753719627857208, "beginner": 0.33005642890930176, "expert": 0.29457157850265503 }
20,138
import frappe from frappe import _ def execute(filters=None): columns = get_columns(filters.item) data = get_data(filters.item) return columns, data def get_data(item): if not item: return [] item_dicts = [] variant_results = frappe.db.get_all( "Item", fields=["name"], filters={"variant_of": ["=", item], "disabled": 0} ) if not variant_results: frappe.msgprint(_("There aren't any item variants for the selected item")) return [] else: variant_list = [variant["name"] for variant in variant_results] order_count_map = get_open_sales_orders_count(variant_list) stock_details_map = get_stock_details_map(variant_list) buying_price_map = get_buying_price_map(variant_list) selling_price_map = get_selling_price_map(variant_list) attr_val_map = get_attribute_values_map(variant_list) attributes = frappe.db.get_all( "Item Variant Attribute", fields=["attribute"], filters={"parent": ["in", variant_list]}, group_by="attribute", ) attribute_list = [row.get("attribute") for row in attributes] # Prepare dicts variant_dicts = [{"variant_name": d["name"]} for d in variant_results] for item_dict in variant_dicts: name = item_dict.get("variant_name") for attribute in attribute_list: attr_dict = attr_val_map.get(name) if attr_dict and attr_dict.get(attribute): item_dict[frappe.scrub(attribute)] = attr_val_map.get(name).get(attribute) item_dict["open_orders"] = order_count_map.get(name) or 0 if stock_details_map.get(name): item_dict["current_stock"] = stock_details_map.get(name)["Inventory"] or 0 item_dict["in_production"] = stock_details_map.get(name)["In Production"] or 0 else: item_dict["current_stock"] = item_dict["in_production"] = 0 item_dict["avg_buying_price_list_rate"] = buying_price_map.get(name) or 0 item_dict["avg_selling_price_list_rate"] = selling_price_map.get(name) or 0 item_dicts.append(item_dict) return item_dicts def get_columns(item): columns = [ { "fieldname": "variant_name", "label": _("Variant"), "fieldtype": "Link", "options": "Item", "width": 200, } ] item_doc = frappe.get_doc("Item", item) for entry in item_doc.attributes: columns.append( { "fieldname": frappe.scrub(entry.attribute), "label": entry.attribute, "fieldtype": "Data", "width": 100, } ) additional_columns = [ { "fieldname": "avg_buying_price_list_rate", "label": _("Avg. Buying Price List Rate"), "fieldtype": "Currency", "width": 150, }, { "fieldname": "avg_selling_price_list_rate", "label": _("Avg. Selling Price List Rate"), "fieldtype": "Currency", "width": 150, }, {"fieldname": "current_stock", "label": _("Current Stock"), "fieldtype": "Float", "width": 120}, {"fieldname": "in_production", "label": _("In Production"), "fieldtype": "Float", "width": 150}, { "fieldname": "open_orders", "label": _("Open Sales Orders"), "fieldtype": "Float", "width": 150, }, ] columns.extend(additional_columns) return columns def get_open_sales_orders_count(variants_list): open_sales_orders = frappe.db.get_list( "Sales Order", fields=["name", "`tabSales Order Item`.item_code"], filters=[ ["Sales Order", "docstatus", "=", 1], ["Sales Order Item", "item_code", "in", variants_list], ], distinct=1, ) order_count_map = {} for row in open_sales_orders: item_code = row.get("item_code") if order_count_map.get(item_code) is None: order_count_map[item_code] = 1 else: order_count_map[item_code] += 1 return order_count_map def get_stock_details_map(variant_list): stock_details = frappe.db.get_all( "Bin", fields=[ "sum(planned_qty) as planned_qty", "sum(actual_qty) as actual_qty", "sum(projected_qty) as projected_qty", "item_code", ], filters={"item_code": ["in", variant_list]}, group_by="item_code", ) stock_details_map = {} for row in stock_details: name = row.get("item_code") stock_details_map[name] = { "Inventory": row.get("actual_qty"), "In Production": row.get("planned_qty"), } return stock_details_map def get_buying_price_map(variant_list): buying = frappe.db.get_all( "Item Price", fields=[ "avg(price_list_rate) as avg_rate", "item_code", ], filters={"item_code": ["in", variant_list], "buying": 1}, group_by="item_code", ) buying_price_map = {} for row in buying: buying_price_map[row.get("item_code")] = row.get("avg_rate") return buying_price_map def get_selling_price_map(variant_list): selling = frappe.db.get_all( "Item Price", fields=[ "avg(price_list_rate) as avg_rate", "item_code", ], filters={"item_code": ["in", variant_list], "selling": 1}, group_by="item_code", ) selling_price_map = {} for row in selling: selling_price_map[row.get("item_code")] = row.get("avg_rate") return selling_price_map def get_attribute_values_map(variant_list): attribute_list = frappe.db.get_all( "Item Variant Attribute", fields=["attribute", "attribute_value", "parent"], filters={"parent": ["in", variant_list]}, ) attr_val_map = {} for row in attribute_list: name = row.get("parent") if not attr_val_map.get(name): attr_val_map[name] = {} attr_val_map[name][row.get("attribute")] = row.get("attribute_value") return attr_val_map i want edit this report to get item by warehouses
9c359db38a7c3309d10b63abe35a0eaa
{ "intermediate": 0.3081040680408478, "beginner": 0.37964120507240295, "expert": 0.31225472688674927 }
20,139
What is the final state of process prototyping? Developing Establishing Objectives Defining Functionality Evaluating
3848a2e7a5e069991ae20ecc45125c99
{ "intermediate": 0.28315404057502747, "beginner": 0.2769191265106201, "expert": 0.4399268627166748 }
20,140
need that element to expand on 100% but be within some specific fixed height on its initial state, as 32px for fixed: #mark { position:absolute; margin-top:0 auto; --transform: scaleX(1); width:80px; height:100%; display: flex; align-items: center; justify-content: center; border:1px inset darkmagenta; background: linear-gradient(to right, #101030 1px, transparent 35px) 0 100%, linear-gradient(to top, transparent 5px, transparent 60px) 0 100%; background-size: 8% 100%, 10% 60px; color:#aabbee; --border-radius: 0px; --padding: 5px; font-size: var(--font-size, 18px); --font-family: var(--font-family, 'Open Sans', sans-serif); font-weight: var(--font-weight, bold); ---webkit-text-stroke: 1px #257; --text-stroke: 1px #257; white-space: nowrap; z-index:0; --border-style:solid ; --border-color: white; --border-top:0px; --border-bottom:0px; text-shadow: 0px 0px 1px magenta; }
6acce415368eb7ac3dfd14814b7130a8
{ "intermediate": 0.3689299523830414, "beginner": 0.3660873472690582, "expert": 0.2649827301502228 }
20,141
You are working for a manufacturing company, and are trying to make your product as cheaply as possible. Let's say you're making teddy bears. You can potentially buy painted glass eyeballs, tiny shirts, fake bear cloth, and sewing thread, and put them all together in your factory to produce the teddy bear. But to save money, maybe you can build the painted glass eyeballs yourself by buying glass and paint. And so on and so forth. You could even build your own paint if it's cheaper than purchasing paint directly! Your goal is to figure out the cheapest way to make your product. There are no costs associated with combining inputs into a product. The first part of the input will be the product you are trying to obtain (the "target product"). The second part will be data representing how to build and/or purchase various products. Your code should output the cheapest way to obtain the target product (either via building it yourself or purchasing it). Input Description A target product (target_product) For each Product: The name of the product (product_name) The price to purchase the product directly (price_to_purchase) The number of materials required as inputs to build the product (input_products_size) A list of materials required as inputs to build the product (input_products) If price_to_purchase is null, it is impossible to purchase that product. If input_products is empty, it is impossible to build that product These inputs will be formatted like this: <target_product> <product_name>,<price_to_purchase>,<input_products_size>,<input_products> <product_name>,<price_to_purchase>,<input_products_size>,<input_products> <product_name>,<price_to_purchase>,<input_products_size>,<input_products> <product_name>,<price_to_purchase>,<input_products_size>,<input_products> Example teddy bear painted glass eyeball,10.5,2,glass;paint glass,5,0, paint,4,0, teddy bear,null,4,painted glass eyeball;tiny shirt;faux bear fur fabric;sewing thread faux bear fur fabric,15,2,bear;yarn bear,100,0, yarn,2,0, sewing thread,13,0, tiny shirt,24,0, In the above example, we are making teddy bears, since that is in the first row of the input. Teddy bears are not able to be purchased on the market ("null" in the second column of the input), thus you'll have to build the teddy bear yourself. It is cheaper to build the "painted glass eyeball" yourself out of glass and paint, instead of purchasing the eyeballs ($5 + $4 < $10.5). However, it is cheaper to purchase the "faux bear fur fabric", rather than make it yourself out of bear and yarn ($15 < $100 + $2). Since the list of inputs is empty for sewing threads and tiny shirts, that means they must be purchased for $13 and $24, repectively. So the cheapest price to produce teddy bears would be calculated below: 5 (glass) + 4 (paint) + 15 (faux bear fur fabric) + 24 (tiny shirt) + 13 (sewing thread) -------- $61 To format this properly, you should write 61.00 to stdout. Notes The target product will always be possible to build and/or purchase There are no "cycles" of inputs. For example, it would never be the case that product A is an input to product B, but product B is also an input to product A Some products are "raw inputs", and are unable to be produced. They must be purchased. They have an empty list of input products (in the above example, bear, yarn, sewing thread, and tiny shirt are all "raw inputs") Since the output is simply the cheapest price to produce the target product, it does not matter if there is a tie between the price to purchase the target product and the price to produce it It is possible to for a product to be an input to multiple other products If a product is in input_products, it is guaranteed to be listed as a product Input: A target product For each Product: The name of the product The price to purchase the product directly The number of products required as inputs to build the product A list of products required as inputs to build the product teddy bear painted glass eyeball,10.5,2,glass;paint glass,5,0, paint,4,0, teddy bear,null,4,painted glass eyeball;tiny shirt;faux bear fur fabric;sewing thread faux bear fur fabric,15,2,bear;yarn bear,100,0, yarn,2,0, sewing thread,13,0, tiny shirt,24,0, NOTE: You have been given skeleton code to help parse this input. You may alter this code as you wish, including not using it at all. Output: A number, formatted with two decimal places, that is the cheapest possible price to manufacture the target product 61.00
44c0c441c839bf33e024a008e58b9c80
{ "intermediate": 0.4119531810283661, "beginner": 0.46186363697052, "expert": 0.1261831820011139 }
20,142
create the table xfactorfinalists, id INT , name VARCHAR(255), series INT NOT NULL, category VARCHAR(255), mentor VARCHAR(255) , finished VARCHAR(255) );
3c4865506388c6583a421c58263092c9
{ "intermediate": 0.3985913395881653, "beginner": 0.20434366166591644, "expert": 0.3970649838447571 }
20,144
insert into xfactorfinalists values, insert into xfactorfinalists values, Id Name Series Category Mentor Finished 17 Steve Brookstein 1 Over 25s Simon Cowell 1 105 Shayne Ward 2 16-24s Louis Walsh 1 65 Leona Lewis 3 16-24s Simon Cowell 1 55 Leon Jackson 4 Boys Dannii Minogue 1 20 Alexandra Burke 5 Girls Cheryl Cole 1 72 Joe McElderry 6 Boys Cheryl Cole 1 23 Matt Cardle 7 Boys Dannii Minogue 1 67 Little Mix (Rhythmix) 8 Groups Tulisa Contostavlos 1 11 James Arthur 9 Boys Nicole Scherzinger 1 47 G4 1 Groups Louis Walsh 2 4 Andy Abraham 2 Over 25s Sharon Osbourne 2 87 Ray Quinn 3 16-24s Simon Cowell 2 89 Rhydian 4 Boys Dannii Minogue 2 56 JLS 5 Groups Louis Walsh 2 82 Olly Murs 6 Over 25s Simon Cowell 2 43 Rebecca Ferguson 7 Girls Cheryl Cole 2 26 Marcus Collins 8 Boys Gary Barlow 2 36 Jahméne Douglas 9 Boys Nicole Scherzinger 2 22 Tabby Callaghan 1 16-24s Sharon Osbourne 3 60 Journey South 2 Groups Simon Cowell 3 78 Ben Mills 3 Over 25s Sharon Osbourne 3 91 Same Difference 4 Groups Simon Cowell 3 86 Eoghan Quigg 5 Boys Simon Cowell 3 94 Stacey Solomon 6 Girls Dannii Minogue 3 84 One Direction 7 Groups Simon Cowell 3 66 Amelia Lily 8 Girls Kelly Rowland 3 76 Christopher Maloney 9 Over 28s Gary Barlow 3 92 Rowetta Satchell 1 Over 25s Simon Cowell 4 38 Brenda Edwards 2 Over 25s Sharon Osbourne 4 71 The MacDonald Brothers 3 Groups Louis Walsh 4 42 Niki Evans 4 Over 25s Louis Walsh 4 101 Diana Vickers 5 Girls Cheryl Cole 4 58 Danyl Johnson 6 Over 25s Simon Cowell 4 68 Cher Lloyd 7 Girls Cheryl Cole 4 12 Misha B 8 Girls Kelly Rowland 4 100 Union J 9 Groups Louis Walsh 4 28 Cassie Compton 1 16-24s Sharon Osbourne 5 93 Chico Slimani 2 Over 25s Sharon Osbourne 5 40 Eton Road 3 Groups Louis Walsh 5 52 Hope 4 Groups Simon Cowell 5 70 Ruth Lorenzo 5 Over 25s Dannii Minogue 5 30 Lloyd Daniels 6 Boys Cheryl Cole 5 21 Mary Byrne 7 Over 28s Louis Walsh 5 32 Janet Devlin 8 Girls Kelly Rowland 5 24 Rylan Clark 9 Boys Nicole Scherzinger 5 102 Voices with Soul 1 Groups Louis Walsh 6 29 The Conway Sisters 2 Groups Simon Cowell 6 8 Robert Allen 3 Over 25s Sharon Osbourne 6 98 Beverley Trotman 4 Over 25s Louis Walsh 6 54 Rachel Hylton 5 Over 25s Dannii Minogue 6 57 John & Edward 6 Groups Louis Walsh 6 103 Wagner 7 Over 28s Louis Walsh 6 27 Craig Colton 8 Boys Gary Barlow 6 51 Ella Henderson 9 Girls Tulisa Contostavlos 6 1 2 to Go 1 Groups Louis Walsh 7 35 Nicholas Dorsett 2 16-24s Louis Walsh 7 9 Nikitta Angus 3 16-24s Simon Cowell 7 15 Alisha Bennett 4 Girls Sharon Osbourne 7 41 Daniel Evans 5 Over 25s Dannii Minogue 7 10 Jamie Archer 6 Over 25s Simon Cowell 7 104 Katie Waissel 7 Girls Cheryl Cole 7 18 Kitty Brucknell 8 Over 25s Louis Walsh 7 33 District3 9 Groups Louis Walsh 7 62 Verity Keays 1 Over 25s Simon Cowell 8 63 Maria Lawson 2 Over 25s Sharon Osbourne 8 74 Ashley McKenzie 3 16-24s Simon Cowell 8 107 Andy Williams 4 Boys Dannii Minogue 8 106 Laura White 5 Girls Cheryl Cole 8 59 Lucie Jones 6 Girls Dannii Minogue 8 88 Paije Richardson 7 Boys Dannii Minogue 8 95 Kye Sones 9 Over 28s Gary Barlow 8 53 Roberta Howett 1 16-24s Sharon Osbourne 9 108 Chenai Zinyuku 2 16-24s Louis Walsh 9 73 Kerry McGregor 3 Over 25s Sharon Osbourne 9 45 Futureproof 4 Groups Simon Cowell 9 37 Austin Drage 5 Boys Simon Cowell 9 6 Rachel Adedeji 6 Girls Dannii Minogue 9 49 Aiden Grimshaw 7 Boys Dannii Minogue 9 90 Johnny Robinson 8 Over 25s Louis Walsh 9 75 Phillip Magee 2 16-24s Louis Walsh 10 80 Dionne Mitchell 3 Over 25s Sharon Osbourne 10 19 Scott Bruton 5 Boys Simon Cowell 10 79 Miss Frank 6 Groups Louis Walsh 10 25 Treyc Cohen 7 Girls Cheryl Cole 10 97 The Risk 8 Groups Tulisa Contostavlos 10 39 Jade Ellis 9 Girls Tulisa Contostavlos 10 3 4Tune 2 Groups Simon Cowell 11 2 4Sure 3 Groups Louis Walsh 11 31 Daniel DeBourg 4 Over 25s Louis Walsh 11 48 Girlband 5 Groups Louis Walsh 11 69 Rikki Loney 6 Boys Cheryl Cole 11 14 Belle Amie 7 Groups Simon Cowell 11 50 Sophie Habibis 8 Girls Kelly Rowland 11 81 MK1 9 Groups Louis Walsh 11 5 Addictiv Ladies 2 Groups Simon Cowell 12 99 The Unconventionals 3 Groups Louis Walsh 12 96 Kimberley Southwick 4 Girls Sharon Osbourne 12 13 Bad Lashes 5 Groups Louis Walsh 12 61 Kandy Rain 6 Groups Louis Walsh 12 7 John Adeleye 7 Over 28s Louis Walsh 12 16 Sami Brookes 8 Over 25s Louis Walsh 12 77 Melanie Masson 9 Over 28s Gary Barlow 12 34 Diva Fever 7 Groups Simon Cowell 13 83 Nu Vibe 8 Groups Tulisa Contostavlos 13 85 Carolynne Poole 9 Over 28s Gary Barlow 13 64 Storm Lee 7 Over 28s Louis Walsh 14 46 F.Y.D. 7 Groups Simon Cowell 15 109 Wally Owl 10 Birds Wally Owl 15 44 Nicolo Festa 7 Boys Dannii Minogue 16 on tsql with this "" on all of them
9c2fa475e5498120b0558e461dafb164
{ "intermediate": 0.39664947986602783, "beginner": 0.4064614474773407, "expert": 0.19688910245895386 }
20,145
x=[[1,2,3],[2,2,2],[4,4,4]] for i in x: print((count[i])/len(i))
490554e94fe7f7e56e36766e8aae73c1
{ "intermediate": 0.2350279986858368, "beginner": 0.5832377672195435, "expert": 0.18173423409461975 }
20,146
can u write a code in Unity C# in which an object moves through a pre-defined distance under a specified time range?
3a225a190556ab0edb9608f8a578d8c4
{ "intermediate": 0.6631616353988647, "beginner": 0.131768599152565, "expert": 0.20506973564624786 }
20,147
Rewrite this while keeping the explanation and format as same as possible, but in about half the length: "Comparison operations compares some value or operand. Then based on some condition, they produce a Boolean. Let's say we assign a value of a to six. We can use the equality operator denoted with two equal signs to determine if two values are equal. In this case, if seven is equal to six. In this case, as six is not equal to seven, the result is false. If we performed an equality test for the value six, the two values would be equal. As a result, we would get a true. Consider the following equality comparison operator: If the value of the left operand, in this case, the variable i is greater than the value of the right operand, in this case five, the condition becomes true or else we get a false. Let's display some values for i on the left. Let's see the value is greater than five in green and the rest in red. If we set i equal to six, we see that six is larger than five and as a result, we get a true. We can also apply the same operations to floats. If we modify the operator as follows, if the left operand i is greater than or equal to the value of the right operand, in this case five, then the condition becomes true. In this case, we include the value of five in the number line and the color changes to green accordingly. If we set the value of i equal to five, the operand will produce a true. If we set the value of i to two, we would get a false because two is less than five. We can change the inequality if the value of the left operand, in this case, i is less than the value of the right operand, in this case, six. Then condition becomes true. Again, we can represent this with a colored number line. The areas where the inequality is true are marked in green and red where the inequality is false. If the value for i is set to two, the result is a true. As two is less than six. The inequality test uses an explanation mark preceding the equal sign. If two operands are not equal, then the condition becomes true. We can use a number line. When the condition is true, the corresponding numbers are marked in green and red for where the condition is false. If we set i equal to two, the operator is true as two is not equal to six. We compare strings as well. Comparing ACDC and Michael Jackson using the equality test, we get a false, as the strings are not the same. Using the inequality test, we get a true, as the strings are different. See the Lapps for more examples. Branching allows us to run different statements for a different input. It's helpful to think of an if statement as a locked room. If this statement is true, you can enter the room and your program can run some predefined task. If the statement is false, your program will skip the task. For example, consider the blue rectangle representing an ACDC concert. If the individual is 18 or older, they can enter the ACDC concert. If they are under the age of 18, they cannot enter the concert. Individual proceeds to the concert their age is 17, therefore, they are not granted access to the concert and they must move on. If the individual is 19, the condition is true. They can enter the concert then they can move on. This is the syntax of the if statement from our previous example. We have the if statement. We have the expression that can be true or false. The brackets are not necessary. We have a colon. Within an indent, we have the expression that is run if the condition is true. The statements after the if statement will run regardless if the condition is true or false. For the case where the age is 17, we set the value of the variable age to 17. We check the if statement, the statement is false. Therefore the program will not execute the statement to print, "you will enter". In this case, it will just print "move on". For the case where the age is 19, we set the value of the variable age to 19. We check the if statement. The statement is true. Therefore, the program will execute the statement to print "you will enter". Then it will just print "move on". The else statement will run a different block of code if the same condition is false. Let's use the ACDC concert analogy again. If the user is 17, they cannot go to the ACDC concert but they can go to the Meat Loaf concert represented by the purple square. If the individual is 19, the condition is true, they can enter the ACDC concert then they can move on as before. The syntax of the else statement is similar. We simply append the statement else. We then add the expression we would like to execute with an indent. For the case where the age is 17, we set the value of the variable age to 17. We check the if statement, the statement is false. Therefore, we progress to the else statement. We run the statement in the indent. This corresponds to the individual attending the Meat Loaf concert. The program will then continue running. For the case where the age is 19, we set the value of the variable age to 19. We check the if statement, the statement is true. Therefore, the program will execute the statement to print "you will enter". The program skips the expressions in the else statement and continues to run the rest of the expressions. The elif statement, short for else if, allows us to check additional conditions if the preceding condition is false. If the condition is true, the alternate expressions will be run. Consider the concert example, if the individual is 18, they will go to the Pink Floyd concert instead of attending the ACDC or Meat Loaf concerts. The person of 18 years of age enters the area as they are not over 19 years of age. They cannot see ACDC but as their 18 years, they attend Pink Floyd. After seeing Pink Floyd, they move on. The syntax of the elif statement is similar. We simply add the statement elif with the condition. We, then add the expression we would like to execute if the statement is true with an indent. Let's illustrate the code on the left. An 18 year old enters. They are not older than 18 years of age. Therefore, the condition is false. So the condition of the elif statement is checked. The condition is true. So then we would print "go see Pink Floyd". Then we would move on as before. If the variable age was 17, the statement "go see Meat Loaf" would print. Similarly, if the age was greater than 18, the statement "you can enter" would print. Check the Lapps for more examples. Now let's take a look at logic operators. Logic operations take Boolean values and produce different Boolean values. The first operation is the not operator. If the input is true, the result is a false. Similarly, if the input is false, the result is a true. Let A and B represent Boolean variables. The OR operator takes in the two values and produces a new Boolean value. We can use this table to represent the different values. The first column represents the possible values of A. The second column represents the possible values of B. The final column represents the result of applying the OR operation. We see the OR operator only produces a false if all the Boolean values are false. The following lines of code will print out: "This album was made in the 70s' or 90's", if the variable album year does not fall in the 80s. Let's see what happens when we set the album year to 1990. The colored number line is green when the condition is true and red when the condition is false. In this case, the condition is false. Examining the second condition, we see that 1990 is greater than 1989. So the condition is true. We can verify by examining the corresponding second number line. In the final number line, the green region indicates, where the area is true. This region corresponds to where at least one statement is true. We see that 1990 falls in the area. Therefore, we execute the statement. Let A and B represent Boolean variables. The AND operator takes in the two values and produces a new Boolean value. We can use this table to represent the different values. The first column represents the possible values of A. The second column represents the possible values of B. The final column represents the result of applying the AND operation. We see the OR operator only produces a true if all the Boolean values are true. The following lines of code will print out "This album was made in the 80's" if the variable album year is between 1980 and 1989. Let's see what happens when we set the album year to 1983. As before, we can use the colored number line to examine where the condition is true. In this case, 1983 is larger than 1980, so the condition is true. Examining the second condition, we see that 1990 is greater than 1983. So, this condition is also true. We can verify by examining the corresponding second number line. In the final number line, the green region indicates where the area is true. Similarly, this region corresponds to where both statements are true. We see that 1983 falls in the area. Therefore, we execute the statement. Branching allows us to run different statements for different inputs."
d6af0f05291814bf6b06fdab47cf81ca
{ "intermediate": 0.4250655770301819, "beginner": 0.39462676644325256, "expert": 0.18030764162540436 }
20,148
give me 100 short answer questions about len in python with answers
dda246b901b360a60ca4de2906a0b01a
{ "intermediate": 0.2662910223007202, "beginner": 0.35773491859436035, "expert": 0.37597405910491943 }
20,149
x={“name”:“Ali”,“Age”:22,“six”:“boy”,“job”:“student”,“n”:“Eygpt”,“sity”:“cairo”} print(len(x[0])) i want to print the second key
ee6f40cf72d416ba2d7fc1aef1457549
{ "intermediate": 0.2653456926345825, "beginner": 0.36606723070144653, "expert": 0.36858710646629333 }
20,150
Write python 3 jupyter notebook code, every paragraph is a separate cell.
998749aee548c33ed51736bedff21f40
{ "intermediate": 0.40465956926345825, "beginner": 0.2311457246541977, "expert": 0.36419475078582764 }
20,151
Financialscmd = New OleDbCommand("insert into StrgOper (TransID, StrgOperItem, StrgOperQty, StrgOperTime, StrgOperUser) Values (" & TransID.Text & ", '" & DataGridView1(0, DataGridView1.Rows(i).Index).Value & "', " & Val(DataGridView1(1, DataGridView1.Rows(i).Index).Value) & ",#" & TransTime.Value.ToString("MM-dd-yyyy HH:mm:ss") & "#,'" & TransUser.Text & "')", con) If con.State = ConnectionState.Closed Then con.Open() End If Financialscmd.ExecuteNonQuery() con.Close() I want to make it parametriezed
de77d1c26a79fefb02d8b5a9cefccfcc
{ "intermediate": 0.3991328477859497, "beginner": 0.37084126472473145, "expert": 0.23002584278583527 }
20,152
у меня есть код, подскажи как вместо строки import * as THREE from 'three'; подключить только нужные мне модули для работы этого кода? Чтобы не подключать всю библиотеку three код: import * as THREE from 'three'; import {GLTFLoader} from 'three/addons/loaders/GLTFLoader.js'; const loader = new THREE.TextureLoader(); const gltfLoader = new GLTFLoader(); const model = 'cube animationglb16.glb'; const texture = loader.load('img/image.png'); texture.colorSpace = THREE.SRGBColorSpace; const renderer = new THREE.WebGL1Renderer({ antialias: true, alpha: true }); renderer.setSize(window.innerWidth, window.innerHeight); renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.PCFSoftShadowMap; document.body.appendChild(renderer.domElement); const scene = new THREE.Scene(); scene.fog = new THREE.FogExp2(0xE2E9D4, 0.05); const camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 0.1, 1000 ); camera.position.x = 5; camera.position.y = 5; camera.position.z = 5; const light2 = new THREE.AmbientLight( 0xffffff, 2.8 ); scene.add(light2); gltfLoader.load( model, ( gltf ) => { const modelWithCube = gltf.scene; const animations = gltf.animations; const mixer = new THREE.AnimationMixer(modelWithCube); for (let i = 0; i < animations.length; i++) { const clip = animations[i]; animations[i].playbackSpeed = 0.01; mixer.clipAction(clip).play(); } const array = modelWithCube.children; console.log(modelWithCube.castShadow); for (let i = 0; i < array.length; i++) { if (modelWithCube.children[i].type == 'Mesh') { modelWithCube.children[i].material.side = THREE.DoubleSide; modelWithCube.children[i].castShadow = true; modelWithCube.children[i].receiveShadow = true; } if (modelWithCube.children[i].name == 'Cube004') { modelWithCube.children[i].material.castShadow = true; modelWithCube.children[i].scale.set(0,0,0); } if (modelWithCube.children[i].name == 'Cube005') { } } scene.add( modelWithCube ); const clock = new THREE.Clock(); function animate() { const deltaTime = clock.getDelta(); requestAnimationFrame(animate); mixer.update(deltaTime/4); const cameraLookAtCube = modelWithCube.children[2]; camera.lookAt(cameraLookAtCube.position); const cameraPositionCube = modelWithCube.children[0]; camera.position.copy( cameraPositionCube.position ); } animate(); }); function resizeRendererToDisplaySize(renderer) { const canvas = renderer.domElement; const width = canvas.clientWidth; const height = canvas.clientHeight; const needResize = canvas.width !== width || canvas.height !== height; if (needResize) { renderer.setSize(width, height, false); } return needResize; } let time = 0; function render() { if (resizeRendererToDisplaySize(renderer)) { canvas = renderer.domElement; camera.aspect = canvas.clientWidth / canvas.clientHeight; camera.updateProjectionMatrix(); } time += 0.01; renderer.render( scene, camera ); requestAnimationFrame( render ); } render();
71d2a3ca72402b86ba7a2c8d73a3574c
{ "intermediate": 0.3785509467124939, "beginner": 0.47550150752067566, "expert": 0.14594750106334686 }
20,153
Исправь ошибки : adduser@IvanThunder:~/project$ tree . ├── Dockerfile-php ├── apache │   └── apache2-config ├── cat-files.sh ├── docker-compose.yml ├── init-db.sql ├── init.sql ├── mysql │   └── Dockerfile-mysql ├── mysql-data │   ├── auto.cnf │   ├── ca-key.pem │   ├── ca.pem │   ├── client-cert.pem │   ├── client-key.pem │   ├── ib_buffer_pool │   ├── ib_logfile0 │   ├── ib_logfile1 │   ├── ibdata1 │   ├── mydb [error opening dir] │   ├── mysql [error opening dir] │   ├── mysql.sock -> /var/run/mysqld/mysqld.sock │   ├── performance_schema [error opening dir] │   ├── private_key.pem │   ├── public_key.pem │   ├── server-cert.pem │   ├── server-key.pem │   └── sys [error opening dir] └── www ├── add.php ├── config.php ├── index.php └── orders.php 9 directories, 24 files adduser@IvanThunder:~/project$ ./cat-files.sh find: ‘./mysql-data/performance_schema’: Permission denied find: ‘./mysql-data/mysql’: Permission denied find: ‘./mysql-data/mydb’: Permission denied find: ‘./mysql-data/sys’: Permission denied File: ./init.sql CREATE TABLE users ( id INT(11) NOT NULL AUTO_INCREMENT, name VARCHAR(50), email VARCHAR(50), PRIMARY KEY (id) ); CREATE TABLE orders ( id INT(11) NOT NULL AUTO_INCREMENT, user_id INT(11), product_name VARCHAR(50), price FLOAT(2), PRIMARY KEY (id), FOREIGN KEY (user_id) REFERENCES users(id) ); File: ./www/add.php <?php include_once("config.php"); $message = ""; if(isset($_POST['submit'])) { $name = $_POST['name']; $email = $_POST['email']; if(empty($name) || empty($email)) { $message = "<p>Please provide name and email</p>"; } else { if($stmt = $mysqli->prepare("INSERT INTO users(name,email) VALUES(?,?)")) { $stmt->bind_param("ss", $name, $email); if($stmt->execute()) { $message = "<p>User added successfully</p>"; } else { $message = "<p>Error: " . $mysqli->error . "</p>"; } $stmt->close(); } else { $message = "<p>Error: " . $mysqli->error . "</p>"; } } } ?> <form method="post"> <?php echo $message; ?> <label>Name:</label> <input type="text" name="name"> <br> <label>Email:</label> <input type="text" name="email"> <br> <input type="submit" name="submit" value="Add"> </form> <a href="index.php">Back to list</a> File: ./www/orders.php <?php include_once("config.php"); if(isset($_GET['id'])) { $user_id = $_GET['id']; if($stmt = $mysqli->prepare("SELECT * FROM orders WHERE user_id=?")) { $stmt->bind_param("i", $user_id); if($stmt->execute()) { $result = $stmt->get_result(); if($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $data[] = $row; } header("Content-type: application/json"); echo json_encode($data); } else { echo "<p>No orders found for user with id {$user_id}</p>"; } } else { echo "<p>Error: " . $mysqli->error . "</p>"; } $stmt->close(); } else { echo "<p>Error: " . $mysqli->error . "</p>"; } } else { echo "<p>Please provide user id</p>"; } ?> File: ./www/config.php <?php $dbhost = 'db'; $dbname = 'mydatabase'; $dbuser = 'myuser'; $dbpass = 'mypassword'; $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname); if ($mysqli->connect_errno) { echo "Failed to connect to MySQL: " . $mysqli->connect_error; exit(); } ?> File: ./www/index.php <?php include_once("config.php"); if ($result = $mysqli->query("SELECT * FROM users")) { if($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo "<p>{$row['id']}: {$row['name']}</p>"; } } else { echo "<p>No users found</p>"; } } else { echo "<p>Error: " . $mysqli->error . "</p>"; } ?> <a href="add.php">Add user</a> File: ./Dockerfile-php FROM ubuntu:latest RUN apt-get update ARG DEBIAN_FRONTEND=noninteractive ENV TZ=Europe/Moscow RUN apt-get install -y apache2 php libapache2-mod-php tzdata RUN a2enmod rewrite RUN sed -i "s/short_open_tag = Off/short_open_tag = On/" /etc/php/*/apache2/php.ini RUN apt-get install -y php-mysql && phpenmod mysqli COPY ./www /var/www/html EXPOSE 80 CMD ["apache2ctl", "-D", "FOREGROUND"] File: ./docker-compose.yml version: '3' services: db: build: context: . dockerfile: ./mysql/Dockerfile-mysql volumes: - db_data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: example web: depends_on: - db build: context: . dockerfile: Dockerfile-php ports: - "8080:80" restart: always volumes: - ./apache/apache2-config:/etc/apache2/sites-available/000-default.conf environment: - APACHE_RUN_USER=www-data - APACHE_RUN_GROUP=www-data - APACHE_LOG_DIR=/var/log/apache2 - APACHE_PID_FILE=/var/run/apache2/apache2.pid - APACHE_RUN_DIR=/var/run/apache2 - APACHE_LOCK_DIR=/var/lock/apache2 volumes: db_data: File: ./cat-files.sh #!/bin/bash for file in $(find . -type f) do echo "File: $file" cat $file done File: ./init-db.sql USE mydb; CREATE TABLE users ( id INT(11) NOT NULL AUTO_INCREMENT, name VARCHAR(50), email VARCHAR(50), PRIMARY KEY (id) ); CREATE TABLE orders ( id INT(11) NOT NULL AUTO_INCREMENT, user_id INT(11), product_name VARCHAR(50), price FLOAT(2), PRIMARY KEY (id), FOREIGN KEY (user_id) REFERENCES users(id) ); File: ./mysql/Dockerfile-mysql FROM ubuntu:latest RUN apt-get update RUN apt-get install -y mysql-server EXPOSE 3306 COPY init-db.sql /docker-entrypoint-initdb.d/ CMD ["mysqld"] File: ./mysql-data/server-key.pem cat: ./mysql-data/server-key.pem: Permission denied File: ./mysql-data/auto.cnf cat: ./mysql-data/auto.cnf: Permission denied File: ./mysql-data/ib_buffer_pool cat: ./mysql-data/ib_buffer_pool: Permission denied File: ./mysql-data/ib_logfile1 cat: ./mysql-data/ib_logfile1: Permission denied File: ./mysql-data/server-cert.pem adduser@IvanThunder:~/project$
c0503d5cbc3944509648564a2a1c5cec
{ "intermediate": 0.3248428404331207, "beginner": 0.4642098546028137, "expert": 0.21094723045825958 }
20,154
How to draw the figure of exponential function in Tikz code
1f4eb984b7bf688962ad40293d5cd523
{ "intermediate": 0.26363033056259155, "beginner": 0.17462706565856934, "expert": 0.5617425441741943 }
20,155
What materials are needed and make a drawing, what will the high-quality accurate Bluetooth AI audio-electronic device-translator of dogs "MyBestFriendDog" do?
2e92a91148a7bd097c49a8d998661b5c
{ "intermediate": 0.19833174347877502, "beginner": 0.1693800836801529, "expert": 0.6322882175445557 }
20,156
What materials should be needed and make a drawing to make a very high-quality very accurate Bluetooth AI Audio-electronic device-dog collar-translator of dogs with a bulit-in camera?
350a75ee5da701baedf92aad95f716eb
{ "intermediate": 0.23885679244995117, "beginner": 0.23816770315170288, "expert": 0.522975504398346 }
20,157
What materials should be needed and make a drawing to make a very high-quality very accurate Bluetooth AI Audio-Electronic device-dog collar-translator of dogs with a bulit-in camera dog vision?
1b5525859ddd141dff7e8dbd375efeca
{ "intermediate": 0.2565184235572815, "beginner": 0.2578809857368469, "expert": 0.4856005609035492 }
20,158
Explain the difference in C++ between passing arguments by T& vs T&&
d1e87029d587645944abcd7537522696
{ "intermediate": 0.37662824988365173, "beginner": 0.36325785517692566, "expert": 0.2601138651371002 }
20,159
What materials should be needed and make a drawing to make a very high-quality very accurate Bluetooth SuperAI Audio-Electronic device-dog collar-translator of dogs with a bulit-in camera dog vision?
489a5f50001b32f1466223321d28c18a
{ "intermediate": 0.27934202551841736, "beginner": 0.2701200842857361, "expert": 0.45053794980049133 }
20,160
Create a program using arrays to display the required output below. Output: The original array elements are: LA[0] = 3 LA[1] = 1 LA[2] = 2 LA[3] = 4 LA[4] = 9 The array elements after insertion: LA[0] = 3 LA[1] = 1 LA[2] = 11 LA[3] = 2 LA[4] = 4 LA[5] = 9
85381b67a2fe4a8ca84c282b3f3b85b7
{ "intermediate": 0.4330351948738098, "beginner": 0.15289971232414246, "expert": 0.41406506299972534 }
20,161
Create a c++ program using arrays to display the required output below. Output: The original array elements are: LA[0] = 3 LA[1] = 1 LA[2] = 2 LA[3] = 4 LA[4] = 9 The array elements after insertion: LA[0] = 3 LA[1] = 1 LA[2] = 11 LA[3] = 2 LA[4] = 4 LA[5] = 9
19b7e2174bfc97d3d50802a55403c410
{ "intermediate": 0.4961850047111511, "beginner": 0.16770055890083313, "expert": 0.3361144959926605 }
20,162
What materials are needed and make a drawing to make a very high-quality very accurate two-way Bluetooth AI Audio-electronic device-dog collar-dog translator with a built-in camera?
2b68a632846de052f9a362a13a9a65f8
{ "intermediate": 0.24164840579032898, "beginner": 0.2638603448867798, "expert": 0.49449121952056885 }
20,163
How to run a linear regression in Python using data from an excel file
8b389b5812c7c22efcf289b7161afe04
{ "intermediate": 0.4917025864124298, "beginner": 0.0672353059053421, "expert": 0.4410620629787445 }
20,164
I used your code: while True: lookback = 10080 quantity = 0.05 buy_entry_price = 0.0 sell_entry_price = 0.0 buy_exit_price = 0.0 sell_exit_price = 0.0 entry_price_set = False if df is not None: signals = signal_generator(df) mark_price_data = client.ticker_price(symbol=symbol) mark_price = float(mark_price_data['price']) if 'price' in mark_price_data else 0.0 print(f"The signal time is: {dt.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}, Price {mark_price} - Signals: {signals}") if 'buy' in signals: try: if sell_exit_price != 0.0: print(f"Sell Exit Price: {sell_exit_price}, Buy Entry Price: {mark_price}") sell_exit_price = 0.0 # Reset sell exit price buy_entry_price = mark_price entry_price_set = True elif not entry_price_set: buy_entry_price = mark_price entry_price_set = True print(f"Buy Entry Price: {buy_entry_price}") client.new_order(symbol=symbol, side='BUY', type='MARKET', quantity=quantity) client.new_order(symbol=symbol, side='BUY', type='MARKET', quantity=quantity) print("Long order executed!") except binance.error.ClientError as e: print(f"Error executing long order: {e}") if 'sell' in signals: try: if buy_exit_price != 0.0: print(f"Buy Exit Price: {buy_exit_price}, Sell Entry Price: {mark_price}") buy_exit_price = 0.0 # Reset buy exit price sell_entry_price = mark_price entry_price_set = True elif not entry_price_set: sell_entry_price = mark_price entry_price_set = True print(f"Sell Entry Price: {sell_entry_price}") client.new_order(symbol=symbol, side='SELL', type='MARKET', quantity=quantity) client.new_order(symbol=symbol, side='SELL', type='MARKET', quantity=quantity) print("Short order executed!") except binance.error.ClientError as e: print(f"Error executing short order: {e}") time.sleep(1) Yes it printing me entry price , but if it giving me signal to buy on price 215.21 it printing me entry on 215.21 , but if the next signal is too buy price will be changed , you need to solve this problem
095742cb74e02f1a0820185c91c81feb
{ "intermediate": 0.2710357904434204, "beginner": 0.6174068450927734, "expert": 0.11155734211206436 }
20,165
how do I order a django queryset by case-when?
0868439d82b2d3409817f5ad1d9ec294
{ "intermediate": 0.7058951258659363, "beginner": 0.0952296182513237, "expert": 0.19887524843215942 }
20,166
help me with errors here aswell pleaseawait self.conn.send( utils.format_ws_packet({ 'm': 'resolve_symbol', 'p': [ session.id, 'sds_sym_1', f'={json.dumps({"adjustment": "splits", "symbol": symbol})}' ] }) )
b7ceab61f6b5f6a48b4c5f4dd475fff4
{ "intermediate": 0.3136965334415436, "beginner": 0.36225423216819763, "expert": 0.3240492045879364 }
20,167
I used your code: while True: lookback = 10080 quantity = 0.05 buy_entry_price = 0.0 sell_entry_price = 0.0 buy_exit_price = 0.0 sell_exit_price = 0.0 entry_price_set = False if df is not None: signals = signal_generator(df) mark_price_data = client.ticker_price(symbol=symbol) mark_price = float(mark_price_data['price']) if 'price' in mark_price_data else 0.0 print(f"The signal time is: {dt.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}, Price {mark_price} - Signals: {signals}") if 'buy' in signals and sell_exit_price == sell_entry_price: try: if not entry_price_set: buy_entry_price = mark_price entry_price_set = True print(f"Buy Entry Price: {buy_entry_price}") client.new_order(symbol=symbol, side='BUY', type='MARKET', quantity=quantity) client.new_order(symbol=symbol, side='BUY', type='MARKET', quantity=quantity) print("Long order executed!") except binance.error.ClientError as e: print(f"Error executing long order: ") elif 'sell' in signals and buy_exit_price == buy_entry_price: try: if not entry_price_set: sell_entry_price = mark_price entry_price_set = True print(f"Sell Entry Price: {sell_entry_price}") client.new_order(symbol=symbol, side='SELL', type='MARKET', quantity=quantity) client.new_order(symbol=symbol, side='SELL', type='MARKET', quantity=quantity) print("Short order executed!") except binance.error.ClientError as e: print(f"Error executing long order: ") time.sleep(1) But it every time when my signal generator gving me same signals it changing entry price !!!You need to solve this problem
2ec5c4bec2715d1d38fbd7a1c2b15de3
{ "intermediate": 0.2711426913738251, "beginner": 0.46669480204582214, "expert": 0.2621624767780304 }
20,168
I used this code: lookback = 10080 quantity = 0.05 buy_entry_price = 0.0 sell_entry_price = 0.0 buy_exit_price = 0.0 sell_exit_price = 0.0 entry_price_set = False consecutive_buy_signals = 0 while True: if df is not None: signals = signal_generator(df) mark_price_data = client.ticker_price(symbol=symbol) mark_price = float(mark_price_data['price']) if 'price' in mark_price_data else 0.0 print(f"The signal time is: {dt.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}, Price {mark_price} - Signals: {signals}") if 'buy' in signals and sell_exit_price == 0.0: try: if not entry_price_set and consecutive_buy_signals == 0: buy_entry_price = mark_price entry_price_set = True print(f"Buy Entry Price: {buy_entry_price}") consecutive_buy_signals = 1 elif entry_price_set: consecutive_buy_signals += 1 client.new_order(symbol=symbol, side='BUY', type='MARKET', quantity=quantity) client.new_order(symbol=symbol, side='BUY', type='MARKET', quantity=quantity) print("Long order executed!") except binance.error.ClientError as e: print(f"Error executing long order: ") elif 'sell' in signals and buy_exit_price == 0.0: try: if not entry_price_set: sell_entry_price = mark_price entry_price_set = True print(f"Sell Entry Price: {sell_entry_price}") client.new_order(symbol=symbol, side='SELL', type='MARKET', quantity=quantity) client.new_order(symbol=symbol, side='SELL', type='MARKET', quantity=quantity) print("Short order executed!") except binance.error.ClientError as e: print(f"Error executing short order: ") time.sleep(1) You need to give me same strategy like this : if 'buy' in signals and sell_exit_price == 0.0: try: if not entry_price_set and consecutive_buy_signals == 0: buy_entry_price = mark_price entry_price_set = True print(f"Buy Entry Price: {buy_entry_price}") consecutive_buy_signals = 1 elif entry_price_set: consecutive_buy_signals += 1 client.new_order(symbol=symbol, side='BUY', type='MARKET', quantity=quantity) client.new_order(symbol=symbol, side='BUY', type='MARKET', quantity=quantity) print("Long order executed!") except binance.error.ClientError as e: print(f"Error executing long order: ") But for sell
6e91237db2e02dbd64b9b7c2903211c7
{ "intermediate": 0.2794005870819092, "beginner": 0.5135480761528015, "expert": 0.2070513367652893 }
20,169
Hi
3fe348ee31eca128de5bfda3e727b1ef
{ "intermediate": 0.33010533452033997, "beginner": 0.26984941959381104, "expert": 0.400045245885849 }
20,170
how to spilt a string into array in dart
1f2948dae0c3acab49a4362b74619362
{ "intermediate": 0.42343106865882874, "beginner": 0.21990878880023956, "expert": 0.3566601276397705 }
20,171
create a connect 4 game with pygame
5f09b092b4841f0471392dd120a2f781
{ "intermediate": 0.42015132308006287, "beginner": 0.2298932522535324, "expert": 0.34995535016059875 }
20,172
frappe.query_reports["Item Variant Details"] = { "filters": [ { reqd: 1, default: "", options: "Item", label: __("Item"), fieldname: "item", fieldtype: "Link", get_query: () => { return { filters: { "has_variants": 1 } } } } ] }
1678dd94b404b9e246b3a28f21cd5649
{ "intermediate": 0.516321063041687, "beginner": 0.21836695075035095, "expert": 0.26531192660331726 }
20,173
import frappe from frappe import _ def execute(filters=None): columns = get_columns(filters.item) data = get_data(filters.item, filters.warehouse) return columns, data def get_data(item, warehouse): if not item: return [] item_dicts = [] variant_results = frappe.db.get_all( "Item", fields=["name"], filters={"variant_of": ["=", item], "disabled": 0} ) if not variant_results: frappe.msgprint(_("There aren't any item variants for the selected item")) return [] else: variant_list = [variant["name"] for variant in variant_results] order_count_map = get_open_sales_orders_count(variant_list) stock_details_map = get_stock_details_map(variant_list, warehouse=warehouse) # Include warehouse parameter buying_price_map = get_buying_price_map(variant_list) selling_price_map = get_selling_price_map(variant_list) attr_val_map = get_attribute_values_map(variant_list) attributes = frappe.db.get_all( "Item Variant Attribute", fields=["attribute"], filters={"parent": ["in", variant_list]}, group_by="attribute", ) attribute_list = [row.get("attribute") for row in attributes] # Prepare dicts variant_dicts = [{"variant_name": d["name"]} for d in variant_results] for item_dict in variant_dicts: name = item_dict.get("variant_name") for attribute in attribute_list: attr_dict = attr_val_map.get(name) if attr_dict and attr_dict.get(attribute): item_dict[frappe.scrub(attribute)] = attr_val_map.get(name).get(attribute) item_dict["open_orders"] = order_count_map.get(name) or 0 if stock_details_map.get(name): stock_details = stock_details_map.get(name).get(warehouse, {}) # Include warehouse parameter item_dict["current_stock"] = stock_details.get("Inventory") or 0 item_dict["in_production"] = stock_details.get("In Production") or 0 else: item_dict["current_stock"] = item_dict["in_production"] = 0 item_dict["avg_buying_price_list_rate"] = buying_price_map.get(name) or 0 item_dict["avg_selling_price_list_rate"] = selling_price_map.get(name) or 0 item_dicts.append(item_dict) return item_dicts def get_columns(item): columns = [ { "fieldname": "variant_name", "label": _("Variant"), "fieldtype": "Link", "options": "Item", "width": 200, } ] item_doc = frappe.get_doc("Item", item) for entry in item_doc.attributes: columns.append( { "fieldname": frappe.scrub(entry.attribute), "label": entry.attribute, "fieldtype": "Data", "width": 100, } ) additional_columns = [ { "fieldname": "avg_buying_price_list_rate", "label": _("Avg. Buying Price List Rate"), "fieldtype": "Currency", "width": 150, }, { "fieldname": "avg_selling_price_list_rate", "label": _("Avg. Selling Price List Rate"), "fieldtype": "Currency", "width": 150, }, {"fieldname": "current_stock", "label": _("Current Stock"), "fieldtype": "Float", "width": 120}, {"fieldname": "in_production", "label": _("In Production"), "fieldtype": "Float", "width": 150}, { "fieldname": "open_orders", "label": _("Open Sales Orders"), "fieldtype": "Float", "width": 150, }, ] columns.extend(additional_columns) return columns def get_open_sales_orders_count(variants_list): open_sales_orders = frappe.db.get_list( "Sales Order", fields=["name", "`tabSales Order Item`.item_code"], filters=[ ["Sales Order", "docstatus", "=", 1], ["Sales Order Item", "item_code", "in", variants_list], ], distinct=1, ) order_count_map = {} for row in open_sales_orders: item_code = row.get("item_code") if order_count_map.get(item_code) is None: order_count_map[item_code] = 1 else: order_count_map[item_code] += 1 return order_count_map def get_stock_details_map(variant_list, warehouse=None): stock_details = frappe.db.get_all( "Bin", fields=[ "sum(planned_qty) as planned_qty", "sum(actual_qty) as actual_qty", "sum(projected_qty) as projected_qty", "item_code", "warehouse" ], filters={"item_code": ["in", variant_list], "warehouse": warehouse}, group_by=["item_code", "warehouse"], ) stock_details_map = {} for row in stock_details: name = row.get("item_code") warehouse = row.get("warehouse") if not stock_details_map.get(name): stock_details_map[name] = {} stock_details_map[name][warehouse] = { "Inventory": row.get("actual_qty"), "In Production": row.get("planned_qty"), } return stock_details_map def get_buying_price_map(variant_list): buying = frappe.db.get_all( "Item Price", fields=[ "avg(price_list_rate) as avg_rate", "item_code", ], filters={"item_code": ["in", variant_list], "buying": 1}, group_by="item_code", ) buying_price_map = {} for row in buying: buying_price_map[row.get("item_code")] = row.get("avg_rate") return buying_price_map def get_selling_price_map(variant_list): selling = frappe.db.get_all( "Item Price", fields=[ "avg(price_list_rate) as avg_rate", "item_code", ], filters={"item_code": ["in", variant_list], "selling": 1}, group_by="item_code", ) selling_price_map = {} for row in selling: selling_price_map[row.get("item_code")] = row.get("avg_rate") return selling_price_map def get_attribute_values_map(variant_list): attribute_list = frappe.db.get_all( "Item Variant Attribute", fields=["attribute", "attribute_value", "parent"], filters={"parent": ["in", variant_list]}, ) attr_val_map = {} for row in attribute_list: name = row.get("parent") if not attr_val_map.get(name): attr_val_map[name] = {} attr_val_map[name][row.get("attribute")] = row.get("attribute_value") return attr_val_map
e5b6ea75525bccc012ba7cd6f75d13f0
{ "intermediate": 0.281831830739975, "beginner": 0.5546810626983643, "expert": 0.16348713636398315 }
20,174
I am making open class ArchivesList : Menu("список архивов",true, "архив") { var contents : List<Pair<String,Archive?>> = mutableListOf(Pair("Имя элемента", null)) }that inherits from open class Menu<E>( val menuName: String, val top: Boolean, val nameOfElement: String ) { var contents : List<Pair<String,E?>> = mutableListOf("Имя элемента", null) . I don't want to retain <E> since I no longer need the generic, but Android studio highlights that as an error. What do I do?
e7c4ec0232abe4013bfb455f20947bbc
{ "intermediate": 0.2966996133327484, "beginner": 0.6062880158424377, "expert": 0.09701231867074966 }
20,175
show me the formula on how to get parallel component of one vector to the other vector?
d0b951616424053955a996fa9d982358
{ "intermediate": 0.2537820041179657, "beginner": 0.10905458778142929, "expert": 0.6371634602546692 }
20,176
reverse array in dart
1de774ea19c307c028876d124b6de87c
{ "intermediate": 0.3549053966999054, "beginner": 0.27607861161231995, "expert": 0.36901602149009705 }
20,177
Please find the problem with the following code and fix it: Scanner scan = new Scanner(System.in); System.out.println("Enter a string:"); String x = scan.nextLine(); System.out.println("Enter a number:"); int n = scan.nextInt(); x = x.substring(0, n - 1); String y = + x.substring(x.length() - (n+1)); system.out.print(x + y);
55458ea403e3195d8e740b5d182dd26e
{ "intermediate": 0.39908382296562195, "beginner": 0.4198974072933197, "expert": 0.18101872503757477 }
20,178
give an example of a try catch block in java
ca919704fa4533710783037359a4c72c
{ "intermediate": 0.4421103298664093, "beginner": 0.4164477586746216, "expert": 0.1414419263601303 }
20,179
C# SendInput left click to minimized window
27680de1876365999fd9821fddf095a5
{ "intermediate": 0.3865277171134949, "beginner": 0.36472171545028687, "expert": 0.24875056743621826 }
20,180
C# send left click to minimized window with hook mouse event
7a6a4dba159cf0f8215b86cad43283ce
{ "intermediate": 0.5273974537849426, "beginner": 0.24435721337795258, "expert": 0.22824536263942719 }
20,181
create a python voice assistant without pyttsx3
e89f8023468b901034c65696cd975f7e
{ "intermediate": 0.28841888904571533, "beginner": 0.20103523135185242, "expert": 0.5105458498001099 }
20,182
create a chatgpt in python
24f324b4dcdac2a256983e3e3c826096
{ "intermediate": 0.26703375577926636, "beginner": 0.23414847254753113, "expert": 0.4988177716732025 }
20,183
create a chatgpt without openai and api key and without chatterbot module in python
b7d769ff1f8f5765de32cad140af7154
{ "intermediate": 0.4898858666419983, "beginner": 0.09681639820337296, "expert": 0.41329774260520935 }
20,184
make money from youtube with chatgpt
1a8ef3397376a3aca64decb0de217437
{ "intermediate": 0.3460043668746948, "beginner": 0.24899521470069885, "expert": 0.4050004482269287 }
20,185
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from frappe import _ def execute(filters=None): columns = get_columns(filters.item) data = get_data(filters.item, filters.warehouse) return columns, data def get_data(item, warehouse): if not item: return [] item_dicts = [] variant_results = frappe.db.get_all( "Item", fields=["name"], filters={"variant_of": ["=", item], "disabled": 0} ) if not variant_results: frappe.msgprint(_("There aren't any item variants for the selected item")) return [] else: variant_list = [variant["name"] for variant in variant_results] order_count_map = get_open_sales_orders_count(variant_list) stock_details_map = get_stock_details_map(variant_list, warehouse=warehouse) # Include warehouse parameter buying_price_map = get_buying_price_map(variant_list) selling_price_map = get_selling_price_map(variant_list) attr_val_map = get_attribute_values_map(variant_list) attributes = frappe.db.get_all( "Item Variant Attribute", fields=["attribute"], filters={"parent": ["in", variant_list]}, group_by="attribute", ) attribute_list = [row.get("attribute") for row in attributes] # Prepare dicts variant_dicts = [{"variant_name": d["name"]} for d in variant_results] for item_dict in variant_dicts: name = item_dict.get("variant_name") for attribute in attribute_list: attr_dict = attr_val_map.get(name) if attr_dict and attr_dict.get(attribute): item_dict[frappe.scrub(attribute)] = attr_val_map.get(name).get(attribute) item_dict["open_orders"] = order_count_map.get(name) or 0 if stock_details_map.get(name): stock_details = stock_details_map.get(name).get(warehouse, {}) # Include warehouse parameter item_dict["current_stock"] = stock_details.get("Inventory") or 0 item_dict["in_production"] = stock_details.get("In Production") or 0 else: item_dict["current_stock"] = item_dict["in_production"] = 0 item_dict["avg_buying_price_list_rate"] = buying_price_map.get(name) or 0 item_dict["avg_selling_price_list_rate"] = selling_price_map.get(name) or 0 item_dicts.append(item_dict) return item_dicts def get_columns(item): columns = [ { "fieldname": "variant_name", "label": _("Variant"), "fieldtype": "Link", "options": "Item", "width": 200, } ] item_doc = frappe.get_doc("Item", item) for entry in item_doc.attributes: columns.append( { "fieldname": frappe.scrub(entry.attribute), "label": entry.attribute, "fieldtype": "Data", "width": 100, } ) additional_columns = [ { "fieldname": "avg_buying_price_list_rate", "label": _("Avg. Buying Price List Rate"), "fieldtype": "Currency", "width": 150, }, { "fieldname": "avg_selling_price_list_rate", "label": _("Avg. Selling Price List Rate"), "fieldtype": "Currency", "width": 150, }, {"fieldname": "current_stock", "label": _("Current Stock"), "fieldtype": "Float", "width": 120}, {"fieldname": "in_production", "label": _("In Production"), "fieldtype": "Float", "width": 150}, { "fieldname": "open_orders", "label": _("Open Sales Orders"), "fieldtype": "Float", "width": 150, }, ] columns.extend(additional_columns) return columns def get_open_sales_orders_count(variants_list): open_sales_orders = frappe.db.get_list( "Sales Order", fields=["name", "`tabSales Order Item`.item_code"], filters=[ ["Sales Order", "docstatus", "=", 1], ["Sales Order Item", "item_code", "in", variants_list], ], distinct=1, ) order_count_map = {} for row in open_sales_orders: item_code = row.get("item_code") if order_count_map.get(item_code) is None: order_count_map[item_code] = 1 else: order_count_map[item_code] += 1 return order_count_map def get_stock_details_map(variant_list, warehouse=None): stock_details = frappe.db.get_all( "Bin", fields=[ "sum(planned_qty) as planned_qty", "sum(actual_qty) as actual_qty", "sum(projected_qty) as projected_qty", "item_code", "warehouse", ], filters={"item_code": ["in", variant_list], "warehouse": warehouse}, ) stock_details_map = {} for row in stock_details: name = row.get("item_code") warehouse = row.get("warehouse") if not stock_details_map.get(name): stock_details_map[name] = {} stock_details_map[name][warehouse] = { "Inventory": row.get("actual_qty"), "In Production": row.get("planned_qty"), } return stock_details_map def get_buying_price_map(variant_list): buying = frappe.db.get_all( "Item Price", fields=[ "avg(price_list_rate) as avg_rate", "item_code", ], filters={"item_code": ["in", variant_list], "buying": 1}, group_by="item_code", ) buying_price_map = {} for row in buying: buying_price_map[row.get("item_code")] = row.get("avg_rate") return buying_price_map def get_selling_price_map(variant_list): selling = frappe.db.get_all( "Item Price", fields=[ "avg(price_list_rate) as avg_rate", "item_code", ], filters={"item_code": ["in", variant_list], "selling": 1}, group_by="item_code", ) selling_price_map = {} for row in selling: selling_price_map[row.get("item_code")] = row.get("avg_rate") return selling_price_map def get_attribute_values_map(variant_list): attribute_list = frappe.db.get_all( "Item Variant Attribute", fields=["attribute", "attribute_value", "parent"], filters={"parent": ["in", variant_list]}, ) attr_val_map = {} for row in attribute_list: name = row.get("parent") if not attr_val_map.get(name): attr_val_map[name] = {} attr_val_map[name][row.get("attribute")] = row.get("attribute_value") return attr_val_map now this report run without error but after i make edit for get stock by warehouse i get the number in the wrong row for other item
4d076cb66df2da91d3b890cd83b93661
{ "intermediate": 0.27985909581184387, "beginner": 0.47502005100250244, "expert": 0.2451208531856537 }
20,186
circular buffer thats "never empty" or when empty replaces the oldest data
61be516b017327ecf0feab502a633a6c
{ "intermediate": 0.3328665494918823, "beginner": 0.17820900678634644, "expert": 0.48892438411712646 }
20,187
how do i get related in django db
dde5eb4757a184aca7e7e2affdf7d155
{ "intermediate": 0.6343397498130798, "beginner": 0.1751319020986557, "expert": 0.19052836298942566 }
20,188
how to get values from one column of django model but default to different column if first value was null
39f9bfd2b334c407c8d31c6706fc3167
{ "intermediate": 0.3561800718307495, "beginner": 0.11100802570581436, "expert": 0.5328119397163391 }
20,189
Help me use c++ to launch a game
d4e9e00024c20950bb08f8163b9ebd01
{ "intermediate": 0.3837388753890991, "beginner": 0.4320302903652191, "expert": 0.18423089385032654 }
20,190
x=13 for i in x: print(i)
31b7721f051104752c938a175ae75421
{ "intermediate": 0.19744068384170532, "beginner": 0.6231495141983032, "expert": 0.17940972745418549 }
20,191
hi! i'm writing a coding quiz question based on a singly linked list function. the function is called 'find_all', and given a singly linked list 'SLL', it is supposed to return the number of times that a given value 'val' appears in the singly linked list. could you please write me a flawed version of this function that i can use to ask students where it goes wrong?
cba5239a989971055c51ded16a8e237f
{ "intermediate": 0.40331578254699707, "beginner": 0.25176504254341125, "expert": 0.3449191451072693 }
20,192
i create script report from frappe and make it not standard and use script result = frappe.db.get_all("Item Price", fields=["*"]) and then i created coloume anf filter , all good but when i choose filter list not filtred
3b4daa421b97a57d4e39bd5e7f059787
{ "intermediate": 0.5176584720611572, "beginner": 0.23488296568393707, "expert": 0.24745860695838928 }
20,193
please write a LBM code to simulate the Rayleigh-Benard instability using Python
5b07a3d9b27fa94c0684d010d63c32c4
{ "intermediate": 0.3061552941799164, "beginner": 0.10667279362678528, "expert": 0.5871719717979431 }
20,194
result = frappe.db.get_all("Item Price", fields=["*"], filters={"item_code": ["=", filters.item_code], "price_list": ["=", filters.price_list]} ) i use this script now but if i didn't put the 2 filters it's nothing get
2461218dd9be0f30f6b441972e8e84ad
{ "intermediate": 0.3772389590740204, "beginner": 0.29564130306243896, "expert": 0.32711976766586304 }