question stringclasses 1
value | context stringlengths 4.2k 104k | answers listlengths 1 1 | length int32 399 10k | dataset stringclasses 1
value | language stringclasses 3
values | all_classes null | _id stringlengths 48 48 | _row_id int64 0 499 | context_cheatsheet stringlengths 4.19k 104k | prompt_cheatsheet stringclasses 1
value | answer_prefix stringclasses 1
value | task stringclasses 1
value | max_new_tokens int64 84 84 | cheatsheet stringlengths 620 12k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Please complete the code given below.
using System;
using System.Collections;
using System.Collections.Generic;
using Server.Commands;
using Server.Engines.PartySystem;
using Server.Factions;
using Server.Gumps;
using Server.Items;
using Server.Mobiles;
using Server.Network;
using Server.Spells;
using Server.Spells.Bu... | [
"\t\t\t\tParticipant p = (Participant)m_Participants[i];"
] | 5,243 | lcc | csharp | null | 28ce5cf5e0beeb47248c6cba20ae17fa71d60d402770d464 | 0 | Your task is code completion.
using System;
using System.Collections;
using System.Collections.Generic;
using Server.Commands;
using Server.Engines.PartySystem;
using Server.Factions;
using Server.Gumps;
using Server.Items;
using Server.Mobiles;
using Server.Network;
using Server.Spells;
using Server.Spells.Bushido;
us... | Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c... | Next line of code:
| lcc | 84 | Cheat sheet for the given context:
Context:
[Previous code... ~10,000 lines omitted for brevity]
public class DuelContext {
// ... (many lines of code)
public void Award( Mobile us, Mobile them, bool won )
{
// ... (many lines of code)
LadderEntry ourEntry = ladder.F... | |
Please complete the code given below.
import networkx as nx
import pickle
from Queue import PriorityQueue
import copy
import random
import string
import sys
class MultiDiGraph_EdgeKey(nx.MultiDiGraph):
"""
MultiDiGraph which assigns unique keys to every edge.
Adds a dictionary edge_index which maps edge ... | [
"\t\t\tZ_.add_edge(e_u, e_v, **data.copy())"
] | 1,069 | lcc | python | null | ca807f49d7c6f84dcae3df694bde685aa7f75a02e9d4f574 | 1 | Your task is code completion.
import networkx as nx
import pickle
from Queue import PriorityQueue
import copy
import random
import string
import sys
class MultiDiGraph_EdgeKey(nx.MultiDiGraph):
"""
MultiDiGraph which assigns unique keys to every edge.
Adds a dictionary edge_index which maps edge keys to (... | Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c... | Next line of code:
| lcc | 84 | Cheat sheet for the given code:
**Context:**
[Previous code... ~10,000 lines omitted for brevity]
def ranking(self, k, graph=None, Y=nx.DiGraph(), Z=nx.DiGraph(), mode='branching', root='R'):
if graph is not None:
self._init(graph, Y, Z)
if root == 'R' and mode == 'branching':
... | |
Please complete the code given below.
#! /usr/bin/env python
# Last Change: Sun Dec 14 07:00 PM 2008 J
"""Test for the sndfile class."""
from os.path import join, dirname
import os
import sys
from numpy.testing import TestCase, assert_array_equal, dec
import numpy as np
from audiolab import Sndfile, Format, available_... | [
" rfd, fd, cfilename = open_tmp_file('rwseektest.wav')"
] | 844 | lcc | python | null | 04429037d9380b6e9c3f7b2070992a5af10745895025113c | 2 | Your task is code completion.
#! /usr/bin/env python
# Last Change: Sun Dec 14 07:00 PM 2008 J
"""Test for the sndfile class."""
from os.path import join, dirname
import os
import sys
from numpy.testing import TestCase, assert_array_equal, dec
import numpy as np
from audiolab import Sndfile, Format, available_encodings... | Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c... | Next line of code:
| lcc | 84 | Cheat sheet for the given code completion task:
Context:
[Previous code... ~10,000 lines omitted for brevity]
def test_float_frames(self):
""" Check nframes can be a float"""
rfd, fd, cfilename = open_tmp_file('pysndfiletest.wav')
try:
# Open the file for writing
f... | |
Please complete the code given below.
#!/usr/bin/env python
from apps.webdriver_testing.pages.site_pages import UnisubsPage
from urlparse import urlsplit
class VideoPage(UnisubsPage):
"""
Video Page contains the common elements in the video page.
"""
_URL = "videos/%s/info/" # %s is the unique onsite... | [
" if e.text == language:"
] | 462 | lcc | python | null | 9bc1f81e1a4c4b44da11ffc093a0c9fecbe5f99e4eff3aa5 | 3 | Your task is code completion.
#!/usr/bin/env python
from apps.webdriver_testing.pages.site_pages import UnisubsPage
from urlparse import urlsplit
class VideoPage(UnisubsPage):
"""
Video Page contains the common elements in the video page.
"""
_URL = "videos/%s/info/" # %s is the unique onsite video id... | Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c... | Next line of code:
| lcc | 84 | Cheat sheet for the given code:
Context:
[Previous code... ~10,000 lines omitted for brevity]
class VideoPage(UnisubsPage):
# ... (many lines of code)
def __init__(self):
# ... (many lines of code)
def upload_subtitles(self,
sub_lang,
... | |
Please complete the code given below.
/*
* $Header: it.geosolutions.geobatch.wmc.WMCStream,v. 0.1 03/dic/2009 01:55:21 created by Fabiani $
* $Revision: 0.1 $
* $Date: 03/dic/2009 01:55:21 $
*
* ====================================================================
*
* Copyright (C) 2007-2008 GeoSolutions S.A.S.
... | [
"\t\t\t\t\tOLStyleValue styleValue = (OLStyleValue) value;"
] | 570 | lcc | java | null | a5da7e173afd5ba71e0185228a1df77238c2949ba3ea2935 | 4 | Your task is code completion.
/*
* $Header: it.geosolutions.geobatch.wmc.WMCStream,v. 0.1 03/dic/2009 01:55:21 created by Fabiani $
* $Revision: 0.1 $
* $Date: 03/dic/2009 01:55:21 $
*
* ====================================================================
*
* Copyright (C) 2007-2008 GeoSolutions S.A.S.
*
* Thi... | Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c... | Next line of code:
| lcc | 84 | Cheat sheet for the code completion task:
Context:
[Previous code... ~10,000 lines omitted for brevity]
public class WMCStream {
private XStream xstream = new XStream(new DomDriver("UTF-8"));
// ...
xstream.registerConverter(new Converter() {
public boolean canConvert(Class claz... | |
"Please complete the code given below. \n#!/usr/bin/env python\nimport sys\n#begin dependent modules(...TRUNCATED) | [
" longest = max(self.answers)"
] | 1,229 | lcc | python | null | 3bd5a501fc0327fd7bcda8389c7d11b3a821c9b5ce5a93cc | 5 | "Your task is code completion.\n#!/usr/bin/env python\nimport sys\n#begin dependent modules\n#sys.pa(...TRUNCATED) | "Before solving the code completion task, imagine you are a student memorizing this material accordi(...TRUNCATED) | Next line of code:
| lcc | 84 | "Cheat sheet for the given code completion task:\n\nContext:\n[Previous code... ~10,000 lines omitte(...TRUNCATED) | |
"Please complete the code given below. \n/**************************************\n*Script Name: Staf(...TRUNCATED) | [
" mob.Target = new SR_NewRuneTarget(RuneAcc);"
] | 907 | lcc | csharp | null | 227b063979c62ee1de7436be168450b5a7712a7a637fa6d4 | 6 | "Your task is code completion.\n/**************************************\n*Script Name: Staff Runeboo(...TRUNCATED) | "Before solving the code completion task, imagine you are a student memorizing this material accordi(...TRUNCATED) | Next line of code:
| lcc | 84 | "Cheat sheet for the given code completion task:\n\nContext:\n[Previous code... ~10,000 lines omitte(...TRUNCATED) | |
"Please complete the code given below. \n/*\n * Copyright (c) 1996, 2012, Oracle and/or its affiliat(...TRUNCATED) | [
" for (int i = 0; i < chain.length; i++)"
] | 1,820 | lcc | java | null | f652398c3e8be338b4a7873ba6fecc5a686204d99a1a8d10 | 7 | "Your task is code completion.\n/*\n * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All r(...TRUNCATED) | "Before solving the code completion task, imagine you are a student memorizing this material accordi(...TRUNCATED) | Next line of code:
| lcc | 84 | "Cheat sheet for the code completion task:\n\nContext:\n[Previous code... ~10,000 lines omitted for (...TRUNCATED) | |
"Please complete the code given below. \n/*\n * jPOS Project [http://jpos.org]\n * Copyright (C) 200(...TRUNCATED) | [
" sp = new JESpace(name, path);"
] | 1,096 | lcc | java | null | 01b11dc980d93775ce16fd5e630cf5619f66f281ee12947b | 8 | "Your task is code completion.\n/*\n * jPOS Project [http://jpos.org]\n * Copyright (C) 2000-2015 Al(...TRUNCATED) | "Before solving the code completion task, imagine you are a student memorizing this material accordi(...TRUNCATED) | Next line of code:
| lcc | 84 | "Cheat sheet for the given code:\n\nContext:\n[Previous code... ~10,000 lines omitted for brevity]\n(...TRUNCATED) | |
"Please complete the code given below. \n/*\n * Pixel Dungeon\n * Copyright (C) 2012-2015 Oleg Dolya(...TRUNCATED) | [
"\t\t\t\t\tpos = btnEnergizeAll.bottom();"
] | 567 | lcc | java | null | 64d5f26d486a85e85284229e8d254f996cfafd844cd321c5 | 9 | "Your task is code completion.\n/*\n * Pixel Dungeon\n * Copyright (C) 2012-2015 Oleg Dolya\n *\n * (...TRUNCATED) | "Before solving the code completion task, imagine you are a student memorizing this material accordi(...TRUNCATED) | Next line of code:
| lcc | 84 | "Cheat sheet for the given code:\n\nContext:\n[Previous code... ~10,000 lines omitted for brevity]\n(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 10