Dataset Viewer
Auto-converted to Parquet Duplicate
id
int32
0
3k
input
stringlengths
43
33.8k
gt
stringclasses
1 value
0
<s> package org . rubypeople . rdt . internal . ui . rubyeditor ; import java . util . Iterator ; import org . eclipse . core . resources . IMarker ; import org . eclipse . ui . texteditor . MarkerAnnotation ; import org . eclipse . ui . texteditor . MarkerUtilities ; import org . rubypeople . rdt . core . IRubyElement...
1
<s> package com . asakusafw . runtime . io . util ; import java . io . IOException ; import org . apache . hadoop . io . WritableComparator ; public class WritableRawComparator extends WritableComparator { private final WritableRawComparable object ; protected WritableRawComparator ( Class < ? extends WritableRawCompar...
2
<s> package net . sf . sveditor . ui . prop_pages ; import java . util . List ; import net . sf . sveditor . core . SVCorePlugin ; import net . sf . sveditor . core . db . SVDBFile ; import net . sf . sveditor . core . db . index . ISVDBIndex ; import net . sf . sveditor . core . db . index . SVDBIndexCollection ; impo...
3
<s> package com . asakusafw . utils . java . model . syntax ; import java . util . List ; public interface ConstructorInvocation extends Statement , Invocation { List < ? extends
4
<s> package org . rubypeople . rdt . internal . ui . text . comment ; import org . eclipse . jface . text . formatter . FormattingContext ; import org . rubypeople . rdt . core . formatter . DefaultCodeFormatterConstants ; public class CommentFormattingContext extends FormattingContext
5
<s> package com . asakusafw . utils . java . parser . javadoc ; import java . util . ArrayList ; import java . util . Collections ; import java . util . List ; import com . asakusafw . utils . java . internal . parser . javadoc . ir . IrDocBlock ; public abstract class JavadocBaseParser { private List < ? extends Javad...
6
<s> package com . asakusafw . yaess . jobqueue . client ; import static org . hamcrest . Matchers . * ; import static org . junit . Assert . * ; import java . io . IOException ; import java . net . InetSocketAddress ; import java . net . URL ; import java . util . HashMap ; import org . apache . http . HttpEntity ; imp...
7
<s> package com . asakusafw . vocabulary . operator ; import java . lang . annotation . Documented ; import java
8
<s> package org . rubypeople . rdt . refactoring . ui . pages ; import org . eclipse . swt . SWT ; import org . eclipse . swt . events . ModifyEvent ; import org . eclipse . swt . events . ModifyListener ; import org . eclipse . swt . events . SelectionEvent ; import org . eclipse . swt . events . SelectionListener ; i...
9
<s> package com . asakusafw . vocabulary . batch ; public class ListBatch extends BatchDescription { @ Override protected void describe ( ) { Work jf1 = run ( JobFlow1 . class ) . soon ( ) ; Work jf2 = run ( JobFlow2 . class ) . after
10
<s> package de . fuberlin . wiwiss . d2rq . functional_tests ; import junit . framework . TestCase ; import com . hp . hpl . jena . rdf . model . Property ; import com . hp . hpl . jena . rdf . model . RDFNode ; import com . hp . hpl . jena . rdf . model . Resource ; import com . hp . hpl . jena . rdf . model . Stateme...
11
<s> package org . oddjob . arooa . types ; import junit . framework . TestCase ; import org . apache . log4j . Logger ; import org . oddjob . ConsoleCapture ; import org . oddjob . Oddjob ; import org . oddjob . arooa . xml . XMLConfiguration ; import org . oddjob . state . ParentState ; public class ConvertTypeExample...
12
<s> package org . rubypeople . eclipse . shams . runtime ; import java . io . File ; import org . eclipse . core . runtime . IPath ; public class ShamIPath implements IPath { protected String path ; public ShamIPath ( String thePath ) { path = thePath ; } public IPath addFileExtension ( String extension ) { throw new R...
13
<s> package com . asakusafw . utils . java . parser . javadoc ; import com . asakusafw . utils . java . internal . parser . javadoc . ir . IrLocation ; public class JavadocParseException extends Exception { private static final long serialVersionUID = 1L ; private IrLocation location ; public JavadocParseException ( St...
14
<s> package org . rubypeople . rdt . internal . debug . core . commands ; import org . rubypeople . rdt . internal . debug . core . parsing . AbstractReadStrategy ; import org . rubypeople
15
<s> package org . oddjob . jmx . server ; import java . util . ArrayList ; import java . util . Arrays ; import java . util . List ; public class AccumulatingFactoryProvider implements HandlerFactoryProvider { private List < HandlerFactoryProvider > providers = new ArrayList < HandlerFactoryProvider > ( ) ; public void...
16
<s> package com . asakusafw . runtime . io ; import java . io . IOException ; import java . io . InputStream ; import java . io . InputStreamReader ; import java . io . OutputStream ; import java . io . OutputStreamWriter ; import java . nio . charset . Charset ; public class TsvIoFactory < T > extends ModelIoFactory <...
17
<s> package com . asakusafw . windgate . core . session ; import java . io . Closeable ; import java . io . IOException ; public abstract class SessionMirror implements Closeable { public abstract String getId ( ) ; public abstract void complete ( ) throws IOException ; public abstract void abort ( ) throws IOException...
18
<s> package org . vaadin . teemu . clara . util ; import static org . junit . Assert . assertEquals ; import static org . junit . Assert . assertFalse ; import static org . junit . Assert . assertTrue ; import org . junit . Test ; import com . vaadin . ui . Button ; public class ReflectionUtilsTest { public static clas...
19
<s> package net . sf . sveditor . core . db . search ; import net . sf . sveditor . core . db . ISVDBNamedItem ; import net . sf . sveditor . core . db . SVDBItemType ; public class SVDBFindClassMatcher implements ISVDBFindNameMatcher
20
<s> package net . sf . sveditor . core . tests . parser ; import net . sf . sveditor . core . SVCorePlugin ; import net . sf . sveditor . core . parser . SVParseException ; import junit . framework . TestCase ; public class TestParseBind extends TestCase { public void testBasicBind ( ) throws SVParseException { String ...
21
<s> package org . rubypeople . rdt . internal . core ; import org . eclipse . core . resources . IProject ; import org . eclipse . core . resources . ResourcesPlugin ; public class RubyModelInfo extends OpenableElementInfo { Object [ ] nonRubyResources ; private Object [ ] computeNonRubyResources ( ) { IProject [ ] pro...
22
<s> package org . rubypeople . rdt . internal . debug . ui . rubyvms ; import org . eclipse . core . runtime . IStatus ; import org . eclipse . jface . resource . ImageDescriptor ; import org . eclipse . jface . viewers . LabelProvider ; import org . eclipse . swt . graphics . Image ; import org . rubypeople . rdt . in...
23
<s> package com . asakusafw . compiler . flow . processor . flow ; import com . asakusafw . compiler . flow . processor . ExtractFlowProcessor ; import com . asakusafw . compiler . flow . processor . operator . ExtractFlowFactory ; import com . asakusafw . compiler . flow . processor . operator . ExtractFlowFactory . W...
24
<s> package org . rubypeople . rdt . refactoring . tests . core . generateconstructor ; import junit . framework . Test ; import junit . framework . TestSuite ; import org .
25
<s> package org . rubypeople . rdt . refactoring . ui . pages . extractmethod ; import org . eclipse . swt . SWT ; import org . eclipse . swt . widgets . Table ; import org . eclipse . swt . widgets
26
<s> package org . oddjob . state ; import junit . framework . TestCase ; public class WorstStateOpTest extends TestCase { public void testEvaluateSingleOp ( ) { WorstStateOp test = new WorstStateOp ( ) ; assertEquals ( ParentState . READY , test . evaluate ( JobState . READY ) ) ; assertEquals ( ParentState . ACTIVE , ...
27
<s> package com . asakusafw . testdriver . core ; import java . io . IOException ; import java . util . ArrayList ; import java . util . Collections ; import java . util . List ; import com . asakusafw . runtime . io . ModelOutput ; import com . asakusafw . vocabulary . external . ImporterDescription ; public class Moc...
28
<s> package com . asakusafw . compiler . operator ; import javax . lang . model . element . AnnotationMirror ; import javax . lang . model . element . ExecutableElement ; import com . asakusafw . compiler . common . Precondition ; public class OperatorMethod { private ExecutableElement element ; private OperatorProcess...
29
<s> package org . rubypeople . rdt . ui . actions ; import java . util . Map ; import org . eclipse . core . filebuffers . FileBuffers ; import org . eclipse . core . filebuffers . ITextFileBufferManager ; import org . eclipse . core . resources . IFile ; import org . eclipse . core . runtime . CoreException ; import o...
30
<s> package test . modelgen . table . io ; import java . io . IOException ; import javax . annotation . Generated ; import test . modelgen . table . model . ImportTarget2 ; import com . asakusafw . runtime . io . ModelOutput ; import com . asakusafw . runtime . io . RecordEmitter ; @ Generated ( "" ) @ SuppressWarnings...
31
<s> package net . ggtools . grand . ui . graph . draw2d ; import java . io . File ; import java . util . Collection ; import java . util . Iterator ; import java . util . Map ; import net . ggtools . grand . ui . Application ; import net . ggtools . grand . ui . graph . DotGraphAttributes ; import org . apache . common...
32
<s> package org . oddjob . state ; import java . io . File ; import java . io . IOException ; import java . util . Properties ; import junit . framework . TestCase ; import org . apache . commons . io . FileUtils ; import org . apache . log4j . Logger ; import org . oddjob . ConsoleCapture ; import org . oddjob . Faile...
33
<s> package org . rubypeople . rdt . internal . ui . dialogs ; import java . util . ArrayList ; import java . util . Arrays ; import java . util . List ; import org . eclipse . core . runtime . IStatus ; import org . eclipse . jface . dialogs . IDialogConstants ; import org . eclipse . jface . viewers . CheckStateChang...
34
<s> package com . asakusafw . compiler . operator ; import java . util . EnumSet ; import java . util . Set ; import com . asakusafw . utils . java . model . syntax . Attribute ; import com . asakusafw . utils . java . model . syntax . ConstructorDeclaration ; import com . asakusafw . utils . java . model . syntax . Fi...
35
<s> package com . asakusafw . compiler . operator . processor ; import java . util . List ; import javax . lang . model . type . TypeMirror ; import com . asakusafw . compiler . common . Precondition ; import com . asakusafw . compiler . common . TargetOperator ; import com . asakusafw . compiler . operator . AbstractO...
36
<s> package test . modelgen . table . io ; import java . io . IOException ; import javax . annotation . Generated ; import test . modelgen . table . model . ImportRecordLock ; import com . asakusafw . runtime . io . ModelInput ; import com . asakusafw . runtime . io . RecordParser ; @ Generated ( "" ) @ SuppressWarning...
37
<s> package com . asakusafw . compiler . yaess ; import java . io . File ; import java . io . IOException ; import java . io . OutputStream ; import java . text . MessageFormat ; import java . util . Collection ; import java . util . Collections ; import java . util . Comparator ; import java . util . List ; import jav...
38
<s> package org . rubypeople . rdt . internal . debug . core . model ; import org . eclipse . debug . core . DebugEvent ; import org . eclipse . debug . core . DebugException ; import org . eclipse . debug . core . DebugPlugin ; import org . eclipse . debug . core . model . IRegisterGroup ; import org . eclipse . debug...
39
<s> package test . modelgen . table . io ; import java . io . IOException ; import javax . annotation . Generated ; import test . modelgen . table . model . ExportTempImportTarget21Df ; import com . asakusafw . runtime . io . ModelInput ;
40
<s> package com . aptana . rdt . internal . launching ; import java . io . File ; import java . io . FileWriter ; import java . io . IOException ; import java . util . ArrayList ; import java . util . List ; import org . eclipse . core . resources . IWorkspace ; import org . eclipse . core . resources . IWorkspaceDescr...
41
<s> package org . rubypeople . rdt . core . search ; import org . eclipse . core . resources . IResource ; import org . rubypeople . rdt . core . IRubyElement ; public class FieldDeclarationMatch extends SearchMatch { public FieldDeclarationMatch ( IRubyElement element , int accuracy , int offset , int length , SearchP...
42
<s> package org . rubypeople . rdt . refactoring . ui ; import java . util . HashMap ; import java . util . Map ; import org . eclipse . swt . custom . StyleRange ; import org . eclipse . swt . graphics . Color ; import org . eclipse . swt . graphics . RGB ; import org . eclipse . swt . widgets . Composite ; import org...
43
<s> package org . rubypeople . rdt . refactoring . core . renamelocal ; import java . util . ArrayList ; import java . util . Collection ; import java . util . Observable ; import java . util . Observer ; import org . jruby . ast . DAsgnNode ; import org . jruby . ast . DVarNode ; import org . jruby . ast . MethodDefNo...
44
<s> package com . asakusafw . bulkloader . exporter ; import static org . junit . Assert . * ; import java . io . ByteArrayOutputStream ; import java . io . File ; import java . io . FileInputStream ; import java . io . IOException ; import java . io . InputStream ; import java . io . OutputStream ; import java . util ...
45
<s> package org . rubypeople . rdt . refactoring . ui . pages . movemethod ; import org . eclipse . swt . SWT ; import org . eclipse . swt . events . SelectionEvent ; import org . eclipse . swt . events . SelectionListener ; import org . eclipse . swt . layout . GridData ; import org . eclipse . swt . layout . GridLayo...
46
<s> package test . modelgen . table . model ; import java . io . DataInput ; import java . io . DataOutput ; import java . io . IOException ; import javax . annotation . Generated ; import org . apache . hadoop . io . Writable ; import com . asakusafw . runtime . value . LongOption ; import com . asakusafw . vocabulary...
47
<s> package org . oddjob . scheduling ; import java . beans . PropertyVetoException ; import java . text . ParseException ; import java . util . ArrayList ; import java . util . Date ; import java . util . List ; import junit . framework . TestCase ; import org . apache . log4j . Logger ; import org . oddjob . FailedTo...
48
<s> package com . asakusafw . yaess . jsch ; import java . io . ByteArrayInputStream ; import java . io . IOException ; import java . io . OutputStream ; import java . text . MessageFormat ; import java . util . List ; import java . util . Map ; import java . util . concurrent . TimeUnit ; import java . util . regex . ...
49
<s> package org . rubypeople . rdt . refactoring . tests . core . mergeclasspartsinfile ; import java . util . ArrayList ; import java . util . Collection ; import java . util . StringTokenizer ; import java . util . Vector ; import org . rubypeople . rdt . refactoring . core . mergeclasspartsinfile . InFileClassPartsM...
50
<s> package org . oddjob . tools . doclet . utils ; import com . sun . javadoc . Tag ; public
51
<s> package net . sf . sveditor . core . tests . docs ; import java . io . BufferedWriter ; import java . io . File ; import java . io . FileWriter ; import java . io . IOException ; import java . util . HashMap ; import java . util . HashSet ; import java . util . List ; import java . util . Map ; import java . util ....
52
<s> package com . asakusafw . compiler . flow . stage ; public class CompiledShuffleFragment { private CompiledType mapOutputType ; private CompiledType combineOutputType ; public CompiledShuffleFragment ( CompiledType mapOutput , CompiledType combineOutput ) { if ( mapOutput == null ) { throw new IllegalArgumentExcept...
53
<s> package com . asakusafw . testdriver . rule ; public class IsNull implements ValuePredicate < Object > { @ Override public boolean accepts ( Object expected , Object actual ) { return actual == null ; }
54
<s> package com . asakusafw . utils . java . internal . model . syntax ; import java . util . List ; import com . asakusafw . utils . java . model . syntax . AlternateConstructorInvocation ; import com . asakusafw . utils . java . model . syntax . Expression ; import com . asakusafw . utils . java . model . syntax . Mo...
55
<s> package com . asakusafw . dmdl . java . emitter ; import java . io . IOException ; import com . asakusafw . dmdl . java . Configuration ; import com . asakusafw . dmdl . java . spi . JavaDataModelDriver ; import com . asakusafw . dmdl . semantics . DmdlSemantics ; import com . asakusafw . dmdl . semantics . ModelDe...
56
<s> package com . asakusafw . compiler . yaess . testing . mock ; import com . asakusafw . compiler . yaess . testing . model . Dummy ; import com . asakusafw .
57
<s> package org . rubypeople . rdt . internal . corext . refactoring . nls . changes ; import java . io . ByteArrayInputStream ; import java . io . IOException ; import java . io . InputStream ; import java . io . UnsupportedEncodingException ; import java . net . URI ; import org . eclipse . core . filesystem . EFS ; ...
58
<s> package com . asakusafw . vocabulary . bulkloader ; import java . lang . annotation . Documented ; import java . lang . annotation . ElementType ; import java . lang . annotation . Retention ; import java . lang . annotation . RetentionPolicy ; import java . lang . annotation . Target ; @ Target ( ElementType . TYP...
59
<s> package com . asakusafw . compiler . yaess . testing . mock ; import java . io . IOException ; import java . util . Arrays ; import java . util . Collections ; import java . util . List ; import java . util . Set ; import com . asakusafw . compiler . flow . ExternalIoCommandProvider ; import com . asakusafw . compi...
60
<s> package org . oddjob . doclet ; import java . util . ArrayList ; import java . util . List ; import org . oddjob . arooa . beandocs . BeanDoc ; import org . oddjob . arooa . beandocs . WriteableBeanDoc ; import com . sun . javadoc . ClassDoc ; public class Archiver { private final JobsAndTypes jats ; public Archive...
61
<s> package com . loiane . model ; import java . util . List ; public class Post { private int id ; private String title ; private List < Tag > tags ; public int getId ( ) { return id ; } public void setId ( int id ) { this . id = id ; } public String getTitle ( ) { return title ; } public void setTitle ( String title ...
62
<s> package net . sf . sveditor . ui . editor ; import net . sf . sveditor . core . SVCorePlugin ; import net . sf . sveditor . core . indent . ISVIndenter ; import net . sf . sveditor . core . indent . SVIndentScanner ; import net . sf . sveditor . core . scanutils . StringBIDITextScanner ; import org . eclipse . core...
63
<s> package org . rubypeople . rdt . internal . ui . wizards . dialogfields ; import org . eclipse . swt . SWT ; import org . eclipse . swt . graphics . GC ; import org . eclipse . swt . graphics . Image ; import org . eclipse . swt . widgets . Button ; import org . eclipse . swt . widgets . Composite ; import org . ec...
64
<s> package org . rubypeople . rdt . launching ; import org . eclipse . core . resources . IProject ; import org . eclipse . debug . core . model . IProcess ; import org . eclipse . debug . ui . IDebugUIConstants ; import org . eclipse . debug . ui . console . IConsole ; public
65
<s> package org . rubypeople . rdt . internal . ui ; import org . eclipse . core . resources . IResource ; import org . rubypeople .
66
<s> package com . mcbans . firestar . mcbans . commands ; import com . mcbans . firestar . mcbans . BukkitInterface ; import com . mcbans . firestar . mcbans . Settings ; import com . mcbans . firestar . mcbans . callBacks . ManualSync ; import com . mcbans . firestar . mcbans . callBacks . Ping ; import com . mcbans ....
67
<s> package com . asakusafw . dmdl . thundergate . source ; import java . io . Closeable ; import java . io . IOException ; import java . sql . Connection ; import java . sql . DriverManager ; import java . sql . PreparedStatement ; import java . sql . ResultSet ; import java . sql . SQLException ; import java . util ....
68
<s> package org . rubypeople . rdt . internal . debug . ui . launcher ; import java . io . File ; import java . util . HashSet ; import java . util . Set ; import junit . framework . Assert ; import org . eclipse . core . resources . IFile ; import org . eclipse . core . resources . IFolder ; import org . eclipse . cor...
69
<s> package com . asakusafw . utils . java . internal . model . syntax ; import java . util . List ; import com . asakusafw . utils . java . model . syntax . ArrayInitializer ; import com . asakusafw . utils . java . model . syntax . Expression ; import com . asakusafw . utils . java . model . syntax . ModelKind ; impo...
70
<s> package com . asakusafw . compiler . testing . flow ; import com . asakusafw . compiler . flow . testing . model . Ex1 ; import com . asakusafw . compiler . testing . TemporaryOutputDescription ; public class Out4ExporterDesc extends TemporaryOutputDescription { @ Override public Class
71
<s> package com . asakusafw . runtime . directio ; import java . io . IOException ; import java . util . List ; import com . asakusafw . runtime . io . ModelInput ; import com . asakusafw . runtime . io . ModelOutput ; public interface DirectDataSource { < T > List < DirectInputFragment >
72
<s> package org . rubypeople . rdt . internal . core . parser ; import org . eclipse . core . resources . IMarker ; import org . eclipse . core . resources . IResource ; import org . eclipse . core . runtime . CoreException ; import org . rubypeople . rdt . core . IRubyModelMarker ; class IgnoreMarker { private IResour...
73
<s> package org . rubypeople . rdt . internal . ui . text . ruby ; import java . io . IOException ; import java . util . ArrayList ; import java . util . List ; import org . eclipse . core . runtime . IProgressMonitor ; import org . rubypeople . rdt . core . IMember ; import org . rubypeople . rdt . core . IMethod ; im...
74
<s> package org . oddjob . script ; import java . io . IOException ; import junit . framework . TestCase ; import org . oddjob . arooa . convert . DefaultConverter ; import org . oddjob . io . BufferType ; import org . oddjob . state . JobState ; public class ScriptInvokerTest extends TestCase { public void testInvokeS...
75
<s> package com . asakusafw . testdriver . core ; import java . io . IOException ; import java . net . URI ; public interface
76
<s> package org . rubypeople . rdt . internal . core . parser ; import java . util . Collections ; import java . util . List ; import org . jruby . ast . CommentNode ; import org . jruby . ast . Node ; import org . jruby . parser . RubyParserResult ; import org . jruby . runtime . DynamicScope ; public class NullParser...
77
<s> package com . asakusafw . yaess . core . util ; import static org . hamcrest . CoreMatchers . * ; import static org . junit . Assert . * ; import java . io . ByteArrayInputStream ; import java . io . ByteArrayOutputStream ; import java . io . IOException ; import java . io . InputStream ; import java . io . OutputS...
78
<s> package org . oddjob . framework ; import java . util . HashMap ; import java . util . Map ; import java . util . Properties ; import junit . framework . TestCase ; import org . apache . commons . beanutils . DynaBean ; import org . apache . commons . beanutils . PropertyUtils ; import org . apache . log4j . Level ...
79
<s> package net . sf . sveditor . core . db . expr ; import net . sf . sveditor . core . db . SVDBItemType ;
80
<s> package org . rubypeople . rdt . internal . formatter ; import java . util . Map ; import java . util . regex . Matcher ; import java . util . regex . Pattern ; import java . util . regex . PatternSyntaxException ; import org . eclipse . core . runtime . Platform ; import org . eclipse . text . edits . ReplaceEdit ...
81
<s> package com . asakusafw . compiler . flow . join ; import java . text . MessageFormat ; import java . util . Collections ; import java . util . List ; import java . util . Set ; import com . asakusafw . compiler . common . Precondition ; import com . asakusafw . compiler . flow . DataClass ; import com . asakusafw ...
82
<s> package net . sf . sveditor . core . db . stmt ; import java . util . ArrayList ; import java . util . List ; import net . sf . sveditor . core . db . SVDBItemType ; import net . sf . sveditor . core . db . expr . SVDBExpr ; public class SVDBConstraintDistListStmt extends SVDBStmt { public List < SVDBExpr > fLHS ; ...
83
<s> package org . oddjob ; import java . io . IOException ; import junit . framework . TestCase ; import org . oddjob . arooa . xml . XMLConfiguration ; import org . oddjob . state . JobState ; import org . oddjob . state . ParentState ; public class OddjobSerializeTest extends TestCase { public void testSerializeAndRe...
84
<s> package org . oddjob . state ; import org . oddjob . Stateful ; public interface State { public boolean isReady ( ) ; public boolean isStoppable (
85
<s> package org . rubypeople . rdt . refactoring . tests . core . renameclass ; import java . io . FileNotFoundException ; import java . io . IOException ; import org . eclipse . jface . text . BadLocationException ; import org . rubypeople . rdt . refactoring . core . renameclass . RenameClassConditionChecker ; import...
86
<s> package org . oddjob . monitor . model ; import javax . swing . event . TreeModelListener ; import javax . swing . tree . TreeNode ; public interface TreeEventDispatcher { public void addTreeModelListener (
87
<s> package com . asakusafw . utils . java . model . syntax ; public enum ImportKind { SINGLE_TYPE ( Target . TYPE , Range . SINGLE ) , TYPE_ON_DEMAND ( Target . TYPE , Range . ON_DEMAND ) , SINGLE_STATIC ( Target . MEMBER , Range . SINGLE ) , STATIC_ON_DEMAND ( Target . MEMBER
88
<s> package de . fuberlin . wiwiss . d2rq . find ; import java . util . ArrayList ; import java . util . Collection ; import java . util . List ; import com . hp . hpl . jena . graph . Triple ; import com . hp . hpl . jena . sparql . engine . ExecutionContext ; import com . hp . hpl . jena . sparql . engine . iterator ...
89
<s> package org . rubypeople . rdt . internal . ui . dialogs ; import java . util . Arrays ; import org . eclipse . core . runtime . IStatus ; import org . eclipse . swt . SWT ; import org . eclipse . swt . graphics . Image ; import org . eclipse . swt . layout . GridData ; import org . eclipse . swt . layout . GridLay...
90
<s> package com . postmark . java ; import java . util . * ; public class TestClient { public static void main ( String [ ] args ) { List < NameValuePair > headers = new ArrayList < NameValuePair > ( ) ; headers . add ( new NameValuePair ( "HEADER" , "test" ) ) ; PostmarkMessage message = new PostmarkMessage ( args [ 0...
91
<s> package org . rubypeople . rdt . internal . ui . rubyeditor ; import org . eclipse . jface .
92
<s> package com . asakusafw . yaess . core . task ; import static org . hamcrest . Matchers . * ; import static org . junit . Assert . * ; import java . io . IOException ; import java . util . Map ; import com . asakusafw . yaess . core . ExecutionContext ; import com . asakusafw . yaess . core . ExecutionMonitor ; imp...
93
<s> package org . oddjob . monitor . action ; import java . awt . Component ; import java . awt . event . WindowAdapter ; import java . awt . event . WindowEvent ; import javax . swing . JFrame ; import javax . swing . WindowConstants ; import junit . framework . TestCase ; import org . oddjob . Oddjob ; import org . o...
94
<s> package com . pogofish . jadt . comments ; import static com . pogofish . jadt . ast . JDTagSection . _JDTagSection ; import static com . pogofish . jadt . ast . JDToken . _JDAsterisk ; import static com . pogofish . jadt . ast . JDToken . _JDEOL ; import static com . pogofish . jadt . ast . JDToken . _JDTag ; impo...
95
<s> package org . rubypeople . rdt . internal . core . builder ; import java . io . IOException ; import java . util . ArrayList ; import java . util . HashSet ; import java . util . List ; import org . eclipse . core . resources . IFile ; import org . eclipse . core . resources . IProject ; import org . eclipse . core...
96
<s> package org . rubypeople . rdt . internal . launching ; import java . io . File ; import java . io . IOException ; import java . net . URL ; import java . util . HashMap ; import java . util . Map ; import org . eclipse . core . runtime . FileLocator ; import org . eclipse . core . runtime . IPath ; import org . ec...
97
<s> package org . rubypeople . rdt . ui . text .
98
<s> package test . modelgen . dummy . model ; import java . io . DataInput ; import java . io . DataOutput ; import java . io . IOException ; import java . math . BigDecimal ; import javax . annotation . Generated ; import org . apache . hadoop . io . Text ; import org . apache . hadoop . io . Writable ; import com . a...
99
<s> package com . asakusafw . testdriver . json ; import java . math . BigDecimal ; import java . math . BigInteger ; import java . util . Calendar ; public class Simple { public Integer number ; public String
End of preview. Expand in Data Studio

Dataset Card for "code_x_glue_cc_code_completion_line"

Dataset Summary

CodeXGLUE CodeCompletion-line dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/CodeCompletion-line

Complete the unfinished line given previous context. Models are evaluated by exact match and edit similarity. We propose line completion task to test model's ability to autocomplete a line. Majority code completion systems behave well in token level completion, but fail in completing an unfinished line like a method call with specific parameters, a function signature, a loop condition, a variable definition and so on. When a software develop finish one or more tokens of the current line, the line level completion model is expected to generate the entire line of syntactically correct code. Line level code completion task shares the train/dev dataset with token level completion. After training a model on CodeCompletion-token, you could directly use it to test on line-level completion.

Supported Tasks and Leaderboards

  • slot-filling: The dataset can be used to train a model for completing entire code lines.

Languages

  • Java programming language
  • Python programming language

Dataset Structure

Data Instances

java

An example of 'train' looks as follows.

{
    "gt": "", 
    "id": 0, 
    "input": "<s> package org . rubypeople . rdt . internal . ui . rubyeditor ; import java . util . Iterator ; import org . eclipse . core . resources . IMarker ; import org . eclipse . ui . texteditor . MarkerAnnotation ; import org . eclipse . ui . texteditor . MarkerUtilities ; import org . rubypeople . rdt . core . IRubyElement ; import org . rubypeople . rdt . core . IRubyModelMarker ; import org . rubypeople . rdt . core . IRubyScript ; import org . rubypeople . rdt . core . RubyCore ; public class RubyMarkerAnnotation extends MarkerAnnotation implements IRubyAnnotation { public static final String RUBY_MARKER_TYPE_PREFIX = \"\" ; public static final String ERROR_ANNOTATION_TYPE = \"\" ; public static final String WARNING_ANNOTATION_TYPE = \"\" ; public static final String INFO_ANNOTATION_TYPE = \"\" ; public static final String TASK_ANNOTATION_TYPE = \"\" ; private IRubyAnnotation fOverlay ; public RubyMarkerAnnotation ( IMarker marker ) { super ( marker ) ; } public String [ ] getArguments ( ) { return null ; } public int getId ( ) { IMarker marker = getMarker ( ) ; if ( marker == null || ! marker . exists ( ) ) return - 1 ; if ( isProblem ( ) ) return marker . getAttribute ( IRubyModelMarker . ID , - 1 ) ; return - 1 ; } public boolean isProblem ( ) { String type = getType ( ) ; return WARNING_ANNOTATION_TYPE . equals ( type ) || ERROR_ANNOTATION_TYPE . equals"
}

python

An example of 'train' looks as follows.

{
    "gt": "", 
    "id": 0, 
    "input": "<s> from __future__ import absolute_import <EOL> import weakref <EOL> import operator <EOL> from . compat import threading , itertools_filterfalse <EOL> from . import py2k <EOL> import types <EOL> EMPTY_SET = frozenset ( ) <EOL> class KeyedTuple ( tuple ) : <EOL> def __new__ ( cls , vals , labels = None ) : <EOL> t = tuple . __new__ ( cls , vals ) <EOL> t . _labels = [ ] <EOL> if labels : <EOL> t . __dict__ . update ( zip ( labels , vals ) ) <EOL> t . _labels = labels <EOL> return t <EOL> def keys ( self ) : <EOL> return [ l for l in self . _labels if l is not None ] <EOL> @ property <EOL> def _fields ( self ) : <EOL> return tuple ( self . keys ( ) ) <EOL> def _asdict ( self ) : <EOL> return dict ( ( key , self . __dict__ [ key ] ) for key in self . keys ( ) ) <EOL> class ImmutableContainer ( object ) : <EOL> def _immutable ( self , * arg , ** kw ) : <EOL> raise TypeError ( \"\" % self . __class__ . __name__ ) <EOL> __delitem__ = __setitem__ = __setattr__ = _immutable <EOL> class immutabledict ( ImmutableContainer , dict ) : <EOL> clear = pop = popitem = setdefault = update = ImmutableContainer . _immutable <EOL> def __new__ ( cls , * args ) : <EOL> new = dict . __new__ ( cls ) <EOL> dict . __init__ ( new , * args ) <EOL> return new <EOL> def __init__ ( self , * args ) : <EOL> pass <EOL> def __reduce__ ( self ) : <EOL> return immutabledict , ( dict ( self ) , ) <EOL> def union ( self , d ) : <EOL> if not self : <EOL> return immutabledict ( d ) <EOL> else : <EOL> d2 = immutabledict ( self ) <EOL> dict . update ( d2 , d ) <EOL> return d2 <EOL> def __repr__ ( self ) : <EOL> return \"\" % dict . __repr__ ( self ) <EOL> class Properties ( object ) : <EOL> def __init__ ( self , data ) : <EOL> self . __dict__ [ '_data' ] = data <EOL> def __len__ ( self ) : <EOL> return len ( self . _data ) <EOL> def __iter__ ( self ) : <EOL> return iter ( list ( self . _data . values ( ) ) ) <EOL> def __add__ ( self , other ) : <EOL> return list ( self ) + list ( other ) <EOL> def __setitem__ ( self , key , object ) : <EOL> self . _data [ key ] = object <EOL> def __getitem__ ( self , key ) : <EOL> return self . _data [ key ] <EOL> def __delitem__ ( self , key ) : <EOL> del self . _data [ key ] <EOL> def __setattr__ ( self , key , object ) : <EOL> self . _data [ key ] = object <EOL> def __getstate__ ( self ) : <EOL> return { '_data' : self . __dict__ [ '_data' ] } <EOL> def __setstate__ ( self , state ) : <EOL> self . __dict__ [ '_data' ] = state [ '_data' ] <EOL> def __getattr__ ( self , key ) : <EOL> try : <EOL> return self . _data [ key ] <EOL> except KeyError : <EOL> raise AttributeError ( key ) <EOL> def __contains__ ( self , key ) : <EOL> return key in self . _data <EOL> def as_immutable ( self ) : <EOL> return ImmutableProperties ( self . _data ) <EOL> def update ( self , value ) : <EOL> self . _data . update ( value ) <EOL> def get ( self , key , default = None ) : <EOL> if key in self : <EOL> return self [ key ] <EOL> else : <EOL> return default <EOL> def keys ( self ) : <EOL> return list ( self . _data ) <EOL> def values ( self ) : <EOL> return list ( self . _data . values ( ) ) <EOL> def items ( self ) : <EOL> return list ( self . _data . items ( ) ) <EOL> def has_key ( self , key ) : <EOL> return key in self . _data <EOL> def clear ( self ) : <EOL> self . _data . clear ( ) <EOL> class OrderedProperties ( Properties ) : <EOL> def __init__ ( self ) : <EOL> Properties . __init__ ( self , OrderedDict ( ) ) <EOL> class ImmutableProperties ( ImmutableContainer , Properties ) : <EOL> class OrderedDict ( dict ) : <EOL> def __init__ ( self , ____sequence = None , ** kwargs ) : <EOL> self . _list = [ ] <EOL> if ____sequence is None : <EOL> if kwargs : <EOL> self . update ( ** kwargs ) <EOL> else : <EOL> self . update ( ____sequence , ** kwargs ) <EOL> def clear ( self ) : <EOL> self . _list = [ ] <EOL> dict . clear ( self ) <EOL> def copy ( self ) : <EOL> return self . __copy__ ( ) <EOL> def __copy__ ( self ) : <EOL> return OrderedDict ( self ) <EOL> def sort ( self , * arg , ** kw ) : <EOL> self . _list . sort ( * arg , ** kw ) <EOL> def update ( self , ____sequence = None , ** kwargs ) : <EOL> if ____sequence is not None : <EOL> if hasattr ( ____sequence , 'keys' ) : <EOL> for key in ____sequence . keys ( ) : <EOL> self . __setitem__ ( key , ____sequence [ key ] ) <EOL> else : <EOL> for key , value in ____sequence : <EOL> self [ key ] = value <EOL> if kwargs : <EOL> self . update ( kwargs ) <EOL> def setdefault ( self , key , value ) : <EOL> if key not in self : <EOL> self . __setitem__ ( key , value ) <EOL> return value <EOL> else : <EOL> return self . __getitem__ ( key ) <EOL> def __iter__ ( self ) : <EOL> return iter ( self . _list ) <EOL> def keys ( self ) : <EOL> return list ( self ) <EOL> def values ( self ) : <EOL> return [ self [ key ] for key in self . _list ] <EOL> def items ( self ) : <EOL> return [ ( key , self [ key ] ) for key in self . _list ] <EOL> if py2k : <EOL> def itervalues ( self ) : <EOL> return iter ( self . values ( ) ) <EOL> def iterkeys ( self ) : <EOL> return iter ( self ) <EOL> def iteritems ( self ) : <EOL> return iter ( self . items ( ) ) <EOL> def __setitem__ ( self , key , object ) : <EOL> if key not in self : <EOL> try : <EOL> self . _list . append ( key ) <EOL> except AttributeError : <EOL> self . _list = [ key ] <EOL> dict . __setitem__ ( self , key , object ) <EOL> def __delitem__ ( self , key ) : <EOL> dict . __delitem__ ( self , key ) <EOL> self . _list . remove ( key ) <EOL> def pop ( self , key , * default ) : <EOL> present = key in self <EOL> value = dict . pop ( self , key , * default ) <EOL> if present : <EOL> self . _list . remove ( key ) <EOL> return value <EOL> def popitem ( self ) : <EOL> item = dict . popitem ( self ) <EOL> self . _list . remove ( item [ 0 ] ) <EOL> return item <EOL> class OrderedSet ( set ) : <EOL> def __init__ ( self , d = None ) : <EOL> set . __init__ ( self ) <EOL> self . _list = [ ] <EOL> if d is not None : <EOL>"
}

Data Fields

In the following each data field in go is explained for each config. The data fields are the same among all splits.

java, python

field name type description
id int32 Index of the sample
input string Input code string
gt string Code string to be predicted

Data Splits

name train
java 3000
python 10000

Dataset Creation

Curation Rationale

[More Information Needed]

Source Data

Initial Data Collection and Normalization

[More Information Needed]

Who are the source language producers?

[More Information Needed]

Annotations

Annotation process

[More Information Needed]

Who are the annotators?

[More Information Needed]

Personal and Sensitive Information

[More Information Needed]

Considerations for Using the Data

Social Impact of Dataset

[More Information Needed]

Discussion of Biases

[More Information Needed]

Other Known Limitations

[More Information Needed]

Additional Information

Dataset Curators

https://github.com/microsoft, https://github.com/madlag

Licensing Information

Computational Use of Data Agreement (C-UDA) License.

Citation Information

@article{raychev2016probabilistic,
  title={Probabilistic Model for Code with Decision Trees},
  author={Raychev, Veselin and Bielik, Pavol and Vechev, Martin},
  journal={ACM SIGPLAN Notices},
  pages={731--747},
  year={2016},
  publisher={ACM New York, NY, USA}
}
@inproceedings{allamanis2013mining,
  title={Mining Source Code Repositories at Massive Scale using Language Modeling},
  author={Allamanis, Miltiadis and Sutton, Charles},
  booktitle={2013 10th Working Conference on Mining Software Repositories (MSR)},
  pages={207--216},
  year={2013},
  organization={IEEE}
}

Contributions

Thanks to @madlag (and partly also @ncoop57) for adding this dataset.

Downloads last month
211

Models trained or fine-tuned on google/code_x_glue_cc_code_completion_line