Skip to content

Commit

Permalink
Rename BFCL_v3_javascript.json to BFCL_v3_javascript.jsonl
Browse files Browse the repository at this point in the history
  • Loading branch information
divijmuthu authored Oct 26, 2024
1 parent b3171ab commit d9c27d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
{"id": "javascript_46", "question": [[{"role": "user", "content": "Help me update the property 'version' of an object named 'packageInfo' to '1.2.3', ensuring the update only occurs if the new value differs from the existing one or if 'version' is not already a property of the object?"}]], "function": [{"name": "vOe", "description": "This function updates a property of an object to a new value, but only if the new value is different from the existing one or if the property does not already exist on the object.", "parameters": {"type": "dict", "properties": {"r": {"type": "any", "description": "The object to update."}, "e": {"type": "String", "description": "The property of the object to update."}, "t": {"type": "any", "description": "The new value to assign to the property."}}, "required": ["r", "e", "t"]}}]}
{"id": "javascript_47", "question": [[{"role": "user", "content": "Help me calculate the difference in days between the dates '2023-04-01' and '2023-04-15' using a specific time unit of 'days'?"}]], "function": [{"name": "sTe", "description": "This function calculates the difference between two dates in a specified time unit.", "parameters": {"type": "dict", "properties": {"r": {"type": "String", "description": "The start date for the calculation."}, "e": {"type": "String", "description": "The end date for the calculation."}, "t": {"type": "String", "description": "The unit of time to calculate the difference in. For example, 'days', 'hours', etc."}}, "required": ["r", "e", "t"]}}]}
{"id": "javascript_48", "question": [[{"role": "user", "content": "Help me update the DOM event listeners from an old virtual node oldVirtualNode to a new one newVirtualNode, considering the new virtual node has a click event that needs to be normalized and updated?"}]], "function": [{"name": "updateDOMListeners", "description": "This function updates the DOM event listeners from an old virtual node to a new one, ensuring that any changes in event listeners are properly handled and applied to the target element.", "parameters": {"type": "dict", "properties": {"oldVnode": {"type": "any", "description": "The old virtual node, containing data about previous event listeners."}, "vnode": {"type": "any", "description": "The new virtual node, containing data about current event listeners."}}, "required": ["oldVnode", "vnode"]}}]}
{"id": "javascript_49", "question": [[{"role": "user", "content": "Help me determine the appropriate boolean string representation for the 'contenteditable' attribute when the value provided is 'plaintext-only', ensuring it's a valid value for contenteditable?"}]], "function": [{"name": "convertEnumeratedValue", "description": "This function converts a given key-value pair to a 'true' or 'false' string based on specific conditions. It specifically handles falsy values, the string 'false', and validates the 'contenteditable' attribute's value.", "parameters": {"type": "dict", "properties": {"key": {"type": "String", "description": "The attribute key to be evaluated."}, "value": {"type": "String", "description": "The value associated with the key."}}, "required": ["key", "value"]}}]}
{"id": "javascript_49", "question": [[{"role": "user", "content": "Help me determine the appropriate boolean string representation for the 'contenteditable' attribute when the value provided is 'plaintext-only', ensuring it's a valid value for contenteditable?"}]], "function": [{"name": "convertEnumeratedValue", "description": "This function converts a given key-value pair to a 'true' or 'false' string based on specific conditions. It specifically handles falsy values, the string 'false', and validates the 'contenteditable' attribute's value.", "parameters": {"type": "dict", "properties": {"key": {"type": "String", "description": "The attribute key to be evaluated."}, "value": {"type": "String", "description": "The value associated with the key."}}, "required": ["key", "value"]}}]}

0 comments on commit d9c27d6

Please sign in to comment.