conversations
listlengths
2
2
source
stringclasses
1 value
score
float64
1
1
[ { "from": "human", "value": "[PATHFINDERRR FORMAT] Create a common object in JavaScript that represents a library. This object should have properties like name, location, and opening hours and also have methods that allow you to add books, remove books and search for books by title or author. PATHFINDERRR F...
PATHFINDERRR Dataset
1
[ { "from": "human", "value": "[PATHFINDERRR FORMAT] Write a Bash script that prints out the day of the week and runs a specific command based on that day. PATHFINDERRR FORMAT" }, { "from": "gpt", "value": "```python\n# <GOAL>\n# Task: Determine which option is NOT one of the four basic principles...
PATHFINDERRR Dataset
1
[ { "from": "human", "value": "[PATHFINDERRR FORMAT] Given a list of n integers. Write a program that not only displays the list in reverse order but also calculates and displays the sum of elements at odd positions and even positions separately. If the list is empty, the program should also handle this case ...
PATHFINDERRR Dataset
1
[ { "from": "human", "value": "[PATHFINDERRR FORMAT] Given an erroneous code and the Elasticsearch data schema, correct the code and then write a query to search for all the records where the `location` field contains \"Los Angeles\" and the `category` field is \"events\". Additionally, make sure your query r...
PATHFINDERRR Dataset
1
[ { "from": "human", "value": "[PATHFINDERRR FORMAT] You need to build a function that takes a binary tree as an input and returns a list of all the leaf nodes from the tree. The list should be ordered from left to right. PATHFINDERRR FORMAT" }, { "from": "gpt", "value": "```python\n# <GOAL>\n# Ta...
PATHFINDERRR Dataset
1