__key__
stringlengths 16
21
| __url__
stringclasses 1
value | txt
stringlengths 183
1.2k
|
---|---|---|
funcom_train/50700774 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void logError(String message) {
try {
if (errClip != null) {
errClip.start();
}
logDoc.insertString(logDoc.getLength(), "error", logText.getStyle("ErrorIcon"));
logDoc.insertString(logDoc.getLength(), message + "\n", logText.getStyle("ErrorText"));
} catch (BadLocationException ble) {
}
}
COM: <s> print an error to the log </s>
|
funcom_train/44568195 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void targetFinished(BuildEvent event) {
if (Project.MSG_INFO <= msgOutputLevel) {
String msg = " </pre>" + StringUtils.LINE_SEP + "</div>";
printMessage(msg, out, event.getPriority());
log(msg);
}
}
COM: <s> no op implementation </s>
|
funcom_train/9235543 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void saveSettings() {
modesPanel.save();
settingsPanel.save();
performPanel.savePerforms();
ignoreList.saveList();
final Identity identity = server.getNetworkIdentity();
identity.setOption("dialogstate", "serversettingsdialog",
String.valueOf(tabbedPane.getSelectedIndex()));
}
COM: <s> saves the settings from this dialog </s>
|
funcom_train/28339458 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public CorrelationMatrix computeCovariance() {
PhaseVector vecMean = this.getMean();
PhaseMatrix matCorrel = this;
PhaseMatrix matAve2 = vecMean.outerProd(vecMean);
CorrelationMatrix matCov = new CorrelationMatrix(matCorrel.minus(matAve2));
matCov.setElem(IND_HOM,IND_HOM, 1.0); // set the unity homogeneous diagonal
return matCov;
}
COM: <s> compute and return the covariance matrix of the distribution </s>
|
funcom_train/8534308 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private Map getAttributesMap() {
if (fAttributes == null) {
fAttributes = new HashMap();
for (Iterator iterator = getAttributes(fNode); iterator.hasNext();) {
Object attr = iterator.next();
XMLName name = getAttributeName(attr);
String value = getAttributeValue(attr);
fAttributes.put(name, value);
}
}
Map attributes = fAttributes;
return attributes;
}
COM: <s> returns a map with attribute names </s>
|
funcom_train/32100141 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean writeSGstate(String fileStr)
{ /* writeSGstate */
if(fileStr==null)
return(false);
String
sData= getStateStr();
boolean ok= false;
if(sData!=null)
{
ok= cvt.fio.writeStringToFile(fileStr, sData);
}
return(ok);
} /* writeSGstate */
COM: <s> write sgstate write search gui state to </s>
|
funcom_train/3273327 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public float effectiveScanRangeMax(){
float scanRangeMax = 0;
float allowedBoost = 1f;
if(scanners != null){
for(int scan = 0; scan < scanners.length; scan++){
if(scanners[scan].isFunctioning()){
scanRangeMax = allowedBoost * scanners[scan].getRangeMax();
allowedBoost /= ADDITIVE_SCANNER_LIMIT;
}
}
}
return scanRangeMax;
}
COM: <s> get the effective max scan range of the ship equipped </s>
|
funcom_train/46765080 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public RuleFilterModel getRuleFilter(final long ruleFilterId, final IChainStore chain, final ServiceCall call) throws Exception {
IBeanMethod method = new IBeanMethod() { public Object execute() throws Exception {
return SecurityData.getRuleFilter(ruleFilterId, chain, call);
}}; return (RuleFilterModel) call(method, call);
}
COM: <s> same transaction return the single rule filter model for the primary key </s>
|
funcom_train/18582309 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setAdminFocusPanels() {
adminCentricFocusPanels = new FocusPanel[1];
adminCentricFocusPanels[0] = new DoctorFocusFunction();
( (DoctorFocusFunction) adminCentricFocusPanels[0]).populate(userData,
providerData);
mainFrame.getTabAt(0).removeAllFocusPanels();
mainFrame.getTabAt(0).setAdminCentricFocusPanels(adminCentricFocusPanels);
}
COM: <s> add sadmin same as user for now focuspanel to the admin tab </s>
|
funcom_train/11726684 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int compareTo(Object o) {
if (this == o) {
return 0;
}
Name other = (Name) o;
if (namespaceURI.equals(other.getNamespaceURI())) {
return localName.compareTo(other.getLocalName());
} else {
return namespaceURI.compareTo(other.getNamespaceURI());
}
}
COM: <s> compares two code name code s </s>
|
funcom_train/21616592 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean checkSTF(String input) {
boolean seenDot = false;
for(int i=0;i<input.length();i++) {
if (input.charAt(i)=='.' && seenDot)
return false;
else if (input.charAt(i)=='.')
seenDot = true;
else if(!Character.isDigit(input.charAt(i)))
return false;
}
return true;
}
COM: <s> checks a string to see if it is a valid float </s>
|
funcom_train/12180908 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removeTargetChildren() {
if (delegates != null) {
List targetList = delegates.getTargets();
if (targetList != null) {
Iterator it = targetList.iterator();
while (it.hasNext()) {
Element target = (Element) it.next();
if (target != null) {
target.removeChildren();
}
}
}
}
}
COM: <s> remove children of the current selection </s>
|
funcom_train/9117773 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JButton getJConnectButton() {
if (jConnectButton == null) {
jConnectButton = new JButton();
jConnectButton.setText("Connect");
jConnectButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
runSetup(jServerHostTextField.getText(), jServerPortTextField.getText());
}
});
}
return jConnectButton;
}
COM: <s> this method initializes j connect button </s>
|
funcom_train/44871806 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removePointAt(int i) {
if (i < 0 || i >= pointCt)
throw new IllegalArgumentException("Point index out of range: " + i);
pointCt--;
for (int j = i; j < pointCt; j++) {
xCoords[j] = xCoords[j + 1];
yCoords[j] = yCoords[j + 1];
}
if (style == SMOOTH) {
style = -1; // force recompute of data
setStyle(SMOOTH);
}
}
COM: <s> removes the i th point from the list of points </s>
|
funcom_train/47398727 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void updatedConnection(final IConnection con) {
Runnable runnable = new Runnable() {
public void run() {
int index = m_connections.indexOf(con);
if(index != -1) {
fireTableRowsUpdated(index, index);
}
}
};
SwingUtilities.invokeLater(runnable);
}
COM: <s> existing connected connection update notification </s>
|
funcom_train/32761262 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public PreparedStatement getCategoryEntryAssociationStatement() {
try {
final String sql = "INSERT INTO logbook.log_entry_categories ( log_entry_id, cat_id ) VALUES (?, ?)";
return _connection.prepareStatement( sql );
}
catch( SQLException exception ) {
exception.printStackTrace();
throw new RuntimeException( "Exception getting an insert statement for inserting an entry-category record.", exception );
}
}
COM: <s> get the prepared statement for associating a new entry with a category </s>
|
funcom_train/2301941 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void moveAutomatonStates() {
Object[] vertices = vertices();
for (int i = 0; i < vertices.length; i++) {
State state = (State) vertices[i];
Point2D point = pointForVertex(state);
state.setPoint(new Point((int) point.getX(), (int) point.getY()));
}
}
COM: <s> moves the states of the underlying automaton to synchronize </s>
|
funcom_train/40685553 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addInfoWindowCloseHandler(final MapInfoWindowCloseHandler handler) {
maybeInitInfoWindowCloseHandlers();
infoWindowCloseHandlers.addHandler(handler, new VoidCallback() {
@Override
public void callback() {
MapInfoWindowCloseEvent e = new MapInfoWindowCloseEvent(MapWidget.this);
handler.onInfoWindowClose(e);
}
});
}
COM: <s> this event is fired when the info window closes </s>
|
funcom_train/947616 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void setUp() throws Exception {
File f = new File("Test.sql");
sc = new SqlCounter(f);
fc = new SQLFileCreator("Test.sql");
fc.Write();
File ffail = new File("NotExist.sql");
scfail = new SqlCounter(ffail);
}
COM: <s> standard junit set up method creates an sql test file </s>
|
funcom_train/4561048 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int getSupplierIndexFor(String supplierAddress, int productID) {
for (int i = 0; i < supplierCount; i++) {
if (supplierData[i].productID == productID
&& supplierData[i].supplier.equals(supplierAddress)) {
return i;
}
}
return -1;
}
COM: <s> returns the supplier product line report index for the specified </s>
|
funcom_train/32766229 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removeHandler( final MessageHandler handler ) {
Class protocol = handler.getProtocol();
Object source = handler.getSource();
Object protocolKey = protocolKey( protocol );
if ( protocolTable.containsKey( protocolKey ) ) {
Map sourceTable = (Map)protocolTable.get( protocolKey );
sourceTable.remove( source );
}
}
COM: <s> remove the handler from the table </s>
|
funcom_train/1678292 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean logFilesExist(Set fileNumbers) {
Iterator iter = fileNumbers.iterator();
while (iter.hasNext()) {
long fileNum = ((Long) iter.next()).longValue();
File file = new File
(envHome,
FileManager.getFileName(fileNum, FileManager.JE_SUFFIX));
if (!file.exists()) {
return false;
}
}
return true;
}
COM: <s> returns true if all files exist or false if any file is deleted </s>
|
funcom_train/18489523 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setValue(final Boolean value) {
if (value == null) {
this.value = null;
return;
}
if (!Boolean.class.equals(type)) {
throw new ClassCastException("expected argument type was "
+ type + ", but given argument is of type "
+ type.getClass().getName());
}
this.value = value;
}
COM: <s> set code boolean code parameter value </s>
|
funcom_train/20364810 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testAssetListType() {
TraitList assetList = new TraitList(TraitType.ASSET);
assetList.add( createMinorAsset("SomeAsset") ) ;
try {
assetList.add( createMinorComplication("SomeComplication"));
fail("IllegalArgumentException should have been thrown when attempting to add a" +
" Complication to an Asset list.");
} catch (IllegalArgumentException iae1 ) {
//Expected
}
}
COM: <s> test that only assets can be added to asset lists </s>
|
funcom_train/46150669 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void fireDataCommand (DataCommand command) {
this.saveDataCommand(command);
//System.out.println(command.getType().toString() + " -> " + command.getValue());
//System.out.println();
try {
this.processCommand(command);
} catch (Exception e) {
e.printStackTrace();
}
//this.data.push(command);
//if (data.size() > MAX_HISTORY)
// data.remove(data.lastElement());
this.notifyListeners(command);
}
COM: <s> fire a data command it gets stored and passed to all listeners </s>
|
funcom_train/7432217 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public DavResource createResource(DavResourceLocator locator, DavSession session) throws DavException {
try {
PYDavResourceImpl res = new PYDavResourceImpl(locator, this, session, resourceConfig);
res.addLockManager(lockMgr);
return res;
} catch (RepositoryException e) {
throw new JcrDavException(e);
}
}
COM: <s> create a new code dav resource code from the given locator and webdav </s>
|
funcom_train/27683049 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean hasDateRolledOver() {
int todaysDayOfWeek = Calendar.getInstance().get(Calendar.DAY_OF_YEAR);
Calendar logOpenedCalendar = Calendar.getInstance();
logOpenedCalendar.setTime(dateOpened);
int logOpenedDayOfWeek = logOpenedCalendar.get(Calendar.DAY_OF_YEAR);
return (todaysDayOfWeek != logOpenedDayOfWeek);
}
COM: <s> checks the current date verses the date the log was opened </s>
|
funcom_train/51119265 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void next() {
if (current != null) {
int index = playList.indexOf(current);
if (index < playList.size() - 1) {
current = (Song) playList.get(index + 1);
if (isPlaying()) play();
} else {
current = null;
if (size() > 0)
current = (Song) playList.getFirst();
stop();
}
} else
if (isPlaying()) play();
playlistChange();
}
COM: <s> move to next song in playlist </s>
|
funcom_train/1367540 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private Date parseTime(String time) throws CalDAV4JException {
if (time != null && !"".equals(time)) {
if ("NOW".equals(time)) {
return new DateTime(true);
} else {
try {
if (time.length()>8) {
return new DateTime(time);
} else {
return new Date(time);
}
} catch (ParseException e) {
throw new CalDAV4JException("Unparsable date format in query:"+time, e);
}
}
}
return null;
}
COM: <s> parses a string to a date using the following syntax </s>
|
funcom_train/4659415 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void populateClickListenerName() {
String listenerName;
if (clickListener != null) {
listenerName = evaluateExpression(clickListener);
addParameter("customClickListener", true);
} else {
listenerName = YUITools.sanitizeForJavascript(getId()+"Click");
addParameter("customClickListener", false);
}
addParameter("clickListener", listenerName);
}
COM: <s> generate the javacscript click listener name if not explictly specified </s>
|
funcom_train/12115305 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private MemoBean makeMemoBean() {
MemoBean result = new MemoBean();
result.type=contentType;
result.value= new String[valuesNumber];
for(int i=0; i<valuesNumber; i++) {
result.value[i]=new String(fields[i].getString());
}
if (memoBean!=null)
result.databasePosition=memoBean.databasePosition;
return result;
}
COM: <s> method make memo bean </s>
|
funcom_train/14462516 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removeSeries(int index) {
int nSeries= -1;
for (int i=0;i<chartArr.size();i++) {
BiffRec b = (BiffRec)chartArr.get(i);
if (b.getOpcode()==SERIES) {
if (++nSeries==index) {// this is the one to delete
chartArr.remove(i);
break;
}
}
}
}
COM: <s> remove desired series from chart </s>
|
funcom_train/35742194 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public QueryHandlerMetric getQueryHandlerMetric(String handlerName) {
for (Iterator i = queryHandlerMetrics.iterator(); i.hasNext();) {
QueryHandlerMetric queryHandlerMetric = (QueryHandlerMetric) i.next();
if (handlerName.equals(queryHandlerMetric.getHandlerName())) {
return queryHandlerMetric;
}
}
return null;
}
COM: <s> get query handler metrics for the corresponding handler </s>
|
funcom_train/1170531 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addOriginalKeywords(Card c, ArrayList<String> s) {
ArrayList<String> list = new ArrayList<String>(s);
if (!originalKeywords.containsKey(c)) {
originalKeywords.put(c, list);
} else {
originalKeywords.remove(c);
originalKeywords.put(c, list);
}
}
COM: <s> p add original keywords </s>
|
funcom_train/29837667 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void deactivate() {
// System.out.println("Deactivate "+toString());
if (mouseComp != null) {
mouseComp.removeMouseListener(this);
mouseComp.removeMouseMotionListener(this);
}
if (this.selection != null) {
unDisplayAsMarked(getCompsForElems(this.selection.getElements()));
}
this.isActive = false;
// logger.entering(this.toString(), "deactivate");
}
COM: <s> classes that overwrite this method should call super </s>
|
funcom_train/42709838 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean removeRealization(int hohIdx, int tract) {
PumsHousehold hoh = householdArchTypes[hohIdx];
if(hoh.removeRealization(tract)) {
for (TractSpatialStatistic stat : stats)
stat.modifySS4RemovedPt(hoh, tract, 0);
return true;
}
else
return false;
}
COM: <s> delete a realization of an archtype from a specific tract </s>
|
funcom_train/25791511 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void consumeStatement() throws IOException {
int c = getChar();
while (!isEndOfFile(c) && c != '.') {
c = step();
}
if (getChar() == '.') {
// A further step at the right of the statement.
step();
}
discard();
}
COM: <s> discard all read characters until the end of the statement is reached </s>
|
funcom_train/3115203 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String toString() {
return (super.toString() + "\n" +
"\n" + gobs.toDebugString() +
"\nAdd Filter:\n" + StringLib.indent(addFilter.toString(), 3) +
"\nDraw Filter:\n" + StringLib.indent(drawFilter.toString(), 3) +
"\n" + cmdsubsys.toString());
} // of toString
COM: <s> return debugging information for the entire system </s>
|
funcom_train/4630793 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void drainOutput() throws IOException {
if (((readyOps & SelectionKey.OP_WRITE) != 0)
&& ( ! outputQueue.isEmpty()))
{
outputQueue.drainTo ((WritableByteChannel) channel);
}
// Write selection is turned on when output data in enqueued,
// turn it off when the queue becomes empty.
if (outputQueue.isEmpty()) {
disableWriteSelection();
if (shuttingDown) {
channel.close();
clientHandler.unregistered (this);
}
}
}
COM: <s> if there is output queued and the channel is ready to </s>
|
funcom_train/24060608 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean locate ( String filename ) {
if ( filename == null )
// do not throw the obvious NullPointerException for user data
throw new IllegalArgumentException(
"filename of Encrypted Password Purse must not be null" );
if ( filename.length() < 1 )
throw new IllegalArgumentException(
"filename of Encrypted Password Purse must not be empty" );
this.filename = filename;
this.fileExists = locate();
this.isLocated = true;
return this.fileExists;
}
COM: <s> locate the file holding the purse and prepare to read and write it </s>
|
funcom_train/46381438 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removeUserFromCellChannel(WonderlandClientID clientID) {
if (cellChannelRef == null)
return;
// issue 963: the session may be null if the user is logging out
ClientSession session = clientID.getSession();
if (session != null) {
cellChannelRef.getForUpdate().leave(session);
}
}
COM: <s> remove user from the cells channel </s>
|
funcom_train/4124390 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean showClientOptionsDialog() {
clientOptionsDialog.initialize();
clientOptionsDialogShowing = true;
addAsFrame(clientOptionsDialog);
clientOptionsDialog.requestFocus();
boolean r = clientOptionsDialog.getResponse();
remove(clientOptionsDialog);
clientOptionsDialogShowing = false;
freeColClient.getActionManager().update();
return r;
}
COM: <s> displays a dialog for setting client options </s>
|
funcom_train/21656396 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JButton getBtFechaInicioReal() {
if (BtFechaInicioReal == null) {
BtFechaInicioReal = new JButton();
BtFechaInicioReal.setBounds(new Rectangle(315, 480, 40, 25));
BtFechaInicioReal.setText("...");
BtFechaInicioReal.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
seleccionarFechaInicioReal();
}
});
}
return BtFechaInicioReal;
}
COM: <s> this method initializes bt fecha inicio real </s>
|
funcom_train/46424987 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void add(Object key, Object value) {
String keyStr = (String) key; // assume that the key is a String
if (keyStr.startsWith("Pictures/")) {
addPicture(key, value);
return;
}
if (log.isDebugEnabled()) {
log.debug("add: " + key);
}
files.put(key, value);
}
COM: <s> add a file to the document recognised files are passed into special </s>
|
funcom_train/3381506 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Permission getPermission() {
if (permission == null) {
int port = url.getPort();
port = port < 0 ? FtpClient.FTP_PORT : port;
String host = this.host + ":" + port;
permission = new SocketPermission(host, "connect");
}
return permission;
}
COM: <s> gets the code permission code associated with the host port </s>
|
funcom_train/19215481 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setLookAndFeel(String lookAndFeelPath){
setVisible(false);
dispose();
validate();
try {
UIManager.setLookAndFeel(lookAndFeelPath);
} catch (InstantiationException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
validate();
setVisible(true);
}
COM: <s> currently disabled but sets the look and feel applicationwide </s>
|
funcom_train/2889402 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public ResolveEnum aggregateResolutionState() {
ResolveEnum state = getResolveState();
for (Node n : this) {
if (n instanceof PropertyList) {
PropertyList child = (PropertyList) n;
ResolveEnum childState = child.aggregateResolutionState();
state = state.merge(childState);
}
}
setResolveState(state);
return state;
}
COM: <s> run through the list and update the entire aggregate resolution state </s>
|
funcom_train/28353753 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean startAutoTune() {
if(amActive) {
controller.dumpErr("Tried to turnOn " + sclCavity.getId() + " while it is being turned On");
return false;
}
amActive = true;
try {
autoRunHandler.putVal(1); // start ramp
}
catch (Exception exc) {
controller.dumpErr("can't start power up for " + sclCavity.getId());
return false;
}
return true;
}
COM: <s> initiate the power up of the cavity to its default amplitue </s>
|
funcom_train/2864828 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected Vector getRepeatable(IniFileSection section, String name) {
Vector repeat = new Vector();
String param = null;
for (int i=1; true; i++) {
param = section.getValue(name+i);
if (param != null)
repeat.addElement(param);
else
break;
}
if (repeat.size() > 0)
return repeat;
else
return null;
}
COM: <s> reads repeatable string values from an ini file section returning </s>
|
funcom_train/3761705 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private RuntimeImpl getRuntime(String runtimeClassName) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
if (!runtimeCache.containsKey(runtimeClassName)) {
final Class runtimeClass = Class.forName(runtimeClassName);
final Object runtimeImpl = (RuntimeImpl) runtimeClass.newInstance();
runtimeCache.put(runtimeClassName, runtimeImpl);
}
return (RuntimeImpl) runtimeCache.get(runtimeClassName);
}
COM: <s> return cached runtime or create new of no one </s>
|
funcom_train/18352423 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public CapComponent task(Class capBearingClass) {
Object[] params = new Object[] {
CapProperty.getCapProperty(capBearingClass).getCapDatatype().
getContentClass() };
return (CapComponent)RendererCapComponentFactoryGoal.
fetchRendererCapComponentFactoryGoal().execWithArray(params);
}
COM: <s> default cap property task that recalls renderer factory goal with </s>
|
funcom_train/26324880 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void configureNewUI(JComponent comp) throws FCException {
FCValue[] properties = getSupportedDisplayProperties();
for (int i = 0; i < properties.length; i++) {
FCValue val = getProperty(properties[i]);
if (val != FCValue.EMPTY) {
setPropertyForDisplay(properties[i], val, comp);
}
}
updatePosition();
}
COM: <s> configures a newly created jcomponent as best this class can </s>
|
funcom_train/4531766 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void log(Log log) {
log.info("Counters: " + size());
for(Group group: this) {
log.info(" " + group.getDisplayName());
for (Counter counter: group) {
log.info(" " + counter.getDisplayName() + "=" +
counter.getCounter());
}
}
}
COM: <s> logs the current counter values </s>
|
funcom_train/26072703 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removeInputSynapse(InputPatternListener newListener) {
if (inputPatternListeners != null) {
inputPatternListeners.removeElement(newListener);
newListener.setInputFull(false);
if (newListener instanceof NeuralNetListener) {
removeListener((NeuralNetListener)newListener);
}
if (inputPatternListeners.size() == 0)
inputPatternListeners = null;
}
}
COM: <s> remove an input listener </s>
|
funcom_train/19063824 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetConnectionStringNullString() throws JSCFException {
JSCFDriverManager.registerJSCFDriver(new GPGDriver());
JSCFConnection con = JSCFDriverManager.getConnection("jscf:gpg:", null,
"test");
assertEquals(true, (con != null));
Properties props = con.getProperties();
assertEquals("test", (String) props.get("PASSWORD"));
}
COM: <s> tests if get connection with three string works correct if the second </s>
|
funcom_train/37019908 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean getBoolean(String key, boolean def) {
if (properties.containsKey(key)) {
String value = properties.getProperty(key);
if (value.equalsIgnoreCase("true")) {
return true;
} else if (value.equalsIgnoreCase("false")) {
return false;
}
}
return def;
}
COM: <s> returns the boolean value associated with the specified key </s>
|
funcom_train/15470074 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void generateUuidsForIdentifiedReportsAndPatients() {
for (int x = 0; x < this.iprs.size(); x++) {
this.ipr = (IdentifiedPathologyReport) this.iprs.get(x);
checkPathologyReportForNullUuid(this.ipr, SAVE_LATER);
this.ip = this.ipr.getPatient();
checkPatientForNullUuid(this.ip, SAVE_LATER);
}
}
COM: <s> generate uuids for identified reports and patients </s>
|
funcom_train/26535444 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Object getAttribute(String name, boolean inherit) {
Object result = null;
synchronized (this) {
if (attributes != null) result = attributes.get(name);
}
if (result == null && inherit && parent != null)
return parent.getAttribute(name, true);
else
return result;
}
COM: <s> retrieve an attributes value previously stored on this node </s>
|
funcom_train/23411008 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addFromPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_SceneToTransitionArc_from_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_SceneToTransitionArc_from_feature", "_UI_SceneToTransitionArc_type"),
OMPackage.Literals.SCENE_TO_TRANSITION_ARC__FROM,
true,
false,
true,
null,
null,
null));
}
COM: <s> this adds a property descriptor for the from feature </s>
|
funcom_train/36717766 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void ShrinkParents(int i) {
assert(i >= 0);
// clear out the reference so the Java GC will reap
parents[i]=null;
if(parents.length == 1)
{
parents = new Node[0];
return;
}
Node newnodes[] = new Node[parents.length - 1];
System.arraycopy(parents, 0, newnodes, 0, i);
System.arraycopy(parents, i+1, newnodes, i, newnodes.length - i);
parents = newnodes;
}
COM: <s> shrinks the parents array around a node </s>
|
funcom_train/50336843 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addPressed(ActionEvent e) {
editMode = false;
duplicateMode = false;
if ((sectionManager.getSystemNameList().size()) > 0) {
addEditPressed();
}
else {
javax.swing.JOptionPane.showMessageDialog(null, rbx
.getString("Message21"), rbx.getString("ErrorTitle"),
javax.swing.JOptionPane.ERROR_MESSAGE);
}
}
COM: <s> responds to the add </s>
|
funcom_train/29274055 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Posting getByTermID(int termID) {
if (termID < 0) {
throw new IllegalArgumentException("The term ID to find can't be less " +
"than 0");
}
for (Posting posting : this.postings) {
if (posting.getTermID() == termID) {
return posting;
}
}
return null;
}
COM: <s> gets a term by its id </s>
|
funcom_train/15624173 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void add(final CharSequence keyword, final byte id) {
Node node = rootNode;
for (int i = 0, len = keyword.length(); i < len; i++) {
node = node.define(ignoreCase ? Character.toUpperCase(keyword.charAt(i)) : keyword.charAt(i));
}
node.setId(id);
}
COM: <s> adds a key value mapping </s>
|
funcom_train/49156619 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void commonInit() {
int i;
Integer intObj;
if (toInit) {
toInit = false; // setting here to allow loadData to reset it
// if necessary
loadData();
if (sorted) {
Arrays.sort(rows, this);
}
for (i = 0; i < rows.length; i++) {
if (rows[i] != null) {
intObj = new Integer(i);
keyMap.put(rows[i].getField(keyIdx), intObj);
}
}
}
}
COM: <s> perform common initialise functions </s>
|
funcom_train/48520873 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private EventMapping getEventMapping(Event eventClass) {
// get the fully qualified name of the event class
String eventClassName = eventClass.getClass().getName();
if ((eventMappings != null) && eventMappings.containsKey(eventClassName)) {
return (EventMapping)eventMappings.get(eventClassName);
} else {
return null;
}
}
COM: <s> the event mapping object contains information that will match </s>
|
funcom_train/23883007 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void bindAtom(Atom atom) {
// Bond bond = new Bond(this, atom);
// this.addBond(bond);
// atom.addBond(bond);
if (this.equals(atom)) throw new IllegalArgumentException(
"Trying to add an atom to itself: "+this.toString());
if (! isBound(atom)) {
boundAtoms.add(atom);
atom.bindAtom(this);
}
}
COM: <s> binds the atoms together by linking refs between both atoms </s>
|
funcom_train/10532813 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testProgrammaticInstantiation() throws Exception {
HelloControlBean hc = (HelloControlBean) java.beans.Beans.instantiate(
Thread.currentThread().getContextClassLoader(),
"org.apache.beehive.controls.test.controls.instantiate.HelloControlBean");
assertNotNull(hc);
assertEquals("check", hc.hello("check"));
}
COM: <s> tests instantiating a custom control programmatically </s>
|
funcom_train/28957629 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setElement(IAdaptable element) {
this.element = element;
PreferenceStore prefs = (PreferenceStore) getPreferenceStore();
prefs.setProject((IProject) element.getAdapter(IProject.class));
try {
prefs.load();
} catch (IOException ex) {
Plugin.log("project properties: load failed", ex);
}
}
COM: <s> sets the element that owns properties shown on this page </s>
|
funcom_train/33826405 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void makeFloat(JToolBar toolBar) {
Pair<Point, Pair<Window, Point>> floatInfo = floatInfo(toolBar, location);
Point p = floatInfo.ii.ii; // ancestor location
doFloat(toolBar, p.x, p.y, floatInfo);
}
COM: <s> makes the given code </s>
|
funcom_train/44852685 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setOpenFromAnswered(WorkflowAwareContribution inQuestion, Object[] inArgs) throws WorkflowException, VException, SQLException {
inQuestion.doTransition(WorkflowAwareContribution.TRANS_ADMIN_REOPEN1, inArgs);
reopenAncestors(new ReopenFromAnsweredProcessor(inArgs), inQuestion, inArgs);
}
COM: <s> group admins can reopen questions directly </s>
|
funcom_train/42985482 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void receivedSyncMessage(MessageBlock message) {
recievedScMsg = message;
latestSyncInfo = new UtSyncInfo(recievedScMsg);
//wake the connectToServer method if this is the first sync block recieved
if(gotFirstSync == false) {
System.out.println("done");
mutex.up();
gotFirstSync = true;
}
else {
processSyncMessage(latestSyncInfo);
}
}
COM: <s> the callback method when a sync message has been recieved </s>
|
funcom_train/21983993 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean equals( Object other ) {
if ( other == null ) {
return false;
}
if (!( other instanceof TaxPK )) {
return false;
}
TaxPK rhs = (TaxPK)other;
return ((EqualsUtil.areEqual( rhs.modelId, this.modelId )) &&
(EqualsUtil.areEqual(rhs.internalBillingId, this.internalBillingId)));
}
COM: <s> this method returns true when model id and billing id are equal </s>
|
funcom_train/44708696 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void removePendingVersion(final ContentItem version) {
if (s_log.isDebugEnabled()) {
s_log.debug("Removing pending version " + version);
}
if (Assert.isEnabled()) {
Assert.exists(version, ContentItem.class);
assertDraft();
version.assertPending();
}
removeVersion(version);
}
COM: <s> remove a pending version from the item </s>
|
funcom_train/2380194 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private ProviderTableViewer createTableViewer(Composite parent) {
ProviderTableViewer tableViewer = new ProviderTableViewer(parent, SWT.FULL_SELECTION | SWT.MULTI | SWT.BORDER);
GridData gd = new GridData(GridData.FILL_BOTH);
tableViewer.getControl().setLayoutData(gd);
return tableViewer;
}
COM: <s> create the table </s>
|
funcom_train/30194055 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String ask4LineString() {
StringBuffer input = new StringBuffer();
while (true) {
try {
int read = System.in.read();
if (read == '\r') {
//do leave out
} else if (read == '\n') {
//now we have a end line
break;
} else {
input.append((char) read);
}
} catch (IOException e) {
e.printStackTrace(logWriter);
}
}
return input.toString();
}
COM: <s> method ask4 line string retrieves a line of input delimited by </s>
|
funcom_train/10498399 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private File findMostRecentSnapshot() throws IOException {
List<File> files = Util.sortDataDir(snapShotDir.listFiles(),
"snapshot", false);
for (File f: files) {
try {
if (Util.isValidSnapshot(f))
return f;
} catch(IOException e) {
LOG.info("Invalid snapshot " + f, e);
}
}
return null;
}
COM: <s> find the most recent snapshot </s>
|
funcom_train/31664520 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void set(Range3D r) {
this.xmin = r.getXMinAsDouble();
this.xmax = r.getXMaxAsDouble();
this.ymin = r.getYMinAsDouble();
this.ymax = r.getYMaxAsDouble();
this.zmin = r.getZMinAsDouble();
this.zmax = r.getZMaxAsDouble();
}
COM: <s> set range from range code r code </s>
|
funcom_train/25138387 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public BufferOfItems getValue(ARINCWidget widget, Decoder decoder) throws ARINCRuntimeException {
// clearFlag boolean and number of items
int value = Converter.getUShort(decoder);
boolean clearFlag = (value & 0x8000) != 0; // get the first bit
int nbItems = value & 0x7FFF; // get the 15 others
BufferOfItems bufItems = new BufferOfItems(clearFlag, nbItems);
return bufItems;
}
COM: <s> get the content of a buffer of items parameter only used at runtime </s>
|
funcom_train/38787662 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private InputStream getInputStream(JarFile jarFile, String jarEntryFileName) {
try {
JarEntry entry = jarFile.getJarEntry(jarEntryFileName);
if (entry == null) {
return null;
} else {
return jarFile.getInputStream(entry);
}
} catch (IOException ex) {
ex.printStackTrace();
return null;
}
}
COM: <s> gets the input stream for an individual input file from the jar archive </s>
|
funcom_train/37516474 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean equals(/*@ nullable @*/ Object other ) {
if( this==other ) {
return true;
}
if( !(other instanceof CMethod) ) {
return false;
}
CMethod method = (CMethod) other;
if( !ident().equals( method.ident() ) ) {
return false;
}
if( !this.equalParameters( method )) {
return false;
}
if( !receiverType.equals( method.receiverType ) ) {
return false;
}
return true;
}
COM: <s> returns true if the given object is a code cmethod code and </s>
|
funcom_train/38993056 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void initComponents() {
Container cp = getContentPane();
cp.setLayout(new BorderLayout(4, 4));
cp.add(createProxyPanel(), BorderLayout.CENTER);
cp.add(createControlPanel(), BorderLayout.SOUTH);
pack();
}
COM: <s> creates and layouts the components </s>
|
funcom_train/23947975 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setIdentificationDocuments(String pIdentificationDocuments)
{
if (null != pIdentificationDocuments &&
!pIdentificationDocuments.trim().isEmpty() &&
!pIdentificationDocuments.trim().equals(GeneralConstants.UNDEFINED_TOKEN))
{
List<String> identificationDocumentList = StringUtils.splitDeduplicateAndOrderTokens(pIdentificationDocuments, GeneralConstants.TOKEN_SEPARATOR);
setIdentificationDocumentList(identificationDocumentList);
}
}
COM: <s> set the identification documents </s>
|
funcom_train/10907570 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addConditionalPageMasterReference(ConditionalPageMasterReference cpmr) {
this.conditionalPageMasterRefs.add(cpmr);
if (cpmr.getPagePosition() == EN_LAST) {
this.hasPagePositionLast = true;
}
if (cpmr.getPagePosition() == EN_ONLY) {
this.hasPagePositionOnly = true;
}
}
COM: <s> adds a new conditional page master reference </s>
|
funcom_train/36960944 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void informListeners(String[] descriptions, LoadpathModifierAction[] actions) {
Iterator iterator= fListeners.iterator();
PackageExplorerActionEvent event= new PackageExplorerActionEvent(descriptions, actions);
while(iterator.hasNext()) {
IPackageExplorerActionListener listener= (IPackageExplorerActionListener)iterator.next();
listener.handlePackageExplorerActionEvent(event);
}
}
COM: <s> inform all listeners about new actions </s>
|
funcom_train/41026103 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JTable getJTable() {
if (jTable == null) {
jTable = new JTable(new DefaultTableModel(new String[] {
Messages.getString("BluetoothDiscoveryPanel.address"),
Messages.getString("BluetoothDiscoveryPanel.identifier"),
Messages.getString("BluetoothDiscoveryPanel.name")
}, 0));
jTable.setFont(Matereal.getInstance().getDefaultFont());
}
return jTable;
}
COM: <s> this method initializes j table </s>
|
funcom_train/32649404 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void createWidthRightThemeCheckBox() {
widthRightThemeCheckBox = new ThemeCheckBox(globalComposite, SWT.NONE);
widthRightThemeCheckBox.setText("min.");
widthRightThemeCheckBox.setBindingSubPath("minimizeWidthRight");
widthRightThemeCheckBox.setBindingSubPath("minimizeSpacingRight");
widthRightThemeCheckBox.setEmbeddedInBindableGroup(false);
}
COM: <s> this method initializes width right theme check box </s>
|
funcom_train/25222049 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setClimateStateTableFilename(String climateStateTableFilename) {
String oldClimateStateTableFilename = this.climateStateTableFilename;
if ( !oldClimateStateTableFilename.equals(climateStateTableFilename)) {
this.climateStateTableFilename = climateStateTableFilename;
firePropertyChange(PROP_CLIMATESTATETABLEFILENAME, oldClimateStateTableFilename, this.climateStateTableFilename);
setClimateStatesId(null);
setRunPrepared(false);
}
}
COM: <s> set the value of climate state table filename </s>
|
funcom_train/22929420 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testSendReply_MessageParameter() {
session.sendReply(REPLY_CODE2, REPLY_TEXT2);
session.sendReply(REPLY_CODE2, REPLY_TEXT2_FORMATTED);
replay(session);
commandHandler.setReplyCode(REPLY_CODE2);
commandHandler.sendReply(session);
commandHandler.sendReply(session, ARG);
verify(session);
}
COM: <s> test the send reply session object method </s>
|
funcom_train/38553147 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testConstructor() {
SimpleLogEntry entry = new SimpleLogEntry(null,new Object[] {});
assertEquals("Null constructor should be a null system code",
entry.getSystemCode(),
LoggingSystemCodes.NULL);
entry = new SimpleLogEntry(TEST_CODE, null);
assertEquals("Null parameter should do nothing to the message",
entry.getMessage(),
TEST_CODE.getMessage());
}
COM: <s> test the constructor of the simple log entry </s>
|
funcom_train/37519720 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void maybeShrinkStorage() {
if ( storage.length <= minimumCapacity ||
top < shrinkIfTopLessThanThis ) {
return;
}
// need to shrink storage
int newCapacity = storage.length / 2;
if (newCapacity < minimumCapacity) {
newCapacity = minimumCapacity;
}
if (newCapacity < size() + 1) {
newCapacity = size() + 1;
} // end of if
adjustCapacity(newCapacity);
}
COM: <s> shrink the storage to release memory if the load factor of the </s>
|
funcom_train/33943080 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int getIndex(VatSummaryItem vatSummaryItem) {
int i = -1;
// Search all items
for (Iterator<VatSummaryItem> iterator = this.iterator(); iterator.hasNext();) {
i++;
VatSummaryItem item = iterator.next();
// Returns the item, if it is the same
if (item.compareTo(vatSummaryItem) == 0)
break;
}
return i;
}
COM: <s> returns the index of a vat summary item </s>
|
funcom_train/24078572 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Double putWeight(final Criterion criterion, final double weight) {
if (criterion == null) {
throw new NullPointerException("" + weight);
}
final Double previous = m_weights.put(criterion, Double.valueOf(weight));
if (!m_dirty) {
if (previous != null) {
m_sum = m_sum - previous.doubleValue();
}
m_sum = m_sum + weight;
}
return previous;
}
COM: <s> associates the given weight to the given criterion </s>
|
funcom_train/3861676 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setLead(Object component, Object oldlead, Object lead) {
if (oldlead != lead) { //?
if (oldlead != null) {
repaint(component, null, oldlead);
}
set(component, ":lead", lead);
repaint(component, null, lead);
Rectangle r = getRectangle(lead, "bounds");
scrollToVisible(component, r.x, r.y, 0, r.height - 1);
// no bottom line
}
}
COM: <s> update the lead item of a list tree table repaint and scroll </s>
|
funcom_train/31208344 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String nativeSQL(String sql) throws SQLException {
try {
if(Trace.isEnabled()) Trace.traceQuote(getId(),sql);
checkClosed();
sql=translateSQL(sql);
if(Trace.isEnabled()) Trace.traceResultQuote(sql);
return sql;
} catch(Throwable e) {
throw convertThrowable(e);
}
}
COM: <s> translates a sql statement into the ldbc grammar </s>
|
funcom_train/5891618 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Object coerceToUi(Object val, Component comp, BindContext ctx) {
//user sets format in annotation of binding or args when calling binder.addPropertyBinding()
final String format = (String) ctx.getConverterArg("format");
if(format==null) throw new NullPointerException("format attribute not found");
final Number number = (Number) val;
return number == null ? null : new DecimalFormat(format).format(number);
}
COM: <s> convert number to string </s>
|
funcom_train/17203242 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Instruction prevInstructionInCodeOrder() {
if (prev == null) {
BasicBlock nBlock = Label.getBlock(this).block.prevBasicBlockInCodeOrder();
if (nBlock == null) {
return null;
} else {
return nBlock.lastInstruction();
}
} else {
return prev;
}
}
COM: <s> return the previous instruction with respect to the current </s>
|
funcom_train/46702867 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private Company findCompany() {
Company result = new Company();
result.set(Company.ID, 20L);
result.set(Company.NAME, "My Company");
result.set(Company.CITY, "Prague");
result.set(Company.CREATED, new Date());
return result;
}
COM: <s> find an company somewhere </s>
|
funcom_train/46976481 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void actionPerformed(ActionEvent e) {
if (e.getSource() instanceof JMenuItem) {
JMenuItem mi = (JMenuItem)e.getSource();
System.out.println(mi.getText());
if (mi.getText().equals("Refresh")) {
try {
refreshAllFolders();
} catch(Exception ex) {
ex.printStackTrace();
}
}
}
}
COM: <s> invoked when an action occurs </s>
|
funcom_train/16082463 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setStatus(int statusCode, String statusMessage) {
if (statusCode != OFFLINE && statusCode != CONNECTING
&& statusCode != AVAILABLE && statusCode != AWAY
&& statusCode != INVISIBLE) {
throw new IllegalArgumentException(
"Invalid status code: " + statusCode);
}
code = statusCode;
message = statusMessage;
}
COM: <s> sets the status code and message </s>
|
funcom_train/32719848 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String format(int[] value) {
StringBuffer buf = new StringBuffer(10*value.length);
for (int i=0; i<value.length; i++) {
if (i != 0) {
buf.append('.');
}
buf.append((value[i] & 0xFFFFFFFFL));
}
return buf.toString();
}
COM: <s> returns a textual representation of a raw object id as dotted </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.