__key__ stringlengths 16 21 | __url__ stringclasses 1 value | txt stringlengths 183 1.2k |
|---|---|---|
funcom_train/28132962 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void transferStateToConfig() {
config.setJQuery(jsExtJSAdaptersOptions.isSelected(0));
config.setYahooUI(jsExtJSAdaptersOptions.isSelected(1));
config.setPrototype(jsExtJSAdaptersOptions.isSelected(2));
config.setExtTLD(jsExtJSAdaptersOptions.isSelected(3));
//config.setYahooCompressor(jsCompressorsOptions.isSelected(0));
//TODO in 1.0.0-m2 only this one is supported
config.setMojoToolsCompressor(jsCompressorsOptions.isSelected(0));
}
COM: <s> p support for configuring properly the config object represented by </s>
|
funcom_train/21995521 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void addRegExpFilter(String field_name, String field_value, Vector filters) {
if (field_value != null && field_value.trim().length() > 0)
filters.add(new StringBuffer()
.append(field_name).append(" REGEXP ").append( HelperDB.quote(field_value) ).toString());
}
COM: <s> regexp match support for build query </s>
|
funcom_train/1066769 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setViewerSelectionFromEditPartViewer(ISelectionProvider viewer, ISelection selection) {
// Construct a list of model elements from EditParts
ArrayList result = new ArrayList();
Iterator iter = ((IStructuredSelection)selection).iterator();
while (iter.hasNext()) {
Object model = convertToModel((EditPart)iter.next());
if (model != null)
result.add(model);
}
// Set the list of model elements
viewer.setSelection(new StructuredSelection(result));
}
COM: <s> set the selection from an edit part viewer to an iselection provider </s>
|
funcom_train/543097 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setHelpText (String helpText) {
this.helpText = helpText;
if ( isDefaultHelpText() ) {
super.setToolTipText( getText() );
return;
}
if ( helpText.equals( "" ) ) {
super.setToolTipText( null );
return;
}
super.setToolTipText( helpText );
}
COM: <s> sets the button help text </s>
|
funcom_train/12922909 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Deblocking getDeblocking() {
Deblocking value;
switch (deblocking) {
case 1:
value = Deblocking.OFF;
break;
case 2:
value = Deblocking.ON;
break;
case 3:
value = Deblocking.LEVEL2;
break;
case 4:
value = Deblocking.LEVEL3;
break;
case 5:
value = Deblocking.LEVEL4;
break;
default:
value = Deblocking.VIDEO;
break;
}
return value;
}
COM: <s> get the method used to control the flash players deblocking filter </s>
|
funcom_train/3927715 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean matches( int tokenOffset, String s ) {
int size = tokenSizeArray[ tokenOffset ];
if ( size >= s.length() ) {
for ( int i = 0; i < size; i++ ) {
if ( s.charAt( i ) != charAt( i, tokenOffset )) {
return( false );
}
}
return( true );
}
return( false );
}
COM: <s> compare beginning of token to a string </s>
|
funcom_train/25211855 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void writeIntArrayAsEntries(int[] array) throws IOException {
for (int i = 0; i < array.length; i++) {
writeStartElement("entry");
writeAttribute("id", i);
writeAttribute("value", "0x" + toHexString(array[i], 8));
writeEndElement();
}
}
COM: <s> write a int array as entries hex </s>
|
funcom_train/26601990 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void sortComparableRules(ArrayList listOfComparableRules,ProductionRules rule){
Object array[] = listOfComparableRules.toArray();
Arrays.sort(array,new StringComparatorForSql());
listOfComparableRules.clear();
listOfComparableRules.addAll(Arrays.asList(array));
}
COM: <s> this method is used for sorting comparable rules </s>
|
funcom_train/19097183 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected JPanel decorateHeader() {
m_Header.setBackground(Color.white);
m_Header.setBorder(BorderFactory.createCompoundBorder(
BorderFactory.createMatteBorder(0, 0, 1, 0,
SystemColor.controlLtHighlight),
BorderFactory.createMatteBorder(0, 0, 1, 0,
SystemColor.controlShadow)));
return m_Header;
}
COM: <s> decorate the header panel </s>
|
funcom_train/46825826 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void invite (ServerConnectionThread conn, CommInvite commInvite) throws TransmissionException {
switch (commInvite.getStatus()) {
case CommInvite.REQUEST:
commInvite.setUsername (conn.getUsername());
conn.transmit (commInvite.getUsernameTo(), commInvite);
break;
case CommInvite.ACCEPT:
joinTable (conn, commInvite.getTableNum());
break;
case CommInvite.DECLINE:
commInvite.setUsernameTo (conn.getUsername());
conn.transmit (commInvite.getUsername(), commInvite);
}
}
COM: <s> a client is inviting another user </s>
|
funcom_train/51786827 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Throwable getCause(boolean rootCause)
{
Throwable t = cause;
if (rootCause && (t instanceof org.rdonasco.exception.BaseException))
{
BaseException e = (BaseException)t;
t = e.getCause(rootCause);
if(t == null)
{
t = this;
}
}
return t;
}
COM: <s> returns the throwable object that causes this exception </s>
|
funcom_train/49849176 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void mouseExited(MouseEvent e) {
Graphics2D g2 = (Graphics2D) getGraphics();
Rectangle2D dataArea = getScaledDataArea();
g2.setXORMode(java.awt.Color.orange);
if (verticalTraceLine != null) {
g2.draw(verticalTraceLine);
verticalTraceLine = null;
}
if (horizontalTraceLine != null) {
g2.draw(horizontalTraceLine);
horizontalTraceLine = null;
}
}
COM: <s> handles a mouse exited event </s>
|
funcom_train/11104323 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public StringBuffer getHasAClientId() {
StringBuffer id = null;
if (getHasAParent() != null) {
id = getHasAParent().getHasAClientId();
} else {
id = new StringBuffer();
}
id.append("/").append(getJsfid());
return id;
}
COM: <s> p returns a xpath like string describing how this component </s>
|
funcom_train/42876501 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void disposeServiceCollectors() {
logger.finer("disposeServiceCollectors()");
synchronized (serviceCollectors) {
for (Iterator<ServiceCollector> i = serviceCollectors.values().iterator(); i.hasNext();) {
ServiceCollector collector = i.next();
removeServiceListener(collector.type, collector);
}
serviceCollectors.clear();
}
}
COM: <s> this method disposes all service collector instances which have been </s>
|
funcom_train/7426881 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void updateCanvas(final PSwingCanvas newCanvas) {
if (newCanvas == canvas) {
return;
}
if (canvas != null) {
canvas.removePSwing(this);
}
if (newCanvas == null) {
canvas = null;
}
else {
canvas = newCanvas;
canvas.addPSwing(this);
updateBounds();
repaint();
canvas.invalidate();
canvas.revalidate();
canvas.repaint();
}
}
COM: <s> removes this pswing from previous pswing canvas if any and ensure that </s>
|
funcom_train/41568549 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Element getTarget() {
if (target != null && target.eIsProxy()) {
InternalEObject oldTarget = (InternalEObject)target;
target = (Element)eResolveProxy(oldTarget);
if (target != oldTarget) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, MolicPackage.BRT_UTTERANCE__TARGET, oldTarget, target));
}
}
return target;
}
COM: <s> returns the value of the em b target b em reference </s>
|
funcom_train/15724531 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setUpButton(JButton b, String title, int vtp, int htp) {
b.setText(title);
b.setMargin(new java.awt.Insets(3, 3, 3, 3));
b.setHorizontalTextPosition(htp);
b.setVerticalTextPosition(vtp);
}
COM: <s> sets the attributes of a toolbar button </s>
|
funcom_train/18073227 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JMenuItem getReasonerURLMenuItem() {
if (reasonerURLMenuItem == null) {
reasonerURLMenuItem = new JMenuItem();
reasonerURLMenuItem.setText("Set Reasoner URL");
reasonerURLMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
greasoner.setRaesonerURL();
}
});
}
return reasonerURLMenuItem;
}
COM: <s> this method initializes reasoner urlmenu item </s>
|
funcom_train/31995679 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void packet0xa3() {
try {
int uid = readInt(); //1-4 = Character's Serial
short maxStam = readShort(); //5-6 = Character's Max Stam Points
short currentStam = readShort(); //7-8 = Character's Current Stam Points
cc.updateStam(uid,currentStam,maxStam);
} catch(IOException e) {
}
}
COM: <s> fat health update dexterity and stamina </s>
|
funcom_train/11322657 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testToLabel() {
assertEquals("Customer", ClickUtils.toLabel("customer"));
assertEquals("Customer Number", ClickUtils.toLabel("customerNumber"));
assertEquals("Card PIN", ClickUtils.toLabel("cardPIN"));
}
COM: <s> sanity checks for click utils </s>
|
funcom_train/3122372 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private int findIndex(long millis) {
Iterator it = listEvents.iterator();
int index = 0;
TimedEvent tmpevt;
while (it.hasNext()) {
tmpevt = (TimedEvent) it.next();
if ( millis < tmpevt.getActivationTime() ) {
return (index);
}
index++;
}
return (index);
} // of method
COM: <s> find the first index with time less than the specified millis </s>
|
funcom_train/34565208 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int index(final byte[] k, final byte[] v, final boolean st) {
final int s = Math.abs(add(k));
if(st) {
if(stat[s] == null) stat[s] = new StatsKey();
if(v != null) stat[s].add(v);
stat[s].counter++;
}
return s;
}
COM: <s> indexes a name and returns its unique id </s>
|
funcom_train/47311301 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Vector getMaps(GameAction gameCode) {
Vector list = new Vector();
for (int i = 0; i < keyActions.length; i++) {
if (keyActions[i] == gameCode) {
list.addElement(getKeyName(i));
}
}
for (int i = 0; i < mouseActions.length; i++) {
if (mouseActions[i] == gameCode) {
list.addElement(getMouseName(i));
}
}
return list;
}
COM: <s> gets a list of names of the keys and mouse actions mapped </s>
|
funcom_train/49836210 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void touchPage(PageIdentifier pageid) {
if (containsPage(pageid)) {
int index = getIndex(pageid);
pages[index].dirty = true;
lruQueue.remove(pages[index].page.getPageIdentifier());
lruQueue.add(pages[index].page.getPageIdentifier());
}
} // touchPage()
COM: <s> touches the page corresponding to the pageid making it dirty </s>
|
funcom_train/22544138 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void scheduleServices() {
RouterService.schedule(new Runnable() {
public void run() {
NIODispatcher.instance().invokeLater(new Runnable() {
public void run() {
synchronized (LimeDaapServerNIO.this) {
if (!running)
return;
}
processTimeout();
}
});
}
}, 30000, 30000);
}
COM: <s> schedules a repeated service that will process any connections </s>
|
funcom_train/12835977 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testPatternClassOnly(){
final String p = new String("test data");
final StoreFilter pattern =
new StoreFilterAdapter(new Class[] {String.class}) {
public void activated(final StoreEvent event){
result = true;
}
};
this.store.getDispatcher().addFilter(pattern);
assertTrue(this.result == false);
this.store.add(p);
//have to wait for the result...
try{
Thread.sleep(100);
}catch(Exception e){e.printStackTrace(); }
assertTrue(this.result == true);
}
COM: <s> tests pattern with null matching procedure </s>
|
funcom_train/1383634 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JFormattedTextField getTxtGiorni() {
if (txtGiorni == null) {
NumberFormat f = NumberFormat.getIntegerInstance();
txtGiorni = new JFormattedTextField(f);
txtGiorni.setValue(1);
txtGiorni.setEditable(false);
txtGiorni.setPreferredSize(new Dimension(30, 19));
txtGiorni.setFont(new Font("Dialog", Font.BOLD, 11));
}
return txtGiorni;
}
COM: <s> this method initializes txt giorni </s>
|
funcom_train/36239779 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public EntityTag setSourceObject(Object source) {
try {
byte[] resultsToByte = objToByteArray(source);
this.entityTag = new EntityTag(getMd5Digest(resultsToByte));
if (log.isDebugEnabled())
log.debug("Hash created: [" + this.entityTag + "]");
} catch (IOException ioe) {
if (log.isDebugEnabled())
log.debug("Exception while converting source object to byte array" + ioe);
}
return this.entityTag;
}
COM: <s> creates an entity tag for the set object </s>
|
funcom_train/18142299 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public String getTargetType() {
String prefix = getValue().substring(1,2);
for (int i = 0; i < Gedcom.ENTITIES.length; i++) {
if (Gedcom.getEntityPrefix(Gedcom.ENTITIES[i]).startsWith(prefix))
return Gedcom.ENTITIES[i];
}
// grrr, too bad
return Gedcom.INDI;
}
COM: <s> the expected referenced type </s>
|
funcom_train/32218898 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public int start(){
stopped = false;
int direction = 1;
int i = 0;
while(!stopped){
if(i == ((size.width - (SPACE_TO_BAR * 2)) - 2) - INDICATOR_WIDTH)
direction = -1;
if(i == 0)
direction = 1;
i += direction;
draw(i);
try{
Thread.sleep(1);
}
catch(InterruptedException e){
System.out.println("wait fel conBar-start");
}
}
return (int)(((double)i / ((size.width - (2 * SPACE_TO_BAR + 2)) - INDICATOR_WIDTH)) * 100);
}
COM: <s> gets the bars indicator going </s>
|
funcom_train/30168058 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: static public void buildTOC(DataInputStream in, Document doc, Element element) throws IOException {
int n = in.readInt();
for (int i = 0; i < n - 1; i++) {
Extent.buildTOC(in, doc, element, false);
}
Extent.buildTOC(in, doc, element, true);
}
COM: <s> alisaf method to update the toc with the extent years </s>
|
funcom_train/34404055 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void componentsForBulletin() {
composeMessageLayout.removeComponent("errorMessage");
composeMessageLayout.removeComponent(selSendTo);
composeMessageLayout.removeComponent(selListSendTo);
composeMessageLayout.removeComponent(btSelectRecipien);
composeMessageLayout.addComponent(lbBulltinTile, "tfSendTo");
composeMessageLayout.addComponent(selTargetAudience, "selTargetAudience");
composeMessageLayout.addComponent(lbTargetAudience, "lbTargetAudience");
}
COM: <s> components for bulletin </s>
|
funcom_train/45503395 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void reset() {
VisualResultsRecorder.getInstance().stopRecording();
VisualResultsRecorder.getInstance().reset();
Individual[] individualsCopy = individuals.toArray( new Individual[individuals.size()] );
for( Individual individual : individualsCopy ) {
removeIndividual( individual );
}
//for( Room room : getRooms() ) {
// room.clear();
//}
deadIndividuals.clear();
evacuatedIndividuals.clear();
individuals.clear();
// roomIndividualMap.clear();
typeIndividualMap.clear();
timeStep = 0;
state = State.ready;
}
COM: <s> resets the cellular automaton in order to let it run again </s>
|
funcom_train/32734787 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void copyAttributes(PersistentObject aPO1, PersistentObject aPO2, List columnSpecs) {
Iterator iterator = columnSpecs.iterator();
while (iterator.hasNext()) {
ColumnSpec aColumnSpec = (ColumnSpec) iterator.next();
aColumnSpec.copyAttribute(aPO1, aPO2);
}
}
COM: <s> copy the column spec attributes from one persistent object to another </s>
|
funcom_train/18026906 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void pendingChanges( Map<Object,Object> changes ) {
if (changesSupport.isPendingChanges()) {
changes.putAll( changesSupport.changesPending );
}
List<DomNodeController> kids= getChildControllers();
for ( DomNodeController k: kids ) {
k.pendingChanges(changes);
}
}
COM: <s> return a list of all the pending changes </s>
|
funcom_train/29793421 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void stereotype(Options opt, Doc c, Align align) {
for (Tag tag : c.tags("stereotype")) {
String t[] = StringUtil.tokenize(tag.text());
if (t.length != 1) {
System.err.println("@stereotype expects one field: " + tag.text());
continue;
}
tableLine(align, guilWrap(opt, t[0]));
}
}
COM: <s> return as a string the stereotypes associated with c </s>
|
funcom_train/14637971 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void onCallReInviteAccepted(Call call, String sdp, Message resp)
{ printLog("onCallReInviteAccepted()",LogLevel.LOW);
if (call!=this.m_extendedCall) { printLog("NOT the current call",LogLevel.LOW); return; }
printLog("RE-INVITE-ACCEPTED/CALL",LogLevel.HIGH);
}
COM: <s> callback function called when arriving a 2xx re invite modify accepted </s>
|
funcom_train/28981447 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public InstructionHandle lookUpArgumentListInit( int argListVarIdx ) {
// do the search
Iterator iter =
searchStoreInstruction( argListVarIdx, "ACONST_NULL", "", 1 );
if( iter.hasNext() ) {
return ((InstructionHandle[])iter.next())[0];
}
throw new AspectException(
"unexpected situation: could not find " +
" initialization of argument info with idx: "
+ ((Integer)argListVarIdx).toString() );
}
COM: <s> looks up the initialization point of the argumentlist with the given index </s>
|
funcom_train/10645867 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String getLine(final int index) {
Element elem = TextUtils.getParagraphElement(document, index);
if (elem == null) {
return null;
}
int start = elem.getStartOffset();
int length = elem.getEndOffset() - start;
String result = null;
try {
result = document.getText(start, length);
} catch (final BadLocationException e) {
}
return result;
}
COM: <s> returns line by index </s>
|
funcom_train/34594663 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removeDependency(ApplicationType application, GroupType group, RecommendationType recDep) throws RTClientException, DataManagerException {
List<RecommendationType> deps = this.getDependencies(application, group);
for (int i = 0; i < deps.size(); i++) {
if (recDep.getId().equals(deps.get(i).getId())) {
group.removeDependency(i);
}
}
}
COM: <s> remove given dependencies from the group </s>
|
funcom_train/29608928 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public IPortletArtifact getPortletApplicationForRead( IFile portletDescriptorFile ) throws IOException, CoreException {
// Validate parameters
Assert.isNotNull(portletDescriptorFile);
// Define returnValue
IPortletArtifact returnValue = null;
// Get DOM model
IDOMModel domModel = this.buildDOMModelForRead( portletDescriptorFile );
// Ensure DOM model is valid
if ( domModel != null ) {
// Initialize artifact
returnValue = new PortletArtifactImpl(domModel);
}
// Return value
return returnValue;
}
COM: <s> get read only </s>
|
funcom_train/13272241 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public HomeController getHomeController() {
// Create sub controller lazily only once it's needed
if (this.homeController == null) {
this.homeController = new HomePluginController(
this.home, this.application, this.viewFactory, this.contentManager, this.pluginManager);
}
return this.homeController;
}
COM: <s> returns the home controller managed by this controller </s>
|
funcom_train/33789966 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private JButton getMenuButton() {
if (menuButton == null) {
menuButton = new JButton(Images.getScaledImageFromUrl("./src/images/menu.png", 200, 80));
// menuButton.setBounds(new Rectangle(15, 210, 200, 80));
menuButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Home.create().entraMenu();
}
});
}
return menuButton;
}
COM: <s> this method initializes menu button </s>
|
funcom_train/11161592 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testEnvironment() throws Exception {
XmlConfigurator.loadConfiguration(getClass().getResourceAsStream("/test-jndi.xml"));
checkEnvironment(DEFAULT_ROOT);
XmlConfigurator.destroyInitialContext();
XmlConfigurator.loadConfiguration(getClass().getResourceAsStream("/test-jndi2.xml"));
checkEnvironment(ALT_ROOT);
}
COM: <s> test for correctly configured environment entries </s>
|
funcom_train/1905531 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testSetItems() {
System.out.println("testSetItems");
assertNotNull(iterateTask);
try {
iterateTask.setItems("test,test,test");
} catch (Exception e){
e.printStackTrace();
fail("Exception doing setItems(test,test,test)");
}
}
COM: <s> test of set items method of class sync4j </s>
|
funcom_train/11408496 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public long nextMessageNumber(Identifier inSeqId, long inMsgNumber, boolean last) {
assert !lastMessage;
long result = 0;
synchronized (this) {
currentMessageNumber++;
if (last) {
lastMessage = true;
} else {
checkLastMessage(inSeqId, inMsgNumber);
}
result = currentMessageNumber;
}
return result;
}
COM: <s> returns the next message number and increases the message number </s>
|
funcom_train/3923685 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void rollforward() {
Object[] reqs = requests.toArray();
for ( int i = 0; i < reqs.length; i ++ ) {
Request req = (Request) reqs[i];
try {
req.object.sendEvent( req );
} catch ( RequestException r ) {
Logger.logError( r );
}
}
}
COM: <s> rollforward reply each request </s>
|
funcom_train/42110851 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean putContains(K key, Collection<? extends V> collection) {
Collection<V> resultantCollection = initialiseGetCollection(key);
// Adding the values
boolean result = false;
if (collectionType_ == LIST_COLLECTION) {
for (V value : collection) {
if (!resultantCollection.contains(value)) {
resultantCollection.add(value);
result = true;
}
}
} else if (collectionType_ == SORTED_SET_COLLECTION) {
return resultantCollection.addAll(collection);
}
return result;
}
COM: <s> puts all values in a collection into the multimap </s>
|
funcom_train/9363114 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setupBasicAuthResponse(boolean isProxy, String username, String password) {
String response = computeBasicAuthResponse(username, password);
if (HttpLog.LOGV) {
HttpLog.v("setupBasicAuthResponse(): response: " + response);
}
mHeaders.put(authorizationHeader(isProxy), "Basic " + response);
setupAuthResponse();
}
COM: <s> create and queue an http authentication response basic request </s>
|
funcom_train/46458783 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setWidthFactor(double factor) {
source = null; // forces reinitialization
Double prev = new Double(widthFactor);
widthFactor = Math.min(Math.abs(factor), 2);
support.firePropertyChange("width", prev, new Double(widthFactor)); //$NON-NLS-1$
}
COM: <s> sets the width factor </s>
|
funcom_train/9990132 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Object apply(Context context, Object arg) {
Object result = null;
if (arg == null) {
throw new NullArgument("Null argument to atan()");
}
if (arg instanceof Number) {
result = new Double(Math.atan(((Number) arg).doubleValue()));
} else {
throw new TypeError("Wrong argument type to atan()");
}
return result;
}
COM: <s> returns the arc tangent of the argument </s>
|
funcom_train/27822249 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setSortedColumnAndDirection(TableColumn sortedColumn,boolean sortAscending) {
TableColumn oldSortedColumn=m_sortedColumn;
m_sortedColumn=sortedColumn;
firePropertyChange(SORTED_COLUMN_PROPERTY,oldSortedColumn,m_sortedColumn);
boolean oldSortAscending=m_sortAscending;
m_sortAscending=sortAscending;
firePropertyChange(SORT_ASCENDING_PROPERTY,oldSortAscending,m_sortAscending);
repaint();
}
COM: <s> sets the new column on which the sort is to be performed </s>
|
funcom_train/21751856 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void checkMap(Map<String, SingleFieldRetriever> retrievers) {
Helper.checkObjectNotNull(retrievers, "[retrievers]");
for (Entry<String, SingleFieldRetriever> entry : retrievers.entrySet()) {
Helper.checkStringNotNullOrEmpty(entry.getKey(), "Key in retrievers map");
Helper.checkObjectNotNull(entry.getValue(), "Value in retrievers map");
}
}
COM: <s> checks the map for the validity </s>
|
funcom_train/4719084 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void setHTMLTemplateJava(List<Annotation> annotationList, HTMLTemplateJava templateJava){
for (Annotation annotation : annotationList){
if (annotation instanceof HTMLTemplate){
setHTMLTemplateJava((HTMLTemplate)annotation, templateJava);
}else{
setHTMLTemplateJavaByReflection(annotation, templateJava);
}
}
}
COM: <s> set all values from annotation list to template java </s>
|
funcom_train/28996864 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setAttribute(String attributeName, String value) {
/* Perform the setAttribute method. */
if ((getAttributes() != null)
&& (getAttribute(attributeName) != null)) {
((PortalProfileEntry) getAttributes().get(attributeName)).setValue(
value);
}
return;
}
COM: <s> perform the set attribute method </s>
|
funcom_train/17209262 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean connect(Control network) throws NullPointerException {
if (null == network)
throw new NullPointerException("network cannot be null");
try {
this.connected = true;
this.connection = network.connect(this.hostname);
this.library = new RemoteLibrary(this.connection, network);
this.ImportedLibrary = new VirtualLibrary();
} catch (Exception ex) {
this.connected = false;
this.connection = 0;
this.library = null;
}
return this.connected;
}
COM: <s> attempts to connect to the host contained in this connection metadata </s>
|
funcom_train/39072286 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetInstance() {
ATGServiceSingleton ass1 = ATGServiceSingleton.getInstance();
//On a une instance
assertNotNull("Recuperation d'une r�f�rence vers une instance",ass1);
//R�cup�ration d'une autre instance
ATGServiceSingleton ass2 = ATGServiceSingleton.getInstance();
assertNotNull("Recuperation d'une r�f�rence vers une deuxi�me instance",ass2);
assertEquals("Identit� des adresses des deux r�f�rence",ass2,ass1);
}
COM: <s> r cup ration dune instance de atgservice singleton </s>
|
funcom_train/2325745 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void ifft2(boolean scale) {
if (content instanceof DenseLargeFloatMatrix2D) {
if (this.isNoView == true) {
((DenseLargeFloatMatrix2D) content).ifft2(scale);
} else {
DenseLargeFloatMatrix2D copy = (DenseLargeFloatMatrix2D) copy();
copy.ifft2(scale);
assign(copy);
}
} else {
throw new IllegalArgumentException("This method is not supported");
}
}
COM: <s> computes the 2 d inverse of the discrete fourier transform idft of this </s>
|
funcom_train/958950 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private String getRequestParameterIgnoringCase(Enumeration params, String keyToSearch) {
String paramName = "";
String keyLowerCase = keyToSearch.toLowerCase();
while (params.hasMoreElements()) {
String currentParam = (String) params.nextElement();
if (currentParam.toLowerCase().equals(keyLowerCase)) {
paramName = currentParam;
break;
}
}
return paramName;
}
COM: <s> gets a value from </s>
|
funcom_train/50848465 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetBlob() throws Exception {
testGetXXX("getBlob");
ResultSet rs = this.newFOROJdbcResultSet();
rs.next();
rs.close();
try {
rs.getBlob("c_blob");
fail("Allowed getBlob after close()");
} catch (SQLException ex) {
assertEquals(
"error code",
ex.getErrorCode(),
-ErrorCode.X_24501);
}
}
COM: <s> test of get blob method of interface java </s>
|
funcom_train/41664319 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void onSubmit(final ViewModel viewModel, final View view) {
super.onSubmit(viewModel, view);
Applicant applicant = (Applicant) viewModel.getEntity();
WebLink webLink = (WebLink) viewModel.getModel();
Applicants applicants = webLink.getApplicants();
if (applicants.contain(applicant)) {
sendEmailToConfirm(viewModel);
signOutGest();
setResponsePage(HomePage.class);
}
}
COM: <s> submits a user action </s>
|
funcom_train/22895666 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Set getMissingInputRequirements() {
HashSet _missing = new HashSet();
Map _inReq = this.parser.getInputSymbols();
if (false == _inReq.isEmpty()) {
_missing.addAll(_inReq.keySet());
_missing.removeAll(this.setSymbolSet);
Set _defaults = this.parser.getInputSymbolsWithDefaults();
if (false == _defaults.isEmpty()) {
_missing.removeAll(_defaults);
}
}
return _missing;
}
COM: <s> obtain the set of missing input requirements </s>
|
funcom_train/33163007 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void openResource( IResource resource ) {
if ( resource.getType() != IResource.PROJECT )
return;
if ( workbench == null )
return ;
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
if(window == null)
return;
IWorkbenchPage activePage = window.getActivePage();
if(activePage != null) {
BasicNewResourceWizard.selectAndReveal( resource, activePage.getWorkbenchWindow() ) ;
}
}
COM: <s> sets focus on the newly created project </s>
|
funcom_train/45308419 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public JTabbedPane getJTabbedPaneTipoExecucao() {
if (jTabbedPaneTipoExecucao == null) {
jTabbedPaneTipoExecucao = new JTabbedPane();
jTabbedPaneTipoExecucao.setBounds(new Rectangle(0, 0, 242, 143));
jTabbedPaneTipoExecucao.addTab("Seqüencial", null,
getJPanelTipoExecucaoSequencial(), null);
jTabbedPaneTipoExecucao.addTab("Paralelo", null,
getJPanelTipoExecucaoParalelo(), null);
}
return jTabbedPaneTipoExecucao;
}
COM: <s> this method initializes j tabbed pane tipo execucao </s>
|
funcom_train/15527655 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected String getSearchHash(String query) {
byte[] bs = messageDigest.digest(query.getBytes());
String s = "";
try {
for (int i = 1; i < bs.length; ++i) {
s += Integer.toHexString(bs[i] & 0xFF);
}
return s;
} catch (Exception e) {
e.printStackTrace();
return "";
}
}
COM: <s> returns a md5 hash for identifing each search query </s>
|
funcom_train/17992131 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void closeAllChildren(boolean focus) {
if (shownChildMenu != null) {
// Hide any open submenus of this item
shownChildMenu.onHide(focus);
shownChildMenu = null;
selectItem(null);
}
// Close the current popup
if (popup != null) {
popup.hide();
}
// If focus is true, set focus to parentMenu
if (focus && parentMenu != null) {
parentMenu.focus();
}
}
COM: <s> closes this menu and all child menu popups </s>
|
funcom_train/18009707 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void initializeCenter() {
// Will hold all other panels that occupy the center.
double[][] size = new double[][] {{TableLayout.FILL,TableLayout.PREFERRED},{TableLayout.FILL}};
centerPanel = new JPanel();
centerPanel.setLayout(new TableLayout(size));
getContentPane().add(centerPanel, BorderLayout.CENTER);
}
COM: <s> p initializes the center of the border layout of this frame </s>
|
funcom_train/12531158 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setRoundingIncrement(BigDecimal newValue) {
int i = newValue == null
? 0 : newValue.compareTo(BigDecimal.ZERO);
if (i < 0) {
throw new IllegalArgumentException("Illegal rounding increment");
}
if (i == 0) {
setInternalRoundingIncrement(null);
} else {
setInternalRoundingIncrement(newValue);
}
setRoundingDouble();
}
COM: <s> strong font face helvetica color red new font strong </s>
|
funcom_train/36715177 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public YukonTableSolvent enterMeterFilterCriteria(String filter, String text) {
String inputLocator = "//div[contains(text(), '"+ filter + "')]/following::input[1]";
selenium.waitForElement(inputLocator, 2000);
if(!selenium.isElementPresent(inputLocator))
throw new SeleniumException("Can not find input text box for '" + filter +"' to type '" + text + "'.");
selenium.type(inputLocator, text);
return new YukonTableSolvent();
}
COM: <s> this method specifically for filter criteria on the meter search page </s>
|
funcom_train/8582836 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void paintTrack(java.awt.Graphics2D g2, Agent a) {
Map map = getMapEnv().getMap();
Point2D lastPt = null;
g2.setColor(Color.red);
for (String loc : getTrack(a)) {
Point2D pt = map.getPosition(loc);
if (pt != null && lastPt != null) {
g2.drawLine(x(pt), y(pt), x(lastPt), y(lastPt));
}
lastPt = pt;
}
}
COM: <s> the track of the agent is visualized with red lines </s>
|
funcom_train/5692561 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void postParse() {
xob.xsdparser.XSDComplexType complexType = getComplexType();
if (complexType != null) {
if (complexType.extendsSimpleType()) {
this.publicType = (String)complexType.getExtensions().next();
//this.privateType = null;
}
}
if (this.publicType != null) {
resolvePublicType();
}
}
COM: <s> do some things we couldnt do before the whole schema was parsed </s>
|
funcom_train/40337553 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void uncollapseAllSelected() {
int selectionNumber = masterViewer.getCombo().getItemCount();
for (int i = 0; i < selectionNumber; i++) {
GraphNode master = collapseMaster.getElementAtIndex(i);
getEditor().uncollapse(master, false, null);
}
}
COM: <s> uncollapses b all b selected nodes </s>
|
funcom_train/40513448 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Point getPointForLine(final UMLArtifact uMLArtifact, final Point point) {
final long t = System.currentTimeMillis();
final Point pt = this.getPointForLineImpl(uMLArtifact, point);
Log.trace("([" + (System.currentTimeMillis() - t) + "ms]) to compute line between " + uMLArtifact + " and a point");
return pt;
}
COM: <s> this method return an array of point containing the intersection br </s>
|
funcom_train/23267812 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetDocumento() {
System.out.println("getDocumento");
Cliente instance = new Cliente();
int expResult = 0;
int result = instance.getDocumento();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
COM: <s> test of get documento method of class capa negocios </s>
|
funcom_train/45237095 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public JButton getJButtonVoltar() {
if (jButtonVoltar == null) {
jButtonVoltar = new JButton();
jButtonVoltar.setText("Voltar");
jButtonVoltar.setLocation(new Point(655, 339));
jButtonVoltar.setSize(new Dimension(110, 30));
jButtonVoltar.setFont(new Font("Dialog", Font.BOLD, 10));
jButtonVoltar.setIcon(new ImageIcon(getClass().getResource("/br/uesc/computacao/estagio/apresentacao/figuras/voltar.png")));
jButtonVoltar.setCursor(new Cursor(Cursor.HAND_CURSOR));
}
return jButtonVoltar;
}
COM: <s> this method initializes j button voltar </s>
|
funcom_train/2371399 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public RepositoryComparator restoreComparator() {
RepositoryComparator result = null;
try {
if (getComparator() != null && getComparator().length > 0) {
ObjectInputStream ois = new ObjectInputStream(
new ByteArrayInputStream(getComparator()));
result = (RepositoryComparator) ois.readObject();
ois.close();
}
} catch (Exception ioe) {
// Should not happen, since we work with existing byte[]
/*
* All other cases are ignored.
*/
}
return result;
}
COM: <s> this method reads </s>
|
funcom_train/34499649 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private int createPageRepoInfo() {
Composite composite = new Composite(getContainer(), SWT.NONE);
composite.setLayout(new RowLayout(SWT.VERTICAL));
Label path = new Label(composite, SWT.NONE);
path.setText("PATH: " + repositoryHandler.getRepoPath());
Label repo = new Label(composite, SWT.NONE);
repo.setText("NAME: " + repositoryHandler.getRepository());
int pgNr = addPage(composite);
setPageText(pgNr, "Info");
return pgNr;
}
COM: <s> creates info page of the multi page editor </s>
|
funcom_train/18894343 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void run() {
try {
currentThread = null;
while (threadIter.hasNext()
&& !terminated) {
//start and wait
currentThread = (PlaybackThreadImpl) threadIter.next();
currentThread.start();
currentThread.join();
}
}
catch (Exception exception) {
if (listener != null) {
listener.exceptionOccurred(exception);
}
else {
exception.printStackTrace();
}
}
}
COM: <s> starts playing the mp3 </s>
|
funcom_train/4874604 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public JcvSparseMat mult(JcvScalar val) throws ScalarSizeException {
JcvSparseMat ret = clone();
//change the default value accordingly
ret.defaultVal.mult(val);
Enumeration e = ret.data.elements();
while (e.hasMoreElements()) {
((JcvScalar)e.nextElement()).mult(val);
}
return ret;
}
COM: <s> matrix scalar multiplication </s>
|
funcom_train/25648080 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void open() {
// configure window and set visible
int w = Settings.getIntegerProperty("window.width");
int h = Settings.getIntegerProperty("window.height");
mainFrame.setSize(w, h);
mainFrame.setLocationRelativeTo(null);
mainFrame.setVisible(true);
}
COM: <s> configures the main window and sets it visible </s>
|
funcom_train/2324593 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void setUp(int b, int k) {
if (!(b >= 2 && k >= 1)) {
throw new IllegalArgumentException("Assertion: b>=2 && k>=1");
}
this.bufferSet = new FloatBufferSet(b, k);
this.clear();
}
COM: <s> initializes the receiver </s>
|
funcom_train/18495589 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void forAllRelationships(String template) throws XDocletException {
System.out.println("WasEjbTagsHandler.forAllRelationships()");
_currentClass = getCurrentClass();
System.out.println("**************************");
System.out.println("**************************");
System.out.println("**************************");
System.out.println("********** for all relationships ****************");
System.out.println("_currentClass.getCurrentClass() [qualified name] : " + _currentClass.getQualifiedName() );
System.out.println("**************************");
System.out.println("**************************");
System.out.println("**************************");
super.forAllRelationships(template);
}
COM: <s> generate the block for all of the relationships defined in </s>
|
funcom_train/18660638 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testGetHighresLocation() {
PictureInfo pi = new PictureInfo( "file:///dir/picture.jpg", "file:///lores/thumbnail.jpg", "My Sample Picture", "Film 123" );
String highresLocation = pi.getHighresLocation();
assertEquals( "Checking getHighresLocation", "file:///dir/picture.jpg", highresLocation );
}
COM: <s> test of get highres location method of class picture info </s>
|
funcom_train/4528199 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void testPreadLocalFS() throws IOException {
Configuration conf = new Configuration();
FileSystem fileSys = FileSystem.getLocal(conf);
try {
Path file1 = new Path("build/test/data", "preadtest.dat");
writeFile(fileSys, file1);
pReadFile(fileSys, file1);
cleanupFile(fileSys, file1);
} finally {
fileSys.close();
}
}
COM: <s> tests positional read in local fs </s>
|
funcom_train/17006105 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void incrementCountForDestination(int destination) {
destinations = destinations | destination;
/** position helps us retrive the location of "destination"'s entry */
int position = determinePositionOf1Bit(destination) - 1;
countsPerDestination[position]++;
if (ProfileCounts_Debug)
System.out.println(moduleName + "Count for destination [" + destination
+ "]=" + countsPerDestination[position]);
}
COM: <s> increase the count associated with the destination </s>
|
funcom_train/20294014 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected Connection getConnection(ServletContext context, HttpServletRequest request) throws SQLException {
ConnectionPool sqlDriver = (ConnectionPool) context.getAttribute("ConnectionPool");
ConnectionElement ce = (ConnectionElement) request.getSession().getAttribute("ConnectionElement");
if (sqlDriver == null || ce == null) {
return null;
}
return sqlDriver.getConnection(ce);
}
COM: <s> gets the connection attribute of the security hook object </s>
|
funcom_train/33772727 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void actionPerformed(ActionEvent e) {
if (e.getSource().equals(nextObjectButton)) {
currentObjectIndex++;
displayObjectProperties();
} else if (e.getSource().equals(previousObjectButton)) {
currentObjectIndex--;
displayObjectProperties();
} else if ("OK".equals(e.getActionCommand())) {
this.setVisible(false);
}
}
COM: <s> event handler for this dialog </s>
|
funcom_train/13287163 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public boolean equals(Object obj) {
try {
Comment comment = (Comment) obj;
return new EqualsBuilder()
.append(this.getId(), comment.getId())
.isEquals();
} catch (ClassCastException e) {
// The given object is not a comment, therefore they are not equal.
return false;
}
}
COM: <s> compares this comment with the given object for equality </s>
|
funcom_train/2408278 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public Object processBytes(byte[] pattern) {
int end = pattern.length < 32 ? pattern.length : 32;
int[] b = new int[256];
int j = 1;
for (int i = end - 1; i >= 0; --i, j <<= 1) {
b[index(pattern[i])] |= j;
}
return b;
}
COM: <s> pre processing of the pattern </s>
|
funcom_train/1564441 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public ContentRewriterFeature createRewriteAllFeature(int ttl) {
return new ContentRewriterFeature(null,
".*", "", (ttl == -1) ? "HTTP" : Integer.toString(ttl),
Collections.<String>emptySet(), false);
}
COM: <s> create a rewriter feature that allows all uris to be rewritten </s>
|
funcom_train/42745346 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void removeAllFactsAndFoci() throws KnowledgeSessionNotCreatedException {
try {
Collection<FactHandle> factHandles = statefulSession.getFactHandles();
for (FactHandle factHandle : factHandles) {
statefulSession.retract(factHandle);
}
} catch (NullPointerException e) {
throw new KnowledgeSessionNotCreatedException();
}
}
COM: <s> remove all fact objects from session </s>
|
funcom_train/12103476 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void harvestFruits(Tree tree) {
//Stop the fruit fall timer if not stopped already
if (fruitTimer != null) {
fruitTimer.stop();
}
long duration = 10000L;
int interval = 200;
fruitTimer = createFruitFallTimer(tree, duration, interval);
fruitTimer.start();
}
COM: <s> harvests fruits of the selected tree </s>
|
funcom_train/9237824 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected boolean callChannelNickChanged(ChannelInfo cChannel, ChannelClientInfo cChannelClient, String sOldNick) {
CallbackOnChannelNickChanged cb = (CallbackOnChannelNickChanged)getCallbackManager().getCallbackType("OnChannelNickChanged");
if (cb != null) { return cb.call(cChannel, cChannelClient, sOldNick); }
return false;
}
COM: <s> callback to all objects implementing the channel nick changed callback </s>
|
funcom_train/49670644 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void runDialog() {
dialog.setDefaultButton(ok);
dialog.setTabList(new Control[] { text, ok, cancel });
dialog.pack();
WindowFactory.centerShell(dialog);
dialog.open();
dialog.forceFocus();
dialog.forceActive();
text.forceFocus();
}
COM: <s> runs the dialog </s>
|
funcom_train/15558787 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void prepareReportFolder() {
File folder = new File(folderName);
if (folder.exists()) {
File[] files = folder.listFiles();
for (int i = 0; i < files.length; i++) {
// clean the folder, but do not delete css file
if (files[i].getName().endsWith(".css")) {
continue;
}
files[i].delete();
}
} else {
folder.mkdir();
}
}
COM: <s> prepares the folder for report files </s>
|
funcom_train/40700585 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: private void insertRow(IForm nextForm) {
// Checking form for implementing required interface.
if ((form instanceof IAddRowExecuter) == false)
throw new UnsupportedOperationException(
"Can't insert row. Form is not implement IAddRowExecuter.");
// Setting visual "loading" status.
status.setText(FrameworkLocale.messages().loading());
// Executing add operation.
((IAddRowExecuter) form).addRow(dataRow, new SaveDataAsyncCallback(
nextForm));
}
COM: <s> inserts row to specified by form data set </s>
|
funcom_train/3888681 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void addSelectPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_SendMailType_select_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_SendMailType_select_feature", "_UI_SendMailType_type"),
ImsldV1p0Package.Literals.SEND_MAIL_TYPE__SELECT,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
COM: <s> this adds a property descriptor for the select feature </s>
|
funcom_train/40941710 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public FactoryInstance createFactoryInstance(String id, ConfigMap properties){
LindbergFlexFactoryInstance factoryInstance = new LindbergFlexFactoryInstance(this, id, properties,beanFactory);
factoryInstance.setSource(properties.getPropertyAsString(SOURCE, factoryInstance.getId()));
return factoryInstance;
}
COM: <s> creates and configures lindberg </s>
|
funcom_train/4299771 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: public void setProperties(HsqlProperties p) {
checkRunning(false);
if (p != null) {
serverProperties.addProperties(p);
ServerConfiguration.translateAddressProperty(serverProperties);
}
maxConnections = serverProperties.getIntegerProperty(
ServerConstants.SC_KEY_MAX_CONNECTIONS, 16);
JavaSystem.setLogToSystem(isTrace());
isSilent =
serverProperties.isPropertyTrue(ServerConstants.SC_KEY_SILENT);
}
COM: <s> sets server properties using the specified properties object </s>
|
funcom_train/26484882 | /tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716 | TDAT: protected void openReport() {
JFileChooser jfc=getChooser();
setPrefsDir(jfc,null);
int returnVal = jfc.showOpenDialog(frame);
if (returnVal == JFileChooser.APPROVE_OPTION) {
savePrefsDir(jfc,null); // save report directory
new DesignWin(getChooser().getSelectedFile());
}
}
COM: <s> opens an existing report in a new design window </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.