messages listlengths 2 2 | source stringclasses 5
values |
|---|---|
[
{
"role": "user",
"content": "Here's my \"Bootstrap configuration\":\n\n<div class=\"container\">\n <div class=\"row\">\n <div class=\"col-12 col-lg-3\"> \n <div class=\"card mb-3 cardtrans\">\n// Here goes card-body / header and all the other stuff inside it. \n </div>\n </div... | magicoder |
[
{
"role": "user",
"content": "[RM-11742] Add tests for argparse purge\n\nSigned-off-by: Travis Rhoden <e5e44d6dbac12e32e01c3bb8b67940d8b42e225b@redhat.com>\n\n(Language: Python)"
},
{
"role": "assistant",
"content": "import pytest\n\nfrom ceph_deploy.cli import get_parser\n\n\nclass TestParserPu... | commitpackft |
[
{
"role": "user",
"content": "Create a Machine Learning model in Python that takes data points from a spreadsheet and classifies them as either a positive or a negative result The spreadsheet contains the following columns: City, Temperature, Hours of Sunlight, Amount of Rain.\n\nThe data points are for the... | python25k |
[
{
"role": "user",
"content": "Add tests around filename function. Leaving bug.\n\n(Language: Go)\n\npackage main\n\nimport (\n\t\"testing\"\n\n\t\"github.com/stretchr/testify/assert\"\n)\n\nfunc TestUnderscoreCaseName(t *testing.T) {\n\tassert.Equal(t, \"notify_event\", underscoreCaseName(\"NotifyEvent\"))\... | commitpackft |
[
{
"role": "user",
"content": "How has the adoption of the uniform evidence law influenced the Australian legal system, and what specific examples can be provided to demonstrate the effects? In which ways has the implementation of this law contributed to greater consistency, efficiency, and access to justice... | wizardlm |
[
{
"role": "user",
"content": "Provide the names of five countries that are currently in a recession and also mention the specific industries that are most affected by the economic downturn in each country."
},
{
"role": "assistant",
"content": "Here are five countries that are currently in a rec... | wizardlm |
[
{
"role": "user",
"content": "Create a dictionary containing the key-value pair of a given list of words.\nlist_of_words = [\"earth\", \"mars\", \"jupiter\"]"
},
{
"role": "assistant",
"content": "You can solve this problem using python. The keys of the dictionary will be words from the given li... | magicoder |
[
{
"role": "user",
"content": "test: Create stub of fit testing\n\n(Language: Python)"
},
{
"role": "assistant",
"content": "\"\"\"\nThis module contains tests of code from the file named\n`../forecastonishing/selection/on_the_fly_selector.py`.\n\n@author: Nikolay Lysenko\n\"\"\"\n\n\nimport unit... | commitpackft |
[
{
"role": "user",
"content": "Change `twitter-oauth` => to `weibo-oauth`\n\nSeemingly copy-paste residue in the PR, but this is the Weibo package\nit should be Weibo, not Twitter.\n\n(Language: JavaScript)\n\nPackage.describe({\n summary: \"Login service for Sina Weibo accounts\",\n version: \"1.1.0\"\n})... | commitpackft |
[
{
"role": "user",
"content": "Output directions to get to 10 Downing Street."
},
{
"role": "assistant",
"content": "To get to 10 Downing Street, you should start at Westminster tube station. Exit the station and head east on Bridge Street until you come to Parliament Square. Follow the footpath ... | wizardlm |
[
{
"role": "user",
"content": "The local farmer is in a dilemma to transport a fox, a chicken, and some grain from one side of the river to the other side. However, the challenge is that the boat can hold only one item at a time, and the river is too dangerous to cross multiple times. Additionally, the fox c... | wizardlm |
[
{
"role": "user",
"content": "Develop a Python script that can identify and separate all email addresses present in a webpage's HTML content."
},
{
"role": "assistant",
"content": "To solve this task, the program would need to download the HTML content of a target webpage, then pick out and sepa... | magicoder |
[
{
"role": "user",
"content": "Identify the grammatical errors in the following sentence: \"The company offered the new employee a $5000 sign-on bonus.\" Provide a corrected version of the sentence that follows proper grammar rules while still conveying the same meaning. Your corrected version must include a... | wizardlm |
[
{
"role": "user",
"content": "Implement a custom class in Python that represents a list. This class should contain methods that allow adding, removing elements, and accessing elements by their index. The class should also have a method that logs an error if an unknown index is attempted to be accessed from ... | magicoder |
[
{
"role": "user",
"content": "In what ways do various cultural elements interplay to impact the shaping, depiction, and comprehension of artistic creations, in diverse societies, taking into account numerous aspects like social norms, gender divisions, religious convictions, and political dogmas? How does c... | wizardlm |
[
{
"role": "user",
"content": "Condense the following Java code segment while ensuring it furnishes the identical reciprocal output, also significantly reducing its total count of lines. \nint num1 = 9;\nint num2 = 3;\nif (num1 + num2 == 12) {\n System.out.println(\"The sum of num1 and num2 is 12\");\n}"
... | magicoder |
[
{
"role": "user",
"content": "Imagine you are a taxi driver in a busy city. You start your workday at 8 AM and end at 6 PM, making multiple trips throughout the day. Here is a breakdown of the time you spend on different tasks during your workday:\n- 25% of your time is spent waiting for passengers\n- 30% o... | wizardlm |
[
{
"role": "user",
"content": "Use standalone version for months in minicalendar\n\nCALWEB-2393\n\n(Language: TypeScript)\n\nimport React, { useMemo, useCallback } from 'react';\nimport { c } from 'ttag';\nimport { getFormattedMonths, getFormattedWeekdays, getWeekStartsOn } from 'proton-shared/lib/date/date'... | commitpackft |
[
{
"role": "user",
"content": "Can you describe the different stages that need to be followed to ensure optimal network visibility and the creation of a sustainable network visibility framework? Please provide a comprehensive guide detailing each intricate step involved in the process."
},
{
"role": ... | wizardlm |
[
{
"role": "user",
"content": "Please list out all the hex values in the given text. However, to make this prompt more challenging, please also provide the decimal equivalent of each hex value in ascending order. Additionally, please explain why the DLL Morphing was disabled for each hex value and what other... | wizardlm |
[
{
"role": "user",
"content": "Add prototype for heap_getattr() to quiet compiler\n\n(Language: C)"
},
{
"role": "assistant",
"content": "/*-------------------------------------------------------------------------\n *\n * heaptuple.h--\n * \n *\n *\n * Copyright (c) 1994, Regents of the Univer... | commitpackft |
[
{
"role": "user",
"content": "Create an autohotkey script that generates a context menu with dynamic options based on the current application's window title. The context menu should only appear when the current application's window is active, and should disappear once the window loses focus or is closed."
... | wizardlm |
[
{
"role": "user",
"content": "[Refactor] Use fetchAccount instead of receivedAccount\n\n(Language: JavaScript)\n\nimport { receivedAccount } from './account';\nimport { fetchHomeTimeline, receivedHomeTimeline } from './timeline';\nimport { onError } from './error-handler';\nimport { TwitterAction } from '..... | commitpackft |
[
{
"role": "user",
"content": "Create a database table with 3 columns: id, name and size."
},
{
"role": "assistant",
"content": "CREATE TABLE my_database (id INTEGER PRIMARY KEY, name VARCHAR(255), size INTEGER);"
}
] | codealpaca |
[
{
"role": "user",
"content": "Rewrite Alert to not expose close function\n\n(Language: JavaScript)\n\n'use strict';\n\n(function(angular) {\n var app = angular.module('ov.alert', []);\n\n /**\n * Defines a generic alert management system to display one or several messages.\n */\n function AlertServic... | commitpackft |
[
{
"role": "user",
"content": "I need to measure metrics for a single commit throughout its lifecycle from commit to artifact build process and need to calculate time diffrence after commiting the code into master,raising pull request against master to successful artifact build via CI pipeline.\nThis will in... | magicoder |
[
{
"role": "user",
"content": "How can we enhance the dynamism of an HTML page using C# code? Could you demonstrate a detailed example of creating a dynamically generated page that encompasses a header, body, and footer with a title, navigation menu, and diverse contents in the body section utilizing C# code... | wizardlm |
[
{
"role": "user",
"content": "write this code in c#, please:\ndef convert_to_lowercase_remove_digits_and_special_chars(text):\n\"\"\"\nconvert_to_lowercase_remove_digits_and_special_chars is a function that accepts a string and returns a string that has been converted to lowercase, devoid of digits and any ... | magicoder |
[
{
"role": "user",
"content": "Can you elaborate on the various types of bill of lading used in the shipping industry, including the straight bill of lading, order bill of lading, and bearer bill of lading, and provide a comprehensive explanation of their legal contents and purposes? Your answer should entai... | wizardlm |
[
{
"role": "user",
"content": "Fix a lexical token ordering issue\n\n(Language: C)\n\n/* \n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/.\n */\n\n#ifnde... | commitpackft |
[
{
"role": "user",
"content": "What MATLAB code could you write to automatically assign numerical values to book titles based on the total number of vowels in the title? For instance, \"To Kill a Mockingbird\" would have a value of 7 since it has 3 o's, 1 i, and 3 o's. Please provide the MATLAB code you woul... | wizardlm |
[
{
"role": "user",
"content": "Could you provide me with an illustrative code snippet detailing the steps to download a file, specifically from this web address https://example-files.com/file.xlsx, by employing the functionality of the requests library in Python, including any necessary error handling provis... | magicoder |
[
{
"role": "user",
"content": "Can you provide me with a visual guide on how to create a 3D origami swan using modular paper folding techniques? \nPlease refer to the following Excel table for a step-by-step guide:\n[Begin Excel Table]\n| Step | Instructions ... | wizardlm |
[
{
"role": "user",
"content": "Design an algorithmic process utilizing the Vigenère Cipher cryptographic approach, using:\nPlaintext: \"Call Me Ishmael\"\nKeyword: \"MobyD\""
},
{
"role": "assistant",
"content": "In Python, you could create a function that generates the encrypted text (ciphertext... | magicoder |
[
{
"role": "user",
"content": "Write and edit a Python function to filter a list of strings, removing any string at least 4 characters in length that contains the letter 'k' my_list = [\"cat\", \"dog\", \"monkey\", \"kite\"]"
},
{
"role": "assistant",
"content": "```python\ndef filter_list(list):... | python25k |
[
{
"role": "user",
"content": "How do journalists balance reporting on sensitive topics without facing backlash from their audience or the subjects they are reporting on?"
},
{
"role": "assistant",
"content": "Journalists face a tough balancing act when it comes to reporting on sensitive topics. ... | wizardlm |
[
{
"role": "user",
"content": "The function needs to convert the input words into Pig Latin. The input is a list of strings where each string contains multiple words separated by a space. The function should return a list of strings where each string contains the pig Latin equivalent of the words, maintainin... | magicoder |
[
{
"role": "user",
"content": "Expand the focus of your research paper by investigating the complex relationship between temperature variations and the reproductive health as well as genetic diversity of honey bee colonies. Your paper should incorporate a comprehensive analysis of both field studies and lab ... | wizardlm |
[
{
"role": "user",
"content": "Add package test suite for comparators\n\ngit-svn-id: cb61607abf5ac23ab48a85ccf5b9d9390a6837ee@611447 13f79535-47bb-0310-9956-ffa450edef68\n\n(Language: Java)"
},
{
"role": "assistant",
"content": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or... | commitpackft |
[
{
"role": "user",
"content": "Write a Pandas code snippet to filter the table based on a given condition.\nTable: df\nCondition: df['Age'] > 25"
},
{
"role": "assistant",
"content": "filtered_df = df[df['Age'] > 25]"
}
] | codealpaca |
[
{
"role": "user",
"content": "Generate a Python code for replicating an output after switching the contents of two strings Given two strings, ?str1? and ?str2?, swap the contents of the two strings.\n\nFor example, if the two strings are ?Hello? and ?World?, the output after swtiching the contents should be... | python25k |
[
{
"role": "user",
"content": "As a bioinformatician, I am required to develop a machine learning model that can predict genetic mutations with a high degree of precision while ensuring its robustness and adaptability to the ever-changing nature of the genome. The challenge is to analyze extensive data sets ... | wizardlm |
[
{
"role": "user",
"content": "What are some possible marketing strategies to promote a product launch within a week? Please provide a detailed plan in [Mark down] format that includes the following:\n- Proposed marketing strategy for the product launch\n- Steps to be taken by Group A and Group B to ensure s... | wizardlm |
[
{
"role": "user",
"content": "Document why position can be nil.\n\n(Language: C)\n\n//\n// OCTCommitComment.h\n// OctoKit\n//\n// Created by Justin Spahr-Summers on 2012-10-02.\n// Copyright (c) 2012 GitHub. All rights reserved.\n//\n\n#import \"OCTObject.h\"\n\n// A single comment on a commit.\n@interf... | commitpackft |
[
{
"role": "user",
"content": "Detect unusual network traffic\n\nDetecting unusual network traffic..."
},
{
"role": "assistant",
"content": "```python\nimport scapy.all as scapy\ndef packet_callback(packet):\n if packet[scapy.TCP].dport > 8000:\n print(f'Unusual traffic detected: {packe... | python25k |
[
{
"role": "user",
"content": "Devise a set of five unique and immersive escape room challenges that are centered around mathematical concepts for second-grade students. Each challenge must require a collaborative effort from students to solve mathematical puzzles and arrive at the solution. Each challenge s... | wizardlm |
[
{
"role": "user",
"content": "What shell command can be used to check the disk space usage on a Linux machine? Choose the appropriate command to fill in the blank in the following sentence: The system administrator needs to check the disk space usage on the server, so she runs the _________ command."
},
... | wizardlm |
[
{
"role": "user",
"content": "Move MonteCarlo move to choose_move\n\n(Language: Python)\n\nimport random\nfrom collections import defaultdict, Counter\nfrom . import Player\nfrom ..util import utility\n\n\nclass MonteCarlo(Player):\n\n name = 'MonteCarlo'\n\n def __init__(self, n_sims=1000):\n ... | commitpackft |
[
{
"role": "user",
"content": "Add additional test to ensure the wrong methods are not implemented.\n\n(Language: Java)\n\npackage com.md_5.fondue.protocol;\n\nimport java.lang.annotation.Annotation;\nimport java.lang.reflect.Method;\nimport java.util.Arrays;\nimport org.junit.Test;\nimport static org.junit.... | commitpackft |
[
{
"role": "user",
"content": "How can we use R to calculate the probability of two people in a group of 150 having the exact same favorite song? We can use the following formula:\nP = 1 - (365! / ((365-150)! * 365^150))\nAnd we can implement it in R with the following code:\nfactorial <- function(n) {\n if... | wizardlm |
[
{
"role": "user",
"content": "Imagine if this SVG was in a fairy tale forest. How can we add a touch of whimsy and magic to it?\n<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16C2 8.... | magicoder |
[
{
"role": "user",
"content": "Create a list of 5 interview questions to ask a team leader."
},
{
"role": "assistant",
"content": "1. What motivated you to become a team leader and what do you enjoy most about the role?\n2. How do you handle conflicts within your team, and can you describe a spec... | wizardlm |
[
{
"role": "user",
"content": "Enhance the sophistication of the initial computational task. Beyond simply calculating the derivative and integral of a polynomial, augment the function to include a validity check for the polynomial and the constant `C`. If these inputs are found to be invalid, the function s... | magicoder |
[
{
"role": "user",
"content": ":tiger: Add a test for saving a setting.\n\n(Language: JavaScript)\n\nimport {assert} from 'chai';\nimport fs from 'fs';\nimport {contains, dissoc, merge} from 'ramda';\n\nimport {getSetting} from '../../backend/settings.js';\n\ndescribe('Settings', function() {\n beforeEach... | commitpackft |
[
{
"role": "user",
"content": "Write a Python script to check if two string variables are anagrams or not."
},
{
"role": "assistant",
"content": "```python\ndef is_anagram(str1, str2):\n # removing all whitespace from strings \n str1 = ''.join(str1.split())\n str2 = ''.join(str2.split())... | python25k |
[
{
"role": "user",
"content": "Construct a Python program to recursively count down from a given number? num = 5"
},
{
"role": "assistant",
"content": "```python\ndef countdown(num):\n if num == 0:\n return\n else:\n print(num)\n num -= 1\n countdown(num)\n\ncoun... | python25k |
[
{
"role": "user",
"content": "react: Add a better package comment\n\nChange-Id: I427bcc0e8554323def325bf2d15707963299e45e\n\n(Language: Go)\n\n/*\nCopyright 2013 Google Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.... | commitpackft |
[
{
"role": "user",
"content": "Write the code to create a Python script that fetches data from a REST API\n\nWriting the code to create a Python script that fetches data from a REST API..."
},
{
"role": "assistant",
"content": "```python\nimport requests\nresponse = requests.get('https://api.exam... | python25k |
[
{
"role": "user",
"content": "Set transport name as public\n\n(Language: Python)\n\nclass BaseTransport(object):\n \"\"\"Base transport class.\"\"\"\n\n def __init__(self, name, data_format_class, data_format_options,\n handler_class, handler_options):\n self._name = name\n ... | commitpackft |
[
{
"role": "user",
"content": "Add initial google trends analysis script\n\n(Language: TypeScript)"
},
{
"role": "assistant",
"content": "import * as wpdb from '../articles/wpdb'\nimport * as fs from 'fs-extra'\nconst googleTrends = require('google-trends-api')\n\nasync function main() {\n /*a... | commitpackft |
[
{
"role": "user",
"content": "Add JMS test command handler, 1st try\n\n(Language: Java)"
},
{
"role": "assistant",
"content": "package org.jeecqrs.commands.bus.jms;\n\nimport javax.annotation.PostConstruct;\nimport javax.annotation.Resource;\nimport javax.ejb.ActivationConfigProperty;\nimport ja... | commitpackft |
[
{
"role": "user",
"content": "Revert \"Fixed ElasticSearchInfoTest after upgrading to 7.3.1\"\n\nThis reverts commit e0ef226b40f560993e7597cd7cd0b12ce66ea877.\n\n(Language: Java)\n\n/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE ... | commitpackft |
[
{
"role": "user",
"content": "Can you explain the basic syntax of Pine Script?"
},
{
"role": "assistant",
"content": "Pine Script is a domain-specific language developed by TradingView for creating custom technical analysis tools. It allows users to create custom studies and strategies in the Tr... | magicoder |
[
{
"role": "user",
"content": "Write a function in JavaScript that takes a given multi-dimensional array and prints the elements in reverse order. Further, the elements of the inner arrays should also be reversed. If there are any nested arrays within these arrays, those should also be handled and their elem... | magicoder |
[
{
"role": "user",
"content": "Convert this program into an AsyncIO based one, ensuring that if the list of numbers contains any non-integer values, the function raises a ValueError. \nimport time\n\ndef calculate_sum(numbers):\n result = 0\n for num in numbers:\n result += num\n time.sle... | magicoder |
[
{
"role": "user",
"content": "As a C# developer who has produced and consumed messages through the Apache Kafka messaging system, I must now transition to RabbitMQ while also maintaining my current work productivity. In addition to a comprehensive explanation of the differences between the two messaging sys... | wizardlm |
[
{
"role": "user",
"content": "Create a function that not only prints the Fibonacci sequence up to a given number n, but also returns the list of those numbers. Furthermore, the sequence should be generated using a recursive function.\n\nFor an added challenge, implement this with memoization to improve the ... | magicoder |
[
{
"role": "user",
"content": "Given a list as follows: my_list = [\"strawberry\", \"peach\", \"blueberry\", \"kiwi\"], instead of directly supplying the index value of 'kiwi', could you delineate your stepwise logical reasoning to retrieve the index of the named item, \"kiwi\"?"
},
{
"role": "assist... | magicoder |
[
{
"role": "user",
"content": "Create a class in Python to represent a rational number"
},
{
"role": "assistant",
"content": "```python\nclass Rational:\n def __init__(self, numerator, denominator):\n self.numerator = numerator\n self.denominator = denominator\n\n def __str__(... | python25k |
[
{
"role": "user",
"content": "Move LoadingMap type to proton-shared\n\n(Language: TypeScript)\n\nexport type SimpleMap<T> = { [key: string]: T | undefined };"
},
{
"role": "assistant",
"content": "export type SimpleMap<T> = { [key: string]: T | undefined };\n\nexport type LoadingMap = { [key: st... | commitpackft |
[
{
"role": "user",
"content": "Add test to ensure const-prop fails gracefully\n\n(Language: Rust)"
},
{
"role": "assistant",
"content": "#[inline(never)]\nfn read(_: usize) { }\n\nfn main() {\n const FOO: &i32 = &1;\n let x = FOO as *const i32 as usize;\n read(x);\n}\n\n// END RUST SOURC... | commitpackft |
[
{
"role": "user",
"content": "How can I modify my existing C# code to allow for sorting a table of data by multiple columns, with the option for the user to select ascending or descending order for each column, as well as the ability to filter the data based on specified conditions before sorting? Can the p... | wizardlm |
[
{
"role": "user",
"content": "Construct a Python program that computes the maximum of a given list of numbers [5, 6, 7, -2, 3]"
},
{
"role": "assistant",
"content": "```python\ndef max_number(num_list):\n max = num_list[0]\n for num in num_list:\n if num > max:\n max = num\n return max\n\nprin... | python25k |
[
{
"role": "user",
"content": "What is the mathematical formula to establish the relationship between the amount of volunteer work and the probability of being employed? Given the study's observation that individuals with a history of volunteering have a higher likelihood of securing employment, how can we f... | wizardlm |
[
{
"role": "user",
"content": "Test that fields come out in same order they are defined.\n\n(Language: Java)"
},
{
"role": "assistant",
"content": "package com.thoughtworks.xstream.converters.reflection;\n\nimport junit.framework.TestCase;\n\nimport java.util.Iterator;\nimport java.lang.reflect.F... | commitpackft |
[
{
"role": "user",
"content": "Design a complex distributed ETL data flow diagram using Apache Kafka, Apache Spark, and Apache Cassandra for processing, storing, and analyzing live tweet streams from multiple regions simultaneously. The data flow should include steps for real-time data ingestion, data cleans... | magicoder |
[
{
"role": "user",
"content": "Detail the process of setting up a multi-region, active-active architecture using Amazon Aurora and AWS Lambda, including the complexities of each step and potential obstacles that may arise."
},
{
"role": "assistant",
"content": "AWS Aurora and AWS Lambda can be us... | magicoder |
[
{
"role": "user",
"content": "Please provide a list of adjectives that are antonyms of the word \"easy\" and have at least two syllables. The list should exclude adjectives that start with the letters \"d\" or \"h\", and should be sorted alphabetically in ascending order. Additionally, please provide the ph... | wizardlm |
[
{
"role": "user",
"content": "Develop a comprehensive marketing strategy to promote the newly released Gastreex, a triple action gastric medication, targeting a wide range of demographics. Utilize various channels such as social media platforms, medical conferences, and in-store promotions to establish bran... | wizardlm |
[
{
"role": "user",
"content": "Improve error printing in example\n\n(Language: Rust)\n\nextern crate xswag_syntax_java as syntax;\nextern crate xswag_base as base;\n\nuse base::diag;\n\n// FIXME: import is currently wrong\nconst SRC: &'static str = \"\\\npackage yolo.swag;\n\nimport AlgoTools.IO;\nimport jav... | commitpackft |
[
{
"role": "user",
"content": "Amend the below C++ code to ensure that it outputs the sequence of integers 10, 11 and 12 in ascending linear pattern.\n#include <iostream>\n\nint main() \n{\n int i = 10;\n int j = 12;\n while (i < j)\n {\n std::cout << i << \" \";\n i++;\n }\n return 0;\n}"
},
... | magicoder |
[
{
"role": "user",
"content": "Determine the mean age of individuals who frequently purchase sporting equipment and apparel at a retail establishment specializing in sports goods, taking into account variables such as gender, geographic location, and purchasing history."
},
{
"role": "assistant",
... | wizardlm |
[
{
"role": "user",
"content": "Using a comparative analysis approach, identify two similarities and two differences between Virtual Reality and Augmented Reality while considering the following factors: \n1. The technological capabilities of each system \n2. The level of user immersion in each system \n3. Th... | wizardlm |
[
{
"role": "user",
"content": "Update mongoDB address by env.\n\n(Language: JavaScript)\n\nvar express = require('express'),\n app = express();\nvar scores = require('./server/routes/scores');\nvar users = require('./server/routes/users');\nvar chats = require('./server/routes/chats');\nvar rooms = requir... | commitpackft |
[
{
"role": "user",
"content": "I have code written in X, can you translate it to Perl?\nclass Palindrome:\n def is_palindrome(self, string: str, l: int, r: int) -> bool:\n if l >= r:\n return True\n if not string[l].isalnum():\n return self.is_palindrome(string, l + 1, ... | magicoder |
[
{
"role": "user",
"content": "How can a user enter 5 numbers in Python and save them in a list?"
},
{
"role": "assistant",
"content": "```python\n# create an empty list\nmy_nums = []\n\n# loop to enter and append numbers to the list\nfor i in range(5):\n num = int(input(f'Enter number {i+1}: ... | python25k |
[
{
"role": "user",
"content": "Write Python code to classify a text into positive or negative using scikit-learn.\n\nClassifying a text into positive or negative..."
},
{
"role": "assistant",
"content": "```python\nfrom sklearn.feature_extraction.text import CountVectorizer\nfrom sklearn.naive_ba... | python25k |
[
{
"role": "user",
"content": "Apart from the given text, I need you to find relevant hashtags to include in the three alternative Instagram posts. If you require clarification, please ask, and I will send the text."
},
{
"role": "assistant",
"content": "Sure, please send me the text so I can pro... | wizardlm |
[
{
"role": "user",
"content": "Fix the code: def analyze_sentiment(text):\n from textblob import TextBlob\n return TextBlob(text).sentiment.polarity"
},
{
"role": "assistant",
"content": "```python\nfrom textblob import TextBlob\n\ndef analyze_sentiment(text, lang='en'):\n if not text.st... | python25k |
[
{
"role": "user",
"content": "Add simple Python GUI to control volume.\n\n(Language: Python)"
},
{
"role": "assistant",
"content": "#!/usr/bin/env python\n\nfrom gi.repository import Gtk, GObject\nimport socket, os, sys\n\nclass Connection:\n def __init__(self, sock):\n self.sock = socket... | commitpackft |
[
{
"role": "user",
"content": "Anton and Bernhard are engaged in a strategic game involving a pile of $n$ stones. The rules dictate that the first player can remove any number of stones, excluding the entire pile, while subsequent turns allow each player to remove a maximum of twice the number of stones remo... | magicoder |
[
{
"role": "user",
"content": "As an ophthalmologist who aims to specialize in AI systems and prompt engineering, what steps can you take to broaden your expertise and knowledge in these fields and bring significant changes in your profession? Please present a comprehensive plan including specific training c... | wizardlm |
[
{
"role": "user",
"content": "Add normalising params from the regex input\n\n(Language: Python)\n\nimport re\nimport os\n\nimport pytvdbapi.api as tvdb\n\n\nclass Renamer:\n def __init__(self, api_key):\n self.tvdb = tvdb.TVDB(api_key)\n\n @staticmethod\n def flat_file_list(directory):\n ... | commitpackft |
[
{
"role": "user",
"content": "Can you adapt the scoreClickbaitTitle function to incorporate more niche buzzwords and subjects that are tailored to the interests of your target audience? Additionally, can you develop a system within the function that considers the title's length, readability, and ability to ... | wizardlm |
[
{
"role": "user",
"content": "Create a fake yes file that contains only 1 chapter for span test\n\n(Language: Java)"
},
{
"role": "assistant",
"content": "package yuku.alkitabconverter.paratest;\n\nimport java.io.RandomAccessFile;\nimport java.nio.charset.Charset;\nimport java.util.List;\n\nimpo... | commitpackft |
[
{
"role": "user",
"content": "Fix mongodb usage in tests\n\n(Language: JavaScript)\n\n/* jslint node:true */\n\n'use strict';\n\nexports = module.exports = {\n db: null,\n\n databaseUrl: process.env.CLOUDRON_MONGODB_URL || 'mongodb://127.0.0.1:27017/meemo',\n _clearDatabase: clearDatabase,\n att... | commitpackft |
[
{
"role": "user",
"content": "Fix notebook stop action in the dropdown\n\n(Language: TypeScript)\n\nimport * as React from 'react';\nimport { Dropdown, MenuItem } from 'react-bootstrap';\n\nimport '../actions.less';\n\nexport interface Props {\n onDelete: () => any;\n notebookActionCallback?: () => any;\n... | commitpackft |
[
{
"role": "user",
"content": "How can I modify the JavaScript code provided to store the answers and code in an SQL database? Specifically, I want to create a table with columns for the code (consisting of four numbers), the answers (four programming languages), and the key (the answers arranged in alphabet... | wizardlm |
[
{
"role": "user",
"content": "How to generate a CSV with python that contains the stock price of AAPL each minute for the last two years using a time-series analysis methodology?"
},
{
"role": "assistant",
"content": "To generate a CSV with python that contains the stock price of AAPL each minut... | wizardlm |
[
{
"role": "user",
"content": "Allow to react to the questions and printing 'chat specs'\n\n(Language: Go)\n\npackage reply\n\nimport (\n\t\"regexp\"\n\n\t\"github.com/tucnak/telebot\"\n\t\"github.com/asdine/storm\"\n\n\t\"github.com/focusshifter/muxgoob/registry\"\n)\n\ntype ReplyPlugin struct {\n}\n\nvar d... | commitpackft |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.