__key__
stringlengths 16
21
| __url__
stringclasses 1
value | txt
stringlengths 183
1.2k
|
---|---|---|
funcom_train/32778934 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void reset() {
/* Perform the reset method. */
super.reset(); // reset the QueueBased statistics of this Stock
_producerQueue.reset(); // reset the statistics for the producer queue
_fieldMaximum = _fieldMinimum = _fieldAvail;
_fieldProducers = _fieldConsumers = 0;
_wSumAvail = 0.0;
_lastUsage = presentTime();
_fieldRefused = 0;
}
COM: <s> resets all statistical counters of this stock to their default values </s>
|
funcom_train/37645828 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addCommonProperties(Properties props) {
props.put(ConnectionHandshakeHeaders.X_QUERY_ROUTING,
"0.1");
props.put(ConnectionHandshakeHeaders.USER_AGENT,
CommonUtils.getVendor());
props.put(ConnectionHandshakeHeaders.GGEP,
"0.5");
}
COM: <s> sets the common properties in props like query routing and </s>
|
funcom_train/33496631 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Object readModelFromXML(String xml, boolean validate) throws CoXmlReadException{
XmlDocument doc = null;
try {
// turn the filename into an input source
InputSource input = new InputSource(new StringReader(xml));
// turn it into an in-memory object
doc = XmlDocument.createXmlDocument(input, validate);
} catch (Throwable t) {
t.printStackTrace();
}
return readModelFrom(doc);
}
COM: <s> read the model from a string optionally validating </s>
|
funcom_train/18101271 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public ToDoList getToDoListHelper(String nameOfList, int mode) {
ToDoList toDoList = null;
try {
toDoList = (ToDoList) this.pimInstance.openPIMList(PIM.TODO_LIST, mode, nameOfList);
} catch(PIMException e) {
toDoList = null;
}
return toDoList;
}
COM: <s> helper method to return to dolist with specified name in specified mode </s>
|
funcom_train/35195140 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public BooleanArray without(final int i) {
final boolean[] newArr = new boolean[booleans.length - 1];
System.arraycopy(booleans, 0, newArr, 0, i);
System.arraycopy(booleans, i + 1, newArr, i, newArr.length - i);
return new BooleanArray(newArr);
}
COM: <s> return a new code boolean array code that contains the same elements </s>
|
funcom_train/4048080 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Group Incl(int[] ranks) throws MPIException {
if(ranks == null) {
throw new MPIException("Group.Incl does not accept a null integer "+
" array ");
}
if(ranks.length == 0) {
return MPI.GROUP_EMPTY ;
}
return new Group(mpjdevGroup.incl(ranks));
}
COM: <s> create a subset group including specified processes </s>
|
funcom_train/300675 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void updateLabels() {
if ( this.bolDisplayInfo ) {
// set the label text to the string
this.lblTitleInfo.setText( this.strImageTitle );
this.lblLinkInfo.setText( this.strImageLink );
}
else {
// set the label text to nothing.
this.lblTitleInfo.setText( "" );
this.lblLinkInfo.setText( "" );
}
}
COM: <s> update the label text with the title and link strings </s>
|
funcom_train/5028386 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void revertToDefaultAvailabilityForFriday() {
IElementWrapper iew = this.getParentWrapper();
if (iew instanceof PersonWrapper) {
PersonWrapper personWrapper = (PersonWrapper) iew;
getAvailabilityRecord().setFridayValue(-1);
persisting(personWrapper);
}
if (iew instanceof OrganizationWrapper) {
OrganizationWrapper organizationWrapper = (OrganizationWrapper) iew;
getAvailabilityRecord().setFridayValue(-1);
persisting(organizationWrapper);
}
}
COM: <s> remove the availability on friday so that it then defaults </s>
|
funcom_train/8492132 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected JMenuItem getRemoveAllTextureMenuItem() {
if (RemoveAllTextureMenuItem == null) {
RemoveAllTextureMenuItem = new JMenuItem();
RemoveAllTextureMenuItem.setText("Remove all textures");
RemoveAllTextureMenuItem
.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
textureArea.removeAll();
textureArea.validate();
textureArea.repaint();
}
});
}
return RemoveAllTextureMenuItem;
}
COM: <s> this method initializes remove all texture menu item </s>
|
funcom_train/44011476 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetTransDate() {
System.out.println("getTransDate");
TransactionBO instance = new TransactionBO();
String expResult = "";
String result = instance.getTransDate();
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 trans date method of class edu </s>
|
funcom_train/37518647 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Annotation get(String name) {
for (int i = 0; i < annotations.size(); i++) {
Annotation annot = (Annotation) annotations.get(i);
if (annot.getName().equals("L" + name.replace('.', '/') + ";"))
return annot;
}
return null;
}
COM: <s> return the annotation given by the name or null if no such annotation </s>
|
funcom_train/25293966 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int getCombineAlphaScale() {
if (isLiveOrCompiled()) {
if (!this.getCapability(ALLOW_COMBINE_READ)) {
throw new CapabilityNotSetException(
Ding3dI18N.getString("TextureAttributes35"));
}
}
return ((TextureAttributesRetained)this.retained).getCombineAlphaScale();
}
COM: <s> retrieves the scale factor for the alpha component of the output color </s>
|
funcom_train/25092615 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void add(int index, Task ta) {
Task[] newTau = new Task[tau.length + 1];
System.arraycopy(tau, 0, newTau, 0, index);
System.arraycopy(tau, index, newTau, index + 1, tau.length - index);
newTau[index] = ta;
tau = newTau;
}
COM: <s> inserts the specified element at the specified position </s>
|
funcom_train/29620417 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JMenuItem getMiUsers() {
if (miUsers == null) {
miUsers = new JMenuItem();
miUsers.setText(AppTextsDAO.get("MENUITEM_USERS"));
miUsers.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
UserRightsDataFrame udf = new UserRightsDataFrame();
getJDesktop().addAndShow(udf);
}
});
}
return miUsers;
}
COM: <s> this method initializes mi users </s>
|
funcom_train/10204888 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addRequiredPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_MTypedElement_required_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_MTypedElement_required_feature", "_UI_MTypedElement_type"),
ClassDiagramPackage.Literals.MTYPED_ELEMENT__REQUIRED,
false,
false,
false,
ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
null,
null));
}
COM: <s> this adds a property descriptor for the required feature </s>
|
funcom_train/44224275 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void add(Rectangle r) {
for (int i = 0; i < DIMENSIONS; i++) {
if (r.min[i] < min[i]) {
min[i] = r.min[i];
}
if (r.max[i] > max[i]) {
max[i] = r.max[i];
}
}
}
COM: <s> computes the union of this rectangle and the passed rectangle storing </s>
|
funcom_train/7518231 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Funcionario update(Funcionario entity) {
EntityManagerHelper.log("updating Funcionario instance", Level.INFO,
null);
try {
Funcionario result = getEntityManager().merge(entity);
EntityManagerHelper.log("update successful", Level.INFO, null);
return result;
} catch (RuntimeException re) {
EntityManagerHelper.log("update failed", Level.SEVERE, re);
throw re;
}
}
COM: <s> persist a previously saved funcionario entity and return it or a copy of </s>
|
funcom_train/39197821 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setCenter(LonLat center, Integer zoom) {
if (!this.center.equals(center)) {
this.center = center;
this.zoom = zoom;
if (AjaxRequestTarget.get() != null && findPage() != null) {
AjaxRequestTarget.get().appendJavaScript(
getJSsetCenter(center, zoom));
}
}
}
COM: <s> set the center </s>
|
funcom_train/14430764 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Element getPlaceOfStackedTile(int i) {
Element place = new Element("place");
Place stackedPlace = $rolledBackPlaces.get(i);
Element xValue = new Element("xValue");
xValue.setText(""+stackedPlace.getX());
place.addContent(xValue);
Element yValue = new Element("yValue");
yValue.setText(""+stackedPlace.getY());
place.addContent(yValue);
return place;
}
COM: <s> gets the place of the ith tile of the move that was undone </s>
|
funcom_train/18214498 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void initExplanationBox() {
Label label = new Label(composite, SWT.WRAP | SWT.BORDER);
label.setText("Select the quality node and the measurement(s) " +
"for which you want to export data to CSV on the left " +
"and hit the Update button to apply the changes.");
GridData layoutData = new GridData();
layoutData.grabExcessHorizontalSpace = true;
layoutData.horizontalAlignment = SWT.FILL;
layoutData.horizontalSpan = 2;
label.setLayoutData(layoutData);
}
COM: <s> initializes the composite that contains the explanation text </s>
|
funcom_train/41167478 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void printMap() {
for (int i = 1; i <= maxRow; i++) {
for (int j = 1; j <= maxColumn; j++) {
if (map[i][j] == ALIVE) {
lifeQueen.placeAlive((i - 1), (j - 1));
} else {
lifeQueen.removeAlive((i - 1), (j - 1));
}
}
}
}
COM: <s> print the current generation in the board </s>
|
funcom_train/44385423 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean isTestClass(Class testClass) {
return hasSuiteMethod(testClass)
|| (Test.class.isAssignableFrom(testClass)
&& Modifier.isPublic(testClass.getModifiers())
&& !Modifier.isAbstract(testClass.getModifiers())
&& hasPublicConstructor(testClass));
}
COM: <s> check if a class provides a test suite </s>
|
funcom_train/31520433 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void registerACL(CapAccessControlListSet aclSet, String id) {
CapAccessControlListSet acl = null;
for (Enumeration e = ACLs.keys(); e.hasMoreElements(); ) {
String aclid = (String) e.nextElement();
if (aclid.equals(id)) {
acl = (CapAccessControlListSet) ACLs.get(aclid);
acl.addAll(aclSet);
return;
}
}
ACLs.put(id, aclSet);
}
COM: <s> register acl by merging </s>
|
funcom_train/8326079 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public SchemaReader getSchemaReader(boolean accessControlled) {
final Role role;
if (accessControlled) {
// full access control
role = getConnection().getRole();
} else {
role = null;
}
final SchemaReader cubeSchemaReader = cube.getSchemaReader(role);
return new QuerySchemaReader(cubeSchemaReader);
}
COM: <s> returns a schema reader </s>
|
funcom_train/31322235 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void run() {
DatagramPacket message = new DatagramPacket(new byte[PACKET_SIZE], PACKET_SIZE);
while (isRunning) {
try {
serverStatusSocket.receive(message);
sendResponse(message);
}
catch (InterruptedIOException ix) {
// Ignore interrupted exceptions
}
catch (IOException ex) {
logger.error("Failed on serverStatusSocket.receive.", ex);
}
}
}
COM: <s> this thread will start running when code start code is called and </s>
|
funcom_train/10357595 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void run() {
try {
while (true) {
// get the next event
PendingEvent p = dequeueEvent();
// an empty event on the queue means time to shut things down.
if (p.event == null) {
return;
}
// and tap the listeners on the shoulder.
dispatchEvent(p.event, p.listeners);
}
} catch (InterruptedException e) {
// been told to stop, so we stop
}
}
COM: <s> when an object implementing interface code runnable code is used </s>
|
funcom_train/15677154 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Point2D getCenter() {
double cot = Math.cos(this.theta);
double sit = Math.sin(this.theta);
double xc = x0 + this.w * cot / 2 - this.h * sit / 2;
double yc = y0 + this.w * sit / 2 + this.h * cot / 2;
return new Point2D(xc, yc);
}
COM: <s> returns the center point of the rectangle </s>
|
funcom_train/46825567 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int getJogreLabelIndexByName(Vector labels, String name) {
if (labels == null || name == null)
return -1;
int size = labels.size();
JogreLabel jLabel = null;
for (int i = 0; i < size; i++) {
jLabel = (JogreLabel) labels.get(i);
if (name.equals(jLabel.getName()))
return i;
}
return -1;
}
COM: <s> get jogre label index from vector of labels </s>
|
funcom_train/44849969 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void updateStateContributions(Collection<VIFWorkflowAware> inContributions, Long inAuthorID, String inTransition) throws SQLException, WorkflowException, VException {
for (VIFWorkflowAware lContribution : inContributions) {
((WorkflowAware)lContribution).doTransition(inTransition, new Object[] {inAuthorID});
}
}
COM: <s> updates the state of the contributions performing the specified transition </s>
|
funcom_train/17120412 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public DocumentObject isReplacedBy() {
try {
return (DocumentObject) this.createSession().createSQLQuery(
"select * from document where replcesDocument = " + this.getUOID() + " order by uoid desc limit 1")
.addEntity(DocumentObject.class).list().get(0);
} catch (Exception e) {
return null;
}
}
COM: <s> returns the document that this document was replaced by </s>
|
funcom_train/46459602 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void mouseExited(java.awt.event.MouseEvent evt) {
clearLabel.setFont(new Font(clearLabel.getFont().getFamily(), Font.PLAIN, 9));
clearLabel.setText(ControlsRes.getString("OSPControl.Clear")); //$NON-NLS-1$
}
COM: <s> method mouse exited </s>
|
funcom_train/50313323 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Vector readTasksForUser(int projectId, String userName, int tasktype, String orderBy, String sort) throws CmsException {
return (m_rb.readTasksForUser(m_context.currentUser(), m_context.currentProject(), projectId, userName, tasktype, orderBy, sort));
}
COM: <s> reads all tasks for a user in a project </s>
|
funcom_train/7687091 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void onServiceConnected(ComponentName className, IBinder service) {
if (DBG) log("connection created, binding local service.");
mNetworkQueryService = ((NetworkQueryService.LocalBinder) service).getService();
// as soon as it is bound, run a query.
loadNetworksList();
}
COM: <s> handle the task of binding the local object to the service </s>
|
funcom_train/15555670 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JSplitPane getHorizontalSplitPane1() {
if (horizontalSplitPane1 == null) {
horizontalSplitPane1 = new JSplitPane();
horizontalSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
horizontalSplitPane1.setDividerSize(5);
horizontalSplitPane1.setDividerLocation(160);
horizontalSplitPane1.setBottomComponent(getHorizontalSplitPane1_2());
horizontalSplitPane1.setTopComponent(getHorizontalSplitPane1_1());
}
return horizontalSplitPane1;
}
COM: <s> this method initializes j split pane </s>
|
funcom_train/3740048 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public List getMessagesOfUser(User user) throws MessageManagerException{
List match;
try {
Session sess= HibernateUtil.currentSession();
Criteria crit = sess.createCriteria(Messag.class);
crit.add(Expression.eq("allUserByReceiver", user.getAllUser()));
match = crit.list();
} catch (Exception e) {
e.printStackTrace();
throw new MessageManagerException(e.getClass()+" getMessagesOfUser(User)");
}
return match;
}
COM: <s> return list of messages of a given user </s>
|
funcom_train/12775027 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean meetForCatchBlock(IVariable lhs, IVariable[] rhs, BasicBlock bb, Meeter meeter) {
boolean changed = meetStacksAtCatchBlock(lhs, bb, meeter);
changed |= meetLocals(lhs, rhs, bb, meeter);
return changed;
}
COM: <s> evaluate a meet of machine states at a catch block </s>
|
funcom_train/17905464 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void interruptStatement() {
ThreadUtils.startWorker(new Runnable() {
public void run() {
if (Log.isDebugEnabled()) {
Log.debug("QueryAnalyser: interruptStatement()");
Log.debug("Was currently executing " + executing);
}
if (!executing) {
return;
}
if (querySender != null) {
querySender.cancelCurrentStatement();
}
executing = false;
statementCancelled = true;
}
});
}
COM: <s> interrupts the statement currently being executed </s>
|
funcom_train/2291523 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addContextMenuEntry(CmsExplorerContextMenuItem item) {
item.setType(CmsExplorerContextMenuItem.TYPE_ENTRY);
m_contextMenuEntries.add(item);
if (LOG.isDebugEnabled()) {
LOG.debug(Messages.get().getBundle().key(Messages.LOG_ADD_MENU_ENTRY_2, item.getKey(), item.getUri()));
}
}
COM: <s> adds a menu entry to the list of context menu items </s>
|
funcom_train/38741345 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public LocalQuery getQuery(Long queryId){
try{
return new LocalQueryImpl(port.getQuery(queryId, session.getSessionId()));
}catch(Exception ex){
this.error = (ex instanceof SOAPFaultException)? ex.getMessage() : ex.getClass().getSimpleName()+": "+ ex.getMessage();
return null;
}
}
COM: <s> call to remote get queries method </s>
|
funcom_train/1151318 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Command getItemCommand11() {
if (itemCommand11 == null) {//GEN-END:|363-getter|0|363-preInit
// write pre-init user code here
itemCommand11 = new Command("Escuchar", Command.ITEM, 0);//GEN-LINE:|363-getter|1|363-postInit
// write post-init user code here
}//GEN-BEGIN:|363-getter|2|
return itemCommand11;
}
COM: <s> returns an initiliazed instance of item command11 component </s>
|
funcom_train/48076403 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testIncludeClass() {
assertFalse( config.includeClass( "java.Foo"));
assertFalse( config.includeClass( "java.util.List" ));
//assertFalse( config.includeClass( "java/util/List" ));
//assertTrue( config.includeClass( "my/package/Test" ));
assertTrue( config.includeClass( "my.package.Test" ));
}
COM: <s> test method for </s>
|
funcom_train/51130098 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void showShortMessagePanel() {
// cleanUp
this.cleanUp();
// menus off
this.turnMenuOff();
// Show blank screen
this.panelShortMessages = new PanelShortMessage();
this.getContentPane().add(panelShortMessages, BorderLayout.CENTER);
// Update content pane
this.getContentPane().validate();
this.getContentPane().repaint();
this.state = STATE_SHORTMESSAGE;
}
COM: <s> turns the desktop off and shows the short message screen </s>
|
funcom_train/36286097 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testExtractMetaDataNextResultPattern() throws Exception
{
String tableNamePattern = BOOK_TABLE_PREFIX + "%";
List/*<char[]>*/[] charArrays = new List/*<char[]>*/[]
{
getTableMetaDataCharArray(tableNamePattern)
};
testExtractMetaData(tableNamePattern, charArrays, null);
}
COM: <s> use activity to get meta data for some tables matching a </s>
|
funcom_train/18789301 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setLogin(String login) {
String oldLogin = this.login;
if (((this.login != null) && !this.login.equals(login)) ||
((this.login == null) && (login != null))) {
this.login = login;
changeSupport.firePropertyChange("login", oldLogin, login);
setModified(true);
}
}
COM: <s> sets the new value of the simple property login </s>
|
funcom_train/24640122 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean getBooleanLocalOption(String optionName) throws KreatorScriptingException {
Object propObj = localOpt.get(NAME_SHOW_QUERY_ANSWER, localOpt);
if (!(propObj instanceof Boolean)) {
throw new KreatorScriptingException("\"" + NAME_LOCAL_OBJECT + "." + optionName + "\" is undefined or not a Boolean.");
} else {
return (Boolean)propObj;
}
}
COM: <s> tries to convert a local opt property to a boolean value </s>
|
funcom_train/3374341 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void actionPerformed(ActionEvent e) {
JEditorPane editor = getEditor(e);
if (editor != null) {
StyledEditorKit kit = getStyledEditorKit(editor);
MutableAttributeSet attr = kit.getInputAttributes();
boolean bold = (StyleConstants.isBold(attr)) ? false : true;
SimpleAttributeSet sas = new SimpleAttributeSet();
StyleConstants.setBold(sas, bold);
setCharacterAttributes(editor, sas, false);
}
}
COM: <s> toggles the bold attribute </s>
|
funcom_train/20747689 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public ISIMetaData getMetaData(String location, String title) {
DefaultSIMetaData meta = new DefaultSIMetaData() {
@Override public ImageIcon getSmallIcon() {
return smallIcon;
}
@Override public String getTypeID() {
return typeInfo.getTypeName();
}
};
meta.getReference().setLocator(location);
meta.setReadableName(title);
return meta;
}
COM: <s> create meta data for this type </s>
|
funcom_train/28295699 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getStateID() {
if (_Debug) {
System.out.println(" :: SeqActivity --> BEGIN - getStateID");
}
if (_Debug) {
System.out.println(" ::--> " + mStateID);
System.out.println(" :: SeqActivity --> END - getStateID");
}
return mStateID;
}
COM: <s> retrieves the id of the activitys associated persistent state </s>
|
funcom_train/51120674 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void replyActionPerformed(ActionEvent evt) {
System.out.println("Reply called");
MessageTableModel data =
(MessageTableModel) this.messageListTable.getModel();
if (data.getEntryAt(messageListTable.getSelectedRow())
instanceof Email) {
Email em =
(Email) data.getEntryAt(this.messageListTable.getSelectedRow());
SendMailWindow smw =
new SendMailWindow(
this,
em.reply(
Application
.getApplication()
.getUserPrefs()
.getOutbox()));
smw.show();
}
else {
showInfo("No message selected for reply.");
}
}
COM: <s> method reply action performed </s>
|
funcom_train/1797274 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setSharedWithEmailId(String sharedWithEmailId) {
// check if setting to existing value
if (this.sharedWithEmailId == null ? sharedWithEmailId != null :
!this.sharedWithEmailId.equals(sharedWithEmailId)) {
// set to new value for customer parameter
this.sharedWithEmailId = sharedWithEmailId;
setStringCustomParameter("sharedwith", sharedWithEmailId);
}
}
COM: <s> sets the sharedwith </s>
|
funcom_train/29324884 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Object createBreak(String label, int lineno) {
Node result = new Node(TokenStream.BREAK, new Integer(lineno));
if (label == null) {
return result;
} else {
Node name = new Node(TokenStream.NAME, label);
result.addChildToBack(name);
return result;
}
}
COM: <s> break possibly labeled </s>
|
funcom_train/4014433 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setStartupUrls(final Map<String, URL> urls) {
urlCombo.removeAllItems();
ArrayList<String> keys = new ArrayList<String>(urls.keySet());
Collections.sort(keys);
for (String url : keys) {
urlCombo.addItem(new UrlComboEntry(url, urls.get(url)));
}
urlCombo.revalidate();
}
COM: <s> create the ui to show available startup urls </s>
|
funcom_train/15907211 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void set_isAbstract(boolean y) throws RuntimeException {
UmlCom.send_cmd(identifier_(), OnInstanceCmd.setIsAbstractCmd, (y) ? (byte) 1 : (byte) 0);
UmlCom.check();
_abstract = y;
if (y)
((UmlBaseClass) parent()).set_isAbstract(y);
}
COM: <s> to set the abstract flag </s>
|
funcom_train/7965444 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setUpCommonGettingBehavior() throws IOException {
EasyMock.expect(urlMock.openConnection())
.andStubReturn(connectionMock);
connectionMock.setDoInput(true);
connectionMock.setUseCaches(false);
connectionMock.setRequestMethod("GET");
connectionMock.setRequestProperty(
DistributionServlet.SLAVE_ID_PROPERTY,
slaveId);
connectionMock.connect();
connectionMock.disconnect();
}
COM: <s> sets up mock behavior common for all tests related to getting population </s>
|
funcom_train/14071012 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JPanel getJPanel() {
if (jPanel == null) {
jPanel = new JPanel();
jPanel.setLayout(new BorderLayout());
jPanel.add(getSendText(), java.awt.BorderLayout.CENTER);
jPanel.add(getSendButton(), java.awt.BorderLayout.EAST);
}
return jPanel;
}
COM: <s> this method initializes j panel </s>
|
funcom_train/3377040 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int getLocalVmId() {
int result = -1;
try {
if (uri.getUserInfo() == null) {
result = Integer.parseInt(uri.getAuthority());
} else {
result = Integer.parseInt(uri.getUserInfo());
}
} catch (NumberFormatException e) { }
return result;
}
COM: <s> return the local virtual machine identifier for this vm identifier </s>
|
funcom_train/5395373 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetSerializationTime() {
System.out.println("getSerializationTime");
XsbcSerializer instance = null;
long expResult = 0L;
long result = instance.getSerializationTime();
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 serialization time method of class org </s>
|
funcom_train/47491174 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Command getAceptarCommand() {
if (aceptarCommand == null) {//GEN-END:|43-getter|0|43-preInit
// write pre-init user code here
aceptarCommand = new Command("Aceptar", Command.OK, 0);//GEN-LINE:|43-getter|1|43-postInit
// write post-init user code here
}//GEN-BEGIN:|43-getter|2|
return aceptarCommand;
}
COM: <s> returns an initiliazed instance of aceptar command component </s>
|
funcom_train/36685734 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean existsStructure(String type) {
DatabaseMetaData dmb = null;
ResultSet rs = null;
boolean exists = false;
try {
dmb = connection.getMetaData();
rs = dmb.getTables(null, null, tableName.toUpperCase(),
new String[] { type });
exists = rs.isBeforeFirst();
} catch (SQLException e) {
e.printStackTrace();
}finally{
closeResult(rs);
}
return exists;
}
COM: <s> used to check if the databaseelement exists </s>
|
funcom_train/36046600 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void updateCoordinates(Dimension resolution) {
if (getXPercentage() >= 0) {
x = Math.max(0, Math.round(getXPercentage() * resolution.width / 100) - 1);
}
if (getYPercentage() >= 0) {
y = Math.max(0, Math.round(getYPercentage() * resolution.height / 100) - 1);
}
}
COM: <s> update relative coordinates with regard to the screen resolution </s>
|
funcom_train/46136482 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setTestDataset(final String testDataset) {
if (!Utility.isEmpty(testDataset)) {
getPairedArgument().remove(ARG_NUMBER_OF_FOLDS.argument());
getPairedArgument().put(ARG_TEST_DATASET.argument(), testDataset);
}
}
COM: <s> sets the test dataset argument code test dataset code </s>
|
funcom_train/34812967 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int compare(Object arg0, Object arg1) {
SmoothingWindow first = ((EnrichedRegion)arg0).getBestWindow();
SmoothingWindow second = ((EnrichedRegion)arg1).getBestWindow();
if (first.scores[index] > second.scores[index]) return -1;
if (first.scores[index] < second.scores[index]) return 1;
return 0;
}
COM: <s> sorts by score largest to smallest </s>
|
funcom_train/37827311 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public CVEIUser getModerator(String sessionIn) {
CVEIUser tempUser = null;
try {
for (int i = 0; i < list.size(); i++) {
tempUser = (CVEIUser) list.elementAt(i);
if (tempUser.session.equals(sessionIn) && tempUser.hasFloor) {
return tempUser;
}
}
} catch (NullPointerException e) {
return null;
}
return null;
}
COM: <s> description the get moderator method br </s>
|
funcom_train/47704773 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int startDatabaseService(String databaseName) {
String start_server = (String) HaConst.HA_SHELL_MODULE
.get("start_server");
StringBuffer context = HAModuleReader.shellHead(
HaConst.HA_SHELL_MODULE, this.ip, this.username, this.password);
String temp = start_server + SystemConst.LINE_SEPERATOR;
temp = temp.replace("$dbname", databaseName);
context.append(temp);
HAModuleReader.shellTail(HaConst.HA_SHELL_MODULE, context,
"start_server");
return 0;
}
COM: <s> start the database service of server </s>
|
funcom_train/2882544 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Vector extract(Vector all, String[] pattern) {
Vector result = all;
for (int i=0;i< pattern.length;i++) {
if (pattern[i].equals(getOperation())) {
result.add(this);
break;
}
}
if (leftChild != null)
result = leftChild.extract(result,pattern);
if (rightChild != null)
result = rightChild.extract(result,pattern);
return result;
}
COM: <s> returns a vector with all the nodes in my current sub tree </s>
|
funcom_train/19306187 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private PageRA nextNonBlankPageInCollection() {
PageRA nextPage = (PageRA) this.getNextSibling();
while (true) {
if (nextPage == null) {
return null;
}
if (! nextPage.isBlank()) {
return nextPage;
}
nextPage = (PageRA) nextPage.getNextSibling();
}
}
COM: <s> returns the next non blank page in this pages collection </s>
|
funcom_train/47106906 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JMenuItem getJMenuItemArmor00() {
JMenuItem menuItem = new JMenuItem();
menuItem.setText(Armor.A_00.getItemName());
menuItem.setEnabled(true);
menuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
controller.setPlrReadiedArmor(Armor.A_00);
}
});
return menuItem;
}
COM: <s> creates the first choice for the armor menu </s>
|
funcom_train/8376085 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void send(String message) {
// --- put the message into the buffer
out.print(message);
// --- flush the buffer and check for errors
// --- if error then kill this client
if(out.checkError()) {
// Debug.writeActivity("Client IP: " + ip + " caused a write error and has been disconnected.");
killClient();
}
}
COM: <s> sends a message to this client </s>
|
funcom_train/2707271 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean matches(String reply) {
String upper = reply.toUpperCase();
for (int i = 0; i < strings.size(); i++) {
String msg = (String)strings.elementAt(i);
if (upper.indexOf(msg) >= 0)
return true;
}
return false;
}
COM: <s> returns true if any fragment is found in the supplied </s>
|
funcom_train/10023514 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testElementFixedQNameValueOK01() throws Exception {
EXISchemaFactoryTestUtil.getEXISchema("/elementFixedOK03.xsd", getClass(), m_compilerErrorHandler);
Assert.assertEquals(0, m_compilerErrorHandler.getTotalCount());
}
COM: <s> element fixed value of type qname where the value is valid </s>
|
funcom_train/18215917 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void initServer() {
try {
final PropertyHandlerMapping mapper = new PropertyHandlerMapping();
mapper.addHandler("bugzillametrics", BugzillaMetricsFacade.class);
mapper.addHandler("queries", QueryLoader.class);
mapper.addHandler("bugzilla", BugzillaFacade.class);
xmlrpc.setHandlerMapping(mapper);
} catch (XmlRpcException e) {
/* Handle exception ... */
}
}
COM: <s> initializes the xml rpc server </s>
|
funcom_train/23235576 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JEditorPane getJEditorPane() {
if (jEditorPane == null) {
jEditorPane = new JEditorPane();
jEditorPane.setEditable(false);
jEditorPane
.setText("<html>\n <head>\n\n </head>\n <body>\n <h1>Version 0.55.1</h1>\n </body>\n</html>\n");
jEditorPane.setContentType("text/html");
}
return jEditorPane;
}
COM: <s> this method initializes j editor pane </s>
|
funcom_train/46450163 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removeLink(int sourceIndex, int targetIndex) {
XComponent dataSet = getDataSet();
XComponent source = (XComponent) dataSet.getChild(sourceIndex);
XComponent target = (XComponent) dataSet.getChild(targetIndex);
removeSuccessor(source, targetIndex);
removePredecessor(target, sourceIndex);
}
COM: <s> remove the link between the two given activities </s>
|
funcom_train/44223137 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void onColor(){
CanvasConfig canvasConfig = this.canvas.get_config();
Color defaultColor = canvasConfig.get_groupObjectFillColor();
Color selectedColor =
JColorChooser.showDialog(this.canvas, "Group Object Color", defaultColor);
if(selectedColor == null){
canvasConfig.set_groupObjectFillColor(defaultColor);
}else{
canvasConfig.set_groupObjectFillColor(selectedColor);
}
}
COM: <s> event handler for configuring the mouse over highlighting color </s>
|
funcom_train/24181765 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public AbstractTypeChecker getInnerTypeChecker(String innerTypeName) {
AbstractTypeDeclaration atd = getInnerType(this.td, innerTypeName);
if (atd instanceof TypeDeclaration) {
return new TypeChecker((TypeDeclaration) atd);
} else if (atd instanceof EnumDeclaration) {
return new EnumTypeChecker((EnumDeclaration) atd);
} else if (atd instanceof AnnotationTypeDeclaration) {
//TODO
}
return null;
}
COM: <s> return a abstract type checker instance if this type contains an inner type </s>
|
funcom_train/2437778 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public File getSuggestedDestination(IntegrationProject project, File basis) {
String fileName = getSuggestedJitterPackName(project);
if (basis == null) {
File parent = SystemUtils.USER_HOME;
return new File(parent, fileName);
} else if (basis.isDirectory()) {
return new File(basis, fileName);
} else {
return new File(basis.getParent(), fileName);
}
}
COM: <s> returns a suggested destination for a new jitterpak created from a given project </s>
|
funcom_train/257154 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Collection getValueSetAt(int row, Collection cols) {
Collection values = new ArrayList();
String field;
for (Iterator it = cols.iterator(); it.hasNext();) {
field = it.next().toString();
int col = getColumnPos(field);
values.add(this.dataSet[row][col]);
}
return values;
}
COM: <s> returns specified cell values from a particular row in the data set </s>
|
funcom_train/46621592 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private List getTargetList() {
if (iTargetList == null) {
try {
iTargetList = new List();
iTargetList.setName("TargetList");
iTargetList.setEnabled(true);
} catch (Throwable iExc) {
handleException(iExc);
}
}
return iTargetList;
}
COM: <s> return the target list property value </s>
|
funcom_train/50499807 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void actionOneDictBoxes() {
if ( m_dictList.getSelectedIndex() != -1 ) {
JDictPBase.getInstance().changeToPanel( CRSCurPanel.PANEL_BOXLIST, m_dicts[ m_dictList.getSelectedIndex() ], null, null );
}
}
COM: <s> goto selected dict but directly to boxes </s>
|
funcom_train/32058080 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetParent() {
System.out.println("testParentChild");
ParentMap parentmap = new ParentMap();
Object obj = new Object();
Object obj1 = new Object();
ParentMap.Entry e = parentmap.new Entry(obj, obj1);
e.getParent();
assertEquals(e.getParent(), obj1);
}
COM: <s> this function tests to get parent function of parent map class </s>
|
funcom_train/8452497 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void userAcceptsGroupSharing(long id, String from, String groupName, String alias) throws LembreteSystemException {
User user = getUserByID(id);
User fromUser = userDAO.findByLogin(from);
user.acceptGroupSharing(fromUser, groupName, alias);
userDAO.makePersistent(user);
userDAO.makePersistent(fromUser);
}
COM: <s> tells that an user accepted a pending group sharing request from another user </s>
|
funcom_train/4758138 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getDollarGroup(char openclose) throws ParseException {
int spos = pos;
char ch;
do {
ch = parseString.charAt(pos++);
if (ch == ESCAPE) {
pos++;
}
} while (pos < len && ch != openclose);
if (ch == openclose) {
return parseString.substring(spos, pos - 1);
} else {
return parseString.substring(spos, pos);
}
}
COM: <s> get the contents between two delimiters </s>
|
funcom_train/29830337 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void received(BrowseItem b, String id) {
if (servedID.getID() == null || !servedID.getID().equals(id)) return;
thisItemView.display(b);
browseList.setListData(b.getChildren());
browseList.clearSelection();
progressInfo.setText("Done");
servedID.setID(null);
}
COM: <s> code bsbrowse listener code function </s>
|
funcom_train/3418232 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int getNumImages(boolean allowSearch) throws IOException {
if (iis == null) {
throw new IllegalStateException(I18N.getString("GetNumImages0"));
}
if (seekForwardOnly && allowSearch) {
throw new IllegalStateException(I18N.getString("GetNumImages1"));
}
return 1;
}
COM: <s> overrides the method defined in the superclass </s>
|
funcom_train/47279762 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean doesSourceTableExist() throws SQLObjectException {
MatchMakerSession session = getSession();
if (session == null) {
throw new IllegalStateException("Session has not been setup " +
"for the project, you will need session to check the source table");
}
return session.tableExists(getSourceTableSPDatasource(),
getSourceTableCatalog(), getSourceTableSchema(),
getSourceTableName());
}
COM: <s> returns true if the source table of this project exists in the sessions </s>
|
funcom_train/28177890 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public SnmpGetRequestResult getRequest(String oidstr) throws RequestExecutionException{
target.setObjectID("."+oidstr);
String result = target.snmpGet();
//if the snmpGet() method produce an error
if(target.getErrorCode() != 0)
throw new RequestExecutionException(target.getErrorString());
if(result == null)
throw new RequestExecutionException("error : snmpGet() return a null string");
return new SnmpGetRequestResult(new GwOID(target.getObjectID()),result);
}
COM: <s> makes a standard single get request </s>
|
funcom_train/50249946 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void uninitialize(Object object) {
if (impl.get() != null) {
if (object == null) {
log.info("Cache is uninitialized. Unknown reason.");
} else {
log.info("Cache is uninitialized. Changed object of type " + object.getClass().getName());
}
}
impl.set(null);
}
COM: <s> drops current cache implementation </s>
|
funcom_train/45501750 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void wallProgress() {
wallsDone++;
int progress = Math.max( 0, Math.min( (int) Math.round( ((double) wallsDone / wallCount) * 100 ), 99 ) );
//AlgorithmTask.getInstance().setProgress( progress, "Erzeuge Gebäude...", "Wand " + wallsDone + " von " + wallCount + " erzeugt." );
}
COM: <s> p this method increases the number of cells that are created and </s>
|
funcom_train/48401910 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public HandlerRegistration addFocusHandler(com.smartgwt.client.widgets.form.fields.events.FocusHandler handler) {
if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.FocusEvent.getType()) == 0) setupFocusEvent();
return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.FocusEvent.getType());
}
COM: <s> add a focus handler </s>
|
funcom_train/47562805 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void keyReleased(KeyEvent e) {
switch (e.getKeyCode()) {
case KeyEvent.VK_SPACE: key1 = false; break;
case KeyEvent.VK_C: key2 = false; break;
case KeyEvent.VK_Z: currentLevel = 2; break; //HACK for testing. Charlene
}
//System.out.println("Key Up");
thrustSound.stopAudio();
}
COM: <s> handles a key release event </s>
|
funcom_train/25119397 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void death() {
// Default behaviour: particle fireworks
for (int i = 0; i < 40; ++i) {
Particle p = createParticle();
if (p == null)
return;
p.setVelocity(2, 6, Math.PI, Math.PI);
p.setX(getX());
p.setY(getY());
getPhysicsScene().addObject(p);
}
}
COM: <s> method that is called whenever the object is dying </s>
|
funcom_train/7709761 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean inToRange(K key, boolean forceInclusive) {
K toKey = getToKey();
boolean toInclusive = isToInclusive();
int ret = keyAnalyzer.compare(key, toKey);
if (toInclusive || forceInclusive) {
return ret <= 0;
} else {
return ret < 0;
}
}
COM: <s> returns true if the provided key is in the to range </s>
|
funcom_train/50054135 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void rotateToCurrentMousePoint(int mouseX, int mouseY) {
currMousePoint.set(mouseX, mouseY);
windowToViewport(currMousePoint);
rotationGizmo.drag(lastMousePoint, currMousePoint);
for (VirtualTrackballListener listener : trackballListeners) {
listener.onRotated(lastMousePoint, currMousePoint);
}
lastMousePoint.set(currMousePoint);
}
COM: <s> rotates the currently selected object to the given mouse position </s>
|
funcom_train/14638243 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JMenuItem getJMenuItem() {
if (jMenuItem == null) {
jMenuItem = new JMenuItem();
jMenuItem.setText("Aggiungi");
jMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
AggiungiTitoloFrm aggiungiTitolo = new AggiungiTitoloFrm();
aggiungiTitolo.setModal(true);
aggiungiTitolo.setVisible(true);
}
});
}
return jMenuItem;
}
COM: <s> this method initializes j menu item </s>
|
funcom_train/1032541 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setBoolean(int parameterIndex, boolean x) throws SQLException {
if (this.useTrueBoolean) {
setInternal(parameterIndex, x ? "1" : "0"); //$NON-NLS-1$ //$NON-NLS-2$
} else {
setInternal(parameterIndex, x ? "'t'" : "'f'"); //$NON-NLS-1$ //$NON-NLS-2$
this.parameterTypes[parameterIndex - 1 + getParameterIndexOffset()] = Types.BOOLEAN;
}
}
COM: <s> set a parameter to a java boolean value </s>
|
funcom_train/26268260 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void add(String headerName,String headerValue) {
if(myMap.containsKey(headerName)) {
HeaderEntry existingEntry = (HeaderEntry)myMap.get(headerName);
existingEntry.addValue(headerValue);
myMap.put(headerName,existingEntry);
} else {
myMap.put(headerName,new HeaderEntry(headerValue));
}
}
COM: <s> adds a value to the map at the specified position </s>
|
funcom_train/2293671 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String readInternProp() {
boolean internProp = false;
try {
internProp = getCms().readResource(getParamResource(), CmsResourceFilter.IGNORE_EXPIRATION).isInternal();
} catch (CmsException e) {
if (LOG.isInfoEnabled()) {
LOG.info(e.getLocalizedMessage());
}
}
return String.valueOf(internProp);
}
COM: <s> returns value of the the intern property of the resource </s>
|
funcom_train/37508374 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void fireProcessCanceledEvent() {
int size = m_listener.size();
ProgressEvent event = new ProgressEvent(this);
for (int i=0; i<size; i++) {
ProgressListener listener =
(ProgressListener)m_listener.elementAt(i);
listener.processCancelled(event);
}
}
COM: <s> informs all code progress listener code that the process has </s>
|
funcom_train/2492110 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setDefaultActions(JRootPane rootPane) {
closeAction = new CloseAction();
String[] btnsName = {LButton.CANCEL, LButton.CLOSE};
LButton btn = null;
for (String btnName : btnsName) {
btn = buttonsPanel.getButton(btnName);
if( btn != null){
btn.addActionListener(closeAction);
}
}
setActionWhenEscapePressed(new CloseDialog());
}
COM: <s> sets code close window code action for key escape </s>
|
funcom_train/50154757 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String getPageTemplate(PageClass source) {
String path = source.getPath();
String extension = path.substring(path.lastIndexOf(".") + 1);
String template = "Page_" + extension + ".vm";
Object url = getClass().getClassLoader().getResource(template);
if (url == null) {
template = "Page.vm";
}
return template;
}
COM: <s> uses the file extension to return the most appropriate template </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.