min_docsearch_score float64 0.04 0.04 | airoboros_subset stringclasses 1
value | instruction stringlengths 18 741 | __original_row_idx int64 0 2k | embedding listlengths 384 384 | too_similar bool 1
class | similar_text stringlengths 0 671 | similar_text_distance float64 0.04 1 |
|---|---|---|---|---|---|---|---|
0.04 | coding | 2) Deposit money into an existing account | 232 | [
-0.0208621087644188,
-0.03712868105337527,
0.01389902377999576,
-0.019195857289853388,
-0.0051441189681079545,
0.0006379430631855675,
0.08775108550135481,
0.003702197943211204,
0.02272263970485868,
-0.012366533502549418,
0.026603747498375643,
-0.06525302304663293,
0.004988037695443851,
0.0... | false | 3. The system should allow users to deposit and withdraw money from their accounts. | 0.181342 |
0.04 | coding | 3) Withdraw money from an existing account | 232 | [
-0.022722361970572775,
-0.026940628968727964,
0.015044654656757353,
0.006827102522946778,
0.021638393834957394,
-0.013949894355860434,
0.08464111573509604,
-0.018620424604881013,
0.030597245161566814,
0.005590140450173153,
0.05109934171154405,
-0.06112917481264651,
0.007676828145363078,
-0... | false | 3. The system should allow users to deposit and withdraw money from their accounts. | 0.121973 |
0.04 | coding | 4) Check the balance of an existing account | 232 | [
-0.05448386079322169,
-0.03029981258984667,
0.01615128668003299,
-0.03125594932422994,
0.023076592039540912,
0.004587013279659179,
0.07248558857357687,
0.0026061104174603623,
0.00832574070448878,
-0.04263939713331032,
0.0361434147173831,
-0.06301162399082631,
0.014272846297795643,
0.018675... | false | 2. Each account should have an account number, account holder's name, balance, and account type. | 0.181368 |
0.04 | coding | 5) List all accounts and their balances | 232 | [
-0.05207233472877994,
-0.026869164562382333,
0.02459152597551376,
-0.030493197464691466,
-0.009486719231531422,
0.005250070768968323,
0.07222132570742139,
0.04515854664734554,
0.0028787576693208336,
-0.018345281924209353,
0.04010617795053429,
-0.06685868878154119,
0.006020508706160283,
0.0... | false | 2. Each account should have an account number, account holder's name, balance, and account type. | 0.16896 |
0.04 | coding | The system should also handle invalid operations such as withdrawing more money than the available balance or creating an account with a negative initial balance. | 232 | [
-0.05432384870294906,
-0.041394607398175125,
0.020630574440742764,
-0.04278859231520689,
-0.018544380337642555,
0.009111534240667019,
0.07548220733937962,
0.01839735058923488,
0.028185682490958625,
0.014380704653588898,
0.03785376389192922,
-0.026062699285790917,
0.018918157316625123,
0.03... | false | 3. The system should allow users to deposit and withdraw money from their accounts. | 0.16106 |
0.04 | coding | Write a simple banking system using Java that supports the following operations: deposit, withdraw, and check balance. The system should have two types of accounts: checking and savings. Each account should have an account number, account holder's name, and initial balance. Implement data validation to ensure that the ... | 233 | [
-0.04286295395826659,
-0.007556041159613285,
-0.009739602485141835,
-0.060612487927634476,
-0.03554143939276796,
0.005712149026986493,
0.06552990117663426,
0.013036899938598231,
-0.007403783415016405,
-0.028923377018414003,
0.01634945059396555,
-0.05583421055314219,
-0.0006350517250058662,
... | false | Create a simple banking system using Java that supports the following operations: deposit, withdraw, and check balance. The system should have two types of accounts: checking and savings. Each account should have an account number, account holder's name, and initial balance. The system should also keep track of all tra... | 0.054235 |
0.04 | coding | Write a program in Java that implements the Minimax algorithm to play Tic Tac Toe against a human opponent. The game should alternate between the human player and the AI, with the AI making moves based on the Minimax strategy. Include input validation to ensure the human player enters valid moves. After each move, prin... | 254 | [
-0.06869281392923499,
0.01494402436796382,
0.03229742292455338,
-0.05145524861051995,
0.003249452941873324,
0.048658461019220695,
0.052707396831548986,
0.03595883171286125,
0.02789359362915038,
-0.016303907046271944,
0.020392221037203742,
-0.05335215885966102,
0.034760629417224326,
0.03514... | false | Create a GoLang program that implements the Minimax algorithm for playing Tic Tac Toe. The game should be played in the console, with the user as X and the computer as O. After each move, print the current state of the board and announce the winner if there is one. The computer's moves should be chosen based on the Min... | 0.076207 |
0.04 | coding | Create a command-line calculator using C that supports basic arithmetic operations (addition, subtraction, multiplication, and division) with floating-point numbers. The program should continuously prompt the user for input until the user decides to quit. Implement a simple history feature that stores the last five cal... | 259 | [
-0.0753493585835595,
-0.0010748563497466703,
0.03994399569256773,
-0.04870496553183153,
-0.05383443308340359,
0.01259945204407994,
0.04233474537779668,
0.05902188105154893,
0.018571454508901637,
-0.017231085784016723,
0.036270725451225276,
-0.025819228235328565,
0.04368824761325915,
0.0158... | false | Create a simple command-line calculator using bash scripting that supports basic arithmetic operations (addition, subtraction, multiplication, and division) with two operands. The script should continuously prompt the user for input until the user chooses to exit. It should also handle invalid inputs and division by ze... | 0.118634 |
0.04 | coding | Create a simple chatbot using Node.js that responds to basic user queries. The chatbot should be able to understand and respond to the following commands: 'hello', 'goodbye', 'help', and 'joke'. For the 'joke' command, use a predefined list of jokes and select one at random. Implement a simple natural language processi... | 263 | [
-0.062471451210161066,
0.015438486344110103,
0.028569997196166437,
-0.03867454195374628,
-0.0005725668329359366,
-0.013136503672525503,
0.07122136116614017,
0.03798706568600361,
-0.02633052024101317,
-0.013068774167619712,
-0.004224707962242562,
-0.031596318815402355,
0.05674601512937556,
... | false | Create a simple chatbot using Python that can have basic conversations with users. The chatbot should be able to understand and respond to the following commands: 'hello', 'how are you', 'what is your name', 'exit'. If the user enters anything else, the chatbot should respond with 'I did not understand that command.' T... | 0.149974 |
0.04 | coding | Write a SQL query to retrieve the top three most frequently occurring words in a table called 'posts' with columns 'id', 'title', and 'content'. The word frequency should be calculated based on the 'content' column. Use MySQL dialect. | 264 | [
-0.0407838619836335,
-0.04484883527478076,
0.012118019640020041,
-0.030647306483852166,
-0.017812568025668378,
0.009171047834987227,
0.055196458264368864,
0.02541213200956542,
0.044796528475663656,
-0.00719356090765411,
0.0007925295788370644,
-0.0016922107262442097,
0.055475761894010975,
-... | false | Write a SQL query to retrieve the top three highest-paid employees from each department in a company database. The database schema includes tables for 'employees' and 'departments', where each employee is associated with a department ID. Use PostgreSQL as your SQL dialect. | 0.221322 |
0.04 | coding | Write a simple banking system using Python. The system should have two classes: 'Account' and 'Bank'. The 'Account' class should have methods to deposit, withdraw, and check balance. The 'Bank' class should be able to create new accounts, delete existing accounts, and list all accounts. Each account should have a uniqu... | 266 | [
-0.04232293293651839,
-0.01717765599365023,
0.01343826460523287,
-0.040426138084166945,
-0.030327069976075826,
-0.025511163773737796,
0.06741729261247424,
0.00872321318538803,
0.023132821141990237,
-0.0062769356952799785,
0.0013302288484909586,
-0.046913947092746586,
0.034935574369950595,
... | false | Create a simple banking system using Python. The system should have two classes: Account and Bank. The Account class should have methods to deposit, withdraw, and check balance. The Bank class should be able to create new accounts, delete existing accounts, and list all accounts. Each account should have a unique ID ge... | 0.040016 |
0.04 | coding | Write a program in Java that implements the Rock, Paper, Scissors game. The program should allow two players to play against each other and keep track of their scores. After each round, the program should display the current score and ask if the players want to continue playing. If they choose to stop, the program shou... | 297 | [
-0.10313172727369432,
0.00043493230039254587,
0.008324102900349536,
-0.03451779265153047,
-0.029944164636107343,
0.02722392803090447,
0.07282398922874816,
0.044336923371412394,
0.022892561216113563,
-0.013109915987093634,
0.0136422534176195,
-0.009247616276424656,
0.035641757366555456,
0.0... | false | Create a GoLang program that implements the Rock, Paper, Scissors game. The program should allow two players to play against each other and keep track of their scores. Each player's choice (rock, paper, or scissors) should be represented by a struct with methods to determine the winner of a round. The game should conti... | 0.122612 |
0.04 | coding | Write a script in Powershell that takes a directory path as input and creates a backup of all files with the .txt extension. The backup should be saved to a new folder named 'backup' inside the original directory, and each file name should have '_backup' appended to it before the extension. If the 'backup' folder alrea... | 300 | [
-0.07934130641863113,
-0.006749774721538418,
0.05379790381630091,
-0.017126872949100425,
0.013820960035948222,
-0.002070602239849266,
0.00695599887397415,
-0.03297045418486804,
-0.013164548060022051,
-0.05600413246573902,
0.019730794960021013,
-0.008848428629860336,
0.0175799855911046,
-0.... | false | Write a Powershell script that accepts a directory path as input and creates a backup of all files in the directory, saving them to a new directory with the current date appended to the original directory name. The script should also create a log file detailing which files were backed up and any errors encountered duri... | 0.099365 |
0.04 | coding | Create a C++ program that implements the game of Hangman. The program should randomly select a word from a predefined list, and the user should be able to guess letters until they correctly guess the word or run out of attempts (6 attempts). After each guess, the program should display the current state of the word wit... | 313 | [
-0.0619736008655484,
-0.001619913499245699,
0.01970825203146302,
-0.008992934886642743,
-0.014597953182812708,
0.020757815244967417,
0.06245513185503366,
0.038015698153501726,
0.050335765004494055,
-0.031756596227550074,
-0.004806742659102468,
-0.00398473273358236,
-0.001485700845462676,
0... | false | Write a Python program that implements the game of Hangman. The program should randomly select a word from a predefined list, and the user should be able to guess letters until they correctly guess the word or run out of attempts (6 attempts). After each guess, the program should display the current state of the word w... | 0.0582 |
0.04 | coding | Create a simple banking system using Python. The system should have two classes: 'Account' and 'Bank'. The 'Account' class should have methods to deposit, withdraw, and check balance. The 'Bank' class should be able to create new accounts, delete existing accounts, and list all accounts. Use PowerShell to test the syst... | 317 | [
-0.03542694323330606,
-0.027562803539094925,
0.013158120677928348,
-0.056020719799244785,
-0.021397032944728746,
-0.014566992822370936,
0.051634715894847784,
-0.002113573410757565,
0.009245223967983966,
-0.012652101476182823,
0.020581090090278857,
-0.0617285646879068,
0.009079393607572862,
... | false | Implement a simple banking system using Python. The system should have two classes: 'Account' and 'Bank'. The 'Account' class should have methods to deposit, withdraw, and check balance. The 'Bank' class should be able to create new accounts, delete existing accounts, and list all accounts. Additionally, the system sho... | 0.040107 |
0.04 | coding | Create a simple chatbot using Python that can understand basic user queries and respond accordingly. The chatbot should be able to tell the time, provide the current date, perform basic arithmetic operations, and generate a random joke. Use natural language processing (NLP) techniques to parse user input and determine ... | 323 | [
-0.07729726426016834,
0.006358213691715005,
0.01695754246575464,
-0.03272357699964927,
-0.015080966740035472,
-0.031207430532733074,
0.07444167300726039,
0.037995946419614963,
-0.020920701553429226,
0.00931952355276126,
0.006250445242750086,
-0.04566404239280617,
0.05687605517887602,
0.020... | false | Create a simple chatbot using Node.js that responds to basic user queries. The chatbot should be able to understand and respond to the following commands: 'hello', 'goodbye', 'help', and 'joke'. For the 'joke' command, use a predefined list of jokes and select one at random. Implement a simple natural language processi... | 0.104158 |
0.04 | coding | Write a Powershell script that takes a directory path as input and creates a backup of all files in the directory, saving them to a new directory with the current date appended to the original directory name. The script should also calculate the total size of all files in the original directory and display it to the us... | 332 | [
-0.09006633283615577,
-0.01649993970887466,
0.057650217562922,
-0.03254718588235188,
-0.0018116803184220656,
-0.00620688661824192,
-0.001665259884015243,
-0.026492924402114985,
-0.010509128302027713,
-0.016685103393814148,
0.04195273515762037,
-0.016872157663511696,
0.034915833401819765,
-... | false | Write a Powershell script that accepts a directory path as input and creates a backup of all files in the directory, saving them to a new directory with the current date appended to the original directory name. The script should also create a log file detailing which files were backed up and any errors encountered duri... | 0.051995 |
0.04 | coding | 2) User can deposit money into their account. | 333 | [
-0.020041213987445114,
-0.022467191909575284,
0.002920738375511808,
-0.026579416870887138,
-0.01312957310918873,
0.008892739983317955,
0.1304062435412925,
0.020649673092917955,
0.011192299249832586,
-0.016124313443994745,
-0.006197051047814818,
-0.0472446225614606,
0.007166262137851123,
0.... | false | 2) Deposit money into an existing account | 0.084533 |
0.04 | coding | 3) User can withdraw money from their account if they have sufficient balance. | 333 | [
-0.030083044743659727,
-0.028675650586992386,
-0.0034558912027180034,
-0.016181742439086096,
0.010379481846834288,
0.000510463189527399,
0.10586694409894731,
0.012884208667080378,
0.016843653868325356,
-0.004458154459838611,
0.009020821005524853,
-0.05108976258881361,
0.01715620199263694,
... | false | 3. The system should allow users to deposit and withdraw money from their accounts. | 0.098829 |
0.04 | coding | 4) User can check their current balance. | 333 | [
-0.0606995545691678,
-0.013617716403505552,
0.01072278406867679,
-0.03495807862005988,
0.034379336159602834,
0.004577237537404929,
0.10485817240879738,
0.028096498248620785,
0.005320805928831238,
-0.04126592254157148,
0.020248028896109698,
-0.04592198768546528,
0.026356910655480906,
0.0406... | false | 4) Check the balance of an existing account | 0.091793 |
0.04 | coding | 5) System should prevent users from withdrawing more money than they have in their account. | 333 | [
-0.05583699181485555,
-0.024341151940750077,
0.020466522370378465,
-0.030473938772197073,
0.014367050808646947,
0.011431592028093393,
0.08444343891494713,
0.04005028508819528,
0.03954534436155826,
-0.0070225355939711786,
0.037587533030026196,
0.002249821458727504,
0.01669881794022921,
0.05... | false | 3. The system should allow users to deposit and withdraw money from their accounts. | 0.081094 |
0.04 | coding | Create a Powershell script that takes in a list of numbers as input and outputs the prime numbers from the list. The script should also calculate and display the sum of all the non-prime numbers. Implement this using functions for each operation (checking primality, calculating sum) to keep the code organized and reusa... | 349 | [
-0.061261341057327584,
-0.0001858830658167078,
0.036693710882643615,
-0.0637997613206599,
-0.04112791275493584,
0.05173317722413621,
0.02119602638324952,
0.011504048496900615,
0.013806766848767697,
-0.005062657880818214,
0.032491859091866124,
-0.04161922266660264,
0.04884488887137741,
-0.0... | false | Create a simple command-line calculator using bash scripting that supports basic arithmetic operations (addition, subtraction, multiplication, and division) with two operands. The script should take the operation and operands as arguments and print the result to the console. If an invalid operation or operand is provid... | 0.25761 |
0.04 | coding | Create a bash script that takes two command line arguments: the name of a directory and a file extension. The script should search for all files with the given extension in the specified directory and its subdirectories, then print out the total size of these files in bytes, kilobytes, and megabytes. If no files are fo... | 352 | [
-0.08634635054439146,
-0.004636962428877233,
0.06481473142925062,
-0.019206240758550527,
0.012524011535329973,
-0.007431248197251427,
0.01832442170473881,
-0.020640693589201477,
-0.011405545278134125,
-0.022788230312369175,
0.0632950365060553,
-0.03772897642953153,
0.040162045477987636,
0.... | false | Write a bash script that accepts two command line arguments: a directory path and a file extension. The script should then recursively search the specified directory for files with the given extension, calculate their total size in bytes, and print the result to the console. | 0.058884 |
0.04 | coding | Write a SQL query to create a database schema for an e-commerce platform that includes tables for customers, orders, products, and order items. The customer table should have columns for id, name, email, and address. The order table should have columns for id, customer_id, order_date, and total_cost. The product table ... | 371 | [
-0.014533349181130813,
-0.0466718259694404,
0.05566220307569238,
-0.02731927459515329,
-0.015453333826385397,
0.03909571805927944,
0.024804249181067953,
0.00542455487625094,
-0.004913708616220217,
0.008936462842896098,
0.0235461963069369,
-0.006988070841877945,
0.05587581121947033,
0.00057... | false | Write a SQL query to create a database schema for a simple e-commerce application. The schema should include tables for customers, orders, products, and order items. Each customer can have multiple orders, each order is associated with one customer, each product can be part of multiple orders, and each order item is as... | 0.062077 |
0.04 | coding | Write a SQL query to retrieve the names of all employees who have worked on projects that are not yet completed, along with the project name and the employee's job title. The database schema includes tables for Employees (EmployeeID, Name, JobTitle), Projects (ProjectID, ProjectName, Status), and Assignments (Assignmen... | 375 | [
-0.05887326137985608,
0.008757551070302088,
0.014266062315496337,
-0.01820529411450497,
0.0015902394424918884,
0.013629109395780796,
0.06732053954507676,
-0.009832187409344944,
-0.010872141296225487,
-0.0009333973727919591,
0.02970140755659427,
-0.008382651830085144,
0.04499460689789011,
-... | false | Write a SQL query to retrieve the names of all employees who have been with the company for more than 5 years, along with their job titles and hire dates. The database schema includes tables 'employees' (with columns 'employee_id', 'name', 'job_title', 'hire_date') and 'departments' (with columns 'department_id', 'depa... | 0.141299 |
0.04 | coding | The program should be able to handle multiple accounts and perform various operations on them. | 413 | [
-0.03520937926892033,
-0.015396347841593445,
0.04079892391163687,
-0.0492489698962045,
-0.0315535470933515,
0.01795269320750868,
0.05271830659320205,
0.016218861186662405,
-0.02412029485764373,
-0.026773431645158358,
-0.015286708825376923,
-0.03868627457975713,
0.004741236922561438,
0.0300... | false | 4. The system should also allow users to transfer money between accounts. | 0.173917 |
0.04 | coding | Write a simple banking system using Python and SQLite. The system should have two tables: one for customers and one for transactions. Each customer should have an ID, name, email, and balance. Each transaction should have an ID, the ID of the customer who made the transaction, the amount transferred, and the date of th... | 415 | [
-0.02625394304996464,
-0.01580064857024849,
0.015227347840220156,
-0.020230119113322065,
-0.036385199236772546,
-0.025136030049171056,
0.07192463095499743,
0.00409080208938,
0.03297278877754672,
0.007491083935276938,
0.0025055912562729796,
-0.045446829633404726,
0.029530184841846753,
0.005... | false | Create a simple banking system using SQL and Python. The system should have two tables: one for customers and one for transactions. The customer table should store the customer's name, email, and account balance. The transaction table should store the transaction ID, customer ID, transaction type (deposit or withdrawal... | 0.052915 |
0.04 | coding | Create a command-line Hangman game using Java. The game should randomly select a word from a predefined list, and the player has to guess the word by suggesting letters. After each guess, the game should display the current state of the word with correctly guessed letters revealed and incorrectly guessed letters drawn ... | 426 | [
-0.04897910189063398,
0.012168759995394754,
0.04015642639791582,
-0.027555427503226683,
-0.011362416281248471,
0.012284079146608637,
0.07388819501501973,
0.0341488819069811,
0.027038597508694695,
-0.01634796094135475,
0.012920512376051265,
-0.022318468597408443,
0.006033903247201579,
0.030... | false | Create a command-line Hangman game using Python. The game should randomly select a word from a predefined list, and the player has to guess the word by suggesting letters. For each incorrect guess, draw a part of a hangman's gallows. If the player guesses the word correctly before the gallows is complete, they win. Imp... | 0.075444 |
0.04 | coding | Write a SQL query to retrieve the top three highest-paid employees from each department in a company database. The database schema includes tables for 'employees' and 'departments', where 'employees' has columns 'id', 'name', 'salary', and 'department_id', and 'departments' has columns 'id' and 'name'. Use MySQL syntax... | 427 | [
-0.06887464852121862,
-0.04347732588522572,
0.007113602821608206,
-0.019182275651433104,
0.04191652240921998,
-0.010854881070486749,
0.07215514655231262,
-0.023427439451399763,
0.011965739335355026,
0.005773309984792807,
0.03898942776151345,
-0.010863034799487543,
0.04401864035862257,
-0.0... | false | Write a SQL query to retrieve the top three highest-paid employees from each department in a company database. The database schema includes tables for 'employees' and 'departments', where each employee is associated with a department ID. Use PostgreSQL as your SQL dialect. | 0.044965 |
0.04 | coding | Implement a simple banking system using C, with the following features: The system should have two types of accounts - checking and savings. Each account should have an account number, account holder's name, balance, and account type. The system should allow users to create new accounts, deposit money into existing acc... | 433 | [
-0.031589217348175574,
-0.007682485472906728,
-0.0041351807125929434,
-0.008570199795471573,
-0.021693030278990118,
-0.005920410596455745,
0.07489414480909445,
0.018444385300248913,
0.02376890172275382,
-0.018232183452535165,
0.006291669766375173,
-0.04849580281983137,
0.014386083868876062,
... | false | Create a simple banking system using C, with the following features: The system should have two types of accounts - checking and savings. Each account should have an account number, account holder's name, and balance. The system should allow users to deposit and withdraw money from their accounts. It should also allow ... | 0.051111 |
0.04 | coding | Write a script in Powershell that will take a directory path as input and create a new folder for each file type found within the directory. For example, if there are .txt, .jpg, and .pdf files, it should create three folders named 'txt', 'jpg', and 'pdf' respectively, and move the corresponding files into their respec... | 434 | [
-0.06410936251674522,
-0.03284136571007957,
0.05237438145347362,
-0.009167393648738257,
0.004891086358683301,
0.02906182215490993,
-0.001646527201867438,
-0.048001833151420856,
-0.0507182403251055,
-0.01353786044484146,
0.03906818097928544,
-0.031103795323906818,
0.022940337606009536,
-0.0... | false | Create a Powershell script that accepts a directory path as input and generates a report of all files in the directory, including their size, last modified date, and file type. The report should be outputted to the console in a human-readable format. | 0.174644 |
0.04 | coding | Create a C++ program that implements the Rock, Paper, Scissors game. The program should allow two players to play against each other or one player to play against the computer. The computer's move should be chosen randomly. After each round, the program should display the current score and ask if the players want to co... | 443 | [
-0.10480842571271089,
-0.0016768083173106733,
0.009849244570740283,
-0.02345393746733068,
-0.03792479200939109,
0.04254665157515721,
0.04870440360286577,
0.03364292105726198,
0.04267689889777367,
-0.02519537281819463,
0.013339430811174478,
-0.008118435610282287,
0.027205783437519945,
0.010... | false | Write a Python program that implements the Rock, Paper, Scissors game. The program should allow two players to play against each other or one player to play against the computer. When playing against the computer, the computer's move should be chosen randomly. After each round, the program should display the current sc... | 0.085876 |
0.04 | coding | Create a GoLang program that implements the game of Hangman. The program should randomly select a word from a predefined list, and the user should be able to guess letters until they correctly guess the word or run out of attempts (6 attempts). After each guess, the program should display the current state of the word ... | 452 | [
-0.05350155458081816,
0.009721442261531096,
0.03291523875079985,
0.00465537148511373,
-0.02432335202099185,
0.02046369231019612,
0.07489023462239787,
0.03208833977699007,
0.020872898691391795,
-0.014092561054385569,
-0.004333898019978762,
-0.036215980111794076,
0.023885367771838577,
0.0144... | false | Write a Python program that implements the game of Hangman. The program should randomly select a word from a predefined list, and the user should be able to guess letters until they correctly guess the word or run out of attempts (6 attempts). After each guess, the program should display the current state of the word w... | 0.049718 |
0.04 | coding | Write a script using powershell that takes a list of numbers as input and returns the longest increasing subsequence. The script should also handle invalid inputs, such as non-numeric characters or an empty list. Additionally, it should be able to handle large lists efficiently. | 457 | [
-0.09612146625692518,
-0.02856971991958894,
0.03560922712292832,
-0.04767660357996857,
-0.03810720540157592,
0.03859470802105119,
0.0055687245445994495,
0.008472011576461816,
0.00015220094119593053,
-0.017916577151083298,
0.027688685119771423,
0.0062615716656913714,
0.039238281663221304,
-... | false | Create a Powershell script that takes in a list of numbers as input and outputs the prime numbers from the list. The script should also calculate and display the sum of all the non-prime numbers. Implement this using functions for each operation (checking primality, calculating sum) to keep the code organized and reusa... | 0.196372 |
0.04 | coding | Write a script in Powershell that accepts a single command line argument for the path to a directory. The script should then recursively traverse the directory and its subdirectories, calculating the total size of all files within it. If any file is larger than 100MB, print out the full path to the file along with its ... | 459 | [
-0.07165922478936188,
-0.031006708480835032,
0.0559049210417836,
-0.06128427339205644,
-0.0024927878442547887,
0.001589198138718767,
0.006400609882026736,
-0.007061406020875449,
-0.013530252506288308,
-0.005086741527573035,
0.05033078445101176,
-0.0345592177093724,
0.05486592647281059,
-0.... | false | Create a Powershell script that accepts a single command line argument, the path to a directory. The script should then recursively traverse the directory and its subdirectories, calculating the total size of all files in the directory tree. The script should output the total size in bytes, kilobytes, megabytes, gigaby... | 0.045594 |
0.04 | coding | Create a simple banking system using C++. The system should have the following features: | 472 | [
-0.06942554936570634,
-0.01986505729871723,
-0.0022187022235504975,
-0.03600995794821689,
-0.02739526929782081,
-0.017859945979975193,
0.015190893902020997,
0.0374291705413527,
0.031346893122048025,
-0.024457770021366974,
0.0005640266743202847,
-0.04662062723132243,
0.014531645145688495,
0... | false | Implement a simple banking system using C. The system should have the following features: | 0.078666 |
0.04 | coding | Create a simple chatbot using Python that responds to basic user queries. The chatbot should be able to understand and respond to the following commands: 'hello', 'goodbye', 'help', and 'joke'. If the user enters anything else, the chatbot should respond with an error message. The chatbot should also keep track of the ... | 479 | [
-0.06104252931915128,
0.005673965159823138,
0.036121213892748215,
-0.03619654670945444,
-0.012857667468695919,
-0.028988631877478993,
0.07670534769504833,
0.042516136311179016,
-0.024197478518536476,
-0.00847584246833568,
0.011119226377581556,
-0.06912009822732104,
0.058065161975222226,
0.... | false | Create a simple chatbot using Python that can have basic conversations with users. The chatbot should be able to understand and respond to the following commands: 'hello', 'how are you', 'what is your name', 'exit'. If the user enters anything else, the chatbot should respond with 'I did not understand that command.' T... | 0.05057 |
0.04 | coding | Write a program in Python that implements the Caesar Cipher encryption technique. The program should take two command line arguments: the shift value and the input string to be encrypted or decrypted. If the shift value is positive, the program should encrypt the string; if it's negative, it should decrypt it. The prog... | 480 | [
-0.09235887681016362,
-0.02352683171375647,
0.002441192201065909,
-0.031550279747239986,
-0.03113917721206177,
-0.01758480761201159,
0.050220011068978145,
0.0032537627396940854,
0.0016746217784120612,
0.010222891020772338,
-0.00554445461446837,
-0.06527925820340098,
0.0324169685076368,
-0.... | false | Write a Python program that implements the Rock, Paper, Scissors game. The program should allow two players to play against each other or one player to play against the computer. When playing against the computer, the computer's move should be chosen randomly. After each round, the program should display the current sc... | 0.306958 |
0.04 | coding | Create a simple banking system using C, with the following features: The system should have two types of accounts - checking and savings. Each account should have an account number, account holder's name, balance, and account type. Implement deposit and withdrawal operations for both account types. For checking account... | 484 | [
-0.02452065173125004,
-0.008861724056910854,
-0.0007558802993985999,
-0.025184623242401005,
-0.0412611019316342,
0.006358019376672228,
0.06866937697241535,
0.03912469642977606,
0.026689074239746025,
-0.005075581239844402,
0.011532712427992083,
-0.06318121984274121,
0.02040580420795319,
0.0... | false | Create a simple banking system using C, with the following features: The system should have two types of accounts - checking and savings. Each account should have an account number, account holder's name, and balance. The system should allow users to deposit and withdraw money from their accounts. It should also allow ... | 0.056633 |
0.04 | coding | Create a bash script that takes two command line arguments: the name of a directory and an extension. The script should find all files in the specified directory with the given extension, then create a new directory called 'archived' inside the original directory and move the found files into it. If the 'archived' dire... | 486 | [
-0.10293266311698795,
0.007651285368359996,
0.06255899451474185,
-0.008677213566157787,
0.0012365743912312623,
0.0026988934612576605,
0.006079076868766184,
-0.04300028886963199,
-0.027667532105229067,
-0.029471915600418484,
0.06467154706596351,
-0.022255992807735957,
0.04172786007220864,
-... | false | Write a bash script that accepts two command line arguments: a directory path and a file extension. The script should then search for all files with the given extension in the specified directory and its subdirectories, and print out the paths of these files. If no files are found, it should print a message indicating ... | 0.156497 |
0.04 | coding | Write a Powershell script that takes an IP address as input and performs a simple port scan on the target machine. The script should iterate over ports 1-1024, check if each port is open or closed, and output the results in a formatted string. Additionally, implement a basic rate limiter to prevent abuse by limiting th... | 490 | [
-0.05940496640736201,
-0.026592614539796486,
0.03833203076899299,
-0.04987767415767785,
-0.00822117844252133,
-0.0026770683884473783,
0.01408380291750768,
0.017178610232482957,
-0.00040894596071921747,
-0.025941940425059016,
0.045184579444242555,
-0.005361699116317403,
0.03318003243776554,
... | false | Write a Powershell script that takes in an IP address as input and performs a simple port scan on the target machine. The script should iterate over ports 1-1024, check if each port is open or closed, and output the results to the console. Implement error handling for invalid IP addresses and include comments explainin... | 0.047249 |
0.04 | coding | Create a command-line calculator in C that supports basic arithmetic operations (addition, subtraction, multiplication, division) and also has a memory feature to store the last result. The calculator should keep running until the user chooses to exit. Implement a simple text-based menu for users to select the operatio... | 507 | [
-0.08273463967909095,
-0.016788694046948598,
0.03637211189176595,
-0.04832442200843208,
-0.061759654624066906,
0.00584345324057546,
0.03891045750067369,
0.06152515878906699,
0.02292378860677135,
-0.009630786635271081,
0.021878651022757854,
-0.024741569980928274,
0.056312829759245425,
0.009... | false | Create a command-line calculator using C that supports basic arithmetic operations (addition, subtraction, multiplication, and division) with floating-point numbers. The program should continuously prompt the user for input until the user decides to quit. Implement a simple history feature that stores the last five cal... | 0.055035 |
0.04 | coding | Create a C++ program that implements the Minimax algorithm to play a game of Tic Tac Toe against a human opponent. The program should allow the user to make moves by entering the number of the space where they'd like to place their piece (1-9). After each move, the program should print the updated board and determine i... | 509 | [
-0.07030775059049485,
0.004523415831696333,
0.03143301454633987,
-0.04687587318324879,
-0.021648189871885843,
0.04747557411187281,
0.033988854140506335,
0.03407702430703949,
0.044052419922813855,
-0.007114627986863892,
0.014294657167054471,
-0.034584725470888165,
0.025001614080499994,
0.02... | false | Create a GoLang program that implements the Minimax algorithm for playing Tic Tac Toe. The game should be played in the console, with the user as X and the computer as O. After each move, print the current state of the board and announce the winner if there is one. The computer's moves should be chosen based on the Min... | 0.065008 |
0.04 | coding | Create a simple banking system using Python that supports the following operations: account creation, deposit, withdrawal, and balance inquiry. The system should store data in memory and include input validation to prevent invalid transactions (e.g., withdrawing more than the available balance). Implement a basic authe... | 522 | [
-0.036900754485570515,
-0.026990322006727276,
-0.0164303497834613,
-0.05041214750985292,
-0.0247974317668231,
-0.011144562463594734,
0.05427959855559263,
0.021332965855950157,
0.005517167425271986,
0.007625458186363889,
-0.006762857451314099,
-0.06713404409580069,
0.034958641471714694,
0.0... | false | Create a simple banking system using Python that allows users to create accounts, deposit and withdraw money, and check their balance. The system should use a dictionary to store account information in memory. Implement the following features: | 0.056847 |
0.04 | coding | Create a bash script that accepts a directory path as an argument and calculates the total size of all files in the directory, including subdirectories. The script should also calculate the average file size and display the top 5 largest files by size. Use standard Unix utilities such as find, du, and sort to achieve t... | 525 | [
-0.09145053037310653,
-0.06252877114210137,
0.0666852039885376,
-0.06317786569256147,
0.022531638703494408,
-0.01243023049050065,
0.015640164906381544,
0.0022431501508092524,
0.014866716446435054,
0.001625644197919323,
0.03598008132200007,
-0.03816718797541762,
0.06131305251385154,
0.01649... | false | Write a bash script that accepts a directory path as an argument and prints the total size of all files in the directory, including subdirectories. The output should be in human-readable format (e.g., KB, MB, GB). Additionally, the script should print the top 5 largest files in the directory and its subdirectories. | 0.061044 |
0.04 | coding | 3) Withdraw money from an existing account if sufficient funds are available | 528 | [
-0.025564428428764403,
-0.038654733464174335,
0.003940955271606326,
0.004843153527017447,
0.025776378820377387,
0.0021802873824775656,
0.06212528052349163,
-0.01107324753385,
0.012969933455239465,
0.008193359713445748,
0.033546358359916574,
-0.07173895838651705,
0.005647812506506207,
0.001... | false | 3) Withdraw money from an existing account | 0.049467 |
0.04 | coding | 5) Transfer money from one account to another if sufficient funds are available in the source account | 528 | [
-0.022354121150531876,
-0.05557332286771177,
0.009454277809832061,
-0.02569279879477428,
-0.022381727412929268,
-0.00670658018943718,
0.06658628255076582,
0.020828842091126266,
-0.01648379967405062,
-0.02188955698409266,
0.014229670397608009,
-0.06951488212179135,
0.008942311189324214,
0.0... | false | 2) Deposit money into an existing account | 0.160847 |
0.04 | coding | Write a program in Python that implements the Caesar Cipher encryption technique. The program should accept two command line arguments: the shift value and the input string to be encrypted or decrypted. It should also have an option to specify whether the operation is encryption or decryption. The program should use SQ... | 530 | [
-0.0739548027374507,
-0.015180988553928142,
0.02057176186298775,
-0.013731633688348848,
-0.037792200555105196,
-0.012263105685702238,
0.04136867281191798,
0.004662347768720177,
0.003179190318833188,
0.005770326358395997,
-0.008236982526167643,
-0.03648914621552618,
0.03993794160310923,
-0.... | false | Write a program in Python that implements the Caesar Cipher encryption technique. The program should take two command line arguments: the shift value and the input string to be encrypted or decrypted. If the shift value is positive, the program should encrypt the string; if it's negative, it should decrypt it. The prog... | 0.079617 |
0.04 | coding | Write a SQL query to retrieve the names of all employees who have worked on at least two projects, along with the total number of projects they've worked on. The database schema consists of two tables: 'employees' (with columns 'id', 'name') and 'projects' (with columns 'id', 'employee_id'). Assume that you are using M... | 532 | [
-0.04512279635030771,
-0.018177407846043832,
0.02290827670187647,
-0.03479615803187132,
-0.008469847552695697,
0.028336475164377806,
0.06622938491522867,
-0.019001807098648536,
0.010480346582686,
-0.004932664561913357,
0.014515159881070407,
-0.009735147929319378,
0.03843093850147982,
-0.02... | false | Write a SQL query to retrieve the names of all employees who have worked on projects that are not yet completed, along with the project name and the employee's job title. The database schema includes tables for Employees (EmployeeID, Name, JobTitle), Projects (ProjectID, ProjectName, Status), and Assignments (Assignmen... | 0.066785 |
0.04 | coding | 1) A user can create an account with a unique username and password. | 534 | [
-0.04830614969783698,
-0.03506722490350975,
0.013308434982370432,
-0.01999668486129715,
-0.0494332399439733,
0.02255019241339458,
0.10091315427086812,
0.025401421425282154,
0.018616010392518218,
-0.011991482532136223,
0.008935379328355744,
-0.02789016480892838,
0.03146197854820165,
0.00706... | false | 1) Create an account with a unique ID and initial balance | 0.112932 |
0.04 | coding | 5) A user can transfer money to another user's account. | 534 | [
-0.040556020142385955,
-0.04238675441463966,
0.02091294481040241,
-0.02092428273117632,
-0.01634353735845985,
0.0019402241605914292,
0.11204688749546036,
0.03456512390021312,
0.003332694453434344,
-0.03168912907256378,
0.018762286339646213,
-0.03534989353722026,
0.0013013170978580179,
0.02... | false | 2) User can deposit money into their account. | 0.100119 |
0.04 | coding | Create a SQL database schema using MySQL to store information about books in a library. The schema should include tables for authors, publishers, genres, and books. Each book should have a unique ISBN, title, publication date, author ID, publisher ID, and genre ID. Write a Python script that connects to the database, i... | 545 | [
-0.03614204528743865,
-0.01960374108935348,
0.021354783884886132,
-0.024383725971974322,
-0.022730026868640806,
0.011157062154624491,
-0.016688368195368477,
0.021951029599258008,
0.016792531031042498,
0.004829124252624314,
-0.00557636249282969,
-0.009825616474911536,
0.04721188629430931,
0... | false | Write a SQL query to create a database schema for a simple e-commerce application. The schema should include tables for customers, orders, products, and order items. Each customer can have multiple orders, each order is associated with one customer, each product can be part of multiple orders, and each order item is as... | 0.175778 |
0.04 | coding | Write a SQL query to retrieve the names of all employees who have been with the company for more than 5 years, along with their job titles and hire dates. The database schema includes the following tables: Employees (EmployeeID, Name, JobTitle, HireDate) and Departments (DepartmentID, DepartmentName). Assume that the c... | 553 | [
-0.06899604919669275,
0.0015439913781202688,
0.02746735502578779,
-0.01573861011731431,
-0.00987742558023814,
0.006869203384454744,
0.06169936782082152,
-0.017383087359141028,
0.0031515008182286092,
-0.010880091185478544,
0.054541554090868555,
0.008634608205514345,
0.046638615248881916,
-0... | false | Write a SQL query to retrieve the names of all employees who have been with the company for more than 5 years, along with their job titles and hire dates. The database schema includes tables 'employees' (with columns 'employee_id', 'name', 'job_title', 'hire_date') and 'departments' (with columns 'department_id', 'depa... | 0.059911 |
0.04 | coding | Create a simple text-based banking system using Python. The system should have the following features: | 565 | [
-0.05854052457587337,
-0.021513047750349696,
-0.006069448082617855,
-0.019631435356329097,
-0.02461451199466006,
-0.03842944507314005,
0.019173772284504266,
0.04164719052445342,
0.0025139375575651524,
-0.011055826725012935,
-0.013279422618215932,
-0.06901283302635149,
0.032045955495833826,
... | false | Create a simple banking system using Python that allows users to create accounts, deposit and withdraw money, and check their balance. The system should use a dictionary to store account information in memory. Implement the following features: | 0.097373 |
0.04 | coding | 2) User login functionality | 565 | [
-0.020905545119539813,
-0.018273547412538338,
0.014688348494698146,
-0.055519454548161234,
-0.010054169289167558,
0.02661369386024805,
0.07762140086934688,
0.041385147994118736,
0.014749433942770932,
-0.016416687626867606,
-0.0365400950045596,
-0.029066486476257522,
0.023895178148138088,
0... | false | 2) Login functionality to access account information | 0.077722 |
0.04 | coding | 3) Deposit money into account | 565 | [
0.004450287312430733,
-0.0297671787227163,
0.012221276125901188,
0.0031221463172721726,
0.014299631466425627,
-0.0012450840161205732,
0.09113984776584315,
-0.0008444300825182324,
0.028913541468586254,
0.004499952418235993,
0.016453801122979828,
-0.07966824814650793,
0.008193570388379255,
0... | false | 2) Deposit money into an existing account | 0.101692 |
0.04 | coding | 4) Withdraw money from account | 565 | [
-0.018867221620656013,
-0.015560320708550299,
0.015127470869158692,
-0.0178214693577943,
0.0019474153102577087,
-0.007511431430159791,
0.1019362084228965,
-0.00041259796911500017,
0.014530482885024095,
-0.009124698578816265,
0.01756247601371135,
-0.05624768220810128,
0.02484584658052729,
0... | false | 3) Withdraw money from an existing account | 0.077681 |
0.04 | coding | 5) Check account balance | 565 | [
-0.05130116343917157,
-0.03517782856599031,
0.04914566216875088,
-0.027866902075890976,
-0.002691045480200348,
-0.0012473212995617793,
0.08437785761820306,
0.03474926746962631,
0.006597563241649341,
-0.04996338196827784,
0.05091569277319015,
-0.07034271547423453,
0.007721510267848428,
0.05... | false | 4) Check the balance of an existing account | 0.104553 |
0.04 | coding | 6) Transfer money to another user's account | 565 | [
-0.01185271702644679,
-0.02901009470072302,
0.025911936535072944,
-0.04287247732056937,
-0.01271953247420866,
-0.0027540603185491437,
0.09856354444702345,
0.015643505378737536,
0.009246150031201123,
-0.02298700809358256,
0.006905160378302746,
-0.03574070334247147,
-0.019245538859550566,
0.... | false | 5) A user can transfer money to another user's account. | 0.073374 |
0.04 | coding | Write a bash script that accepts two command line arguments: the path to a directory and a string. The script should then search for all files in the specified directory (and its subdirectories) that contain the given string, and print out the paths of these files along with the line numbers where the string was found. | 575 | [
-0.09010117348269037,
-0.02585382715740257,
0.03488072321289142,
-0.026097680930915457,
0.003592770252934704,
-0.02428972121127169,
0.022486609956869175,
-0.02386280853824099,
-0.03437829704414595,
-0.054416573615212516,
0.025653281745520232,
-0.017624316438265116,
0.07652005423518654,
-0.... | false | Write a bash script that accepts two command line arguments: a directory path and a file extension. The script should then search for all files with the given extension in the specified directory and its subdirectories, and print out the paths of these files. If no files are found, it should print a message indicating ... | 0.092105 |
0.04 | coding | Create a simple banking system using Python that supports the following operations: deposit, withdraw, and check balance. The system should have two types of accounts: checking and savings. Each account should have its own interest rate. Implement a method to calculate the total balance across all accounts for a given ... | 586 | [
-0.04286971268481659,
-0.026982592121331823,
0.011310036169479619,
-0.031156133516882192,
-0.03017890606333694,
-0.025370266008835265,
0.06834042742015223,
0.013733391498623179,
0.017147518505365306,
-0.00460497051988815,
-0.004122275813673242,
-0.08212579696241426,
0.018434470316200553,
0... | false | Create a simple banking system using Python that supports the following operations: deposit, withdraw, and check balance. The system should have two types of accounts: checking and savings. Each account type should have its own interest rate. Implement a class hierarchy to represent the different account types and use ... | 0.051958 |
0.04 | coding | Create a SQL database schema for an e-commerce platform using MySQL, including tables for products, orders, customers, and order items. Implement foreign key constraints to ensure data consistency. | 594 | [
-0.023000860482659032,
-0.0650230218004763,
0.05125649207642569,
-0.06274969339254917,
-0.027722676708079198,
0.030133451552460506,
0.025668814446094187,
0.009464312466841367,
-0.0069141382027338985,
-0.014011246816799116,
0.007397011686915038,
-0.011744083763788764,
0.04412034894262836,
0... | false | Create a SQL database schema for an e-commerce application using MySQL. The schema should include tables for customers, orders, products, and order items. Each customer can have multiple orders, each order is associated with one customer, each product can be part of multiple orders, and each order item is associated wi... | 0.055623 |
0.04 | coding | Write a python program that implements the Rock, Paper, Scissors game. The game should be played between two players and each player's choice (rock, paper or scissors) should be randomly generated. After each round, the program should print out the choices made by both players and declare the winner of the round based ... | 597 | [
-0.08552249587362996,
-0.009479619741639618,
0.016991155736274178,
-0.008724658057603028,
-0.02242125206573036,
0.03847037322989632,
0.042221464591276306,
0.030355834787052716,
0.030752673167248164,
0.0027322904366755205,
-0.0029943855431302053,
-0.03412652489913754,
0.03777868373391263,
0... | false | Write a Python program that implements the Rock, Paper, Scissors game. The program should allow two players to play against each other or one player to play against the computer. When playing against the computer, the computer's move should be chosen randomly. After each round, the program should display the current sc... | 0.043345 |
0.04 | coding | Create a Powershell script that takes a list of IP addresses as input and pings each one, displaying the results in a table format. The script should also include an option to save the results to a text file. Implement error handling to catch any exceptions that may occur during the ping operation. | 598 | [
-0.052519199669655715,
-0.020387255523198245,
0.06056333782789564,
-0.04078846225788347,
-0.0278972746230234,
-0.013724694290114817,
0.028084198505208262,
0.011706747474743326,
0.010155641909601823,
-0.01593840603244059,
0.023045713820071947,
-0.025424672912716127,
0.05577440660238588,
-0.... | false | Write a Powershell script that takes in an IP address as input and performs a simple port scan on the target machine. The script should iterate over ports 1-1024, check if each port is open or closed, and output the results to the console. Implement error handling for invalid IP addresses and include comments explainin... | 0.141345 |
0.04 | coding | Create a simple banking system using Java. The system should have two classes: Account and Bank. The Account class should have properties for account number, account holder's name, and balance. It should also have methods to deposit and withdraw money. The Bank class should have a list of accounts and methods to add an... | 599 | [
-0.04064903362912896,
-0.013842147620476034,
0.008242131118857606,
-0.06880734784088194,
-0.02651637204193807,
0.005138542445757542,
0.05030591729751815,
0.016521083006614184,
-0.003731499384412567,
-0.016445355306272388,
0.018692299514965142,
-0.06315753538439985,
0.008016220204454947,
0.... | false | Write a simple banking system using Java that supports the following operations: deposit, withdraw, and check balance. The system should have two types of accounts: checking and savings. Each account should have an account number, account holder's name, and initial balance. Implement data validation to ensure that the ... | 0.051665 |
0.04 | coding | Create a bash script that accepts two command line arguments: the name of a directory and an extension. The script should then search for all files with the given extension in the specified directory and its subdirectories, and print out the paths to these files relative to the specified directory. | 611 | [
-0.08010818200895971,
-0.006728409278519205,
0.05171644667425389,
0.001693194603481721,
0.004553469949113123,
0.0071994675443727155,
0.025872433455891252,
-0.030440978256713543,
-0.02887307633232474,
-0.03725310877171967,
0.025729881508156298,
-0.02658547631660721,
0.03818654724033547,
-0.... | false | Write a bash script that accepts two command line arguments: a directory path and a file extension. The script should then search for all files with the given extension in the specified directory and its subdirectories, and print out the paths of these files. If no files are found, it should print a message indicating ... | 0.068303 |
0.04 | coding | Create a command-line calculator in C that supports basic arithmetic operations (+, -, *, /) and has the ability to store and recall previously calculated results. The calculator should have a simple text-based interface where users can input expressions or commands to interact with it. Implement a 'history' feature th... | 641 | [
-0.08746925517081978,
0.0033406653981616834,
0.03643933962698644,
-0.03817362240392024,
-0.060520140764521745,
-0.0041844163879364155,
0.04438902696361405,
0.059031432843054045,
0.0029640290125912366,
-0.024888332294820317,
0.028388335572710272,
-0.026951986605044487,
0.049575729886676016,
... | false | Create a command-line calculator using C that supports basic arithmetic operations (addition, subtraction, multiplication, and division) with floating-point numbers. The program should continuously prompt the user for input until the user decides to quit. Implement a simple history feature that stores the last five cal... | 0.057869 |
0.04 | coding | Create a bash script that accepts two command line arguments: the name of a directory and an extension. The script should then find all files in the specified directory with the given extension, count the number of lines in each file, and print out the total number of lines across all files. | 674 | [
-0.0783148888620894,
-0.01530124819175337,
0.0634045716825397,
-0.02749076901011681,
-0.006764173154812443,
0.0014845261274308327,
0.04722350589441373,
-0.025872359565218748,
0.005775398739135854,
-0.02537751810481838,
0.029265666716418576,
-0.01901731913418665,
0.0318287929679156,
-0.0063... | false | Create a bash script that takes two command line arguments: the name of a directory and a file extension. The script should search for all files with the given extension in the specified directory and its subdirectories, then print out the total size of these files in bytes, kilobytes, and megabytes. If no files are fo... | 0.089733 |
0.04 | coding | Write a script in Powershell that accepts two command line arguments: the path to a directory and a file extension. The script should then recursively search for all files with the specified extension within the given directory, calculate their total size in bytes, and output the result. | 682 | [
-0.0882707102064615,
0.0037362422407907414,
0.07092468544013437,
-0.03871871960030209,
-0.0075635515325625105,
0.012150544850483676,
0.020117692942886255,
-0.027309678893384787,
-0.014616806273338338,
-0.02236862885805787,
0.06530334150702818,
-0.027805112707986326,
0.022420322849638703,
-... | false | Write a bash script that accepts two command line arguments: a directory path and a file extension. The script should then recursively search the specified directory for files with the given extension, calculate their total size in bytes, and print the result to the console. | 0.048226 |
0.04 | coding | Write a bash script that takes two command line arguments: the path to a directory and a string. The script should find all files in the specified directory (and its subdirectories) that contain the given string, and print their paths. If no files are found, it should print a message indicating so. Use grep for searchi... | 685 | [
-0.06517400273585605,
-0.018590739949625325,
0.03833585417398821,
-0.033618135595043584,
0.031129753556168403,
-0.032572100207463484,
0.028422121430153116,
-0.013156727243762769,
-0.0289260190724221,
-0.05512051759595919,
0.03751591781942673,
-0.02633209583926668,
0.05796048506541503,
-0.0... | false | Write a bash script that accepts two command line arguments: the path to a directory and a string. The script should then search for all files in the specified directory (and its subdirectories) that contain the given string, and print out the paths of these files along with the line numbers where the string was found. | 0.05057 |
0.04 | coding | Implement the solution using object-oriented programming principles. | 705 | [
-0.03759363434571854,
0.0018189996524454978,
0.026128320276362416,
-0.03087070207846021,
0.024472220224467548,
0.006975008210725575,
0.01813812628402672,
0.034085923568529845,
0.006062264646382941,
-0.01894521037746607,
-0.018296397095251358,
-0.04689410785020287,
0.033889898805101376,
0.0... | false | Implement a simple banking system using C# with the following features: | 0.232666 |
0.04 | coding | Create a command-line calculator in Python that supports basic arithmetic operations (addition, subtraction, multiplication, division) and also has the ability to store variables. The program should continue running until the user chooses to exit. It should use SQL to store the history of calculations and be able to di... | 709 | [
-0.09141600534969244,
-0.033264993376505715,
0.04448471796944451,
-0.02819256379012357,
-0.054971797197380885,
-0.0044513454857731515,
0.034482075473792576,
0.033851585015531954,
0.013199290698079635,
-0.010049363222181813,
0.008063968900587123,
-0.04098836924239773,
0.0650293951734593,
0.... | false | Create a command-line calculator using Java that supports basic arithmetic operations (addition, subtraction, multiplication, and division) with the ability to store and recall previously calculated results. The calculator should use a SQLite database to store its history, allowing users to view past calculations and r... | 0.10529 |
0.04 | coding | Write a SQL query to retrieve the top 5 highest-paid employees from each department in a company database. The database has two tables: 'employees' and 'departments'. The 'employees' table contains columns for employee ID, name, salary, and department ID, while the 'departments' table contains columns for department ID... | 736 | [
-0.08000943828695518,
-0.034741595469733794,
0.0246765539634492,
-0.028678644516435474,
0.011042173978014302,
-0.008696405237646318,
0.0688180925091663,
-0.010738045002617932,
0.02279587654207472,
-0.004913596913679,
0.03632890069147419,
-0.010684920500190907,
0.04018068695643247,
0.008025... | false | Write a SQL query to retrieve the top three highest-paid employees from each department in a company database. The database schema includes tables for 'employees' and 'departments', where each employee is associated with a department ID. Use PostgreSQL as your SQL dialect. | 0.050132 |
0.04 | coding | Implement a simple banking system using C# where users can create accounts, deposit and withdraw money. The system should have the following features: | 753 | [
-0.07099669071481268,
-0.00616001167249558,
0.0027986234982117,
-0.02871615854779232,
-0.01993611727751786,
-0.00699352205201132,
0.07697210075807781,
0.018500653101273336,
0.00964259121753643,
0.0010326243420390813,
-0.003368957032469108,
-0.03175122131997476,
0.020216138022017983,
0.0285... | false | Implement a simple banking system using C# with the following features: | 0.051199 |
0.04 | coding | - Each account has an account number (unique identifier), account holder's name, and balance. | 753 | [
-0.049478131515052134,
-0.03418141550781297,
0.01626592290660512,
-0.016230610880410314,
-0.01637073394753675,
0.002371403352125302,
0.12187132796542632,
0.0026809800934297122,
0.026497093552206398,
-0.03450573182561733,
0.018297297598011922,
-0.06577031212992121,
0.006404943199820196,
0.0... | false | 2. Each account should have an account number, account holder's name, balance, and account type. | 0.070751 |
0.04 | coding | - Users can create new accounts with initial deposits. | 753 | [
-0.04872659488598269,
-0.034284117822590804,
0.009730782149707793,
-0.024953126368500098,
-0.01801684273616067,
0.026717872713223935,
0.07404044855687375,
0.03042190269996611,
0.040954641113422056,
-0.02230215583265147,
0.01798933146790062,
-0.046510937550625034,
0.011545762170376473,
0.02... | false | 2) User can deposit money into their account. | 0.122088 |
0.04 | coding | - Users can deposit money into existing accounts. | 753 | [
-0.0327691682341456,
-0.0314021543920893,
0.008174185285827718,
-0.019966385390784543,
0.0026189949156474506,
0.011053428504753016,
0.09643347887279657,
0.0008327852921883662,
0.02729485996642622,
-0.007130996945503366,
0.01661310272727388,
-0.039123976765313685,
0.004001652182309638,
0.01... | false | 2) User can deposit money into their account. | 0.061262 |
0.04 | coding | - Users can withdraw money from existing accounts if they have sufficient balance. | 753 | [
-0.04581335656820016,
-0.03494515060082631,
0.00010248061992706844,
-0.02690997371854612,
0.006847272681407953,
0.007319112799994004,
0.09009800310135162,
0.009094855201797905,
0.025258945646540083,
-0.011404103845777934,
0.015117667638632717,
-0.0399358323069232,
0.017771341701758044,
0.0... | false | 3) User can withdraw money from their account if they have sufficient balance. | 0.048249 |
0.04 | coding | - If a user tries to withdraw more money than their balance, the system should display an error message. | 753 | [
-0.05973701968619962,
-0.021012325548763637,
0.014790713906296044,
-0.03551584659717167,
0.009160651322389688,
-0.018503206697420418,
0.0874948975087226,
0.034173687906264065,
0.051162206552657186,
-0.019198170740311386,
0.04008335772610469,
-0.0362061167745443,
0.0015030233528360278,
0.03... | false | 5) System should prevent users from withdrawing more money than they have in their account. | 0.127097 |
0.04 | coding | Create a Powershell script that takes a list of numbers as input and returns the longest increasing subsequence. The script should handle duplicate numbers by treating them as distinct elements in the sequence, but it should not include any number more than once in the output. For example, given the input [1, 2, 3, 4, ... | 757 | [
-0.08000039992455008,
-0.05964191956889137,
0.03420598405969354,
-0.028051925606160006,
-0.024118091724566353,
0.03857592835992983,
0.001266104741475439,
-0.001855909577188488,
0.01266277851057657,
-0.016210868829295864,
0.03475087109156492,
-0.010464577854710883,
0.04166350854006282,
-0.0... | false | Write a script using powershell that takes a list of numbers as input and returns the longest increasing subsequence. The script should also handle invalid inputs, such as non-numeric characters or an empty list. Additionally, it should be able to handle large lists efficiently. | 0.074239 |
0.04 | coding | Write a Powershell script that takes a list of file paths as input and creates a backup of each file in the same directory with the current date appended to the filename. The script should also keep track of all backups made and store them in a JSON file named 'backup_log.json'. If a file has already been backed up on ... | 780 | [
-0.09839158411936244,
-0.009158477338151982,
0.03159957854923731,
-0.03177022663268957,
0.026634266193345742,
-0.011888464831165096,
0.004449208819270938,
-0.045836295752444134,
-0.0185996240921316,
-0.031886630768727664,
0.01877650458572217,
0.003730841128790061,
0.012404825412794423,
-0.... | false | Write a Powershell script that accepts a directory path as input and creates a backup of all files in the directory, saving them to a new directory with the current date appended to the original directory name. The script should also create a log file detailing which files were backed up and any errors encountered duri... | 0.069857 |
0.04 | coding | 1) User registration with unique account number and PIN | 781 | [
-0.037814026912632887,
-0.013783593061194746,
0.027479094186542083,
-0.022221867888990852,
-0.020041185488820144,
0.009218905650517317,
0.08168544264172158,
0.048404326414905524,
0.025072454313168662,
-0.032986021093978204,
0.023548849763066603,
-0.04414934845026971,
0.03008678983120372,
0... | false | 1) A user can create an account with a unique username and password. | 0.091757 |
0.04 | coding | 4) Check account balance | 781 | [
-0.038134644377280896,
-0.02122011895033363,
0.012392751452227973,
-0.03328299036988554,
0.015355155282478992,
0.0018372670124213743,
0.07976148007002748,
0.013877165033143117,
0.003505378377013696,
-0.04324729593942483,
0.02068916265532747,
-0.07423048214684518,
0.025063474743873757,
0.03... | false | 4) Check the balance of an existing account | 0.041994 |
0.04 | coding | 5) Transfer money between accounts | 781 | [
-0.012557721631562824,
-0.042342681217781314,
0.03278968093647948,
-0.014319385327522393,
-0.014888684187976115,
-0.011556522860697256,
0.0842106188929733,
0.02699432508036258,
0.00670831786709273,
-0.039227857981998626,
0.02997181735265098,
-0.0627979334907053,
0.00036197976254023165,
0.0... | false | 5) Transfer money from one account to another if sufficient funds are available in the source account | 0.073561 |
0.04 | coding | The system should store data in memory (no database required). Implement basic validation for user input, such as checking if the account exists before performing any operations. | 781 | [
-0.04975495532851161,
-0.0005327385200369264,
0.02004733327442213,
-0.06528360456192553,
-0.01402712626143441,
0.024457026496173734,
0.06126565914624445,
0.03758807887162036,
0.014283084440919231,
-0.009576573123993867,
-0.01476349788219248,
-0.030743705389287047,
0.05634752339875821,
0.05... | false | 5) All data should be stored in memory (no database required) | 0.151088 |
0.04 | coding | Write a simple chatbot in Python that responds to basic user queries. The chatbot should be able to understand and respond to the following commands: 'hello', 'goodbye', 'help', and 'joke'. For the 'joke' command, the chatbot should fetch a random joke from a predefined list of jokes. If the user enters an unknown comm... | 799 | [
-0.07707447344207846,
0.01997258272334424,
0.027977329831781722,
-0.028949546753599925,
0.0006777921619379538,
-0.035876589760417625,
0.08997700113067102,
0.038908391108439175,
-0.02866722563618562,
-0.008037161789745142,
0.012442967508256832,
-0.05925123228689151,
0.059358084785549485,
0.... | false | Create a simple chatbot using Python that responds to basic user queries. The chatbot should be able to understand and respond to the following commands: 'hello', 'goodbye', 'help', and 'joke'. If the user enters anything else, the chatbot should respond with an error message. The chatbot should also keep track of the ... | 0.04511 |
0.04 | coding | Create a simple text-based banking system using Python. The system should have the following features: user authentication, account creation, deposit, withdrawal, and balance inquiry. The data should be stored in memory (no database required). Implement basic security measures such as password hashing and salting. Ensu... | 808 | [
-0.03946009473928395,
-0.013141349300216473,
-0.02004045716984576,
-0.04081336970946852,
-0.035283735302837925,
-0.015788491107536724,
0.04796543129828158,
0.03498595423617978,
0.00221548149674838,
0.0006092736457217054,
-0.002831359266965945,
-0.05830109230582799,
0.040959516566615777,
0.... | false | Create a simple text-based banking system using Python. The system should have the following features: | 0.05588 |
0.04 | coding | Write a bash script that accepts a directory path as an argument and calculates the total size of all files in the directory, including subdirectories. The script should also identify the top 5 largest files by size and print their paths and sizes to the console. Ensure the script handles symbolic links correctly and d... | 813 | [
-0.08516274051941747,
-0.05232477436574361,
0.06551338298274596,
-0.04558275856460405,
0.025092735215456307,
-0.022052907500791016,
0.007708772451657845,
0.011394475196456047,
0.01771057108696707,
-0.024610069817661888,
0.02606163856461101,
-0.032350068585406795,
0.05825529151618374,
0.005... | false | Write a bash script that accepts a directory path as an argument and prints the total size of all files in the directory, including subdirectories. The output should be in human-readable format (e.g., KB, MB, GB). Additionally, the script should print the top 5 largest files in the directory and its subdirectories. | 0.040954 |
0.04 | coding | Create a simple banking system using Python and SQLite. The system should have two tables: 'accounts' and 'transactions'. The 'accounts' table should store account information such as account number, account holder's name, and balance. The 'transactions' table should store transaction history with fields for transactio... | 814 | [
-0.045158797293590826,
-0.03451573201590048,
0.028280936983896835,
-0.030397967366510317,
-0.03672672912366828,
-0.008188962237405846,
0.06433383557926224,
-0.003966772110051713,
0.02622367888581796,
0.0031590506865025905,
0.0002413541438079806,
-0.05603984902345996,
0.029797458003941946,
... | false | Create a simple banking system using SQL and Python. The system should have two tables: one for customers and one for transactions. The customer table should store the customer's name, email, and account balance. The transaction table should store the transaction ID, customer ID, transaction type (deposit or withdrawal... | 0.045403 |
0.04 | coding | Write a simple chatbot using Python that responds to basic user queries. The chatbot should be able to understand and respond to the following commands: 'hello', 'goodbye', 'what is your name', 'what can you do'. Additionally, it should have a default response for any unknown command. The chatbot should also keep track... | 821 | [
-0.06735642004740201,
0.031267034593827424,
0.033865305271427205,
-0.0498219113960179,
0.007191970212220136,
-0.027940421261095694,
0.08619428106604761,
0.03621011838238328,
-0.02410266459074448,
0.0078111511554429,
0.005748730871128974,
-0.03830654777189411,
0.05042597464610846,
0.0343278... | false | Create a simple chatbot using Python that responds to basic user queries. The chatbot should be able to understand and respond to the following commands: 'hello', 'goodbye', 'help', and 'joke'. If the user enters anything else, the chatbot should respond with an error message. The chatbot should also keep track of the ... | 0.053323 |
0.04 | coding | Create a simple text-based adventure game using Python. The game should have the following features: | 822 | [
-0.07440189489138714,
-0.0020362894002457356,
0.03223598892172159,
-0.03620211523118379,
-0.02030410287212373,
0.011132174312698133,
0.013289604324085524,
0.03376221789693202,
-0.01976967090119378,
-0.004745655821941201,
0.0050056200646936425,
-0.05756677278574647,
0.03795874594442019,
0.0... | false | Create a command-line Hangman game using Python. The game should randomly select a word from a predefined list, and the player has to guess the word by suggesting letters. For each incorrect guess, draw a part of a hangman's gallows. If the player guesses the word correctly before the gallows is complete, they win. Imp... | 0.207096 |
0.04 | coding | - A player that can move between rooms in a house (at least 5 rooms). | 822 | [
-0.027076434386796255,
-0.03258795668858759,
0.05108634763079888,
-0.043308157542169025,
0.013299494071437816,
0.030062783556950124,
0.0800559969020039,
0.01579714382698422,
0.022227721323889026,
0.014963020594196885,
0.032072044959629474,
-0.05781111875361823,
-0.015140314610361163,
0.031... | false | 5) A user can transfer money to another user's account. | 0.304026 |
0.04 | coding | - Each room should have a description and at least one item that the player can pick up. | 822 | [
-0.04378212971466687,
0.005218212938271029,
0.05955075449593076,
-0.058936677645504046,
0.022847387851448294,
0.03413200365235197,
0.06590405081090436,
0.019822936428517332,
-0.014221190420001056,
0.004530590941394841,
-0.016777833858896602,
-0.03269856410510437,
0.003470498123771965,
0.04... | false | Create a command-line Hangman game using Python that supports multiple rounds and keeps track of the player's score. The game should randomly select a word from a predefined list, and the player has to guess the word by suggesting letters. After each round, the game should display the current score and ask if the playe... | 0.310028 |
0.04 | coding | - The player's inventory should be displayed after each action. | 822 | [
-0.051037099628857066,
0.011515462955809248,
0.07743387167304983,
-0.057926230102392146,
0.032889017565641186,
0.04439235935892765,
0.08270784676304616,
0.01754735668979338,
0.03183834420856092,
-0.005237507294306391,
0.01709856168340824,
-0.037271791515314893,
-0.000016558472288717954,
0.... | false | Create a command-line Hangman game using Python that supports multiple rounds and keeps track of the player's score. The game should randomly select a word from a predefined list, and the player has to guess the word by suggesting letters. After each round, the game should display the current score and ask if the playe... | 0.275649 |
0.04 | coding | - The game should end when the player reaches a certain room or picks up a specific item. | 822 | [
-0.05390248491444776,
0.002199759107034457,
0.06669159571888947,
-0.058901764585442426,
0.033669767710492175,
0.02504480477415932,
0.08412357651733783,
0.018999744910554207,
0.04241437951333388,
-0.01357680383223753,
0.01601664065489835,
-0.03268841082172912,
0.0036153358065039985,
0.06821... | false | Create a command-line Hangman game using Python that supports multiple rounds and keeps track of the player's score. The game should randomly select a word from a predefined list, and the player has to guess the word by suggesting letters. After each round, the game should display the current score and ask if the playe... | 0.28444 |
0.04 | coding | Create a simple banking system using C. The system should have the following features: account creation, deposit, withdrawal, and balance inquiry. Each account should have a unique ID, name, and initial balance. The system should store data in memory and not use any external storage. Implement basic error handling for ... | 827 | [
-0.035271463908534195,
-0.005088777477238117,
0.006410241718515948,
-0.043055554432066635,
-0.02518883959037861,
0.0017571568256059776,
0.07521828610307678,
0.03437176164566722,
0.012290107366098235,
-0.003982041285686869,
0.023309417695920754,
-0.045387355067291496,
0.029245751290853637,
... | false | Implement a simple banking system using C. The system should have the following features: account creation, deposit, withdrawal, and balance inquiry. Each account should have a unique ID, name, and initial balance. The system should also keep track of all transactions (deposits and withdrawals) for each account. Use st... | 0.046405 |
0.04 | coding | Implement a hash table in C++ using separate chaining for collision resolution. The hash table should support insertion, deletion, and search operations. It should also handle resizing when the load factor exceeds a certain threshold (e.g., 0.7). Include example usage to demonstrate its functionality. | 852 | [
-0.09277622489169525,
-0.02542001015073546,
0.011592720744859617,
-0.06478199648634614,
-0.0083205470505588,
0.021581763734545695,
0.01996082671064273,
0.0174231796282969,
0.026375364505350284,
-0.007691373969083233,
0.04485524127835814,
-0.02280176083056009,
0.06680321219915658,
0.0431387... | false | Implement a binary search algorithm in C++ to find an element in a sorted array. The function should take the array, its size, and the target element as input and return the index of the target element if found, or -1 otherwise. | 0.272087 |
0.04 | coding | Write a simple chatbot in JavaScript that responds to basic user queries using natural language processing (NLP). The chatbot should be able to understand and respond to the following commands: 'hello', 'goodbye', 'what is your name', and 'help'. The chatbot should also have a default response for any unrecognized inpu... | 860 | [
-0.05443265068467484,
0.00491636785311637,
0.04279695277815196,
-0.05457901733456957,
0.013415923729720378,
-0.022442975103273186,
0.08402394907886858,
0.03703624232517266,
-0.02598132832851329,
-0.022790410563588322,
0.014130773381411619,
-0.017585720154217124,
0.027020548306571513,
0.035... | false | Create a simple chatbot using Node.js that responds to basic user queries. The chatbot should be able to understand and respond to the following commands: 'hello', 'goodbye', 'help', and 'joke'. For the 'joke' command, use a predefined list of jokes and select one at random. Implement a simple natural language processi... | 0.075107 |
0.04 | coding | Create a command-line Hangman game using Python that allows two players to play against each other. The word to be guessed should be randomly selected from a predefined list of words, and the game should keep track of the number of attempts made by the guessing player. Implement a scoring system where the guessing play... | 862 | [
-0.0868838149433161,
-0.010337681768619121,
0.040654947200098615,
-0.025825597529039564,
-0.00652484739609138,
-0.00840467439325656,
0.08870458771118778,
0.031036306016968322,
0.029789354577614415,
-0.016801764095958682,
-0.004580151923177469,
-0.032279198752805986,
0.01889807608019267,
0.... | false | Create a command-line Hangman game using Python that supports multiple rounds and keeps track of the player's score. The game should randomly select a word from a predefined list, and the player has to guess the word by suggesting letters. After each round, the game should display the current score and ask if the playe... | 0.052284 |
0.04 | coding | Write a bash script that takes two command line arguments: the path to a directory and a string. The script should search for all files in the specified directory (and its subdirectories) that contain the given string, and print their paths. If no files are found, it should print a message indicating so. Additionally, ... | 877 | [
-0.09056813851744783,
-0.017865974134199825,
0.02311421889147547,
-0.013303242384135798,
0.023536772974481854,
-0.0410489060039925,
0.02415702075948538,
-0.01005058810634249,
-0.01673588499077921,
-0.04247799811725174,
0.029434179356891625,
-0.013908250006802883,
0.05731033430561707,
-0.01... | false | Write a bash script that takes two command line arguments: the path to a directory and a string. The script should find all files in the specified directory (and its subdirectories) that contain the given string, and print their paths. If no files are found, it should print a message indicating so. Use grep for searchi... | 0.043679 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.