__key__
stringlengths 16
21
| __url__
stringclasses 1
value | txt
stringlengths 183
1.2k
|
---|---|---|
funcom_train/18953045 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean isClearButtonHidden() {
if (logger.isDebugEnabled()) {
logger.debug("isClearButtonHidden() - start");
}
if (logger.isDebugEnabled()) {
logger.debug("isClearButtonHidden() - end - return value = "
+ clearButtonHidden);
}
return clearButtonHidden;
}
COM: <s> should the new button be shown or hidden </s>
|
funcom_train/40731683 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setStatus(String show, String status, final int priority) {
if (show.equals("")) {
show = null;
}
if (status.equals("")) {
status = null;
}
if (show.equals("invisible")) {
this.sendPresence(null, "invisible", null, null, priority);
} else {
this.sendPresence(null, null, show, status, priority);
}
}
COM: <s> sets your jabber status </s>
|
funcom_train/11389276 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void parseAndSetPeriod(String attributeName) {
String periodStr = getAttribute(attributeName);
if (periodStr != null) {
int period = 0;
try {
period = Integer.parseInt(periodStr);
} catch (NumberFormatException nfe) {
}
if (period <= 0) {
throw new MetricsException("Invalid period: " + periodStr);
}
setPeriod(period);
}
}
COM: <s> if a period is set in the attribute passed in override </s>
|
funcom_train/25333140 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetDatabases() {
DBCollection instance = new DBCollection();
assertTrue( instance.getDatabases().isEmpty());
instance.setPrimaryCoreDatabase(db);
assertFalse( instance.getDatabases().isEmpty());
assertTrue( instance.getDatabases().contains(db));
}
COM: <s> test of get databases method of class dbcollection </s>
|
funcom_train/4286136 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addSubTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_Generalization_subType_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Generalization_subType_feature", "_UI_Generalization_type"),
UmlMMPackage.Literals.GENERALIZATION__SUB_TYPE,
true,
false,
true,
null,
null,
null));
}
COM: <s> this adds a property descriptor for the sub type feature </s>
|
funcom_train/34813244 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Sam2USeq (File[] samFiles, File useqOutputFile, String versionedGenome, boolean makeRelativeTracks, boolean stranded, boolean scaleRepeats, boolean verbose){
this.samFiles = samFiles;
this.useqOutputFile = useqOutputFile;
this.versionedGenome = versionedGenome;
this.makeRelativeTracks = makeRelativeTracks;
this.stranded = stranded;
this.scaleRepeats = scaleRepeats;
this.verbose = verbose;
doWork();
}
COM: <s> for integration with the rnaseq app </s>
|
funcom_train/23271662 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void fireXYItemClickEvent(XYItemClickEvent event) {
Object[] listeners = this.listeners.getListeners(
XYItemClickListener.class);
for (int i = listeners.length - 1; i >= 0; i -= 1) {
((XYItemClickListener) listeners[i]).onXYItemClick(event);
}
}
COM: <s> fires a category item click event </s>
|
funcom_train/9214827 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setName( String value) {
if( value == null) {
throw new IllegalArgumentException( "Field name cannot be null");
}
if( value.length() == 0 || value.length() > 10) {
throw new IllegalArgumentException( "Field name should be of length 0-10");
}
this.fieldName = value.getBytes();
this.nameNullIndex = this.fieldName.length;
}
COM: <s> sets the name of the field </s>
|
funcom_train/24076506 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public double getSlackResult() {
Preconditions.checkState(getLastStatus() != null, "Must have been run.");
Preconditions.checkState(getLastStatus().isFeasible(), "Must have obtained a feasible result.");
Preconditions.checkState(m_slackObjectiveValue != null, "No slack objective value received.");
return m_slackObjectiveValue.doubleValue();
}
COM: <s> must have been solved with objective maximize slack and obtained a solution </s>
|
funcom_train/37563950 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public double getSpecificity() {
if(!specificityEvaluated){
Genome condition=this.getGenome(0);
int condLength=condition.getLength();
int wild=0;
for(int i=0;i<condLength;i++)
{
if(condition.getGene(i).getAllele()==2)
wild++;
}
specificity=(double)(((double)(condLength-wild))/((double)condLength));
specificityEvaluated=true;
return specificity;
}else
return specificity;
}
COM: <s> specificity of the chromosome </s>
|
funcom_train/8072634 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean addDataProperty(String dataPropertyName, Point nodeLocation) {
dataPropertyName=dataPropertyName.trim();
OWLDataProperty propiedad = this.getOwlDataPropertyByName(dataPropertyName);
if (propiedad != null){
NodeDataProperty nodo = new NodeDataProperty(propiedad);
this.addNode(nodo);
nodo.getOntologyFig().setLocation(nodeLocation);
DataPropertyDomainAddVisitor v= new DataPropertyDomainAddVisitor(this, propiedad);
for (OWLDescription e : propiedad.getDomains(ontologies()))
e.accept(v);
return true;
}
else
return false;
}
COM: <s> add a new data property to the diagram </s>
|
funcom_train/26462336 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void adjustmentValueChanged(AdjustmentEvent e) {
Point p = containedComp.getLocation();
if (e.getAdjustable() == xScroller) {
p.x = -e.getValue();
scrollPosition.x = e.getValue();
} else {
p.y = -e.getValue();
scrollPosition.y = e.getValue();
}
containedComp.setLocation(p);
}
COM: <s> adjustment listener method for receiving callbacks </s>
|
funcom_train/34117081 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public PersonIdentity getFIOIdentity(Date date) {
for (PersonIdentity candidate : personIdentities) {
IdentityType type = candidate.getIdentityType();
if (type == null) {
throw new NullPointerException("Person identity type is null: " + candidate);
}
if (type.isFIO() && isValidForDate(candidate, date)) {
return candidate;
}
}
return null;
}
COM: <s> get fio identity for date </s>
|
funcom_train/29023871 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setAntialias(int antialias) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (data.gdipGraphics == 0 && antialias == SWT.DEFAULT) return;
int mode = 0;
switch (antialias) {
case SWT.DEFAULT:
mode = Gdip.SmoothingModeDefault;
break;
case SWT.OFF:
mode = Gdip.SmoothingModeNone;
break;
case SWT.ON:
mode = Gdip.SmoothingModeAntiAlias;
break;
default:
SWT.error(SWT.ERROR_INVALID_ARGUMENT);
}
initGdip();
Gdip.Graphics_SetSmoothingMode(data.gdipGraphics, mode);
}
COM: <s> sets the receivers anti aliasing value to the parameter </s>
|
funcom_train/48263299 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setChunkedEncoded() {
boolean keepAlive = isKeepAlive();
boolean chunkable = isChunkable();
if(keepAlive && chunkable) {
response.set("Transfer-Encoding", "chunked");
response.set("Connection", "keep-alive");
} else {
response.set("Connection", "close");
}
}
COM: <s> this is used when the output is encoded in the chunked encoding </s>
|
funcom_train/12137874 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public EXToolBar getToolbar(int index){
try
{
Container c = getContainer(TOP).getChildByIndex(index);
if(c instanceof EXToolBar){
return (EXToolBar)c;
}
else
{
throw new UIException("the toobar index :" + index + " in container " + getClass().getName() + " is not of type EXToolbar");
}
}
catch(IndexOutOfBoundsException io){
}
return null;
}
COM: <s> returns a toolbar from the container </s>
|
funcom_train/18728872 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void checkHandle(int x, int y, EditMode mode, Handle expected) {
Handle actual = instance.getSelectedHandle(new Point(x, y), handle, mode);
assertEquals("Wrong handle!", expected, actual);
}
COM: <s> asserts that the point x y corresponds to the expected handle </s>
|
funcom_train/28169435 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setStartPoint(Point2D.Double p) {
// Add two nodes if we haven't at least two nodes
for (int i=getNodeCount(); i < 2; i++) {
addNode(0, new BezierPath.Node(p.x, p.y));
}
setPoint(0, p);
}
COM: <s> convenience method for setting the point coordinate of the start point </s>
|
funcom_train/29903698 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JTextArea getJTextAreaResults(DataCollection dc) {
if (jTextAreaResults == null) {
jTextAreaResults = new JTextArea();
/**
* Ora aggiungo i dati alla jTextArea
*/
String s = dc.getFirstData();
while (s.length() > 0) {
jTextAreaResults.append(s);
s = dc.getNextData();
}
jTextAreaResults.setEditable(false);
}
return jTextAreaResults;
}
COM: <s> this method initializes j text area results </s>
|
funcom_train/16401765 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void link(Remote obj) {
if (obj == null) {
throw new IllegalArgumentException();
}
mLock.writeLock().lock();
try {
if (mRemoteHandle != null) {
throw new IllegalStateException();
}
mRemoteHandle = (Handle) obj;
} finally {
mLock.writeLock().unlock();
}
}
COM: <s> link to a remote class descriptor cache </s>
|
funcom_train/10384059 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String listSessionIds() {
StringBuilder sb=new StringBuilder();
Iterator<String> keys = sessions.keySet().iterator();
while (keys.hasNext()) {
sb.append(keys.next()).append(" ");
}
return sb.toString();
}
COM: <s> for debugging return a list of all session ids currently active </s>
|
funcom_train/28424519 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setSystemProperties() {
Properties systemP = x.java.lang.System.getProperties();
Enumeration e = systemP.keys();
while ( e.hasMoreElements() ) {
Object name = e.nextElement();
String value = systemP.get( name ).toString();
this.setPropertyInternal( name.toString(), value );
}
}
COM: <s> adds all system properties which arent already defined as user properties </s>
|
funcom_train/16174801 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean hasModalWindows() {
ArrayList<Window> allWindows = ComponentFinder.getAllWindows();
if( allWindows != null ) {
for( Window wind : allWindows ) {
if( wind instanceof Dialog ) {
Dialog dlg = (Dialog)wind;
if( dlg.isModal() && dlg.isVisible() ) {
return true;
}
}
}
}
return false;
}
COM: <s> returns whether there are currently modal windows active </s>
|
funcom_train/34445478 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void init() {
// System.out.print(WorldMusic.GAME_OVER);
String path = game.getProperties().getPathSoundPlayer();
path = game.getProperties().getPathSound();
mapSounds = new HashMap<Sound, String>();
// version 1.5 or later
for (Sound suit : Sound.values()) {
// System.out.print(suit);
mapSounds.put(suit, path + suit.fileName());
// System.out.println(hashWorldMusics.get(suit));
}
}
COM: <s> initialize sounds used by game </s>
|
funcom_train/8337145 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addMissingIdentifier(@Nonnull ChartColumn ci) {
if (ci == null) {
throw new NullPointerException("null column identifier");
}
missingColumns.add(ci);
ci.setParent(this);
fireChildAdded(ChartColumn.class, ci, missingColumns.indexOf(ci));
}
COM: <s> adds the given column identifier to the end of the missing identifiers list </s>
|
funcom_train/40729444 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetAttributeValue_null() throws RepositoryException {
// We should need attrInfo in this configuration.
CategoryHandler categoryHandler = getObjectUnderTest("all,searchable");
ClientValue attrInfo = null;
try {
getAttributeValue(categoryHandler, attrInfo);
fail("Expected a NullPointerException");
} catch (NullPointerException e) {
}
}
COM: <s> tests get attribute value with a null attr info </s>
|
funcom_train/16526403 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void print() {
Context context = CurrentContext.getContext();
String resultURL = "";
context.displayMessage("Printing, please wait: sending printout...");
resultURL = postData(mModel.toString(), mPrinter);
context.displayMessage("Your printout should appear in another window.");
context.showURL(resultURL, "For Printing");
}
COM: <s> to print we </s>
|
funcom_train/14245142 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Collection getAllPossibleAssociationRoles(MClassifierRole role) {
if (role == null || role.getBases().isEmpty()) return new ArrayList();
Iterator it = role.getBases().iterator();
Set associations = new HashSet();
while (it.hasNext()) {
MClassifier base = (MClassifier)it.next();
associations.addAll(CoreHelper.getHelper().getAssociations(base));
}
return associations;
}
COM: <s> returns all associations the bases of the classifierrole has thereby forming </s>
|
funcom_train/17529290 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean areInterleaving(Node n1, Node n2) {
int index1 = this.nodes.indexOf(n1);
int index2 = this.nodes.indexOf(n2);
if (index1 == -1 || index2 == -1)
throw new InvalidParameterException("The profile is not defined for the respective nodes.");
return matrix[index1][index2].equals(CharacteristicRelationType.InterleavingOrder);
}
COM: <s> checks whether two given nodes are in interleaving order </s>
|
funcom_train/42970525 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void redirectStreams() throws ConnectivityException{
//Starts two threads for each channel
for( int i = 0 ; i < this.numberChannels ; i++ ){
DataInputStream input = this.messageContextBefore.getDataInputStream(i);
DataOutputStream output = this.messageContextAfter.getDataOutputStream(i);
Thread stream = new RedirectStream(input, output);
stream.start();
output = this.messageContextBefore.getDataOutputStream(i);
input = this.messageContextAfter.getDataInputStream(i);
stream = new RedirectStream(input, output);
stream.start();
}
}
COM: <s> redirects the content of the given input to the given output </s>
|
funcom_train/33851399 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void copyFrom(LockSet other) {
if (other.array.length != array.length) {
array = new int[other.array.length];
}
System.arraycopy(other.array, 0, array, 0, array.length);
this.defaultLockCount = other.defaultLockCount;
}
COM: <s> make this lock set the same as the given one </s>
|
funcom_train/6458005 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void process(HttpServletRequest request,HttpServletResponse response) {
// Simply add the chat message
String id = request.getParameter(MicroProxy.MESSAGE_ID);
KiznaClient client = (KiznaClient)loginTable.get(id);
LoginData loginData = (LoginData)loginDataTable.get(id);
BasicMessage message;
message = createSimpleMessage(request,loginData);
logger.info("Adding message to client");
client.addMessage(message);
}
COM: <s> process a send message command </s>
|
funcom_train/18730075 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void stopEditing() {
if (descriptionEditor != null && attribute.isEditable()) {
attribute.setValue(new Description(descriptionEditor.getText()));
component.remove(descriptionArea);
descriptionEditor = null;
component.add(createValueLabel(attribute.getValue()));
component.revalidate();
valueChanged();
}
}
COM: <s> stop editing the value by replacing the editor with an label </s>
|
funcom_train/10207235 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private List getAddFeedMenu() {
if (sAddFeedMenu == null) {
sAddFeedMenu = Application.getMenu(Application.messages[NewsReader.MSG_ME_ADDFEED], NewsReader.ME_ADDFEED, -1, Application.cBACK);
}
return sAddFeedMenu;
}
COM: <s> gets the adds the feed menu </s>
|
funcom_train/49602125 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void uploadDrivingLicense() {
collectDrivingLicenseData();
try {
long timeElapsed = System.currentTimeMillis();
dl.upload(persoService, getKeySeed());
timeElapsed = System.currentTimeMillis() - timeElapsed;
System.out.println("Uploading time: "+(timeElapsed / 1000)+ " s.");
} catch (Exception e) {
e.printStackTrace();
}
}
COM: <s> upload the driving license based on the data in the gui </s>
|
funcom_train/546873 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setExtensionList(String[] names) {
if(type!=OBJECT_BUBBLE) {
System.out.println("NetObject.setExtensionList() : Only bubble object accept extensions.");
return;
}
extParamName = names;
extParamValue = new String[names.length];
for(int i=0;i<extParamValue.length;i++)
extParamValue[i] = "";
}
COM: <s> sets the list of extended parameter name for this bubble object </s>
|
funcom_train/11375362 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testInvalidShell() throws Exception {
Configuration conf = new Configuration(); // default FS (non-DFS)
DFSAdmin admin = new DFSAdmin();
admin.setConf(conf);
int res = admin.run(new String[] {"-refreshNodes"});
assertEquals("expected to fail -1", res , -1);
}
COM: <s> default setting is file which is not a dfs </s>
|
funcom_train/50702974 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void updateDisplay() {
attrs = GuiUtils.getAttributesFor(Prefs.nodeFont, Prefs.nodeFontColour);
StyleConstants.setLeftIndent(attrs, HiNodePanel.spacing);
StyleConstants.setRightIndent(attrs, HiNodePanel.spacing);
StyleConstants.setSpaceAbove(attrs, HiNodePanel.spacing);
StyleConstants.setSpaceBelow(attrs, HiNodePanel.spacing);
StyledDocument doc = getStyledDocument();
doc.setParagraphAttributes(0, doc.getLength(), attrs, true);
}
COM: <s> updates the display parameters for this text pane </s>
|
funcom_train/44561764 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void clearValues(boolean nochecks) {
if (isDestroyed()) {
logger.warn("System tried to clear all values while the object was already destroyed");
} else {
for (Integer key : values.keySet()) {
if (key.intValue() != _ID) {
DcValue value = values.get(key);
value.clear(nochecks);
}
}
}
}
COM: <s> resets this item </s>
|
funcom_train/34340463 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public TextField getMonto() {
if (Monto == null) {//GEN-END:|56-getter|0|56-preInit
// write pre-init user code here
Monto = new TextField("Importe", null, 32, TextField.NUMERIC);//GEN-LINE:|56-getter|1|56-postInit
// write post-init user code here
}//GEN-BEGIN:|56-getter|2|
return Monto;
}
COM: <s> returns an initiliazed instance of monto component </s>
|
funcom_train/35848242 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testNoElements() {
Model.getPump().flushModelEvents();
try {
list.getElementAt(0);
fail();
} catch (ArrayIndexOutOfBoundsException a) {
// The correct exception is thrown.
}
assertTrue(list.size() == 0);
assertTrue(Model.getFacade().getElementResidences(elem).isEmpty());
}
COM: <s> test getting an element when there is none </s>
|
funcom_train/51009750 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public BeanDescriptor getBeanDescriptor() {
BeanDescriptor bd = createBeanDescriptor(BEAN_CLASS, new Object[] {
"preferred", Boolean.TRUE, "isContainer", Boolean.FALSE, "shortDescription", "A component that provides JFileChooser."
});
bd.setValue("helpSetName", "net/jbeans/io/resources/JBeansFileChooser/jhelpset.hs");
return bd;
}
COM: <s> returns a bean descriptor for thumb dial bean </s>
|
funcom_train/26024416 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void doNewDiagram(JGraphEditorFile file) {
if (!isLibrary(file)) {
JGraphEditorModel model = editor.getModel();
int number = model.getChildCount(file) + 1;
JGraphpadDiagram newDiagram = new JGraphpadDiagram(
getString("Diagram") + number);
model.addChild(newDiagram, (JGraphpadFile) file);
}
}
COM: <s> inserts a new empty diagram into the specified file </s>
|
funcom_train/329352 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void newData(int iSlice, FFTDataUnit fftDataUnit) {
Complex[] complexData = fftDataUnit.getFftData();
if (newCol == null || newCol.length != complexData.length) {
newCol = new boolean[complexData.length];
}
for (int i = searchBin1; i < searchBin2; i++) {
newCol[i] = complexData[i].magsq() > 0;
}
newData(iSlice, newCol, fftDataUnit);
}
COM: <s> gets passed a row of complex data </s>
|
funcom_train/37750018 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void printUsagePrintOutput() {
System.err.println("USAGE: -print [-Dstart=i] [-Dend=i] [-Dcopies=i] [-Deven=true|false] "
+ " org.apache.fop.apps.Fop (..) -print \n"
+ "Example:\n"
+ "java -Dstart=1 -Dend=2 org.apache.Fop.apps.Fop infile.fo -print ");
}
COM: <s> shows the options for print output </s>
|
funcom_train/3761648 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected Vector badGO(multiplayer server, World world, Player player, String direction){
logmsg(world,"LP processing bad GO input...");
player.getClient().display(world.msgs.msg[178]);
return clearCmdVector(); //no further cmd to execute
}
COM: <s> currently just displays localized which way </s>
|
funcom_train/29019537 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Transform (Device device, float m11, float m12, float m21, float m22, float dx, float dy) {
super(device);
this.device.checkGDIP();
handle = Gdip.Matrix_new(m11, m12, m21, m22, dx, dy);
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
init();
}
COM: <s> constructs a new transform given all of the elements that represent the </s>
|
funcom_train/45237083 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public JRadioButton getJRadioButtonDIGRAFU() {
if (jRadioButtonDIGRAFU == null) {
jRadioButtonDIGRAFU = new JRadioButton();
jRadioButtonDIGRAFU.setText("DIGRAFU");
jRadioButtonDIGRAFU.setSize(new Dimension(96, 24));
jRadioButtonDIGRAFU.setLocation(new Point(358, 185));
jRadioButtonDIGRAFU.setBackground(new Color(173, 200, 226));
}
return jRadioButtonDIGRAFU;
}
COM: <s> this method initializes j radio button digrafu </s>
|
funcom_train/39304236 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void loadExistingData(WizardController controller, Map collectedData) throws MitigationAppException {
logger.debug("Loading existing mitigation prioritization data");
controller.setBusy(true);
try {
new LoadIntersectionListAction(collectedData, intersectionRegistry, configuration, true)
.runWithProgressWindow("Loading...");
}
finally {
controller.setBusy(false);
}
}
COM: <s> load existing mitigation prioritization data </s>
|
funcom_train/1211577 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public T get(int c, String s) {
T obj = objectsByColName.get(s);
if (obj != null) return obj;
if (objectsByColNum.size() < c) return null;
obj = objectsByColNum.get(c-1);
return obj == null ? null : obj;
}
COM: <s> put prio on name over num </s>
|
funcom_train/36784660 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void notifyKeyReleased(KeyEvent tempEvent) {
KeyListener[] keyListenerArray = new KeyListener[keyListeners.size()];
keyListeners.toArray(keyListenerArray);
for(int i=0;i<keyListenerArray.length;i++){
keyListenerArray[i].keyReleased(tempEvent);
}
}
COM: <s> notification that a key has been released whilst this component has focus </s>
|
funcom_train/26411336 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addAuditRecord(AuditRecord record) {
// This is an add first as the public interface for appending
// audit records should put the newest one on the front. However,
// this means that when the xml document is written out, it needs
// to be in the order of oldest to newest to ensure that audit
// record order doesn't get confused.
auditRecords.addFirst(record);
}
COM: <s> add an audit record for the file that this source file object </s>
|
funcom_train/51058193 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private int getFontsizeForTagQuadratic(int tagWeight, int maxWeight) {
// y = a * x^2 with maxWeight = a * (MAX_FONTSIZE - MIN_FONTSIZE)^2
double a = maxWeight/ Math.pow(MAX_FONTSIZE - MIN_FONTSIZE, 2);
double x = Math.sqrt(tagWeight / a);
return (int) x + MIN_FONTSIZE;
}
COM: <s> maps a tag weight to a font size x with </s>
|
funcom_train/32117934 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setSubmissionDirectoryList(Collection<File> submissionDirList) throws IOException {
Validate.notNull(submissionDirList, "submissionDirList argument is null"); //$NON-NLS-1$
submissionDirSet.clear();
for (File submissionDir : submissionDirList) {
addSubmissionDirectory(submissionDir);
}
}
COM: <s> set the list of the submission directories </s>
|
funcom_train/50863799 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void takeBag() {
Bag bag = findMostFullBag(rover.getInventory(), mineralType);
if (bag != null) {
if (person.getInventory().canStoreUnit(bag)) {
rover.getInventory().retrieveUnit(bag);
person.getInventory().storeUnit(bag);
}
}
}
COM: <s> takes the most full bag from the rover </s>
|
funcom_train/50078304 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void destroyAllComponents() {
// block all requests until all components are destroyed
synchronized (this.componentMap) {
if (log.isTraceEnabled()) {
log.trace("destroying all components");
}
while (!this.componentNameList.isEmpty()) {
destroyComponent((String) this.componentNameList.get(0));
}
}
}
COM: <s> p destroys all components </s>
|
funcom_train/124327 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setNumberRange(NumberRange newNumberRange) {
if (newNumberRange == null)
newNumberRange = new NumberRange();
// default constructor creates(-inf,inf)
numberRange = newNumberRange;
if (numberRange.encloses(currentNumber) == null) {
setNumber(currentNumber); // number is valid
return;
}
setNumber(numberRange.defaultNumber());
}
COM: <s> sets the range that the number input is checked against </s>
|
funcom_train/16411417 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void alignToCentre(){
Window owner = getOwner();
if(owner!=null){
//set location of dialog to centre of screen
Point parentLocation = owner.getLocation();
int widthdiff = owner.getWidth() - this.getWidth();
int heightdiff = owner.getHeight() - this.getHeight();
parentLocation.setLocation(parentLocation.x + widthdiff/2, parentLocation.y + heightdiff/2);
this.setLocation(parentLocation);
}
}
COM: <s> set location of dialog to centre of screen </s>
|
funcom_train/34301859 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String toDosBox (boolean withSectionHeader) {
String str = "";
if (withSectionHeader) {
str = "[" + getName() + "]\n";
}
if( getItemList() != null )
for( int a=0, z=getItemList().size(); a < z; a++ )
str += getItemList().get( a ).toDosBox();
return str;
}
COM: <s> an extended method for decide whether to get the dosbox representation of this </s>
|
funcom_train/36253251 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void nodeDown(URI n) {
if (nodes.contains(n)) {
log.info("Removing node: " + n);
// TODO put correct reason
String type = "power";
try {
this.getScheduler().nodeDown(n.toString(), "crash");
} catch (VRMMSchedulerException e) {
log.debug("Cannot connect with the scheduler");
}
nodes.remove(n);
}
}
COM: <s> unregister a node that is down </s>
|
funcom_train/34288879 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void toggle(Event e) {
Control[] children = compoSearch.getChildren();
for (int i = 0; i < children.length; i++) {
Control child = children[i];
if (e.widget != child && child instanceof Button
&& (child.getStyle() & SWT.TOGGLE) != 0) {
((Button) child).setSelection(false);
}
}
((Button) e.widget).setSelection(true);
}
COM: <s> action for toggle button </s>
|
funcom_train/43427811 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void initLocale() {
getAppliLanguage();
switch (_appliLanguage) {
case FRENCH:
Locale.setDefault(new Locale("fr", "FR"));
break;
case JAPANESE:
Locale.setDefault(new Locale("ja", "JP"));
break;
default:
Locale.setDefault(new Locale("en", "GB"));
break;
}
System.out.println("Locale " + Locale.getDefault());
}
COM: <s> init locale with preferences </s>
|
funcom_train/17052092 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addFeedbackMessages(FDBKPayload message) {
if (verifyFeedbackMessage(message)) {
feedbackMessagesTable.put(message.sourceId, message);
processFeedbackMessage(message);
// System.out.println("BASE STATION ADDS FDBK MESSAGE FROM " + message.sourceId + " -> " + feedbackMessagesTable.size());
}
}
COM: <s> adds a message to the feedback messages </s>
|
funcom_train/2845133 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void put(int roleIndex, Annotation ann, Relation relation) {
getAnnotationFile().setSaved(false);
relation.put(roleIndex, ann);
if (ann != null) {
relations_per_annotation.put(ann, relation);
update(ann);
}
}
COM: <s> puts the specified annotation at the specified role index in the specified relation </s>
|
funcom_train/10806653 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getNamespaceURI() {
if (this.namespace == null) {
return null;
} else {
// If the element has no namespace, the result should be null, not
// an empty string.
String uri = this.namespace.getNamespaceURI();
return uri.length() == 0 ? null : uri.intern();
}
}
COM: <s> returns the value of the namespace uri </s>
|
funcom_train/802631 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addInstitutionPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_PersonType_institution_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_PersonType_institution_feature", "_UI_PersonType_type"),
MzdataPackage.Literals.PERSON_TYPE__INSTITUTION,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
COM: <s> this adds a property descriptor for the institution feature </s>
|
funcom_train/7966869 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void importIndividuals() throws IOException {
// fetch individuals from gateway
List<T> imported_individuals = null;
imported_individuals = gateway.importIndividuals(topology.getNeighbours(),
task_id, count);
// updates queue
synchronized (this) {
// add imported individuals to queue
for (T imported_individual: imported_individuals) {
queue.offer(imported_individual);
}
}
}
COM: <s> updates the queue by connecting to database </s>
|
funcom_train/32307137 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public HClass getSuperclass() {
try {
return (HClass) superclass; // works if superclass is null, too.
} catch (ClassCastException e) { // superclass was ClassPointer.
HClass sc = superclass.actual(); // loads HClass from ClassPointer.
superclass = sc;
return sc;
}
}
COM: <s> if this object represents any class other than the class </s>
|
funcom_train/5809532 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void add(long nodeid, String ip, RTCNode rtcN) {
String key = Long.toString(nodeid) + ip;
List nodesList = (List) get(key);
if (nodesList != null) {
nodesList.add(rtcN);
} else {
// add current node to list
nodesList = new ArrayList();
nodesList.add(rtcN);
// add list to map
put(key, nodesList);
}
}
COM: <s> add the rtc node with nodeid and ip as key </s>
|
funcom_train/29954572 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetShapeTypeStr() {
System.out.println("getShapeTypeStr");
ShapeObject instance = new ShapeObject(el);
String expResult = "SingleStep";
String result = instance.getShapeTypeStr();
System.out.println(result);
assertEquals(expResult, result);
}
COM: <s> test of get shape type str method of class hbm </s>
|
funcom_train/6263159 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setPauseButton() {
if ( state == PAUSED ) {
pauseButton.setText(
DubMan.resString( "executionmanager.resume_label" ) ); //$NON-NLS-1$
} else {
pauseButton.setText(
DubMan.resString( "executionmanager.pause_label" ) ); //$NON-NLS-1$
}
}
COM: <s> toggle the pause button between pause resume </s>
|
funcom_train/44852499 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean hasBookmark(String inQuestionID, Long inMemberID) throws VException {
KeyObject lKey = new KeyObjectImpl();
lKey.setValue(BookmarkHome.KEY_QUESTIONID, new Integer(inQuestionID));
lKey.setValue(BookmarkHome.KEY_MEMBERID, inMemberID);
try {
findByKey(lKey);
return true;
}
catch (BOMNotFoundException exc) {
return false;
}
}
COM: <s> checks whether a bookmark with the specified values exists </s>
|
funcom_train/2582291 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private double getMaximum(double[] values) {
if (values == null || values.length < 1) {
throw new IllegalArgumentException(
"Null or zero length 'values' argument.");
}
double max = -Double.MAX_VALUE;
for (int i = 0; i < values.length; i++) {
if (values[i] > max) {
max = values[i];
}
}
return max;
}
COM: <s> returns the maximum value in an array of values </s>
|
funcom_train/21883967 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String getFiletype(final String type, final String name) {
final StringBuffer sb = new StringBuffer();
sb.append("package.").append(type + ".").append(name + ".").append(Constants.PROPERTY_PKG_FILETYPE_FIELD);
return getProject().getProperty(sb.toString());
}
COM: <s> returns the package filetype </s>
|
funcom_train/3290119 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean releaseClient(VwmCallBackInterface client) {
if (clients.contains(client)) {
clients.removeElement(client);
return true;
} else {
log.warn("Vwm : "+name+" got a release call from : "+client+" but have no idea who he is.");
return false;
}
}
COM: <s> release a client from the listen queue of the wvm </s>
|
funcom_train/1210276 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setProperty(String anExpr) throws PackagerException {
int tmpPos;
if (anExpr != null && (tmpPos = anExpr.indexOf('='))>-1) {
setProperty(anExpr.substring(0,tmpPos),anExpr.substring(tmpPos+1));
} else {
throw new PackagerException("exception.property.set", new String[] {anExpr});
}
}
COM: <s> sets property from given parameter </s>
|
funcom_train/36539268 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle cycle) {
String value = cycle.getParameter(getName());
try {
Object object = getTranslatedFieldSupport().parse(this, value);
getValidatableFieldSupport().validate(this, writer, cycle, object);
setValue(object);
} catch (ValidatorException e) {
getForm().getDelegate().record(e);
}
}
COM: <s> rewinds the component doing translation validation and binding </s>
|
funcom_train/41737573 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JCheckBox getUseCompassCheckBox() {
if (useCompassCheckBox == null) {
useCompassCheckBox = new JCheckBox();
useCompassCheckBox.setText("Compass");
useCompassCheckBox.setName("compasscb");
useCompassCheckBox.setPreferredSize(new Dimension(90, 23));
useCompassCheckBox.addActionListener(VRMUIEventHandler.get());
}
return useCompassCheckBox;
}
COM: <s> this method initializes use compass check box </s>
|
funcom_train/8392012 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void addSee(String seeStr) {
StringTokenizer st = new StringTokenizer(seeStr, "<>");
st.nextToken();
String refName = st.nextToken();
refName = refName.trim();
SemRel rel = new SemRel("see", headNum, refName);
addSemRel(rel);
seeCount++;
}
COM: <s> a see reference must be supplied in the following format </s>
|
funcom_train/34675285 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testCollectPremiumSuccess(){
// create policy
Policy policy = new Policy();
policy.setId("pol1");
policy.setPolicyNumber("pol1");
policy.setStatus(PolicyStatus.ON_RISK);
PaymentSchedule payment = new PaymentSchedule();
policy.setPaymentDetails(payment);
// run command
CollectPremiumCommand command = (CollectPremiumCommand) getCore().newCommand("CollectPremiumService");
command.setPolicyArg(policy);
try {
command.invoke();
} catch (BaseException e) {
e.printStackTrace();
fail("collect premium failed");
}
}
COM: <s> test collect premium from on risk status payment details </s>
|
funcom_train/20828636 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void checkType(SequenceType t, XQueryNode op) throws XQueryException {
//TODO check other types?
if(t instanceof AtomicTypeImpl) {
if(!context.inscope_schema_types.contains(((AtomicTypeImpl)t).getName())) {
throw new XQueryException(op.getPosition(), TypeError.UNKNOWN_TYPES_IN_MODULE);
}
}
}
COM: <s> method check type </s>
|
funcom_train/17604258 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setItems(Object items) throws JspException {
if (!(items instanceof Collection) && !(items instanceof Map) &&
(items != null && items.getClass().isArray())) {
throw new JspException("Invalid items list. Must be an array, Collection or Map.");
}
attributes.put("items", items);
}
COM: <s> populates the tags items which might be a collection or a map </s>
|
funcom_train/4534234 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setDefaultNotifications(NSArray inDefNotes) throws Exception {
int stop = inDefNotes.count();
int i;
for(i = 0; i < stop; i++) {
if (!allNotes.containsObject(inDefNotes.objectAtIndex(i))) {
throw new Exception("Array Element not in Allowed Notifications");
}
}
defNotes = inDefNotes;
}
COM: <s> set the list of default notfiications </s>
|
funcom_train/9373810 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected String getCommonIccEFPath(int efid) {
switch(efid) {
case EF_ADN:
case EF_FDN:
case EF_MSISDN:
case EF_SDN:
case EF_EXT1:
case EF_EXT2:
case EF_EXT3:
return MF_SIM + DF_TELECOM;
case EF_ICCID:
return MF_SIM;
case EF_IMG:
return MF_SIM + DF_TELECOM + DF_GRAPHICS;
}
return null;
}
COM: <s> returns the root path of the ef file </s>
|
funcom_train/11678955 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addEndpoint(final Endpoint endpoint) throws IOException {
final DatagramChannel channel = DatagramChannel.open();
channel.socket().bind(new InetSocketAddress(endpoint.getPort()));
channel.configureBlocking(false);
execute(new SelectorOperation() {
@Override
public void doExecute(Selector selector) throws IOException {
channel.register(selector, SelectionKey.OP_READ, endpoint);
}
});
}
COM: <s> add a new endpoint </s>
|
funcom_train/5189613 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private PaletteContainer createAssociation5Group() {
PaletteStack paletteContainer = new PaletteStack(Messages.Association5Group_title, null, null);
paletteContainer.setId("createAssociation5Group"); //$NON-NLS-1$
paletteContainer.setDescription(Messages.Association5Group_desc);
paletteContainer.add(createAssociation1CreationTool());
paletteContainer.add(createSharedAssociation2CreationTool());
paletteContainer.add(createCompositeAssociation3CreationTool());
paletteContainer.add(createNavigableAssociation4CreationTool());
return paletteContainer;
}
COM: <s> creates association palette tool group </s>
|
funcom_train/3596800 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void createGUI() {
StyleContext sc = new StyleContext();
pstyle = sc.addStyle("pink", null);
StyleConstants.setBackground(pstyle, Color.pink);
boldstyle = sc.addStyle(boldstylename, null);
StyleConstants.setForeground(boldstyle, Color.blue);
StyleConstants.setBold(boldstyle, true);
//StyleConstants.setUnderline(pstyle, true);
linkDisplay.setHighlightingStyle(NTextArea.USER_HIGHLIGHTS,pstyle);
linkDisplay.addStyle(boldstylename, boldstyle);
linkChanged();
}
COM: <s> creates gui objects arranges them in formlayout </s>
|
funcom_train/26312106 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setCurrentHex(final IHex hex) {
curHex = hex.duplicate();
texElev.setText(Integer.toString(curHex.getElevation()));
refreshTerrainList();
if (lisTerrain.getItemCount() > 0) {
lisTerrain.select(0);
refreshTerrainFromList();
}
texTheme.setText(curHex.getTheme());
repaint();
repaintWorkingHex();
}
COM: <s> sets the current hex </s>
|
funcom_train/11729126 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testInitialBaseVersionPointsToRootVersion() throws RepositoryException {
Version rV = versionableNode.getVersionHistory().getRootVersion();
Version bV = versionableNode.getBaseVersion();
assertTrue("After creation of a versionable node the node's baseVersion must point to the rootVersion in the version history.", rV.isSame(bV));
}
COM: <s> test that the initial base version after creation of a versionable node </s>
|
funcom_train/50878072 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Service getService(String inName){
if (inName == null) return null;
for (int i=0; i<myServices.size(); i++){
Service tempService = (Service) myServices.elementAt(i);
if (inName.equalsIgnoreCase(tempService.getServiceName())) return tempService;
}
return null;
}
COM: <s> return the service of the given name </s>
|
funcom_train/22290366 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void showInFrontOf(InternalWindow aWindow) {
if (aWindow.rootView != rootView) {
setRootView(aWindow.rootView);
rootView.addWindowRelativeTo(this, ABOVE, aWindow);
} else if (_superview == null) {
rootView.addWindowRelativeTo(this, ABOVE, aWindow);
} else {
rootView.makeWindowVisible(this, ABOVE, aWindow);
}
}
COM: <s> makes the internal window visible positioned in front of </s>
|
funcom_train/18448818 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean done(final boolean value) {
code = value;
// accepted
if (code) {
if (!onAccept())
return false; // do not dispose window
}
// rejected
else {
if ((cancelButton != null) && !cancelButton.isEnabled())
return false;
if (!onReject())
return false; // do not dispose window
}
onClose();
closed = true;
Mods.exec(this, MOD_CLOSE);
dispose();
// do not destroy/shut down
if (flags.isSet(CACHED))
return true;
resizeAnimation = TK.dispose(resizeAnimation);
validatorSupport.removeAll();
uninstallComponents();
return true;
}
COM: <s> sets return code to </s>
|
funcom_train/13887401 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getTitle(String page) {
String retStr = "No information available";
boolean matched = false;
int start = StringUtil.indexOfIgnoreCase(page, BEGIN_PAGE_TITLE_PATTERN);
int end = StringUtil.indexOfIgnoreCase(page, END_PAGE_TITLE_PATTERN);
if ((start > end) || (start == -1)) {
log.error("The retrieved page is not valid...");
return null;
} else {
retStr = page.substring(start + 7, end);
}
return retStr;
}
COM: <s> returns the title from the html page </s>
|
funcom_train/16525031 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public double optDouble(String key, double defaultValue) {
Object o = opt(key);
if (o != null) {
if (o instanceof Number) {
return ((Number)o).doubleValue();
}
try {
return Double.parseDouble((String) o);
}
catch (Exception e) {
}
}
return defaultValue;
}
COM: <s> get an optional double associated with a key or the </s>
|
funcom_train/1508994 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String checkValidLocation(String dirPath) {
if(dirPath.trim().length() == 0) {
return "cannot be empty";
} else {
if(!(new File(dirPath.trim())).exists()){
return "does not exist";
} else {
return null;
}
}
}
COM: <s> check the validity of the directory path </s>
|
funcom_train/4989988 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void InitializeLogger() {
MessageConsole console = new MessageConsole(
Messages.ApplicationWorkbenchAdvisor_5, null);
ConsolePlugin.getDefault().getConsoleManager().addConsoles(
new IConsole[] { console });
MessageConsoleStream stream = console.newMessageStream();
System.setOut(new PrintStream(stream));
System.setErr(new PrintStream(stream));
// System.out.println(Messages.ApplicationWorkbenchAdvisor_3);
}
COM: <s> initialize txm log in console by redirecting stderr and stdout </s>
|
funcom_train/37837097 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean downloadFiles(final List<String> files, final int size) {
updateProgressBar = new UpdateProgressBar(size, updateProp.getProperty("greetingUrl"), fromVersion, toVersion);
updateProgressBar.setVisible(true);
for (final String file : files) {
boolean res = downloadFile(file);
if (!res) {
return false;
}
}
updateProgressBar.dispose();
return true;
}
COM: <s> downloads the files listed for update </s>
|
funcom_train/16528631 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addMatchChoice(ChoiceCardUI choiceCardUI) {
if(choiceCardUI instanceof MatchChoiceCardUI) {
MatchChoiceCardUI matchChoiceCardUI = (MatchChoiceCardUI) choiceCardUI;
int choiceIndex = matchChoiceCardUI.getChoiceNumber();
matchChoiceList.insertElementAt(matchChoiceCardUI, choiceIndex);
matchChoiceDropDownBox.insertItemAt(matchChoiceCardUI, choiceIndex - 1);
}
}
COM: <s> adds a match choice to this buckets list of match choices </s>
|
funcom_train/11044943 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean containSameHandlers(List<Handler> list1, List<Handler> list2) {
if (list1.size() != list2.size()) {
return false;
}
List<Class> list1HandlerClasses = handlerClasses(list1);
List<Class> list2HandlerClasses = handlerClasses(list2);
if (list1HandlerClasses.containsAll(list2HandlerClasses)) {
return true;
} else {
return false;
}
}
COM: <s> answer if two list handler arguments contain the same handler class files </s>
|
funcom_train/16558600 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testIsShapeVisible() {
for (int i = 0; i < symbols.length; i++) {
assertTrue(getNameForSymbol(symbols[i]) + " does not declare the isShapeVisible field in its XMLEntity",
symbols[i].getXMLEntity().contains("isShapeVisible"));
}
}
COM: <s> ensures that any symbol has an is shape visible field in its persistence </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.