__key__
stringlengths 16
21
| __url__
stringclasses 1
value | txt
stringlengths 183
1.2k
|
---|---|---|
funcom_train/46403277 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addUserToGroup(String groupId, String userId) {
if (groupId == null)
throw new NullPointerException("grpId id is null");
if (userId == null)
throw new NullPointerException("userId id is null");
log.debug("addUserToGroup:UserId = " + userId);
log.debug("addUserToGroup:groupId = " + groupId);
UserGroup ug = new UserGroup(groupId, userId);
userGroupDao.add(ug);
}
COM: <s> this method adds the user to a group </s>
|
funcom_train/40704931 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void streamRemoveComment(final String commentId, final AsyncCallback<JavaScriptObject> callback) {
Json j = new Json ().put ( "comment_id", commentId );
callMethod ( "stream.removeComment", j.getJavaScriptObject (), callback );
}
COM: <s> this method removes a comment from a post </s>
|
funcom_train/437740 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setFormat(Format format) throws IllegalArgumentException {
Format old = this.format;
this.format = format;
try {
update();
} catch (IllegalStateException exception) {
this.format = old;
// The format is not one of recognized type. Since this format was given in argument
// (rather then the internal format field), Change the exception type for consistency
// with the usual specification.
IllegalArgumentException e = new IllegalArgumentException(
exception.getLocalizedMessage());
e.initCause(exception);
throw e;
}
firePropertyChange("format", old, format);
}
COM: <s> set the format to configure </s>
|
funcom_train/4900206 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void penScrollEvent(PScrollEvent ev) {
if (penScrollEventMethod != null) {
try {
penScrollEventMethod.invoke(parent, new Object[] { this });
} catch (Exception e) {
System.err.println("error, disabling penScrollEvent()");
e.printStackTrace();
penScrollEventMethod = null;
}
}
}
COM: <s> invokes pen scroll event method in the processing applet if exists when a </s>
|
funcom_train/16462342 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void removeServices(Object lsProviders) {
Object[] obj = controller.getSelectedItems(lsProviders);
for (Object object : obj) {
SmsInternetService service = (SmsInternetService) controller.getAttachedObject(object);
service.stopThisThing();
controller.getSmsInternetServices().remove(service);
controller.getSmsInternetServiceSettingsDao().deleteSmsInternetServiceSettings(service.getSettings());
controller.remove(object);
}
controller.refreshPhonesViews();
selectionChanged(lsProviders, controller.find(settingsDialog, "pnButtons"));
}
COM: <s> delete the selected services from the system and remove them from the list </s>
|
funcom_train/35804557 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
if ("AlaServiceWSPort".equals(portName)) {
setAlaServiceWSPortEndpointAddress(address);
}
else
{ // Unknown Port Name
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
}
}
COM: <s> set the endpoint address for the specified port name </s>
|
funcom_train/25772304 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void closeShells() {
IEffect[] effects = new IEffect[shells.length];
for (int i = 0; i < shells.length; i++) {
effects[i] = new AlphaEffect(shells[i], shells[i].getAlpha(), 0, shellCloseDurationMs, new LinearInOut(),
postCloseRunnable, null);
}
shellAnimation.runEffect(new ParallelEffect(effects, onCloseRunnable, null));
}
COM: <s> start fading shells then close them </s>
|
funcom_train/5345629 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean isPartialFileValid() {
return _rfd.getSHA1Urn() != null &&
_incompleteFile.getVerifiedBlockSize() > MIN_PARTIAL_FILE_BYTES &&
UploadSettings.ALLOW_PARTIAL_SHARING.getValue() &&
NetworkUtils.isValidPort(RouterService.getPort()) &&
NetworkUtils.isValidAddress(RouterService.getAddress());
}
COM: <s> determines whether or not the partial file is valid for us </s>
|
funcom_train/41515921 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setNumberOfPositionToDraw(int value) {
if (value < 1) {
throw new IllegalArgumentException(
LocaleManager.getMessage("recorder_settings_setnumberofpositiontodraw")
+ ": " + value);
}
settings.setIntProperty(POSITIONS_TO_DRAW, value);
saveSettings();
}
COM: <s> set number of positions to draw </s>
|
funcom_train/49214553 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGenerateLU(){
String sql = "select 1,2 from dual";
HashMap<String, String> lookups = DBHelper.generateLU(sql);
assertEquals(lookups.get("1"), "2");
assertTrue(lookups.size() == 1);
}
COM: <s> test of generate lu method of dbhelper </s>
|
funcom_train/45692256 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addPatternNumberOriginalPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_Pattern_patternNumberOriginal_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Pattern_patternNumberOriginal_feature", "_UI_Pattern_type"),
EsxPackage.Literals.PATTERN__PATTERN_NUMBER_ORIGINAL,
false,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
COM: <s> this adds a property descriptor for the pattern number original feature </s>
|
funcom_train/21267394 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void synchronizeInitially() {
// build two trees, one for remote, one for local, and synchronize them.
TreeNode localTree = buildLocalTree(configEntry.getSyncBase());
TreeNode remoteTree = buildRemoteTree("./", configEntry.getBasePath());
compareTrees(localTree, remoteTree);
}
COM: <s> synchronizes complete state of local and remote repository </s>
|
funcom_train/44701635 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected String getLocaleStaticPath(Locale locale) {
String localeStaticPath;
File path;
localeStaticPath = this.getServletContext().getRealPath(
locale.toString());
path = new File(localeStaticPath);
if (path.exists()) {
localeStaticPath = locale.toString();
} else {
this.getServletContext().log(
"Fail to load static resource path! Resource: "
+ locale.toString());
localeStaticPath = "";
}
return localeStaticPath;
} //getLocaleStaticPath()
COM: <s> returns the string representation of the specified locale corresponding </s>
|
funcom_train/15464420 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void wait (Operand objOperand) throws Exception {
// check if this a valid group for waiting
if (!objOperand.getGroup().equals(Declare.strDevFB)) {
throw new ExcNotSupported();
}
// add ourself to the list of waiting thread
ObjectInputStream objWaitStream = objFeedbackBusThread.addWait(objOperand);
// block until value is there
objFeedbackBusThread.wait(objWaitStream);
}
COM: <s> wait block until the device has the desired value </s>
|
funcom_train/328268 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void createTrainingStore() {
creating = true;
enableControls();
trainingDataCollection = new TrainingDataCollection(whistleClassifierControl);
trainingDataCollection.loadTrainingData(whistleClassificationParameters,
selectFolder.isIncludeSubFolders(), useFolderNames.isSelected(), progressPanel);
trainingDataCollection.dumpStoreContent();
if (dataViewPanel != null) {
dataViewPanel.refill();
}
creating = false;
runTrainingPanel.setParams();
enableControls();
}
COM: <s> creates the training store </s>
|
funcom_train/45077333 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void combine(Vector new_filters, int op) throws DBException {
for (Enumeration elems = new_filters.elements(); elems.hasMoreElements(); ) {
gov.lanl.Database.SearchFilter filter = (gov.lanl.Database.SearchFilter) elems.nextElement();
combine(filter, op);
}
}
COM: <s> combine other search filters with this one using the specific operator </s>
|
funcom_train/49823626 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Boolean confirmSensorbaseHost(String hostName) {
logger.info("setting sensorbase host as " + hostName);
if (SensorBaseClient.isHost(hostName)) {
logger.info("sensorbase host confirmed at " + hostName);
return true;
}
else {
this.exceptionMessage = "unable to confirm sensorbase host at " + hostName;
logger.info("unable to confirm sensorbase host at " + hostName);
return false;
}
}
COM: <s> confirms sensorbase host </s>
|
funcom_train/3155270 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private ParamProperties createDualViewCoeffFileInfo() {
ParamProperties paramProps = _defaultFactory.createFileParamProperties(ParamProperties.FSM_FILES_ONLY,
SstConstants.DEFAULT_DUAL_VIEW_COEFF_FILE);
paramProps.setLabel(SstConstants.DUAL_VIEW_COEFF_FILE_LABELTEXT);
paramProps.setDescription(SstConstants.DUAL_VIEW_COEFF_FILE_DESCRIPTION);
return paramProps;
}
COM: <s> creates the parameter information for the parameter dual view coefficient file </s>
|
funcom_train/23283231 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void refresh(int treeNum) {
this.tvToolBar.adjustTreeSlider(treeNum);
// System.out.println(treeNum + " " + this.trees.size());
this.tvToolBar.adjustTreeSpinner(treeNum);
int old = -1;// this.frameCount[0];
changes.firePropertyChange("refresh", old, treeNum);
this.frameCount[0] = treeNum;
}
COM: <s> changes the actual drawn tree to tree number tree num and refreshes the </s>
|
funcom_train/17700336 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void showNextRow()
{
try
{
if (rs == null || scrolling && rs.isLast()) return;
if (!rs.next() && !scrolling)
{
rs.close();
rs = null;
return;
}
dataPanel.showRow(rs);
}
catch (SQLException e)
{
JOptionPane.showMessageDialog(this, e);
}
}
COM: <s> moves to the next table row </s>
|
funcom_train/42537316 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean equals(Object o){
if(!(o instanceof SubtypeCons))return false;
if(o == this)return true;
SubtypeCons oo = (SubtypeCons)o;
return (((Object)first).equals(oo.first))&&(((Object)rest).equals(oo.rest));
}
COM: <s> is the given object equal to this subtype cons </s>
|
funcom_train/4717564 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testPitch() {
SynMessage msg = new SYN().synth(1).voice(1).pitch(261.6256);
assertEquals("FTi", msg.getTypetag());
assertEquals(new Integer(17145895), msg.getArguments()[2]);
assertEquals("/SYN/ID1/V1/PITCH", msg.getAddress());
}
COM: <s> voice pitch in hz </s>
|
funcom_train/50884815 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Attributes getMainAttributes() throws IOException {
if(attributes == null) {
URL u = new URL("jar", "", url + "!/");
JarURLConnection uc = (JarURLConnection)u.openConnection();
attributes = uc.getMainAttributes();
}
return attributes;
}
COM: <s> retrieves the main attributes from the jar file </s>
|
funcom_train/40675027 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void loop(int seconds, PrintWriter writer) {
try {
for (int i = 0; i < seconds; i++) {
Thread.sleep(1000);
writer.append("slept for " + i + "/" + seconds + " seconds\n");
}
} catch (InterruptedException e) {
writer.append("loop canceled\n");
}
}
COM: <s> loops for a number of seconds printing a message every second </s>
|
funcom_train/37637869 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void copy() {
SelectionModel sel = grid.getSelectionModel();
int firstRow = sel.getFirstSelectedRow();
int firstColumn = sel.getFirstSelectedColumn();
int lastRow = sel.getLastSelectedRow();
int lastColumn = sel.getLastSelectedColumn();
copy(firstRow, firstColumn, lastRow, lastColumn);
} //end copy
COM: <s> copy the selected cells </s>
|
funcom_train/44797925 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void scaleToFitX() {
PageFormat format = getPageFormat();
Rectangle componentBounds = mComponent.getBounds(null);
double scaleX = format.getImageableWidth() / componentBounds.width;
double scaleY = scaleX;
if (scaleX < 1) {
setSize((float) format.getImageableWidth(), (float) (componentBounds.height * scaleY));
setScale(scaleX, scaleY);
}
}
COM: <s> scale printable to fit width </s>
|
funcom_train/50142670 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void lockForWriting() {
Object lock = new Object();
synchronized (lock) {
synchronized (this) {
boolean canWrite = writerLocks.size() == 0
&& activeReaders == 0 && activeWriters == 0;
if (canWrite) {
++activeWriters;
return;
}
writerLocks.addLast(lock);
}
try {
lock.wait();
}
catch (InterruptedException e) {
}
}
}
COM: <s> request the write lock </s>
|
funcom_train/16218040 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setKeySequence(int[] key) {
this.key = key;
StringBuffer buff = new StringBuffer();
for (int i = 0; i < key.length; i++) {
buff.append(KeyEvent.getKeyText(key[i]));
}
this.keyString = buff.toString();
}
COM: <s> sets new key sequence key code </s>
|
funcom_train/44497305 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public ResultSequence idiv(ResultSequence arg) throws DynamicError {
XSFloat val = (XSFloat) get_single_type(arg, XSFloat.class);
if(val.zero())
throw DynamicError.div_zero(null);
return ResultSequenceFactory.create_new(new XSInteger((int) (float_value() / val.float_value()) ));
}
COM: <s> mathematical integer division operator between this xsfloat and the supplied result sequence </s>
|
funcom_train/20535163 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JButton getBoton5() {
if (boton5 == null) {
boton5 = new JButton();
boton5.setBounds(new Rectangle(200, 242, 140, 30));
boton5.setText("Cursos");
boton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
control.pedirArchivo("curso");
}
});
}
return boton5;
}
COM: <s> this method initializes boton5 </s>
|
funcom_train/35730120 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: @Override protected PatternHandler getPatternHandlerByName( String name ){
if( "patternPhrase".equals(name) || "default".equals(name) ){
return patternPhrase;
}else if( "patternNoTexy".equals(name) ){
return patternNoTexy;
}else if( "patternSubSup".equals(name) ){
return patternSubSup;
}else{
throw new UnsupportedOperationException("Unknown pattern handler: "+name);
}
}
COM: <s> return this modules pattern handler by name </s>
|
funcom_train/1621019 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setStatusText(String statusFieldText) {
if (fStatusLabel != null && ! getShell().isVisible()) {
if (statusFieldText == null ) {
fStatusComposite.setVisible(false);
} else {
fStatusLabel.setText(statusFieldText);
fStatusComposite.setVisible(true);
}
}
}
COM: <s> sets the text of the status field </s>
|
funcom_train/27747358 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public TreeItem getItem (Point point) {
checkWidget ();
int [] row = new int [1], column = new int [1];
if (OS.gtk_clist_get_selection_info (handle, point.x, point.y, row, column) == 0) {
return null;
}
int node = OS.gtk_ctree_node_nth (handle, row [0]);
int index = OS.gtk_ctree_node_get_row_data (handle, node) - 1;
return items [index];
}
COM: <s> returns the item at the given point in the receiver </s>
|
funcom_train/19073650 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
super.readObjectBase(in);
if (in.getClass().getName().indexOf("xstream") == -1) {
URL = (String) in.readObject();
}
if (!isBuffered() || (getInputVector().size() == 0))
setURL(URL);
}
COM: <s> reads this urlinput synapse object from the specified object stream </s>
|
funcom_train/3369441 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setVerticalAlignment(int alignment) {
if (alignment == verticalAlignment) return;
int oldValue = verticalAlignment;
verticalAlignment = checkVerticalKey(alignment, "verticalAlignment");
firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldValue, verticalAlignment); repaint();
}
COM: <s> sets the vertical alignment of the icon and text </s>
|
funcom_train/25648351 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setImageFilename(String variant, String filename) {
if(variant == null || filename == null) {
throw new IllegalArgumentException("Both parameters must not be null");
}
this.images.put(variant, filename);
// reset image cache to get the inserted image loaded
if(variant.equals(this.cachedImageVariant)) {
this.cachedImage = null;
}
}
COM: <s> set reference to an image file for specified language variant </s>
|
funcom_train/44136342 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void clic() {
if(m_First) /* First time, must start thread.*/ {
m_First = false;
if(!m_Running) {
m_Running = true;
start();
}
else // More than one clic, stop thread.
m_Running = false;
}
else
m_Running = false;
}
COM: <s> to be call on each clic </s>
|
funcom_train/20280536 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testFunctionPrototypeAndImplicitPrototype1() {
FunctionType constructor =
registry.createConstructorType(null, null, null, null);
ObjectType instance = constructor.getInstanceType();
// adding one property on the prototype
ObjectType prototype =
(ObjectType) constructor.getPropertyType("prototype");
prototype.defineDeclaredProperty("foo", DATE_TYPE, null);
assertEquals(NATIVE_PROPERTIES_COUNT + 1, instance.getPropertiesCount());
}
COM: <s> tests that defining a property of a functions </s>
|
funcom_train/5427140 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void startWithResourceAsReader(String resourceName) {
final java.net.URL in = this.getClass().getResource(resourceName);
assertNotNull(in);
parser = TermParserFactory.newInstance().newTermParser();
final InputSource is = new InputSource(new InputStreamReader(this
.getClass().getResourceAsStream(resourceName)));
is.setSystemId(in.toString());
parser.parse(is);
parser.advance();
}
COM: <s> start parsing resource with specified reader </s>
|
funcom_train/35952394 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public ParseTemplate createTemplate(String name, ParseTemplate sourceTemplate) {
ParseTemplate template = new ParseTemplate(sourceTemplate.getRootTagName(), name, false);
for ( Behavior behavior : sourceTemplate.getBehaviors() ) {
template.addBehavior(behavior.getTagName(), behavior.getAction(), behavior.getNewLine());
}
add(template);
return template;
}
COM: <s> create a new template by cloning the source template </s>
|
funcom_train/14245190 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public MAssociationClass buildAssociationClass(MClassifier end1, MClassifier end2) {
if (end1 == null || end2 == null || end1 instanceof MAssociationClass || end2 instanceof MAssociationClass)
throw new IllegalArgumentException("In buildAssociationClass: either one of the arguments was null or " +
"was instanceof MAssociationClass");
return buildAssociatonClass(buildClass(), end1, end2);
}
COM: <s> builds an association class between classifier end1 and end2 with a </s>
|
funcom_train/41856919 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String execute() throws Exception {
String action = OntConfig.Prop.AQUAPORTAL_REST_URL.getValue() + ONTOLOGIES + id;
PostMethod post = new PostMethod(action);
try {
List<Part> partList = new ArrayList<Part>();
partList.add(new StringPart("sessionid", sessionId));
partList.add(new StringPart("id", id));
partList.add(new StringPart("method", "DELETE"));
return _performPost(post, partList);
}
finally {
post.releaseConnection();
}
}
COM: <s> executes the post operation to delete the ontology </s>
|
funcom_train/43326718 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: final public double expectedAccuracy() {
double accy=0.0;
int i;
Residue tr;
int residues = residues();
for (i=0, tr=firstRes(); i<residues; i++, tr=(Residue)tr.next)
accy += Math.max(1.0 - tr.predH - tr.predE,
Math.max(tr.predH, tr.predE));
if (residues!=0) accy /= (double)residues;
return (accy * 100.0);
}
COM: <s> expected accuracy of the secondary structure prediction thats </s>
|
funcom_train/18846986 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String createAnnotationNotFoundException(String tscToken, String annotationID) {
PropertyMap propertyMap = new PropertyMap();
DiagnosticsListCreator edg;
edg = new DiagnosticsListCreator();
String severityType = DiagnosticsCodes.getErrorDiagnosticsCode();
String exceptionID = "80352";
propertyMap.addPropertyValuePair("annotationID", annotationID);
String serExMsg = edg.constructErrorDocOneItemParam(tscToken,
componentID,
severityType,
subSystemCode,
exceptionID,
propertyMap);
return serExMsg;
}
COM: <s> construct annotation not found exception message </s>
|
funcom_train/35329627 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public SnmpPdu getResponsePdu() {
SnmpPduRequest result = new SnmpPduRequest();
result.address = address;
result.port = port;
result.version = version;
result.community = community;
result.type = SnmpDefinitions.pduGetResponsePdu;
result.requestId = requestId;
result.errorStatus = SnmpDefinitions.snmpRspNoError;
result.errorIndex = 0;
return result;
}
COM: <s> implements the code snmp ack pdu code interface </s>
|
funcom_train/14267381 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean add(Endpoint e, boolean forceHighPriority) {
ExtendedEndpoint ee=new ExtendedEndpoint(e.getHostname(), e.getPort());
//See preamble for a discussion of priorities
if (forceHighPriority)
return add(ee, GOOD_PRIORITY);
else
return add(ee, NORMAL_PRIORITY);
}
COM: <s> adds an address to this possibly ejecting other elements from the cache </s>
|
funcom_train/3549859 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testHashCodeWithDifferentLocales() {
try {
VocabNode test = new StubAbstractVocabNode(new Integer(1), "Test", "noun", Locale.GERMAN);
VocabNode test2 = new StubAbstractVocabNode(new Integer(1), "Test", "noun", Locale.ENGLISH);
Assert.assertFalse(test.hashCode() == test2.hashCode());
}
catch (VocabException ve) {
Assert.fail("VocabException produced");
}
}
COM: <s> tests hash code with objects that are identical except for locale </s>
|
funcom_train/27842522 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void paintIcon(Component inComponent, Graphics inGraphics, int inX, int inY) {
if (fillColor != null) {
inGraphics.setColor(fillColor);
inGraphics.drawRect(inX, inY, size - 1, size - 1);
}
}
COM: <s> paint the icon </s>
|
funcom_train/8815251 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean removeExpectedResult(ExpectedResultDTO result) {
// Gets the current results list.
final List<ExpectedResultDTO> results = getExpectedResultsDTO();
// If the list is empty, do nothing.
if (results == null) {
return false;
}
// Tries to remove the result from the local list.
if (results.contains(result)) {
result.delete();
return true;
}
return false;
}
COM: <s> removes an expected result from this objective </s>
|
funcom_train/12781819 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean intersectionEmpty(FixedSizeBitVector other) {
if (other == null) {
throw new IllegalArgumentException("other is null");
}
int n = bits.length;
for (int i = n; i-- > 0;) {
if ((bits[i] & other.bits[i]) != 0)
return false;
}
return true;
}
COM: <s> check if the intersection of the two sets is empty </s>
|
funcom_train/13865873 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setWidth(int row, int column, String width) {
// Give the subclass a chance to prepare the cell.
prepareCell(row, column);
DOM.setElementProperty(getCellElement(bodyElem, row, column), "width",
width);
}
COM: <s> sets the width of the specified cell </s>
|
funcom_train/1150228 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Command getBackCommand21() {
if (backCommand21 == null) {//GEN-END:|263-getter|0|263-preInit
// write pre-init user code here
backCommand21 = new Command("Back", Command.BACK, 0);//GEN-LINE:|263-getter|1|263-postInit
// write post-init user code here
}//GEN-BEGIN:|263-getter|2|
return backCommand21;
}
COM: <s> returns an initiliazed instance of back command21 component </s>
|
funcom_train/42716494 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean createSchema(){
Connection conn = DBMgr.getConnection();
try{
PreparedStatement ps_createSchema = conn.prepareStatement("create database " + Environment.DBSchema + " character set utf8");
ps_createSchema.execute();
}catch(Exception e){
return false;
}
try{
PreparedStatement ps_useTable = conn.prepareStatement("use " + Environment.DBSchema);
ps_useTable.execute();
}catch(Exception e){
e.printStackTrace();
}
return true;
}
COM: <s> create database schema with the given setting for the system database </s>
|
funcom_train/7222395 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void insetData(ConsumerContext context, Object data){
BasketEntry entry = (BasketEntry)(data);
String name =
entry.getName((Locale)(context.getValue(keyLocale_)));
Token token = new TextToken.HTMLSafe(name);
getConsumer().consume(context, token);
}
COM: <s> inset localized name of shopping basket entry </s>
|
funcom_train/20475725 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public static class App {
private static final ProprioServiceAsync ourInstance;
static {
ourInstance = (ProprioServiceAsync) GWT.create(ProprioService.class);
((ServiceDefTarget) ourInstance).setServiceEntryPoint(GWT.getModuleBaseURL() + "CompteService");
}
public static ProprioServiceAsync getInstance() {
return ourInstance;
}
}
COM: <s> utility convenience class </s>
|
funcom_train/9297405 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public IModelConverterCategoryType findModelConverterCategoryType(String id) {
if (id == null)
throw new IllegalArgumentException();
if (modelConverterCategoryTypes == null)
loadModelConverterCategoryTypes();
Iterator<IModelConverterCategoryType> iterator = modelConverterCategoryTypes
.iterator();
while (iterator.hasNext()) {
IModelConverterCategoryType modelConverterCategoryType = (IModelConverterCategoryType) iterator
.next();
if (id.equals(modelConverterCategoryType.getId()))
return modelConverterCategoryType;
}
return null;
}
COM: <s> returns the model converter category type with the given id or </s>
|
funcom_train/16177063 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public double getAvgDegree() {
double rowSums = 0;
for (int i = 0; i < matrix.rows(); i++) {
for (int j = 0; j < matrix.columns(); j++) {
rowSums += matrix.getQuick(i, j);
}
}
return rowSums / matrix.rows();
}
COM: <s> gets the average degree of this matrix </s>
|
funcom_train/34888528 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void getImageTypeFromFileName() {
if ( RssItem.this.strings.matchesIgnoreCase(".+/([^/]+\\.[^?]*)", this.url) ) {
String fileName = strings.getGroup(1);
this.type = RssItem.mimeTypesMap.getContentType(fileName);
}
}
COM: <s> infer the image mime type from the file extension </s>
|
funcom_train/30197015 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testInspect() throws Exception {
System.out.println("inspect");
/*
ActionMapping mapping = null;
ActionForm form = null;
HttpServletRequest request = null;
HttpServletResponse response = null;
InserisciCVAction instance = new InserisciCVAction();
ActionForward expResult = null;
ActionForward result = instance.inspect(mapping, form, request, response);
assertEquals(expResult, result);
*/
}
COM: <s> test of inspect method of class com </s>
|
funcom_train/48630653 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testSetVilleDepart() {
System.out.println("setVilleDepart");
String val = "";
Itineraire instance = new Itineraire();
instance.setVilleDepart(val);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
COM: <s> test of set ville depart method of class itineraire </s>
|
funcom_train/7281831 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testConnectionToOldDisallowed() {
BlockingConnection c= connectionFactory.createConnection("127.0.0.1", SERVER_PORT);
try {
c.initialize(new Properties(), new EmptyResponder(), 1000);
fail("handshake should not have succeeded");
} catch (IOException e) {
}
}
COM: <s> tests to make sure that connections to old hosts are not allowed </s>
|
funcom_train/40222387 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addViewWidget(Widget w) {
if (container == null) {
throw new IllegalArgumentException(
"Solitaire::addModelElement() invoked with null Container.");
}
if (w == null) {
throw new IllegalArgumentException(
"Solitaire::addModelElement() invoked with null Widget.");
}
container.addWidget(w);
// install default undo and mouseMotion adapters.
w.setUndoAdapter (new SolitaireUndoAdapter(this));
w.setMouseMotionAdapter(new SolitaireMouseMotionAdapter(this));
}
COM: <s> adds the given widget to the view maintained by this solitaire variation </s>
|
funcom_train/6249631 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void assertEqualTables(Table table1, Table table2) {
assertEquals(table1, table2);
assertEquals(table1.hashCode(), table2.hashCode());
assertTrue(table1.compareTo(table2) == 0);
assertTrue(table2.compareTo(table1) == 0);
}
COM: <s> helper method to assert tables are equal </s>
|
funcom_train/43346439 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void parseHeaders() throws IOException {
byte[] header = new byte[MetadataBlock.HEADER_LENGTH];
byte[] body;
MetadataBlock mb;
FileInputStream fis = null;
try {
fis = new FileInputStream(_file);
fis.skip(FLAC_IDENTIFIER.length);
while (true) {
fis.read(header);
body = new byte[MetadataBlock.getBlockLength(header)];
fis.read(body);
mb = MetadataBlock.getInstance(header, body);
headers.add(mb);
if (mb.isLast()) {
break;
}
}
fis.close();
} catch (IOException ioe) {
if (fis != null) {
fis.close();
}
}
}
COM: <s> parses the flac file and instantiates classes for each metadata block </s>
|
funcom_train/31452887 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean isValidDropTarget(TreePath destination, TreePath dropper) {
if ((dropper == null) || (dropper.getParentPath() == null)) {
return false;
}
if (dropper.getParentPath().equals(destination)) {
return false;
}
if (destination == null) {
return false;
}
if (destination.equals(dropper)) {
return false;
}
if (dropper.isDescendant(destination)) {
return false;
}
return true;
}
COM: <s> determines whether the drop target dropped element combination is </s>
|
funcom_train/21419374 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addEventCode(String pair) {
while (hasNextEventCode()) {
try {
getNextEventCodeValuePair();
} catch (Exception e) {
}
} // move to end of list
try {
StringTokenizer st = new StringTokenizer(pair, "=");
eventCodesListIterator.add(new ValuePair(st.nextToken(), st.nextToken()));
} catch (Exception e) {
}
}
COM: <s> append a supplied event code in cap 1 </s>
|
funcom_train/12765578 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected Control createDialogArea(Composite parent) {
// Run super.
Composite composite = (Composite) super.createDialogArea(parent);
composite.setFont(parent.getFont());
createViewer(composite);
layoutTopControl(list.getControl());
if (needsShowAllButton()) {
createShowAllButton(composite);
}
createEffectsArea(composite);
// Return results.
return composite;
}
COM: <s> creates and returns the contents of the upper part of this dialog above </s>
|
funcom_train/40514184 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addResponse(final String msg) {
// TODO add your handling code here:
StringBuffer sb = new StringBuffer(toName)
.append(": ").append(msg).append("\n");
outputTextArea.append(sb.toString());
jScrollPane2.getVerticalScrollBar().setValue(
jScrollPane2.getVerticalScrollBar().getMaximum());
}
COM: <s> method to add a response to the text area </s>
|
funcom_train/18219843 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String calculateDevelopmentLineID(String revisionName) {
String[] revisionNumberElements = revisionName.split("[.]");
String[] revisionElements = Arrays.copyOfRange(revisionNumberElements,
0, revisionNumberElements.length - 1);
String result = "";
for (int index = 0; index < revisionElements.length; index++) {
result += "." + revisionElements[index];
}
return result.replaceFirst(".", "");
}
COM: <s> calculates the branch identification name from a revision name </s>
|
funcom_train/37191034 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void saveData() {
serverAccess.setObjectWindowButtonInformation(radioButton, cbAll.isSelected(), cbTables.isSelected(), cbQueries.isSelected(), cbForms.isSelected(), cbReports.isSelected(), cbClasses.isSelected());
}
COM: <s> saves data about the object window to the system table </s>
|
funcom_train/17581166 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected UIComponent createComponent(FacesContext context, String newId) {
UIComponent component;
Application application = context.getApplication();
if (binding != null) {
component = application.createComponent(binding, context,
getComponentType());
component.setValueExpression("binding", binding);
} else {
component = application.createComponent(getComponentType());
}
component.setId(newId);
setProperties(component);
return component;
}
COM: <s> p create and return a new child component of the type returned by </s>
|
funcom_train/9819105 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setExponentRange( BV lower_bound, BV upper_bound, boolean biased ){
/* FIXME: do some bounds checking!! */
setExponentRange( upper_bound, biased );
if( biased )
exponent_lower_bound = BV.add( exponent_width, exponent_bias, lower_bound );
else
exponent_lower_bound = lower_bound;
}
COM: <s> sets the biased or unbiased exponent upper and lower bounds </s>
|
funcom_train/23321142 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean equals(Object o) {
if (!(o instanceof SimulationInfo)) {
return false;
}
SimulationInfo theSimulationInfo = (SimulationInfo) o;
// Equal if same agent for the same simulation
return theSimulationInfo.getAgentRole() == getAgentRole()
&& theSimulationInfo.getSimulationId() == getSimulationId();
}
COM: <s> simualtion info are equal if they are for the same sccori simulation and </s>
|
funcom_train/18049471 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setNatureValue() {
try {
//natureAddedValueLabel.setText("answer = " + Boolean.toString(pro.isNatureEnabled(Constants.ID_AUDITOR_NATURE)));
if (pro.isNatureEnabled(Constants.ID_AUDITOR_NATURE)){
natureAddedValueLabel.setImage(Icons.getImage(Icons.ON));
}
else{
natureAddedValueLabel.setImage(Icons.getImage(Icons.OFF));
}
} catch (CoreException e) {
JdxLog.logError(e);
e.printStackTrace();
}
}
COM: <s> sets the nature value </s>
|
funcom_train/9207073 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JMenuItem getFileExitItem() {
if (fileExitItem == null) {
fileExitItem = new JMenuItem();
fileExitItem.setText("Exit");
fileExitItem.setMnemonic(java.awt.event.KeyEvent.VK_X);
fileExitItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
dispose();
close();
}
});
}
return fileExitItem;
}
COM: <s> this method initializes file exit item </s>
|
funcom_train/31435533 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void functionAllLightsOn(FunctionEvent functionEvent) {
iMainEvent = this.mModel.getModuleOfEventDetected(functionEvent.getHouseCode(), deviceID, "All lights on");
if(iMainEvent != null)
{
this.runAction(iMainEvent);
}
}
COM: <s> this function detects all lights on function on the house </s>
|
funcom_train/45878898 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setCurrentTime(Date date) throws IOException {
if (usingDCF77) {
LOG.debug("Relying on DCF77, skipping sync");
return;
}
Calendar cal = Calendar.getInstance();
cal.clear();
cal.setTimeZone(TimeZone.getDefault());
cal.setTime(date);
setCurrentTime(cal);
}
COM: <s> sets the time </s>
|
funcom_train/34339559 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Command getZiguiente() {
if (ziguiente == null) {//GEN-END:|27-getter|0|27-preInit
// write pre-init user code here
ziguiente = new Command("Ziguiente", Command.OK, 0);//GEN-LINE:|27-getter|1|27-postInit
// write post-init user code here
}//GEN-BEGIN:|27-getter|2|
return ziguiente;
}
COM: <s> returns an initiliazed instance of ziguiente component </s>
|
funcom_train/30005459 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JLabel getTargetStateLabel() {
if (this.targetStateLabel == null) {
this.targetStateLabel = new JLabel(
LanguageController.getInstance().getString(this.plugin,
"Test_Execution_Execute_Sequence_Target_State_Label"));
}
return this.targetStateLabel;
}
COM: <s> gets the target state label </s>
|
funcom_train/50343465 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected SignalMastIcon putSignalMast() {
SignalMastIcon l = new SignalMastIcon(this);
IconAdder editor = _iconEditorFrame.get("SignalMast").getEditor();
l.setSignalMast(editor.getTableSelection().getDisplayName());
l.setDisplayLevel(SIGNALS);
setNextLocation(l);
putItem(l);
return l;
}
COM: <s> add a signal mast to the target </s>
|
funcom_train/18731908 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Pointcut createAndsFor(Pointcut[] ps) {
if (ps.length==1) return ps[0]; // dumb case
if (ps.length==2) { // recursion exit case
return new AndPointcut(ps[0],ps[1]);
}
// otherwise ...
Pointcut[] subset = new Pointcut[ps.length-1];
for (int i = 1; i < ps.length; i++) {
subset[i-1]=ps[i];
}
return new AndPointcut(ps[0],createAndsFor(subset));
}
COM: <s> passed an array of pointcuts returns an and tree with them in </s>
|
funcom_train/34749067 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void printStackTrace() {
if (createdBy != null && config != null) {
createdBy.printStackTrace(config.getLogWriter());
}
synchronized(this.traceList) {
Iterator it = this.traceList.iterator();
while (it.hasNext()) {
AbandonedTrace at = (AbandonedTrace)it.next();
at.printStackTrace();
}
}
}
COM: <s> prints a stack trace of the code that </s>
|
funcom_train/3175933 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getFirstAvailableJurisdiction() {
DirectAccessTokenizer jurisdictions = new DirectAccessTokenizer(getValue(), JURISDICTION_SEPARATOR);
String result = "";
for (int i=0; result.length()==0 ;i++) {
result = jurisdictions.get(i, true);
if (result==null)
return "";
}
return result;
}
COM: <s> accessor first non empty jurisdiction </s>
|
funcom_train/20210660 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void doLogout(LoginEvent event) {
SessionTracker.getInstance().unbindSession();
// hide Visual elements/widget which a secured
Element navElt = RootPanel.get("Navigation").getElement();
RootPanel.setVisible(navElt, false);
Element loginElt = this.loginPanel.getElement();
RootPanel.setVisible(loginElt, true);
}
COM: <s> does what we need to when a user logs out </s>
|
funcom_train/9862716 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public List getMetaClassList() {
final List al = new ArrayList(aMetaClasses.getSubNodes().size());
for (final Iterator it = aMetaClasses.getSubNodes().iterator(); it.hasNext();) {
final Node node = (Node) it.next();
al.add(((MetaClassNode) node).getNode());
}
return al;
}
COM: <s> get the list of metaclasses but as a list of value type elements </s>
|
funcom_train/45770457 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void waitForDispose() {
if (status == DISPOSED || bDispatchException)
return;
else
{
// wait until status is disposed
synchronized (statusLock) {
while (status != DISPOSED && !bDispatchException) {
try {
statusLock.wait();
} catch (java.lang.InterruptedException e) {
}
}
}
}
System.err.println("exit");
}
COM: <s> this function blocks until the status of execution context is disposed or </s>
|
funcom_train/2677382 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void sendInsufficientBandwidthStatus(IPlayItem item) {
Status insufficientBW = new Status(StatusCodes.NS_PLAY_INSUFFICIENT_BW);
insufficientBW.setClientid(getStreamId());
insufficientBW.setLevel(Status.WARNING);
insufficientBW.setDetails(item.getName());
insufficientBW.setDesciption("Data is playing behind the normal speed.");
StatusMessage insufficientBWMsg = new StatusMessage();
insufficientBWMsg.setBody(insufficientBW);
doPushMessage(insufficientBWMsg);
}
COM: <s> insufficient bandwidth notification </s>
|
funcom_train/48149069 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void resetBet() {
bet = Math.min(bet, Math.min(current, target - current));
//fValueSetters[1].setRange(0, Math.min(current, target - current));
getValueSetter(2).setValue(bet);
}
COM: <s> this method resets the bet </s>
|
funcom_train/3412316 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public MenuItem getShortcutMenuItem(MenuShortcut s) {
int nmenus = getMenuCount();
for (int i = 0 ; i < nmenus ; i++) {
MenuItem mi = getMenu(i).getShortcutMenuItem(s);
if (mi != null) {
return mi;
}
}
return null; // MenuShortcut wasn't found
}
COM: <s> gets the instance of code menu item code associated </s>
|
funcom_train/43396426 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void save(ActionEvent event) {
UIParameter parameter = (UIParameter) findAttribute(event.getComponent(), AUTHENTICATE);
Authenticate auth = (Authenticate) parameter.getValue();
UserBean userBean = (UserBean) SpringUtil.getBean("userBean");
userBean.setAuthenticate(auth);
userBean.saveUser(this.getUser());
}
COM: <s> save a user instance </s>
|
funcom_train/43245745 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetPlanNumber() {
System.out.println("getPlanNumber");
InsuranceBufferObject instance = new InsuranceBufferObject();
String expResult = "";
String result = instance.getPlanNumber();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
COM: <s> test of get plan number method of class org </s>
|
funcom_train/21877290 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void addPropertyAttribute(Model tMod, com.hp.hpl.jena.rdf.model.Property prop, String attribute, Resource clsres) {
Resource r = tMod.createResource(KM.Attribute);
r.addProperty(KM.attribute_property, prop);
r.addProperty(RDFS.label, attribute);
clsres.addProperty(KM.attribute, r);
}
COM: <s> note does no locking </s>
|
funcom_train/14166344 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void adjustInitNeigh(int steps){
if (this.trainer != null) synchronized (this.trainer){
double diff = this.trainer.getInitNeigh() + steps*0.05;
if ( diff> 0.0) this.trainer.setInitNeigh(diff);
// this.setInitNeigh(this.trainer.getInitNeigh());
initNeigh.setText(this.trainer.getInitNeigh());
}
}
COM: <s> adjust the corresponding variable </s>
|
funcom_train/28423981 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Property createProperty() {
if ( newProject == null ) {
reinit();
}
/*
* Property p = new Property( true, getProject() );
*/
Property p = new Property();
p.setProject( newProject );
p.setTaskName( "property" );
properties.addElement( p );
return p;
}
COM: <s> property to pass to the new project </s>
|
funcom_train/50095354 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: @Test public void testCalcAngle() {
Vector3d b = new Vector3d(0.0, 2.0, 0.0);
Vector3d c = new Vector3d(0.0, 0.0, 3.0);
double angle = b.angle(c)*180.0/Math.PI;
Assert.assertEquals(90.0, angle, 0.001);
}
COM: <s> this method tests the calculation of the angle between two axes </s>
|
funcom_train/12895711 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void saveProperty(String name, Object value) {
PropertySet ps = getPropertySet();
if (ps.exists(name) && value == null) {
ps.remove(name);
} else {
if (value != null){
ps.setAsActualType(name, value);
}
}
}
COM: <s> saves a task property </s>
|
funcom_train/41763108 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void getSingleMeeme(final String User, final String MeemeId, Context C, Callbackable CallbackInstance) {
executeCommand(GETSINLEMEEME, new String[]{User, MeemeId}, true, CB_SINGLE_MEEME, false, true, C, CallbackInstance);
}
COM: <s> this method returns the specified single meeme </s>
|
funcom_train/44773405 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean pertinenceTest(AlphabetItem itemToTest){
Alphabet inputAlphabet = this.getInputAlphabet();
for(int i=0;i<this.getInputAlphabet().getAlphabetItems().size();i++){
if(((AlphabetItem)inputAlphabet.getAlphabetItems().get(i)).getDescription().equals(itemToTest.getDescription())){
return true;
}
}
return false;
}
COM: <s> checks if the alphabet item belongs to the input alphabet </s>
|
funcom_train/22977455 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public List getFQRefinedFileList(String curDir) throws Exception {
List l = getRefinedFileList(curDir);
List fql = null;
if (l != null && l.size() > 0) {
fql = new ArrayList(l.size());
for (int i = 0; i < l.size(); i++) {
String fn = (String) l.get(i);
fql.add(curDirLastCall + "/" + fn);
}
}
return fql;
}
COM: <s> this method returns the refined file list but with fully qualified filenames </s>
|
funcom_train/4557772 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testPublicMagnetPlayTracks() {
repEng.newStep("276", "Publish Magnet main page-Play the tracks");
//1. Launch http://hobbes.ontometrics.com/magnetportal/
//2. Click the Manage You Assets link.
//3. Click the Publish Magnet link in the Albums/Tracks page.
//4. Click the Artist image preview in middle.
//5. Choose a tracks record and click it.
// The track mp3 is playing now, voice is normally.
// The Boardcast icon will be changed to Pause.
}
COM: <s> 276 publish magnet main page play the tracks </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.