Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
22
383k
prompt_id
stringlengths
32
32
index
int64
0
500
annotator
stringclasses
11 values
timestamp
timestamp[s]
rating
stringclasses
2 values
tags
sequence
what can I adjust on this blade file, please provide me a table format showing current code new code and the justificaiton for the change Demographic Information <hr /> <div> <div> <div> Are you eligible to work in the U.S.? </d...
cb58debf83d45bd637f65587b40f032f
0
DaehanKim
2023-05-29T06:21:44
good
[ "code" ]
what can I adjust on this blade file, please provide me a table format showing current code new code and the justificaiton for the change Demographic Information <hr /> <div> <div> <div> Are you eligible to work in the U.S.? </d...
cb58debf83d45bd637f65587b40f032f
0
dianewan
2023-05-23T23:17:15
good
[ "code" ]
what can I adjust on this blade file, please provide me a table format showing current code new code and the justificaiton for the change Demographic Information <hr /> <div> <div> <div> Are you eligible to work in the U.S.? </d...
cb58debf83d45bd637f65587b40f032f
0
nazneen
2023-05-22T18:24:46
good
[ "code" ]
Why is this returning a key error for displayed_member_id if member == ' ' or member == None or member == []: sg.Popup('No Member found for Member id '+id) window.Element('-firstn-').update('') window.Element('-lastn-').update('') else: ...
40efff8c22f0b85b2f474a31a5e70b2a
1
DaehanKim
2023-05-29T06:26:40
bad
[]
Why is this returning a key error for displayed_member_id if member == ' ' or member == None or member == []: sg.Popup('No Member found for Member id '+id) window.Element('-firstn-').update('') window.Element('-lastn-').update('') else: ...
40efff8c22f0b85b2f474a31a5e70b2a
1
dianewan
2023-05-23T23:17:29
good
[ "code" ]
Why is this returning a key error for displayed_member_id if member == ' ' or member == None or member == []: sg.Popup('No Member found for Member id '+id) window.Element('-firstn-').update('') window.Element('-lastn-').update('') else: ...
40efff8c22f0b85b2f474a31a5e70b2a
1
nazneen
2023-05-22T18:25:07
good
[ "code" ]
Solve the nonlinear optimization problem min f (x1,x2) = (x1)^2 −x1x^2 +(x2)^2 −2x2 s.t. g(x1,x2) = x1 +x2 −1 ≤0. (a) Apply the optimality conditions; (b) Verify your solution in Excel. Show all steps.
5ce8d70f0c016a654440ba184dbfa43b
10
DaehanKim
2023-05-29T06:38:45
good
[]
Solve the nonlinear optimization problem min f (x1,x2) = (x1)^2 −x1x^2 +(x2)^2 −2x2 s.t. g(x1,x2) = x1 +x2 −1 ≤0. (a) Apply the optimality conditions; (b) Verify your solution in Excel. Show all steps.
5ce8d70f0c016a654440ba184dbfa43b
10
dianewan
2023-05-23T23:27:16
bad
[]
소스에서 폼 전송 ajax방식 스크립트 만들어줘 <%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> <%@ tag...
9371046d6ca633fd98d6bcee838e19af
100
dianewan
2023-05-24T23:48:26
bad
[]
addapt this code : def save_data_to_avro(data: dict, channel_name: str, channel_id: int, report_id: str) -> None: now = datetime.datetime.now() file_path = Path("yt_data") / f"{report_id}_data" / channel_name / str(now.year) / str(now.month).zfill(2) / str( now.day).zfill(2) / str(now.hour).zfill(2) ...
c30308f430cf13c7a082640171074915
101
dianewan
2023-05-24T23:48:37
bad
[]
class _BlockingAsyncContextManager(AbstractContextManager): _enter_future: Future _exit_future: Future _exit_event: Event _exit_exc_info: Tuple[ Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType] ] = (None, None, None) def __init__(self, async_cm: AsyncConte...
54d2edba388b1627e70e6529d91289bd
102
dianewan
2023-05-24T23:48:52
bad
[]
I suggested the below GitHub Charter.md document. It was WAYYY to technical, specific, or otherwise not accurate to the goals of the maintainer. I want you to re-write the charter document but make it have emojis, be more lighthearted, acknowledge the one-person-show, say that this is a hobby project, mention no intent...
413c49c83a435e02b7775484d0d9f430
103
dianewan
2023-05-24T23:49:39
bad
[]
I have this code where the header slides up on scroll down and slides down on scroll up. The problem is if there's a page that doesn't scroll, the navigation goes away on scroll even though the page is not tall enough to scroll. Write JS for Vue2 that checks if the page is tall enough. If its not tall enough, then disa...
66b3fa3a017c89186b0b24f108ec6fd3
104
dianewan
2023-05-24T23:49:52
good
[ "code" ]
```bash ``` #!/bin/bash set -eu snapsToRemove=$(snap list --all | awk '/disabled/{print $1, $2, $3}') while read snapname version revision; do if [[ "$revision" == *[a-zA-z]* ]]; then # Version field is empty. Revision is in second field revision=$version fi snap remove "$snapname" --...
965b6b14c7b8eaeb2c1e543877c44804
105
dianewan
2023-05-24T23:50:06
bad
[]
Hi can you create a .net web api using entity framework based off of this postgres query? SELECT ch."ChapterId" as "chapterId", ch."IsActive" as "isActive", ch."NameEn" as "name", ch."SortOrder" as "sortOrder", ch."SubjectId" as "subjectId", count(ls."MmLessonSetId") as mmLessonSetCount, SUM(CASE WHEN ls."IsActive" =...
be4c56b02e0e02a09f2944d04415a539
106
dianewan
2023-05-24T23:50:17
good
[ "code" ]
improve this code <Row> {hasDiscount ? ( <> <Col> <Paragraph className="price-discount"> {listPrice} {t("home.riyal")} </Paragraph> </Col> <Col> ...
957ae63cdbb2d7f2950527470ddcaeea
107
dianewan
2023-05-24T23:50:20
good
[ "code" ]
Please create sample forms based on the following views: from django.shortcuts import render, get_object_or_404, redirect from django.contrib.auth.decorators import login_required from django.contrib import messages from .models import Resident, School, Billing, Municipality from .forms import ResidentForm, SchoolForm...
a49ffd3e334f48138589d1910a0f546b
108
dianewan
2023-05-24T23:50:32
good
[ "code" ]
So, I want to create a async data holder in C++ which can be got only if it has been initialized asynchronously previously. If it has not been initialized, it will return the default value of the type. Is this sufficient? template<typename T> class AsyncDataHolder { enum class Status { NOT_INITIALIZED, INITIALIZIN...
24a62a4172a0149a62cc1bb49fab8331
109
dianewan
2023-05-25T00:19:11
good
[ "code" ]
breed [species3 a-species3] ;; turtles-own [energy rnumber dnumber] to setup clear-all settle-species1 set-default-shape species3 "frog top" create-species3 sp3-start-number [ set color green set size 2.5 setxy random-xcor random-ycor set energy 15 set rnumber random-normal 50 5 set...
ae601deb4f596aa3dc75e06deec61e0a
11
DaehanKim
2023-05-29T06:39:30
bad
[]
breed [species3 a-species3] ;; turtles-own [energy rnumber dnumber] to setup clear-all settle-species1 set-default-shape species3 "frog top" create-species3 sp3-start-number [ set color green set size 2.5 setxy random-xcor random-ycor set energy 15 set rnumber random-normal 50 5 set...
ae601deb4f596aa3dc75e06deec61e0a
11
dianewan
2023-05-23T23:27:29
bad
[]
make this more efficient: public class QuickSort { public static void quickSort(int[] arr, int low, int high) { if (arr == null || arr.length == 0) return; if (low >= high) return; // pick the pivot int middle = low + (high - low) / 2; int pivot = ...
2c5124d38fdab218351300b2f371bb8d
110
dianewan
2023-05-25T00:19:16
good
[ "code" ]
pathao Pathao is Bangladesh’s Largest Consumer Tech Company •• h•“”o #1 E-Commerce Logistics $187M 2022 GMV $23M 2022 Revenue #1 2-Wheeler Rides EBITDA &amp; Cashflow positive at the Vertical and Consolidated level #2 4-Wheeler Rides #2 Food Delivery #1 8M+ Unique Users 3OOK+ Drivers &amp; ...
9f286c31c483fc0a7ed0adaeac23fbe2
111
dianewan
2023-05-25T00:19:34
bad
[]
I'm getting time="2023-01-08 20:51:59" level=error msg="[Plugin / Upscale Performer image] Traceback (most recent call last):" time="2023-01-08 20:51:59" level=error msg="[Plugin / Upscale Performer image] File \"B:\\Stash\\plugins\\Performer_Image_Gigapixel\\upscale.py\", line 379, in <module>" time="2023-01-08 20:5...
85f5ffa986d162960b2651560d442e35
112
dianewan
2023-05-25T00:19:54
bad
[]
Rewrite my BotService class so it schedules jobs and runs generateScreenshot, show only the relevant parts of my code This is a JSON object with an example of an array of jobs. [{caption: 'Buen día ${hoy} \n _Lugares disponibles:_ bit.ly/3civct4', report: 'capacidades', chatId: ['5217221530884-1442235787@g.us','52172...
0b888342c95111a5d6e4f01c9a1a2ae9
113
dianewan
2023-05-25T00:20:20
bad
[]
I encrypted the passphrase using the following commands for passphrase.enc ($PASSPHRASE_FILE) and the export.enc ($EXPORT_FILE) ```openssl enc -d -aes-256-cbc -in passphrase.enc``` ```openssl enc -d -aes-256-cbc -in export.enc``` I then created a p.12 certificate using an encrypted passphrase from those files above...
263c40f8d6758e91b68913f97464160c
114
dianewan
2023-05-25T00:20:52
bad
[]
글을 읽고 이 글이 어떤 회사와 관련되어 있는지 한 단어로 알려줘. "* Canada Travel Canada Vancouver Toronto + Air Canada Sharing Tips Profile Mio, 2022. 12. 20. 20:42 Copy URL Add Neighbor BodyOther functions There was a place I really wanted to go this year. That's where I used to live in #Canada :) ​ ​ I'm sure some of you know, I ...
f1b00005fc4b826ccd5334efc8d52432
115
dianewan
2023-05-25T00:21:31
bad
[]
c++ opengl I am working on a small game engine. I have a problem regarding rendering 3D models. Models can consist of multiple meshes and meshes consist of multiple verticies. I want to be able to load in a model using Assimp from a file and store the modesl data for each mesh and each vertex, so that we only have to l...
a163631808b5ae980554a69c87c811b6
116
dianewan
2023-05-25T00:21:50
good
[ "code" ]
what does this code do? const LevelPickerApp = () => { const { iTwinId, iModelId, authClient } = useViewerContext(); const uiProviders = [new LevelSelectorWidgetProvider()]; /** Setup view state */ const viewportOptions: ViewerViewportControlOptions = { viewState: async (iModelConnection) => { const ...
aadfe91ed5c679b06a208f9eec2ae573
117
dianewan
2023-05-25T00:22:22
good
[ "code" ]
import { Injectable } from '@nestjs/common'; import type { AssistantAPI } from 'Assistant'; import 'isomorphic-fetch'; const importDynamic = new Function('modulePath', 'return import(modulePath)'); @Injectable() export class ChatgptUnofficialProxyApiService { async sendMessage(prompt: string): Promise<{ text: strin...
dc434d9e71ab2be942c6840910c1a1e3
118
dianewan
2023-05-25T00:22:26
bad
[]
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./utils/MetaContext.sol"; import "./interfaces/IPosition.sol"; contract Position is ERC721Enumerable, MetaContext, IPositi...
70a8bec9f479442a732082e8daf02094
119
dianewan
2023-05-25T00:23:22
bad
[]
for (const [notifType,notifArr] of Object.entries(notifObj)) { const message = notifArr[0].message; return <div>{notifType}{message}</div> }
6c4e4e61e3e1701c4d27402fb4ccf86d
12
DaehanKim
2023-05-29T06:39:51
bad
[]
for (const [notifType,notifArr] of Object.entries(notifObj)) { const message = notifArr[0].message; return <div>{notifType}{message}</div> }
6c4e4e61e3e1701c4d27402fb4ccf86d
12
dianewan
2023-05-23T23:27:35
bad
[]
What does this statute mean Intercepting, recording, or divulging private communication—Consent required—Exceptions. (1) Except as otherwise provided in this chapter, it shall be unlawful for any individual, partnership, corporation, association, or the state of Washington, its agencies, and political subdivisions to i...
9f006eec30fd55eece9c9c3909ad8054
120
dianewan
2023-05-25T00:23:48
bad
[]
Write some documentation for this python function: def healthy(self) -> bool: # pylint: disable=no-else-raise try: with self._connector.conn(): _logger.info(f"{self.name} state: {DependencyState.HEALTHY}") self._metric_reporter.report_success(self.name) ...
c7c556737862e9e67985890d6a06d3de
121
dianewan
2023-05-25T00:23:52
good
[ "code" ]
<div><p class="">Tell me reasons why i should exercise more, but say everything in the speaking style of a pirate. And give me reasons only a pirate would give.</p></div>
638ea4f28581849f374599abd659702b
122
dianewan
2023-05-25T00:23:59
bad
[]
convert this to tailwind and get rid of the style tag. for the after pseudoclass, use the after: prefix in tailwind classes const Hr = () => ( <div> <style jsx>{` div { border-style: none; margin-top: 30px; margin-bottom: 30px; text-align: center; } div::after {...
0d50ce1ea333cc14f46b8aa7be7130ad
123
dianewan
2023-05-25T00:24:11
good
[ "code" ]
what the name of this programming language org 0x00 movf 0 * 20 w;w=X movwf 0 * 26 ;y=x-w clr 0x27 movf 0 * 20 ;w=x btfsc 0x20,7 sublw 0x00 ; w = - x = 0 - w bsf STATUS,RP1;BANK2[0x122] movwf 0 * 122 ;a-abs(x) b=a<<3; movf 0x122,w bsf STATUS,RP1 bef STATUS,RPO movwf OxA2 clr 0xA3 rlf 0xA2,f rlf OxA3,f rlf 0xA2,f rlf 0x...
bdb8d44cbcaf7b541586a2f4931b0fb9
124
dianewan
2023-05-25T00:24:43
bad
[]
Please explain the main functionality of this contract, a description for its functions. Be as technical as possible // SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/Sa...
aca5d7fa38a0cafc689d88e6266bbca5
125
dianewan
2023-05-25T00:24:55
good
[ "code" ]
int32_t getWebACLMaxInspectionBytes(Lmdb_WebACLHandle *handle, GokuLmdbString http_source_string) { int max_inspection_bytes = 64 * 1024; if (handle) { try { std::string http_source(reinterpret_cast(http_source_string.value)); const goku::apiv2::lmdb::types::WebACL *webACL = (con...
17fd6edafabb1a2709779af4ca9f2c9e
126
dianewan
2023-05-25T00:25:23
bad
[]
whats wrong with this code? ``` import os import platform from ctypes import * class IDomSDK: """IDomSDK.""" def __init__(self) -> None: """Initialize.""" print("IDomSDK") idom_sdk_file_name = None if platform.system() == "Linux": if platform.architecture()[0] =...
ecc894fa35253770f2342a9f998456c9
127
dianewan
2023-05-25T00:25:32
good
[ "code" ]
Translate network management software GUI from English to Traditional Chinese. GUI string file is in XML format. XML content: <string name="ACLInfoNetworkHeader">Network-wide Access Control</string> <string name="ACLInfoSSIDHeader">Set Up Access Policy on Wi-Fi(SSIDs)</string> <string name="ACLNetworkMess...
f90062624819fa6a558aa5bb438d688d
128
dianewan
2023-05-25T00:26:01
good
[ "code" ]
Can you help me complete the TODO part of this code? def computeSphericalWarpMappings(dstShape, f, k1, k2): ''' Compute the spherical warp. Compute the addresses of each pixel of the output image in the source image. Input: dstShape -- shape of input / output image in a numpy array. ...
a06d3892feecd3b7d091a06320394b1a
129
dianewan
2023-05-25T00:26:08
good
[ "code" ]
Responsibilities 5.1 General The certification system, which shall be controlled and administered by a certification body, includes all procedures necessary to demonstrate the qualification and the competence of an individual to carry out tasks in a specific NDT method and product or industrial sector, leading to cer...
5259f08d1d4ffa7f9579317e758303cd
13
DaehanKim
2023-05-29T06:40:46
good
[]
Responsibilities 5.1 General The certification system, which shall be controlled and administered by a certification body, includes all procedures necessary to demonstrate the qualification and the competence of an individual to carry out tasks in a specific NDT method and product or industrial sector, leading to cer...
5259f08d1d4ffa7f9579317e758303cd
13
dianewan
2023-05-23T23:28:01
bad
[]
I amigo, i have a request for you. i have a C# Solution with a Database Project inside it. In the DataBase project i defined a Role like this: GO CREATE ROLE db_KteUsers GO DENY EXECUTE TO db_KteUsers GO GRANT SELECT TO db_KteUsers GO GRANT SELECT, INSERT, UPDATE, DELETE ON SCHEMA :: [cfg] TO db_KteUsers When deploye...
74c56d72f909e5f2a89424a94ac7ec22
130
dianewan
2023-05-25T00:26:22
good
[ "code" ]
$searchValue = $data['data']['query']; $results = []; foreach ($processed as $object) { if (in_array($searchValue, (array) $object)) { $results[] = $object; } }
f8cb43cf409fa5fa2d2ad624fd803c6b
131
dianewan
2023-05-25T00:26:28
bad
[]
Here is my flatbuffer data: namespace goku.apiv2.lmdb.types; table WebACL { owner:string (id: 0); payerToken:string (id: 1); defaultAction:DefaultAction (id: 3); rules:[Rule] (id: 4); visibilityConfig: VisibilityConfig (id: 5); isolationStatus:IsolationStatus (id: 6); version:int (id: 7); ...
ffe931309f9562404ba83084d522ba84
132
dianewan
2023-05-25T00:26:38
bad
[]
I have a button that runs an onClick function as follows: <button onClick={handler} id="generate" className="flex items-center justify-center gap-2 rounded-lg border border-[#404040] bg-[#0570eb] px-4 py-2 font-medium shadow-lg hover:bg-[#0465d3]" > <RefreshCw size={18} /> Generate ...
c43eadd110620a70886f48eddafd77b4
133
dianewan
2023-05-25T00:26:44
good
[ "code" ]
what are vulnerabilities in the following code? from django.db.utils import IntegrityError from rest_framework import permissions, viewsets, generics, status from rest_framework.response import Response from rest_framework.exceptions import ValidationError from .models import CertificationRequest, Status, Competence fr...
91593ad42a56529152811960de5bf83a
134
dianewan
2023-05-25T00:26:55
good
[ "code" ]
Can you take this script: import feedparser import time # URL of the existing RSS feed rss_url = "https://www.example.com/rss" # Generate the new RSS feed def generate_rss(): # Parse the RSS feed feed = feedparser.parse(rss_url) new_rss = """<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0">...
aff2ce09f47d21944f07dfd9b3d26fca
135
dianewan
2023-05-25T00:27:12
bad
[]
Can you rate this code on the following parameters: General Coding Practices, Functional Correctness, Security (exclude overflows), Gas Optimisations, and Code Readability 1 is the lowest score for a parameter and 5 is the score for a parameter. Give detailed reasoning on the score for each parameter. pragma solidity ...
3a90ee3b434599c148a0b2dd8c1733d3
136
dianewan
2023-05-25T00:27:27
bad
[]
def load_housing_data(): tarball_path = Path("datasets/housing.tgz") if not tarball_path.is_file(): Path("datasets").mkdir(parents=True, exist_ok=True) url = "https://github.com/ageron/data/raw/main/housing.tgz" urllib.request.urlretrieve(url, tarball_path) with tarfile.open(tarb...
eb557caa6e7ed3ff3d87a064be9e1a01
137
dianewan
2023-05-25T00:27:34
good
[ "code" ]
Somewhere in my css is something that causes <li><p>item</p></li> to render with a line break between the <li> bullet point and the beginning of <p>. What should I change to fix this? I use Tailwind CSS. Is there a solution that involves the inline: parameter?
41757632b09d9e04b38e3c77b6a67c49
138
dianewan
2023-05-25T00:27:58
good
[ "code" ]
Im gonna send you code in two seperate messages, could you break it down for me? //sampling period is 224.38 us #define Adresa_MCP4725 96 //DAC adress #define pin_ADC A15 //ADC input pin #define pin_BAT A13 //Battery voltage input pin #define WHITE 0xFFFF ...
36ebf82afab147ede3528f17a1e5af8c
139
dianewan
2023-05-25T00:28:08
bad
[]
@using DevExtreme.AspNet.Mvc.Builders @using XS.ERP.Core.Entities @using XS.ERP.UI.Web.Razor.Models @using XS.ERP.Common.Constant @using XS.ERP.UI.Web.Razor.V2.Models.ApiDto @model ProductInventoryViewModel <script> </script> @Html.AntiForgeryToken() <div class="content-block"> <div style="margin-top:20px;"> ...
9815523b7efd73e7ee6d6270dd7ef10b
14
DaehanKim
2023-05-29T06:40:56
bad
[]
@using DevExtreme.AspNet.Mvc.Builders @using XS.ERP.Core.Entities @using XS.ERP.UI.Web.Razor.Models @using XS.ERP.Common.Constant @using XS.ERP.UI.Web.Razor.V2.Models.ApiDto @model ProductInventoryViewModel <script> </script> @Html.AntiForgeryToken() <div class="content-block"> <div style="margin-top:20px;"> ...
9815523b7efd73e7ee6d6270dd7ef10b
14
dianewan
2023-05-23T23:28:22
bad
[]
import khan import flight import flight.operators as fo import flight.operators.sku as sku mixer = khan.client("mixer") @mixer.implements("top_items_by_department", flight=True) async def flight_path( client_id: int, department: str, diversity_coefficient: float = 0.5, limit:int = 10 ): take_n = ( ...
6d874da7342cbc2c55f3353b8e17a734
140
dianewan
2023-05-25T00:28:17
bad
[]
The following CalculateProjectilePath function returns a Vector3[] path that a cannonball follows when fired, for a Unity game. Treat the path as a list of Bezier curve control points and change the function to return a Bezier curve instead. Also, since it's a Bezier curve, the number of control points could probably b...
09919cb87021374f219b67a851435260
141
dianewan
2023-05-25T00:28:28
good
[ "code" ]
End of preview. Expand in Data Studio

Dataset Card for "scale_prompts_098236"

More Information needed

Downloads last month
5