benchmarks.wiki / Public workspace
BigCodeBench / BigCodeBench v0.1.0_hf 334f583e-d1ca-5c1c-adaa-fedb13ee93df
Problem
Answer published by the source. Consult the official source to check your work against its answer.
complete prompt
import subprocess
import platform
import time
def task_func(url):
"""
Open a web page in the default web browser in a background process.
Parameters:
url (str): The URL of the webpage to be opened.
Returns:
int: The return code of the subprocess.
Requirements:
- subprocess
- platform
- time
Example:
>>> task_func('https://www.google.com')
0
"""
instruct prompt
Open a web page in the default web browser in a background process.
The function should output with:
int: The return code of the subprocess.
You should write self-contained code starting with:
Code
import subprocess
import platform
import time
def task_func(url):
code prompt
Code
import subprocess
import platform
import time
def task_func(url):
entry point
task_func
libs
- subprocess
- platform
- time
Discussion
No discussion posts on this page yet. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.
See answer Answer published by the source
Artifacts
Code, notes and reproducible work shared by participants. Files are served from a separate origin.
No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.
Source and history
initial import