__key__ stringlengths 16 21 | __url__ stringclasses 1 value | txt stringlengths 183 1.2k |
|---|---|---|
funcom_train/23384209 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean addToCourseAndAccount(Course course, Account account) {
if ((course == null) || (account == null)) {
return false;
}
List<Role> courseRoles = course.getRoles();
List<Role> accountRoles = account.getRoles();
this.setAccount(account);
this.setCourse(course);
accountRoles.add(this);
courseRoles.add(this);
account.setRoles(accountRoles);
course.setRoles(courseRoles);
return true;
}
COM: <s> convenience method to add role to a course and an account </s>
|
funcom_train/49320822 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void clear() {
if (!SwingUtilities.isEventDispatchThread()) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
clear();
}
});
return;
}
nread = 0;
updateTime = 0L;
progressBar.stopAnimation();
progressBar.setStringPainted(false);
statusField.setText("Document Done");
if (model != null)
model.setValue(0);
}
COM: <s> reset the progress bar to the idle state </s>
|
funcom_train/41594110 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addUnsortedPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_POCDMT000040RegionOfInterestValue_unsorted_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_POCDMT000040RegionOfInterestValue_unsorted_feature", "_UI_POCDMT000040RegionOfInterestValue_type"),
V3Package.eINSTANCE.getPOCDMT000040RegionOfInterestValue_Unsorted(),
true,
false,
false,
ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
null,
null));
}
COM: <s> this adds a property descriptor for the unsorted feature </s>
|
funcom_train/35309771 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getDescription(File f) {
String description = null;
if(f != null) {
if(getFileView() != null) {
description = getFileView().getDescription(f);
}
FileView uiFileView = getUI().getFileView(this);
if(description == null && uiFileView != null) {
description = uiFileView.getDescription(f);
}
}
return description;
}
COM: <s> returns the file description </s>
|
funcom_train/12563373 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private boolean onlyAppManagerRunning() {
Enumeration midlets = midletProxyList.getMIDlets();
while (midlets.hasMoreElements()) {
MIDletProxy midlet = (MIDletProxy)midlets.nextElement();
if (midlet.getSuiteId() != MIDletSuite.INTERNAL_SUITE_ID ||
midlet.getClassName().indexOf("Manager") == -1) {
return false;
}
}
return true;
}
COM: <s> check to see if only the application manager midlet is running </s>
|
funcom_train/50769425 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addMethodReturnType(Vector typev) {
if (typev.size() > 0) { //because returntype is optional
m.setReturnType(addConcernReference(typev));
} else { //default is void
m.setReturnType(addConcernReference(null, "void"));
}
}
COM: <s> adds the returntype to a method object </s>
|
funcom_train/29793163 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void delClassMember(ClassMember classMember) throws InvalidOperationException {
int index = this.classList.indexOf(classMember);
if (index != -1) {
this.tb.deleteElement((TeachingDAO)this.classList.elementAt(index));
}
else {
throw new InvalidOperationException("Student doesn't exist");
}
}
COM: <s> removes un registers a student from the course </s>
|
funcom_train/2483518 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getMACAddressString() {
return (macaddress[0] & 0x00FF) + "." + (macaddress[1] & 0x00FF) + "."
+ (macaddress[2] & 0x00FF) + "." + (macaddress[3] & 0x00FF) + "."
+ (macaddress[4] & 0x00FF) + "." + (macaddress[5] & 0x00FF);
}
COM: <s> get a human readable mac address representation </s>
|
funcom_train/28763197 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setAccepted(java.math.BigDecimal value) throws com.intersys.objects.CacheException {
com.intersys.cache.Dataholder dh = new com.intersys.cache.Dataholder (value);
mInternal.setProperty(ii_Accepted, jj_Accepted,kk_Accepted, com.intersys.objects.Database.RET_PRIM, "Accepted", dh);
return;
}
COM: <s> sets new value for code accepted code </s>
|
funcom_train/19604838 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setOverrideMiniMapVisiblity(final int aVisiblity) {
switch (aVisiblity) {
case View.GONE:
case View.VISIBLE:
case View.INVISIBLE:
if (this.mMiniMap != null)
this.mMiniMap.setVisibility(aVisiblity);
case NOT_SET:
this.setZoomLevel(this.mZoomLevel);
break;
default:
throw new IllegalArgumentException("See javadoch of this method !!!");
}
this.mMiniMapOverriddenVisibility = aVisiblity;
}
COM: <s> use this method if you want to make the mini map visible i </s>
|
funcom_train/37215901 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Icon iconForActivity(Activity<?> activity) {
Icon icon = iconsMap.get(activity);
if (icon == null) {
int bestScore = ActivityIconSPI.NO_ICON;
ActivityIconSPI bestSPI = null;
for (ActivityIconSPI spi : getInstances()) {
int spiScore = spi.canProvideIconScore(activity);
if (spiScore > bestScore) {
bestSPI = spi;
bestScore = spiScore;
}
}
if (bestSPI != null) {
icon = bestSPI.getIcon(activity);
iconsMap.put(activity, icon);
return icon;
}
else{
return null;
}
} else {
return icon;
}
}
COM: <s> returns an icon for the activity </s>
|
funcom_train/27823518 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean satisfied(TokenSet tokenSet, Pointer pointer) {
int number = 0;
for (int i=0;i<templates.length;i++) {
if (templates[i].satisfied(tokenSet, pointer)) {
number++;
if (number >= threshold) return true;
}
}
return false;
}
COM: <s> returns true if at least threshold of the contained templates return </s>
|
funcom_train/31927434 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetClassParameters() throws Exception {
HashMap classParams = null;
String dataFile = "test/org/jtestcase/data/GetParamTest1.xml";
_jtestcase = new JTestCase(dataFile);
classParams = _jtestcase.getClassParams("GetParamTest");
assertEquals("Normal class parameter not correctly read",
"A class parameter", (String) classParams
.get("classparameter"));
assertEquals("Paramgroup class parameter not correctly read",
"pg1.key", (String) classParams.get("paramgroup/key"));
}
COM: <s> test the get global params method </s>
|
funcom_train/23891207 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setNeccessaryCompoentsEnabled(boolean enable) {
nameTF.setEnabled(enable);
ownerTF.setEnabled(enable);
lockedByTF.setEnabled(enable);
lockedLabel.setEnabled(enable);
ownerOnlyLabel.setEnabled(enable);
nameLabel.setEnabled(enable);
selOwnerLabel.setEnabled(enable);
sizeLabel.setEnabled(enable);
lockedByLabel.setEnabled(enable);
sizeTF.setEnabled(enable);
backGroundTF.setEnabled(enable);
colorLabel.setEnabled(enable);
//set the saved workspace to null
if(!enable) {
ws = null;
}
}
COM: <s> set all components that are visible enabled or disabled </s>
|
funcom_train/17724149 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Object find(Service service) {
Context context = service.getScope().getContext();
Object object = context.get(service);
if (object == null) {
Object instance = assemble(service);
if (instance != null) {
manager.setCallback(instance);
for (Lifecycle lifecycle : Lifecycle.values()) {
manager.setCallback(instance, lifecycle, service.getCallbacks(lifecycle));
}
manager.callback(instance, CONFIGURED);
context.put(service, instance);
manager.callback(instance, STARTED);
return instance;
}
}
return object;
}
COM: <s> returns service instance corresponding to the specified </s>
|
funcom_train/20302052 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String readLineWord(RandomAccessDictionaryFile file) throws IOException {
StringBuffer input = new StringBuffer();
int c;
while (((c = file.read()) != -1) && c != '\n' && c != '\r' && c != ' ') {
input.append((char) c);
}
return input.toString();
}
COM: <s> reads the first word from a file ie offset index word </s>
|
funcom_train/31658946 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String renderComponent2(FormModelNode item, String lang) {
if (item.getFormItem() instanceof ChoiceFormItem)
return HtmlUtil.renderChoiceFormItem2(null, item, lang, name, true);
else if (item instanceof TextFormItem)
return HtmlUtil.renderTextFormItem(item, name, true);
else
return "";
}
COM: <s> gets an input component for a generic item </s>
|
funcom_train/22209532 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setAbstractorDesc(AbstractorDesc newAbstractorDesc) {
if ((newAbstractorDesc == null) && (abstractorDesc == null)) {
return; // nothing to do
}
if (newAbstractorDesc.equals(abstractorDesc)) {
return; // nothing to do
}
AbstractorDesc oldAD = abstractorDesc;
_setAbstractorDesc(newAbstractorDesc);
changeSupport.firePropertyChange(PCE_ABSTRACTORDESC, oldAD, abstractorDesc);
}
COM: <s> set the description of the abstractor to use </s>
|
funcom_train/36762408 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void handlePriceReport(PriceReport report) {
boolean debug = true;
for(int i = 0; i < report.size(); i++) {
int productID = report.getProductID(i);
hiPreviousDayPrices[productID-1] = report.getHighestPrice(i);
lowPreviousDayPrices[productID-1] = report.getLowestPrice(i);
}
}
COM: <s> handle the price report given out every day stating prices </s>
|
funcom_train/49455235 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public long meanTimestamp() throws Exception {
if (count <= 0) throw new IllegalStateException("No data.");
if (count == 1) {
return minTimestamp;
} else {
if (!modified) return meanTs;
if (diff == null) throw new IllegalStateException("No data, diff is null");
BigInteger ts = BigInteger.valueOf(minTimestamp);
ts = ts.add(diff.divide(BigInteger.valueOf(count)));
meanTs = ts.longValue();
modified = false;
return meanTs;
}
}
COM: <s> get the mean timestamp value as a long </s>
|
funcom_train/32779676 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void update(Color foreground, Color background){
//System.out.println("begin update "+this.sizeIntern);
this.remove(this.contentLabel);
this.textColor = foreground;
this.background = background;
this.font = new Font("SansSerif", this.backgroundElement.getTextStyle(),
this.backgroundElement.getTextSize());
this.contentLabel = this.buildContent();
this.add(this.contentLabel, BorderLayout.CENTER);
this.validate();
this.repaint();
}
COM: <s> update of grafic grafic </s>
|
funcom_train/3369071 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean doAccessibleAction(int i) {
if (i < 0 || i > 1) {
return false;
}
Object o = null;
if (i == 0) {
o = getNextValue(); // AccessibleAction.INCREMENT
} else {
o = getPreviousValue(); // AccessibleAction.DECREMENT
}
// try to set the new value
try {
model.setValue(o);
return true;
} catch (IllegalArgumentException iae) {
// SpinnerModel didn't like new value
}
return false;
}
COM: <s> performs the specified action on the object </s>
|
funcom_train/6489187 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected Object cloneTo(Settings ss) {
for (Iterator iter = values.keySet().iterator(); iter.hasNext(); ) {
String key = (String) iter.next();
ss.addSetting(key, getSettingName(key), getSettingDescription(key), values.get(key));
}
return ss;
}
COM: <s> used in implementing deep clone of subclasses </s>
|
funcom_train/4870798 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void add(DataObject newobject) {
objectlist.add(newobject);
newobject.gui = gui;
if (newobject.getObjid() > objnumber) {
objnumber = newobject.getObjid();
} else if (newobject.getObjid() == 0) {
objnumber++;
newobject.setObjid(objnumber);
}
}
COM: <s> add a new data object to the list </s>
|
funcom_train/32075685 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private Text getTextFieldWithLabel(String labelText, String defaultValue, Composite holder, boolean isPasswordField) {
Label l = new Label(holder, SWT.NONE);
l.setText(labelText);
Text textField = null;
if (isPasswordField) {
textField = new Text(holder, SWT.BORDER | SWT.PASSWORD);
} else {
textField = new Text(holder, SWT.BORDER);
}
textField.setLayoutData(new GridData(DEF_WIDTH, DEF_HEIGHT));
textField.setText(defaultValue);
return textField;
}
COM: <s> creates a text field password with custom label and default value </s>
|
funcom_train/3926521 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: static public void markProgress() {
if (( progressIndicator != null ) && ( totalItems > 0 )) {
currentItem++;
int percent = currentItem*100/totalItems;
if ( percent != lastPercent ) {
if ( alternateActive ) {
if ( totalItems > 300 )
progressIndicator.setAlternatePercent( percent );
} else {
progressIndicator.setPercent( percent );
}
lastPercent = percent;
}
}
}
COM: <s> mark progress called once for each item in the total </s>
|
funcom_train/12813186 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: static public String getImageCenterConstraint(String prefix, double ra, double dec, double size_ra, double size_dec ) {
return "boxcenter(" + ra + "," + dec + "," + size_ra + ", " + prefix + "pos_ra_csa," + prefix + "pos_dec_csa, " + prefix + "size_alpha_csa,"+ prefix + "size_delta_csa)";
}
COM: <s> the candidate image overlaps the center of the roi </s>
|
funcom_train/22436438 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public ArrayList getMetabolicPathWayList(KeggOrganism Org) throws RemoteServerException{
try {
return this.DataHandler.getMetabolicPathWayList(Org);
} catch (RemoteException e) {
RemoteServerException newE = new RemoteServerException();
newE.setStackTrace(e.getStackTrace());
throw newE;
} catch (ServiceException e) {
RemoteServerException newE = new RemoteServerException();
newE.setStackTrace(e.getStackTrace());
throw newE;
}
}
COM: <s> get path way list from a href ttp www </s>
|
funcom_train/38993066 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public GenerationMember getRandomMember(boolean elite) {
synchronized(generation) {
int size = elite ? (settings.getEliteSize() % generation.size()) : generation.size();
if (size == 0) {
return null;
}
int r = random.nextInt(size);
int idx = (int)(r * ((double) r / (double) size));
return generation.get(idx);
}
}
COM: <s> pick a random member either from the general pool or elite pool </s>
|
funcom_train/28328937 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public BeanDefinition parse(final Element element, final ParserContext parserContext) {
//create this processor
final BeanDefinitionRegistry registry = parserContext.getRegistry();
if (!registry.containsBeanDefinition(LifecycleBeanPostProcessor.BEAN_NAME)) {
final BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(LifecycleBeanPostProcessor.class);
registry.registerBeanDefinition(LifecycleBeanPostProcessor.BEAN_NAME, builder.getBeanDefinition());
}
return null;
}
COM: <s> p register into spring code io c di code container bean </s>
|
funcom_train/33644123 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setLocalizerBase(final String localizerBase) {
if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(localizerBase));
if (null == localizerBase) {
throw new RuntimeExceptionIsNull("localizerBase"); //$NON-NLS-1$
}
this.localizerBase = localizerBase;
setupBundle(getLocale());
if (log.isDebugEnabled()) log.debug(HelperLog.methodExit());
}
COM: <s> sets the localizer base of the resource file </s>
|
funcom_train/22341670 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public double angle(Vec3 v) {
double cosPhi = (
(this.x * v.x + this.y * v.y + this.z * v.z) /
Math.sqrt(this.lengthSquared() * v.lengthSquared())
);
// Eliminate rounding errors
if(cosPhi < -1.0) cosPhi = -1.0;
if(cosPhi > 1.0) cosPhi = 1.0;
return Math.acos(cosPhi);
}
COM: <s> returns the angle in radians between this vector and the vector v </s>
|
funcom_train/43186048 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: static public void setContentPrefixList(Vector list) {
if (pm != null && mSetContentPrefixList != null) {
Object [] params = new Object[1];
params[0] = list.clone();
runMethod(mSetContentPrefixList, params);
contentPrefixList = getContentPrefixList();
} else
contentPrefixList = (Vector)list.clone();
}
COM: <s> set the current value of the content package prefix list </s>
|
funcom_train/26590838 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private Object getObjectFromOptionArray(FieldBase[] field) throws DException {
for (int i = 0; i <field.length; i++) {
if(!field[i].isNull()){
return field[i];
}
}
return new FieldLiteral(FieldUtility.NULLBUFFERRANGE,resultType);
}
COM: <s> this implemented to handle optional array of parameters </s>
|
funcom_train/26618245 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void onRenderFrameStop(IContext context, Image image) {
if (m_renderListeners.isEmpty()) {
return;
}
for (Iterator it = m_renderListeners.iterator(); it.hasNext();) {
((IRenderListener) it.next()).onRenderFrameStop(context, image);
}
}
COM: <s> frame stop rendering </s>
|
funcom_train/16683569 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean isApplicationDeployed() throws FxApplicationException {
final FxPK pk = getPagePK();
if (pk.isNew()) {
throw new FxApplicationException("universal.error.instancePkNotSpecified").asRuntimeException();
}
return (Boolean) EJBLookup.getContentEngine().load(pk).getValue("/isdeployed").getBestTranslation();
}
COM: <s> returns true if uip application was deployed yet </s>
|
funcom_train/3102852 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void openParent(final EiffelElementInfo info, final Map elements, final IProgressMonitor monitor) throws EiffelModelException {
final AbstractOpenableElement parent= (AbstractOpenableElement) getOpenableParent();
if (parent != null && !parent.isOpen()) {
parent.generateInfos(parent.createInfo(), elements, monitor);
}
}
COM: <s> opens the parent element if necessary </s>
|
funcom_train/40956630 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void createDecoderConfigDescriptor(DataStream bitstream) throws IOException {
bitstream.readBytes(1);
int value = (int)bitstream.readBytes(1);
value = (int)bitstream.readBytes(2);
int bufferSizeDB = value << 8;
value = (int)bitstream.readBytes(1);
bufferSizeDB |= value & 0xff;
bitstream.readBytes(4);
bitstream.readBytes(4);
readed += 13;
if(readed < size) {
MP4Descriptor descriptor = createDescriptor(bitstream);
children.addElement(descriptor);
readed += descriptor.getReaded();
}
}
COM: <s> loads the mp4 decoder config descriptor from the input bitstream </s>
|
funcom_train/18792575 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public PluginMetaData getPluginMetaData() {
Map properties = new HashMap();
properties.put("monitorObjectName", monitorObjectName);
properties.put("mbeanServerName", mbeanServerName);
properties.put("measurementDomain",measurementDomain);
properties.put("overwrite", String.valueOf(overwrite));
return new PluginMetaData(EtmMonitorJmxPlugin.class, DESCRIPTION, properties);
}
COM: <s> returns the current jmx plugin console metadata </s>
|
funcom_train/39396401 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addHeaderLine(String line) {
try {
char c = line.charAt(0);
if (c == ' ' || c == '\t') // continuation character
{
int len = headers.size();
InternetHeader header = headers.get(len - 1);
StringBuffer buffer = new StringBuffer();
buffer.append(header.line);
buffer.append("\r\n");
buffer.append(line);
header.line = buffer.toString();
} else {
synchronized (headers) {
headers.add(new InternetHeader(line));
}
}
} catch (StringIndexOutOfBoundsException e) {
} catch (NoSuchElementException e) {
}
}
COM: <s> adds an rfc 822 header line to this internet headers </s>
|
funcom_train/24262127 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testDisassociateSourceVariableE3() {
try {
ArrayList<Variable> sourceVariablesToDisassociate
= new ArrayList<Variable>();
sourceVariablesToDisassociate.add(rawVariable1);
curationService.disassociateSourceVariables(demoUser,
derivedVariable2,
sourceVariablesToDisassociate);
fail();
}
catch(MacawException exception) {
int totalNumberOfErrors
= exception.getNumberOfErrors();
assertEquals(1, totalNumberOfErrors);
int numberOfErrors
= exception.getNumberOfErrors(MacawErrorType.NON_EXISTENT_VARIABLE_ASSOCIATION);
assertEquals(1, numberOfErrors);
}
}
COM: <s> disassociate a source variable from a </s>
|
funcom_train/24492614 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected Integer getNextCommentIdFor(String reviewId, String author) {
Integer result = 0;
// If an entry does already exist, give back the highest key+1
if (commentDB.containsKey(reviewId)) {
if (commentDB.get(reviewId).containsKey(author)) {
result = commentDB.get(reviewId).get(author).lastKey() + 1;
}
}
return result;
}
COM: <s> returns the next free id for the given review id author pair </s>
|
funcom_train/8527667 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addColumsDeclaration(Node table){
Node col = mDoc.getDocument().createElementNS(mOdtNsc.getNamespaceURI("table"),"table:table-column");
int numberOfCols=getNumberOfCols();
Attr attr =mDoc.getDocument().createAttributeNS(mOdtNsc.getNamespaceURI("table"), "table:number-columns-repeated");
attr.setNodeValue(this.getNumberOfCols()+"");
col.getAttributes().setNamedItemNS(attr);
table.appendChild(col);
}
COM: <s> adds the colums declaration </s>
|
funcom_train/17458245 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean disableOutput(MPDOutput output) throws MPDConnectionException, MPDResponseException {
MPDCommand command = new MPDCommand(prop.getProperty(MPDPROPOUTPUTDISABLE), Integer.toString(output.getId()));
fireOutputChangeEvent(OutputChangeEvent.OUTPUT_EVENT.OUTPUT_CHANGED);
return mpd.sendMPDCommand(command).isEmpty();
}
COM: <s> disables the passed </s>
|
funcom_train/17522024 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void open(){
this.b_progress.setValue(0);
this.setLocation
(parent.getLocation().x + 10, parent.getLocation().y + 10);
this.setSize(PREF_SIZE);
this.setResizable(false);
this.setVisible(true);
this.setResizable(true);
}
COM: <s> show the progress bar </s>
|
funcom_train/18543325 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected String getWindowTitle() {
switch (this.type) {
case SINGLE_PARSE :
return HirudoConstants.TXT_MENU_PARSE_ONLY;
case SINGLE_PARSE_INLINE :
return HirudoConstants.TXT_MENU_PARSE_INLINE;
case SINGLE_PARSE_ALL :
return HirudoConstants.TXT_MENU_PARSE_ALL;
case SINGLE_DOWNLOAD :
return HirudoConstants.TXT_MENU_DOWNLOAD_ONLY;
default :
return "";
}
}
COM: <s> returns the correct window title based on the context in which this </s>
|
funcom_train/13902286 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void saveState(IMemento memento) {
fMemberFilterActionGroup.saveState(memento);
memento.putString(TAG_SHOWINHERITED, String.valueOf(isShowInheritedMethods()));
memento.putString(TAG_SORTBYDEFININGTYPE, String.valueOf(isShowDefiningTypes()));
ScrollBar bar= getTable().getVerticalBar();
int position= bar != null ? bar.getSelection() : 0;
memento.putString(TAG_VERTICAL_SCROLL, String.valueOf(position));
}
COM: <s> saves the state of the filter actions </s>
|
funcom_train/11721721 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean remove(Object o) {
for (int i = 0; i < size; i++) {
if (elementData[i].get() == o) {
emptySlots.set(i);
// overwrite entry with dummy ref
elementData[i] = new WeakRef(null, i);
return true;
}
}
return false;
}
COM: <s> removes the object code o code from this collection if it is present </s>
|
funcom_train/4644616 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addArgumentsPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AttachmentType_arguments_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AttachmentType_arguments_feature", "_UI_AttachmentType_type"),
TassooPackage.Literals.ATTACHMENT_TYPE__ARGUMENTS,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
COM: <s> this adds a property descriptor for the arguments feature </s>
|
funcom_train/37184294 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void allocateAll()
{
isSeed = false;
choked = true;
interested = false;
requested = new Vector();
choking = true;
interesting = false;
requesting = new Vector();
snubbed = false;
bContinue = true;
available = new boolean[manager.getPiecesNumber()];
Arrays.fill(available,false);
this.peerItem = new PeerTableItem(table,this);
this.state = TRANSFERING;
}
COM: <s> private method that will finish fields allocation once the handshaking is ok </s>
|
funcom_train/41262775 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setListRows() {
Cursor cursor = this.cursor;
if (cursor != null) { //if have search results
//Fields from cursor
String[] from = new String[]{DBManager.BOOK_SEARCH_TITLE,
DBManager.BOOK_SEARCH_LANG,
DBManager.BOOK_SEARCH_FORMAT,
DBManager.BOOK_SEARCH_SIZE
};
//UI elements to bind
int[] to = new int[]{R.id.book_title,
R.id.book_lang,
R.id.book_format,
R.id.book_size
};
//Create a simple cursor adapter
SimpleCursorAdapter rows = new SimpleCursorAdapter(this, R.layout.booklistrow, cursor, from, to);
bookList.setAdapter(rows);
}
}
COM: <s> load results to list view </s>
|
funcom_train/18461977 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String toStringDebug() {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < m_chromosomes.length; i++) {
if (i > 0) {
sb.append(" ==> ");
}
m_chromosomes[i].setIndividual(this);
sb.append(m_chromosomes[i].toStringDebug());
}
return sb.toString();
}
COM: <s> builds a string that represents the debug output of the gpprogram </s>
|
funcom_train/39917895 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private QuestionnaireMgr lookupBean() {
try {
Context c = new InitialContext();
return (QuestionnaireMgr) c.lookup("java:comp/env/ejb/QuestionnaireMgr");
} catch(NamingException ne) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE,"exception caught" ,ne);
throw new RuntimeException(ne);
}
}
COM: <s> looks up the session bean </s>
|
funcom_train/43267568 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setTabName() {
try {
if (tabName.getText().compareTo("") == 0) {
JOptionPane.showMessageDialog(this, "Name of tab cannot be empty");
}
else {
this.returnValue = tabName.getText();
this.setVisible(false);
}
}
catch (final Exception e) {
e.printStackTrace();
}
}
COM: <s> sets the tab name attribute of the new concept button tab dialog object </s>
|
funcom_train/23937511 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setStateAfterActivation(String state) {
if (state != null) {
if (!state.equals(STATE_INSTANTIATED) && !state.equals(STATE_LIVE)) {
if (log.isWarnEnabled()) {
log.warn("Illegal after-activation state '" + state
+ "' ignored");
}
state = null;
}
}
stateAfterActivation = state;
}
COM: <s> sets the behavioral state after activation of the 3d artwork </s>
|
funcom_train/45355013 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JFrame getJFrame() {
if (jFrame == null) {
jFrame = new JFrame();
jFrame.setSize(500, 217);
jFrame.setTitle("Connection Configuration");
jFrame.setLocation(165, 5);
jFrame.setContentPane(getJContentPane());
jFrame.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent e) {
StopConnect = true;
}
});
}
return jFrame;
}
COM: <s> this method initializes j frame </s>
|
funcom_train/37833556 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void acceptQuest() {
concreteQuest.getNPC().add(ConversationStates.QUEST_OFFERED,
ConversationPhrases.YES_MESSAGES, null,
ConversationStates.IDLE, concreteQuest.respondToQuestAcception(),
new SetQuestAndModifyKarmaAction(concreteQuest.getSlotName(), "", concreteQuest.getKarmaDiffForQuestResponse()));
}
COM: <s> player is willing to help </s>
|
funcom_train/47827118 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean isType(PI type){
if (type == PI.nonvar_1) return !isType(PI.var_1);
else if (this.type == type) return true;
else if (type == PI.atomic_0){
return this.type == PI.atom_0 ||
this.type == PI.integer_0 ||
this.type == PI.float_0;
}else if (type == PI.number_0){
return this.type == PI.integer_0 || this.type == PI.float_0;
}
return false;
}
COM: <s> returns code true code if the type of this term matches the argument </s>
|
funcom_train/38588721 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void init() {
setLayout(new BorderLayout());
// configure basic window settings.
buildMainWindowBase();
// Menu Panel
setJMenuBar(initMenu());
// Content Panel
getContentPane().add(initContentPanel(),BorderLayout.CENTER);
// TODO impelment Status Bar ?
// getContentPane().add(buildStatusBar(), BorderLayout.SOUTH);
// do this when all GUI Controls are created set Look&Feel.
initPopUpMenuFileInput();
}
COM: <s> common initialisation of this window </s>
|
funcom_train/37013351 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void cleanUp(LuceneService lucene) {
for ( String indexType : updateMap.keySet() ) {
List<Object> list = updateMap.get(indexType);
for ( Object o : list ) {
try {
lucene.deleteObjectById(indexType, o);
} catch ( Exception e ) {
if ( log.isDebugEnabled() ) {
log.debug("Unable to delete by object ID for ID [" +o +"]");
}
}
}
}
}
COM: <s> delete all updated objects </s>
|
funcom_train/1753567 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public StringBuffer toString(final StringBuffer s, final String prefix, final String postfix) {
if (chunk != null) {
final Iterator i = chunk.iterator();
while (i.hasNext()) {
s.append(prefix);
s.append(i.next());
s.append(postfix);
}
}
return s;
}
COM: <s> provide a string image of the chunk using the given prefix and postfix </s>
|
funcom_train/5340937 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JMenuItem createItem(FilterBox box, Selector selector) {
String title = selector.getTitle();
boolean isSelected = box.getSelector().equals(selector);
JMenuItem item = new JCheckBoxMenuItem(title, isSelected);
item.putClientProperty(SELECTOR, selector);
return item;
}
COM: <s> constructs a new jcheck box menu item for the specified selector </s>
|
funcom_train/3296829 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int getOppositeExitOf(int exit) {
if (exit == EXIT_NORTH )
return EXIT_SOUTH;
if (exit == EXIT_SOUTH )
return EXIT_NORTH;
if (exit == EXIT_EAST )
return EXIT_WEST;
if (exit == EXIT_WEST )
return EXIT_EAST;
if (exit == EXIT_UP )
return EXIT_DOWN;
if (exit == EXIT_DOWN)
return EXIT_UP;
if (exit == EXIT_NORTH_EAST)
return EXIT_SOUTH_WEST;
if (exit == EXIT_SOUTH_EAST)
return EXIT_NORTH_WEST;
if (exit == EXIT_SOUTH_WEST)
return EXIT_NORTH_EAST;
if (exit == EXIT_NORTH_WEST)
return EXIT_SOUTH_EAST;
return 0;
}
COM: <s> returns the opposite exit of another exit if given north returns south </s>
|
funcom_train/16386610 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void checkPrimitiveUnknown(String typeName) {
if (typeName != null
&& (typeName.equalsIgnoreCase("unknown") || typeName
.equalsIgnoreCase("primitive.unknown"))) {
PluginLog.logDebug("Unsupported tigerstipe primitive type: \'"
+ typeName + "\'");
throw new UnknownPrimitiveTypeException(
"Unsupported tigerstipe primitive type: \'" + typeName
+ "\'");
}
}
COM: <s> the generator stops when it encounters unknown type </s>
|
funcom_train/927732 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void renameNode() {
if (ItemUtil.isNode(m_LastSelectedVisualItem)) {
getDisplay().editText(m_LastSelectedVisualItem, "label");
getDisplay().getTextEditor().selectAll();
}
else if (ItemUtil.isNote(m_LastSelectedVisualItem)) {
new NoteEditor((Note)m_LastSelectedVisualItem.getSourceTuple());
m_NetworkEdit.filterAndUpdate();
}
}
COM: <s> rename last selected visual item </s>
|
funcom_train/40678929 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void connect(final AUTOPLUG_CONTINUE listener) {
connect(AUTOPLUG_CONTINUE.class, listener, new GstCallback() {
@SuppressWarnings("unused")
public boolean callback(DecodeBin2 elem, Pad pad, Caps caps) {
return listener.autoplugContinue(elem, pad, caps);
}
});
}
COM: <s> adds a listener for the code autoplug continue code signal </s>
|
funcom_train/20882752 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void timeToSpeech(int hour, int min) {
if (hour < 0 || hour > 23) {
throw new IllegalArgumentException("Bad time format: hour");
}
if (min < 0 || min > 59) {
throw new IllegalArgumentException("Bad time format: min");
}
String theTime = timeToString(hour, min);
textToSpeech(theTime);
}
COM: <s> speaks the time given the hour and minute </s>
|
funcom_train/35739642 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setCertificate(X509Certificate newCert) {
if (Logging.SHOW_FINE && LOG.isLoggable(Level.FINE)) {
LOG.fine("setCert : " + newCert);
}
certs.clear();
if (null == newCert) {
encryptedPrivateKey = null;
} else {
certs.add(newCert);
}
}
COM: <s> sets the seed certificate for this peer </s>
|
funcom_train/38224826 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private Association findAssociation(OntologyContent content, String id) {
for (Iterator i = content.getElements(Association.TYPE).iterator(); i
.hasNext();) {
Association a = (Association) i.next();
if (id.equals(a.getId()) || id.equals(a.getInverseId())) { return a; }
}
return null;
}
COM: <s> finds association by id either direct or inverse </s>
|
funcom_train/20775548 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setIntegralControlUsesPropDerivErrors(boolean integralControlUsesPropDerivErrors) {
this.integralControlUsesPropDerivErrors = integralControlUsesPropDerivErrors;
iControl.setLocation(0, 0); // reset error signal
putBoolean("integralControlUsesPropDerivErrors", integralControlUsesPropDerivErrors);
}
COM: <s> set the value of integral control uses prop deriv errors </s>
|
funcom_train/16558598 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testDescription() {
for (int i = 0; i < symbols.length; i++) {
assertTrue(getNameForSymbol(symbols[i]) + " does not declare a description in its XMLEntity",
symbols[i].getXMLEntity().contains("desc"));
}
}
COM: <s> ensures that any symbol has a description in its persistence </s>
|
funcom_train/34339590 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public TextField getCaracter() {
if (Caracter == null) {//GEN-END:|22-getter|0|22-preInit
// write pre-init user code here
Caracter = new TextField("Solo 10 letras!", null, 10, TextField.ANY);//GEN-LINE:|22-getter|1|22-postInit
// write post-init user code here
}//GEN-BEGIN:|22-getter|2|
return Caracter;
}
COM: <s> returns an initiliazed instance of caracter component </s>
|
funcom_train/42116912 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void calcContribution(DiagonalMatrix d) {
float[] eigenval = d.getArray();
int factor = eigenval.length;
contribution = new RowVector(factor);
cumulative = new RowVector(factor);
float cum = 0.0f;
for (int i = 0; i < factor; ++i) {
float val = eigenval[i] / sum_var;
contribution.set(i, val);
cumulative.set(i, cum += val);
}
}
COM: <s> calculate the contribution and the cumulative contribution from </s>
|
funcom_train/18349453 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getFullTableNameForConcept(Concept concept) {
Deployment deployment = Pro.get().getDeployment(concept.getConceptId());
if(deployment == null) {
throw new CapServiceException("getDeployment() for " + concept.getName() + " returned null");
}
Platform platform = deployment.getPlatform();
return platform.getName() + ".." + getTableNameForConcept(concept);
}
COM: <s> returns the fully qualified name of table </s>
|
funcom_train/7427064 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removePoints(final int pos, final int num) {
int sanitizedNum = Math.min(num, numPoints - pos);
if (sanitizedNum > 0) {
System.arraycopy(points, (pos + sanitizedNum) * 2, points, pos * 2, (numPoints - (pos + sanitizedNum)) * 2);
numPoints -= sanitizedNum;
}
}
COM: <s> remove a subsequence of points from this xyarray starting as pos </s>
|
funcom_train/46760733 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Long store(final RoleModel role, final IChainStore chain, final ServiceCall call) throws Exception {
IBeanMethod method = new IBeanMethod() { public Object execute() throws Exception {
long roleId = SecurityBean.super.store(role, chain, call);
return roleId;
}}; return (Long) call(method, call);
}
COM: <s> save the role model model creating a new role or updating existing rows </s>
|
funcom_train/10793844 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void addMapping(String path, Object id) {
if (StringUtils.isEmpty(path))
throw new MetaDataException(_loc.get("null-path",
QueryResultMapping.this, _candidate));
_mappings = null;
_eager = null;
_fetchInfo = null;
if (_rawMappings == null) {
_rawMappings = new HashMap<String, Object>();
}
_rawMappings.put(path, id);
}
COM: <s> map the given path to the given result id </s>
|
funcom_train/5307783 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Paint getPaint(double value) {
double v = Math.max(value, this.lowerBound);
v = Math.min(v, this.upperBound);
int g = (int) ((v - this.lowerBound) / (this.upperBound
- this.lowerBound) * 255.0);
return new Color(g, g, g);
}
COM: <s> returns a paint for the specified value </s>
|
funcom_train/23306703 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean equals(Object obj) {
boolean eq = false;
if ((_jobReference != null) && (_applicationInstance != null)) {
if ((obj != null) && (obj instanceof ApplicationJob)) {
ApplicationJob appJob = (ApplicationJob) obj;
if (_jobReference.equals(appJob.getJobReference())) {
if (_applicationInstance.equals(appJob)) {
eq = true;
}
}
}
}
return eq;
}
COM: <s> equal for same non null reference and application instance </s>
|
funcom_train/42199913 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JPanel buildTreePanel() {
tree = new JMEComposableTree(null);
tree.setFont(new Font("Helvetica", Font.PLAIN, 11));
tree.setVisibleRowCount(-1);
tree.setExpandsSelectedPaths(true);
tree.addMouseListener(new MonitorTreeMouseHandler(this));
ToolTipManager.sharedInstance().registerComponent(tree);
JScrollPane treeScroller = new JScrollPane(tree);
JPanel listPanel = new JPanel();
listPanel.setLayout(new BoxLayout(listPanel, BoxLayout.Y_AXIS));
listPanel.add(treeScroller);
return listPanel;
}
COM: <s> build the tree panel for the content pane </s>
|
funcom_train/45251072 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void addSubNodes() {
IPreferenceNode[] subnodes = node.getSubNodes();
PreferenceEntry previous = null;
for (int i = 0; i < subnodes.length; i++) {
PreferenceEntry entry = createEntry(subnodes[i], subnodes[i]
.getLabelText(), offset + 1);
if (previous == null) {
entry.composite.moveBelow(this.composite);
} else {
entry.composite.moveBelow(previous.composite);
}
previous = entry;
}
}
COM: <s> add the subnodes of the receiver </s>
|
funcom_train/95850 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: static private String makeDesc (String className, int arity, boolean descriptor) {
if (!descriptor && (arity == 0)) {
return className.replace('.','/');
}
StringBuffer desc = new StringBuffer(arity+2+className.length());
for (int i=0;i<arity;i++)
desc.append(VMDescriptor.C_ARRAY);
desc.append(VMDescriptor.C_CLASS);
desc.append(className.replace('.','/'));
desc.append(VMDescriptor.C_ENDCLASS);
return desc.toString();
}
COM: <s> a helper to build a type description based on a java class </s>
|
funcom_train/46158367 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected IContainer openStreamingAssetContainer(String uri) {
ReadableByteChannel channel = resolveURI(uri);
if (channel == null) {
return null;
}
IContainer out = IContainer.make();
int res = out.open(channel, null);
if (res < 0) {
throw new IllegalArgumentException("Error opening " + uri + ": " + res);
}
return out;
}
COM: <s> open a container based on a cache </s>
|
funcom_train/44989461 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void storeResult(net.sf.evalon.entity.Result result) {
// PROTECTED REGION ID(net.sf.evalon.service.Poll~storeResult~result~void) START
if (result instanceof CountResult) {
resultDAO.storeResult((CountResult)result);
}
if (result instanceof TextResult) {
resultDAO.storeResult((TextResult)result);
}
if (result instanceof NumberResult) {
resultDAO.storeResult((NumberResult)result);
}
// PROTECTED REGION END
}
COM: <s> p saves or updates a result </s>
|
funcom_train/5680237 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String normalizeURI(String uri) {
String result = uri;
int doubleSlashIndex = -1;
while ((doubleSlashIndex = result.indexOf("//")) > -1) {
result = result.substring(0, doubleSlashIndex)
+ result.substring(doubleSlashIndex + 1);
}
return result;
}
COM: <s> substitute multiple contiguous slashes with a single slash </s>
|
funcom_train/18213959 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addServerURLPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_BugzillaMetricsRPCConfiguration_serverURL_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_BugzillaMetricsRPCConfiguration_serverURL_feature", "_UI_BugzillaMetricsRPCConfiguration_type"),
EvaluationmodelPackage.Literals.BUGZILLA_METRICS_RPC_CONFIGURATION__SERVER_URL,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
COM: <s> this adds a property descriptor for the server url feature </s>
|
funcom_train/9984432 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void restoreDefaults() {
try {
fIgnorePreferenceStoreChanges= true;
fPreferenceStore.setToDefault(fKey);
} finally {
fIgnorePreferenceStoreChanges= false;
}
try {
load();
} catch (IOException x) {
// can't log from jface-text
x.printStackTrace();
}
}
COM: <s> deletes all user added templates and reverts all contributed templates </s>
|
funcom_train/50045603 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testReadFloats() {
System.out.println("readFloats");
int fileId = 0;
String dsName = "";
int fromIndex = 0;
int toIndex = 0;
float[] expResult = null;
//float[] result = HDF5Utils.readFloats(fileId, dsName, fromIndex, toIndex);
}
COM: <s> test of read floats method of class util </s>
|
funcom_train/28471776 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetAuthor() {
AuthorSubscription testAutSub = new AuthorSubscription();
String testAuthor1 = "Johnny John";
String testAuthor2 = "Gregor Greg";
testAutSub.setAuthor(testAuthor1);
assertTrue(testAutSub.getAuthor().equals(testAuthor1));
testAutSub.setAuthor(testAuthor2);
assertTrue(testAutSub.getAuthor().equals(testAuthor2));
}
COM: <s> gets the name of a new author into the object </s>
|
funcom_train/12852408 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JButton getSelectAllButton() {
if (selectAllButton == null) {
selectAllButton = new JButton();
selectAllButton.setText(_("Check all"));
selectAllButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
model.checkAll();
}
});
}
return selectAllButton;
}
COM: <s> this method initializes j button </s>
|
funcom_train/5254711 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void insertBundesland(Bundesland bundesland) {
Connection connection = null;
PreparedStatement preparedStatement = null;
try {
String query = "INSERT INTO BUNDESLAND(KENNUNG,LANDESNAME) VALUES (?,?)";
connection = getConnection();
preparedStatement = connection.prepareStatement(query);
preparedStatement.setInt(1, bundesland.getKennung().getInt());
preparedStatement.setString(2, bundesland.getName());
preparedStatement.execute();
} catch (SQLException e) {
throw new RuntimeException(e);
} finally {
try {
preparedStatement.close();
connection.close();
} catch (SQLException e) {
}
}
}
COM: <s> insert a new state into the db </s>
|
funcom_train/44011451 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testValidatePassword() {
System.out.println("validatePassword");
String pwd = "";
EmployeeBO instance = new EmployeeBO();
boolean expResult = true;
boolean result = instance.validatePassword(pwd);
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 validate password method of class edu </s>
|
funcom_train/8608724 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void broadcastToAllianceMembers(final Player player) {
PlayerAlliance alliance = player.getPlayerAlliance();
if (alliance != null) {
for (PlayerAllianceMember allianceMember : alliance.getMembers()) {
if (!allianceMember.isOnline()) continue;
PacketSendUtility.sendPacket(allianceMember.getPlayer(), new SM_MESSAGE(player, message, type));
}
}
}
COM: <s> sends message to all alliance members </s>
|
funcom_train/48480710 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public HandlerRegistration addRecordCollapseHandler(com.smartgwt.client.widgets.grid.events.RecordCollapseHandler handler) {
if(getHandlerCount(com.smartgwt.client.widgets.grid.events.RecordCollapseEvent.getType()) == 0) setupRecordCollapseEvent();
return doAddHandler(handler, com.smartgwt.client.widgets.grid.events.RecordCollapseEvent.getType());
}
COM: <s> add a record collapse handler </s>
|
funcom_train/27696301 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean next() {
if (count == 0) {
current = null;
return false;
}
current = stack[--count]; // pop
if (current instanceof DeclaredTypeContainer) {
pushAll(((DeclaredTypeContainer)current).getDeclaredTypes());
if (current instanceof ClassType) {
ClassType cct = (ClassType)current;
pushAll(cct.getFields());
pushAll(cct.getConstructors());
pushAll(cct.getMethods());
}
}
return true;
}
COM: <s> proceeds to the next element if available </s>
|
funcom_train/20749886 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected PASTService makePASTNode() {
PastryNode pn = factory.newNode(getBootstrap());
pastrynodes.add(pn);
StorageManager storage = new StorageManager(new MemoryStorage(),
new LRUCache(new MemoryStorage(), 10000));
PASTServiceImpl past = new PASTServiceImpl(pn, storage);
past.DEBUG = true;
pastNodes.add(past);
System.out.println("created " + pn);
return past;
}
COM: <s> creates a pastry node with a pastservice running on it </s>
|
funcom_train/4124297 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public DiplomaticTrade showNegotiationDialog(Unit unit, Settlement settlement, DiplomaticTrade agreement) {
NegotiationDialog negotiationDialog = new NegotiationDialog(this, unit, settlement, agreement);
negotiationDialog.initialize();
// TODO: Not a standard dialog, special treatment for now.
addAsFrame(negotiationDialog);
DiplomaticTrade offer = (DiplomaticTrade) negotiationDialog.getResponse();
remove(negotiationDialog);
return offer;
}
COM: <s> displays the code negotiation dialog code </s>
|
funcom_train/1440503 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void notifyDataListener(int statIndex, String value) {
try {
StatisticsData data = new StatisticsData();
data.setStatID(statIndex);
data.setStatName(getStatName(statIndex));
data.setStatValue(value);
dataListener.setServerStat(data);
} catch (RemoteException e) {
logger.error("Statistics change notification.", e);
}
}
COM: <s> create statistics data object and send it to remote data listener </s>
|
funcom_train/3484498 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String getEmail ( String entry ) {
int startIndex;
if ( ( startIndex = entry.indexOf ( '<' ) ) != -1 ) {
// Find the actual email address of the person
//
int closeIndex;
if ( ( closeIndex = entry.indexOf ( '>', startIndex ) ) != -1 ) {
String email = entry.substring ( startIndex + 1, closeIndex );
return ( email );
}
}
return ( entry );
}
COM: <s> get the email address from the specified friendly email entry </s>
|
funcom_train/22206273 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean hasMergeMap(Locator mapLocator) {
if (m_provider.isTransactionOpen()) {
return hasMergeMap(m_provider.getOpenTransaction(), mapLocator);
} else {
ProviderTransaction txn = m_provider.openTransaction();
boolean ret = hasMergeMap(txn, mapLocator);
txn.rollback();
return ret;
}
}
COM: <s> determine whether or not the specified resource is listed in an </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.