text
stringlengths
0
173k
DROPDOWN: 'dropdown',
TOGGLE: 'toggle',
COLOR: 'color',
CAROUSEL: 'carousel',
IMAGE: 'image',
};
const OVERALL_INPUT = 'by_default';
const langs = [
"
<_EOF_>
#include &lt;stdlib.h&gt;
#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 &lt; limit:
"
<_EOF_>
import requests
import os
def get_html(url):
fname = &#39;./{}.html&#39;.format(hashlib.sha256(url.encode(&#39;utf-8&#39;)).hexdigest())
if not os.path.exists(fname):
resp = requests."
<_EOF_>
#include &lt;unistd.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;sys/wait.h&gt;
#include &lt;sys/types.h&gt;
//reading the user input.
char *read_line(){
char *line = NULL;
ssi"
<_EOF_>
const months = [&#39;March&#39;, &#39;Jan&#39;, &#39;Feb&#39;, &#39;Dec&#39;];
months.sort();
c"
<_EOF_>
// [...] opsional parameter
const students = [
{
name: &#39;James&#39;,
score: 88,
},
{
name: &#39;Thomas&#39;,
"
<_EOF_>
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/wait.h&gt;
#include &lt;string.h&gt;
#define UNUSED(x) (void)(x)
void execute_pipeline(
char *commands[],
char **commands_arg"
<_EOF_>
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/stat.h&gt;
#include &lt;sys/wait.h&gt;
#include &lt;fcntl.h&gt;
#define FIFO_FILENAME &quot;./testfifo"
<_EOF_>
#include &lt;stdlib.h&gt;
#include &lt;signal.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/wait.h&gt;
void handle_child_signal(int sig) {
printf(&quot;Child (PID=%d): Alarm went "
<_EOF_>
#include &lt;stdlib.h&gt;
#include &lt;signal.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/wait.h&gt;
void signal_handler(int signo){