rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
throw new NotYetImplementedException(); | return delegate.createMapMessage(); | public MapMessage createMapMessage() throws JMSException { throw new NotYetImplementedException(); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c02fe0abfa86eceacf6101f304bc185026342c82/JBossSession.java/buggy/src/main/org/jboss/jms/client/JBossSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1635,
1079,
752,
863,
1079,
1435,
1216,
20343,
282,
288,
1377,
327,
7152,
18,
2640,
863,
1079,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1635,
1079,
752,
863,
1079,
1435,
1216,
20343,
282,
288,
1377,
327,
7152,
18,
2640,
863,
1079,
5621,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if (!escapingNotNeeded(ch) || (m_charInfo.isSpecial(ch))) | if (!escapingNotNeeded(ch) || ( (fromTextNode && m_charInfo.isSpecialTextChar(ch)) || (!fromTextNode && m_charInfo.isSpecialAttrChar(ch)))) | protected int accumDefaultEscape( Writer writer, char ch, int i, char[] chars, int len, boolean escLF) throws IOException { int pos = accumDefaultEntity(writer, ch, i, chars, len, escLF); if (i == pos) { if (0xd800 <= ch && ch < 0xdc00) { // UTF-16 surrogate int next; if (i + 1 >= len) { throw new IOException( XMLMessages.createXMLMessage( XMLErrorResources.ER_INVALID_UTF16_SURROGATE, new Object[] { Integer.toHexString(ch)})); //"Invalid UTF-16 surrogate detected: " //+Integer.toHexString(ch)+ " ?"); } else { next = chars[++i]; if (!(0xdc00 <= next && next < 0xe000)) throw new IOException( XMLMessages.createXMLMessage( XMLErrorResources .ER_INVALID_UTF16_SURROGATE, new Object[] { Integer.toHexString(ch) + " " + Integer.toHexString(next)})); //"Invalid UTF-16 surrogate detected: " //+Integer.toHexString(ch)+" "+Integer.toHexString(next)); next = ((ch - 0xd800) << 10) + next - 0xdc00 + 0x00010000; } writer.write("&#"); writer.write(Integer.toString(next)); writer.write(';'); pos += 2; // count the two characters that went into writing out this entity /*} else if (null != ctbc && !ctbc.canConvert(ch)) { sb.append("&#x"); sb.append(Integer.toString((int)ch, 16)); sb.append(";");*/ } else { if (!escapingNotNeeded(ch) || (m_charInfo.isSpecial(ch))) { writer.write("&#"); writer.write(Integer.toString(ch)); writer.write(';'); } else { writer.write(ch); } pos++; // count the single character that was processed } } return pos; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/4482d8d80ead98291774223463630650929702d5/ToStream.java/buggy/src/org/apache/xml/serializer/ToStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
22778,
1868,
8448,
12,
3639,
5497,
2633,
16,
3639,
1149,
462,
16,
3639,
509,
277,
16,
3639,
1149,
8526,
5230,
16,
3639,
509,
562,
16,
3639,
1250,
2904,
9105,
13,
3639,
1216,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
22778,
1868,
8448,
12,
3639,
5497,
2633,
16,
3639,
1149,
462,
16,
3639,
509,
277,
16,
3639,
1149,
8526,
5230,
16,
3639,
509,
562,
16,
3639,
1250,
2904,
9105,
13,
3639,
1216,
... |
} else if (tokenizer.sval.equalsIgnoreCase("date")) { | } else if (tokenizer.sval.equalsIgnoreCase(Attribute.ARFF_ATTRIBUTE_DATE)) { | protected void readHeader(StreamTokenizer tokenizer) throws IOException { String attributeName; FastVector attributeValues; int i; // Get name of relation. getFirstToken(tokenizer); if (tokenizer.ttype == StreamTokenizer.TT_EOF) { errms(tokenizer,"premature end of file"); } if (tokenizer.sval.equalsIgnoreCase("@relation")){ getNextToken(tokenizer); m_RelationName = tokenizer.sval; getLastToken(tokenizer,false); } else { errms(tokenizer,"keyword @relation expected"); } // Create vectors to hold information temporarily. m_Attributes = new FastVector(); // Get attribute declarations. getFirstToken(tokenizer); if (tokenizer.ttype == StreamTokenizer.TT_EOF) { errms(tokenizer,"premature end of file"); } while (tokenizer.sval.equalsIgnoreCase("@attribute")) { // Get attribute name. getNextToken(tokenizer); attributeName = tokenizer.sval; getNextToken(tokenizer); // Check if attribute is nominal. if (tokenizer.ttype == StreamTokenizer.TT_WORD) { // Attribute is real, integer, or string. if (tokenizer.sval.equalsIgnoreCase("real") || tokenizer.sval.equalsIgnoreCase("integer") || tokenizer.sval.equalsIgnoreCase("numeric")) { m_Attributes.addElement(new Attribute(attributeName, numAttributes())); readTillEOL(tokenizer); } else if (tokenizer.sval.equalsIgnoreCase("string")) { m_Attributes. addElement(new Attribute(attributeName, (FastVector)null, numAttributes())); readTillEOL(tokenizer); } else if (tokenizer.sval.equalsIgnoreCase("date")) { String format = null; if (tokenizer.nextToken() != StreamTokenizer.TT_EOL) { if ((tokenizer.ttype != StreamTokenizer.TT_WORD) && (tokenizer.ttype != '\'') && (tokenizer.ttype != '\"')) { errms(tokenizer,"not a valid date format"); } format = tokenizer.sval; readTillEOL(tokenizer); } else { tokenizer.pushBack(); } m_Attributes.addElement(new Attribute(attributeName, format, numAttributes())); } else { errms(tokenizer,"no valid attribute type or invalid "+ "enumeration"); } } else { // Attribute is nominal. attributeValues = new FastVector(); tokenizer.pushBack(); // Get values for nominal attribute. if (tokenizer.nextToken() != '{') { errms(tokenizer,"{ expected at beginning of enumeration"); } while (tokenizer.nextToken() != '}') { if (tokenizer.ttype == StreamTokenizer.TT_EOL) { errms(tokenizer,"} expected at end of enumeration"); } else { attributeValues.addElement(tokenizer.sval); } } if (attributeValues.size() == 0) { errms(tokenizer,"no nominal values found"); } m_Attributes. addElement(new Attribute(attributeName, attributeValues, numAttributes())); } getLastToken(tokenizer,false); getFirstToken(tokenizer); if (tokenizer.ttype == StreamTokenizer.TT_EOF) errms(tokenizer,"premature end of file"); } // Check if data part follows. We can't easily check for EOL. if (!tokenizer.sval.equalsIgnoreCase("@data")) { errms(tokenizer,"keyword @data expected"); } // Check if any attributes have been declared. if (m_Attributes.size() == 0) { errms(tokenizer,"no attributes declared"); } // Allocate buffers in case sparse instances have to be read m_ValueBuffer = new double[numAttributes()]; m_IndicesBuffer = new int[numAttributes()]; } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/da2aa23d3caf334c3f4e512e14136de1a3f1ebcd/Instances.java/buggy/weka/core/Instances.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
855,
1864,
12,
1228,
10524,
10123,
13,
1377,
1216,
1860,
288,
3639,
514,
9734,
31,
565,
9545,
5018,
1566,
1972,
31,
565,
509,
277,
31,
565,
368,
968,
508,
434,
2533,
18,
565,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
855,
1864,
12,
1228,
10524,
10123,
13,
1377,
1216,
1860,
288,
3639,
514,
9734,
31,
565,
9545,
5018,
1566,
1972,
31,
565,
509,
277,
31,
565,
368,
968,
508,
434,
2533,
18,
565,... |
public HibernateDBLayer(Undertaker undertaker) { this(undertaker, "", null, null); | public HibernateDBLayer(DatabaseSettings settings) { this(null, settings); | public HibernateDBLayer(Undertaker undertaker) { this(undertaker, "", null, null); } | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/e58895a8af69faac60cbce6f60c0c83258a4d425/HibernateDBLayer.java/buggy/trunk/src/net/sf/plantlore/server/HibernateDBLayer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
670,
24360,
2290,
4576,
12,
14655,
88,
6388,
3613,
88,
6388,
13,
288,
377,
202,
2211,
12,
9341,
88,
6388,
16,
23453,
446,
16,
446,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
670,
24360,
2290,
4576,
12,
14655,
88,
6388,
3613,
88,
6388,
13,
288,
377,
202,
2211,
12,
9341,
88,
6388,
16,
23453,
446,
16,
446,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,... |
hookActivityListener(); | hookListeners(); | private ActivityPersistanceHelper() { loadEnabledStates(); hookActivityListener(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5a71b78fe812d8fe9b96f07d70a137fd3193cb89/ActivityPersistanceHelper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActivityPersistanceHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9621,
12771,
1359,
2276,
1435,
288,
3639,
1262,
1526,
7629,
5621,
3639,
3953,
5583,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9621,
12771,
1359,
2276,
1435,
288,
3639,
1262,
1526,
7629,
5621,
3639,
3953,
5583,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return null; | return new DefaultTreeCellEditor.EditorContainer(); | protected Container createContainer() { return null; // TODO } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/aa6d4551020d668e0117627b6c897b57ffb692b6/DefaultTreeCellEditor.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4039,
752,
2170,
1435,
225,
288,
202,
202,
2463,
394,
2989,
2471,
4020,
6946,
18,
6946,
2170,
5621,
368,
2660,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4039,
752,
2170,
1435,
225,
288,
202,
202,
2463,
394,
2989,
2471,
4020,
6946,
18,
6946,
2170,
5621,
368,
2660,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if(debug) { debugger=new Debugger((JChannel)channel); debugger.start(); } | public void start() throws Exception { channel=new JChannel(props); if(debug) { debugger=new Debugger((JChannel)channel); debugger.start(); } //channel.setOpt(Channel.LOCAL, Boolean.FALSE); disp=new MessageDispatcher(channel, null, null, this); channel.connect("MessageDispatcherTestAsyncGroup"); } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/28be62b4097e0b01b17ca403d23ca6a4aac01eca/MessageDispatcherTestAsync.java/buggy/tests/other/org/jgroups/tests/MessageDispatcherTestAsync.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
1216,
1185,
288,
3639,
1904,
33,
2704,
804,
2909,
12,
9693,
1769,
3639,
309,
12,
4148,
13,
288,
5411,
19977,
33,
2704,
28645,
12443,
46,
2909,
13,
4327,
1769,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
1216,
1185,
288,
3639,
1904,
33,
2704,
804,
2909,
12,
9693,
1769,
3639,
309,
12,
4148,
13,
288,
5411,
19977,
33,
2704,
28645,
12443,
46,
2909,
13,
4327,
1769,
5411,
... | |
private ITaskInstance createTask(ITaskDefinition td, IProcessInstance pi, IFOE foe) throws CreateObjectException, StateFailureException, DefinitionNotFoundException { if (foe == null || pi == null || td == null) { throw new CreateObjectException( "Missing required parameters to create a Task Instance - TD: " + td + ", PI: " + pi + ", FOE:" + foe); } /* * TODO should probably add another check here to ensure that task def * comes from process instance's process def (i.e. protect against potential * workflow definition corruption) */ if (td.isSynchronised()) { // task is a syncTask - we need to ensure that there is only // TaskInstance for this definition for (Iterator it = pi.getTaskInstances().iterator(); it.hasNext();) { ITaskInstance checkTask = (ITaskInstance) it.next(); if (checkTask.getTaskDefinition().getId().longValue() == td .getId().longValue()) { // found this task already, so just return it if (log.isInfoEnabled()) { log .info("Instance of Sync Task already exists; returning this instance"); } return checkTask; } } } /* * instance of sync task not found or was not a sync task, so we create * the new one */ if (log.isInfoEnabled()) { log.info("Creating new instance of TaskDef " + td); } ITaskInstance task = stateFactory.createTaskInstance(td, pi, foe); // check to see if task has an initialiser - if not, ensure status is // set optimally if (td.isSynchronised()) { task.setState(ITaskInstance.STATE_AWAITINGSYNC); } else if (td.getClassConstruct() != null) { task.setState(ITaskInstance.STATE_AWAITINGINITIALISATION); } else { task.setState(ITaskInstance.STATE_READY); } stateFactory.saveObject(task); return task; } | 9195 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9195/4a0b0093623b8c5849a36f4fa5abb7df3dc603ff/Engine.java/clean/zebra/src/java/zebra-core/src/java/com/anite/zebra/core/Engine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
2174,
1442,
752,
2174,
12,
1285,
835,
1852,
6655,
16,
467,
2227,
1442,
4790,
16,
467,
3313,
41,
284,
15548,
13,
1082,
202,
15069,
1788,
921,
503,
16,
3287,
14389,
16,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
2174,
1442,
752,
2174,
12,
1285,
835,
1852,
6655,
16,
467,
2227,
1442,
4790,
16,
467,
3313,
41,
284,
15548,
13,
1082,
202,
15069,
1788,
921,
503,
16,
3287,
14389,
16,
10... | ||
static FoodItem convert(final Element foodItemElement) { final FoodItem foodItem = new FoodItem(); //Name final String itemName = foodItemElement.getAttributeValue("name"); foodItem.setName(itemName); //Quantity final Element quantityElement = foodItemElement.getChild("quantity"); if (quantityElement != null) { String quantity = quantityElement .getAttributeValue("value"); foodItem.setQuantity(quantity); } //Expiry final Element expiryElement = foodItemElement.getChild("expiry"); if (expiryElement != null) { final int day = Integer.parseInt(expiryElement .getAttributeValue("day")); final int month = Integer.parseInt(expiryElement .getAttributeValue("month")); final int year = Integer.parseInt(expiryElement .getAttributeValue("year")); final Calendar expiryCalendar = new GregorianCalendar(year, month - 1, day); Date expiryDate = expiryCalendar.getTime(); foodItem.setExpiry(expiryDate); } return foodItem; } | 13936 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13936/d6958992f83f4074f23c6c30d8b18b6422cc579a/FoodItemConverter1.java/buggy/Housekeeper/trunk/housekeeper/src/java/net/sf/housekeeper/persistence/jdom/FoodItemConverter1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
478,
4773,
1180,
1765,
12,
6385,
3010,
284,
4773,
1180,
1046,
13,
565,
288,
3639,
727,
478,
4773,
1180,
284,
4773,
1180,
273,
394,
478,
4773,
1180,
5621,
7734,
368,
461,
3639,
727,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
478,
4773,
1180,
1765,
12,
6385,
3010,
284,
4773,
1180,
1046,
13,
565,
288,
3639,
727,
478,
4773,
1180,
284,
4773,
1180,
273,
394,
478,
4773,
1180,
5621,
7734,
368,
461,
3639,
727,
... | ||
markupResourceStream = getApplication().getResourceStreamLocator().locate(containerClass, getStyle(), getLocale(), getMarkupType()); | markupResourceStream = getApplication().getResourceStreamLocator().locate( containerClass, getStyle(), getLocale(), getMarkupType()); | final Markup getAssociatedMarkup() { synchronized (markupCache) { // Look up markup tag list by class, locale, style and markup type final String key = markupKey(); Markup markup = (Markup)markupCache.get(key); // If no markup in map if (markup == null) { // Locate markup resource, searching up class hierarchy IResourceStream markupResourceStream = null; Class containerClass = getClass(); while ((markupResourceStream == null) && (containerClass != MarkupContainer.class)) { // Look for markup resource for containerClass markupResourceStream = getApplication().getResourceStreamLocator().locate(containerClass, getStyle(), getLocale(), getMarkupType()); containerClass = containerClass.getSuperclass(); } // Found markup? if (markupResourceStream != null) { // load the markup and watch for changes markup = loadMarkupAndWatchForChanges(key, markupResourceStream); } else { // flag markup as non-existent (as opposed to null, which // might mean that it's simply not loaded into the cache) markup = Markup.NO_MARKUP; } // Save any markup list (or absence of one) for next time markupCache.put(key, markup); } return markup; } } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/72c691c1e90dd2f1d131810e4c08757d06d90520/MarkupContainer.java/buggy/wicket/src/java/wicket/MarkupContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
26420,
336,
19233,
13111,
1435,
202,
95,
202,
202,
22043,
261,
15056,
1649,
13,
202,
202,
95,
1082,
202,
759,
10176,
731,
9813,
1047,
666,
635,
667,
16,
2573,
16,
2154,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
26420,
336,
19233,
13111,
1435,
202,
95,
202,
202,
22043,
261,
15056,
1649,
13,
202,
202,
95,
1082,
202,
759,
10176,
731,
9813,
1047,
666,
635,
667,
16,
2573,
16,
2154,
471,
... |
Integer sizeX = (Integer) metadata.get("Image width"); Integer sizeY = (Integer) metadata.get("Image height"); Integer sizeZ = (Integer) metadata.get("Number of images"); store.setPixels(sizeX, sizeY, sizeZ, new Integer(numChannels == 0 ? 1 : numChannels), new Integer(1), null, new Boolean(!littleEndian), "XYZTC", null); String timestamp = (String) metadata.get("Timestamp 1"); String description = (String) metadata.get("Image Description"); try { store.setImage(null, timestamp.substring(3), description, null); | */ for (int i=0; i<numSeries; i++) { store.setPixels( new Integer(widths[i]), new Integer(heights[i]), new Integer(zs[i]), new Integer(numChannels[i] == 0 ? 1 : numChannels[i]), new Integer(1), null, new Boolean(!littleEndian), "XYZTC", new Integer(i)); String timestamp = (String) metadata.get("Timestamp " + (i+1)); String description = (String) metadata.get("Image Description"); try { store.setImage(null, timestamp.substring(3), description, new Integer(i)); } catch (NullPointerException n) { } | protected void initMetadata() { if (headerIFDs == null) headerIFDs = ifds; for (int i=0; i<headerIFDs.length; i++) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); if (temp != null) { // the series data // ID_SERIES metadata.put("Version", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Number of Series", new Integer(DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Length of filename", new Integer(DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Length of file extension", new Integer(DataTools.bytesToInt(temp, 12, 4, littleEndian))); metadata.put("Image file extension", DataTools.stripString(new String(temp, 16, ((Integer) metadata.get("Length of file extension")).intValue()))); } temp = (byte[]) headerIFDs[i].get(new Integer(15)); if (temp != null) { // the image data // ID_IMAGES metadata.put("Number of images", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Image width", new Integer( DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Image height", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Bits per Sample", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); metadata.put("Samples per pixel", new Integer( DataTools.bytesToInt(temp, 16, 4, littleEndian))); } temp = (byte[]) headerIFDs[i].get(new Integer(20)); if (temp != null) { // dimension description // ID_DIMDESCR int pt = 0; metadata.put("Voxel Version", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); int voxelType = DataTools.bytesToInt(temp, 4, 4, littleEndian); String type = ""; switch (voxelType) { case 0: type = "undefined"; break; case 10: type = "gray normal"; break; case 20: type = "RGB"; break; } metadata.put("VoxelType", type); metadata.put("Bytes per pixel", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Real world resolution", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); int length = DataTools.bytesToInt(temp, 16, 4, littleEndian); metadata.put("Maximum voxel intensity", DataTools.stripString(new String(temp, 20, length))); pt = 20 + length; pt += 4; metadata.put("Minimum voxel intensity", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4 + length + 4; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); for (int j=0; j<length; j++) { int dimId = DataTools.bytesToInt(temp, pt, 4, littleEndian); String dimType = ""; switch (dimId) { case 0: dimType = "undefined"; break; case 120: dimType = "x"; break; case 121: dimType = "y"; break; case 122: dimType = "z"; break; case 116: dimType = "t"; break; case 6815843: dimType = "channel"; break; case 6357100: dimType = "wave length"; break; case 7602290: dimType = "rotation"; break; case 7798904: dimType = "x-wide for the motorized xy-stage"; break; case 7798905: dimType = "y-wide for the motorized xy-stage"; break; case 7798906: dimType = "z-wide for the z-stage-drive"; break; case 4259957: dimType = "user1 - unspecified"; break; case 4325493: dimType = "user2 - unspecified"; break; case 4391029: dimType = "user3 - unspecified"; break; case 6357095: dimType = "graylevel"; break; case 6422631: dimType = "graylevel1"; break; case 6488167: dimType = "graylevel2"; break; case 6553703: dimType = "graylevel3"; break; case 7864398: dimType = "logical x"; break; case 7929934: dimType = "logical y"; break; case 7995470: dimType = "logical z"; break; case 7602254: dimType = "logical t"; break; case 7077966: dimType = "logical lambda"; break; case 7471182: dimType = "logical rotation"; break; case 5767246: dimType = "logical x-wide"; break; case 5832782: dimType = "logical y-wide"; break; case 5898318: dimType = "logical z-wide"; break; } if (dimType.equals("channel")) numChannels++; metadata.put("Dim" + j + " type", dimType); pt += 4; metadata.put("Dim" + j + " size", new Integer( DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dim" + j + " distance between sub-dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical length", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical origin", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " name", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " description", DataTools.stripString(new String(temp, pt, len))); } } temp = (byte[]) headerIFDs[i].get(new Integer(30)); if (temp != null) { // filter data // ID_FILTERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(40)); if (temp != null) { // time data // ID_TIMEINFO try { metadata.put("Number of time-stamped dimensions", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); int nDims = DataTools.bytesToInt(temp, 4, 4, littleEndian); metadata.put("Time-stamped dimension", new Integer(nDims)); int pt = 8; for (int j=0; j < nDims; j++) { metadata.put("Dimension " + j + " ID", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " size", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " distance between dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } int numStamps = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-stamps", new Integer(numStamps)); for (int j=0; j<numStamps; j++) { metadata.put("Timestamp " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } int numTMs = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-markers", new Integer(numTMs)); for (int j=0; j<numTMs; j++) { int numDims = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; for (int k=0; k<numDims; k++) { metadata.put("Time-marker " + j + " Dimension " + k + " coordinate", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } metadata.put("Time-marker " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } } catch (Throwable t) { } } temp = (byte[]) headerIFDs[i].get(new Integer(50)); if (temp != null) { // scanner data // ID_SCANNERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(60)); if (temp != null) { // experiment data // ID_EXPERIMENT int pt = 8; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Image Description", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Main file extension", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image format identifier", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image extension", DataTools.stripString(new String(temp, pt, 2*len))); } temp = (byte[]) headerIFDs[i].get(new Integer(70)); if (temp != null) { // LUT data // ID_LUTDESC int pt = 0; int nChannels = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of LUT channels", new Integer(nChannels)); metadata.put("ID of colored dimension", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; for (int j=0; j<nChannels; j++) { metadata.put("LUT Channel " + j + " version", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int invert = DataTools.bytesToInt(temp, pt, 1, littleEndian); pt += 1; boolean inverted = invert == 1; metadata.put("LUT Channel " + j + " inverted?", new Boolean(inverted).toString()); int length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " description", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " filename", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " name", DataTools.stripString(new String(temp, pt, length))); pt += length; pt += 8; } } } // The metadata store we're working with. MetadataStore store = new DummyMetadataStore(); try { store = getMetadataStore(currentId); } catch (Exception e) { } if (numChannels == 0) numChannels++; try { if (isRGB(currentId)) numChannels *= 3; } catch (Exception exc) { } Integer sizeX = (Integer) metadata.get("Image width"); Integer sizeY = (Integer) metadata.get("Image height"); Integer sizeZ = (Integer) metadata.get("Number of images"); store.setPixels(sizeX, sizeY, sizeZ, new Integer(numChannels == 0 ? 1 : numChannels), // SizeC new Integer(1), // SizeT null, // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC", // DimensionOrder null); // Use index 0 String timestamp = (String) metadata.get("Timestamp 1"); String description = (String) metadata.get("Image Description"); try { store.setImage(null, timestamp.substring(3), description, null); } catch (NullPointerException n) { }// String voxel = metadata.get("VoxelType").toString();// String photoInterp;// if (voxel.equals("gray normal")) photoInterp = "monochrome";// else if (voxel.equals("RGB")) photoInterp = "RGB";// else photoInterp = "monochrome";// OMETools.setAttribute(ome, "ChannelInfo",// "PhotometricInterpretation", photoInterp);// OMETools.setAttribute(ome, "ChannelInfo", "SamplesPerPixel",// metadata.get("Samples per pixel").toString()); } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/7e4d2f34455817883836e0b3f10b9319208ae5e6/LeicaReader.java/buggy/loci/formats/in/LeicaReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
2277,
1435,
288,
565,
309,
261,
3374,
5501,
22831,
422,
446,
13,
1446,
5501,
22831,
273,
309,
2377,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
3374,
5501,
22831,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
2277,
1435,
288,
565,
309,
261,
3374,
5501,
22831,
422,
446,
13,
1446,
5501,
22831,
273,
309,
2377,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
3374,
5501,
22831,... |
CallFrame frame = (CallFrame)cx.interpreterLineCounting; | CallFrame frame = (CallFrame)cx.lastInterpreterFrame; | static String getSourcePositionFromStack(Context cx, int[] linep) { CallFrame frame = (CallFrame)cx.interpreterLineCounting; InterpreterData idata = frame.idata; if (frame.pcSourceLineStart >= 0) { linep[0] = getIndex(idata.itsICode, frame.pcSourceLineStart); } else { linep[0] = 0; } return idata.itsSourceFile; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/bfa8309763e2523e019dce764cbca002cf6f54ad/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
7889,
2555,
1265,
2624,
12,
1042,
9494,
16,
509,
8526,
980,
84,
13,
565,
288,
3639,
3049,
3219,
2623,
273,
261,
1477,
3219,
13,
71,
92,
18,
2722,
30010,
3219,
31,
3639,
5294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
7889,
2555,
1265,
2624,
12,
1042,
9494,
16,
509,
8526,
980,
84,
13,
565,
288,
3639,
3049,
3219,
2623,
273,
261,
1477,
3219,
13,
71,
92,
18,
2722,
30010,
3219,
31,
3639,
5294,
... |
false, | true, | protected void buildItemContent( CTabItem item ) { if ( itemMap.containsKey( item ) && itemMap.get( item ) == null ) { switch ( tabFolder.getSelectionIndex( ) ) { case 1 : bindingPage = new BindingPage( ); setPageInput( bindingPage ); refresh(tabFolder,bindingPage, true); item.setControl( bindingPage.getControl( ) ); itemMap.put( item, bindingPage ); break; case 2 : sortingPage = new FormPage( FormPropertyDescriptor.FULL_FUNCTION, new SortingHandleProvider( ), false, true ); setPageInput( sortingPage ); refresh(tabFolder,sortingPage, true); item.setControl( sortingPage.getControl( ) ); itemMap.put( item, sortingPage ); break; case 3 : groupPage = new FormPage( FormPropertyDescriptor.FULL_FUNCTION, new GroupHandleProvider( ), true, true ); setPageInput( groupPage ); refresh(tabFolder,groupPage, true); item.setControl( groupPage.getControl( ) ); itemMap.put( item, groupPage ); break; case 4 : mapPage = new PreviewPage( true ); mapPage.setPreview( new MapPropertyDescriptor( true ) ); mapPage.setProvider( new MapDescriptorProvider( ) ); setPageInput( mapPage ); refresh(tabFolder,mapPage, true); item.setControl( mapPage.getControl( ) ); itemMap.put( item, mapPage ); break; case 5 : highlightsPage = new PreviewPage( true ); highlightsPage.setPreview( new HighlightPropertyDescriptor( true ) ); highlightsPage.setProvider( new HighlightDescriptorProvider( ) ); setPageInput( highlightsPage ); refresh(tabFolder,highlightsPage, true); item.setControl( highlightsPage.getControl( ) ); itemMap.put( item, highlightsPage ); break; case 6 : filterPage = new FormPage( FormPropertyDescriptor.FULL_FUNCTION, new FilterHandleProvider( ), false, true ); setPageInput( filterPage ); refresh(tabFolder,filterPage, true); item.setControl( filterPage.getControl( ) ); itemMap.put( item, filterPage ); break; default : break; } } else if ( itemMap.get( item ) != null ){ setPageInput( itemMap.get( item ) ); refresh(tabFolder,itemMap.get( item ), false); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/0e57e48880673e10841402f4b39f5639c8a22173/ListPageGenerator.java/buggy/UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/ui/views/attributes/ListPageGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1361,
1180,
1350,
12,
385,
5661,
1180,
761,
262,
202,
95,
202,
202,
430,
261,
761,
863,
18,
12298,
653,
12,
761,
262,
597,
761,
863,
18,
588,
12,
761,
262,
422,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1361,
1180,
1350,
12,
385,
5661,
1180,
761,
262,
202,
95,
202,
202,
430,
261,
761,
863,
18,
12298,
653,
12,
761,
262,
597,
761,
863,
18,
588,
12,
761,
262,
422,
446,
... |
for (File f : new File(Main.pref.getPreferencesDir()+"plugins").listFiles()) { if (!f.isFile() || !f.getName().endsWith(".jar")) continue; availablePlugins.add(f.getName().substring(0, f.getName().length()-4)); } for (PluginProxy plugin : Main.plugins) { boolean available = availablePlugins.contains(plugin.name); JCheckBox pluginCheck = new JCheckBox(plugin.name, available); String desc = plugin.getDescription(); | File[] pluginFiles = new File(Main.pref.getPreferencesDir()+"plugins").listFiles(); if (pluginFiles != null) { for (File f : pluginFiles) { if (!f.isFile() || !f.getName().endsWith(".jar")) continue; availablePlugins.add(f.getName().substring(0, f.getName().length()-4)); } } Collection<String> enabledPlugins = Arrays.asList(Main.pref.get("plugins").split(",")); for (final String plugin : availablePlugins) { boolean enabled = enabledPlugins.contains(plugin); String desc = null; for (PluginProxy p : Main.plugins) { if (p.name.equals(plugin)) { desc = p.getDescription(); break; } } final JCheckBox pluginCheck = new JCheckBox(plugin, enabled); | public PreferenceDialog() { super(JOptionPane.getFrameForComponent(Main.parent), tr("Preferences")); // look and feel combo box String laf = Main.pref.get("laf"); for (int i = 0; i < lafCombo.getItemCount(); ++i) { if (((LookAndFeelInfo)lafCombo.getItemAt(i)).getClassName().equals(laf)) { lafCombo.setSelectedIndex(i); break; } } final ListCellRenderer oldRenderer = lafCombo.getRenderer(); lafCombo.setRenderer(new DefaultListCellRenderer(){ @Override public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return oldRenderer.getListCellRendererComponent(list, ((LookAndFeelInfo)value).getName(), index, isSelected, cellHasFocus); } }); lafCombo.addActionListener(requireRestartAction); // language String lang = Main.pref.get("language"); for (int i = 0; i < languages.getItemCount(); ++i) { if (languages.getItemAt(i).toString().equals(lang)) { languages.setSelectedIndex(i); break; } } languages.setRenderer(new DefaultListCellRenderer(){ @Override public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return super.getListCellRendererComponent(list, ((Locale)value).getDisplayName(), index, isSelected, cellHasFocus); } }); languages.addActionListener(requireRestartAction); // projection combo box for (int i = 0; i < projectionCombo.getItemCount(); ++i) { if (projectionCombo.getItemAt(i).getClass().getName().equals(Main.pref.get("projection"))) { projectionCombo.setSelectedIndex(i); break; } } projectionCombo.addActionListener(requireRestartAction); drawRawGpsLines.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { if (!drawRawGpsLines.isSelected()) forceRawGpsLines.setSelected(false); forceRawGpsLines.setEnabled(drawRawGpsLines.isSelected()); } }); osmDataServer.setText(Main.pref.get("osm-server.url")); osmDataUsername.setText(Main.pref.get("osm-server.username")); osmDataPassword.setText(Main.pref.get("osm-server.password")); wmsServerBaseUrl.setText(Main.pref.get("wms.baseurl", "http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&width=512&height=512&layers=global_mosaic&styles=&srs=EPSG:4326&format=image/jpeg&")); csvImportString.setText(Main.pref.get("csv.importstring")); drawRawGpsLines.setSelected(Main.pref.getBoolean("draw.rawgps.lines")); forceRawGpsLines.setToolTipText(tr("Force drawing of lines if the imported data contain no line information.")); forceRawGpsLines.setSelected(Main.pref.getBoolean("draw.rawgps.lines.force")); forceRawGpsLines.setEnabled(drawRawGpsLines.isSelected()); largeGpsPoints.setSelected(Main.pref.getBoolean("draw.rawgps.large")); largeGpsPoints.setToolTipText(tr("Draw larger dots for the GPS points.")); directionHint.setToolTipText(tr("Draw direction hints for all segments.")); directionHint.setSelected(Main.pref.getBoolean("draw.segment.direction")); String annos = Main.pref.get("annotation.sources"); StringTokenizer st = new StringTokenizer(annos, ";"); while (st.hasMoreTokens()) ((DefaultListModel)annotationSources.getModel()).addElement(st.nextToken()); Box pluginPanel = Box.createVerticalBox(); Collection<String> availablePlugins = new HashSet<String>(); for (File f : new File(Main.pref.getPreferencesDir()+"plugins").listFiles()) { if (!f.isFile() || !f.getName().endsWith(".jar")) continue; availablePlugins.add(f.getName().substring(0, f.getName().length()-4)); } for (PluginProxy plugin : Main.plugins) { boolean available = availablePlugins.contains(plugin.name); JCheckBox pluginCheck = new JCheckBox(plugin.name, available); String desc = plugin.getDescription(); pluginPanel.add(pluginCheck); if (desc != null) { pluginCheck.setToolTipText(desc); JLabel label = new JLabel("<html><i>"+desc+"</i></html>"); label.setBorder(BorderFactory.createEmptyBorder(0,20,0,0)); pluginPanel.add(label); pluginPanel.add(Box.createVerticalStrut(5)); } pluginMap.put(plugin, available); } JScrollPane pluginPane = new JScrollPane(pluginPanel); pluginPane.setBorder(null); Map<String,String> allColors = new TreeMap<String, String>(Main.pref.getAllPrefix("color.")); Vector<Vector<Object>> rows = new Vector<Vector<Object>>(); for (Entry<String,String> e : allColors.entrySet()) { Vector<Object> row = new Vector<Object>(2); row.add(tr(e.getKey().substring("color.".length()))); row.add(ColorHelper.html2color(e.getValue())); rows.add(row); } Vector<Object> cols = new Vector<Object>(2); cols.add(tr("Color")); cols.add(tr("Name")); colors = new JTable(rows, cols){ @Override public boolean isCellEditable(int row, int column) { return false; } }; colors.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); final TableCellRenderer oldColorsRenderer = colors.getDefaultRenderer(Object.class); colors.setDefaultRenderer(Object.class, new TableCellRenderer(){ public Component getTableCellRendererComponent(JTable t, Object o, boolean selected, boolean focus, int row, int column) { if (column == 1) { JLabel l = new JLabel(ColorHelper.color2html((Color)o)); l.setBackground((Color)o); l.setOpaque(true); return l; } return oldColorsRenderer.getTableCellRendererComponent(t,o,selected,focus,row,column); } }); colors.getColumnModel().getColumn(1).setWidth(100); JButton colorEdit = new JButton(tr("Choose")); colorEdit.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { if (colors.getSelectedRowCount() == 0) { JOptionPane.showMessageDialog(PreferenceDialog.this, tr("Please select a color.")); return; } int sel = colors.getSelectedRow(); JColorChooser chooser = new JColorChooser((Color)colors.getValueAt(sel, 1)); int answer = JOptionPane.showConfirmDialog(PreferenceDialog.this, chooser, tr("Choose a color for {0}", colors.getValueAt(sel, 0)), JOptionPane.OK_CANCEL_OPTION); if (answer == JOptionPane.OK_OPTION) colors.setValueAt(chooser.getColor(), sel, 1); } }); // Annotation source panels JButton addAnno = new JButton(tr("Add")); addAnno.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { String source = JOptionPane.showInputDialog(Main.parent, tr("Annotation preset source")); if (source == null) return; ((DefaultListModel)annotationSources.getModel()).addElement(source); requiresRestart = true; } }); JButton editAnno = new JButton(tr("Edit")); editAnno.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { if (annotationSources.getSelectedIndex() == -1) JOptionPane.showMessageDialog(Main.parent, tr("Please select the row to edit.")); else { String source = JOptionPane.showInputDialog(Main.parent, tr("Annotation preset source"), annotationSources.getSelectedValue()); if (source == null) return; ((DefaultListModel)annotationSources.getModel()).setElementAt(source, annotationSources.getSelectedIndex()); requiresRestart = true; } } }); JButton deleteAnno = new JButton(tr("Delete")); deleteAnno.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { if (annotationSources.getSelectedIndex() == -1) JOptionPane.showMessageDialog(Main.parent, tr("Please select the row to delete.")); else { ((DefaultListModel)annotationSources.getModel()).remove(annotationSources.getSelectedIndex()); requiresRestart = true; } } }); annotationSources.setVisibleRowCount(3); // setting tooltips osmDataServer.setToolTipText(tr("The base URL to the OSM server (REST API)")); osmDataUsername.setToolTipText(tr("Login name (email) to the OSM account.")); osmDataPassword.setToolTipText(tr("Login password to the OSM account. Leave blank to not store any password.")); wmsServerBaseUrl.setToolTipText(tr("The base URL to the server retrieving WMS background pictures from.")); csvImportString.setToolTipText(tr("<html>Import string specification. lat/lon and time are imported.<br>" + "<b>lat</b>: The latitude coordinate<br>" + "<b>lon</b>: The longitude coordinate<br>" + "<b>time</b>: The measured time as string<br>" + "<b>ignore</b>: Skip this field<br>" + "An example: \"ignore ignore lat lon\" will use ' ' as delimiter, skip the first two values and read then lat/lon.<br>" + "Other example: \"lat,lon\" will just read lat/lon values comma seperated.</html>")); drawRawGpsLines.setToolTipText(tr("If your gps device draw to few lines, select this to draw lines along your way.")); colors.setToolTipText(tr("Colors used by different objects in JOSM.")); annotationSources.setToolTipText(tr("The sources (url or filename) of annotation preset definition files. See http://josm.eigenheimstrasse.de/wiki/AnnotationPresets for help.")); addAnno.setToolTipText(tr("Add a new annotation preset source to the list.")); deleteAnno.setToolTipText(tr("Delete the selected source from the list.")); // creating the gui // Display tab JPanel display = createPreferenceTab("display", tr("Display Settings"), tr("Various settings that influence the visual representation of the whole program.")); display.add(new JLabel(tr("Look and Feel")), GBC.std()); display.add(GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL)); display.add(lafCombo, GBC.eol().fill(GBC.HORIZONTAL)); display.add(new JLabel(tr("Language")), GBC.std()); display.add(GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL)); display.add(languages, GBC.eol().fill(GBC.HORIZONTAL)); display.add(drawRawGpsLines, GBC.eol().insets(20,0,0,0)); display.add(forceRawGpsLines, GBC.eop().insets(40,0,0,0)); display.add(largeGpsPoints, GBC.eop().insets(20,0,0,0)); display.add(directionHint, GBC.eop().insets(20,0,0,0)); display.add(new JLabel(tr("Colors")), GBC.eol()); colors.setPreferredScrollableViewportSize(new Dimension(100,112)); display.add(new JScrollPane(colors), GBC.eol().fill(GBC.BOTH)); display.add(colorEdit, GBC.eol().anchor(GBC.EAST)); //display.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); // Connection tab JPanel con = createPreferenceTab("connection", tr("Connection Settings"), tr("Connection Settings to the OSM server.")); con.add(new JLabel(tr("Base Server URL")), GBC.std()); con.add(osmDataServer, GBC.eol().fill(GBC.HORIZONTAL).insets(5,0,0,5)); con.add(new JLabel(tr("OSM username (email)")), GBC.std()); con.add(osmDataUsername, GBC.eol().fill(GBC.HORIZONTAL).insets(5,0,0,5)); con.add(new JLabel(tr("OSM password")), GBC.std()); con.add(osmDataPassword, GBC.eol().fill(GBC.HORIZONTAL).insets(5,0,0,0)); JLabel warning = new JLabel(tr("<html>" + "WARNING: The password is stored in plain text in the preferences file.<br>" + "The password is transfered in plain text to the server, encoded in the url.<br>" + "<b>Do not use a valuable Password.</b></html>")); warning.setFont(warning.getFont().deriveFont(Font.ITALIC)); con.add(warning, GBC.eop().fill(GBC.HORIZONTAL)); //con.add(new JLabel("WMS server base url (everything except bbox-parameter)"), GBC.eol()); //con.add(wmsServerBaseUrl, GBC.eop().fill(GBC.HORIZONTAL)); //con.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); con.add(new JLabel(tr("CSV import specification (empty: read from first line in data)")), GBC.eol()); con.add(csvImportString, GBC.eop().fill(GBC.HORIZONTAL)); con.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); // Map tab JPanel map = createPreferenceTab("map", tr("Map Settings"), tr("Settings for the map projection and data interpretation.")); map.add(new JLabel(tr("Projection method")), GBC.std()); map.add(GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL)); map.add(projectionCombo, GBC.eop().fill(GBC.HORIZONTAL).insets(0,0,0,5)); map.add(new JLabel(tr("Annotation preset sources")), GBC.eol().insets(0,5,0,0)); map.add(new JScrollPane(annotationSources), GBC.eol().fill(GBC.BOTH)); map.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); map.add(addAnno, GBC.std()); map.add(editAnno, GBC.std().insets(5,0,5,0)); map.add(deleteAnno, GBC.std()); // I HATE SWING! map.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); map.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); map.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); map.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); map.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); // Plugin tab JPanel plugin = createPreferenceTab("plugin", tr("Plugins"), tr("Configure available Plugins.")); plugin.add(pluginPane, GBC.eol().fill(GBC.BOTH)); plugin.add(GBC.glue(0,10), GBC.eol()); plugin.add(new UrlLabel("http://josm.eigenheimstrasse.de/wiki/Plugins", "Get more plugins"), GBC.std()); tabPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT); // OK/Cancel panel at bottom JPanel okPanel = new JPanel(new GridBagLayout()); okPanel.add(Box.createHorizontalGlue(), GBC.std().fill(GBC.HORIZONTAL)); okPanel.add(new JButton(new OkAction()), GBC.std()); okPanel.add(new JButton(new CancelAction()), GBC.std()); okPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); // merging all in the content pane getContentPane().setLayout(new GridBagLayout()); getContentPane().add(tabPane, GBC.eol().fill()); getContentPane().add(okPanel, GBC.eol().fill(GBC.HORIZONTAL)); setModal(true); pack(); setLocationRelativeTo(Main.parent); } | 2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/c49f551220ee6c06c962b984038b701c649cb3f9/PreferenceDialog.java/buggy/src/org/openstreetmap/josm/gui/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
29125,
6353,
1435,
288,
202,
202,
9565,
12,
46,
1895,
8485,
18,
588,
3219,
1290,
1841,
12,
6376,
18,
2938,
3631,
433,
2932,
12377,
7923,
1769,
202,
202,
759,
2324,
471,
1656,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
29125,
6353,
1435,
288,
202,
202,
9565,
12,
46,
1895,
8485,
18,
588,
3219,
1290,
1841,
12,
6376,
18,
2938,
3631,
433,
2932,
12377,
7923,
1769,
202,
202,
759,
2324,
471,
1656,
... |
private void threadMarkRulesWithWarningsOrErrors() { // Clear graphic cache because we have to redraw each rule again visual.drawing.clearCacheGraphs(); for (Iterator iterator = visual.getParserEngine().getRules().iterator(); iterator.hasNext();) { GrammarSyntaxRule rule = (GrammarSyntaxRule)iterator.next(); updateRuleWithErrors(rule, threadFetchErrorsForRule(rule)); } visual.delegate.visualizationDidMarkRules(visual); } | 51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/95ba6ba72773f8ce77a463ceeadb53dafdcad590/VisualAnalysis.java/buggy/src/org/antlr/works/visualization/VisualAnalysis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
5930,
3882,
4478,
1190,
4312,
1162,
4229,
1435,
95,
759,
4756,
3175,
1483,
335,
2493,
26274,
1814,
76,
842,
278,
7653,
354,
1814,
497,
5345,
23095,
26671,
18,
9446,
310,
18,
8507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
5930,
3882,
4478,
1190,
4312,
1162,
4229,
1435,
95,
759,
4756,
3175,
1483,
335,
2493,
26274,
1814,
76,
842,
278,
7653,
354,
1814,
497,
5345,
23095,
26671,
18,
9446,
310,
18,
8507,
... | ||
RequestStarterClient[] starters = new RequestStarterClient[NUMBER_OF_NODES]; for(int i=0;i<starters.length;i++) starters[i] = nodes[i].makeStarterClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS, (short)0, false); | public static void main(String[] args) throws FSParseException, PeerParseException, CHKEncodeException { PeerNode.disableProbabilisticHTLs = true; String wd = "realNodeRequestInsertTest"; new File(wd).mkdir(); // Don't clobber nearby nodes! Node.MAX_HTL = 5; FileLoggerHook fh = Logger.setupStdoutLogging(Logger.DEBUG, "freenet.store:minor,freenet.node.Location:normal" /*"freenet.node.LocationManager:debug,freenet.node.FNPPacketManager:normal,freenet.io.comm.UdpSocketManager:debug"*/); Logger.globalSetThreshold(Logger.DEBUG); System.out.println("Insert/retrieve test"); System.out.println(); DummyRandomSource random = new DummyRandomSource(); DiffieHellman.init(random); Node[] nodes = new Node[NUMBER_OF_NODES]; Logger.normal(RealNodeRoutingTest.class, "Creating nodes..."); for(int i=0;i<NUMBER_OF_NODES;i++) { nodes[i] = new Node(5000+i, random, null, wd+File.separator, 0, false, fh, 100); nodes[i].usm.setDropProbability(20); // 5% Logger.normal(RealNodeRoutingTest.class, "Created node "+i); } SimpleFieldSet refs[] = new SimpleFieldSet[NUMBER_OF_NODES]; for(int i=0;i<NUMBER_OF_NODES;i++) refs[i] = nodes[i].exportFieldSet(); Logger.normal(RealNodeRoutingTest.class, "Created "+NUMBER_OF_NODES+" nodes"); // Now link them up // Connect the set for(int i=0;i<NUMBER_OF_NODES;i++) { int next = (i+1) % NUMBER_OF_NODES; int prev = (i+NUMBER_OF_NODES-1)%NUMBER_OF_NODES; nodes[i].peers.connect(refs[next]); nodes[i].peers.connect(refs[prev]); } Logger.normal(RealNodeRoutingTest.class, "Connected nodes"); // Now add some random links for(int i=0;i<NUMBER_OF_NODES*5;i++) { if(i % NUMBER_OF_NODES == 0) Logger.normal(RealNodeRoutingTest.class, ""+i); int length = (int)Math.pow(NUMBER_OF_NODES, random.nextDouble()); int nodeA = random.nextInt(NUMBER_OF_NODES); int nodeB = (nodeA+length)%NUMBER_OF_NODES; //System.out.println(""+nodeA+" -> "+nodeB); Node a = nodes[nodeA]; Node b = nodes[nodeB]; a.peers.connect(b.exportFieldSet()); b.peers.connect(a.exportFieldSet()); } RequestStarterClient[] starters = new RequestStarterClient[NUMBER_OF_NODES]; for(int i=0;i<starters.length;i++) starters[i] = nodes[i].makeStarterClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS, (short)0, false); // pretend are all requests Logger.normal(RealNodeRoutingTest.class, "Added random links"); SwapRequestInterval sri = new CPUAdjustingSwapRequestInterval(((500*1000*NUMBER_OF_NODES)/200), 50); for(int i=0;i<NUMBER_OF_NODES;i++) nodes[i].start(sri); // Now sit back and watch the fireworks! int cycleNumber = 0; int lastSwaps = 0; int lastNoSwaps = 0; int failures = 0; int successes = 0; RunningAverage avg = new SimpleRunningAverage(100, 0.0); RunningAverage avg2 = new BootstrappingDecayingRunningAverage(0.0, 0.0, 1.0, 100); int pings = 0; while(true) { cycleNumber++; try { Thread.sleep(5000); } catch (InterruptedException e) { // Ignore } for(int i=0;i<NUMBER_OF_NODES;i++) { Logger.normal(RealNodeRoutingTest.class, "Cycle "+cycleNumber+" node "+i+": "+nodes[i].lm.getLocation().getValue()); } int newSwaps = LocationManager.swaps; int totalStarted = LocationManager.startedSwaps; int noSwaps = LocationManager.noSwaps; Logger.normal(RealNodeRoutingTest.class, "Swaps: "+(newSwaps-lastSwaps)); Logger.normal(RealNodeRoutingTest.class, "\nTotal swaps: Started*2: "+totalStarted*2+", succeeded: "+newSwaps+", last minute failures: "+noSwaps+ ", ratio "+(double)noSwaps/(double)newSwaps+", early failures: "+((totalStarted*2)-(noSwaps+newSwaps))); Logger.normal(RealNodeRoutingTest.class, "This cycle ratio: "+((double)(noSwaps-lastNoSwaps)) / ((double)(newSwaps - lastSwaps))); lastNoSwaps = noSwaps; Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (already locked): "+LocationManager.swapsRejectedAlreadyLocked); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (nowhere to go): "+LocationManager.swapsRejectedNowhereToGo); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (rate limit): "+LocationManager.swapsRejectedRateLimit); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (loop): "+LocationManager.swapsRejectedLoop); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (recognized ID):" +LocationManager.swapsRejectedRecognizedID); lastSwaps = newSwaps; // Do some (routed) test-pings for(int i=0;i<10;i++) { try { Thread.sleep(2000); } catch (InterruptedException e1) { } try { Node randomNode = nodes[random.nextInt(NUMBER_OF_NODES)]; Node randomNode2 = randomNode; while(randomNode2 == randomNode) randomNode2 = nodes[random.nextInt(NUMBER_OF_NODES)]; Logger.normal(RealNodeRoutingTest.class, "Pinging "+randomNode2.portNumber+" from "+randomNode.portNumber); double loc2 = randomNode2.lm.getLocation().getValue(); int hopsTaken = randomNode.routedPing(loc2); pings++; if(hopsTaken < 0) { failures++; avg.report(0.0); avg2.report(0.0); double ratio = (double)successes / ((double)(failures+successes)); Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" FAILED from "+randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+")"); } else { successes++; avg.report(1.0); avg2.report(1.0); double ratio = (double)successes / ((double)(failures+successes)); Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" success: "+hopsTaken+" "+randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+")"); } } catch (Throwable t) { Logger.error(RealNodeRoutingTest.class, "Caught "+t, t); } } if(pings > 10 && avg.currentValue() > 0.98 && ((double)successes / ((double)(failures+successes)) > 0.98)) { break; } } System.out.println(); System.out.println("Ping average > 98%, lets do some inserts/requests"); System.out.println(); int requestNumber = 0; RunningAverage requestsAvg = new SimpleRunningAverage(100, 0.0); String baseString = "" + System.currentTimeMillis() + " "; while(true) { try { requestNumber++; try { Thread.sleep(5000); } catch (InterruptedException e1) { } String dataString = baseString + requestNumber; // Pick random node to insert to int node1 = random.nextInt(NUMBER_OF_NODES); Node randomNode = nodes[node1]; Logger.error(RealNodeRequestInsertTest.class,"Inserting: \""+dataString+"\" to "+node1); byte[] data = dataString.getBytes(); ClientCHKBlock block; block = ClientCHKBlock.encode(data, false, false, (short)-1, 0); ClientCHK chk = (ClientCHK) block.getClientKey(); byte[] encData = block.getData(); byte[] encHeaders = block.getHeaders(); ClientCHKBlock newBlock = new ClientCHKBlock(encData, encHeaders, chk, true); Logger.error(RealNodeRequestInsertTest.class, "Decoded: "+new String(newBlock.memoryDecode())); Logger.error(RealNodeRequestInsertTest.class,"CHK: "+chk.getURI()); Logger.error(RealNodeRequestInsertTest.class,"Headers: "+HexUtil.bytesToHex(block.getHeaders())); randomNode.putKey(block, starters[node1], true); Logger.error(RealNodeRequestInsertTest.class, "Inserted to "+node1); Logger.error(RealNodeRequestInsertTest.class, "Data: "+Fields.hashCode(encData)+", Headers: "+Fields.hashCode(encHeaders)); // Pick random node to request from int node2; do { node2 = random.nextInt(NUMBER_OF_NODES); } while(node2 == node1); Node fetchNode = nodes[node2]; block = (ClientCHKBlock) fetchNode.getKey((ClientKey) chk, false, starters[node2], true, false); if(block == null) { Logger.error(RealNodeRequestInsertTest.class, "Fetch FAILED from "+node2); requestsAvg.report(0.0); } else { byte[] results = block.memoryDecode(); requestsAvg.report(1.0); if(Arrays.equals(results, data)) { Logger.error(RealNodeRequestInsertTest.class, "Fetch succeeded: "+new String(results)); } else { Logger.error(RealNodeRequestInsertTest.class, "Returned invalid data!: "+new String(results)); } } } catch (Throwable t) { Logger.error(RealNodeRequestInsertTest.class, "Caught "+t, t); } } } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/d32229c02576d531c915059f111c468591f30e84/RealNodeRequestInsertTest.java/buggy/src/freenet/node/RealNodeRequestInsertTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
9247,
13047,
16,
10669,
13047,
16,
6469,
47,
5509,
503,
288,
3639,
10669,
907,
18,
8394,
9152,
22681,
5846,
5062,
48,
87,
273,
638,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
9247,
13047,
16,
10669,
13047,
16,
6469,
47,
5509,
503,
288,
3639,
10669,
907,
18,
8394,
9152,
22681,
5846,
5062,
48,
87,
273,
638,
3... | |
public void appendTdsInt( int i ) throws java.io.IOException { appendByte( ( byte ) ( ( i >> 0 ) & 0xff ) ); appendByte( ( byte ) ( ( i >> 8 ) & 0xff ) ); appendByte( ( byte ) ( ( i >> 16 ) & 0xff ) ); appendByte( ( byte ) ( ( i >> 24 ) & 0xff ) ); | public void appendTdsInt(int i) throws java.io.IOException { appendByte((byte) ((i >> 0) & 0xff)); appendByte((byte) ((i >> 8) & 0xff)); appendByte((byte) ((i >> 16) & 0xff)); appendByte((byte) ((i >> 24) & 0xff)); | public void appendTdsInt( int i ) throws java.io.IOException { appendByte( ( byte ) ( ( i >> 0 ) & 0xff ) ); appendByte( ( byte ) ( ( i >> 8 ) & 0xff ) ); appendByte( ( byte ) ( ( i >> 16 ) & 0xff ) ); appendByte( ( byte ) ( ( i >> 24 ) & 0xff ) ); } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/a4e58a1f746332452b934163d1eb35cfed6964a9/TdsComm.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsComm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
714,
56,
2377,
1702,
12,
509,
277,
262,
2398,
1216,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
714,
3216,
12,
261,
1160,
262,
261,
261,
277,
1671,
374,
262,
473,
374,
5297,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
714,
56,
2377,
1702,
12,
509,
277,
262,
2398,
1216,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
714,
3216,
12,
261,
1160,
262,
261,
261,
277,
1671,
374,
262,
473,
374,
5297,
... |
public char asChar() throws XIllegalArgument { | public char asChar() throws XTypeMismatch { | public char asChar() throws XIllegalArgument { if (javaValue.length() == 1) { return javaValue.charAt(0); } else { throw new XIllegalArgument("Expected a character, given a string: " + javaValue); } } | 57139 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57139/09627d459f1e1bc3a9ef2c39df3c8683749e8cac/NATText.java/clean/src/edu/vub/at/objects/natives/NATText.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1149,
487,
2156,
1435,
1216,
1139,
12195,
1379,
288,
1082,
202,
430,
261,
6290,
620,
18,
2469,
1435,
422,
404,
13,
288,
9506,
202,
2463,
2252,
620,
18,
3001,
861,
12,
20,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1149,
487,
2156,
1435,
1216,
1139,
12195,
1379,
288,
1082,
202,
430,
261,
6290,
620,
18,
2469,
1435,
422,
404,
13,
288,
9506,
202,
2463,
2252,
620,
18,
3001,
861,
12,
20,
176... |
public List getNodeIDs (Node home, Relation rel) throws Exception { // Transactor tx = (Transactor) Thread.currentThread (); // tx.timer.beginEvent ("getNodeIDs "+home); if (rel == null || rel.otherType == null || !rel.otherType.isRelational ()) { // this should never be called for embedded nodes throw new RuntimeException ("NodeMgr.getNodeIDs called for non-relational node "+home); } else { List retval = new ArrayList (); // if we do a groupby query (creating an intermediate layer of groupby nodes), // retrieve the value of that field instead of the primary key String idfield = rel.groupby == null ? rel.otherType.getIDField () : rel.groupby; Connection con = rel.otherType.getConnection (); String table = rel.otherType.getTableName (); Statement stmt = null; try { String q = null; if (home.getSubnodeRelation() != null) { // subnode relation was explicitly set q = "SELECT "+idfield+" FROM "+table+" "+home.getSubnodeRelation(); } else { // let relation object build the query q = "SELECT "+idfield+" FROM "+table + rel.buildQuery (home, home.getNonVirtualParent (), null, " WHERE ", true); } if (logSql) app.logEvent ("### getNodeIDs: "+q); stmt = con.createStatement (); if (rel.maxSize > 0) stmt.setMaxRows (rel.maxSize); ResultSet result = stmt.executeQuery (q); // problem: how do we derive a SyntheticKey from a not-yet-persistent Node? Key k = rel.groupby != null ? home.getKey (): null; while (result.next ()) { String kstr = result.getString (1); // jump over null values - this can happen especially when the selected // column is a group-by column. if (kstr == null) continue; // make the proper key for the object, either a generic DB key or a groupby key Key key = rel.groupby == null ? (Key) new DbKey (rel.otherType, kstr) : (Key) new SyntheticKey (k, kstr); retval.add (new NodeHandle (key)); // if these are groupby nodes, evict nullNode keys if (rel.groupby != null) { Node n = (Node) cache.get (key); if (n != null && n.isNullNode ()) evictKey (key); } } } finally { // tx.timer.endEvent ("getNodeIDs "+home); if (stmt != null) try { stmt.close (); } catch (Exception ignore) {} } return retval; } } | 3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/f2bfe5b9cf3a68d9767d085793b8cfb80c2f8479/NodeManager.java/buggy/src/helma/objectmodel/db/NodeManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
5973,
5103,
261,
907,
6382,
16,
7317,
1279,
13,
1216,
1185,
288,
202,
759,
2604,
3362,
2229,
273,
261,
1429,
3362,
13,
4884,
18,
2972,
3830,
261,
1769,
202,
759,
2229,
18,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
5973,
5103,
261,
907,
6382,
16,
7317,
1279,
13,
1216,
1185,
288,
202,
759,
2604,
3362,
2229,
273,
261,
1429,
3362,
13,
4884,
18,
2972,
3830,
261,
1769,
202,
759,
2229,
18,
12... | ||
protected RubyIO(Ruby runtime, RubyClass type) { | public RubyIO(Ruby runtime, RubyClass type) { | protected RubyIO(Ruby runtime, RubyClass type) { super(runtime, type); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/ae3178fbb3656e01c3d379a6255e1af956725271/RubyIO.java/buggy/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4294,
12,
54,
10340,
3099,
16,
19817,
797,
618,
13,
288,
3639,
2240,
12,
9448,
16,
618,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4294,
12,
54,
10340,
3099,
16,
19817,
797,
618,
13,
288,
3639,
2240,
12,
9448,
16,
618,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
SERVER_DATE.length() + P4_SERVER_DATE_FORMAT.length()); | SERVER_DATE.length() + P4_SERVER_DATE_FORMAT.length()); | protected long parseServerInfo(InputStream is) throws IOException { BufferedReader p4reader = new BufferedReader(new InputStreamReader(is)); Date ccServerTime = new Date(); Date p4ServerTime = new Date(); String line = null; long offset = 0; while ((line = p4reader.readLine()) != null && offset == 0) { if (line.startsWith(SERVER_DATE)) { try { String dateString = line.substring(SERVER_DATE.length(), SERVER_DATE.length() + P4_SERVER_DATE_FORMAT.length()); p4ServerTime = P4_SERVER_DATE.parse(dateString); offset = p4ServerTime.getTime() - ccServerTime.getTime(); } catch (ParseException pe) { LOG.error("Unable to parse p4 server time from line \'" + line + "\'. " + pe.getMessage() + "; Proceeding without time offset."); } } } LOG.info("Perforce server time offset: " + offset + " ms"); return offset; } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/b7d74646ab37b46052e3e3bc07b897083ec08cd3/P4.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/P4.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1525,
1109,
2081,
966,
12,
4348,
353,
13,
1216,
1860,
288,
3639,
10633,
293,
24,
10530,
273,
394,
10633,
12,
2704,
15322,
12,
291,
10019,
3639,
2167,
4946,
2081,
950,
273,
394,
2167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1525,
1109,
2081,
966,
12,
4348,
353,
13,
1216,
1860,
288,
3639,
10633,
293,
24,
10530,
273,
394,
10633,
12,
2704,
15322,
12,
291,
10019,
3639,
2167,
4946,
2081,
950,
273,
394,
2167... |
if (TDEBUG && debuglevel > 6) { | if (TDEBUG && (debuglevel > 6)) { | blockEncrypt (byte[] in, byte[] result, int inOffset, Object sessionKey) {if (TDEBUG) trace(IN, "blockEncrypt("+in+", "+inOffset+", "+sessionKey+")"); Object[] sk = (Object[]) sessionKey; // extract S-box and session key int[] sBox = (int[]) sk[0]; int[] sKey = (int[]) sk[1];if (TDEBUG && debuglevel > 6) System.out.println("PT="+toString(in, inOffset, BLOCK_SIZE)); int x0 = (in[inOffset++] & 0xFF) | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 24; int x1 = (in[inOffset++] & 0xFF) | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 24; int x2 = (in[inOffset++] & 0xFF) | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 24; int x3 = (in[inOffset++] & 0xFF) | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 24; x0 ^= sKey[INPUT_WHITEN ]; x1 ^= sKey[INPUT_WHITEN + 1]; x2 ^= sKey[INPUT_WHITEN + 2]; x3 ^= sKey[INPUT_WHITEN + 3];if (TDEBUG && debuglevel > 6) System.out.println("PTw="+intToString(x0)+intToString(x1)+intToString(x2)+intToString(x3)); int t0, t1; int k = ROUND_SUBKEYS; for (int R = 0; R < ROUNDS; R += 2) { t0 = Fe32_0( sBox, x0 ); t1 = Fe32_3( sBox, x1 ); x2 ^= t0 + t1 + sKey[k++]; x2 = x2 >>> 1 | x2 << 31; x3 = x3 << 1 | x3 >>> 31; x3 ^= t0 + 2*t1 + sKey[k++];if (TDEBUG && debuglevel > 6) System.out.println("CT"+(R)+"="+intToString(x0)+intToString(x1)+intToString(x2)+intToString(x3)); t0 = Fe32_0( sBox, x2 ); t1 = Fe32_3( sBox, x3 ); x0 ^= t0 + t1 + sKey[k++]; x0 = x0 >>> 1 | x0 << 31; x1 = x1 << 1 | x1 >>> 31; x1 ^= t0 + 2*t1 + sKey[k++];if (TDEBUG && debuglevel > 6) System.out.println("CT"+(R+1)+"="+intToString(x0)+intToString(x1)+intToString(x2)+intToString(x3)); } x2 ^= sKey[OUTPUT_WHITEN ]; x3 ^= sKey[OUTPUT_WHITEN + 1]; x0 ^= sKey[OUTPUT_WHITEN + 2]; x1 ^= sKey[OUTPUT_WHITEN + 3];if (TDEBUG && debuglevel > 6) System.out.println("CTw="+intToString(x0)+intToString(x1)+intToString(x2)+intToString(x3)); result[0] = (byte) x2; result[1] = (byte)(x2 >>> 8); result[2] = (byte)(x2 >>> 16); result[3] = (byte)(x2 >>> 24); result[4] = (byte) x3; result[5] = (byte)(x3 >>> 8); result[6] = (byte)(x3 >>> 16); result[7] = (byte)(x3 >>> 24); result[8] = (byte) x0; result[9] = (byte)(x0 >>> 8); result[10] = (byte)(x0 >>> 16); result[11] = (byte)(x0 >>> 24); result[12] = (byte) x1; result[13] = (byte)(x1 >>> 8); result[14] = (byte)(x1 >>> 16); result[15] = (byte)(x1 >>> 24);if (TDEBUG && debuglevel > 6) {System.out.println("CT="+toString(result));System.out.println();}if (TDEBUG) trace(OUT, "blockEncrypt()"); } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Twofish_Algorithm.java/buggy/src/freenet/crypt/ciphers/Twofish_Algorithm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1203,
13129,
261,
7229,
8526,
316,
16,
1160,
8526,
563,
16,
509,
316,
2335,
16,
1033,
26864,
13,
288,
430,
261,
56,
9394,
13,
2606,
12,
706,
16,
315,
2629,
13129,
2932,
15,
267,
15,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1203,
13129,
261,
7229,
8526,
316,
16,
1160,
8526,
563,
16,
509,
316,
2335,
16,
1033,
26864,
13,
288,
430,
261,
56,
9394,
13,
2606,
12,
706,
16,
315,
2629,
13129,
2932,
15,
267,
15,
3... |
String groupSep, String groupSize) { _lang = lang; _groupSep = groupSep; _letterValue = letterValue; | String groupSep, String groupSize) { _lang = lang; _groupSep = groupSep; _letterValue = letterValue; | protected void setFormatting(String format, String lang, String letterValue, String groupSep, String groupSize) { _lang = lang; _groupSep = groupSep; _letterValue = letterValue; try { _groupSize = Integer.parseInt(groupSize); } catch (NumberFormatException e) { _groupSize = 0; } setTokens(format); } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/2d07c253b814672a82d969836d58577bfa628b88/NodeCounter.java/buggy/src/org/apache/xalan/xsltc/dom/NodeCounter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
23974,
12,
780,
740,
16,
514,
3303,
16,
514,
9471,
620,
16,
6862,
514,
1041,
5097,
16,
514,
1041,
1225,
13,
288,
202,
67,
4936,
273,
3303,
31,
202,
67,
1655,
5097,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
23974,
12,
780,
740,
16,
514,
3303,
16,
514,
9471,
620,
16,
6862,
514,
1041,
5097,
16,
514,
1041,
1225,
13,
288,
202,
67,
4936,
273,
3303,
31,
202,
67,
1655,
5097,
273... |
aMenu.appendToGroup(ICommonMenuConstants.GROUP_REORGANIZE, GROUP_IMPORT_SEPARATOR); if (actionContext == null || actionContext.getSelection().isEmpty() || !(actionContext.getSelection() instanceof IStructuredSelection)) { | if (getContext() == null || getContext().getSelection().isEmpty() || !(getContext().getSelection() instanceof IStructuredSelection)) { | public boolean fillContextMenu(IMenuManager aMenu) { aMenu.appendToGroup(ICommonMenuConstants.GROUP_REORGANIZE, GROUP_IMPORT_SEPARATOR); if (actionContext == null || actionContext.getSelection().isEmpty() || !(actionContext.getSelection() instanceof IStructuredSelection)) { addSimplePortingMenus(aMenu); } else { IStructuredSelection structuredSelection = (IStructuredSelection) actionContext.getSelection(); if (structuredSelection.size() > 1) addSimplePortingMenus(aMenu); else /* structuredSelection.size() = 1 */ addFocusedPortingMenus(aMenu, structuredSelection.getFirstElement()); } return true; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6915e85b60af35942d3186f62ce0acdf65c91e7f/PortingActionExtension.java/buggy/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/internal/actions/PortingActionExtension.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3636,
27315,
12,
3445,
2104,
1318,
279,
4599,
13,
288,
202,
202,
69,
4599,
18,
6923,
774,
1114,
12,
45,
6517,
4599,
2918,
18,
8468,
67,
862,
25071,
1258,
15641,
16,
1383... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3636,
27315,
12,
3445,
2104,
1318,
279,
4599,
13,
288,
202,
202,
69,
4599,
18,
6923,
774,
1114,
12,
45,
6517,
4599,
2918,
18,
8468,
67,
862,
25071,
1258,
15641,
16,
1383... |
DefaultLoggerImpl.instance().log(ILogger.ERROR, "ChartReportItemGenerationImpl: onRowSets(...) - exception"); | DefaultLoggerImpl.instance() .log(ILogger.ERROR, "ChartReportItemGenerationImpl: onRowSets(...) - exception"); | public Object onRowSets(IRowSet[] irsa) throws BirtException { // BIND RESULTSET TO CHART DATASETS if (irsa == null || irsa.length != 1 || ibqda == null || ibqda.length != 1) { throw new BirtException("chart.presentation", new UnexpectedInputException("The number of rowsets provided to the chart was incorrect or 'null'", null), null); } DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "ChartReportItemGenerationImpl: onRowSets(...) - start"); try { final QueryHelper qh = QueryHelper.instance(rtc); //final ScriptHandler sh = rtc.getScriptHandler(); //ScriptHandler.callFunction(sh, ScriptHandler.BEFORE_DATA_BINDING, irsa[0]); final ResultSetWrapper rsw = qh.mapToChartResultSet(ibqda[0], irsa[0], cm); //ScriptHandler.callFunction(sh, ScriptHandler.AFTER_DATA_BINDING, rsw); // POPULATE THE CHART MODEL WITH THE RESULTSET qh.generateRuntimeSeries(cm, rsw); } catch (Exception gex ) { DefaultLoggerImpl.instance().log(gex); DefaultLoggerImpl.instance().log(ILogger.ERROR, "ChartReportItemGenerationImpl: onRowSets(...) - exception"); throw new BirtException("process", gex); } try { DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "ChartReportItemPresentationImpl: onRowSets(...) - building chart"); // SETUP A TEMP FILE FOR STREAMING try { fChartImage = File.createTempFile("chart", "." + sExtension); DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "Writing to " + sExtension + " file at " + fChartImage.getPath()); } catch (IOException ioex ) { throw new BirtException("tmp png file creation", ioex); } // FETCH A HANDLE TO THE DEVICE RENDERER IDeviceRenderer idr = null; try { idr = PluginSettings.instance().getDevice("dv." + sExtension.toUpperCase(Locale.US)); } catch (PluginException pex ) { DefaultLoggerImpl.instance().log(pex); throw new BirtException(sExtension.toUpperCase(Locale.US) + " device retrieval", pex); } // BUILD THE CHART final Bounds bo = cm.getBlock().getBounds(); DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "Presentation uses bounds bo=" + bo); final Generator gr = Generator.instance(); GeneratedChartState gcs = null; try { gcs = gr.build(idr.getDisplayServer(), cm, null, bo, rtc); } catch (GenerationException gex ) { DefaultLoggerImpl.instance().log(gex); throw new BirtException("chart build", gex); } // WRITE TO THE IMAGE FILE DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "ChartReportItemPresentationImpl: onRowSets(...) - rendering chart"); idr.setProperty(IDeviceRenderer.FILE_IDENTIFIER, fChartImage.getPath()); try { gr.render(idr, gcs); } catch (RenderingException rex ) { DefaultLoggerImpl.instance().log(rex); throw new BirtException("chart render", rex); } // RETURN A STREAM HANDLE TO THE NEWLY CREATED IMAGE try { fis = new FileInputStream(fChartImage.getPath()); } catch (IOException ioex ) { DefaultLoggerImpl.instance().log(ioex); throw new BirtException("input stream creation", ioex); } } catch (Exception ex) { DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "ChartReportItemPresentationImpl: onRowSets(...) - failed"); DefaultLoggerImpl.instance().log(ex); return null; } DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "ChartReportItemPresentationImpl: onRowSets(...) - end"); return fis; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/82edcc17a5f7fd43b8e0179a398bcd092111db6d/ChartReportItemPresentationImpl.java/clean/chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemPresentationImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
603,
1999,
2785,
12,
45,
1999,
694,
8526,
277,
24654,
13,
1216,
605,
2714,
503,
565,
288,
3639,
368,
605,
2356,
17210,
4043,
8493,
6469,
4928,
8730,
28092,
3639,
309,
261,
105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
603,
1999,
2785,
12,
45,
1999,
694,
8526,
277,
24654,
13,
1216,
605,
2714,
503,
565,
288,
3639,
368,
605,
2356,
17210,
4043,
8493,
6469,
4928,
8730,
28092,
3639,
309,
261,
105... |
MyVariables parent = (MyVariables)jxpathContext.getVariables(); | MyVariables parent =(MyVariables)jxpathContext.getVariables(); | private void execute(final XMLConsumer consumer, MyJexlContext jexlContext, JXPathContext jxpathContext, StartElement macroCall, Event startEvent, Event endEvent) throws SAXException { Event ev = startEvent; LocatorFacade loc = new LocatorFacade(ev.location); consumer.setDocumentLocator(loc); while (ev != endEvent) { loc.setDocumentLocator(ev.location); if (ev instanceof Characters) { TextEvent text = (TextEvent)ev; Iterator iter = text.substitutions.iterator(); while (iter.hasNext()) { Object subst = iter.next(); char[] chars; if (subst instanceof char[]) { chars = (char[])subst; } else { JXTExpression expr = (JXTExpression)subst; try { Object val = getNode(expr, jexlContext, jxpathContext); if (val instanceof Node) { executeDOM(consumer, jexlContext, jxpathContext, (Node)val); continue; } else if (val instanceof NodeList) { NodeList nodeList = (NodeList)val; int len = nodeList.getLength(); for (int i = 0; i < len; i++) { Node n = nodeList.item(i); executeDOM(consumer, jexlContext, jxpathContext, n); } continue; } else if (val instanceof Node[]) { Node[] nodeList = (Node[])val; int len = nodeList.length; for (int i = 0; i < len; i++) { Node n = nodeList[i]; executeDOM(consumer, jexlContext, jxpathContext, n); } continue; } else if (val instanceof XMLizable) { ((XMLizable)val).toSAX(new IncludeXMLConsumer(consumer)); continue; } if (val != null) { chars = val.toString().toCharArray(); } else { chars = ArrayUtils.EMPTY_CHAR_ARRAY; } } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } } consumer.characters(chars, 0, chars.length); } } else if (ev instanceof EndElement) { EndElement endElement = (EndElement)ev; StartElement startElement = endElement.startElement; consumer.endElement(startElement.namespaceURI, startElement.localName, startElement.raw); } else if (ev instanceof EndPrefixMapping) { EndPrefixMapping endPrefixMapping = (EndPrefixMapping)ev; consumer.endPrefixMapping(endPrefixMapping.prefix); } else if (ev instanceof IgnorableWhitespace) { TextEvent text = (TextEvent)ev; characters(jexlContext, jxpathContext, text, new CharHandler() { public void characters(char[] ch, int offset, int len) throws SAXException { consumer.ignorableWhitespace(ch, offset, len); } }); } else if (ev instanceof SkippedEntity) { SkippedEntity skippedEntity = (SkippedEntity)ev; consumer.skippedEntity(skippedEntity.name); } else if (ev instanceof StartIf) { StartIf startIf = (StartIf)ev; Object val; try { val = getValue(startIf.test, jexlContext, jxpathContext, Boolean.TRUE); } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } boolean result = false; if (val instanceof Boolean) { result = ((Boolean)val).booleanValue(); } else { result = (val != null); } if (!result) { ev = startIf.endInstruction.next; continue; } } else if (ev instanceof StartForEach) { StartForEach startForEach = (StartForEach)ev; final Object items = startForEach.items; Iterator iter = null; int begin, end, step; String var, varStatus; try { if (items != null) { JXTExpression expr = (JXTExpression)items; if (expr.compiledExpression instanceof CompiledExpression) { CompiledExpression compiledExpression = (CompiledExpression)expr.compiledExpression; Object val = compiledExpression.getPointer(jxpathContext, expr.raw).getNode(); // FIXME: workaround for JXPath bug if (val instanceof NativeArray) { iter = new JSIntrospector.NativeArrayIterator((NativeArray)val); } else { iter = compiledExpression.iteratePointers(jxpathContext); } } else if (expr.compiledExpression instanceof org.apache.commons.jexl.Expression) { org.apache.commons.jexl.Expression e = (org.apache.commons.jexl.Expression)expr.compiledExpression; Object result = e.evaluate(jexlContext); if (result != null) { iter = Introspector.getUberspect().getIterator( result, new Info(ev.location.getSystemId(), ev.location.getLineNumber(), ev.location.getColumnNumber())); } if (iter == null) { iter = EMPTY_ITER; } } else { // literal value iter = new Iterator() { Object val = items; public boolean hasNext() { return val != null; } public Object next() { Object res = val; val = null; return res; } public void remove() { } }; } } else { iter = NULL_ITER; } begin = startForEach.begin == null ? 0 : getIntValue(startForEach.begin, jexlContext, jxpathContext); end = startForEach.end == null ? Integer.MAX_VALUE : getIntValue(startForEach.end, jexlContext, jxpathContext); step = startForEach.step == null ? 1 : getIntValue(startForEach.step, jexlContext, jxpathContext); var = getStringValue(startForEach.var, jexlContext, jxpathContext); varStatus = getStringValue(startForEach.varStatus, jexlContext, jxpathContext); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } MyJexlContext localJexlContext = new MyJexlContext(jexlContext); MyVariables localJXPathVariables = new MyVariables((MyVariables)jxpathContext.getVariables()); int i = 0; // Move to the begin row while (i < begin && iter.hasNext()) { iter.next(); i++; } LoopTagStatus status = null; if (varStatus != null) { status = new LoopTagStatus(); status.begin = begin; status.end = end; status.step = step; status.first = true; localJexlContext.put(varStatus, status); localJXPathVariables.declareVariable(varStatus, status); } int skipCounter, count = 1; JXPathContext localJXPathContext = null; while (i <= end && iter.hasNext()) { Object value = iter.next(); if (value instanceof Pointer) { Pointer ptr = (Pointer)value; localJXPathContext = jxpathContext.getRelativeContext(ptr); try { value = ptr.getNode(); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, null); } } else { localJXPathContext = jxpathContextFactory.newContext(jxpathContext, value); } localJXPathContext.setVariables(localJXPathVariables); if (var != null) { localJexlContext.put(var, value); } if (status != null) { status.index = i; status.count = count; status.first = i == begin; status.current = value; status.last = (i == end || !iter.hasNext()); } execute(consumer, localJexlContext, localJXPathContext, macroCall, startForEach.next, startForEach.endInstruction); // Skip rows skipCounter = step; while (--skipCounter > 0 && iter.hasNext()) { iter.next(); } // Increase index i += step; count++; } ev = startForEach.endInstruction.next; continue; } else if (ev instanceof StartChoose) { StartChoose startChoose = (StartChoose)ev; StartWhen startWhen = startChoose.firstChoice; while (startWhen != null) { Object val; try { val = getValue(startWhen.test, jexlContext, jxpathContext, Boolean.TRUE); } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } boolean result; if (val instanceof Boolean) { result = ((Boolean)val).booleanValue(); } else { result = (val != null); } if (result) { execute(consumer, jexlContext, jxpathContext, macroCall, startWhen.next, startWhen.endInstruction); break; } startWhen = startWhen.nextChoice; } if (startWhen == null && startChoose.otherwise != null) { execute(consumer, jexlContext, jxpathContext, macroCall, startChoose.otherwise.next, startChoose.otherwise.endInstruction); } ev = startChoose.endInstruction.next; continue; } else if (ev instanceof StartSet) { StartSet startSet = (StartSet)ev; Object value = null; String var = null; try { if (startSet.var != null) { var = getStringValue(startSet.var, jexlContext, jxpathContext); } if (startSet.value != null) { value = getNode(startSet.value, jexlContext, jxpathContext); } } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } if (value == null) { NodeList nodeList = toDOMNodeList("set", startSet, jexlContext, macroCall); // JXPath doesn't handle NodeList, so convert it to an array int len = nodeList.getLength(); Node[] nodeArr = new Node[len]; for (int i = 0; i < len; i++) { nodeArr[i] = nodeList.item(i); } value = nodeArr; } if (var != null) { jxpathContext.getVariables().declareVariable(var, value); jexlContext.put(var, value); } ev = startSet.endInstruction.next; continue; } else if (ev instanceof StartElement) { StartElement startElement = (StartElement)ev; StartDefine def = (StartDefine)definitions.get(startElement.qname); if (def != null) { Map attributeMap = new HashMap(); Iterator i = startElement.attributeEvents.iterator(); while (i.hasNext()) { String attributeName; Object attributeValue; AttributeEvent attrEvent = (AttributeEvent) i.next(); attributeName = attrEvent.localName; if (attrEvent instanceof CopyAttribute) { CopyAttribute copy = (CopyAttribute)attrEvent; attributeValue = copy.value; } else if (attrEvent instanceof SubstituteAttribute) { SubstituteAttribute substEvent = (SubstituteAttribute)attrEvent; if (substEvent.substitutions.size() == 1 && substEvent.substitutions.get(0) instanceof JXTExpression) { JXTExpression expr = (JXTExpression) substEvent.substitutions.get(0); Object val; try { val = getNode(expr, jexlContext, jxpathContext); } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } if (val == null) { val = ""; } attributeValue = val; } else { StringBuffer buf = new StringBuffer(); Iterator iterSubst = substEvent.substitutions.iterator(); while (iterSubst.hasNext()) { Subst subst = (Subst)iterSubst.next(); if (subst instanceof Literal) { Literal lit = (Literal)subst; buf.append(lit.value); } else if (subst instanceof JXTExpression) { JXTExpression expr = (JXTExpression)subst; Object val; try { val = getValue(expr, jexlContext, jxpathContext); } catch (Exception e) { throw new SAXParseException( e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException( err.getMessage(), ev.location, new ErrorHolder(err)); } if (val == null) { val = ""; } buf.append(val.toString()); } } attributeValue = buf.toString(); } } else { throw new Error("this shouldn't have happened"); } attributeMap.put(attributeName, attributeValue); } MyVariables parent = (MyVariables)jxpathContext.getVariables(); MyVariables vars = new MyVariables(parent); MyJexlContext localJexlContext = new MyJexlContext(jexlContext); HashMap macro = new HashMap(); macro.put("body", startElement); macro.put("arguments", attributeMap); localJexlContext.put("macro", macro); vars.declareVariable("macro", macro); Iterator iter = def.parameters.entrySet().iterator(); while (iter.hasNext()) { Map.Entry e = (Map.Entry)iter.next(); String key = (String)e.getKey(); StartParameter startParam = (StartParameter)e.getValue(); Object default_ = startParam.default_; Object val = attributeMap.get(key); if (val == null) { val = default_; } localJexlContext.put(key, val); vars.declareVariable(key, val); } JXPathContext localJXPathContext = jxpathContextFactory.newContext(null, jxpathContext.getContextBean()); localJXPathContext.setVariables(vars); call(ev.location, startElement, consumer, localJexlContext, localJXPathContext, def.body, def.endInstruction); ev = startElement.endElement.next; continue; } Iterator i = startElement.attributeEvents.iterator(); AttributesImpl attrs = new AttributesImpl(); while (i.hasNext()) { AttributeEvent attrEvent = (AttributeEvent) i.next(); if (attrEvent instanceof CopyAttribute) { CopyAttribute copy = (CopyAttribute)attrEvent; attrs.addAttribute(copy.namespaceURI, copy.localName, copy.raw, copy.type, copy.value); } else if (attrEvent instanceof SubstituteAttribute) { StringBuffer buf = new StringBuffer(); SubstituteAttribute substEvent = (SubstituteAttribute)attrEvent; Iterator iterSubst = substEvent.substitutions.iterator(); while (iterSubst.hasNext()) { Subst subst = (Subst)iterSubst.next(); if (subst instanceof Literal) { Literal lit = (Literal)subst; buf.append(lit.value); } else if (subst instanceof JXTExpression) { JXTExpression expr = (JXTExpression)subst; Object val; try { val = getValue(expr, jexlContext, jxpathContext); } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } if (val == null) { val = ""; } buf.append(val.toString()); } } attrs.addAttribute(attrEvent.namespaceURI, attrEvent.localName, attrEvent.raw, attrEvent.type, buf.toString()); } } consumer.startElement(startElement.namespaceURI, startElement.localName, startElement.raw, attrs); } else if (ev instanceof StartFormatNumber) { StartFormatNumber startFormatNumber = (StartFormatNumber)ev; try { String result = startFormatNumber.format(jexlContext, jxpathContext); if (result != null) { char[] chars = result.toCharArray(); consumer.characters(chars, 0, chars.length); } } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } } else if (ev instanceof StartFormatDate) { StartFormatDate startFormatDate = (StartFormatDate)ev; try { String result = startFormatDate.format(jexlContext, jxpathContext); if (result != null) { char[] chars = result.toCharArray(); consumer.characters(chars, 0, chars.length); } } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } } else if (ev instanceof StartPrefixMapping) { StartPrefixMapping startPrefixMapping = (StartPrefixMapping)ev; consumer.startPrefixMapping(startPrefixMapping.prefix, startPrefixMapping.uri); } else if (ev instanceof StartComment) { StartComment startJXComment = (StartComment)ev; // Parse the body of the comment NodeList nodeList = toDOMNodeList("comment", startJXComment, jexlContext, macroCall); // JXPath doesn't handle NodeList, so convert it to an array int len = nodeList.getLength(); final StringBuffer buf = new StringBuffer(); Properties omit = XMLUtils.createPropertiesForXML(true); for (int i = 0; i < len; i++) { try { String str = XMLUtils.serializeNode(nodeList.item(i), omit); buf.append(StringUtils.substringAfter(str, ">")); // cut the XML header } catch (ProcessingException e) { throw new SAXParseException(e.getMessage(), startJXComment.location, e); } } char[] chars = new char[buf.length()]; buf.getChars(0, chars.length, chars, 0); consumer.comment(chars, 0, chars.length); ev = startJXComment.endInstruction.next; continue; } else if (ev instanceof EndCDATA) { consumer.endCDATA(); } else if (ev instanceof EndDTD) { consumer.endDTD(); } else if (ev instanceof EndEntity) { consumer.endEntity(((EndEntity)ev).name); } else if (ev instanceof StartCDATA) { consumer.startCDATA(); } else if (ev instanceof StartDTD) { StartDTD startDTD = (StartDTD)ev; consumer.startDTD(startDTD.name, startDTD.publicId, startDTD.systemId); } else if (ev instanceof StartEntity) { consumer.startEntity(((StartEntity)ev).name); } else if (ev instanceof StartOut) { StartOut startOut = (StartOut)ev; Object val; try { val = getNode(startOut.compiledExpression, jexlContext, jxpathContext, startOut.lenient); if (val instanceof Node) { executeDOM(consumer, jexlContext, jxpathContext, (Node)val); } else if (val instanceof NodeList) { NodeList nodeList = (NodeList)val; int len = nodeList.getLength(); for (int i = 0; i < len; i++) { Node n = nodeList.item(i); executeDOM(consumer, jexlContext, jxpathContext, n); } } else if (val instanceof Node[]) { Node[] nodeList = (Node[])val; int len = nodeList.length; for (int i = 0;i < len; i++) { Node n = nodeList[i]; executeDOM(consumer, jexlContext, jxpathContext, n); } } else if (val instanceof XMLizable) { ((XMLizable)val).toSAX(new IncludeXMLConsumer(consumer)); } else { char[] ch; if (val == null) { ch = ArrayUtils.EMPTY_CHAR_ARRAY; } else { ch = val.toString().toCharArray(); } consumer.characters(ch, 0, ch.length); } } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } } else if (ev instanceof StartTemplate) { } else if (ev instanceof StartEval) { StartEval startEval = (StartEval)ev; JXTExpression expr = startEval.value; try { Object val = getNode(expr, jexlContext, jxpathContext); if (!(val instanceof StartElement)) { throw new Exception("macro invocation required instead of: " + val); } StartElement call = (StartElement)val; execute(consumer, jexlContext, jxpathContext, call, call.next, call.endElement); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } ev = startEval.endInstruction.next; continue; } else if (ev instanceof StartEvalBody) { StartEvalBody startEval = (StartEvalBody)ev; try { execute(consumer, jexlContext, jxpathContext, null, macroCall.next, macroCall.endElement); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } ev = startEval.endInstruction.next; continue; } else if (ev instanceof StartDefine) { StartDefine startDefine = (StartDefine)ev; definitions.put(startDefine.qname, startDefine); ev = startDefine.endInstruction.next; continue; } else if (ev instanceof StartImport) { StartImport startImport = (StartImport)ev; String uri; AttributeEvent e = startImport.uri; if (e instanceof CopyAttribute) { CopyAttribute copy = (CopyAttribute)e; uri = copy.value; } else { StringBuffer buf = new StringBuffer(); SubstituteAttribute substAttr = (SubstituteAttribute)e; Iterator i = substAttr.substitutions.iterator(); while (i.hasNext()) { Subst subst = (Subst)i.next(); if (subst instanceof Literal) { Literal lit = (Literal)subst; buf.append(lit.value); } else if (subst instanceof JXTExpression) { JXTExpression expr = (JXTExpression)subst; Object val; try { val = getValue(expr, jexlContext, jxpathContext); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } if (val == null) { val = ""; } buf.append(val.toString()); } } uri = buf.toString(); } Source input = null; StartDocument doc; try { input = resolver.resolveURI(uri); SourceValidity validity = null; synchronized (cache) { doc = (StartDocument)cache.get(input.getURI()); if (doc != null) { boolean recompile = false; if ( doc.compileTime == null) { recompile = true; } else { int valid = doc.compileTime.isValid(); if ( valid == SourceValidity.UNKNOWN ) { validity = input.getValidity(); valid = doc.compileTime.isValid(validity); } if ( valid != SourceValidity.VALID ) { recompile = true; } } if ( recompile ) { doc = null; // recompile } } } if (doc == null) { Parser parser = new Parser(); // call getValidity before using the stream is faster if the source is a SitemapSource if (validity == null) { validity = input.getValidity(); } SourceUtil.parse(this.manager, input, parser); doc = parser.getStartEvent(); doc.compileTime = validity; synchronized (cache) { cache.put(input.getURI(), doc); } } } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } finally { resolver.release(input); } JXPathContext selectJXPath = jxpathContext; MyJexlContext selectJexl = jexlContext; if (startImport.select != null) { try { Object obj = getValue(startImport.select, jexlContext, jxpathContext); selectJXPath = jxpathContextFactory.newContext(null, obj); selectJXPath.setVariables(variables); selectJexl = new MyJexlContext(jexlContext); fillContext(obj, selectJexl); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } } try { execute(consumer, selectJexl, selectJXPath, macroCall, doc.next, doc.endDocument); } catch (Exception exc) { throw new SAXParseException( "Exception occurred in imported template " + uri + ": "+ exc.getMessage(), ev.location, exc); } ev = startImport.endInstruction.next; continue; } else if (ev instanceof StartDocument) { if (((StartDocument)ev).endDocument != null) { // if this isn't a document fragment consumer.startDocument(); } } else if (ev instanceof EndDocument) { consumer.endDocument(); } else if (ev instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction)ev; consumer.processingInstruction(pi.target, pi.data); } ev = ev.next; } } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/5825dcbb894fc7e13def0d7cbe9add87b9888009/JXTemplateGenerator.java/clean/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1836,
12,
6385,
3167,
5869,
4765,
16,
5411,
8005,
46,
338,
80,
1042,
525,
338,
80,
1042,
16,
804,
14124,
1042,
525,
18644,
1042,
16,
5411,
3603,
1046,
11522,
1477,
16,
2587,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1836,
12,
6385,
3167,
5869,
4765,
16,
5411,
8005,
46,
338,
80,
1042,
525,
338,
80,
1042,
16,
804,
14124,
1042,
525,
18644,
1042,
16,
5411,
3603,
1046,
11522,
1477,
16,
2587,
... |
LDAPModificationSet modSet = null; | LDAPModificationSet modSet = null; | public void revokeCertificate(Admin admin, Certificate cert, int reason) throws PublisherException{ log.debug(">revokeCertificate()"); int ldapVersion = LDAPConnection.LDAP_V3; LDAPConnection lc = null; if(getUseSSL()){ lc = new LDAPConnection(new LDAPJSSESecureSocketFactory()); }else{ lc = new LDAPConnection(); } String dn = null; String certdn = null; try { // Extract the users DN from the cert. certdn = CertTools.getSubjectDN((X509Certificate) cert); dn = constructLDAPDN(certdn); } catch (Exception e) { log.error("Error decoding input certificate: ", e); throw new PublisherException("Error decoding input certificate."); } // Check if the entry is already present, we will update it with the new certificate. LDAPEntry oldEntry = null; try { // connect to the server lc.connect(getHostname(), Integer.parseInt(getPort())); // authenticate to the server lc.bind(ldapVersion, getLoginDN(), getLoginPassword()); // try to read the old object oldEntry = lc.read(dn); // disconnect with the server lc.disconnect(); } catch (LDAPException e) { if (e.getLDAPResultCode() == LDAPException.NO_SUCH_OBJECT) { log.debug("No old entry exist for '" + dn + "'."); } else { log.error("Error binding to and reading from LDAP server: ", e); throw new PublisherException("Error binding to and reading from LDAP server."); } } LDAPModificationSet modSet = null; if (((X509Certificate) cert).getBasicConstraints() == -1) { log.debug("Removing end user certificate from " + getHostname()); if (oldEntry != null) { // TODO: Are we the correct type objectclass? modSet = getModificationSet(oldEntry, certdn, false, true); modSet.add(LDAPModification.DELETE, new LDAPAttribute(getUserCertAttribute())); }else{ log.error("Certificate doesn't exist in database"); throw new PublisherException("Certificate doesn't exist in database"); } } else { log.debug("Not removing CA certificate from " + getHostname() + "Because of object class restrictions."); // Currently removal of CA certificate isn't support because of object class restictions /* if (oldEntry != null) { modSet = getModificationSet(oldEntry, dn, false, false); modSet.add(LDAPModification.DELETE, new LDAPAttribute(getCACertAttribute())); } else { log.error("Certificate doesn't exist in database"); throw new PublisherException("Certificate doesn't exist in database"); }*/ } try { lc.connect(getHostname(), Integer.parseInt(getPort())); // authenticate to the server lc.bind(ldapVersion, getLoginDN(), getLoginPassword()); // Add or modify the entry if (oldEntry != null && modSet != null && getModifyExistingUsers()) { lc.modify(dn, modSet); log.debug("\nRemoved certificate : " + dn + " successfully."); } // disconnect with the server lc.disconnect(); } catch (LDAPException e) { log.error("Error when removing certificate from LDAP (" + dn + "): ", e); throw new PublisherException("Error when removing certificate from LDAP (" + dn + ")"); } log.debug("<revokeCertificate()"); } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/a83cda88849748fb2ed1e07710ffe59b787d2572/LdapPublisher.java/clean/src/java/se/anatom/ejbca/ca/publisher/LdapPublisher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18007,
4719,
12,
4446,
3981,
16,
6660,
3320,
16,
509,
3971,
13,
1216,
21932,
503,
95,
3639,
613,
18,
4148,
2932,
34,
9083,
3056,
4719,
1435,
8863,
3639,
509,
8079,
1444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18007,
4719,
12,
4446,
3981,
16,
6660,
3320,
16,
509,
3971,
13,
1216,
21932,
503,
95,
3639,
613,
18,
4148,
2932,
34,
9083,
3056,
4719,
1435,
8863,
3639,
509,
8079,
1444,
... |
public void mTokens() throws RecognitionException { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: ( T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | MISC | WS | EOL | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT ) int alt16=54; alt16 = dfa16.predict(input); if (failed) return ; switch (alt16) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: T15 { mT15(); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:14: T16 { mT16(); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:18: T17 { mT17(); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:22: T18 { mT18(); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:26: T19 { mT19(); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:30: T20 { mT20(); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:34: T21 { mT21(); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:38: T22 { mT22(); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:42: T23 { mT23(); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:46: T24 { mT24(); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:50: T25 { mT25(); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:54: T26 { mT26(); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:58: T27 { mT27(); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:62: T28 { mT28(); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:66: T29 { mT29(); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:70: T30 { mT30(); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:74: T31 { mT31(); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:78: T32 { mT32(); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:82: T33 { mT33(); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:86: T34 { mT34(); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:90: T35 { mT35(); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:94: T36 { mT36(); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:98: T37 { mT37(); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:102: T38 { mT38(); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:106: T39 { mT39(); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:110: T40 { mT40(); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:114: T41 { mT41(); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:118: T42 { mT42(); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:122: T43 { mT43(); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:126: T44 { mT44(); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:130: T45 { mT45(); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:134: T46 { mT46(); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:138: T47 { mT47(); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:142: T48 { mT48(); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:146: T49 { mT49(); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:150: T50 { mT50(); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:154: T51 { mT51(); if (failed) return ; } break; case 38 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:158: T52 { mT52(); if (failed) return ; } break; case 39 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:162: T53 { mT53(); if (failed) return ; } break; case 40 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:166: T54 { mT54(); if (failed) return ; } break; case 41 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:170: T55 { mT55(); if (failed) return ; } break; case 42 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:174: T56 { mT56(); if (failed) return ; } break; case 43 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:178: T57 { mT57(); if (failed) return ; } break; case 44 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:182: MISC { mMISC(); if (failed) return ; } break; case 45 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:187: WS { mWS(); if (failed) return ; } break; case 46 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:190: EOL { mEOL(); if (failed) return ; } break; case 47 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:194: INT { mINT(); if (failed) return ; } break; case 48 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:198: FLOAT { mFLOAT(); if (failed) return ; } break; case 49 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:204: STRING { mSTRING(); if (failed) return ; } break; case 50 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:211: BOOL { mBOOL(); if (failed) return ; } break; case 51 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:216: ID { mID(); if (failed) return ; } break; case 52 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:219: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 53 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:248: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 54 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:276: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64... | ||
LOG.warn( "Error reading input mapping for variable '" + name + "' (mapping=" | LOG.debug( "Error reading input mapping for variable '" + name + "' (mapping=" | public VariableRow( String name, boolean dynamic ) { LOG.info( "creating variable row for variable '" + name + "' dynamic=" + dynamic ); this.name = name; checkBox.setEnabled( dynamic ); checkBox.setText( name ); for( ComboItem item : choices.keySet() ) { sources.addItem( item ); } if( inputMappings.get( name ) == null ) { sources.setSelectedItem( defaultItem ); } else { String mapping = inputMappings.get( name ).getValue(); try { WorkflowOperation.VariableMapping m = new WorkflowOperation.VariableMapping( mapping ); assert name.equals( m.elementID ) : "name (" + name + ") != elementID (" + m.elementID + ")"; if( task.getID().equals( m.taskID ) ) { sources.setSelectedItem( defaultItem ); } else { originalMapping = m; for( ComboItem choice : choices.keySet() ) { if( choice.id != null && choice.id.equals( originalMapping.taskID ) ) { sources.setSelectedItem( choice ); } } } } catch( IllegalArgumentException e ) { // thrown if the mapping isn't a nexus workflow mapping // TODO we may want to just display the mapping in this case and allow them to // modify it directly, or to "reset" it to a valid nexus workflow mapping LOG.warn( "Error reading input mapping for variable '" + name + "' (mapping=" + mapping + ")", e ); sources.setSelectedItem( defaultItem ); } } resetVariablesCombo(); // namePanel.setLayout( new BoxLayout( namePanel, BoxLayout.X_AXIS ) );// namePanel.add( checkBox );// namePanel.add( Box.createHorizontalStrut( 3 ) );// namePanel.add( label ); editValueButton.setText( "Edit Initial Value" ); resetEditorValue();// DataTransferEditor.this.addIsDirtyListener( editor ); } | 51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/c467478d44e5a57716426739ea2fae899bac18a1/DataTransferEditor.java/clean/yawl/editor/com/nexusbpm/editor/editors/DataTransferEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7110,
1999,
12,
514,
508,
16,
1250,
5976,
262,
288,
5411,
2018,
18,
1376,
12,
315,
23799,
2190,
1027,
364,
2190,
2119,
397,
508,
397,
2491,
5976,
1546,
397,
5976,
11272,
5411,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7110,
1999,
12,
514,
508,
16,
1250,
5976,
262,
288,
5411,
2018,
18,
1376,
12,
315,
23799,
2190,
1027,
364,
2190,
2119,
397,
508,
397,
2491,
5976,
1546,
397,
5976,
11272,
5411,
333,
... |
sb.append("Received messages: ").append(win.toString()); | sb.append("Received messages from " + original_sender + ": ").append(win.toString()); | void handleXmitReq(Address xmit_requester, long first_seqno, long last_seqno, Address original_sender) { Message m, tmp; LinkedList list; long size=0, marker=first_seqno, len; NakReceiverWindow win=null; if(log.isTraceEnabled()) { StringBuffer sb=new StringBuffer(); sb.append(local_addr).append(": received xmit request from ").append(xmit_requester).append(" for "); sb.append(original_sender).append(" [").append(first_seqno).append(" - ").append(last_seqno).append("]"); log.trace(sb.toString()); } if(first_seqno > last_seqno) { if(log.isErrorEnabled()) log.error("first_seqno (" + first_seqno + ") > last_seqno (" + last_seqno + "): not able to retransmit"); return; } if(!local_addr.equals(original_sender)) { // retransmit from received messages table win=(NakReceiverWindow)received_msgs.get(original_sender); } else { // retransmit from sent messages table } list=new LinkedList(); for(long i=first_seqno; i <= last_seqno; i++) { if(win != null) m=win.get(i); else m=(Message)sent_msgs.get(new Long(i)); // no need to synchronize if(m == null) { if(log.isErrorEnabled()) { StringBuffer sb=new StringBuffer(); sb.append("(requester=").append(xmit_requester).append(", local_addr=").append(this.local_addr); sb.append(") message ").append(original_sender).append("::").append(i); sb.append(" not found in ").append((win == null? "sent" : "received")).append(" msgs. "); if(win != null) { sb.append("Received messages: ").append(win.toString()); } else { sb.append("Sent messages: ").append(printSentMsgs()); } log.error(sb.toString()); } continue; } len=m.size(); size+=len; if(size > max_xmit_size && list.size() > 0) { // changed from >= to > (yaron-r, bug #943709) // yaronr: added &&listSize()>0 since protocols between FRAG and NAKACK add headers, and message exceeds size. // size has reached max_xmit_size. go ahead and send message (excluding the current message) if(log.isTraceEnabled()) log.trace("xmitting msgs [" + marker + '-' + (i - 1) + "] to " + xmit_requester); sendXmitRsp(xmit_requester, (LinkedList)list.clone(), marker, i - 1); marker=i; list.clear(); // fixed Dec 15 2003 (bela, patch from Joel Dice (dicej)), see explanantion under // bug report #854887 size=len; } if(Global.copy) { tmp=m.copy(); } else { tmp=m; } tmp.setDest(xmit_requester); tmp.setSrc(local_addr); list.add(tmp); } if(list.size() > 0) { if(log.isTraceEnabled()) log.trace("xmitting msgs [" + marker + '-' + last_seqno + "] to " + xmit_requester); sendXmitRsp(xmit_requester, (LinkedList)list.clone(), marker, last_seqno); list.clear(); } } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/e1e961c2e470a6601a99a1ed05d8b8bc89a5ea4b/NAKACK.java/buggy/src/org/jgroups/protocols/pbcast/NAKACK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
60,
1938,
6113,
12,
1887,
619,
1938,
67,
26192,
16,
1525,
1122,
67,
5436,
2135,
16,
1525,
1142,
67,
5436,
2135,
16,
5267,
2282,
67,
15330,
13,
288,
3639,
2350,
312,
16,
1853,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
60,
1938,
6113,
12,
1887,
619,
1938,
67,
26192,
16,
1525,
1122,
67,
5436,
2135,
16,
1525,
1142,
67,
5436,
2135,
16,
5267,
2282,
67,
15330,
13,
288,
3639,
2350,
312,
16,
1853,... |
choiceObj.annotation, schema); | choiceObj.annotation, schema); | Element serializeChoice(Document doc, XmlSchemaChoice choiceObj, XmlSchema schema) throws XmlSchemaSerializerException { //todo: handle any non schema attri ? Element choice = createNewElement(doc, "choice", schema.schema_ns_prefix, XmlSchema.SCHEMA_NS); if (choiceObj.id != null) if (choiceObj.id.length() > 0) choice.setAttribute("id", choiceObj.id); if (choiceObj.maxOccurs < Long.MAX_VALUE && choiceObj.maxOccurs > 1) choice.setAttribute("maxOccurs", choiceObj.maxOccurs + ""); else if (choiceObj.maxOccurs == Long.MAX_VALUE) choice.setAttribute("maxOccurs", "unbounded"); //else not serialized if (choiceObj.minOccurs > 1) choice.setAttribute("minOccurs", choiceObj.minOccurs + ""); /* if(choiceObj.maxOccursString != null) choice.setAttribute("maxOccurs", choiceObj.maxOccursString); else if(choiceObj.maxOccurs > 1) choice.setAttribute("maxOccurs", choiceObj.maxOccurs +""); */ if (choiceObj.annotation != null) { Element annotation = serializeAnnotation(doc, choiceObj.annotation, schema); choice.appendChild(annotation); } XmlSchemaObjectCollection itemColl = choiceObj.items; if (itemColl != null) { int itemLength = itemColl.getCount(); for (int i = 0; i < itemLength; i++) { XmlSchemaObject obj = itemColl.getItem(i); if (obj instanceof XmlSchemaElement) { Element el = serializeElement(doc, (XmlSchemaElement) obj, schema); choice.appendChild(el); } else if (obj instanceof XmlSchemaGroupRef) { Element group = serializeGroupRef(doc, (XmlSchemaGroupRef) obj, schema); choice.appendChild(group); } else if (obj instanceof XmlSchemaChoice) { Element inlineChoice = serializeChoice(doc, (XmlSchemaChoice) obj, schema); choice.appendChild(inlineChoice); } else if (obj instanceof XmlSchemaSequence) { Element inlineSequence = serializeSequence(doc, (XmlSchemaSequence) obj, schema); choice.appendChild(inlineSequence); } else if (obj instanceof XmlSchemaAny) { Element any = serializeAny(doc, (XmlSchemaAny) obj, schema); choice.appendChild(any); } } } return choice; } | 58536 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58536/583d6c2db5f993d3085942269eca1b2ab8f3bc5f/XmlSchemaSerializer.java/buggy/src/org/apache/ws/commons/schema/XmlSchemaSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3010,
4472,
10538,
12,
2519,
997,
16,
5714,
3078,
10538,
6023,
2675,
16,
18701,
5714,
3078,
1963,
13,
1216,
5714,
3078,
6306,
503,
288,
3639,
368,
9012,
30,
1640,
1281,
1661,
1963,
1604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3010,
4472,
10538,
12,
2519,
997,
16,
5714,
3078,
10538,
6023,
2675,
16,
18701,
5714,
3078,
1963,
13,
1216,
5714,
3078,
6306,
503,
288,
3639,
368,
9012,
30,
1640,
1281,
1661,
1963,
1604,
... |
public void mT30() throws RecognitionException { try { int type = T30; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:22:7: ( 'then' ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:22:7: 'then' { match("then"); } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/138d9a6805db25e18a7f8c70bebca33cce7b95e5/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
5082,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
509,
618,
273,
399,
5082,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
5082,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
509,
618,
273,
399,
5082,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149... | ||
public static MailServiceException NO_SUCH_FOLDER(String path) { return new NoSuchItemException("no such folder path: " + path, NO_SUCH_FOLDER, SENDERS_FAULT, null); | public static MailServiceException NO_SUCH_FOLDER(int id) { return new NoSuchItemException("no such folder id: " + id, NO_SUCH_FOLDER, SENDERS_FAULT, null); | public static MailServiceException NO_SUCH_FOLDER(String path) { return new NoSuchItemException("no such folder path: " + path, NO_SUCH_FOLDER, SENDERS_FAULT, null); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0099503ca028ae285c8e4bf34e868668bb79c684/MailServiceException.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/MailServiceException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
11542,
15133,
3741,
67,
19958,
67,
17357,
12,
780,
589,
13,
288,
3639,
327,
394,
5823,
1180,
503,
2932,
2135,
4123,
3009,
589,
30,
315,
397,
589,
16,
3741,
67,
19958,
67,
173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
11542,
15133,
3741,
67,
19958,
67,
17357,
12,
780,
589,
13,
288,
3639,
327,
394,
5823,
1180,
503,
2932,
2135,
4123,
3009,
589,
30,
315,
397,
589,
16,
3741,
67,
19958,
67,
173... |
if (nodeName != null && nodeName.indexOf(':') > -1) return nodeName.substring(0, nodeName.indexOf(':')); | if (nodeName != null) return nodeName.getPrefix(); | public String getPrefix() { if (nodeName != null && nodeName.indexOf(':') > -1) return nodeName.substring(0, nodeName.indexOf(':')); return ""; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/32e91f543a4cc859a507386b6fc4459018aeb3c6/NodeImpl.java/buggy/src/org/exist/dom/NodeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
16182,
1435,
288,
202,
202,
430,
261,
2159,
461,
480,
446,
597,
7553,
18,
31806,
2668,
2497,
13,
405,
300,
21,
13,
1082,
202,
2463,
7553,
18,
28023,
12,
20,
16,
7553,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
16182,
1435,
288,
202,
202,
430,
261,
2159,
461,
480,
446,
597,
7553,
18,
31806,
2668,
2497,
13,
405,
300,
21,
13,
1082,
202,
2463,
7553,
18,
28023,
12,
20,
16,
7553,
1... |
CollaborationsFactoryImpl collabFactory = (CollaborationsFactoryImpl) nsumlmodel.getCollaborationsFactory(); MCollaboration collab = (MCollaboration) collabFactory.buildCollaboration(model); MClassifierRole cr1 = (MClassifierRole) collabFactory.createClassifierRole(); MClassifierRole cr2 = (MClassifierRole) collabFactory.createClassifierRole(); MAssociationRole role = (MAssociationRole) collabFactory.buildAssociationRole(cr1, cr2); MInteraction inter = (MInteraction) collabFactory.buildInteraction(collab); MMessage mes = (MMessage) collabFactory.buildMessage(inter, role); | CollaborationsFactory collabFactory = Model.getCollaborationsFactory(); Object collab = collabFactory.buildCollaboration(model); Object cr1 = collabFactory.createClassifierRole(); Object cr2 = collabFactory.createClassifierRole(); Object role = collabFactory.buildAssociationRole(cr1, cr2); Object inter = collabFactory.buildInteraction(collab); Object mes = collabFactory.buildMessage(inter, role); | public void testDeleteClassifierRole() { MModel model = (MModel) nsumlmodel.getModelManagementFactory().createModel(); CollaborationsFactoryImpl collabFactory = (CollaborationsFactoryImpl) nsumlmodel.getCollaborationsFactory(); MCollaboration collab = (MCollaboration) collabFactory.buildCollaboration(model); MClassifierRole cr1 = (MClassifierRole) collabFactory.createClassifierRole(); MClassifierRole cr2 = (MClassifierRole) collabFactory.createClassifierRole(); MAssociationRole role = (MAssociationRole) collabFactory.buildAssociationRole(cr1, cr2); MInteraction inter = (MInteraction) collabFactory.buildInteraction(collab); MMessage mes = (MMessage) collabFactory.buildMessage(inter, role); WeakReference cr1wr = new WeakReference(cr1); WeakReference rolewr = new WeakReference(role); WeakReference interwr = new WeakReference(inter); WeakReference meswr = new WeakReference(mes); nsumlmodel.getUmlFactory().delete(cr1); cr1 = null; role = null; inter = null; mes = null; System.gc(); assertNull("ClassifierRole not removed", cr1wr.get()); assertNull("AssociationRole not removed", rolewr.get()); // Interaction should not be removed when removing // classifierrole... maybe if the last message is removed // from the interaction but even then it's doubtfull since it // will probably lead to backward compatibility problems in // save formats. // assertNull("Interaction not removed", interwr.get()); assertNull("Message not removed", meswr.get()); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/eb54e179504c3224b12324085944bd3488191d0b/TestCollaborationsFactory.java/clean/tests/org/argouml/model/uml/TestCollaborationsFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2613,
13860,
2996,
1435,
288,
3639,
490,
1488,
938,
273,
5411,
261,
49,
1488,
13,
290,
1364,
80,
2284,
18,
588,
1488,
10998,
1733,
7675,
2640,
1488,
5621,
3639,
1558,
741... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2613,
13860,
2996,
1435,
288,
3639,
490,
1488,
938,
273,
5411,
261,
49,
1488,
13,
290,
1364,
80,
2284,
18,
588,
1488,
10998,
1733,
7675,
2640,
1488,
5621,
3639,
1558,
741... |
try { if (mPosition >= 0) { mCurrentPartition = mDocument.getPartition(mPosition); mType = mCurrentPartition.getType(); while (mType == SchemePartitionScanner.SCHEME_COMMENT) { mPosition = mCurrentPartition.getOffset() - 1; mCurrentPartition = mDocument.getPartition(mPosition); mType = mCurrentPartition.getType(); } mStart = mCurrentPartition.getOffset(); mPosition = mStart + mCurrentPartition.getLength(); if (!SchemePartitionScanner.isStringPartition(mType)) { fetchTokens(); } } else mCurrentPartition = null; } catch (BadLocationException exception) { mCurrentPartition = null; } | if (mPosition >= 0) { mCurrentPartition = getCurrentPartition(); mType = mCurrentPartition.getType(); while (mType == SchemePartitionScanner.SCHEME_COMMENT) { mPosition = mCurrentPartition.getOffset() - 1; ITypedRegion partition = getCurrentPartition(); if (partition == null) break; mCurrentPartition = partition; mType = mCurrentPartition.getType(); } mStart = mCurrentPartition.getOffset(); mPosition = mStart + mCurrentPartition.getLength(); if (!SchemePartitionScanner.isStringPartition(mType)) { fetchTokens(); } } else mCurrentPartition = null; | private void fetchPreviousPartition() { mPosition--; try { if (mPosition >= 0) { mCurrentPartition = mDocument.getPartition(mPosition); mType = mCurrentPartition.getType(); while (mType == SchemePartitionScanner.SCHEME_COMMENT) { mPosition = mCurrentPartition.getOffset() - 1; mCurrentPartition = mDocument.getPartition(mPosition); mType = mCurrentPartition.getType(); } mStart = mCurrentPartition.getOffset(); mPosition = mStart + mCurrentPartition.getLength(); if (!SchemePartitionScanner.isStringPartition(mType)) { fetchTokens(); } } else mCurrentPartition = null; } catch (BadLocationException exception) { mCurrentPartition = null; } } | 53665 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53665/ce94d6d65ba1a5a47e4e36fd14b5149a7029ac76/BackwardTokenIterator.java/buggy/src/org/schemeway/plugins/schemescript/parser/BackwardTokenIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2158,
8351,
7003,
1435,
288,
3639,
312,
2555,
413,
31,
3639,
775,
288,
5411,
309,
261,
81,
2555,
1545,
374,
13,
288,
7734,
28326,
7003,
273,
312,
2519,
18,
588,
7003,
12,
81,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2158,
8351,
7003,
1435,
288,
3639,
312,
2555,
413,
31,
3639,
775,
288,
5411,
309,
261,
81,
2555,
1545,
374,
13,
288,
7734,
28326,
7003,
273,
312,
2519,
18,
588,
7003,
12,
81,... |
public TA_RetCode AD( int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int inVolume[], MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int nbBar, currentBar, outIdx; double high, low, close, tmp; double ad; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; nbBar = endIdx-startIdx+1; outNbElement.value = nbBar; outBegIdx.value = startIdx; currentBar = startIdx; outIdx = 0; ad = 0.0; while( nbBar != 0 ) { high = inHigh[currentBar]; low = inLow[currentBar]; tmp = high-low; close = inClose[currentBar]; if( tmp > 0.0 ) ad += (((close-low)-(high-close))/tmp)*((double)inVolume[currentBar]); outReal[outIdx++] = ad; currentBar++; nbBar--; } return TA_RetCode. TA_SUCCESS;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
1880,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
267,
4545,
63,
6487,
49,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
1880,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
267,
4545,
63,
6487,
49,... | ||
public StructureStylesheetUserPreferences getStructureStylesheetUserPreferences (IPerson person, int profileId, int stylesheetId) throws Exception { int userId = person.getID(); StructureStylesheetUserPreferences ssup; Connection con = RDBMServices.getConnection(); try { Statement stmt = con.createStatement(); try { // get stylesheet description StructureStylesheetDescription ssd = getStructureStylesheetDescription(stylesheetId); // get user defined defaults String subSelectString = "SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=" + userId + " AND PROFILE_ID=" + profileId; log.debug("RDBMUserLayoutStore::getStructureStylesheetUserPreferences(): " + subSelectString); int layoutId; ResultSet rs = stmt.executeQuery(subSelectString); try { rs.next(); layoutId = rs.getInt(1); if (rs.wasNull()) { layoutId = 0; } } finally { rs.close(); } if (layoutId == 0) { // First time, grab the default layout for this user String sQuery = "SELECT USER_DFLT_USR_ID FROM UP_USER WHERE USER_ID=" + userId; log.debug("RDBMUserLayoutStore::getStructureStylesheetUserPreferences(): " + sQuery); rs = stmt.executeQuery(sQuery); try { rs.next(); userId = rs.getInt(1); } finally { rs.close(); } } String sQuery = "SELECT PARAM_NAME, PARAM_VAL FROM UP_SS_USER_PARM WHERE USER_ID=" + userId + " AND PROFILE_ID=" + profileId + " AND SS_ID=" + stylesheetId + " AND SS_TYPE=1"; log.debug("RDBMUserLayoutStore::getStructureStylesheetUserPreferences(): " + sQuery); rs = stmt.executeQuery(sQuery); try { while (rs.next()) { // stylesheet param ssd.setStylesheetParameterDefaultValue(rs.getString(1), rs.getString(2)); } } finally { rs.close(); } ssup = new StructureStylesheetUserPreferences(); ssup.setStylesheetId(stylesheetId); // fill stylesheet description with defaults for (Enumeration e = ssd.getStylesheetParameterNames(); e.hasMoreElements();) { String pName = (String)e.nextElement(); ssup.putParameterValue(pName, ssd.getStylesheetParameterDefaultValue(pName)); } for (Enumeration e = ssd.getChannelAttributeNames(); e.hasMoreElements();) { String pName = (String)e.nextElement(); ssup.addChannelAttribute(pName, ssd.getChannelAttributeDefaultValue(pName)); } for (Enumeration e = ssd.getFolderAttributeNames(); e.hasMoreElements();) { String pName = (String)e.nextElement(); ssup.addFolderAttribute(pName, ssd.getFolderAttributeDefaultValue(pName)); } // get user preferences sQuery = "SELECT PARAM_NAME, PARAM_VAL, PARAM_TYPE, ULS.NODE_ID, CHAN_ID FROM UP_SS_USER_ATTS UUSA, UP_LAYOUT_STRUCT_AGGR ULS WHERE UUSA.USER_ID=" + userId + " AND PROFILE_ID=" + profileId + " AND SS_ID=" + stylesheetId + " AND SS_TYPE=1 AND UUSA.STRUCT_ID = ULS.NODE_ID AND UUSA.USER_ID = ULS.USER_ID"; log.debug("RDBMUserLayoutStore::getStructureStylesheetUserPreferences(): " + sQuery); rs = stmt.executeQuery(sQuery); try { while (rs.next()) { String temp1=rs.getString(1); // Access columns left to right String temp2=rs.getString(2); int param_type = rs.getInt(3); int structId = rs.getInt(4); if (rs.wasNull()) { structId = 0; } int chanId = rs.getInt(5); if (rs.wasNull()) { chanId = 0; } if (param_type == 1) { // stylesheet param log.error( "AggregatedUserLayoutStore::getStructureStylesheetUserPreferences() : stylesheet global params should be specified in the user defaults table ! UP_SS_USER_ATTS is corrupt. (userId=" + Integer.toString(userId) + ", profileId=" + Integer.toString(profileId) + ", stylesheetId=" + Integer.toString(stylesheetId) + ", param_name=\"" + temp1 + "\", param_type=" + Integer.toString(param_type)); } else if (param_type == 2) { // folder attribute ssup.setFolderAttributeValue(getStructId(structId,chanId), temp1, temp2); } else if (param_type == 3) { // channel attribute ssup.setChannelAttributeValue(getStructId(structId,chanId), temp1, temp2); } else { // unknown param type log.error( "AggregatedUserLayoutStore::getStructureStylesheetUserPreferences() : unknown param type encountered! DB corrupt. (userId=" + Integer.toString(userId) + ", profileId=" + Integer.toString(profileId) + ", stylesheetId=" + Integer.toString(stylesheetId) + ", param_name=\"" + temp1 + "\", param_type=" + Integer.toString(param_type)); } } } finally { rs.close(); } } finally { stmt.close(); } } finally { RDBMServices.releaseConnection(con); } return ssup; } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/d7969d7a991d2db82c6415a2ce1cb6022191815e/AggregatedUserLayoutStore.java/buggy/source/org/jasig/portal/layout/AggregatedUserLayoutStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13348,
24656,
1299,
12377,
18730,
24656,
1299,
12377,
261,
2579,
3565,
6175,
16,
509,
25903,
16,
509,
13820,
548,
13,
1216,
1185,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13348,
24656,
1299,
12377,
18730,
24656,
1299,
12377,
261,
2579,
3565,
6175,
16,
509,
25903,
16,
509,
13820,
548,
13,
1216,
1185,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
... | ||
caretX = newCaretX; | columnX = newCaretX; | void setCaretLocation(int newCaretX, int line) { if (isBidi()) { setBidiCaretLocation(null); } else { Caret caret = getCaret(); caretX = newCaretX; if (caret != null) { caret.setLocation( newCaretX, line * lineHeight - verticalScrollOffset + topMargin); } }} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/bd48e2b84a6482ec594a06a3c3531b924107c392/StyledText.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
11440,
20731,
2735,
12,
474,
394,
39,
20731,
60,
16,
509,
980,
13,
288,
202,
430,
261,
291,
17763,
77,
10756,
288,
202,
202,
542,
17763,
77,
39,
20731,
2735,
12,
2011,
1769,
202,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
11440,
20731,
2735,
12,
474,
394,
39,
20731,
60,
16,
509,
980,
13,
288,
202,
430,
261,
291,
17763,
77,
10756,
288,
202,
202,
542,
17763,
77,
39,
20731,
2735,
12,
2011,
1769,
202,
97,
... |
for(int i = (facetCount * facetCount); --i >= 0; ) | for(int i = (widthFacetCount * depthFacetCount); --i >= 0; ) | private void indexedTriangles(GeometryData data) throws InvalidArraySizeException { generateIndexedCoordinates(data); if((data.geometryComponents & GeometryData.NORMAL_DATA) != 0) generateIndexedNormals(data); if((data.geometryComponents & GeometryData.TEXTURE_2D_DATA) != 0) generateIndexedTexture2D(data); else if((data.geometryComponents & GeometryData.TEXTURE_3D_DATA) != 0) generateIndexedTexture3D(data); // now let's do the index list int index_size = (facetCount * facetCount) * 6; if(data.indexes == null) data.indexes = new int[index_size]; else if(data.indexes.length < index_size) throw new InvalidArraySizeException("Coordinates", data.indexes.length, index_size); int[] indexes = data.indexes; data.indexesCount = index_size; int idx = 0; int vtx = 0; // each face consists of an anti-clockwise triangle for(int i = (facetCount * facetCount); --i >= 0; ) { // triangle 1 indexes[idx++] = vtx; indexes[idx++] = vtx + facetCount + 2; indexes[idx++] = vtx + 1; // triangle 2 indexes[idx++] = vtx + facetCount + 1; indexes[idx++] = vtx + facetCount + 2; indexes[idx++] = vtx; vtx++; if((i % facetCount) == 0) vtx++; } } | 46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/8b547f8eacb158f4811528bcdcd3f1ba7ec3edb2/PatchGenerator.java/clean/src/java/org/j3d/geom/spline/PatchGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
8808,
6251,
12356,
12,
9823,
751,
501,
13,
3639,
1216,
1962,
1076,
1225,
503,
565,
288,
3639,
2103,
15034,
13431,
12,
892,
1769,
3639,
309,
12443,
892,
18,
14330,
7171,
473,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
8808,
6251,
12356,
12,
9823,
751,
501,
13,
3639,
1216,
1962,
1076,
1225,
503,
565,
288,
3639,
2103,
15034,
13431,
12,
892,
1769,
3639,
309,
12443,
892,
18,
14330,
7171,
473,
83... |
public SearchResult search(String queryText, int offset, int limit) throws ServiceException { Query query = null; if (queryText != null && queryText.length() > 0) { try { query = QueryParser.parse(queryText, "id", new StandardAnalyzer()); } catch (ParseException pe) { throw ServiceException.FAILURE("bad query", pe); | public SearchResult search(Query query, int offset, int limit) throws ServiceException { SearchResult result = new SearchResult(); IndexReader indexReader = null; try { if (!mIndexPath.exists()) { return result; } indexReader = IndexReader.open(mIndexPath); summarize(result, indexReader); if (query == null) { list0(result, indexReader, offset, limit); } else { search0(result, indexReader, query, offset, limit); } } catch (Exception e) { throw ServiceException.FAILURE("exception occurred searching mail queue", e); } finally { if (indexReader != null) { try { indexReader.close(); } catch (IOException ioe) { ZimbraLog.rmgmt.warn("exception occured closing index reader from search", ioe); } | public SearchResult search(String queryText, int offset, int limit) throws ServiceException { Query query = null; if (queryText != null && queryText.length() > 0) { try { query = QueryParser.parse(queryText, "id", new StandardAnalyzer()); } catch (ParseException pe) { throw ServiceException.FAILURE("bad query", pe); } } return search(query, offset, limit); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/c54411c225968e8c9e6f1cb1bf54d481eee9cb0e/RemoteMailQueue.java/buggy/ZimbraServer/src/java/com/zimbra/cs/rmgmt/RemoteMailQueue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29740,
1623,
12,
780,
843,
1528,
16,
509,
1384,
16,
509,
1800,
13,
1216,
16489,
288,
3639,
2770,
843,
273,
446,
31,
3639,
309,
261,
2271,
1528,
480,
446,
597,
843,
1528,
18,
2469,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29740,
1623,
12,
780,
843,
1528,
16,
509,
1384,
16,
509,
1800,
13,
1216,
16489,
288,
3639,
2770,
843,
273,
446,
31,
3639,
309,
261,
2271,
1528,
480,
446,
597,
843,
1528,
18,
2469,... |
InitIO (); | OperatorInit (); initParams = new ParameterContainer (""); | public Operator () { InitIO (); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/924ce63d752d04cfc418d7add5f04a16d1e8dcdf/Operator.java/buggy/streams/src/streamit/library/Operator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11097,
1832,
565,
288,
3639,
11097,
2570,
261,
1769,
1208,
1370,
273,
394,
5498,
2170,
261,
3660,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11097,
1832,
565,
288,
3639,
11097,
2570,
261,
1769,
1208,
1370,
273,
394,
5498,
2170,
261,
3660,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void doUnlock(String url, String path, String id, boolean force) throws SVNException { | public void doUnlock(String path, String id, boolean force) throws SVNException { | public void doUnlock(String url, String path, String id, boolean force) throws SVNException { if (id == null) { SVNLock lock = doGetLock(path); if (lock != null) { id = lock.getID(); } if (id == null) { throw new SVNException("repository path '" + path + "' is not locked."); } } Map header = new HashMap(); header.put("Lock-Token", "<" + id + ">"); if (force) { header.put("X-SVN-Options", "lock-break"); } myHttpConnection.request("UNLOCK", path, header, (StringBuffer) null, null, new int[] {204}); } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/28a541543b4a2184525742e00c36858319d85c0c/DAVConnection.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/DAVConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
7087,
12,
780,
589,
16,
514,
612,
16,
1250,
2944,
13,
1216,
29537,
50,
503,
288,
3639,
309,
261,
350,
422,
446,
13,
288,
5411,
29537,
50,
2531,
2176,
273,
23611,
2531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
7087,
12,
780,
589,
16,
514,
612,
16,
1250,
2944,
13,
1216,
29537,
50,
503,
288,
3639,
309,
261,
350,
422,
446,
13,
288,
5411,
29537,
50,
2531,
2176,
273,
23611,
2531,
... |
public boolean work_pending() { | public boolean work_pending() { | public boolean work_pending() { throw new org.omg.CORBA.NO_IMPLEMENT ("The Singleton ORB only permits factory methods"); } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7271c3cbb78470b90b072d36661a5ab67199cc91/ORBSingleton.java/clean/src/org/jacorb/orb/ORBSingleton.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1440,
67,
9561,
1435,
377,
288,
2398,
604,
394,
2358,
18,
362,
75,
18,
9428,
12536,
18,
3417,
67,
9883,
7618,
7566,
1986,
27802,
4869,
38,
1338,
4641,
1282,
3272,
2590,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1440,
67,
9561,
1435,
377,
288,
2398,
604,
394,
2358,
18,
362,
75,
18,
9428,
12536,
18,
3417,
67,
9883,
7618,
7566,
1986,
27802,
4869,
38,
1338,
4641,
1282,
3272,
2590,
8863,
... |
String parentType = ((PathNode) query.getNodes().get(path)).getParentType(); if (parentType != null) { ClassDescriptor cld = MainHelper.getClassDescriptor(parentType, model); for (Iterator i = query.getView().iterator(); i.hasNext();) { String viewPath = (String) i.next(); if (viewPath.startsWith(path) && !viewPath.equals(path)) { String fieldName = viewPath.substring(path.length() + 1); if (fieldName.indexOf(".") != -1) { fieldName = fieldName.substring(0, fieldName.indexOf(".")); } if (cld.getFieldDescriptorByName(fieldName) == null) { i.remove(); } } } } for (Iterator i = query.getNodes().keySet().iterator(); i.hasNext();) { if (((String) i.next()).startsWith(path)) { i.remove(); } } | removeNode(pathQuery, path); | public ActionForward removeNode(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); ServletContext servletContext = session.getServletContext(); ObjectStore os = (ObjectStore) servletContext.getAttribute(Constants.OBJECTSTORE); Model model = (Model) os.getModel(); PathQuery query = (PathQuery) session.getAttribute(Constants.QUERY); String path = request.getParameter("path"); // ensure removal of any view nodes that depend on a type constraint // eg. Department.employees.salary where salary is only defined in a subclass of Employee // note that we first have to find out what type Department thinks the employees field is // and then check if any of the view nodes assume the field is constrained to a subclass String parentType = ((PathNode) query.getNodes().get(path)).getParentType(); if (parentType != null) { ClassDescriptor cld = MainHelper.getClassDescriptor(parentType, model); for (Iterator i = query.getView().iterator(); i.hasNext();) { String viewPath = (String) i.next(); if (viewPath.startsWith(path) && !viewPath.equals(path)) { String fieldName = viewPath.substring(path.length() + 1); if (fieldName.indexOf(".") != -1) { fieldName = fieldName.substring(0, fieldName.indexOf(".")); } if (cld.getFieldDescriptorByName(fieldName) == null) { i.remove(); } } } } // remove any child nodes for (Iterator i = query.getNodes().keySet().iterator(); i.hasNext();) { if (((String) i.next()).startsWith(path)) { i.remove(); } } String prefix; if (path.indexOf(".") == -1) { prefix = path; } else { prefix = path.substring(0, path.lastIndexOf(".")); path = ((Node) query.getNodes().get(prefix)).getType(); } session.setAttribute("prefix", prefix); session.setAttribute("path", path); return mapping.findForward("query"); } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/f9aaf2be88400ed7fe193a9d614332c5a6db16d2/MainChange.java/buggy/intermine/src/java/org/intermine/web/MainChange.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1206,
907,
12,
1803,
3233,
2874,
16,
4766,
565,
4382,
1204,
646,
16,
4766,
565,
9984,
590,
16,
4766,
565,
12446,
766,
13,
3639,
1216,
1185,
288,
3639,
26166,
1339,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1206,
907,
12,
1803,
3233,
2874,
16,
4766,
565,
4382,
1204,
646,
16,
4766,
565,
9984,
590,
16,
4766,
565,
12446,
766,
13,
3639,
1216,
1185,
288,
3639,
26166,
1339,
273,
... |
public AttributeDescr no_loop() throws RecognitionException { AttributeDescr d; Token loc=null; Token t=null; d = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:448:17: ( (loc= 'no-loop' opt_eol ( ';' )? opt_eol ) | (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol ) ) int alt33=2; int LA33_0 = input.LA(1); if ( LA33_0==34 ) { int LA33_1 = input.LA(2); if ( LA33_1==BOOL ) { alt33=2; } else if ( LA33_1==EOL||LA33_1==15||LA33_1==22||LA33_1==27||LA33_1==29||LA33_1==31||(LA33_1>=33 && LA33_1<=38) ) { alt33=1; } else { NoViableAltException nvae = new NoViableAltException("443:1: no_loop returns [AttributeDescr d] : ( (loc= \'no-loop\' opt_eol ( \';\' )? opt_eol ) | (loc= \'no-loop\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 33, 1, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("443:1: no_loop returns [AttributeDescr d] : ( (loc= \'no-loop\' opt_eol ( \';\' )? opt_eol ) | (loc= \'no-loop\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 33, 0, input); throw nvae; } switch (alt33) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:448:17: (loc= 'no-loop' opt_eol ( ';' )? opt_eol ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:448:17: (loc= 'no-loop' opt_eol ( ';' )? opt_eol ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:449:25: loc= 'no-loop' opt_eol ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,34,FOLLOW_34_in_no_loop946); following.push(FOLLOW_opt_eol_in_no_loop948); opt_eol(); following.pop(); // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:449:47: ( ';' )? int alt31=2; int LA31_0 = input.LA(1); if ( LA31_0==15 ) { alt31=1; } else if ( LA31_0==EOL||LA31_0==22||LA31_0==27||LA31_0==29||LA31_0==31||(LA31_0>=33 && LA31_0<=38) ) { alt31=2; } else { NoViableAltException nvae = new NoViableAltException("449:47: ( \';\' )?", 31, 0, input); throw nvae; } switch (alt31) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:449:47: ';' { match(input,15,FOLLOW_15_in_no_loop950); } break; } following.push(FOLLOW_opt_eol_in_no_loop953); opt_eol(); following.pop(); d = new AttributeDescr( "no-loop", "true" ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:456:17: (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:456:17: (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:457:25: loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,34,FOLLOW_34_in_no_loop978); t=(Token)input.LT(1); match(input,BOOL,FOLLOW_BOOL_in_no_loop982); following.push(FOLLOW_opt_eol_in_no_loop984); opt_eol(); following.pop(); // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:457:54: ( ';' )? int alt32=2; int LA32_0 = input.LA(1); if ( LA32_0==15 ) { alt32=1; } else if ( LA32_0==EOL||LA32_0==22||LA32_0==27||LA32_0==29||LA32_0==31||(LA32_0>=33 && LA32_0<=38) ) { alt32=2; } else { NoViableAltException nvae = new NoViableAltException("457:54: ( \';\' )?", 32, 0, input); throw nvae; } switch (alt32) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:457:54: ';' { match(input,15,FOLLOW_15_in_no_loop986); } break; } following.push(FOLLOW_opt_eol_in_no_loop989); opt_eol(); following.pop(); d = new AttributeDescr( "no-loop", t.getText() ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f206af510f937d389fa71f33abed691ac65aa4e3/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1158,
67,
6498,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
268,
33,
2011,
31,
540,
202,
202,
72,
273,
446,
31,
540... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1158,
67,
6498,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
268,
33,
2011,
31,
540,
202,
202,
72,
273,
446,
31,
540... | ||
if (securityCheckCode == 0 && (database.securityMechanism == CodePoint.SECMEC_USRIDPWD || database.securityMechanism == CodePoint.SECMEC_USRIDONL) && database.publicKeyIn != null) securityCheckCode = CodePoint.SECCHKCD_SECTKNMISSING_OR_INVALID; if (SanityManager.DEBUG) trace("** ACCSECRD securityCheckCode is: "+securityCheckCode); | if (securityCheckCode == 0 && (database.securityMechanism == CodePoint.SECMEC_USRIDPWD || database.securityMechanism == CodePoint.SECMEC_USRIDONL) && database.publicKeyIn != null) securityCheckCode = CodePoint.SECCHKCD_SECTKNMISSING_OR_INVALID; if (SanityManager.DEBUG) trace("** ACCSECRD securityCheckCode is: "+securityCheckCode); | private int parseACCSEC() throws DRDAProtocolException { int securityCheckCode = 0; int securityMechanism = 0; byte [] publicKeyIn = null; reader.markCollection(); int codePoint = reader.getCodePoint(); while (codePoint != -1) { switch(codePoint) { //optional case CodePoint.SECMGRNM: // this is defined to be 0 length if (reader.getDdmLength() != 0) badObjectLength(CodePoint.SECMGRNM); break; //required case CodePoint.SECMEC: checkLength(CodePoint.SECMEC, 2); securityMechanism = reader.readNetworkShort(); if (SanityManager.DEBUG) trace("Security mechanism = " + securityMechanism); // if Property.DRDA_PROP_SECURITYMECHANISM has been set, then // network server only accepts connections which use that // security mechanism. No other types of connections // are accepted. // Make check to see if this property has been set. // if set, and if the client requested security mechanism // is not the same, then return a security check code // that the server does not support/allow this security // mechanism if ( (server.getSecurityMechanism() != NetworkServerControlImpl.INVALID_OR_NOTSET_SECURITYMECHANISM) && securityMechanism != server.getSecurityMechanism()) securityCheckCode = CodePoint.SECCHKCD_NOTSUPPORTED; else { // for plain text userid,password USRIDPWD, and USRIDONL // no need of decryptionManager if (securityMechanism != CodePoint.SECMEC_USRIDPWD && securityMechanism != CodePoint.SECMEC_USRIDONL) { //this is the only other one we understand if (securityMechanism != CodePoint.SECMEC_EUSRIDPWD) securityCheckCode = CodePoint.SECCHKCD_NOTSUPPORTED; else { try { if (decryptionManager == null) decryptionManager = new DecryptionManager(); myPublicKey = decryptionManager.obtainPublicKey(); } catch (SQLException e) { println2Log(null, session.drdaID, e.getMessage()); // Local security service non-retryable error. securityCheckCode = CodePoint.SECCHKCD_0A; } } } } break; //optional (currently required for Cloudscape - may need to revisit) case CodePoint.RDBNAM: String dbname = parseRDBNAM(); Database d = session.getDatabase(dbname); if (d == null) addDatabase(dbname); else { // reset database for connection re-use d.reset(); database = d; } break; //optional - depending on security Mechanism case CodePoint.SECTKN: publicKeyIn = reader.readBytes(); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } // check for required CodePoint's if (securityMechanism == 0) missingCodePoint(CodePoint.SECMEC); // RESOLVE - when we look further into security we might want to // handle this part of the protocol at the session level without // requiring a database for when authentication is used but there // is no database level security if (database == null) missingCodePoint(CodePoint.RDBNAM); database.securityMechanism = securityMechanism; database.publicKeyIn = publicKeyIn; // need security token if (securityCheckCode == 0 && database.securityMechanism == CodePoint.SECMEC_EUSRIDPWD && database.publicKeyIn == null) securityCheckCode = CodePoint.SECCHKCD_SECTKNMISSING_OR_INVALID; // shouldn't have security token if (securityCheckCode == 0 && (database.securityMechanism == CodePoint.SECMEC_USRIDPWD || database.securityMechanism == CodePoint.SECMEC_USRIDONL) && database.publicKeyIn != null) securityCheckCode = CodePoint.SECCHKCD_SECTKNMISSING_OR_INVALID; if (SanityManager.DEBUG) trace("** ACCSECRD securityCheckCode is: "+securityCheckCode); // If the security check was successful set the session state to // security accesseed. Otherwise go back to attributes exchanged so we // require another ACCSEC if (securityCheckCode == 0) session.setState(session.SECACC); else session.setState(session.ATTEXC); return securityCheckCode; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
31414,
11944,
1435,
1216,
225,
16801,
9793,
5752,
503,
202,
95,
202,
202,
474,
4373,
1564,
1085,
273,
374,
31,
202,
202,
474,
4373,
31546,
273,
374,
31,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
31414,
11944,
1435,
1216,
225,
16801,
9793,
5752,
503,
202,
95,
202,
202,
474,
4373,
1564,
1085,
273,
374,
31,
202,
202,
474,
4373,
31546,
273,
374,
31,
202,
202,
... |
if (args == null || args.length != 0) { | if(args == null || args.length != 0){ | private boolean isIteratorNext(PsiElement element, String iteratorNameName) { if (element == null) { return false; } if (!(element instanceof PsiMethodCallExpression)) { return false; } final PsiMethodCallExpression callExpression = (PsiMethodCallExpression) element; final PsiExpressionList argumentList = callExpression.getArgumentList(); if (argumentList == null) { return false; } final PsiExpression[] args = argumentList.getExpressions(); if (args == null || args.length != 0) { return false; } final PsiReferenceExpression reference = callExpression.getMethodExpression(); if (reference == null) { return false; } final PsiExpression qualifier = reference.getQualifierExpression(); if (qualifier == null) { return false; } if (!iteratorNameName.equals(qualifier.getText())) { return false; } final String referenceName = reference.getReferenceName(); return "next".equals(referenceName); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/ForCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
353,
3198,
2134,
12,
52,
7722,
1046,
930,
16,
514,
2775,
461,
461,
13,
288,
5411,
309,
261,
2956,
422,
446,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
16051,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
353,
3198,
2134,
12,
52,
7722,
1046,
930,
16,
514,
2775,
461,
461,
13,
288,
5411,
309,
261,
2956,
422,
446,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
16051,
12,
2... |
OptTransformer ot = new OptTransformer(compilerEnv, possibleDirectCalls, | OptTransformer ot = new OptTransformer(possibleDirectCalls, | private void transform(ScriptOrFnNode tree) { initOptFunctions_r(tree); int optLevel = compilerEnv.getOptimizationLevel(); Hashtable possibleDirectCalls = null; if (optLevel > 0) { /* * Collect all of the contained functions into a hashtable * so that the call optimizer can access the class name & parameter * count for any call it encounters */ if (tree.getType() == Token.SCRIPT) { int functionCount = tree.getFunctionCount(); for (int i = 0; i != functionCount; ++i) { OptFunctionNode ofn = OptFunctionNode.get(tree, i); if (ofn.fnode.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { String name = ofn.fnode.getFunctionName(); if (name.length() != 0) { if (possibleDirectCalls == null) { possibleDirectCalls = new Hashtable(); } possibleDirectCalls.put(name, ofn); } } } } } if (possibleDirectCalls != null) { directCallTargets = new ObjArray(); } OptTransformer ot = new OptTransformer(compilerEnv, possibleDirectCalls, directCallTargets); ot.transform(tree); if (optLevel > 0) { (new Optimizer()).optimize(tree, optLevel); } } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/792304a2a96cea5a80c02ff6a02a98f830f7393d/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2510,
12,
3651,
1162,
5372,
907,
2151,
13,
565,
288,
3639,
1208,
6179,
7503,
67,
86,
12,
3413,
1769,
3639,
509,
2153,
2355,
273,
5274,
3491,
18,
588,
13930,
1588,
2355,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2510,
12,
3651,
1162,
5372,
907,
2151,
13,
565,
288,
3639,
1208,
6179,
7503,
67,
86,
12,
3413,
1769,
3639,
509,
2153,
2355,
273,
5274,
3491,
18,
588,
13930,
1588,
2355,
5621,
... |
return runCount.intValue(); | return runCount; | public int getRunCountForInspection(String inspectionID) { synchronized(lock){ final Integer runCount = (Integer) totalRunCount.get(inspectionID); if(runCount == null) { return 0; } return runCount.intValue(); } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/2d46d291193579a7564649b4881c7ea8e02eda5b/InspectionGadgetsTelemetry.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/InspectionGadgetsTelemetry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
1997,
1380,
1290,
14985,
12,
780,
2763,
7017,
734,
13,
565,
288,
3639,
3852,
12,
739,
15329,
5411,
727,
2144,
1086,
1380,
273,
261,
4522,
13,
2078,
1997,
1380,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
1997,
1380,
1290,
14985,
12,
780,
2763,
7017,
734,
13,
565,
288,
3639,
3852,
12,
739,
15329,
5411,
727,
2144,
1086,
1380,
273,
261,
4522,
13,
2078,
1997,
1380,
18,
588,
... |
public org.quickfix.field.QuoteSetID getQuoteSetID() throws FieldNotFound { org.quickfix.field.QuoteSetID value = new org.quickfix.field.QuoteSetID(); | public quickfix.field.QuoteSetID getQuoteSetID() throws FieldNotFound { quickfix.field.QuoteSetID value = new quickfix.field.QuoteSetID(); | public org.quickfix.field.QuoteSetID getQuoteSetID() throws FieldNotFound { org.quickfix.field.QuoteSetID value = new org.quickfix.field.QuoteSetID(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuote.java/buggy/src/java/src/quickfix/fix43/MassQuote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10257,
694,
734,
336,
10257,
694,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10257,
694,
734,
460,
273,
394,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10257,
694,
734,
336,
10257,
694,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10257,
694,
734,
460,
273,
394,
23... |
public void openLink(SVGAElement elt) { String show = XLinkSupport.getXLinkShow(elt); String href = XLinkSupport.getXLinkHref(elt); if (show.equals("new")) { fireLinkActivatedEvent(elt, href); if (svgUserAgent != null) { URL oldURI = ((SVGOMDocument)svgDocument).getURLObject(); URL newURI = null; try { newURI = new URL(oldURI, href); } catch (MalformedURLException e) { userAgent.displayError(e); return; } href = newURI.toString(); svgUserAgent.openLink(href, true); } else { JSVGComponent.this.loadSVGDocument(href); } return; } // Avoid reloading if possible. if (svgDocument != null) { URL oldURI = ((SVGOMDocument)svgDocument).getURLObject(); URL newURI = null; try { newURI = new URL(oldURI, href); } catch (MalformedURLException e) { userAgent.displayError(e); return; } String s = newURI.getRef(); if (newURI.sameFile(oldURI)) { if ((fragmentIdentifier == null && s != null) || (s == null && fragmentIdentifier != null) || (s != null && !s.equals(fragmentIdentifier))) { fragmentIdentifier = s; computeRenderingTransform(); } fireLinkActivatedEvent(elt, newURI.toString()); return; } } fireLinkActivatedEvent(elt, href); if (svgUserAgent != null) { svgUserAgent.openLink(href, false); } else { JSVGComponent.this.loadSVGDocument(href); } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/afe65c576faff6e36e162bc2b2e45075f49d0112/JSVGComponent.java/buggy/sources/org/apache/batik/swing/svg/JSVGComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3190,
2098,
12,
26531,
37,
1046,
20224,
15329,
780,
4500,
33,
60,
2098,
6289,
18,
588,
60,
2098,
5706,
12,
20224,
1769,
780,
7547,
33,
60,
2098,
6289,
18,
588,
60,
2098,
15962,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3190,
2098,
12,
26531,
37,
1046,
20224,
15329,
780,
4500,
33,
60,
2098,
6289,
18,
588,
60,
2098,
5706,
12,
20224,
1769,
780,
7547,
33,
60,
2098,
6289,
18,
588,
60,
2098,
15962,
1... | ||
List resources = new ArrayList(); if (part instanceof IEditorPart) { IEditorPart editor = (IEditorPart) part; IFile file = ResourceUtil.getFile(editor.getEditorInput()); if (file != null) { resources.add(file); } } else { if (selection instanceof IStructuredSelection) { for (Iterator iterator = ((IStructuredSelection) selection) .iterator(); iterator.hasNext();) { Object object = iterator.next(); if (object instanceof IAdaptable) { ITaskListResourceAdapter taskListResourceAdapter; Object adapter = ((IAdaptable) object) .getAdapter(ITaskListResourceAdapter.class); if (adapter != null && adapter instanceof ITaskListResourceAdapter) { taskListResourceAdapter = (ITaskListResourceAdapter) adapter; } else { taskListResourceAdapter = DefaultMarkerResourceAdapter .getDefault(); } | List resources = new ArrayList(); if (part instanceof IEditorPart) { IEditorPart editor = (IEditorPart) part; IFile file = ResourceUtil.getFile(editor.getEditorInput()); if (file != null) { resources.add(file); } } else { if (selection instanceof IStructuredSelection) { for (Iterator iterator = ((IStructuredSelection) selection) .iterator(); iterator.hasNext();) { Object object = iterator.next(); if (object instanceof IAdaptable) { ITaskListResourceAdapter taskListResourceAdapter; Object adapter = ((IAdaptable) object) .getAdapter(ITaskListResourceAdapter.class); if (adapter != null && adapter instanceof ITaskListResourceAdapter) { taskListResourceAdapter = (ITaskListResourceAdapter) adapter; } else { taskListResourceAdapter = DefaultMarkerResourceAdapter .getDefault(); } | protected void focusSelectionChanged(IWorkbenchPart part, ISelection selection) { List resources = new ArrayList(); if (part instanceof IEditorPart) { IEditorPart editor = (IEditorPart) part; IFile file = ResourceUtil.getFile(editor.getEditorInput()); if (file != null) { resources.add(file); } } else { if (selection instanceof IStructuredSelection) { for (Iterator iterator = ((IStructuredSelection) selection) .iterator(); iterator.hasNext();) { Object object = iterator.next(); if (object instanceof IAdaptable) { ITaskListResourceAdapter taskListResourceAdapter; Object adapter = ((IAdaptable) object) .getAdapter(ITaskListResourceAdapter.class); if (adapter != null && adapter instanceof ITaskListResourceAdapter) { taskListResourceAdapter = (ITaskListResourceAdapter) adapter; } else { taskListResourceAdapter = DefaultMarkerResourceAdapter .getDefault(); } IResource resource = taskListResourceAdapter .getAffectedResource((IAdaptable) object); if (resource != null) { resources.add(resource); } } } } } IResource[] focus = new IResource[resources.size()]; resources.toArray(focus); updateFocusResource(focus); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
7155,
6233,
5033,
12,
45,
2421,
22144,
1988,
1087,
16,
5411,
467,
6233,
4421,
13,
288,
3639,
987,
2703,
273,
394,
2407,
5621,
3639,
309,
261,
2680,
1276,
467,
6946,
1988,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
7155,
6233,
5033,
12,
45,
2421,
22144,
1988,
1087,
16,
5411,
467,
6233,
4421,
13,
288,
3639,
987,
2703,
273,
394,
2407,
5621,
3639,
309,
261,
2680,
1276,
467,
6946,
1988,
13,
... |
System.out.println("int (*func[15])()"); parser.parse("int (*func[15])()"); | System.out.println("int (*func[15])()"); parser.parse("int (*func[15])()"); | public static void main(String[] args) { GDBTypeParser parser = new GDBTypeParser(); System.out.println("struct link { int i; int j; struct link * next} *"); parser.parse("struct link { int i; int j; struct link * next} *"); System.out.println(parser.getGDBType().verbose()); System.out.println("char **argv"); parser.parse("unsigned long long int **argv"); System.out.println(parser.getGDBType().verbose()); System.out.println("int (*daytab)[13]"); parser.parse("int (*daytab)[13]"); System.out.println(parser.getGDBType().verbose()); System.out.println("int *daytab[13]"); parser.parse("int *daytab[13]"); System.out.println(parser.getGDBType().verbose()); System.out.println("void *comp()"); parser.parse("void *comp()"); System.out.println(parser.getGDBType().verbose()); System.out.println("void (*comp)()"); parser.parse("void (*comp)()"); System.out.println(parser.getGDBType().verbose()); System.out.println("int (*func[15])()"); parser.parse("int (*func[15])()"); System.out.println(parser.getGDBType().verbose()); System.out.println("char (*(*x())[])()"); parser.parse("char (*(*x())[])()"); System.out.println(parser.getGDBType().verbose()); System.out.println("char (*(*x[3])())[5]"); parser.parse("char (*(*x[3])())[5]"); System.out.println(parser.getGDBType().verbose()); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f3a9fae6384fd8bb36474b1661bb6d0b65b38d5f/GDBTypeParser.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
202,
43,
2290,
559,
2678,
2082,
273,
394,
611,
2290,
559,
2678,
5621,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1697,
1692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
202,
43,
2290,
559,
2678,
2082,
273,
394,
611,
2290,
559,
2678,
5621,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1697,
1692,
... |
Expr own_lock = ownLock(body, units); | Expr do_not_own_lock = doNotOwnLock(body, units); | protected void genRunSolutions() { boolean is_around = tm.isAround(); SootMethod method = tm.getBodyMethod(); Body body = method.getActiveBody(); Chain units = body.getUnits(); // generate identity statements; genIdentityStmts(method, body, units); Local this_local = body.getThisLocal(); Local label_base = getLabelBase(body, units, this_local); Stmt init = newPlaceHolder(); Stmt init_end = newPlaceHolder(); Stmt loop = newPlaceHolder(); Stmt end = newPlaceHolder(); Local disjuncts = addLocal(body, "disjuncts", object_array); if (! tm.isPerThread()) { Expr own_lock = ownLock(body, units); insertIf(units, own_lock, init); // fake initialisation of disjunct array makeEmptyArray(units, disjuncts); insertGoto(units, init_end); } insertPlaceHolder(units, init); // real initialisation of disjunct array Local lab_final = getLabel(body, units, label_base, final_state, LABEL); callDisjunctsMethod(body, units, lab_final, disjuncts); assignToLabel(body, units, label_base, final_state, LABEL, NullConstant.v()); if (! tm.isPerThread()) genLockRelease(body, units, lab_final, false); insertPlaceHolder(units, init_end); // initialise loop counter Local offset = newCounter(body, units); // Marker for beginning of loop insertPlaceHolder(units, loop); if (! tm.isAround()) { // loop test Expr at_end = arrayAtEnd(body, units, disjuncts, offset); insertIf(units, at_end, end); } Local result = callRealBodyMethod(body, units, disjuncts, offset); incCounter(units, offset); if (! tm.isAround()) { insertGoto(units, loop); } insertPlaceHolder(units, end); insertReturn(units, result); } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/2b853ee3faf9cced5db678e074860fb28309ab40/CodeGenHelper.java/buggy/aop/abc/src/abc/tm/weaving/weaver/CodeGenHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3157,
1997,
20608,
6170,
1435,
565,
288,
3639,
1250,
353,
67,
12716,
273,
6118,
18,
291,
30022,
5621,
3639,
348,
1632,
1305,
707,
273,
6118,
18,
588,
2250,
1305,
5621,
3639,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3157,
1997,
20608,
6170,
1435,
565,
288,
3639,
1250,
353,
67,
12716,
273,
6118,
18,
291,
30022,
5621,
3639,
348,
1632,
1305,
707,
273,
6118,
18,
588,
2250,
1305,
5621,
3639,
56... |
String result = rs.getString(1); | final String result = rs.getString(1); | public String getUniqueProcedureName() throws SQLException { if (serverType == SYBASE) { // Fix for bug 822544 ??? // Since Sybase does not support temporary stored procedures, construct // permenant stored procedures with a UUID as the name. // Since I do not have access to Sybase I was unable to test this... Statement stmt = connection.createStatement(); if (!stmt.execute("SELECT NEWID()")) { throw new SQLException("Confused. Was expecting a result set."); } ResultSet rs = stmt.getResultSet(); if (!rs.next()) { throw new SQLException("Couldn't get stored proc name [NEWID()]"); } String result = rs.getString(1); stmt.close(); rs.close(); // NEWID() - "86C5075D-6625-411F-B979-9972F68DC5D6" // Prepend "jTDS" and remove the dashes '-' from the UUID. Since stored // procedure names in Sybase can only be 30 characters long, remove the first // 6 (the machine address which should always be the same for the DB) and // prefix the name with "jTDS" so that the procedures can be deleted easily // by a system administrator. return "jTDS" + result.substring(6, 8) + result.substring(9, 13) + result.substring(14, 18) + result.substring(19, 23) + result.substring(24); } else { return "#jdbc#" + UniqueId.getUniqueId(); } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/209992e94df47f36845f9a0bbe112b76e9b5c0b5/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
16076,
17213,
461,
1435,
1216,
6483,
288,
3639,
309,
261,
3567,
559,
422,
7068,
8369,
13,
288,
5411,
368,
12139,
364,
7934,
28024,
2947,
6334,
5317,
35,
5411,
368,
7897,
16455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
16076,
17213,
461,
1435,
1216,
6483,
288,
3639,
309,
261,
3567,
559,
422,
7068,
8369,
13,
288,
5411,
368,
12139,
364,
7934,
28024,
2947,
6334,
5317,
35,
5411,
368,
7897,
16455,
... |
fireTableDataChanged(); | fireTableStructureChanged(); | public void setResultId(int resultId) { logger.debug("Setting resultid to "+resultId); this.resultId = resultId; from = 0; //FIXME try { loadData(); fireTableDataChanged(); //let the table compoment know it should redraw itself } catch (DBLayerException ex) { ex.printStackTrace(); } catch (RemoteException ex) { ex.printStackTrace(); } } | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/945fad335099e96dc1cc69e3ea12d31734402007/OverviewTableModel.java/buggy/trunk/src/net/sf/plantlore/client/OverviewTableModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21582,
548,
12,
474,
563,
548,
13,
288,
3639,
1194,
18,
4148,
2932,
5568,
563,
350,
358,
13773,
2088,
548,
1769,
3639,
333,
18,
2088,
548,
273,
563,
548,
31,
3639,
628,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21582,
548,
12,
474,
563,
548,
13,
288,
3639,
1194,
18,
4148,
2932,
5568,
563,
350,
358,
13773,
2088,
548,
1769,
3639,
333,
18,
2088,
548,
273,
563,
548,
31,
3639,
628,
273,
... |
case 6: this.Fix = Convert.toInt(currToken); break; case 7: this.numSat = Convert.toInt(currToken); break; case 8: try {this.HDOP = Common.parseDouble(currToken); } catch (NumberFormatException e) {} break; case 9: try {this.Alt = Common.parseDouble(currToken); } catch (NumberFormatException e) {} break; | case 6: this.Fix = Convert.toInt(currToken); interpreted = true; break; case 7: this.numSat = Convert.toInt(currToken); interpreted = true; break; case 8: try {this.HDOP = Common.parseDouble(currToken); interpreted = true; } catch (NumberFormatException e) {} break; case 9: try {this.Alt = Common.parseDouble(currToken); interpreted = true; } catch (NumberFormatException e) {} break; | public void examine(String NMEA){ int i, start, end; String latDeg="0", latMin="0", latNS="N"; String lonDeg="0", lonMin="0", lonEW="E"; String currToken; end = 0; //Vm.debug(NMEA); if (writeLog && (logFlag & LOGRAW) > 0){ try { logFile.write(NMEA); writeLog = false; } catch (IOException e) {} } while(true){ start = NMEA.indexOf("$GP", end); if (start == -1) return; end = NMEA.indexOf("*", start); if ((end == -1)||(end+3 >= NMEA.length())) return; //Vm.debug(NMEA.substring(start,end+3)); if ((end - start) < 15 || !checkSumOK(NMEA.substring(start,end+3))){ //Vm.debug("checksum wrong"); continue; } Extractor ex = new Extractor ("," + NMEA.substring(start,end), ",",",",0,true); currToken = ex.findNext(); if (currToken.equals("$GPGGA")){ //Vm.debug("In $GPGGA"); i = 0; while(ex.endOfSearch() != true){ currToken = ex.findNext(); i++; if (currToken.length()==0) continue; // sometimes there are 2 colons directly one after the other like ",," (e.g. loox) switch (i){ case 1: this.Time = currToken; break; case 2: try {latDeg = currToken.substring(0,2); } catch (IndexOutOfBoundsException e) {} try {latMin = currToken.substring(2,currToken.length()); } catch (IndexOutOfBoundsException e) {} break; case 3: latNS = currToken; break; case 4: try {lonDeg = currToken.substring(0,3); } catch (IndexOutOfBoundsException e) {} try {lonMin = currToken.substring(3,currToken.length()); } catch (IndexOutOfBoundsException e) {} break; case 5: lonEW = currToken; break; case 6: this.Fix = Convert.toInt(currToken); break; case 7: this.numSat = Convert.toInt(currToken); break; case 8: try {this.HDOP = Common.parseDouble(currToken); } catch (NumberFormatException e) {} break; case 9: try {this.Alt = Common.parseDouble(currToken); } catch (NumberFormatException e) {} break; } // switch } // while this.set(latNS, latDeg, latMin, "0", lonEW, lonDeg, lonMin, "0", CWPoint.DMM); } // if if (currToken.equals("$GPVTG")){ i = 0; while(ex.endOfSearch() != true){ currToken = ex.findNext(); i++; if (currToken.length()==0) continue; switch (i){ case 1: try { this.Bear =Common.parseDouble(currToken); } catch (NumberFormatException e) {} if (this.Bear > 360) Vm.debug("Error bear VTG"); break; case 7: try { this.Speed = Common.parseDouble(currToken); } catch (NumberFormatException e) {} break; } // switch } // while } // if if (currToken.equals("$GPRMC")){ //Vm.debug("In $GPRMC"); i = 0; String status = "V"; while(ex.endOfSearch() != true){ currToken = ex.findNext(); i++; if (currToken.length()==0) continue; //Vm.debug("zz: " + i); //Vm.debug(currToken); switch (i){ case 1: this.Time = currToken; break; case 2: status = currToken; if (status.equals("A")) this.Fix = 1; else this.Fix = 0; break; case 3: //Vm.debug("Here--->"); try {latDeg = currToken.substring(0,2); } catch (IndexOutOfBoundsException e) {} //Vm.debug(":" + latDeg); try {latMin = currToken.substring(2,currToken.length()); } catch (IndexOutOfBoundsException e) {} //Vm.debug(":" + latMin); break; case 4: latNS = currToken; break; case 5: try {lonDeg = currToken.substring(0,3); } catch (IndexOutOfBoundsException e) {} try {lonMin = currToken.substring(3,currToken.length()); } catch (IndexOutOfBoundsException e) {} break; case 6: lonEW = currToken; break; case 7: if (status.equals("A")){ this.Speed = Common.parseDouble(currToken)*1.854; } break; case 8: if (status.equals("A") && currToken.length()> 0){ this.Bear = Common.parseDouble(currToken); } break; case 9: if (status.equals("A") && currToken.length()> 0){ this.Date = currToken; } break; } // switch } // while if (status.equals("A")){ this.set(latNS, latDeg, latMin, "0", lonEW, lonDeg, lonMin, "0", CWPoint.DMM); } } // if //Vm.debug("End of examine"); } //while } | 57191 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57191/14fba987d6890fd79fcd1f78d05d249ab1912b10/CWGPSPoint.java/buggy/trunk/src/CacheWolf/CWGPSPoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19707,
558,
12,
780,
423,
958,
37,
15329,
202,
202,
474,
277,
16,
787,
16,
679,
31,
202,
202,
780,
2516,
13283,
1546,
20,
3113,
2516,
2930,
1546,
20,
3113,
2516,
3156,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19707,
558,
12,
780,
423,
958,
37,
15329,
202,
202,
474,
277,
16,
787,
16,
679,
31,
202,
202,
780,
2516,
13283,
1546,
20,
3113,
2516,
2930,
1546,
20,
3113,
2516,
3156,
... |
return Integer.parseInt( DesignerConstants.fontSizes[i - 1][1] ); | return Integer .parseInt( DesignerConstants.fontSizes[i - 1][1] ); | private static int getSmallerFontSizeIntValue( DesignElementHandle handle ) { if ( !( handle instanceof ReportItemHandle ) ) { if ( handle instanceof ModuleHandle ) { // return 10. String size = (String) DesignerConstants.fontMap.get( DesignChoiceConstants.FONT_SIZE_MEDIUM ); return Integer.parseInt( size ) - 1; } if ( handle instanceof GroupHandle ) { handle = handle.getContainer( ); } } Object fontSizeValue = getModelFontSize( handle ); if ( fontSizeValue instanceof DimensionValue ) { int gParentFontSize = getFontSizeIntValue( handle.getContainer( ) ); int size = (int) CSSUtil.convertToPoint( fontSizeValue, gParentFontSize ) - 1; if ( size < 1 ) { return 1; } return size; } else if ( fontSizeValue instanceof String ) { String fontSize = (String) fontSizeValue; if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_LARGER ) ) { return getLargerFontSizeIntValue( handle.getContainer( ) ); } else if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_SMALLER ) ) { return getSmallerFontSizeIntValue( handle.getContainer( ) ); } else { for ( int i = DesignerConstants.fontSizes.length - 1; i > 0; i-- ) { if ( fontSize.equals( DesignerConstants.fontSizes[i][0] ) ) { return Integer.parseInt( DesignerConstants.fontSizes[i - 1][1] ); } } return Integer.parseInt( DesignerConstants.fontSizes[0][1] ); } } else { // return 10 -1. String size = (String) DesignerConstants.fontMap.get( DesignChoiceConstants.FONT_SIZE_MEDIUM ); return Integer.parseInt( size ) - 1; } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e2cfefeda592f2030e7f1600e05d1ce18b6d2faf/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
1322,
81,
454,
264,
22688,
1702,
620,
12,
29703,
1046,
3259,
1640,
262,
202,
95,
202,
202,
430,
261,
401,
12,
1640,
1276,
8706,
1180,
3259,
262,
262,
202,
202,
95,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
1322,
81,
454,
264,
22688,
1702,
620,
12,
29703,
1046,
3259,
1640,
262,
202,
95,
202,
202,
430,
261,
401,
12,
1640,
1276,
8706,
1180,
3259,
262,
262,
202,
202,
95,
... |
public boolean isDoubleEscapeSequence() { return false; } | public boolean isDoubleEscapeSequence() { return false; } | public boolean isDoubleEscapeSequence() { return false; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e325016b29b8dde8e3ba0908ae34d55edb22c64f/Gap.java/clean/drjava/src/edu/rice/cs/drjava/Gap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
5265,
8448,
4021,
1435,
202,
202,
95,
1082,
202,
2463,
629,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
5265,
8448,
4021,
1435,
202,
202,
95,
1082,
202,
2463,
629,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
switch (alt60) { | switch (alt61) { | public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token bvc=null; Token con=null; String op = null; String lc = null; String rvc = null; PatternDescr d = null; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:872:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* )? opt_eol ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:872:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* )? opt_eol { following.push(FOLLOW_opt_eol_in_constraint2220); opt_eol(); following.pop(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:873:17: (fb= ID opt_eol ':' opt_eol )? int alt56=2; alt56 = dfa56.predict(input); switch (alt56) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:873:19: fb= ID opt_eol ':' opt_eol { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint2228); following.push(FOLLOW_opt_eol_in_constraint2230); opt_eol(); following.pop(); match(input,33,FOLLOW_33_in_constraint2232); following.push(FOLLOW_opt_eol_in_constraint2234); opt_eol(); following.pop(); } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint2244); if ( fb != null ) { //System.err.println( "fb: " + fb.getText() ); //System.err.println( " f: " + f.getText() ); d = new FieldBindingDescr( f.getText(), fb.getText() ); //System.err.println( "fbd: " + d ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } FieldConstraintDescr fc = new FieldConstraintDescr(f.getText()); fc.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); following.push(FOLLOW_opt_eol_in_constraint2258); opt_eol(); following.pop(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:891:33: (op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* )? int alt60=2; int LA60_0 = input.LA(1); if ( (LA60_0>=57 && LA60_0<=66) ) { alt60=1; } else if ( LA60_0==EOL||LA60_0==15||(LA60_0>=24 && LA60_0<=25) ) { alt60=2; } else { NoViableAltException nvae = new NoViableAltException("891:33: (op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= (\'&\'|\'|\')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* )?", 60, 0, input); throw nvae; } switch (alt60) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:891:41: op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* { following.push(FOLLOW_operator_in_constraint2264); op=operator(); following.pop(); following.push(FOLLOW_opt_eol_in_constraint2266); opt_eol(); following.pop(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:893:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) int alt57=4; switch ( input.LA(1) ) { case ID: int LA57_1 = input.LA(2); if ( LA57_1==18 ) { alt57=2; } else if ( LA57_1==EOL||LA57_1==15||(LA57_1>=24 && LA57_1<=25)||(LA57_1>=46 && LA57_1<=47) ) { alt57=1; } else { NoViableAltException nvae = new NoViableAltException("893:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 57, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case 43: alt57=3; break; case 23: alt57=4; break; default: NoViableAltException nvae = new NoViableAltException("893:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 57, 0, input); throw nvae; } switch (alt57) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:893:49: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint2284); VariableRestrictionDescr vd = new VariableRestrictionDescr(op, bvc.getText()); fc.addRestriction(vd); constraints.add(fc); } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:904:49: lc= enum_constraint { following.push(FOLLOW_enum_constraint_in_constraint2309); lc=enum_constraint(); following.pop(); LiteralRestrictionDescr lrd = new LiteralRestrictionDescr(op, lc, true); fc.addRestriction(lrd); constraints.add(fc); } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:913:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint2341); lc=literal_constraint(); following.pop(); LiteralRestrictionDescr lrd = new LiteralRestrictionDescr(op, lc); fc.addRestriction(lrd); constraints.add(fc); } break; case 4 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:921:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint2361); rvc=retval_constraint(); following.pop(); ReturnValueRestrictionDescr rvd = new ReturnValueRestrictionDescr(op, rvc); fc.addRestriction(rvd); constraints.add(fc); } break; } // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:932:41: (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* loop59: do { int alt59=2; int LA59_0 = input.LA(1); if ( (LA59_0>=46 && LA59_0<=47) ) { alt59=1; } switch (alt59) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:933:49: con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) { con=(Token)input.LT(1); if ( (input.LA(1)>=46 && input.LA(1)<=47) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint2396); throw mse; } if (con.getText().equals("&") ) { fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND)); } else { fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR)); } following.push(FOLLOW_operator_in_constraint2418); op=operator(); following.pop(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:943:49: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) int alt58=4; switch ( input.LA(1) ) { case ID: int LA58_1 = input.LA(2); if ( LA58_1==18 ) { alt58=2; } else if ( LA58_1==EOL||LA58_1==15||(LA58_1>=24 && LA58_1<=25)||(LA58_1>=46 && LA58_1<=47) ) { alt58=1; } else { NoViableAltException nvae = new NoViableAltException("943:49: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 58, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case 43: alt58=3; break; case 23: alt58=4; break; default: NoViableAltException nvae = new NoViableAltException("943:49: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 58, 0, input); throw nvae; } switch (alt58) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:943:57: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint2430); VariableRestrictionDescr vd = new VariableRestrictionDescr(op, bvc.getText()); fc.addRestriction(vd); } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:949:57: lc= enum_constraint { following.push(FOLLOW_enum_constraint_in_constraint2458); lc=enum_constraint(); following.pop(); LiteralRestrictionDescr lrd = new LiteralRestrictionDescr(op, lc, true); fc.addRestriction(lrd); } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:956:57: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint2493); lc=literal_constraint(); following.pop(); LiteralRestrictionDescr lrd = new LiteralRestrictionDescr(op, lc); fc.addRestriction(lrd); } break; case 4 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:962:57: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint2515); rvc=retval_constraint(); following.pop(); ReturnValueRestrictionDescr rvd = new ReturnValueRestrictionDescr(op, rvc); fc.addRestriction(rvd); } break; } } break; default : break loop59; } } while (true); } break; } following.push(FOLLOW_opt_eol_in_constraint2571); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/8c3be0baa8712893e2dea6fbb679cbb7e80de372/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,
3639,
3155,
356,
33,
2011,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,
3639,
3155,
356,
33,
2011,
31,
... |
for ( DesignElementHandle elementHandle = baseElement; elementHandle.getContainer( ) != null; elementHandle = getBindingHolder( elementHandle ).getContainer( ), level++ ) | for ( DesignElementHandle elementHandle = baseElement; elementHandle .getContainer( ) != null; elementHandle = getBindingHolder( elementHandle ).getContainer( ), level++ ) | public static int getBindingLevel( DesignElementHandle holder, DesignElementHandle baseElement ) { int level = 0; for ( DesignElementHandle elementHandle = baseElement; elementHandle.getContainer( ) != null; elementHandle = getBindingHolder( elementHandle ).getContainer( ), level++ ) { DesignElementHandle bindingHolder = getBindingHolder( elementHandle ); if ( bindingHolder == holder ) { return level; } if ( holder instanceof GroupHandle && bindingHolder == holder.getContainer( ) ) { return level; } } return -1; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ca4edaffeaa16cb189cd6d5fe0b1d125ff3cca1a/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
29471,
2355,
12,
29703,
1046,
3259,
10438,
16,
1082,
202,
15478,
1046,
3259,
1026,
1046,
262,
202,
95,
202,
202,
474,
1801,
273,
374,
31,
202,
202,
1884,
261,
29703,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
29471,
2355,
12,
29703,
1046,
3259,
10438,
16,
1082,
202,
15478,
1046,
3259,
1026,
1046,
262,
202,
95,
202,
202,
474,
1801,
273,
374,
31,
202,
202,
1884,
261,
29703,
... |
db.desk.getDesktopManager().deiconifyFrame(w); | debugGui.desk.getDesktopManager().deiconifyFrame(w); | public void run() { JTextArea ta = w.textArea; try { if (line == -1) { w.setPosition(-1); if (db.currentWindow == w) { db.currentWindow = null; } } else { int loc = ta.getLineStartOffset(line-1); if (db.currentWindow != null && db.currentWindow != w) { db.currentWindow.setPosition(-1); } w.setPosition(loc); db.currentWindow = w; } } catch (BadLocationException exc) { // fix me } if (activate) { if (w.isIcon()) { db.desk.getDesktopManager().deiconifyFrame(w); } db.desk.getDesktopManager().activateFrame(w); try { w.show(); w.toFront(); // required for correct frame layering (JDK 1.4.1) w.setSelected(true); } catch (Exception exc) { } } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5655ee268837ed14ebcc1a8cefdd8319a5d667a7/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
804,
1528,
5484,
13561,
273,
341,
18,
955,
5484,
31,
3639,
775,
288,
5411,
309,
261,
1369,
422,
300,
21,
13,
288,
7734,
341,
18,
542,
2555,
19236,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
804,
1528,
5484,
13561,
273,
341,
18,
955,
5484,
31,
3639,
775,
288,
5411,
309,
261,
1369,
422,
300,
21,
13,
288,
7734,
341,
18,
542,
2555,
19236,
21,
... |
TestUtil.createTable(con, "testtimestamp2", | TestUtil.createTable(con, "testtimezone", | protected void setUp() throws Exception { // We must change the default TZ before establishing the connection. saveTZ = TimeZone.getDefault(); TimeZone.setDefault(TimeZone.getTimeZone("GMT+01")); // Arbitary timezone that doesn't match our test timezones con = TestUtil.openDB(); TestUtil.createTable(con, "testtimestamp2", "seq int4, tstz timestamp with time zone, ts timestamp without time zone, t time without time zone, tz time with time zone, d date"); // This is not obvious, but the "gmt-3" timezone is actually 3 hours *ahead* of GMT // so will produce +03 timestamptz output con.createStatement().executeUpdate("set timezone = 'gmt-3'"); min73 = TestUtil.haveMinimumServerVersion(con, "7.3"); min74 = TestUtil.haveMinimumServerVersion(con, "7.4"); //System.err.println("++++++ TESTS START (" + getName() + ") ++++++"); } | 49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/7c370a035da8d0a42c54708b82cfd548a200ffe0/TimezoneTest.java/buggy/org/postgresql/test/jdbc2/TimezoneTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
565,
288,
3639,
368,
1660,
1297,
2549,
326,
805,
399,
62,
1865,
18312,
310,
326,
1459,
18,
3639,
1923,
21647,
273,
16491,
18,
588,
1868,
5621,
3639,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
565,
288,
3639,
368,
1660,
1297,
2549,
326,
805,
399,
62,
1865,
18312,
310,
326,
1459,
18,
3639,
1923,
21647,
273,
16491,
18,
588,
1868,
5621,
3639,
16... |
public static Border createLoweredBevelBorder () | public static Border createLoweredBevelBorder() | public static Border createLoweredBevelBorder () { return new BevelBorder (BevelBorder.LOWERED); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/159638d634951eb718c5e3a0917ef516d5a44797/BorderFactory.java/buggy/core/src/classpath/javax/javax/swing/BorderFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
13525,
752,
4070,
329,
1919,
941,
8107,
1435,
225,
288,
565,
327,
394,
4823,
941,
8107,
261,
1919,
941,
8107,
18,
23085,
2056,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
13525,
752,
4070,
329,
1919,
941,
8107,
1435,
225,
288,
565,
327,
394,
4823,
941,
8107,
261,
1919,
941,
8107,
18,
23085,
2056,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
... |
if (!rom.loadRom()) return; | if (!rom.loadRom()) return; | private void loadRom(File loc) { if (loc == null) { if (!rom.loadRom()) return; } else if (!rom.loadRom(loc)) return; //make sure spt names are read for other resets //SpriteEditor.initSptNames(rom.getPath()); resetModules(); mainWindow.setTitle(MainGUI.getDescription() + " " + MainGUI.getVersion() + " - " + rom.getPath()); addRecentLoad(rom.getPath()); refreshRecentLoads(); doBackup(); } | 3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/418f9a1343a903d5280148d7e94a9e3e7e05db50/MainGUI.java/clean/src/net/starmen/pkhack/MainGUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
54,
362,
12,
812,
1515,
13,
565,
288,
3639,
309,
261,
1829,
422,
446,
13,
3639,
288,
5411,
309,
16051,
520,
18,
945,
54,
362,
10756,
327,
31,
3639,
289,
3639,
469,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
54,
362,
12,
812,
1515,
13,
565,
288,
3639,
309,
261,
1829,
422,
446,
13,
3639,
288,
5411,
309,
16051,
520,
18,
945,
54,
362,
10756,
327,
31,
3639,
289,
3639,
469,
30... |
this.taint = taint; } | this.taint = taint; } | public void setTaint(boolean taint) { this.taint = taint; } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/clean/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
29048,
12,
6494,
22664,
13,
288,
202,
202,
2211,
18,
88,
1598,
273,
22664,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
29048,
12,
6494,
22664,
13,
288,
202,
202,
2211,
18,
88,
1598,
273,
22664,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
this.numMapTasks = jd.getNumMapTasks(); this.numReduceTasks = jd.getNumReduceTasks(); | this.numMapTasks = conf.getNumMapTasks(); this.numReduceTasks = conf.getNumReduceTasks(); | public JobInProgress(String jobFile, JobTracker jobtracker, Configuration conf) throws IOException { String jobid = "job_" + jobtracker.createUniqueId(); String url = "http://" + jobtracker.getJobTrackerMachine() + ":" + jobtracker.getInfoPort() + "/jobdetails.jsp?jobid=" + jobid; this.conf = conf; this.jobtracker = jobtracker; this.profile = new JobProfile(jobid, jobFile, url); this.status = new JobStatus(jobid, 0.0f, 0.0f, JobStatus.PREP); this.startTime = System.currentTimeMillis(); this.localJobFile = new JobConf(conf).getLocalFile(JobTracker.SUBDIR, jobid + ".xml"); this.localJarFile = new JobConf(conf).getLocalFile(JobTracker.SUBDIR, jobid + ".jar"); FileSystem fs = FileSystem.get(conf); fs.copyToLocalFile(new File(jobFile), localJobFile); JobConf jd = new JobConf(localJobFile); String jarFile = jd.getJar(); if (jarFile != null) { fs.copyToLocalFile(new File(jarFile), localJarFile); jd.setJar(localJarFile.getCanonicalPath()); } this.numMapTasks = jd.getNumMapTasks(); this.numReduceTasks = jd.getNumReduceTasks(); // // If a jobFile is in the systemDir, we can delete it (and // its JAR) upon completion // File systemDir = jd.getSystemDir(); if (jobFile.startsWith(systemDir.getPath())) { this.deleteUponCompletion = jobFile; } } | 49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/92bb9906eb1d7dd678549d685d85b5fc4d47590d/JobInProgress.java/clean/src/java/org/apache/hadoop/mapred/JobInProgress.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3956,
13434,
12,
780,
1719,
812,
16,
3956,
8135,
1719,
16543,
16,
4659,
2195,
13,
1216,
1860,
288,
3639,
514,
1719,
350,
273,
315,
4688,
9548,
397,
1719,
16543,
18,
2640,
24174,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3956,
13434,
12,
780,
1719,
812,
16,
3956,
8135,
1719,
16543,
16,
4659,
2195,
13,
1216,
1860,
288,
3639,
514,
1719,
350,
273,
315,
4688,
9548,
397,
1719,
16543,
18,
2640,
24174,
562... |
throw new Error("Not implemented"); | Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknown client host - current thread not instance of 'RMIIncomingThread'"); } | public static String getClientHost() throws ServerNotActiveException { throw new Error("Not implemented");} | 25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/e835c12a0e664d4b68ae8f0b19ddc7c28e3acf17/RemoteServer.java/buggy/libjava/java/rmi/server/RemoteServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
514,
7635,
2594,
1435,
1216,
3224,
1248,
3896,
503,
288,
202,
12849,
394,
1068,
2932,
1248,
8249,
8863,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
514,
7635,
2594,
1435,
1216,
3224,
1248,
3896,
503,
288,
202,
12849,
394,
1068,
2932,
1248,
8249,
8863,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pn.requeueMessageItems(messages, 0, x, false, "NotConnectedException"); pn.requeueMessageItems(messages, i, messages.length-i, false, "NotConnectedException"); | pn.requeueMessageItems(messages, 0, x, false, "WouldBlockException(1a)"); pn.requeueMessageItems(messages, i, messages.length-i, false, "WouldBlockException(1b)"); | public void processOutgoingOrRequeue(MessageItem[] messages, PeerNode pn, boolean neverWaitForPacketNumber, boolean dontRequeue) { Logger.minor(this, "processOutgoingOrRequeue "+messages.length+" messages for "+pn+" ("+neverWaitForPacketNumber+")"); byte[][] messageData = new byte[messages.length][]; int[] alreadyReported = new int[messages.length]; MessageItem[] newMsgs = new MessageItem[messages.length]; int length = 1; int callbacksCount = 0; int x = 0; for(int i=0;i<messageData.length;i++) { MessageItem mi = messages[i]; if(mi.formatted) { try { byte[] buf = mi.getData(this, pn); KeyTracker kt = pn.getCurrentKeyTracker(); if(kt == null) { Logger.minor(this, "kt = null"); pn.requeueMessageItems(messages, i, messages.length-i, false, "kt = null"); return; } int packetNumber = kt.allocateOutgoingPacketNumberNeverBlock(); this.processOutgoingPreformatted(buf, 0, buf.length, pn.getCurrentKeyTracker(), packetNumber, mi.cb, mi.alreadyReportedBytes); if(mi.ctrCallback != null) mi.ctrCallback.sentBytes(buf.length + HEADERS_LENGTH_ONE_MESSAGE); } catch (NotConnectedException e) { Logger.minor(this, "Caught "+e+" while sending messages, requeueing"); // Requeue if(!dontRequeue) { pn.requeueMessageItems(messages, 0, x, false, "NotConnectedException"); pn.requeueMessageItems(messages, i, messages.length-i, false, "NotConnectedException"); } return; } catch (WouldBlockException e) { Logger.minor(this, "Caught "+e+" while sending messages, requeueing", e); // Requeue if(!dontRequeue) { pn.requeueMessageItems(messages, 0, x, false, "NotConnectedException"); pn.requeueMessageItems(messages, i, messages.length-i, false, "NotConnectedException"); } return; } catch (KeyChangedException e) { Logger.minor(this, "Caught "+e+" while sending messages, requeueing"); // Requeue if(!dontRequeue) { pn.requeueMessageItems(messages, 0, x, false, "NotConnectedException"); pn.requeueMessageItems(messages, i, messages.length-i, false, "NotConnectedException"); } return; } catch (Throwable e) { Logger.error(this, "Caught "+e+" while sending messages, requeueing", e); // Requeue if(!dontRequeue) { pn.requeueMessageItems(messages, 0, x, false, "NotConnectedException"); pn.requeueMessageItems(messages, i, messages.length-i, false, "NotConnectedException"); } return; } } else { byte[] data = mi.getData(this, pn); messageData[x] = data; newMsgs[x] = mi; alreadyReported[x] = mi.alreadyReportedBytes; x++; if(mi.cb != null) callbacksCount += mi.cb.length; Logger.minor(this, "Sending: "+mi+" length "+data.length+" cb "+mi.cb); length += (data.length + 2); } } if(x != messageData.length) { byte[][] newMessageData = new byte[x][]; System.arraycopy(messageData, 0, newMessageData, 0, x); messageData = newMessageData; } AsyncMessageCallback callbacks[] = new AsyncMessageCallback[callbacksCount]; x=0; int alreadyReportedBytes = 0; for(int i=0;i<messages.length;i++) { if(messages[i].formatted) continue; if(messages[i].cb != null) { alreadyReportedBytes += messages[i].alreadyReportedBytes; System.arraycopy(messages[i].cb, 0, callbacks, x, messages[i].cb.length); x += messages[i].cb.length; } } if(x != callbacksCount) throw new IllegalStateException(); if((length < node.usm.getMaxPacketSize()) && (messageData.length < 256)) { try { innerProcessOutgoing(messageData, 0, messageData.length, length, pn, neverWaitForPacketNumber, callbacks, alreadyReportedBytes); for(int i=0;i<messageData.length;i++) { MessageItem mi = newMsgs[i]; if(mi.ctrCallback != null) { mi.ctrCallback.sentBytes(messageData[i].length + 1 + (HEADERS_LENGTH_MINIMUM / messageData.length)); // FIXME rounding issues } } } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue if(!dontRequeue) pn.requeueMessageItems(messages, 0, messages.length, false, "NotConnectedException(2)"); return; } catch (WouldBlockException e) { Logger.minor(this, "Caught "+e+" while sending messages, requeueing", e); // Requeue if(!dontRequeue) pn.requeueMessageItems(messages, 0, messages.length, false, "WouldBlockException(2)"); return; } catch (Throwable e) { Logger.error(this, "Caught "+e+" while sending messages, requeueing", e); // Requeue if(!dontRequeue) pn.requeueMessageItems(messages, 0, messages.length, false, "Throwable(2)"); return; } } else { length = 56; int count = 0; int lastIndex = 0; alreadyReportedBytes = 0; for(int i=0;i<=messages.length;i++) { int thisLength; if(i == messages.length) thisLength = 0; else thisLength = (messageData[i].length + 2); int newLength = length + thisLength; if(thisLength > node.usm.getMaxPacketSize()) { Logger.error(this, "Message exceeds packet size: "+messages[i]); // Send the last lot, then send this } count++; if((newLength > node.usm.getMaxPacketSize()) || (count > 255) || (i == messages.length)) { // lastIndex up to the message right before this one // e.g. lastIndex = 0, i = 1, we just send message 0 if(lastIndex != i) { try { innerProcessOutgoing(messageData, lastIndex, i-lastIndex, length, pn, neverWaitForPacketNumber, callbacks, alreadyReportedBytes); for(int j=lastIndex;j<i;j++) { MessageItem mi = newMsgs[j]; if(mi.ctrCallback != null) { mi.ctrCallback.sentBytes(messageData[j].length + 1 + (HEADERS_LENGTH_MINIMUM / (i-lastIndex))); // FIXME rounding issues } } } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing remaining messages"); // Requeue if(!dontRequeue) pn.requeueMessageItems(messages, lastIndex, messages.length - lastIndex, false, "NotConnectedException(3)"); return; } catch (WouldBlockException e) { Logger.minor(this, "Caught "+e+" while sending messages, requeueing remaining messages", e); // Requeue if(!dontRequeue) pn.requeueMessageItems(messages, lastIndex, messages.length - lastIndex, false, "WouldBlockException(3)"); return; } catch (Throwable e) { Logger.error(this, "Caught "+e+" while sending messages, requeueing remaining messages", e); // Requeue if(!dontRequeue) pn.requeueMessageItems(messages, lastIndex, messages.length - lastIndex, false, "Throwable(3)"); return; } } lastIndex = i; if(i != messageData.length) length = 1 + (messageData[i].length + 2); count = 0; } else { length = newLength; alreadyReportedBytes += alreadyReported[i]; } } } } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/504207c0e1330ada452a05a9933786ec8572e2aa/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
24866,
1162,
426,
4000,
12,
1079,
1180,
8526,
2743,
16,
10669,
907,
11059,
16,
1250,
5903,
29321,
6667,
1854,
16,
1250,
14046,
426,
4000,
13,
288,
3639,
4242,
18,
17364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
24866,
1162,
426,
4000,
12,
1079,
1180,
8526,
2743,
16,
10669,
907,
11059,
16,
1250,
5903,
29321,
6667,
1854,
16,
1250,
14046,
426,
4000,
13,
288,
3639,
4242,
18,
17364,
... |
if (last) System.out.println("Current mode is set to last"); | if (last== ButtonRemoteListener.LAST_UPDATE) System.out.println("Current mode is set to last"); | public static void main( String[] args ) throws IOException { String buttonName = "Phantom@gold-cs"; vrpn.ButtonRemote button = null; try { button = new vrpn.ButtonRemote(buttonName); } catch(InstantiationException e) { System.out.println("We couldn't connect to phantom " + buttonName + "."); System.out.println(e.getMessage()); return; } ButtonRemoteListener buttonListener = new ButtonRemoteListener(button); DataInputStream in = new DataInputStream(System.in); while(true) { System.out.println("\nActions:"); System.out.println("\tC -> check mode"); System.out.println("\tL -> set mode to last"); System.out.println("\tA -> set mode to all"); System.out.println("\tD -> display updates"); System.out.println("\tQ -> quit"); String s = in.readLine(); if (s.equalsIgnoreCase("q")) { System.exit(0); } if (s.equalsIgnoreCase("c")) { boolean last = buttonListener.getModeButtonUpdate(); if (last) System.out.println("Current mode is set to last"); else System.out.println("Current mode is set to all"); } if (s.equalsIgnoreCase("l")) { buttonListener.setModeLastButtonUpdate(); System.out.println("Mode set to last"); } if (s.equalsIgnoreCase("a")) { buttonListener.setModeAllButtonUpdates(); System.out.println("Mode set to all"); } if (s.equalsIgnoreCase("d")) { Vector updates = buttonListener.getButtonUpdate(); if (updates == null) { System.out.println("No updates received so far"); } else { for (int i=0; i<updates.size(); i++) { vrpn.ButtonRemote.ButtonUpdate u = (vrpn.ButtonRemote.ButtonUpdate)updates.elementAt(i); System.out.println( "\ttime: " + u.msg_time.getTime( ) + " button: " + u.button + " " + " state: " + u.state ); } } } } } | 37212 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37212/9ae692227693da776d5bd011ec11810e315b9097/ButtonListenerTest.java/buggy/java_vrpn/test/ButtonListenerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
514,
8526,
833,
262,
1216,
1860,
202,
95,
202,
202,
780,
3568,
461,
273,
315,
3731,
16317,
36,
75,
1673,
17,
2143,
14432,
202,
202,
18090,
7449,
18,
3616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
514,
8526,
833,
262,
1216,
1860,
202,
95,
202,
202,
780,
3568,
461,
273,
315,
3731,
16317,
36,
75,
1673,
17,
2143,
14432,
202,
202,
18090,
7449,
18,
3616,
... |
Hashtable tokenHash = new Hashtable(); final int maxFieldLength = 10000; | Hashtable tokenHash = new Hashtable(); final int maxFieldLength = 10000; | private void invertDocument(Document doc) throws IOException { Hashtable tokenHash = new Hashtable(); final int maxFieldLength = 10000; Analyzer analyzer = new StandardAnalyzer(); Enumeration fields = doc.fields(); while (fields.hasMoreElements()) { Field field = (Field) fields.nextElement(); String fieldName = field.name(); if (field.isIndexed()) { if (field.isTokenized()) { // un-tokenized field Reader reader; // find or make Reader if (field.readerValue() != null) reader = field.readerValue(); else if (field.stringValue() != null) reader = new StringReader(field.stringValue()); else throw new IllegalArgumentException ("field must have either String or Reader value"); int position = 0; // Tokenize field and add to postingTable TokenStream stream = analyzer.tokenStream(fieldName, reader); try { for (Token t = stream.next(); t != null; t = stream.next()) { position += (t.getPositionIncrement() - 1); position++; String name = t.termText(); Integer Count = (Integer)tokenHash.get(name); if (Count == null) { // not in there yet tokenHash.put(name, new Integer(1)); //first one } else { int count = Count.intValue(); tokenHash.put(name, new Integer (count+1)); } if (position > maxFieldLength) break; } } finally { stream.close(); } } } } Entry[] sortedHash = getSortedHashtableEntries(tokenHash); for (int ii = 0; ii < sortedHash.length && ii < 10; ii ++) { Entry currentEntry = sortedHash[ii]; message((ii + 1) + ":" + currentEntry.getKey() + " " + currentEntry.getValue()); } } | 50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/2ee994898d3c2735b001051fedb15d78bf072770/LuceneMethods.java/buggy/sandbox/contributions/lucli/src/lucli/LuceneMethods.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
9848,
2519,
12,
2519,
997,
13,
202,
202,
15069,
1860,
288,
202,
202,
5582,
14544,
1147,
2310,
273,
394,
18559,
5621,
202,
202,
6385,
509,
943,
974,
1782,
273,
12619,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
9848,
2519,
12,
2519,
997,
13,
202,
202,
15069,
1860,
288,
202,
202,
5582,
14544,
1147,
2310,
273,
394,
18559,
5621,
202,
202,
6385,
509,
943,
974,
1782,
273,
12619,
31,
... |
public void setReadonlyExpr(String readonlyExpr) { this.readonlyExpr = readonlyExpr; } | public void setReadonlyExpr(String readonlyExpr) { this.readonlyExpr = readonlyExpr; } | public void setReadonlyExpr(String readonlyExpr) { this.readonlyExpr = readonlyExpr; } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELTextareaTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextareaTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
918,
377,
29506,
3700,
4742,
12,
780,
17102,
4742,
13,
565,
288,
333,
18,
16365,
4742,
225,
273,
17102,
4742,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
918,
377,
29506,
3700,
4742,
12,
780,
17102,
4742,
13,
565,
288,
333,
18,
16365,
4742,
225,
273,
17102,
4742,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (idata.kind.equalsIgnoreCase("web") || idata.kind.equalsIgnoreCase("web-kunststoff")) | if (idata.kind.equalsIgnoreCase("web") || idata.kind.equalsIgnoreCase("web-kunststoff")) | public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = packs.size(); handler.startAction ("Unpacking", npacks); udata = UninstallData.getInstance(); // Specific to the web installers if (idata.kind.equalsIgnoreCase("web") || idata.kind.equalsIgnoreCase("web-kunststoff")) { InputStream kin = getClass().getResourceAsStream("/res/WebInstallers.url"); BufferedReader kreader = new BufferedReader(new InputStreamReader(kin)); jarLocation = kreader.readLine(); } // We unpack the selected packs for (int i = 0; i < npacks; i++) { // We get the pack stream int n = idata.allPacks.indexOf(packs.get(i)); ObjectInputStream objIn = new ObjectInputStream(getPackAsStream(n)); // We unpack the files int nfiles = objIn.readInt(); handler.nextStep (((Pack) packs.get(i)).name, i+1, nfiles); for (int j = 0; j < nfiles; j++) { // We read the header PackFile pf = (PackFile) objIn.readObject(); if (OsConstraint.oneMatchesCurrentSystem(pf.osConstraints)) { // We translate & build the path String path = translatePath(pf.targetPath); File pathFile = new File(path); File dest = pathFile.getParentFile(); if (!dest.exists()) { if (! dest.mkdirs()) { handler.emitError("Error creating directories", "Could not create directory\n"+dest.getPath()); handler.stopAction (); return; } } // We add the path to the log, udata.addFile(path); handler.progress (j, path); //if this file exists and should not be overwritten, check //what to do if ((pathFile.exists ()) && (pf.override != PackFile.OVERRIDE_TRUE)) { boolean overwritefile = false; // don't overwrite file if the user said so if (pf.override != PackFile.OVERRIDE_FALSE) { if (pf.override == PackFile.OVERRIDE_TRUE) { overwritefile = true; } else if (pf.override == PackFile.OVERRIDE_UPDATE) { // check mtime of involved files // (this is not 100% perfect, because the already existing file might // still be modified but the new installed is just a bit newer; we would // need the creation time of the existing file or record with which mtime // it was installed...) overwritefile = (pathFile.lastModified() < pf.mtime); } else { int def_choice = -1; if (pf.override == PackFile.OVERRIDE_ASK_FALSE) def_choice = AbstractUIHandler.ANSWER_NO; if (pf.override == PackFile.OVERRIDE_ASK_TRUE) def_choice = AbstractUIHandler.ANSWER_YES; int answer = handler.askQuestion ( idata.langpack.getString ("InstallPanel.overwrite.title") + pathFile.getName (), idata.langpack.getString ("InstallPanel.overwrite.question") + pathFile.getAbsolutePath(), AbstractUIHandler.CHOICES_YES_NO, def_choice); overwritefile = (answer == AbstractUIHandler.ANSWER_YES); } } if (! overwritefile) { if (!pf.isBackReference()) objIn.skip(pf.length); continue; } } // We copy the file out = new FileOutputStream(pathFile); byte[] buffer = new byte[5120]; long bytesCopied = 0; ObjectInputStream pis = objIn; if (pf.isBackReference()) { InputStream is = getPackAsStream(pf.previousPackNumber); pis = new ObjectInputStream(is);//must wrap for blockdata use by objectstream (otherwise strange result) //skip on underlaying stream (for some reason not possible on ObjectStream) is.skip(pf.offsetInPreviousPack - 4); //but the stream header is now already read (== 4 bytes) } while (bytesCopied < pf.length) { int maxBytes = (pf.length - bytesCopied < buffer.length ? (int) (pf.length - bytesCopied) : buffer.length); int bytesInBuffer = pis.read(buffer, 0, maxBytes); if (bytesInBuffer == -1) throw new IOException("Unexpected end of stream"); out.write(buffer, 0, bytesInBuffer); bytesCopied += bytesInBuffer; } // Cleanings out.close(); if (pis != objIn) pis.close(); // Set file modification time if specified if (pf.mtime >= 0) pathFile.setLastModified (pf.mtime); // Empty dirs restoring String _n = pathFile.getName(); if (_n.startsWith("izpack-keepme") && _n.endsWith(".tmp")) pathFile.delete(); } else { if (!pf.isBackReference()) objIn.skip(pf.length); } } // Load information about parsable files int numParsables = objIn.readInt(); for (int k = 0; k < numParsables; k++) { ParsableFile pf = (ParsableFile) objIn.readObject(); pf.path = translatePath(pf.path); parsables.add(pf); } // Load information about executable files int numExecutables = objIn.readInt(); for (int k = 0; k < numExecutables; k++) { ExecutableFile ef = (ExecutableFile) objIn.readObject(); ef.path = translatePath(ef.path); if (null != ef.argList && !ef.argList.isEmpty()) { String arg = null; for (int j = 0; j < ef.argList.size(); j++) { arg = (String) ef.argList.get(j); arg = translatePath(arg); ef.argList.set(j, arg); } } executables.add(ef); if(ef.executionStage == ExecutableFile.UNINSTALL) { udata.addExecutable(ef); } } // Load information about updatechecks int numUpdateChecks = objIn.readInt(); for (int k = 0; k < numUpdateChecks; k++) { UpdateCheck uc = (UpdateCheck) objIn.readObject(); updatechecks.add (uc); } objIn.close(); } // We use the scripts parser ScriptParser parser = new ScriptParser(parsables, vs); parser.parseFiles(); // We use the file executor FileExecutor executor = new FileExecutor(executables); if (executor.executeFiles(ExecutableFile.POSTINSTALL, handler) != 0) handler.emitError ("File execution failed", "The installation was not completed"); // We put the uninstaller (it's not yet complete...) if (idata.info.getWriteUninstaller()) putUninstaller(); // update checks _after_ uninstaller was put, so we don't delete it performUpdateChecks (updatechecks); // The end :-) handler.stopAction(); } catch (Exception err) { // TODO: finer grained error handling with useful error messages handler.stopAction(); handler.emitError ("An error occured", err.toString()); err.printStackTrace (); } finally { instances.remove(instances.indexOf(this)); } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Unpacker.java/clean/src/lib/com/izforge/izpack/installer/Unpacker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
225,
288,
565,
3884,
18,
1289,
12,
2211,
1769,
565,
775,
565,
288,
1377,
368,
1377,
368,
10188,
291,
1012,
1377,
12942,
596,
273,
446,
31,
1377,
2407,
13249,
1538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
225,
288,
565,
3884,
18,
1289,
12,
2211,
1769,
565,
775,
565,
288,
1377,
368,
1377,
368,
10188,
291,
1012,
1377,
12942,
596,
273,
446,
31,
1377,
2407,
13249,
1538,
... |
} else { BinaryIdContentPair newPair = generateIdContentPair(object, bco); contentTable.put(object, newPair); object.write(this); newPair.getContent().finalize(); return newPair.getId(); | public int processBinarySavable(Savable object) throws IOException { if (object == null) { return -1; } BinaryClassObject bco = classes.get(object.getClassTag().getName()); // is this class been looked at before? in tagTable? if (bco == null) { bco = new BinaryClassObject(); bco.alias = generateTag(); bco.nameFields = new HashMap<String, BinaryClassField>(); classes.put(object.getClassTag().getName(), bco); } // is object in contentTable? if (contentTable.get(object) != null) { return (contentTable.get(object).getId()); } else {// no, generate id and build id/content pair from it's conent BinaryIdContentPair newPair = generateIdContentPair(object, bco); contentTable.put(object, newPair); object.write(this); newPair.getContent().finalize(); return newPair.getId(); } } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/202ed4e817057ebf4f96d3e558d4978384c13760/BinaryExporter.java/buggy/src/com/jme/util/export/binary/BinaryExporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1207,
5905,
55,
842,
429,
12,
55,
842,
429,
733,
13,
1216,
1860,
288,
3639,
309,
261,
1612,
422,
446,
13,
288,
5411,
327,
300,
21,
31,
3639,
289,
3639,
7896,
797,
921,
324,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1207,
5905,
55,
842,
429,
12,
55,
842,
429,
733,
13,
1216,
1860,
288,
3639,
309,
261,
1612,
422,
446,
13,
288,
5411,
327,
300,
21,
31,
3639,
289,
3639,
7896,
797,
921,
324,... | |
void createModel() { m = new BeanTableDataModel() { public String getValue(String name) { return InstanceManager.reporterManagerInstance().getBySystemName(name).getCurrentReport().toString(); } public Manager getManager() { return InstanceManager.reporterManagerInstance(); } public NamedBean getBySystemName(String name) { return InstanceManager.reporterManagerInstance().getBySystemName(name);} public void clickOn(NamedBean t) { // don't do anything on click } public String getColumnName(int col) { if (col==VALUECOL) return "Report"; return super.getColumnName(col); } public Class getColumnClass(int col) { if (col==VALUECOL) return String.class; else return super.getColumnClass(col); } public void configureTable(JTable table) { // have to shut off autoResizeMode to get horizontal scroll to work (JavaSwing p 541) table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); // no columns hold buttons, so don't make any configure buttons calls } boolean matchPropertyName(java.beans.PropertyChangeEvent e) { return (e.getPropertyName().indexOf("Report")>=0); } public JButton configureButton() { this.log.error("configureButton should not have been called"); return null; } }; } | 2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/f664c413dd182bb64a488dea62949d934bf0ddec/ReporterTableAction.java/buggy/jmri/jmrit/beantable/ReporterTableAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
225,
15552,
1435,
225,
288,
7734,
312,
225,
273,
225,
394,
225,
7704,
1388,
26349,
1435,
225,
288,
13491,
1071,
225,
514,
225,
2366,
12,
780,
225,
508,
13,
225,
288,
27573,
327,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
225,
15552,
1435,
225,
288,
7734,
312,
225,
273,
225,
394,
225,
7704,
1388,
26349,
1435,
225,
288,
13491,
1071,
225,
514,
225,
2366,
12,
780,
225,
508,
13,
225,
288,
27573,
327,
22... | ||
for (int i = existingChildren.length; i < infos.length; i++) { | for (int i = 0; i < infos.length; i++) { | private void refreshAll() { Object[] infos = getSortedChildren(getRoot()); Control[] existingChildren = control.getChildren(); int reuseLength = Math.min(infos.length, existingChildren.length); // Update with the new elements to prevent flash for (int i = 0; i < reuseLength; i++) { ProgressInfoItem item = (ProgressInfoItem) existingChildren[i]; item.remap((JobTreeElement) infos[i]); item.setColor(i); } // Create new ones if required for (int i = existingChildren.length; i < infos.length; i++) { ProgressInfoItem item = createNewItem((JobTreeElement) infos[i]); item.setColor(i); } // Delete old ones if not for (int i = infos.length; i < existingChildren.length; i++) { existingChildren[i].dispose(); } control.layout(true); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/802b5b9d4fc9736a6decf93526045cccb8b3c0ca/DetailedProgressViewer.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/DetailedProgressViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4460,
1595,
1435,
288,
202,
202,
921,
8526,
10626,
273,
15175,
329,
4212,
12,
588,
2375,
10663,
202,
202,
3367,
8526,
2062,
4212,
273,
3325,
18,
588,
4212,
5621,
202,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4460,
1595,
1435,
288,
202,
202,
921,
8526,
10626,
273,
15175,
329,
4212,
12,
588,
2375,
10663,
202,
202,
3367,
8526,
2062,
4212,
273,
3325,
18,
588,
4212,
5621,
202,
202,... |
Object result = null; StringBuffer errorMessage = null; int c; boolean l_endQuery = false; while (!l_endQuery) { c = stream.ReceiveChar(); | public Object fastpath(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException { // added Oct 7 1998 to give us thread safety synchronized (stream) { // send the function call try { // 70 is 'F' in ASCII. Note: don't use SendChar() here as it adds padding // that confuses the backend. The 0 terminates the command line. stream.SendInteger(70, 1); stream.SendInteger(0, 1); stream.SendInteger(fnid, 4); stream.SendInteger(args.length, 4); for (int i = 0;i < args.length;i++) args[i].send(stream); // This is needed, otherwise data can be lost stream.flush(); } catch (IOException ioe) { throw new PSQLException("postgresql.fp.send", new Integer(fnid), ioe); } // Now handle the result // We should get 'V' on sucess or 'E' on error. Anything else is treated // as an error. //int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); //if (in!='V') { //if (in=='E') //throw new SQLException(stream.ReceiveString(conn.getEncoding())); //throw new SQLException("Fastpath: expected 'V' from backend, got "+((char)in)); //} // Now loop, reading the results Object result = null; // our result StringBuffer errorMessage = null; boolean loop = true; while (loop) { int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); switch (in) { case 'V': break; //------------------------------ // Function returned properly // case 'G': int sz = stream.ReceiveIntegerR(4); //DriverManager.println("G: size="+sz); //debug // Return an Integer if if (resulttype) result = new Integer(stream.ReceiveIntegerR(sz)); else { byte buf[] = new byte[sz]; stream.Receive(buf, 0, sz); result = buf; } break; //------------------------------ // Error message returned case 'E': if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // Notice from backend case 'N': conn.addWarning(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // End of results // // Here we simply return res, which would contain the result // processed earlier. If no result, this already contains null case '0': //DriverManager.println("returning "+result); // return result; break; case 'Z': // cause the loop to exit loop = false; break; default: throw new PSQLException("postgresql.fp.protocol", new Character((char)in)); } } if ( errorMessage != null ) throw new PSQLException("postgresql.fp.error", errorMessage.toString()); return result; } } | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/ef7d7910745cf2812007668138eaaf0a8e1d8d99/Fastpath.java/clean/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
14469,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
14469,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650... | |
if (stmt != null) { stmt.checkClosed(); } | private void checkClosed() throws SQLException { if (stmt != null) { stmt.checkClosed(); } if (isClosed) { throw new SQLException("Invalid state: ResultSet closed."); } } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/e36636808e819c852c554642ef8e720df0405e27/TdsResultSet.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
7395,
1435,
1216,
6483,
288,
3639,
309,
261,
10589,
480,
446,
13,
288,
5411,
3480,
18,
1893,
7395,
5621,
3639,
289,
3639,
309,
261,
291,
7395,
13,
288,
5411,
604,
394,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
7395,
1435,
1216,
6483,
288,
3639,
309,
261,
10589,
480,
446,
13,
288,
5411,
3480,
18,
1893,
7395,
5621,
3639,
289,
3639,
309,
261,
291,
7395,
13,
288,
5411,
604,
394,
6... | |
case M_CLONE: return rbClone(); | public RubyObject callIndexed(int index, RubyObject[] args) { switch (index) { case M_INSPECT: return inspect(); case M_TO_S: return to_s(); case M_FROZEN: return frozen(); case M_EQUAL: return equal(args[0]); case M_EQL: return eql(args[0]); case M_AREF: return aref(args); case M_ASET: return aset(args); case M_FIRST: return first(); case M_LAST: return last(); case M_CONCAT: return concat(args[0]); case M_APPEND: return append(args[0]); case M_PUSH: return push(args); case M_POP: return pop(); case M_SHIFT: return shift(); case M_UNSHIFT: return unshift(args); case M_EACH: return each(); case M_EACH_INDEX: return each_index(); case M_REVERSE_EACH: return reverse_each(); case M_LENGTH: return length(); case M_EMPTY_P: return empty_p(); case M_INDEX: return index(args[0]); case M_RINDEX: return rindex(args[0]); case M_INDICES: return indices(args); case M_REVERSE: return reverse(); case M_REVERSE_BANG: return reverse_bang(); case M_SORT: return sort(); case M_SORT_BANG: return sort_bang(); case M_COLLECT: return collect(); case M_COLLECT_BANG: return collect_bang(); case M_DELETE: return delete(args[0]); case M_DELETE_AT: return delete_at(args[0]); case M_DELETE_IF: return delete_if(); case M_REJECT_BANG: return reject_bang(); case M_REPLACE: return replace(args[0]); case M_CLEAR: return clear(); case M_INCLUDE_P: return include_p(args[0]); case M_CLONE: return rbClone(); } Asserts.assertNotReached(); return null; } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyArray.java/clean/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
15034,
12,
474,
770,
16,
19817,
921,
8526,
833,
13,
288,
3639,
1620,
261,
1615,
13,
288,
3639,
648,
490,
67,
706,
23810,
1268,
30,
5411,
327,
5334,
5621,
3639,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
15034,
12,
474,
770,
16,
19817,
921,
8526,
833,
13,
288,
3639,
1620,
261,
1615,
13,
288,
3639,
648,
490,
67,
706,
23810,
1268,
30,
5411,
327,
5334,
5621,
3639,
64... | |
case TypePackage.STOCK_SERIES__FORMAT_SPECIFIER: return getFormatSpecifier(); | public Object eGet(EStructuralFeature eFeature, boolean resolve) { switch (eDerivedStructuralFeatureID(eFeature)) { case TypePackage.STOCK_SERIES__VISIBLE: return isVisible() ? Boolean.TRUE : Boolean.FALSE; case TypePackage.STOCK_SERIES__LABEL: return getLabel(); case TypePackage.STOCK_SERIES__DATA_DEFINITION: return getDataDefinition(); case TypePackage.STOCK_SERIES__SERIES_IDENTIFIER: return getSeriesIdentifier(); case TypePackage.STOCK_SERIES__DATA_POINT: return getDataPoint(); case TypePackage.STOCK_SERIES__DATA_SET: return getDataSet(); case TypePackage.STOCK_SERIES__FORMAT_SPECIFIER: return getFormatSpecifier(); case TypePackage.STOCK_SERIES__LABEL_POSITION: return getLabelPosition(); case TypePackage.STOCK_SERIES__STACKED: return isStacked() ? Boolean.TRUE : Boolean.FALSE; case TypePackage.STOCK_SERIES__TRIGGERS: return getTriggers(); case TypePackage.STOCK_SERIES__TRANSLUCENT: return isTranslucent() ? Boolean.TRUE : Boolean.FALSE; case TypePackage.STOCK_SERIES__FILL: return getFill(); case TypePackage.STOCK_SERIES__LINE_ATTRIBUTES: return getLineAttributes(); } return eDynamicGet(eFeature, resolve); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/StockSeriesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/StockSeriesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
15952,
12,
41,
14372,
4595,
425,
4595,
16,
1250,
2245,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
1412,
2261,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
15952,
12,
41,
14372,
4595,
425,
4595,
16,
1250,
2245,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
1412,
2261,
18,
... | |
charMap.put("agrave", "\u00E0"); charMap.put("aacute", "\u00E1"); charMap.put("acirc", "\u00E2"); charMap.put("atilde", "\u00E3"); charMap.put("auml", "\u00E4"); charMap.put("aring", "\u00E5"); charMap.put("aelig", "\u00E6"); charMap.put("ccedil", "\u00E7"); charMap.put("egrave", "\u00E8"); charMap.put("eacute", "\u00E9"); charMap.put("ecirc", "\u00EA"); charMap.put("euml", "\u00EB"); charMap.put("igrave", "\u00EC"); charMap.put("iacute", "\u00ED"); charMap.put("icirc", "\u00EE"); charMap.put("iuml", "\u00EF"); | charMap.put("agrave", "\u00E0"); charMap.put("aacute", "\u00E1"); charMap.put("acirc", "\u00E2"); charMap.put("atilde", "\u00E3"); charMap.put("auml", "\u00E4"); charMap.put("aring", "\u00E5"); charMap.put("aelig", "\u00E6"); charMap.put("ccedil", "\u00E7"); charMap.put("egrave", "\u00E8"); charMap.put("eacute", "\u00E9"); charMap.put("ecirc", "\u00EA"); charMap.put("euml", "\u00EB"); charMap.put("igrave", "\u00EC"); charMap.put("iacute", "\u00ED"); charMap.put("icirc", "\u00EE"); charMap.put("iuml", "\u00EF"); | private final void initEntityTable() { for (int index = 11; index < 32; index++) charMap.put("#0" + index, String.valueOf((char) index)); for (int index = 32; index < 128; index++) charMap.put("#" + index, String.valueOf((char) index)); for (int index = 128; index < 256; index++) charMap.put("#" + index, String.valueOf((char) index)); // una buona tabella qui // http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references charMap.put("#09", "\t"); charMap.put("#10", "\n"); charMap.put("#13", "\r"); charMap.put("#60", "<"); charMap.put("#62", ">"); charMap.put("lt", "<"); charMap.put("gt", ">"); charMap.put("amp", "&"); charMap.put("nbsp", " "); charMap.put("quot", "\""); charMap.put("iexcl", "\u00A1"); charMap.put("cent", "\u00A2"); charMap.put("pound", "\u00A3"); charMap.put("curren", "\u00A4"); charMap.put("yen", "\u00A5"); charMap.put("brvbar", "\u00A6"); charMap.put("sect", "\u00A7"); charMap.put("uml", "\u00A8"); charMap.put("copy", "\u00A9"); charMap.put("ordf", "\u00AA"); charMap.put("laquo", "\u00AB"); charMap.put("not", "\u00AC"); charMap.put("shy", "\u00AD"); charMap.put("reg", "\u00AE"); charMap.put("macr", "\u00AF"); charMap.put("deg", "\u00B0"); charMap.put("plusmn", "\u00B1"); charMap.put("sup2", "\u00B2"); charMap.put("sup3", "\u00B3"); charMap.put("acute", "\u00B4"); charMap.put("micro", "\u00B5"); charMap.put("para", "\u00B6"); charMap.put("middot", "\u00B7"); charMap.put("cedil", "\u00B8"); charMap.put("sup1", "\u00B9"); charMap.put("ordm", "\u00BA"); charMap.put("raquo", "\u00BB"); charMap.put("frac14", "\u00BC"); charMap.put("frac12", "\u00BD"); charMap.put("frac34", "\u00BE"); charMap.put("iquest", "\u00BF"); charMap.put("Agrave", "\u00C0"); charMap.put("Aacute", "\u00C1"); charMap.put("Acirc", "\u00C2"); charMap.put("Atilde", "\u00C3"); charMap.put("Auml", "\u00C4"); charMap.put("Aring", "\u00C5"); charMap.put("AElig", "\u00C6"); charMap.put("Ccedil", "\u00C7"); charMap.put("Egrave", "\u00C8"); charMap.put("Eacute", "\u00C9"); charMap.put("Ecirc", "\u00CA"); charMap.put("Euml", "\u00CB"); charMap.put("Igrave", "\u00CC"); charMap.put("Iacute", "\u00CD"); charMap.put("Icirc", "\u00CE"); charMap.put("Iuml", "\u00CF"); charMap.put("ETH", "\u00D0"); charMap.put("Ntilde", "\u00D1"); charMap.put("Ograve", "\u00D2"); charMap.put("Oacute", "\u00D3"); charMap.put("Ocirc", "\u00D4"); charMap.put("Otilde", "\u00D5"); charMap.put("Ouml", "\u00D6"); charMap.put("times", "\u00D7"); charMap.put("Oslash", "\u00D8"); charMap.put("Ugrave", "\u00D9"); charMap.put("Uacute", "\u00DA"); charMap.put("Ucirc", "\u00DB"); charMap.put("Uuml", "\u00DC"); charMap.put("Yacute", "\u00DD"); charMap.put("THORN", "\u00DE"); charMap.put("szlig", "\u00DF"); charMap.put("agrave", "\u00E0"); charMap.put("aacute", "\u00E1"); charMap.put("acirc", "\u00E2"); charMap.put("atilde", "\u00E3"); charMap.put("auml", "\u00E4"); charMap.put("aring", "\u00E5"); charMap.put("aelig", "\u00E6"); charMap.put("ccedil", "\u00E7"); charMap.put("egrave", "\u00E8"); charMap.put("eacute", "\u00E9"); charMap.put("ecirc", "\u00EA"); charMap.put("euml", "\u00EB"); charMap.put("igrave", "\u00EC"); charMap.put("iacute", "\u00ED"); charMap.put("icirc", "\u00EE"); charMap.put("iuml", "\u00EF"); charMap.put("eth", "\u00F0"); charMap.put("ntilde", "\u00F1"); charMap.put("ograve", "\u00F2"); charMap.put("oacute", "\u00F3"); charMap.put("ocirc", "\u00F4"); charMap.put("otilde", "\u00F5"); charMap.put("ouml", "\u00F6"); charMap.put("divid", "\u00F7"); charMap.put("oslash", "\u00F8"); charMap.put("ugrave", "\u00F9"); charMap.put("uacute", "\u00FA"); charMap.put("ucirc", "\u00FB"); charMap.put("uuml", "\u00FC"); charMap.put("yacute", "\u00FD"); charMap.put("thorn", "\u00FE"); charMap.put("yuml", "\u00FF"); charMap.put("euro", "\u0080"); } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/ba37857b1181bceef527ce8c220b1ab1adb59841/OnlyText.java/buggy/src/java/org/apache/james/transport/mailets/OnlyText.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1208,
1943,
1388,
1435,
288,
202,
202,
1884,
261,
474,
770,
273,
4648,
31,
770,
411,
3847,
31,
770,
27245,
1149,
863,
18,
458,
2932,
7,
20,
6,
397,
770,
16,
514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1208,
1943,
1388,
1435,
288,
202,
202,
1884,
261,
474,
770,
273,
4648,
31,
770,
411,
3847,
31,
770,
27245,
1149,
863,
18,
458,
2932,
7,
20,
6,
397,
770,
16,
514,
... |
Activity i) { assert nowSet_.contains(i); nowSet_.add(i); } | Activity i) { } | public void notifyActivitySpawn(Activity a, Activity i) { assert nowSet_.contains(i); nowSet_.add(i); } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/ee02c6868949b2ade69b622bc3c5303f97584866/Clock_c.java/buggy/x10.runtime/src/x10/runtime/Clock_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
5066,
6193,
3389,
9533,
12,
6193,
279,
16,
4766,
5411,
9621,
277,
13,
288,
7734,
1815,
2037,
694,
27799,
12298,
12,
77,
1769,
7734,
2037,
694,
27799,
1289,
12,
77,
1769,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
5066,
6193,
3389,
9533,
12,
6193,
279,
16,
4766,
5411,
9621,
277,
13,
288,
7734,
1815,
2037,
694,
27799,
12298,
12,
77,
1769,
7734,
2037,
694,
27799,
1289,
12,
77,
1769,
5411,... |
encBuff.append( getConnection() == null ? "" : getConnection().toString()); | encBuff.append(getConnection() == null ? "" : getConnection() .toString()); | public String toString() { StringBuffer encBuff = new StringBuffer(); //Encode single attributes encBuff.append(getVersion() == null ? "" : getVersion().toString()); encBuff.append(getOrigin() == null ? "" : getOrigin().toString()); encBuff.append( getSessionName() == null ? "" : getSessionName().toString()); encBuff.append(getInfo() == null ? "" : getInfo().toString()); //Encode attribute vectors try { encBuff.append(getURI() == null ? "" : getURI().toString()); encBuff.append(encodeVector(getEmails(true))); encBuff.append(encodeVector(getPhones(true))); encBuff.append( getConnection() == null ? "" : getConnection().toString()); encBuff.append(encodeVector(getBandwidths(true))); encBuff.append(encodeVector(getTimeDescriptions(true))); encBuff.append(encodeVector(getZoneAdjustments(true))); encBuff.append(getKey() == null ? "" : getKey().toString()); encBuff.append(encodeVector(getAttributes(true))); encBuff.append(encodeVector(getMediaDescriptions(true))); //adds the final crlf } catch (SdpException exc) { //add exception handling if necessary } return encBuff.toString(); } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/3a05e2397e3d61f9113b673f501b3459c8fdcc70/SessionDescriptionImpl.java/buggy/src/gov/nist/javax/sdp/SessionDescriptionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
1892,
2446,
10642,
273,
394,
6674,
5621,
202,
202,
759,
5509,
2202,
1677,
202,
202,
1331,
10642,
18,
6923,
12,
588,
1444,
1435,
422,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
1892,
2446,
10642,
273,
394,
6674,
5621,
202,
202,
759,
5509,
2202,
1677,
202,
202,
1331,
10642,
18,
6923,
12,
588,
1444,
1435,
422,
446,
... |
sb.append("\n"); | sb.append("\n"); | public String toString() { StringBuffer sb = new StringBuffer( "PrivateKeyEntry: number of elements in certificate chain is "); sb.append(Integer.toString(chain.length)); sb.append("\n"); for (int i = 0; i < chain.length; i++) { sb.append(chain[i].toString()); sb.append("\n"); } return sb.toString(); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c7fdc88348ff6da63262b6309c2810876f42c6d8/KeyStore.java/buggy/modules/security/src/main/java/common/java/security/KeyStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1762,
1435,
288,
5411,
6674,
2393,
273,
394,
6674,
12,
10792,
315,
10824,
1622,
30,
1300,
434,
2186,
316,
4944,
2687,
353,
315,
1769,
5411,
2393,
18,
6923,
12,
4522,
18,
10492,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1762,
1435,
288,
5411,
6674,
2393,
273,
394,
6674,
12,
10792,
315,
10824,
1622,
30,
1300,
434,
2186,
316,
4944,
2687,
353,
315,
1769,
5411,
2393,
18,
6923,
12,
4522,
18,
10492,... |
if (jj_scan_token(THROW)) return true; if (jj_3R_83()) return true; | if (jj_scan_token(BREAK)) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_363()) jj_scanpos = xsp; | final private boolean jj_3R_187() { if (jj_scan_token(THROW)) return true; if (jj_3R_83()) return true; if (jj_scan_token(SEMICOLON)) return true; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2643,
27,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2455,
11226,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2643,
27,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2455,
11226,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
... |
return ( transferSource instanceof IDesignElement && ( (IDesignElement) transferSource ).getDefn( ) .getName( ) .equals( ReportDesignConstants.PARAMETER_GROUP_ELEMENT ) ); | return ( transferSource instanceof IDesignElement && ( (IDesignElement) transferSource ) .getDefn( ).getName( ).equals( ReportDesignConstants.PARAMETER_GROUP_ELEMENT ) ); | public static boolean isParameterGroup( Object transferSource ) { return ( transferSource instanceof IDesignElement && ( (IDesignElement) transferSource ).getDefn( ) .getName( ) .equals( ReportDesignConstants.PARAMETER_GROUP_ELEMENT ) ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/fa0d9b868dc450072bbb03258594a18bbc5f2012/DEUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
353,
19094,
12,
1033,
7412,
1830,
262,
202,
95,
202,
202,
2463,
261,
7412,
1830,
1276,
1599,
281,
724,
1046,
597,
261,
261,
734,
281,
724,
1046,
13,
7412,
1830,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
353,
19094,
12,
1033,
7412,
1830,
262,
202,
95,
202,
202,
2463,
261,
7412,
1830,
1276,
1599,
281,
724,
1046,
597,
261,
261,
734,
281,
724,
1046,
13,
7412,
1830,
262... |
public void testGetAntLogAsElement() { | public void testGetAntLogAsElement() throws Exception { | public void testGetAntLogAsElement() { try { Element buildLogElement = new Element("build"); File logFile = new File("_tempAntLog14.xml"); BufferedWriter bw1 = new BufferedWriter(new FileWriter(logFile)); bw1.write("<?xml:stylesheet type=\"text/xsl\" href=\"log.xsl\"?><build></build>"); bw1.flush(); bw1.close(); File logFile2 = new File("_tempAntLog141.xml"); BufferedWriter bw2 = new BufferedWriter(new FileWriter(logFile2)); bw2.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?><?xml:stylesheet type=\"text/xsl\" href=\"log.xsl\"?><build></build>"); bw2.flush(); bw2.close(); AntBuilder builder = new AntBuilder(); assertEquals(buildLogElement.toString(), builder.getAntLogAsElement(logFile).toString()); assertEquals(buildLogElement.toString(), builder.getAntLogAsElement(logFile2).toString()); } catch (IOException ioe) { ioe.printStackTrace(); } } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/343c29c1e1a18b8ae94b988474dcde2e92f3d6cc/AntBuilderTest.java/clean/main/test/net/sourceforge/cruisecontrol/builders/AntBuilderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
14925,
1343,
1463,
1046,
1435,
1216,
1185,
288,
3639,
775,
288,
5411,
3010,
1361,
1343,
1046,
273,
394,
3010,
2932,
3510,
8863,
5411,
1387,
20169,
273,
394,
1387,
2932... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
14925,
1343,
1463,
1046,
1435,
1216,
1185,
288,
3639,
775,
288,
5411,
3010,
1361,
1343,
1046,
273,
394,
3010,
2932,
3510,
8863,
5411,
1387,
20169,
273,
394,
1387,
2932... |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return JobHoldUntil.class; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/JobHoldUntil.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/JobHoldUntil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1659,
19110,
1435,
225,
288,
565,
327,
3956,
20586,
9716,
18,
1106,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1659,
19110,
1435,
225,
288,
565,
327,
3956,
20586,
9716,
18,
1106,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
System.out.println("--------------------------------"); | if (! (data[1] instanceof Number)) { throw new PainterException("setdash: wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue(); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), dashpattern, dashoffset); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, dashpattern, dashoffset); } context.pencil.graphics.setStroke(newStroke); | public void execute(PAContext context) throws PainterException { Enumeration enumx = context.operands.elements(); System.out.println("-------------Stack--------------"); while (enumx.hasMoreElements()) { System.out.println(enumx.nextElement()); } System.out.println("--------------------------------"); } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/e841a8d80b54d639e4e53a6a4fbdd96bb4c9ec7e/PAContext.java/clean/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
13864,
2792,
92,
273,
819,
18,
4063,
5708,
18,
6274,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
16982,
2624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
13864,
2792,
92,
273,
819,
18,
4063,
5708,
18,
6274,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
16982,
2624,
... |
if (SHOULD_COMPRESS) return DataHelper.decompress(compressed); else | if (SHOULD_COMPRESS) { try { return DataHelper.decompress(compressed); } catch (IOException ioe) { throw new I2PSessionException("Error decompressing message", ioe); } } else { | public byte[] receiveMessage(int msgId) throws I2PSessionException { byte compressed[] = super.receiveMessage(msgId); if (SHOULD_COMPRESS) return DataHelper.decompress(compressed); else return compressed; } | 27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/95c33e88ed39c82499fd773fe08642864332b083/I2PSessionImpl2.java/clean/core/java/src/net/i2p/client/I2PSessionImpl2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
6798,
1079,
12,
474,
1234,
548,
13,
1216,
467,
22,
52,
2157,
503,
288,
3639,
1160,
8968,
8526,
273,
2240,
18,
18149,
1079,
12,
3576,
548,
1769,
3639,
309,
261,
2664,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
6798,
1079,
12,
474,
1234,
548,
13,
1216,
467,
22,
52,
2157,
503,
288,
3639,
1160,
8968,
8526,
273,
2240,
18,
18149,
1079,
12,
3576,
548,
1769,
3639,
309,
261,
2664,
3... |
IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); | IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); | public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); final Register v = val.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { final int i = idx.getValue(); os.writeMOV(WORDSIZE, r, i + VmArray.DATA_OFFSET * 4, v); } else { final Register i = idx.getRegister(); os.writeMOV(WORDSIZE, r, i, 2, VmArray.DATA_OFFSET * 4, v); } val.release(eContext); idx.release(eContext); ref.release(eContext); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/55b12818040bb69b51502c4cd0f42118d2046977/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
3757,
67,
4155,
479,
1435,
288,
3639,
3094,
1180,
1244,
273,
19510,
18,
5120,
1702,
5621,
3639,
3094,
1180,
2067,
273,
19510,
18,
5120,
1702,
5621,
3639,
3941,
1180,
1278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
3757,
67,
4155,
479,
1435,
288,
3639,
3094,
1180,
1244,
273,
19510,
18,
5120,
1702,
5621,
3639,
3094,
1180,
2067,
273,
19510,
18,
5120,
1702,
5621,
3639,
3941,
1180,
1278,
... |
public Roster getRoster() { if (roster == null) { return null; } // If this is the first time the user has asked for the roster after calling // login, we want to wait up to 2 seconds for the server to send back the // user's roster. This behavior shields API users from having to worry about the // fact that roster operations are asynchronous, although they'll still have to // listen for changes to the roster. Note: because of this waiting logic, internal // Smack code should be wary about calling the getRoster method, and may need to // access the roster object directly. int elapsed = 0; while (!roster.rosterInitialized && elapsed <= 2000) { try { Thread.sleep(500); } catch (Exception e) { } elapsed += 500; } return roster; } | 4336 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4336/fb22583ea746bf1a577bada3ffb2d8356ad716d7/XMPPConnection.java/buggy/source/org/jivesoftware/smack/XMPPConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
534,
29811,
4170,
29811,
1435,
288,
3639,
309,
261,
303,
8190,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
368,
971,
333,
353,
326,
1122,
813,
326,
729,
711,
19279,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
534,
29811,
4170,
29811,
1435,
288,
3639,
309,
261,
303,
8190,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
368,
971,
333,
353,
326,
1122,
813,
326,
729,
711,
19279,
36... | ||
/* BindingEnumeration e = scmEnv.enumerateAllBindings(); while (e.hasMoreElements()) { Binding b = e.nextBinding(); if (b.isBound()) { String name = b.getName(); Object val = b.get(); define(name, val); } } */ | public XQuery() { Environment scmEnv = Scheme.builtin(); environ = new Environment(scmEnv); environ.setName ("interaction-environment."+(++envCounter)); ModuleBody.setMainPrintValues(true); /* BindingEnumeration e = scmEnv.enumerateAllBindings(); while (e.hasMoreElements()) { Binding b = e.nextBinding(); if (b.isBound()) { String name = b.getName(); Object val = b.get(); define(name, val); } } */ if (instance == null) instance = this; Environment saveEnv = Environment.getCurrent(); Environment.setCurrent(environ); try { // Force it to be loaded now, so we can over-ride let* length etc. loadClass("kawa.lib.std_syntax"); loadClass("kawa.lib.lists"); loadClass("kawa.lib.strings"); loadClass("gnu.commonlisp.lisp.PrimOps"); loadClass("gnu.kawa.slib.HTTP"); loadClass("gnu.kawa.slib.XStrings"); } catch (Throwable ex) { // Ignore. We get a ClassNotFoundException if gnu.kawa.slib.HTTP // was not built. We get a NoClassDefFoundError if gnu.kawa.slib.HTTP // can't find servlets in the classpath. } finally { Environment.setCurrent(saveEnv); } define("define", new kawa.standard.set_b()); define("document", gnu.kawa.xml.Document.document); define("doc", gnu.kawa.xml.Document.document); // kludge define("unescaped-data", gnu.kawa.xml.MakeUnescapedData.unescapedData); define("item-at", gnu.xquery.util.ItemAt.itemAt); define("count", gnu.kawa.functions.CountValues.countValues); define("min", gnu.xquery.util.MinMax.min); define("max", gnu.xquery.util.MinMax.max); define("sum", gnu.xquery.util.Reduce.sum); define("avg", gnu.xquery.util.Average.avg); define("index-of", gnu.xquery.util.IndexOf.indexOf); define("last-index-of", gnu.xquery.util.LastIndexOf.lastIndexOf); define("sublist", gnu.xquery.util.SubList.subList); define("empty", gnu.xquery.util.IsEmptySequence.isEmptySequence); define("false", new ConstantFunction0("false", Boolean.FALSE)); define("true", new ConstantFunction0("true", Boolean.TRUE)); define("number", gnu.xquery.util.NumberValue.numberValue); define("string-value", gnu.xquery.util.StringValue.stringValue); define("string", gnu.xquery.util.StringValue.string); define("concat", new kawa.standard.string_append()); define_method("trace", "gnu.xquery.util.Debug", "trace"); define("write-to", gnu.kawa.xml.WriteTo.writeTo); define_field("iterator-items", "gnu.kawa.xml.IteratorItems", "iteratorItems"); define_field("list-items", "gnu.kawa.xml.ListItems", "listItems"); define_field("base-uri", "gnu.kawa.functions.BaseUri", "baseUri"); define_field("node-name", "gnu.kawa.xml.NodeName", "nodeName"); define_method("root", "gnu.kawa.xml.Nodes", "root"); define_method("lower-case", "gnu.xquery.util.StringValue", "lowerCase"); define_method("upper-case", "gnu.xquery.util.StringValue", "upperCase"); define_method("substring", "gnu.xquery.util.StringValue", "substring"); define_method("string-length", "gnu.xquery.util.StringValue", "stringLength"); define_method("substring-before", "gnu.xquery.util.StringValue", "substringBefore"); define_method("substring-after", "gnu.xquery.util.StringValue", "substringAfter"); define_method("translate", "gnu.xquery.util.StringValue", "translate"); define_method("string-pad", "gnu.xquery.util.StringValue", "stringPad"); define_method("contains", "gnu.xquery.util.StringValue", "contains"); define_method("starts-with", "gnu.xquery.util.StringValue", "startsWith"); define_method("ends-with","gnu.xquery.util.StringValue", "endsWith"); define_method("string-join", "gnu.xquery.util.StringValue", "stringJoin"); define("distinct-nodes", gnu.kawa.xml.SortNodes.sortNodes); } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/c30cb9976a69607354edf4c48ca3e59d0c67320b/XQuery.java/buggy/gnu/xquery/lang/XQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1139,
1138,
1435,
225,
288,
565,
7518,
29207,
3491,
273,
10714,
18,
24553,
5621,
565,
5473,
273,
394,
7518,
12,
1017,
81,
3491,
1769,
565,
5473,
18,
542,
461,
7566,
30303,
17,
10274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1139,
1138,
1435,
225,
288,
565,
7518,
29207,
3491,
273,
10714,
18,
24553,
5621,
565,
5473,
273,
394,
7518,
12,
1017,
81,
3491,
1769,
565,
5473,
18,
542,
461,
7566,
30303,
17,
10274... | |
" already exists, choose a different identifier"); | " already exists, choose a different identifier or unregister current listener"); return; | public void registerListener(Serializable identifier, MessageListener l) { if(l == null || identifier == null) { if(log.isErrorEnabled()) log.error("message listener or identifier is null"); return; } if(listeners.containsKey(identifier)) { if(log.isErrorEnabled()) log.error("listener with identifier=" + identifier + " already exists, choose a different identifier"); } listeners.put(identifier, l); } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/a3bf57dc83b7e05486e72705c73f37a1da1b301c/PullPushAdapter.java/clean/src/org/jgroups/blocks/PullPushAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
2223,
12,
21682,
2756,
16,
2350,
2223,
328,
13,
288,
3639,
309,
12,
80,
422,
446,
747,
2756,
422,
446,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
2223,
12,
21682,
2756,
16,
2350,
2223,
328,
13,
288,
3639,
309,
12,
80,
422,
446,
747,
2756,
422,
446,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
1... |
realInstance(start).jsSet_length(value); return; | jsSet_length(value); return; | protected void setIdValue(int id, Scriptable start, Object value) { if (id == Id_length) { realInstance(start).jsSet_length(value); return; } super.setIdValue(id, start, value); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/d4a0073458f57af07bf530855ff31413fb1b18b0/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
10446,
620,
12,
474,
612,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
309,
261,
350,
422,
3124,
67,
2469,
13,
288,
5411,
3828,
694,
67,
2469,
12,
1132,
1769,
327,
31,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
10446,
620,
12,
474,
612,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
309,
261,
350,
422,
3124,
67,
2469,
13,
288,
5411,
3828,
694,
67,
2469,
12,
1132,
1769,
327,
31,
363... |
req = new Request.GetAll(useCache, timeout, name); | req = new Request.GetAll(options, name); | private void performRequest() { try { Request req = null; if ("recursive_dump".equals(action)) { String suffix = (name == null ? "." : name); if (suffix.startsWith(".")) { int limit = DEFAULT_LIMIT; if (s_limit != null) { limit = Integer.parseInt(s_limit); } submitDump(suffix, limit); } else { out.println( "<font color=\"red\">Recursive dump suffix must"+ " start with \".\", not \""+suffix+"\"</font>"); } } else if ("get".equals(action)) { if (name == null) { out.println( "<font color=\"red\">Please specify a name</font>"); } else if (type == null) { out.println( "<font color=\"red\">Please specify a type</font>"); } else { req = new Request.Get(useCache, timeout, name, type); } } else if ("getAll".equals(action)) { if (name == null) { out.println( "<font color=\"red\">Please specify a name</font>"); } else { req = new Request.GetAll(useCache, timeout, name); } } else if ("list".equals(action)) { String tmp = (name == null ? "." : name); if (tmp.startsWith(".")) { req = new Request.List(useCache, timeout, tmp); } else { out.println( "<font color=\"red\">List suffix must start"+ " with \".\", not \""+tmp+"\"</font>"); } } else if ( "bind".equals(action) || "rebind".equals(action)) { boolean overWrite = "rebind".equals(action); AddressEntry ae = parseEntry(); if (ae != null) { req = new Request.Bind(false, timeout, ae, overWrite, false); } } else if ("unbind".equals(action)) { AddressEntry ae = parseEntry(); if (ae != null) { req = new Request.Unbind(false, timeout, ae); } } else if (action != null) { out.println( "<font color=\"red\">Unknown action: "+action+"</font>"); } if (req != null) { submit(req); } } catch (Exception e) { e.printStackTrace(out); } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/4c10453b9ea9a7f21fdd670b1ff4848b2adf96dd/WhitePagesServlet.java/buggy/core/src/org/cougaar/core/wp/WhitePagesServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3073,
691,
1435,
288,
1377,
775,
288,
3639,
1567,
1111,
273,
446,
31,
3639,
309,
7566,
10543,
67,
8481,
9654,
14963,
12,
1128,
3719,
288,
1850,
514,
3758,
273,
261,
529,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3073,
691,
1435,
288,
1377,
775,
288,
3639,
1567,
1111,
273,
446,
31,
3639,
309,
7566,
10543,
67,
8481,
9654,
14963,
12,
1128,
3719,
288,
1850,
514,
3758,
273,
261,
529,
422,
... |
log().verbose( "RemoteFileDeletion sync. Member '" + member.getNick() + "' has " + fileList.length + " possible files"); | if (logVerbose) { log().verbose( "RemoteFileDeletion sync. Member '" + member.getNick() + "' has " + fileList.length + " possible files"); } | public boolean handleRemoteDeletedFiles(boolean force) { if (!force) { // Check if allowed on folder if (!syncProfile.isSyncDeletionWithFriends() && !syncProfile.isSyncDeletionWithOthers()) { // No sync wanted return false; } } Member[] conMembers = getConnectedMembers(); log().debug( "Deleting files, which are deleted by friends. con-members: " + Arrays.asList(conMembers)); List removedFiles = new ArrayList(); for (Member member : conMembers) { if (!member.isConnected()) { // disconected in the meantime // go to next member continue; } FileInfo[] fileList = member.getLastFileList(this.getInfo()); if (fileList == null) { continue; } log().verbose( "RemoteFileDeletion sync. Member '" + member.getNick() + "' has " + fileList.length + " possible files"); for (FileInfo remoteFile : fileList) { boolean fileFromFriend = remoteFile .isModifiedByFriend(getController()); if (!fileFromFriend) { // Not modified by friend, skip file continue; } FileInfo localFile = getFile(remoteFile); boolean remoteFileNewer = true; if (localFile != null) { remoteFileNewer = remoteFile.isNewerThan(localFile); } if (!remoteFileNewer) { // Not newer, skip file // log().warn( // "Ingoring file (not newer): " + remoteFile.getName() // + ". local-ver: " + localFile.getVersion() // + ", remote-ver: " + remoteFile.getVersion()); continue; } // log().warn("Remote file has a newer file :" + // remoteFile.toDetailString()); // Okay the remote file is newer // Add to local file to database if was deleted on remote if (localFile == null && remoteFile.isDeleted()) { addFile(remoteFile); localFile = getFile(remoteFile); // File has been marked as removed at our side removedFiles.add(localFile); } if (localFile != null) { // log().warn("Okay we have local file :" + localFile); if (remoteFile.isDeleted() && !localFile.isDeleted()) { File localCopy = localFile.getDiskFile(getController() .getFolderRepository()); log().warn( "File was deleted by " + member + ", deleting local: " + localCopy); RecycleBin recycleBin = getController().getRecycleBin(); if (!recycleBin.moveToRecycleBin(localFile, localCopy)) { log().error( "Unable to move file to recycle bin" + localCopy); if (!localCopy.delete()) { log().error( "Unable to delete file " + localCopy); } } // } localFile.setDeleted(true); localFile.setModifiedInfo(remoteFile.getModifiedBy(), remoteFile.getModifiedDate()); localFile.setVersion(remoteFile.getVersion()); // File has been removed removedFiles.add(localFile); // Abort dl if one is active Download dl = getController().getTransferManager() .getActiveDownload(localFile); if (dl != null) { dl.abortAndCleanup(); } } else if (localFile.isDeleted() && !remoteFile.isDeleted()) { // Local file is deleted, check if version on remote is // higher log().warn("File restored on remote: " + remoteFile); reDownloadFile(remoteFile); } } } } // Broadcast folder change if changes happend if (!removedFiles.isEmpty()) { folderChanged(); // Broadcast to memebers FolderFilesChanged changes = new FolderFilesChanged(getInfo()); changes.removed = new FileInfo[removedFiles.size()]; removedFiles.toArray(changes.removed); broadcastMessage(changes); } return true; } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/Folder.java/clean/src/main/de/dal33t/powerfolder/disk/Folder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1640,
5169,
7977,
2697,
12,
6494,
2944,
13,
288,
3639,
309,
16051,
5734,
13,
288,
5411,
368,
2073,
309,
2935,
603,
3009,
5411,
309,
16051,
8389,
4029,
18,
291,
4047,
13064,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1640,
5169,
7977,
2697,
12,
6494,
2944,
13,
288,
3639,
309,
16051,
5734,
13,
288,
5411,
368,
2073,
309,
2935,
603,
3009,
5411,
309,
16051,
8389,
4029,
18,
291,
4047,
13064,
11... |
ICPPField i2 = (ICPPField) name_i2.resolveBinding(); ICPPField i1 = (ICPPField) name_i1.resolveBinding(); | ICPPField i2 = (ICPPField) name_i2.resolveBinding(); ICPPField i1 = (ICPPField) name_i1.resolveBinding(); | public void testBasicInheritance() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("class A { int i; }; \n"); //$NON-NLS-1$ buffer.append("class B : public A { void f(); }; \n"); //$NON-NLS-1$ buffer.append("void B::f() { i; } \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); IASTSimpleDeclaration decl = (IASTSimpleDeclaration) tu.getDeclarations()[0]; ICPPASTCompositeTypeSpecifier comp = (ICPPASTCompositeTypeSpecifier) decl .getDeclSpecifier(); IASTName name_A1 = comp.getName(); decl = (IASTSimpleDeclaration) comp.getMembers()[0]; IASTName name_i1 = decl.getDeclarators()[0].getName(); decl = (IASTSimpleDeclaration) tu.getDeclarations()[1]; comp = (ICPPASTCompositeTypeSpecifier) decl.getDeclSpecifier(); IASTName name_B1 = comp.getName(); ICPPASTBaseSpecifier base = comp.getBaseSpecifiers()[0]; IASTName name_A2 = base.getName(); decl = (IASTSimpleDeclaration) comp.getMembers()[0]; IASTName name_f1 = decl.getDeclarators()[0].getName(); IASTFunctionDefinition def = (IASTFunctionDefinition) tu .getDeclarations()[2]; ICPPASTQualifiedName name_f2 = (ICPPASTQualifiedName) def.getDeclarator() .getName(); IASTName name_B2 = name_f2.getNames()[0]; IASTName name_f3 = name_f2.getNames()[1]; IASTCompoundStatement compound = (IASTCompoundStatement) def.getBody(); IASTExpressionStatement statement = (IASTExpressionStatement) compound .getStatements()[0]; IASTIdExpression idExp = (IASTIdExpression) statement.getExpression(); IASTName name_i2 = idExp.getName(); ICPPField i2 = (ICPPField) name_i2.resolveBinding(); ICPPField i1 = (ICPPField) name_i1.resolveBinding(); ICPPClassType A2 = (ICPPClassType) name_A2.resolveBinding(); ICPPClassType A1 = (ICPPClassType) name_A1.resolveBinding(); ICPPClassType B2 = (ICPPClassType) name_B2.resolveBinding(); ICPPClassType B1 = (ICPPClassType) name_B1.resolveBinding(); ICPPMethod f3 = (ICPPMethod) name_f3.resolveBinding(); ICPPMethod f2 = (ICPPMethod) name_f2.resolveBinding(); ICPPMethod f1 = (ICPPMethod) name_f1.resolveBinding(); assertNotNull(A1); assertNotNull(B1); assertNotNull(i1); assertNotNull(f1); assertSame(A1, A2); assertSame(B1, B2); assertSame(i1, i2); assertSame(f1, f2); assertSame(f2, f3); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/85642473031be9bd27aacd0ceddea64e2ce41399/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
8252,
28255,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
1106,
432,
288,
509,
277,
31,
289,
31,
9079,
521,
82,
8863,
4329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
8252,
28255,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
1106,
432,
288,
509,
277,
31,
289,
31,
9079,
521,
82,
8863,
4329,
... |
SimpleDateFormat sdf = new SimpleDateFormat( "MM/dd/yyyy" ); return sdf.format( dt ); | return _sdf.format( dt ); | private String getValue( DataElement de ) { if ( de instanceof DateTimeDataElement ) { Date dt = ( (DateTimeDataElement) de ).getValueAsCalendar( ) .getTime( ); SimpleDateFormat sdf = new SimpleDateFormat( "MM/dd/yyyy" ); //$NON-NLS-1$ return sdf.format( dt ); } else if ( de instanceof NumberDataElement ) { return NumberFormat.getInstance( ).format( ( (NumberDataElement) de ).getValue( ) ); } return ""; //$NON-NLS-1$ } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/34e0d413e3800e4db2d1129a0aa4835c42d9fa77/AxisScaleSheet.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/axis/AxisScaleSheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
2366,
12,
1910,
1046,
443,
262,
202,
95,
202,
202,
430,
261,
443,
1276,
3716,
751,
1046,
262,
202,
202,
95,
1082,
202,
1626,
3681,
273,
261,
261,
5096,
751,
1046,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
2366,
12,
1910,
1046,
443,
262,
202,
95,
202,
202,
430,
261,
443,
1276,
3716,
751,
1046,
262,
202,
202,
95,
1082,
202,
1626,
3681,
273,
261,
261,
5096,
751,
1046,
13,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.