__key__ stringlengths 16 21 | __url__ stringclasses 1
value | txt stringlengths 183 1.2k |
|---|---|---|
funcom_train/29041777 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void createMoveOperation(DiffGroup root, EObject left, EObject right) {
final MoveModelElement operation = DiffFactory.eINSTANCE.createMoveModelElement();
operation.setRightElement(right);
operation.setLeftElement(left);
//operation.setRightTarget(getMatchedEObject(left.eContainer()));
//operat... |
funcom_train/2712691 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean isNavigationRequired() {
AbstractDocument currentFile = this.getContext().getEditorProperties().
getCurrentDocument();
AbstractDocument selectedFile = getSelectedFile();
if (currentFile.getAbsolutePath().equals(selectedFile.getAbsolutePath())) {
... |
funcom_train/48630801 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetTempsRestant() {
System.out.println("getTempsRestant");
Itineraire instance = new Itineraire();
int expResult = 0;
int result = instance.getTempsRestant();
assertEquals(expResult, result);
// TODO review the generated test code and remove the ... |
funcom_train/18007756 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void write( RtfWriter writer, OutputStream out ) throws IOException {
writer.writeInitialFontSignature( out, this );
out.write(content.toString().getBytes());
writer.writeFinishingFontSignature( out, this );
super.write(writer, out);
}
COM: <s> write this rtf field ... |
funcom_train/47023966 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void importRtfDocument(Reader documentSource) throws IOException, DocumentException {
if(!this.open) {
throw new DocumentException("The document must be open to import RTF documents.");
}
RtfParser rtfImport = new RtfParser();
rtfImport.importRtfDocument(documentSource, this.r... |
funcom_train/48894813 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String store() {
if (this instanceof MP3File) {
try {
return "F"+((MP3File)this).getFile().getCanonicalPath();
} catch (IOException ioe) { }
} else if (this instanceof MP3Stream) {
return "S"+((MP3Stream)this).getURL().toExternalForm();
} else
throw new RuntimeException("Unknown subc... |
funcom_train/5431538 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private Mirror blankproject() {
Mirror ret = new Mirror();
ret.setName("Project Title (e.g. 6\" f/8)");
ret.setDiameter(152);
ret.setRroc(1219);
Description d = new Description();
d.setContent("Describe your project in more detail here.");
ret.setDescription(d);
return ret;
}
... |
funcom_train/50925810 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addDisorderMetadata(boolean processed) {
if (processed) {
disorderProcessed = true;
} else {
disorderProcessed = false;
}
List<CMLAtom> disorderedAtoms = DisorderAssembly.getDisorderedAtoms(molecule);
for (CMLAtom atom : disorderedAtoms) {
CMLScalar scalar = new CMLScalar();
ato... |
funcom_train/27899865 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String get1Value(ServletContext app, String request) {
ConnPool pool = ROPool.getPool(app);
Connection conn;
try {
conn = pool.getInstance();
} catch (Exception ex) { return null; }
try {
return get1Value(conn, request);
} finally ... |
funcom_train/18104453 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void doPrefetch() throws MediaException {
if (ad <= 0) {
ad = toneInit(pID);
if (ad <= 0)
throw new MediaException("prefetch failed");
if (getLevel() == -1) {
setLevel(100);
} else {
toneCommon(ad, 7, getLevel());
}
if (isMuted()) {
toneCommon(ad, 7, 0)... |
funcom_train/50304399 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public CmsTask createTask(int projectid, String agentName, String roleName, String taskname, String taskcomment, int tasktype, long timeout, int priority) throws CmsException {
return m_rb.createTask(m_context.currentUser(), projectid, agentName, roleName, taskname, taskcomment, tasktype, timeout, priority);
... |
funcom_train/20678684 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void storeGlobalsToCookie() {
StringBuffer sb = new StringBuffer();
appendValue(sb, BUILTIN_VAR_HIT_COUNT,
getClientValue(BUILTIN_VAR_HIT_COUNT));
appendValue(sb, BUILTIN_VAR_LAST_VISIT, new SmithDateTime());
appendValue(sb, BUILTIN_VAR_TIME_CREATED,
getClientValue(BUILTIN_VAR_TIME_CREATED... |
funcom_train/13749994 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void run() {
Event event = null;
while (((event = _EVENT_QUEUE.next()) != null) && _RUNNING) {
for (int i = 0; i < _LISTENER_QUEUE.size(); i++) {
ListenerWrapper wrapper =
(ListenerWrapper) _LISTENER_QUEUE.elementAt(i);
if ((wrapper.GENERATOR == null)
|| (wrapper.GENERATOR == ev... |
funcom_train/49333352 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addItemView(View itemView, int childIndex) {
final ViewGroup currentParent = (ViewGroup) itemView.getParent();
if (currentParent != null) {
currentParent.removeView(itemView);
}
((ViewGroup) mMenuView).addView(itemView, childIndex);
}
COM: <s> ad... |
funcom_train/35249922 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean hasMethod(Class<?> example) {
if(example.getDeclaredMethods().length != 1) {
throw new IllegalArgumentException("example must declare exactly one method");
}
Method sample = example.getDeclaredMethods()[0]; // there's only one
for(Method maybe : tar... |
funcom_train/8527946 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void addLargePrintDefaultValues(StyleManager sManager) {
//assures to get several mandatory properties in the styles
Style defaultPara = sManager.getStyle("default_paragraph");//css for default paragraph
if(defaultPara!=null){
defaultPara.setProperty("line-heigh", "100%");
defaultPara.setPro... |
funcom_train/46654611 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void showResultAndExplanationNoAnswered(Question question) {
// Options are also disabled
disableOptions();
// Label that will show if user was right answering
Label resultLabel = new Label();
resultPanel.add(resultLabel);
addExplanationPopup(question);
// When the answer is wrong, the te... |
funcom_train/330590 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void loadDataQueueItem(DataLoadQueData dataLoadQueData) {
if (dataLoadQueData.getDataStart() <= 0 || dataLoadQueData.getDataStart() == Long.MAX_VALUE) {
return;
}
dataLoadQueData.getPamDataBlock().loadViewerData(dataLoadQueData.getDataStart(),
dataLoadQueData.getDataEnd());
}
COM: <s> load... |
funcom_train/15884769 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String toString() {
switch (type) {
case ROUTE_ADDED:
return "Add route " + route + " for " + destination;
case ROUTE_REMOVED:
return "Remove route " + route + " for " + destination;
case PROXY_ADDED:
return "Add proxy " + route + " fo... |
funcom_train/11111623 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public MimeType getMimeType(String name) {
MimeType type = patterns.matches(name);
if (type != null) {
return type;
}
type = patterns.matches(name.toLowerCase(Locale.ENGLISH));
if (type != null) {
return type;
} else {
return ... |
funcom_train/50579909 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void validateEmail(String email) throws InterceptorException {
email = email.toLowerCase();
if (email.endsWith("@yahoo.com") ||
email.endsWith("@hotmail.com") ||
email.endsWith("@aol.com") ) {
throw new InterceptorException("Cannot accept email that i... |
funcom_train/44713080 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String toString() {
return "Connection[" + ((m_conn==null)?"null":(Integer.toString(m_conn.hashCode()))) +
", pool " + m_pool + ", needsAutoCommitOff " +
m_needsAutoCommitOff + "]";
}
COM: <s> a debugging tostring includes some information about the underlying </s>
... |
funcom_train/3361326 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean isConversionSupported(AudioFormat targetFormat, AudioFormat sourceFormat){
AudioFormat targetFormats[] = getTargetFormats( targetFormat.getEncoding(), sourceFormat );
for(int i=0; i<targetFormats.length; i++) {
if( targetFormat.matches( targetFormats[i] ) ) {
return true;
}
}
... |
funcom_train/45770484 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void write(OutputStream output) throws IOException {
try {
Debug.log(Debug.TRACE,"Writing out " + definition);
rgce = fh.convertCalcToPXL(definition);
cce = EndianConverter.writeShort((short) rgce.length);
} catch(Exception e) {
Debug.log(Debug.TRACE,"Error in Parsing Name Definition")... |
funcom_train/40909648 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setContentType(String type) {
super.setContentType(type);
if (type != null) {
HttpContentType httpContentType = new HttpContentType(type);
if (shouldParsePage(httpContentType.getType())) {
activateSiteMesh(httpContentType.getType(), httpCon... |
funcom_train/10985958 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected HtmlForm form(String id) throws Exception {
Iterator forms = page.getAllForms().iterator();
while (forms.hasNext()) {
HtmlForm form = (HtmlForm) forms.next();
if (id.equals(form.getAttributeValue("id"))) {
return (form);
}
... |
funcom_train/7722483 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addIterator(Iterator iterator) {
while(iterator.hasNext()) {
Object obj = iterator.next();
String classname = obj.getClass().getName();
Object list = map.get(classname);
if(list == null) {
list = new ArrayList();
... |
funcom_train/37721245 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void executeAlter() {
try {
StringTokenizer st = new StringTokenizer(table.getAlterStatements(), ";");
while (st.hasMoreTokens())
getUpdate().executeUpdate(st.nextToken());
} catch (DBProphetException e) {
Util.alert(this, e);
}
}
COM: <s> execute all alter stat... |
funcom_train/42856870 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void finishClusters(List<Cluster> clusters) {
// Call finish on all of the clusters....
List<Future<ClusterFinish>> finishList = new ArrayList<Future<ClusterFinish>>();
for (Cluster c : clusters)
finishList.add(_execute.submit(new ClusterFinish(c)));
for (Future<ClusterFinish> future : fin... |
funcom_train/4533415 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean hangupAll() {
if (interlocutors.size() < 1) {
Log.debug("hangup", "No interlocutors");
return false;
}
Interlocutor inter;
for (int i = 0; i < interlocutors.size(); i++) {
inter = (Interlocutor) interlocutors.get(i);
... |
funcom_train/3351388 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void readPortStatus(int port, PortStatus data) throws USBException {
testPort(port);
final USBControlPipe pipe = dev.getDefaultControlPipe();
final USBRequest req =
pipe.createRequest(new SetupPacket(USB_DIR_IN | USB_RT_PORT, USB_REQ_GET_STATUS, 0, port + 1, 4), dat... |
funcom_train/50072698 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean hasIndex() {
boolean returnBool = true;
File indexFolder = new File(fEnv.getIndexDirectory());
if (! indexFolder.exists()) {
returnBool = false;
}
else if (env.isGUIMode()) {
setStatus(idxFldr + " " + fEnv.getIndexDirectory() + " ... |
funcom_train/14009152 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Object clone(Object array) {
if (!this.isArray(array)) {
return null;
}
Class type = array.getClass().getComponentType();
int length = Array.getLength(array);
Object clone = Array.newInstance(type, length);
System.arraycopy(array, 0, clone, 0... |
funcom_train/18365824 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addDataView(JPanel p){
setupViewPanel.removeAll();
setupViewPanel.add(p,
new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
setupViewPanel.repaint();
th... |
funcom_train/2968227 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public ITimeInterval cloneTIWithNewRoom(ITimeInterval oldTI, IRoom newRoom) {
assert newRoom != null;
ITimeInterval newTI = db.cloneTI(oldTI);
//in cloneTI I called: newTI.setRoom(old.getRoom(), false); so overwrite this:
newTI.setRoom(newRoom, false);
... |
funcom_train/2440364 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String store(String s) {
if (StringUtils.isEmpty(s)) {
return s;
}
Integer index = stringToIndex.get(s);
if (index == null) {
index = Integer.valueOf(++counter);
stringToIndex.put(s, index);
indexToString.put(index, s);
... |
funcom_train/3330372 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void finish() {
if (foundFacets) {
SimpleType baseType = _content.createSimpleType();
ContentType contentType = ContentType.valueOf("simpleType");
contentType.setSimpleType(baseType);
_complexType.setContentType(contentType);
baseType... |
funcom_train/16326979 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean parseHeapSizes(String line) {
Matcher matcher = javaHeapSizePattern.matcher(line);
boolean found = false;
if (found = matcher.find()) {
matcher = numberPattern.matcher(line);
if (matcher.find()) {
initialHeapSize = new Integer(matcher.group()) / 1024;
}
if (matcher.find()) {... |
funcom_train/44838041 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Assistant getAssistant() {
// Lazy load...
try {
if (assistant != null) {
return assistant;
} else {
AssistantHome assistantHome = (AssistantHome) HomeInterfaceFactory.create(
A... |
funcom_train/16177599 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void initParamFileOptions() {
if (parameterFilePanel == null) {
parameterFilePanel = new RepastParamPanel(this.model);
this.toolBar.add(parameterFilePanel, 3);
int originalWidth = this.tbFrame.getWidth();
tbFrame.pack();
tbFrame.setLocation(tbFrame.getX()
- (tbFrame.getWidth()... |
funcom_train/30216219 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String initial(String string) {
StringBuffer retValue = new StringBuffer(10);
char[] name = string.toCharArray();
for (char aChar : name) {
if (Character.isUpperCase(aChar)) {
retValue.append(Character.toLowerCase(aChar));
}
}
... |
funcom_train/9059149 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public BooleanWrapper rename(String oldNickname, String newNickname) {
if (this.clients.get(newNickname) != null) {
return new BooleanWrapper(false);
}
this.clients.put(newNickname, this.clients.get(oldNickname));
this.clients.remove(oldNickname);
this.sendInformationToAll(new InformationMessage(o... |
funcom_train/2488570 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setData(List<TableCell> data) {
this.data = data;
HashMap<String, Integer> newDataIndex = new HashMap<String, Integer>();
for (int i=0; i < this.data.size(); i++){
newDataIndex.put(((TableCell)this.data.get(i)).getMetadata().getName(), new Integer(i));
}
this.setDataIndex(newDataIndex... |
funcom_train/51341575 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void clear() {
globalLRU.lock.lock();
try {
final Iterator<Entry<K, V>> itr = map
.values().iterator();
while (itr.hasNext()) {
final Entry<K, V> e = itr.... |
funcom_train/43567491 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public DocbookElement getModuleDescriptionMain() {
DocbookAnnotationElement anno = this.getDocbookAnnotationChild();
if(anno!=null) {
Nodes matches = anno.query("db:para[contains(@role,'desc-main')]", Constants.namespaces);
if(matches.size()==1) {
return (DocbookElement) matches.get(0);
}
thr... |
funcom_train/15713630 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean isOverriddenBy(final TypeFaceImpl typeFace) {
return (fontFamily == null || typeFace.getFontFamily() != null)
&& (fontSeries == null || typeFace.getFontSeries() != null)
&& (fontShape == null || typeFace.getFontShape() != null)
&& (fontSiz... |
funcom_train/13363592 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean booleanValue(String val) {
if (val == null) {
return false;
}
if (val.equalsIgnoreCase("on")) {
return true;
}
if (val.equalsIgnoreCase("checked")) {
return true;
}
if (val.equalsIgnoreCase("true")) {
... |
funcom_train/19865054 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void onModuleLoad() {
FooClient fc = new FooClient();
final Button sendButton = fc.getSendButton();
final TextBox nameField = fc.getNameField();
// Add the nameField and sendButton to the RootPanel
// Use RootPanel.get() to get the entire body element
RootPanel.get("nameFieldContainer").add(na... |
funcom_train/32755685 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void snapshotSelected( BrowserController controller, MachineSnapshot snapshot ) {
if ( snapshot != null ) {
commentTextView.setText( snapshot.getComment() );
String title = "Selected Snapshot has " + snapshot.getChannelCount() + " channels logged";
titleLabel.setText( title );
}
... |
funcom_train/40335336 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void newTraffic(Traffic traffic) {
//TRAFFIC_MANAGER.newTraffic(traffic);
if (sending) {
printError("manager busy");
printError("Operation:" + Integer.toString(request));
} else {
synchronized (this) {
request = newTraffic;
... |
funcom_train/11688729 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void removeRegistry(String key, Registry registry) {
if (registry != null) {
synchronized (registriesCache) {
try {
log.info("Removing the RMI registry bound to port : " + key);
UnicastRemoteObject.unexportObject(registry, tr... |
funcom_train/13502192 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private Triple getLocalizedTriple(Triple triple) {
try {
return _connector.getElementFactory().createTriple(
getLocalizedResource(triple.getSubject()),
getLocalizedResource(triple.getPredicate()),
getLocalizedObject(triple.getObje... |
funcom_train/5272386 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void send(InetSocketAddress to, String message) {
try {
sendPacket = makePkg(to, message);
datagramSocket.send(sendPacket);
} catch(IllegalArgumentException e) {
DEBUG.error("UDPSocket: send: Cannot send message due to arguments error in makePkg:\n"+e.getMessage());
} catch(IOException e) {... |
funcom_train/2539454 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean writeXmlFile(Document doc, File file) {
try {
FileOutputStream fileOut = new FileOutputStream(file);
OutputFormat format = new OutputFormat(doc);
format.setLineWidth(900);
format.setIndenting(true);
format.setIndent(6);
format.setOmitComments(false);
... |
funcom_train/6514747 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String performService(String registryValue, WebMacro wm, Context context) throws Exception {
if (! registryValue.startsWith(packageName) )
registryValue = packageName + registryValue;
ManagementService s = (ManagementService) services.get(registryValue);
if (s != null) {
s.setWebM... |
funcom_train/49350255 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JPopupMenu getTreePopupMenuGenes() {
if (treePopupMenuGenes == null) {
treePopupMenuGenes = new JPopupMenu();
treePopupMenuGenes.add(newHighlightMenuItem());
treePopupMenuGenes.add(newHideOthersMenuItem());
treePopupMenuGenes.add(new JSeparator());
treePopupMenuGenes.add(newExtractMenuIt... |
funcom_train/25519943 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchWindow window = HandlerUtil
.getActiveWorkbenchWindowChecked(event);
try {
LocalDevice localDevice = LocalDevice.getLocalDevice();
discoveryAgent = localDevice.getDiscoveryAgent();
discoveryAgent.startInquiry(Disco... |
funcom_train/37109624 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected int arraySearch(String needle, String[][] haystack) throws Exception {
for(int a = 0; a < haystack.length; a++) {
for(int b = 0; b < haystack[a].length; b++) {
if(findInText(needle, haystack[a][b])) {
return a;
}
}
}
return -1;
}
COM: <s> searches for needle in al... |
funcom_train/8016683 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Cursor fetchTodo(long rowId) throws SQLException {
Cursor mCursor =
database.query(true, DATABASE_TABLE, new String[] {KEY_ROWID,
KEY_SUMMARY, KEY_DESCRIPTION}, KEY_ROWID + "=" + rowId, null,
null, null, null, null);
if (... |
funcom_train/645786 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getText(Object element) {
INode node = (INode) element;
String text = node.getLabelText();
// return default if no label is provided
if (text == null) {
text = node.toString();
}
if (node.getLabelDecoration() != null) {
t... |
funcom_train/8415661 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public UseCaseController getController(String controller) throws Exception {
for (UseCaseController ucc : controllers) {
if (ucc.getAssetId() != null && ucc.getAssetId().toLowerCase().equals(controller.toLowerCase())) {
return ucc;
}
}
throw new ... |
funcom_train/19562581 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void formatRegion(IRegion region) {
IFormattingStrategy strategy = getFormattingStrategy(IDocument.DEFAULT_CONTENT_TYPE);
if(strategy != null) {
strategy.formatterStarts(getIndentation(region.getOffset()));
format(strategy,
new TypedPosition(region.getOffse... |
funcom_train/40444924 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void beforeExecute(Thread t, Runnable r) {
super.beforeExecute(t, r);
// set a lower priority
t.setPriority(Thread.MIN_PRIORITY);
LOGGER.debug("beforeExecute called");
StatusType status = StatusType.Factory.newInstance();
status.addNewProcessStarted().setPercentCompleted(33);
((WPSTask<?>... |
funcom_train/10655697 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testAttributeUndoableEdit() {
Element elem = new PlainDocument().getDefaultRootElement();
AttributeSet attrs = new SimpleAttributeSet();
undoEdit = new AttributeUndoableEdit(elem, attrs, true);
assertSame(elem, undoEdit.element);
assertSame(attrs, undoEdit.n... |
funcom_train/34564998 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean key(final String key, final Cmd cmd) throws QueryException {
consumeWS();
final boolean ok = consume(key) || consume(key.toLowerCase());
if(!ok && cmd != null) help(null, cmd);
consumeWS();
return ok;
}
COM: <s> parses and returns the specified keyword </s>
|
funcom_train/49624709 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String visit(ModuleVariableDeclaration $1, String $2, Object $3) {
StringBuilder builder = new StringBuilder();
if( $1.f0.size() > 0 ){
Enumeration e = $1.f0.elements();
while( e.hasMoreElements() ){
builder.append( this.visit( (Modifier)e.nextElement(), $2, $3) );
builder.append(" ")... |
funcom_train/32719630 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected MessageDigest getDigestObject() {
MessageDigest md;
try {
md = MessageDigest.getInstance(protoName);
}
catch (java.security.NoSuchAlgorithmException e) {
throw new InternalError(protoName + " not supported in this VM.");
}
// not needed the first time: md.reset();
... |
funcom_train/3411693 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String paramString() {
return ((orientation == Adjustable.VERTICAL ? "vertical,"
:"horizontal,")
+ "[0.."+maximum+"]"
+ ",val=" + value
+ ",vis=" + visibleAmount
+ ",unit=" + unitIncrement
+ ",block=" + blockIncrement
+ ",isAdjusting=" + isAdjus... |
funcom_train/49460721 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void checkLengthOffset(int extraOffset) throws RetrieveMoreDataException {
if (recordLength < (offset + extraOffset))
throw new RetrieveMoreDataException("The record length ("+recordLength+") is too short, trying to read ("+extraOffset+") more bytes from offset ("+offset+")", extraOffset);
}... |
funcom_train/38224482 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Concept getConcept(String conceptId) throws OntologyException {
if ( conceptId == null )
throw new OntologyException("Cannot return Concept for a null conceptId");
Concept[] concepts = getConcepts();
for ( int i = 0; i<concepts.length; i++ ){
if ( concept... |
funcom_train/48045282 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getText(TextStyle textStyle, Locale locale) {
ISOChronology.checkNotNull(textStyle, "TextStyle must not be null");
ISOChronology.checkNotNull(locale, "Locale must not be null");
String text = new SimpleDateTimeTextProvider().getText(this, textStyle, locale);
retur... |
funcom_train/22811269 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public ActionMessages delete(Bookmark bookmark) throws DatabaseException {
QueryHelper queryHelper = new QueryHelper(BookmarkQueries.deleteBookmarkQuery());
queryHelper.addInputInt(bookmark.getObjectTypeId());
queryHelper.addInputInt(bookmark.getObjectId());
queryHelper.addInpu... |
funcom_train/14245290 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public MDependency buildDependency(MModelElement client, MModelElement supplier) {
MDependency dep = createDependency();
dep.addSupplier(supplier);
dep.addClient(client);
if (supplier.getNamespace() != null)
dep.setNamespace(supplier.getNamespace());
else
... |
funcom_train/45504021 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setMovieWriter( MovieWriter writer ) {
this.writer = writer;
this.writer.setBitrate( bitrate );
this.writer.setFrameFormat( frameFormat );
this.writer.setFramename( framename );
this.writer.setFramerate( framerate );
this.writer.setHeight( height );
this.writer.setMovieFormat( movieForm... |
funcom_train/39260868 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setPlayer(int position, int player) {
if ((position < 0) || (position > 8)) {return;}
if ((player < G_NULL) || (player > G_COMPUTER)) {return;}
if (isPlayed(position)) {return;}
grid[position] = player;
numPositionsPlayed++;
// notify listeners (View) that the model has changed.
view.se... |
funcom_train/30192446 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected JMenuBar createMenubar() {
JMenuBar mb = new JMenuBar();
addNormalMenuBar(mb);
if (pluginManager != null) {
mb.add(pluginManager.getMenu());
}
mb.add(Box.createHorizontalGlue());
addHelpMenuBar(mb);
return mb;
}
COM: <s> create the menubar for the app </s>
|
funcom_train/42068198 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addCodePagePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_ChunkDataListTypeLabeledText_codePage_feature"),
getString("_U... |
funcom_train/12924914 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public DefineTextField setFontIdentifier(final int uid) {
if ((uid < 1) || (uid > Coder.USHORT_MAX)) {
throw new IllegalArgumentRangeException(
1, Coder.USHORT_MAX, uid);
}
fontIdentifier = uid;
fontClass = null; //NOPMD
return this;
... |
funcom_train/9104600 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void initialize() {
this.setResizable(false);
this.vinculos=new Vector<Vinculo>();
this.colorearTexto();
this.setSize(523,6);
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
if(filaAnterior==0)
{
fil=dim.getWidth();
col=dim.getHeight();
fil=(fil-523)/2;
col=(c... |
funcom_train/5232329 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addAllElements(int index, Collection<VisualPageListItem> c){
if(c!=null && index>=0 && index<=data.size()){
int i = index;
for(VisualPageListItem element : c){
data.add(i, element);
i++;
}
fireIntervalAdded(this, index, i-1);
}
}
COM: <s> add el... |
funcom_train/19913454 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void prepareTagData(AudioFile audioFile) {
if (renameConfig.isExtendTrackNumbers()) {
String firstTrack = audioFile.getTag().getFirstTrack();
try {
if (firstTrack != null) {
int number = Integer.parseInt(firstTrack);
if (decFormatter == null) {
decFormatter = new DecimalFormat... |
funcom_train/23868016 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean oneLetterOptions(final List<Method> optionMethods) {
assert optionMethods != null : "Null optionMethods is not allowed!";
for (final Method method : optionMethods) {
final Option option = method.getAnnotation(Option.class);
if (option.name().length() !=... |
funcom_train/8607030 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addDamage(Creature creature, int damage) {
if (creature == null ||
!owner.isEnemy(creature))
return;
AggroInfo ai = getAggroInfo(creature);
ai.addDamage(damage);
/**
* For now we add hate equal to each damage received
*... |
funcom_train/44656342 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private ActionCommand createRemoveCommand() {
ActionCommand removeCommand = new ActionCommand("removeCommand") {
@Override
protected void doExecuteCommand() {
int columnCount = columnModel.getColumnCount();
if (columnCount > 0) {
columnModel.removeColumn(tableColumns.get(columnCount - 1));
... |
funcom_train/2577972 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setAxisProperties(Axis axis) {
super.setAxisProperties(axis);
NumberAxis numberAxis = (NumberAxis) axis;
numberAxis.setAutoRange(this.autoRange);
if (!this.autoRange) {
numberAxis.setRange(this.minimumValue, this.maximumValue);
}
}
COM: <s> ... |
funcom_train/25098908 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addUaTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_UserAttributeableElement_uaType_feature"),
getString("_UI_Proper... |
funcom_train/3175306 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setSize(float wIdth, float heIght) {
// remember
width = wIdth;
height = heIght;
// delegate
try {
view.setSize(width, height);
} catch (Throwable t) {
LOG.log(Level.FINE, "unexpected", t);
}
// done
}
COM: <s> the wrapped view n... |
funcom_train/42045786 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void initValue(String propertyName, Object value, int keySequence) {
RecordValue recordValue = new RecordValue();
recordValue.setModified(false);
recordValue.setKeySequence(keySequence);
recordValue.setValue(value);
columnMap.put(propertyName, recordValue);
if (keySequence > 0) {
keyMap.put... |
funcom_train/11680000 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void put(String sequenceName, long initTime, boolean isInFlow, boolean isStatisticsEnable,boolean isFault) {
sequenceStatisticsList.add(new SequenceStatistics(sequenceName, initTime, isInFlow, isStatisticsEnable,isFault));
}
COM: <s> to put a statistics </s>
|
funcom_train/9442691 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String getXmlAttribute(XmlResourceParser xrp, String name) {
int resId = xrp.getAttributeResourceValue(null, name, 0);
if (resId == 0) {
return xrp.getAttributeValue(null, name);
} else {
return mWnn.getString(resId);
}
}
COM: <s> get a attr... |
funcom_train/37104359 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testParseTitles() throws Exception {
assertEquals("Characterization of a protein of the plastid inner envelope having homology to animal inorganic phosphate, chloride and organic-anion transporters.", map1.getFirst("TI"));
assertEquals("Chromosome termini of the monocot plant Othocallis siberic... |
funcom_train/50447015 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void startContext(String context) {
context = CONTEXT_PREFIX + context.toUpperCase();
log.debug("Context started: [" + context + "]");
dataProcessorCache = pluginRegistry.getDataProcessors(context);
if (dataProcessorCache != null) {
for (int i = 0; i < dataProcessorCache.length; ++i) {
... |
funcom_train/2999600 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void add(Section sect) {
if (getSection(sect.getId()) != null) {
throw new IllegalArgumentException("A section with id " + sect.getId() + " has already been added");
}
sections.add(sect);
fireStateChanged(new RREvent(this));
}
COM: <s> add a section to t... |
funcom_train/49009309 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JButton getJButton7() {
if (jButton7 == null) {
jButton7 = new JButton();
jButton7.setText("灰度选择");
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
Filter filter = new GrayLevelFilter();
doFilter(filter,... |
funcom_train/3168457 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public XnRegion with(Position pos) {
return unionWith(pos.asRegion());
/*
udanax-top.st:65255:XnRegion methodsFor: 'operations'!
{XnRegion CLIENT} with: pos {Position}
"the region with one more position. Actually, if I already contain pos, then the result is just me."
^self unionWith: pos asRegion... |
funcom_train/27905388 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void cekTypeForOrderComparison(Node e) {
//System.out.println("cek type "+ /*e.getValue()+*/" for order comparion");
if ((typeStack.top() != TYPE_INT ) && (typeStack.second() != TYPE_INT))
typeError(e, "type mismatched for order comparison, integer required");
}
COM:... |
funcom_train/24640396 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JButton getBrowseButton(JTextField textfield){
JButton button = new JButton("Browse");
button.setActionCommand("Browse");
final Component parent= this;
final JTextField tField = textfield;
button.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
JFile... |
funcom_train/22742325 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addChild(DirElement child, boolean keepParent){
if (!keepParent){
child.setParent(this);
}
DirElement[] temp = new DirElement[children.length +1];
System.arraycopy(children,0,temp,0,children.length);
temp[temp.length -1] = child;
children... |
funcom_train/33280352 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected int getMaxLength() {
final String maxLength = getMaxLengthAttribute();
if (maxLength.length() == 0) {
return Integer.MAX_VALUE;
}
try {
return Integer.parseInt(maxLength.trim());
}
catch (final NumberFormatException e) {
... |
funcom_train/805746 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void add(WizardCategory category) {
assert invariant() : "PRE: The invariant holds";
assert category != null : "PRE: The category is an instance";
assert category.getParent() == this : "PRE: This is the category's parent";
categories.add(category);
assert categories.contains(category) : "POST:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.