__key__ stringlengths 16 21 | __url__ stringclasses 1
value | txt stringlengths 183 1.2k |
|---|---|---|
funcom_train/30260515 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private QuserSessionContext login(String organization, String login, String pass, Map env) throws QClientAuthException {
if (LOG.isTraceEnabled()) {
LOG.trace("Entering login ...");
}
try {
QuserAuthenticationDelegate auth = new QuserAuthenticationDelegate((Properties)null);
QuserSessionContext pr... |
funcom_train/49263406 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void create() {
validate();
if (emError.hasError()) {
return;
}
SqlServerGroup group = new SqlServerGroup(txName.getText().trim());
SqlServerGroup.addGroup(group, lsLocation.getSelectionIndex());
try {
ServerSerializer.getInstance().save();
} catch (FileNotFoundException e) {
e.... |
funcom_train/32057547 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testNotifyCellChange() {
System.out.println("testNotifyCellChange");
Vector v = new Vector();
JGraph j = new JGraph( new DefaultGraphModel() );
DefaultGraphSelectionModel dg = new DefaultGraphSelectionModel(j);
dg.notifyCellChange(v);
}
COM: <s... |
funcom_train/33639432 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Iterator getRelated() {
ArrayList related = new ArrayList(m_edges.size());
for (int i = 0; i < m_edges.size(); i++) {
Edge e = (Edge)m_edges.get(i);
related.add(e.getOtherNode(this));
}
return(related.iterator());
}
COM: <s> returns all nodes that are incident with adjacent... |
funcom_train/25787523 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected Reference getMailRef(String identifier) throws ResourceException {
final Template mailTemplate = new Template(getMailUriTemplate());
Reference result = new Reference(mailTemplate.format(new MailResolver(
identifier)));
if (result.isRelative()) {
r... |
funcom_train/7518258 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void delete(ProcessoAndamento entity) {
EntityManagerHelper.log("deleting ProcessoAndamento instance",
Level.INFO, null);
try {
entity = getEntityManager().getReference(ProcessoAndamento.class,
entity.getId());
getEntityManager().remove(entity);
EntityManagerHelper.log("delete succes... |
funcom_train/37004889 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void assembleMapCuChange(Object refactoringParticipant) {
for (CompilationUnitEx cu : changes.keySet()) {
TextChange textChange = RefactoringCoreUtils.getTextChange(
refactoringParticipant, cu.getCompilationUnit().getResource());
mapCuChange.put(cu, t... |
funcom_train/43213729 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public long getTimeSpentDeleting() {
long time = timeSpentDeleting;
// If currently doing this activity, increment time by run time of this
// current activity.
if (this.currentActivity == HashSpanFixingThread.ACTIVITY_DELETING) {
time += (TimeUtil.getTrancheTimesta... |
funcom_train/42646434 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int readByte() {
int returnValue = -1;
try {
InputStream in = getCorrectInputStream();
if (in != null)
returnValue = in.read();
}
catch (IOException e) {
logger.log(Level.FINE, "Error reading from temporary file ", e);... |
funcom_train/19619530 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void registerSourceRoots() {
if (sourceRoot != null) {
getLog().info("Registering compile source root " + sourceRoot);
project.addCompileSourceRoot(sourceRoot.toString());
}
if (testSourceRoot != null) {
getLog().info(
"Registering compile test source root " + testSourceRoot);
p... |
funcom_train/24569495 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setAverageCharacterWidthTestString(String newTestString) {
checkNotBlank(newTestString, "The test string must not be null, empty, or whitespace.");
String oldTestString = averageCharWidthTestString;
averageCharWidthTestString = newTestString;
changeSupport.firePrope... |
funcom_train/28867801 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void report() {
SourcePoint pt = point == null ? new SourcePoint("*unknown*", 0, 0, 0, 0) : point;
pt.report();
Terminal.print(" ");
Terminal.printRed(errorType);
Terminal.print(": ");
Terminal.print(message);
Terminal.print("\n");
if (STA... |
funcom_train/38288120 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private int getCurrentWizardKind() {
assert !wizards.isEmpty();
if (wizards.size() == 1)
return CURRENT_EXPORT_CLASS;
final OnePageWizard< ? extends BaseWizardPage> last = wizards
.get(wizards.size() - 1);
if (last.getPage() instanceof CoordinatorConfiguratorWizardPage)
return CURRENT_CONFIG;
... |
funcom_train/29985682 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setHeader (String type, String value) {
int s = headers.size ();
for (int i = 0; i < s; i++) {
Header h = headers.get (i);
if (h.type.equalsIgnoreCase (type)) {
h.value = value;
return;
}
}
Header h = new Header (type, value);
headers.add (h);
}
COM: <s> set or re... |
funcom_train/2289714 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean isValidURL(String inputString) {
boolean isValid = false;
try {
if (inputString != null) {
URL tempURL = new URL(inputString);
isValid = (tempURL.getProtocol() != null);
}
} catch (MalformedURLException mue) {
... |
funcom_train/31359908 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void roundExecutionFinished( RoundExecutionFinished ref ) {
log.debug("Received roundExecutionFinished from player: "+ ref.getPlayerId()+", expected: "+caller.getPlayerId() );
if (ref.getPlayerId() == caller.getPlayerId() ) {
clientFacadeImpl.getServer().roundExecutionFinished( calle... |
funcom_train/28224612 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void createHelpMenu(final MenuItem header) {
if (helpMenu != null) {
helpMenu.dispose();
}
helpMenu = new Menu(shell, SWT.DROP_DOWN);
MenuItem helpAboutItem = new MenuItem(helpMenu, SWT.PUSH);
helpAboutItem.setText("&About");
helpAboutItem.addSelectionListener(new SelectionAdapter() {
... |
funcom_train/49626527 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private Element readBundleXML() {
try {
Element config = new SAXBuilder().build(
new File(this.baseDir, "bundle.xml")).getRootElement();
this.watchResources.add(new FileResource(new File(this.baseDir,
"bundle.xml")));
return config;
} catch (Exception e) {
throw new LifecycleException(
... |
funcom_train/50156567 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected Element getInputElement() {
/* have to first test to see if we are rendering an optional, simpleContent element. if so,
then we must test to see if the parent exists before creating the inputElement
*/
Element inputElement = super.getInputElement();
if (schemaNode.isSimpleOrComplexContent(... |
funcom_train/50608954 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void cancel() {
if (cancel_as_close) {
System.gc();
System.exit(0);
}
String string1 = "Yes";
String string2 = "No";
Object[] options = {string1, string2};
int n =
JOptionPane.showOptionDialog(null,
"Are you sure you want leave \n"+
"the instalation wizard ?",
... |
funcom_train/44011337 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testSetStartDate() {
System.out.println("setStartDate");
String startDate = "";
CouponBO instance = new CouponBO();
instance.setStartDate(startDate);
// TODO review the generated test code and remove the default call to fail.
... |
funcom_train/11704311 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Properties getComponentEnvVars() throws IOException {
// get all environment variables that are specified for the current pear file
Properties pearEnvProps = InstallationController.buildTableOfEnvVars(this
.getInstallationDescriptor());
// removes the UIMA datapath setting if ava... |
funcom_train/21954090 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void closeFolderDisplay(){
Runnable runMe = new Runnable() {
public void run() {
try {
saveWindowSettings();
setClosed(true);
} catch (java.beans.PropertyVetoException e) {
}
}
};
if (SwingUtilities.isEventDispatchThread... |
funcom_train/12157084 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void iterate(OutputStyledElementIteratee iteratee) {
if (iteratee == null) {
throw new IllegalArgumentException("iteratee may not be null");
}
IterationAction action = IterationAction.CONTINUE;
Iterator elements = elementList.iterator();
while (acti... |
funcom_train/11731800 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addNameValue(Document doc, String fieldName, Name internalValue) {
try {
String normValue = mappings.getPrefix(internalValue.getNamespaceURI())
+ ":" + internalValue.getLocalName();
doc.add(createFieldWithoutNorms(fieldName, normValue,
... |
funcom_train/7601399 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setConfigurationPanel() {
portChoice.select(parameters.getPortName());
baudChoice.select(parameters.getBaudRateString());
flowChoiceIn.select(parameters.getFlowControlInString());
flowChoiceOut.select(parameters.getFlowControlOutString());
databitsChoice.select(parameters.get... |
funcom_train/28672839 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addDestroyMethodPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_BeanType_destroyMethod_feature"),
getString("_UI_Property... |
funcom_train/7965388 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void assertGenesFormPermutation(final int[] genes) {
final int chromosomeLength = genes.length;
int[] genesCount = new int[chromosomeLength];
for (int i = 0; i < chromosomeLength; i++) {
genesCount[genes[i]]++;
}
for (int i = 0; i < chromosomeLength; i++) {
Assert.asser... |
funcom_train/29396659 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void append(InstructionHandle ih) {
if (isEmpty()) {
end = ih;
start = ih;
ih.prev = null;
ih.next = null;
} else {
end.next = ih;
ih.prev = end;
ih.next = null;
end = ih;
}
... |
funcom_train/16269405 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Friend removeFriend(String host) {
InetAddress iad = null;
Friend ret = null;
try {
iad = InetAddress.getByName(host);
ret = (Friend) _friends.remove(iad);
}
catch (UnknownHostException ex) {
Log.warn(ex.getMessage());
... |
funcom_train/9558953 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Image get(ImageDescriptor descriptor) {
if (descriptor == null)
descriptor= ImageDescriptor.getMissingImageDescriptor();
Image result= (Image)fRegistry.get(descriptor);
if (result != null)
return result;
Assert.isTrue(fDisplay == Activator.getStandardDisplay(), "Allocating image for wr... |
funcom_train/33606796 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void drawSegment(Graphics2D gr, Point3D coord1, Point3D coord2, PathStyle style) {
Point3D[] clipped = P3DUtils.clipSegment(proj.clipPoint, proj.tDir, new Point3D[]{coord1, coord2});
if (clipped != null)
style.draw(gr, new Line2D.Double(proj.getWindowPointOf(coord1), proj.ge... |
funcom_train/45878757 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public UnitValue getRainPerImpulse() throws IOException {
if (rainPerImpulse == null) {
byte[] nibbles = device.read(MemoryMap.RAIN_PER_IMPULSE, 2);
double mmPerImpulse = Device.binary(nibbles, 0, 3) / 1000.0;
rainPerImpulse = new UnitValue(mmPerImpulse, RainfallUn... |
funcom_train/27824061 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean moveIntoForegroud(Node node,List list) {
Iterator iterator=list.iterator();
while (iterator.hasNext()) {
Node current=(Node)iterator.next();
if (node==current) {
iterator.remove();
list.add(node);
return ... |
funcom_train/28763239 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void set_Id(java.lang.String value) throws com.intersys.objects.CacheException {
com.intersys.cache.Dataholder dh = new com.intersys.cache.Dataholder (value);
mInternal.setProperty(ii__Id, jj__Id,kk__Id, com.intersys.objects.Database.RET_PRIM, "Id", dh);
return;
}
COM: <s>... |
funcom_train/44837046 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String showLayout(Object page) throws SavusPOException {
//cast the page to the correct object
RegistrationHTML registrationPage = (RegistrationHTML) page;
// Shows all information of the page
super.showLayout(registrationPage);
//code to work with the page goes here
// disable resultTable... |
funcom_train/34340508 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Command getEnter() {
if (Enter == null) {//GEN-END:|22-getter|0|22-preInit
// write pre-init user code here
Enter = new Command("Enter", Command.OK, 0);//GEN-LINE:|22-getter|1|22-postInit
// write post-init user code here
}//GEN-BEGIN:|22-getter|2|
... |
funcom_train/43060456 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected int countNoTuples(String input, String fileType) {
BufferedReader r = null;
try {
r = new BufferedReader(new FileReader(input + fileType));
int count = 0;
while (r.readLine() != null) {
count++;
}
log.info("No of Tuples: " +count);
return count;
} catch (IOException e) {
... |
funcom_train/16453844 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String getClassName(File file) throws IOException {
BufferedReader br = new BufferedReader(new FileReader(file));
try {
String firstLine = br.readLine();
if (firstLine != null) {
Matcher matcher = Pattern.compile(".*\\s([\\w.]+)").matcher(firstLine.trim());
if (matcher.matches()) {
... |
funcom_train/24933333 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addBFSLogClassesToProblem(Collection<MClass> classes, Problem problem) {
PriorityQueue<MClass> classes_queue = new PriorityQueue<MClass>(classes.size(),new ClassComparator());
classes_queue.addAll(classes);
double classes_number = Math.log(classes.size());
traverseBFS(problem, classes_... |
funcom_train/24569319 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testLabelForUnfocusableField() {
builder.add(labelWithoutMnemonic, cc.xy(1, 1));
builder.add(unfocusableField, cc.xy(3, 1));
assertNull("Labeling label",
labelWithoutMnemonic.getLabelFor());
}
COM: <s> checks the association between label and unfocu... |
funcom_train/23173568 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void autoCalculateDuration () {
float distance;
float avgSpeed;
// get distance and AVG speed
try {
distance = getDistanceEntry (false);
avgSpeed = getAvgSpeedEntry (false);
}
catch (STException se) {
return;
... |
funcom_train/45388858 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public RecInfo find( String name ) {
for ( int i = 0; i < recList.size(); i++ )
if ( ( ( RecInfo )recList.elementAt( i ) ).getName().equals( name ) )
return ( RecInfo )recList.elementAt( i );
return null;
}
COM: <s> find searches in the local cache for... |
funcom_train/9908484 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void loadFrameIcon() {
URL imgUrl = null;
ImageIcon imgIcon = null;
imgUrl = AddressFrame.class.getResource("resource/addressbook32.gif");
imgIcon = new ImageIcon(imgUrl);
Image img = imgIcon.getImage();
this.setIconImage(img);
} ... |
funcom_train/42944207 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int getMinimumPacketLength() {
if (this.minReadLength > 0) {
return this.minReadLength;
}
else if (this.isTextPackets()) {
return 1; // at least '\r' (however, this isn't used for text packets)
}
else {
return this.getMaximumPacketLength();
}
}
COM: <s> return... |
funcom_train/2713907 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void init(EditorContext context) {
this.viewLineNumber = context.getConfiguration().getGeneralConfig().
getGeneral().isViewLineNumber();
// Update the menu state as well
ActionManager.getActionById(MenuConstants.VIEW_LINE_NUMBER).setSelected(
this... |
funcom_train/51342132 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setAction(final OverflowActionEnum action) {
if(action == null)
throw new IllegalArgumentException();
if (!lock.isHeldByCurrentThread())
throw new IllegalMonitorStateException();
if (actionRef.get() != null) {
throw new Illega... |
funcom_train/15814447 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void RemoveXmlFile(String str_xml_file) {
try {
File file_xml_file_remove = new File(str_xml_file);
file_xml_file_remove.delete();
} catch (Exception e) {
logger.error("Exception On xml_file delete: "+e);
}
}
COM: <s> method to remove a xml file </s>
|
funcom_train/10633204 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testAdd_unorder_Simple() throws NamingException {
int count = 5;
Person[] persons = new Person[count];
for (int i = 0; i < count; i++) {
persons[i] = Person.getInstance();
assertTrue(unorderedAttribute.add(persons[i]));
}
for (int i = 0; i < count; i++) {
assertSame(persons[i], u... |
funcom_train/35111973 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public JSONObject getPollingUnreadCount() throws PlurkException {
try {
HttpGet method = (HttpGet) PlurkActionSheet.getInstance()
.getPollingUnreadCount(config.args().getMap());
return JsonUtils.toObject(executor.execute(method));
} catch (Exception ... |
funcom_train/20042458 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void _loadModuleByImplName() {
log.println("Load module LOWERCASE_UPPERCASE");
oObj.loadModuleByImplName("LOWERCASE_UPPERCASE", loc);
String name = oObj.getName();
boolean res = name.equals("lower_to_upper(generic)");
log.println("getName return: " + name);
... |
funcom_train/49318841 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void finishFigure() {
if (figure != null) {
graphics.clearSelection();
if (figure instanceof RoiFigure) {
((RoiFigure) figure).updateGeometry();
}
graphics.select((CanvasFigure) figure);
figure = null;
}
... |
funcom_train/37590632 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void _setThreadCellFont(int row) {
DebugThreadData currThread = _threads.get(row);
if (currThread.getUniqueID() == _currentThreadID &&
currThread.isSuspended()) {
setFont(getFont().deriveFont(Font.BOLD));
}
}
COM: <s> sets the font for a cell in t... |
funcom_train/5714096 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testEmptyFlushing() throws IOException{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
BitOutputStream bos = new BitOutputStream(baos);
bos.flush();
byte[] bytes = baos.toByteArray();
assertEquals("check length of returned bytes", 0, byte... |
funcom_train/23267872 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetFechaCobranza() {
System.out.println("getFechaCobranza");
Giros instance = new Giros();
String expResult = "";
String result = instance.getFechaCobranza();
assertEquals(expResult, result);
// TODO review the generate... |
funcom_train/6407176 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setFrame( Vector3f location, Quaternion axes ) {
this.location = location;
left = axes.getRotationColumn( 0, left );
up = axes.getRotationColumn( 1, up );
direction = axes.getRotationColumn( 2, direction );
onFrameChange();
}
COM: <s> code set frame cod... |
funcom_train/126781 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Task newTask(final String command, final String[] arguments, final HashMap inputFiles, final String inputStream) {
Task task = null;
if(currentTaskCount < maxTaskCount) {
task = new Task(this, command, arguments, inputFiles, inputStream, maximumCPUPower / maxTaskCount, serialTaskRef);
task... |
funcom_train/35095486 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void mouseDragged(MouseEvent e) {
if (inGesture) {
long when = System.currentTimeMillis();
previous.update(e.getPoint());
for (GestureListener l : listeners) {
l.gestureMovement(when, previous, this);
}
co... |
funcom_train/11720035 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void depopulateContext(Context ctx) {
Iterator iter = cl.getAllParameters();
while (iter.hasNext()) {
AbstractParameter param = (AbstractParameter) iter.next();
String ctxKey = param.getContextKey();
log.debug("remove ctx attr: " + ctxKey + "=" + para... |
funcom_train/19528130 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean testData(Object testItem, DataGeneratorContext context) {
//no real way to tell if the testItem is valid. Could try to break up the String
//using the delimiter and test each individual item, but that assumes that the delimiter
//string does not appear in items thems... |
funcom_train/46378293 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removeMouseListener(MouseListener listener) {
if (app == null) {
return;
}
synchronized (app.getAppCleanupLock()) {
synchronized (this) {
if (mouseListeners == null) {
return;
}
mous... |
funcom_train/50503393 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void delete() {
if(ch.orcasys.editor.panel.dlog.Message.confirm(null, "Confirm deletion", "Do you really want to delete\nthe resource env reference '" + getName() + "'?")) {
desc.removeResourceEnvReference(this.getName());
}
}
COM: <s> delete this resource environment r... |
funcom_train/33734336 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public SQLiteDatabase open() {
if(this.database == null) {
log.debug("Database is null, opening connection to " + this.helper.getDatabaseName());
this.database = this.helper.getWritableDatabase();
return this.database;
} else if(!this.database.isOpen()) {
log.debug("Opening connection to " + this... |
funcom_train/39545336 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int getLocationLine(Element elt) {
synchronized (this) {
int hash = elt.hashCode() & 0x7FFFFFFF;
int index = hash % table.length;
for (Entry e = table[index]; e != null; e = e.next) {
if (e.hash != hash)
continue;
... |
funcom_train/22492932 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setPreferredSchema(String preferredSchema) {
String previous = profileSettings.get(PREFERRED_SCHEMA, null);
if (preferredSchema == null) {
profileSettings.removeProperty(PREFERRED_SCHEMA);
} else {
profileSettings.put(PREFERRED_SCHEMA, preferredSche... |
funcom_train/26380950 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void _okButtonActionPerformed(ActionEvent evt) {
_okPressed = true;
_program.setType(_programTypeComboBox.getSelectedIndex());
_program.setArgList(_argumentsTextField.getText());
_program.setCommands(_commandsTextArea.getText());
this.setVisible(false);
}
COM: <s> call... |
funcom_train/41382220 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void display(String output, InputStream in) throws CoreException {
try {
MessageConsole myConsole = LPUIPlugin.getDefault().findConsole(
LPUIPlugin.STANDARD_CONSOLE_NAME);
MessageConsoleStream out = myConsole.newMessageStream();
while (in.available() != 0) {
out.print("" + (char) in.... |
funcom_train/4375808 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void send(OutputStream out) throws IOException {
LOG.trace("enter send(OutputStream out)");
sendStart(out);
sendDispositionHeader(out);
sendContentTypeHeader(out);
sendTransferEncodingHeader(out);
sendEndOfHeader(out);
sendData(out);
sendE... |
funcom_train/41016145 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Cursor fetchWaste(long rowId) {
Cursor cursor = mDb.query(true, DATABASE_TABLE, null, KEY_ROWID + "=" + rowId, null, null,
null, null, null);
if (cursor != null) {
cursor.moveToFirst();
}
return cursor;
}
COM: <s> return a cursor position... |
funcom_train/20816445 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public PFUnit divide (PFUnit parUnits) {
if (parUnits.getUnits () != 0) {
PFUnit tempUnit = (PFUnit) clone ();
tempUnit.setUnits (tempUnit.getUnits () / parUnits.getUnits ());
return (tempUnit);
}
else
return (null);
}
COM: <s> method divide p </s>
|
funcom_train/5738788 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private EJBTestRunner getEJBTestRunner() throws Exception {
InitialContext jndiContext = new InitialContext();
// Get a reference from this to the Bean's Home interface
Object ref = jndiContext.lookup("ejb/EJBTestRunner");
EJBTestRunnerHome runnerHome = (EJBTestRunnerHome)
PortableRemoteObje... |
funcom_train/2301835 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String rootFilename(String filename, Serializable structure) {
int lastIndex = filename.lastIndexOf('.');
if (lastIndex == -1) return filename;
String smallname = filename.substring(0, lastIndex);
if (filename.equals(proposeFilename(smallname, structure)))
re... |
funcom_train/33512289 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void writeEvaluationResultOfEachQuery(String resultFilename) {
try {
PrintStream out =
new PrintStream(new FileOutputStream(resultFilename));
StringBuffer sb = new StringBuffer();
for (int i = 0; i < this.queryNo.length; i++)
sb.append(
queryNo[i]
+ " "
+ Rounding.toStr... |
funcom_train/40350292 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Component appendSeparator(String text) {
ensureCursorColumnInGrid();
ensureHasGapRow(paragraphGapSpec);
ensureHasComponentLine();
setColumn(super.getLeadingColumn());
int columnSpan = getColumnCount();
setColumnSpan(getColumnCount());
Component t... |
funcom_train/17119251 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public FormObject getField(int i) {
if (this.fields.length <= i) {
if (Config.LOGGING_SHOW_MISSING_FIELDS) {
throw new ArrayIndexOutOfBoundsException("the position " + i + " is not available. The size of the array is : " + this.fields.length);
}
}
return this.fields[i];
}
COM... |
funcom_train/8222172 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void createAttributes() {
unchanged = new SimpleAttributeSet();
changed = new SimpleAttributeSet();
changed.addAttribute(StyleConstants.Background, changedColor);
added = new SimpleAttributeSet();
added.addAttribute(StyleConstants.Background, addedColor);
... |
funcom_train/45112495 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void filterCaptureFileAndSetTestAgainstObject(String captureFileName) throws Exception {
StringBuffer buf = appendFilterCommand(buildTSharkCommand(), captureFileName);
WireSharkCliCommand cmd = new WireSharkCliCommand(buf.toString());
cliApplication.handleCliCommand("Filtering capture file", cmd);
... |
funcom_train/36376572 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean isMaxActionLimitAlmostExceeded() {
try {
float maxActions = Integer.parseInt(getMaxActions());
float actions = Integer.parseInt(getMonthlyActions());
maxActionLimitAlmostExceeded = maxActions * 0.8 <= actions && maxActions != 0;
} catch (Exce... |
funcom_train/48455670 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void connect() {
synchronized (this) {
if (connections == 0) {
try {
sock = new Socket(serverAddress, serverPort);
output = new PrintWriter(sock.getOutputStream(), true);
input = new BufferedReader(new InputStreamReader(sock
.getInputStream()));
output.println(username)... |
funcom_train/8080520 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected int assignIDs(int lastID) {
int currLastID = lastID + 1;
m_id = currLastID;
if (m_left != null) {
currLastID = m_left.assignIDs(currLastID);
}
if (m_right != null) {
currLastID = m_right.assignIDs(currLastID);
}
return currLastID;
}
COM: <s> assigns a uniqu... |
funcom_train/2294826 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addRepositoryClass(I_CmsRepository rep) throws CmsConfigurationException {
// check if new repositories can still be added
if (m_frozen) {
throw new CmsConfigurationException(Messages.get().container(Messages.ERR_NO_CONFIG_AFTER_STARTUP_0));
}
m_reposi... |
funcom_train/8094971 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void initOutputLocators(Instances data, int[] indices) {
if (indices == null) {
m_OutputStringAtts = new StringLocator(data);
m_OutputRelAtts = new RelationalLocator(data);
}
else {
m_OutputStringAtts = new StringLocator(data, indices);
m_OutputRelAtts = new R... |
funcom_train/20923085 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void displayImage() {
if (_imageSource == null && _image == null) {
_imageSource = new MemoryImageSource(_width, _height,
ColorModel.getRGBdefault(), _pixels, 0, _width);
_imageSource.setAnimated(true);
_image = createImage(_imageSource);
... |
funcom_train/38737633 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public XNoteData getData() {
noteData.pn_text = text.getText();
/* Save the size and position of the note. */
Point pt = text.getSize();
noteData.pn_textw = pt.x;
noteData.pn_texth = pt.y;
pt = text.getLocation();
noteData.pn_shellx = pt.x;
note... |
funcom_train/10590756 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void outputSuperClassInheritance(ContentHandler handler, JavaClass jClass, int mode) throws SAXException {
JavaClass superClass = getJavadocSuperClass(jClass);
if (superClass != null && hasInheritance(jClass, mode)) {
outputClassInheritance(handler, superClass, mode);
... |
funcom_train/51526471 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public File returnNewFile(String filePath){
try {
File file = new File(filePath);
BufferedWriter br = new BufferedWriter(new FileWriter(file));
for(Transaction t: tranList){
StringBuffer b = new StringBuffer();
for(Item i: t.getItems()){
b.append(i.getItemName()+" ");
}
b.appe... |
funcom_train/22402197 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setChildrenPickable(boolean pickable) {
NodeList nodes = cluster.getNodes();
for (int i = 0; i < nodes.size(); i++) {
nodes.get(i).getView().setPickable(pickable);
}
EdgeList edges = cluster.getInternalEdges();
for (int i = 0; i < edges.size(); i++) {
edges.get(i).getView().s... |
funcom_train/17795993 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void createFieldEditors() {
FileFieldEditor cssFileEditor = new FileFieldEditor(
PreferenceConstants.PREFERENCES_CSS_PATH,
"&Path to stylesheet file (CSS):",
true,
getFieldEditorParent());
cssFileEditor.setFileExtensions(new String[]{"*.css"});
addField( cssFileEditor );
addFi... |
funcom_train/37858053 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public SVNInfo doInfo(SVNURL url, SVNRevision pegRevision, SVNRevision revision) throws SVNException {
final SVNInfo[] result = new SVNInfo[1];
doInfo(url, pegRevision, revision, SVNDepth.EMPTY, new ISVNInfoHandler() {
public void handleInfo(SVNInfo info) {
if (resu... |
funcom_train/36557873 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void getShoesSpecColor(float[] rgbOut) {
if (rgbOut == null || rgbOut.length < 3)
throw new IllegalArgumentException("Unacceptable array provided!");
rgbOut[0] = shoesSpecColor[0];
rgbOut[1] = shoesSpecColor[1];
rgbOut[2] = shoesSpecColor[2];
}
COM: <s> ... |
funcom_train/27785085 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private GraphSource getDayHigh() {
if(dayHighGraphSource == null)
if (indexChart) {
dayHighGraphSource = new OHLCVIndexQuoteGraphSource(quoteBundle, Quote.DAY_HIGH);
} else {
dayHighGraphSource = new OHLCVQuoteGraphSource(quoteBundle, Quote.DAY_HIGH);
}
return dayHighG... |
funcom_train/50957490 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: // protected void initializeEventHandling() {
//// super.initializeEventHandling();
// if (eventsEnabled) {
// eventDispatcher = new org.apache.batik.gvt.event.AWTEventDispatcher();
// if (selectableText) {
// textSelectionManager = null;
//
//... |
funcom_train/15512824 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected File getConfigDir() {
File userHome = new File( System.getProperty("user.home") );
File configDir = new File( userHome, ".net/pandoragames/FAR");
if(( ! configDir.isDirectory() ) && ( ! configDir.mkdirs() )) {
throw new ConfigurationException("Configuration directory " + configDir.getPath() + ... |
funcom_train/51272308 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int queryRange(StructuralIdentifier lowKey, StructuralIdentifier highKey, BtreePushOperator results) {
if (currentSize == 0) {
return CONTINUE_WITH_BINSEARCH; // maybe leaf was emptied by deletions
} else {
int pos = binarySearch(keys, lowKey, 0, currentSize - 1);
if (pos < 0... |
funcom_train/38327915 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String generateSimpleRule(int count) {
StringBuffer buf = new StringBuffer();
buf.append("(defrule rule" + count);
buf.append(" (fact nsh" + count + ") => (printout t \"rule" + count);
buf.append(" was fired\" ))" + LINEBREAK);
return buf.toString();
}
COM: ... |
funcom_train/29582221 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String canEvaluate(Term [] t){
if (t.length==2 &&
t[0].getType().intern()==Types.INTEGER_TYPE &&
t[0].getType().intern()==t[1].getType().intern()){
return Types.BOOLEAN_TYPE;
}
return null;
}
COM: <s> this method tells whether this interpreter can evaluate the expres... |
funcom_train/18079162 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String createXhtmlFile(String template){
//replace "_VALUE_" in template to specific value
String replaceContent = template;
for(Iterator it = replacementDictionary.entrySet().iterator(); it.hasNext(); ){
Map.Entry e = (Map.Entry)it.next();
replaceContent = MyHelpingMethods.replace(r... |
funcom_train/19657430 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void update(Observable o, Object arg) {
if (o instanceof SearchField) {
SearchField field = (SearchField) o;
String state = (String) arg;
String table = field.getTableName();
String name = field.getField();
String composite = name + " (" + table + ")";
// add anything new
if (stat... |
funcom_train/9502440 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setLabels() {
setTitle(Plain.Properties);
geoTree.root.setUserObject(Plain.Objects);
delButton.setText(Plain.Delete);
closeButton.setText(geogebra.Menu.Close);
defaultsButton.setText(geogebra.Menu.ApplyDefaults);
geoTree.setLabels();
propPanel.setLabels();
}
COM: <s>... |
funcom_train/4115835 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void commandAction(Command command, Displayable displayable) {
if (command == cancelCommand) { /* Detecting the soft key press. */
Display.getDisplay(zXingMIDlet).setCurrent(zXingMIDlet.getCanvas());
} else if (command == barcodeCommand || command == SELECT_COMMAND) {
if (getSelectedI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.