text
stringlengths 0
173k
|
---|
DROPDOWN: 'dropdown', |
TOGGLE: 'toggle', |
COLOR: 'color', |
CAROUSEL: 'carousel', |
IMAGE: 'image', |
}; |
const OVERALL_INPUT = 'by_default'; |
const langs = [ |
" |
<_EOF_> |
#include <stdlib.h> |
#define MAX_MACHINES 10 |
#define MAX_TASKS 10 |
// function prototypes |
void min_min(int n_machines, int n_tasks, int task_times[MAX_MACHINES][MAX_TASKS]); |
" |
<_EOF_> |
def retry(on: list, limit: int): |
def decorator_retry(func): |
@functools.wraps(func) |
def wrapper(*args, **kwargs): |
i = 0 |
while i < limit: |
" |
<_EOF_> |
import requests |
import os |
def get_html(url): |
fname = './{}.html'.format(hashlib.sha256(url.encode('utf-8')).hexdigest()) |
if not os.path.exists(fname): |
resp = requests." |
<_EOF_> |
#include <unistd.h> |
#include <stdlib.h> |
#include <string.h> |
#include <sys/wait.h> |
#include <sys/types.h> |
//reading the user input. |
char *read_line(){ |
char *line = NULL; |
ssi" |
<_EOF_> |
const months = ['March', 'Jan', 'Feb', 'Dec']; |
months.sort(); |
c" |
<_EOF_> |
// [...] opsional parameter |
const students = [ |
{ |
name: 'James', |
score: 88, |
}, |
{ |
name: 'Thomas', |
" |
<_EOF_> |
#include <stdlib.h> |
#include <unistd.h> |
#include <sys/wait.h> |
#include <string.h> |
#define UNUSED(x) (void)(x) |
void execute_pipeline( |
char *commands[], |
char **commands_arg" |
<_EOF_> |
#include <stdlib.h> |
#include <string.h> |
#include <unistd.h> |
#include <sys/types.h> |
#include <sys/stat.h> |
#include <sys/wait.h> |
#include <fcntl.h> |
#define FIFO_FILENAME "./testfifo" |
<_EOF_> |
#include <stdlib.h> |
#include <signal.h> |
#include <unistd.h> |
#include <sys/types.h> |
#include <sys/wait.h> |
void handle_child_signal(int sig) { |
printf("Child (PID=%d): Alarm went " |
<_EOF_> |
#include <stdlib.h> |
#include <signal.h> |
#include <unistd.h> |
#include <sys/types.h> |
#include <sys/wait.h> |
void signal_handler(int signo){ |