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
public void nameResolved( String a_oid, String a_name )
public void nameResolved( String oid, String name )
public void nameResolved( String a_oid, String a_name ) { }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/385a49334a1b7600eef5534ffcf74cdf77039bf0/OidRegistryMonitorAdapter.java/buggy/backend/api/src/java/org/apache/eve/schema/OidRegistryMonitorAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 508, 12793, 12, 514, 7764, 16, 514, 508, 262, 565, 288, 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, 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, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 508, 12793, 12, 514, 7764, 16, 514, 508, 262, 565, 288, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return " ";
return "";
public String getPath() { return " "; }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/5c45612d06afb7558ab2edf49647601cf94843cc/NullFile.java/clean/main/src/net/sourceforge/cruisecontrol/util/NullFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 4339, 1435, 288, 3639, 327, 1408, 31, 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, 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, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 4339, 1435, 288, 3639, 327, 1408, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public boolean stopCellEditing() {
public boolean stopCellEditing() {
public boolean stopCellEditing() { return false; // TODO } // stopCellEditing()
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 2132, 4020, 28029, 1435, 288, 1082, 202, 2463, 629, 31, 368, 2660, 202, 202, 97, 368, 2132, 4020, 28029, 1435, 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, 3196, 202, 482, 1250, 2132, 4020, 28029, 1435, 288, 1082, 202, 2463, 629, 31, 368, 2660, 202, 202, 97, 368, 2132, 4020, 28029, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return isAuthorsBrowse ? theResults : toItems(scope.getContext(), theResults);
return (isAuthorsBrowse||isSubjectsBrowse) ? theResults : toItems(scope.getContext(), theResults);
private static List getResults(BrowseScope scope, List results, int max) throws SQLException { if (results == null) { return Collections.EMPTY_LIST; } List theResults = new ArrayList(); boolean hasLimit = !scope.hasNoLimit(); boolean isAuthorsBrowse = scope.getBrowseType() == AUTHORS_BROWSE; for (Iterator iterator = results.iterator(); iterator.hasNext();) { TableRow row = (TableRow) iterator.next(); Object theValue = (isAuthorsBrowse) ? (Object) row .getStringColumn("author") : (Object) new Integer(row .getIntColumn("item_id")); // Should not happen if (theValue == null) { continue; } // Exceeded limit if (hasLimit && (theResults.size() >= max)) { break; } theResults.add(theValue); if (log.isDebugEnabled()) { log.debug("Adding result " + theValue); } } return isAuthorsBrowse ? theResults : toItems(scope.getContext(), theResults); }
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/9e4cb86aae7d6516b7b40cd755b2d5c214997bd4/Browse.java/clean/dspace/src/org/dspace/browse/Browse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 987, 21955, 12, 27304, 3876, 2146, 16, 987, 1686, 16, 509, 943, 13, 5411, 1216, 6483, 565, 288, 3639, 309, 261, 4717, 422, 446, 13, 3639, 288, 5411, 327, 5737, 18, 13625, 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, 377, 3238, 760, 987, 21955, 12, 27304, 3876, 2146, 16, 987, 1686, 16, 509, 943, 13, 5411, 1216, 6483, 565, 288, 3639, 309, 261, 4717, 422, 446, 13, 3639, 288, 5411, 327, 5737, 18, 13625, 67,...
FeatureTxtWriter(String outputDir, String classIDs) throws IOException
FeatureTxtWriter(DescriptorInfo[] descInfo, String outputDir, String classIDs) throws IOException
FeatureTxtWriter(String outputDir, String classIDs) throws IOException { super(classIDs); // create output directory File dir = new File(outputDir); if (!dir.exists()) { dir.mkdir(); } // color histogram String fileName = outputDir + File.separator + ImageDescriptor.featureNames[0]; colorHistogramWriter = new BufferedWriter(new FileWriter(fileName + ".txt")); writeHeader(colorHistogramWriter, ImageDescriptor.featureNames[0], ImageDescriptor.numAttributes[0]); // color moments for (int i = 0; i < colorMomentsWriters.length; i++) { // parent directory fileName = outputDir + File.separator + ImageDescriptor.featureNames[i + 1]; colorMomentsWriters[i] = new BufferedWriter(new FileWriter(fileName + ".txt")); writeHeader(colorMomentsWriters[i], ImageDescriptor.featureNames[i + 1], ImageDescriptor.numAttributes[i + 1]); } // texture features for (int i = 0; i < textureFeatureWriters.length; i++) { // parent directory fileName = outputDir + File.separator + ImageDescriptor.featureNames[i + 4]; textureFeatureWriters[i] = new BufferedWriter(new FileWriter( fileName + ".txt")); writeHeader(textureFeatureWriters[i], ImageDescriptor.featureNames[i + 4], ImageDescriptor.numAttributes[i + 4]); } // roughness statictics for (int i = 0; i < roughnessStatsWriters.length; i++) { // parent directory fileName = outputDir + File.separator + ImageDescriptor.featureNames[i + 17]; roughnessStatsWriters[i] = new BufferedWriter(new FileWriter( fileName + ".txt")); writeHeader(roughnessStatsWriters[i], ImageDescriptor.featureNames[i + 17], ImageDescriptor.numAttributes[i + 17]); } // facet-orientation statistics for (int i = 0; i < facetStatsWriters.length; i++) { // parent directory fileName = outputDir + File.separator + ImageDescriptor.featureNames[i + 25]; facetStatsWriters[i] = new BufferedWriter(new FileWriter(fileName + ".txt")); writeHeader(facetStatsWriters[i], ImageDescriptor.featureNames[i + 25], ImageDescriptor.numAttributes[i + 25]); } }
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/14f58550dbeda5a51b5b4acd77af2f62f12f97a1/FeatureTxtWriter.java/buggy/src/de/lmu/ifi/dbs/featureextraction/image/FeatureTxtWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 7881, 21811, 2289, 12, 3187, 966, 8526, 3044, 966, 16, 514, 21412, 16, 514, 667, 5103, 13, 1216, 1860, 565, 288, 3639, 2240, 12, 1106, 5103, 1769, 3639, 368, 752, 876, 1867, 3639, 1387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7881, 21811, 2289, 12, 3187, 966, 8526, 3044, 966, 16, 514, 21412, 16, 514, 667, 5103, 13, 1216, 1860, 565, 288, 3639, 2240, 12, 1106, 5103, 1769, 3639, 368, 752, 876, 1867, 3639, 1387, ...
public void addGlobalPropertyChangeListener(PropertyChangeListener l){
public void addGlobalPropertyChangeListener(PropertyChangeListener l) {
public void addGlobalPropertyChangeListener(PropertyChangeListener l){ pcs.addPropertyChangeListener(l); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/74855509936d6c2431cf44140355fab062d39950/ConcreteRootGraphicsNode.java/clean/sources/org/apache/batik/refimpl/gvt/ConcreteRootGraphicsNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 5160, 1396, 15744, 12, 1396, 15744, 328, 13, 288, 540, 31353, 18, 1289, 1396, 15744, 12, 80, 1769, 565, 289, 2, 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, 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, 377, 1071, 918, 527, 5160, 1396, 15744, 12, 1396, 15744, 328, 13, 288, 540, 31353, 18, 1289, 1396, 15744, 12, 80, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public String delete() {
public String delete() throws IOException { if (getRequest().getRemoteUser() != null && !getRequest().isUserInRole(Constants.ADMIN_ROLE)) { getResponse().sendError(HttpServletResponse.SC_FORBIDDEN); return null; }
public String delete() { userManager.removeUser(user.getUsername()); List args = new ArrayList(); args.add(user.getFullName()); saveMessage(getText("user.deleted", args)); return SUCCESS; }
30015 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/30015/e62492d9bb2eb5dba86d553dcd3d33d0e49c62b2/UserAction.java/clean/extras/webwork/src/web/org/appfuse/webapp/action/UserAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1430, 1435, 1216, 1860, 288, 225, 309, 261, 588, 691, 7675, 588, 5169, 1299, 1435, 480, 446, 597, 401, 588, 691, 7675, 291, 1299, 382, 2996, 12, 2918, 18, 15468, 67, 16256, 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, 514, 1430, 1435, 1216, 1860, 288, 225, 309, 261, 588, 691, 7675, 588, 5169, 1299, 1435, 480, 446, 597, 401, 588, 691, 7675, 291, 1299, 382, 2996, 12, 2918, 18, 15468, 67, 16256, 3...
return Character.isLetterOrDigit(ch) || ch == '_';
return Character.isLetterOrDigit(ch) || ch == '_';
public static final boolean isIdentChar(char ch) { return Character.isLetterOrDigit(ch) || ch == '_'; }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyId.java/clean/org/jruby/RubyId.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 1250, 353, 6106, 2156, 12, 3001, 462, 13, 288, 202, 2463, 6577, 18, 291, 13938, 1162, 10907, 12, 343, 13, 747, 462, 422, 4427, 31, 565, 289, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 1250, 353, 6106, 2156, 12, 3001, 462, 13, 288, 202, 2463, 6577, 18, 291, 13938, 1162, 10907, 12, 343, 13, 747, 462, 422, 4427, 31, 565, 289, 2, -100, -100, -100, -100, ...
addCommand(new AddNodeCommand(NT_FILE));
addCommand(new FileImportCommand());
public ImportResourceChain() { super(); addCommand(new SetContentTypeCommand()); addCommand(new AddNodeCommand(NT_FILE)); addCommand(new AddMixinCommand(MIX_VERSIONABLE)); addCommand(new FileImportCommand()); }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/73e1580f14b3484f37b4ceec2d0fd46d4a5a6dd2/ImportResourceChain.java/clean/contrib/jcr-server/server/src/java/org/apache/jackrabbit/server/io/ImportResourceChain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6164, 1420, 3893, 1435, 288, 3639, 2240, 5621, 3639, 20008, 12, 2704, 1000, 8046, 2189, 10663, 3639, 20008, 12, 2704, 1387, 5010, 2189, 10663, 3639, 20008, 12, 2704, 1436, 14439, 2189, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6164, 1420, 3893, 1435, 288, 3639, 2240, 5621, 3639, 20008, 12, 2704, 1000, 8046, 2189, 10663, 3639, 20008, 12, 2704, 1387, 5010, 2189, 10663, 3639, 20008, 12, 2704, 1436, 14439, 2189, ...
return m_maxIdleTimeSec;
return maxIdleTimeSec;
public int getMaxIdleTime() { return m_maxIdleTimeSec; }
48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/BaseUser.java/clean/src/java/org/apache/ftpserver/usermanager/BaseUser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 7288, 13834, 950, 1435, 288, 3639, 327, 943, 13834, 950, 2194, 31, 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, 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, 377, 1071, 509, 7288, 13834, 950, 1435, 288, 3639, 327, 943, 13834, 950, 2194, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (cmd.indexedId != null) { Integer saveCount = pset.get(cmd.indexedId);
protected synchronized int allowDups(AddUpdateCommand cmd) throws IOException { if (cmd.indexedId ==null) { cmd.indexedId =getIndexedIdOptional(cmd.doc); } synchronized(this) { doAdd(cmd.doc); if (cmd.indexedId != null) { Integer saveCount = pset.get(cmd.indexedId); // if there weren't any docs marked for deletion before, then don't mark // any for deletion now. if (saveCount == null) return 1; // If there were docs marked for deletion, then increment the number of // docs to save at the end. // the following line is optional, but it saves an allocation in the common case. if (saveCount == ZERO) saveCount=ONE; else saveCount++; pset.put(cmd.indexedId, saveCount); } } return 1; }
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/5cd72ec45a77dfbcd1f3be278b4675e5082043ce/DirectUpdateHandler2.java/clean/src/java/org/apache/solr/update/DirectUpdateHandler2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 3852, 509, 1699, 40, 18294, 12, 986, 1891, 2189, 1797, 13, 1216, 1860, 288, 565, 309, 261, 4172, 18, 19626, 548, 422, 2011, 13, 288, 1377, 1797, 18, 19626, 548, 273, 588, 15034, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 509, 1699, 40, 18294, 12, 986, 1891, 2189, 1797, 13, 1216, 1860, 288, 565, 309, 261, 4172, 18, 19626, 548, 422, 2011, 13, 288, 1377, 1797, 18, 19626, 548, 273, 588, 15034, 5...
assertEquals( 1, plugins.size() );
Map validPluginCounts = new HashMap();
public void testProjectInheritance() throws Exception { File localRepo = getLocalRepositoryPath(); File pom0 = new File( localRepo, "p0/pom.xml" ); File pom1 = new File( pom0.getParentFile(), "p1/pom.xml" ); File pom2 = new File( pom1.getParentFile(), "p2/pom.xml" ); File pom3 = new File( pom2.getParentFile(), "p3/pom.xml" ); File pom4 = new File( pom3.getParentFile(), "p4/pom.xml" ); File pom5 = new File( pom4.getParentFile(), "p5/pom.xml" ); System.out.println( "Location of project-4's POM: " + pom4.getPath() ); // load everything... MavenProject project0 = getProject( pom0 ); MavenProject project1 = getProject( pom1 ); MavenProject project2 = getProject( pom2 ); MavenProject project3 = getProject( pom3 ); MavenProject project4 = getProject( pom4 ); MavenProject project5 = getProject( pom5 ); assertEquals( "p4", project4.getName() ); // ---------------------------------------------------------------------- // Value inherited from p3 // ---------------------------------------------------------------------- assertEquals( "2000", project4.getInceptionYear() ); // ---------------------------------------------------------------------- // Value taken from p2 // ---------------------------------------------------------------------- assertEquals( "mailing-list", ( (MailingList) project4.getMailingLists().get( 0 ) ).getName() ); // ---------------------------------------------------------------------- // Value taken from p1 // ---------------------------------------------------------------------- assertEquals( "scm-url/p2/p3/p4", project4.getScm().getUrl() ); // ---------------------------------------------------------------------- // Value taken from p4 // ---------------------------------------------------------------------- assertEquals( "Codehaus", project4.getOrganization().getName() ); // ---------------------------------------------------------------------- // Value taken from super model // ---------------------------------------------------------------------- assertEquals( "4.0.0", project4.getModelVersion() ); Build build = project4.getBuild(); List plugins = build.getPlugins(); assertEquals( 1, plugins.size() ); Plugin plugin = (Plugin) plugins.get( 0 ); List executions = plugin.getExecutions(); assertEquals( 1, executions.size() ); }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/8937fd353d5bd2fe630fca9d4397ee708da24794/ProjectInheritanceTest.java/clean/maven-project/src/test/java/org/apache/maven/project/inheritance/t02/ProjectInheritanceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4109, 28255, 1435, 3639, 1216, 1185, 565, 288, 3639, 1387, 1191, 8791, 273, 6993, 3305, 743, 5621, 3639, 1387, 21400, 20, 273, 394, 1387, 12, 1191, 8791, 16, 315, 84, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4109, 28255, 1435, 3639, 1216, 1185, 565, 288, 3639, 1387, 1191, 8791, 273, 6993, 3305, 743, 5621, 3639, 1387, 21400, 20, 273, 394, 1387, 12, 1191, 8791, 16, 315, 84, 20,...
if ( !first) {
if ( !first && !"?".equals(append) ) {
protected String getURI(Map keyMap) throws Exception { final StringBuffer buffer = new StringBuffer(); Iterator iter = keyMap.entrySet().iterator(); boolean pars = false; boolean first = true; while ( iter.hasNext() ) { final Map.Entry entry = (Entry) iter.next(); if ( pars ) { if ( first ) { first = false; if ( buffer.toString().indexOf('?') == -1 ) { buffer.append('?'); } else { buffer.append('&'); } } else { buffer.append('&'); } buffer.append(entry.getKey().toString()); buffer.append('='); } else { if ( !first) { buffer.append('/'); } first = false; } String append = entry.getValue().toString(); if ( "?".equals(append) ) { first = true; pars = true; } else { buffer.append(append); } } return buffer.toString(); }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/0d192aae355e421957147887d8c59b445ad89cd7/MapProfileLS.java/clean/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/MapProfileLS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 21375, 12, 863, 498, 863, 13, 377, 1216, 1185, 288, 3639, 727, 6674, 1613, 273, 394, 6674, 5621, 3639, 4498, 1400, 273, 498, 863, 18, 4099, 694, 7675, 9838, 5621, 3639, 1250, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 21375, 12, 863, 498, 863, 13, 377, 1216, 1185, 288, 3639, 727, 6674, 1613, 273, 394, 6674, 5621, 3639, 4498, 1400, 273, 498, 863, 18, 4099, 694, 7675, 9838, 5621, 3639, 1250, ...
player.markersAvailable[player.numMarkersAvailable - 1] = new String("");
player.markersAvailable[player.numMarkersAvailable - 1] = new String("");
public void mouseClicked(MouseEvent e) { Point point = e.getPoint(); for (int i = 0; i < markers.length; i++) { if (markers[i].select(point)) { // Got a hit. // Send that info back by putting it in player.markerSelected. player.markerSelected = new String(player.markersAvailable[i]); // Then adjust player to show that this marker is taken. for (int j = i; j < player.numMarkersAvailable - 1; j++) { player.markersAvailable[j] = new String(player.markersAvailable[j + 1]); } player.markersAvailable[player.numMarkersAvailable - 1] = new String(""); player.numMarkersAvailable--; // Then exit. // XXX Is this the right way for a modal dialog to exit? dispose(); } } }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/8fb26ca1e47962beaa564de211f67f9377aa0afa/PickMarker.java/clean/Colossus/PickMarker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 27633, 12, 9186, 1133, 425, 13, 565, 288, 3639, 4686, 1634, 273, 425, 18, 588, 2148, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 11754, 18, 2469, 31, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7644, 27633, 12, 9186, 1133, 425, 13, 565, 288, 3639, 4686, 1634, 273, 425, 18, 588, 2148, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 11754, 18, 2469, 31, 277, ...
subTaskLabel.setText(shortenText(fSubTask,subTaskLabel)); if (!forked) {
subTaskLabel.setText(shortenText(fSubTask, subTaskLabel)); if (!forked) {
public void subTask(String name) { if (subTaskLabel.isDisposed()) { return; } if (name == null) { fSubTask = "";//$NON-NLS-1$ } else { fSubTask = name; } subTaskLabel.setText(shortenText(fSubTask,subTaskLabel)); if (!forked) { subTaskLabel.update(); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/18d6e658dfbeda87524388388c4d4c049701f36f/ProgressMonitorDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ProgressMonitorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 720, 2174, 12, 780, 508, 13, 288, 5411, 309, 261, 1717, 2174, 2224, 18, 291, 1669, 7423, 10756, 288, 9506, 202, 2463, 31, 1082, 202, 97, 5411, 309, 261, 529, 422, 446, 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, 540, 1071, 918, 720, 2174, 12, 780, 508, 13, 288, 5411, 309, 261, 1717, 2174, 2224, 18, 291, 1669, 7423, 10756, 288, 9506, 202, 2463, 31, 1082, 202, 97, 5411, 309, 261, 529, 422, 446, 13, ...
pd = new ParsedDocument(new File("C:\\tmp\\postgresql-8.0-US.pdf"), "postgresql-8.0-US.pdf", "application/pdf", timer);
pd = new ParsedDocument(new File("C:\\tmp\\postgresql-8.0-US.pdf"), "postgresql-8.0-US.pdf", "application/pdf", timer, creator);
public static void main(String[] args) throws Throwable { ParsedDocument pd; long timer, time; for (int i = 0; i < 5; i++) { timer = System.currentTimeMillis(); pd = new ParsedDocument(new File("C:\\tmp\\todo.txt"), "todo.txt", "text/plain", timer); time = (System.currentTimeMillis() - timer); System.out.println(pd.getFilename() + " (" + pd.getSize() + "b) {" + time + "us} [" + pd.getDigest() + "]: " + pd.getFragment()); timer = System.currentTimeMillis(); pd = new ParsedDocument(new File("C:\\tmp\\SOLTYREI.html"), "SOLTYREI.html", "text/html", timer); time = (System.currentTimeMillis() - timer); System.out.println(pd.getFilename() + " (" + pd.getSize() + "b) {" + time + "us} [" + pd.getDigest() + "]: " + pd.getFragment()); timer = System.currentTimeMillis(); pd = new ParsedDocument(new File("C:\\tmp\\postgresql-8.0-US.pdf"), "postgresql-8.0-US.pdf", "application/pdf", timer); time = (System.currentTimeMillis() - timer); System.out.println(pd.getFilename() + " (" + pd.getSize() + "b) {" + time + "us} [" + pd.getDigest() + "]: " + pd.getFragment()); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ea10ad36782e19f5612164ffac3c352365c33198/ParsedDocument.java/clean/ZimbraServer/src/java/com/zimbra/cs/mime/ParsedDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 4206, 288, 3639, 19244, 2519, 4863, 31, 3639, 1525, 5441, 16, 813, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1381, 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, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 4206, 288, 3639, 19244, 2519, 4863, 31, 3639, 1525, 5441, 16, 813, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1381, 31, ...
return FieldFinder.find( (String) priv2list.get(priv) );
if (priv2list.containsKey(priv)) { return FieldFinder.find( (String) priv2list.get(priv) ); } throw new SchemaException("invalid access privilege");
private Field _getField(Privilege priv) throws SchemaException { return FieldFinder.find( (String) priv2list.get(priv) ); } // private Field _getField(priv)
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/0d42f94596acd9fca88e0b0c93b18c92a7b23722/GrouperAccessAdapter.java/buggy/grouper/java/grouper/edu/internet2/middleware/grouper/GrouperAccessAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 2286, 389, 588, 974, 12, 24308, 6015, 13, 377, 1216, 225, 4611, 503, 225, 288, 565, 309, 261, 11365, 22, 1098, 18, 12298, 653, 12, 11365, 3719, 288, 327, 2286, 8441, 18, 4720, 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, 282, 3238, 2286, 389, 588, 974, 12, 24308, 6015, 13, 377, 1216, 225, 4611, 503, 225, 288, 565, 309, 261, 11365, 22, 1098, 18, 12298, 653, 12, 11365, 3719, 288, 327, 2286, 8441, 18, 4720, 12,...
nameCombo = new Combo(dialog, SWT.NONE);
nameCombo = new Combo(dialog, SWT.READ_ONLY);
void createSetGetDialog(int x, int y, String[] methodNames) { final Shell dialog = new Shell(eventConsole.getShell (), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MODELESS); dialog.setLayout(new GridLayout(2, false)); dialog.setText(getTabText() + " " + ControlExample.getResourceString ("Set_Get")); nameCombo = new Combo(dialog, SWT.NONE); nameCombo.setItems(methodNames); nameCombo.setText(methodNames[0]); nameCombo.setVisibleItemCount(methodNames.length); nameCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false)); nameCombo.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { resetLabels(); } }); returnTypeLabel = new Label(dialog, SWT.NONE); returnTypeLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false)); setButton = new Button(dialog, SWT.PUSH); setButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false)); setButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { setValue(); } }); setText = new Text(dialog, SWT.SINGLE | SWT.BORDER); setText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false)); getButton = new Button(dialog, SWT.PUSH); getButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false)); getButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { getValue(); } }); getText = new Text(dialog, SWT.MULTI | SWT.BORDER | SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL); GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); data.widthHint = 240; data.heightHint = 200; getText.setLayoutData(data); resetLabels(); dialog.setDefaultButton(setButton); dialog.pack(); dialog.setLocation(x, y); dialog.open(); }
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/cc88e0f21cc7217a7224db51f4b1df347101d5ec/Tab.java/clean/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 752, 694, 967, 6353, 12, 474, 619, 16, 509, 677, 16, 514, 8526, 20383, 13, 288, 202, 202, 6385, 19433, 6176, 273, 394, 19433, 12, 2575, 10215, 18, 588, 13220, 1832, 16, 348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 752, 694, 967, 6353, 12, 474, 619, 16, 509, 677, 16, 514, 8526, 20383, 13, 288, 202, 202, 6385, 19433, 6176, 273, 394, 19433, 12, 2575, 10215, 18, 588, 13220, 1832, 16, 348, ...
BugCollection bugCollection = new SortedBugCollection(); bugCollection.readXML(filename, new Project()); Iterator<BugInstance> i = bugCollection.iterator(); while (i.hasNext()) { BugInstance bugInstance = i.next(); String category = bugInstance.getAbbrev(); if (categorySet.size() > 0 && !categorySet.contains(category)) continue; Integer count = countMap.get(category); if (count == null) count = new Integer(0); countMap.put(category, new Integer(count.intValue() + 1)); } Iterator<Map.Entry<String, Integer>> j = countMap.entrySet().iterator();
Iterator<Map.Entry<String, Integer>> j = countBugs.entryIterator();
public static void main(String[] argv) throws Exception { if (argv.length < 1) { System.err.println("Usage: " + CountBugs.class.getName() + " <results file>"); System.exit(1); } DetectorFactoryCollection.instance(); // load plugins int arg = 0; if (argv[0].equals("-categories")) { StringTokenizer tok = new StringTokenizer(argv[1], ","); while (tok.hasMoreTokens()) { String category = tok.nextToken(); categorySet.add(category); countMap.put(category, new Integer(0)); } arg = 2; } String filename = argv[arg]; BugCollection bugCollection = new SortedBugCollection(); bugCollection.readXML(filename, new Project()); Iterator<BugInstance> i = bugCollection.iterator(); while (i.hasNext()) { BugInstance bugInstance = i.next(); String category = bugInstance.getAbbrev(); if (categorySet.size() > 0 && !categorySet.contains(category)) continue; Integer count = countMap.get(category); if (count == null) count = new Integer(0); countMap.put(category, new Integer(count.intValue() + 1)); } Iterator<Map.Entry<String, Integer>> j = countMap.entrySet().iterator(); while(j.hasNext()) { Map.Entry<String,Integer> entry = j.next(); System.out.println(entry.getKey() + ": " + entry.getValue()); } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0be0662ef06b78c962134cf19f63057c2fec42fd/CountBugs.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/CountBugs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 5261, 13, 1216, 1185, 288, 202, 202, 430, 261, 19485, 18, 2469, 411, 404, 13, 288, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 5357, 30, 315, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5261, 13, 1216, 1185, 288, 202, 202, 430, 261, 19485, 18, 2469, 411, 404, 13, 288, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 5357, 30, 315, 39...
if (jj_3R_99()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_104()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } return false;
if (jj_3R_107()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_108()) { jj_scanpos = xsp; break; }
static final private boolean jj_3R_106() { if (jj_3R_99()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_104()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 22135, 1435, 288, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 2733, 10756, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 3238, 1250, 10684, 67, 23, 54, 67, 22135, 1435, 288, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 2733, 10756, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 1...
throws ModelInterpolationException
throws Exception
public void testShouldNotInterpolateDependencyVersionWithInvalidReference() throws ModelInterpolationException { Model model = new Model(); model.setVersion( "3.8.1" ); Dependency dep = new Dependency(); dep.setVersion( "${something}" ); model.addDependency( dep );/* // This is the desired behaviour, however there are too many crappy poms in the repo and an issue with the // timing of executing the interpolation try { new RegexBasedModelInterpolator().interpolate( model, context ); fail( "Should have failed to interpolate with invalid reference" ); } catch ( ModelInterpolationException expected ) { assertTrue( true ); }*/ Model out = new RegexBasedModelInterpolator().interpolate( model, context ); assertEquals( "${something}", ( (Dependency) out.getDependencies().get( 0 ) ).getVersion() ); }
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/425a841a8bcc4d2342ad333a237d8ed9e415d39e/RegexBasedModelInterpolatorTest.java/buggy/maven-project/src/test/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolatorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14309, 1248, 15665, 340, 7787, 1444, 1190, 1941, 2404, 1435, 3639, 1216, 1185, 565, 288, 3639, 3164, 938, 273, 394, 3164, 5621, 3639, 938, 18, 542, 1444, 12, 315, 23, 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, 918, 1842, 14309, 1248, 15665, 340, 7787, 1444, 1190, 1941, 2404, 1435, 3639, 1216, 1185, 565, 288, 3639, 3164, 938, 273, 394, 3164, 5621, 3639, 938, 18, 542, 1444, 12, 315, 23, 18,...
DateFormat df = DateFormat.getDateTimeInstance();
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.ENGLISH);
public void listAvailableLogs(OutputStreamWriter writer) throws IOException { OldLogFile[] oldLogFiles; synchronized(logFiles) { oldLogFiles = (OldLogFile[]) logFiles.toArray(new OldLogFile[logFiles.size()]); } DateFormat df = DateFormat.getDateTimeInstance(); df.setTimeZone(TimeZone.getTimeZone("GMT")); for(int i=0;i<oldLogFiles.length;i++) { OldLogFile olf = oldLogFiles[i]; writer.write(olf.filename.getName()+" : "+df.format(new Date(olf.start))+" to "+df.format(new Date(olf.end))+ " - "+olf.size+" bytes\n"); } }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/471e8a67c4fbabf6d0b7e2eca8906ca553f5dc52/FileLoggerHook.java/clean/src/freenet/support/FileLoggerHook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 666, 5268, 7777, 12, 4632, 2289, 2633, 13, 1216, 1860, 288, 202, 202, 7617, 19103, 8526, 1592, 1343, 2697, 31, 202, 202, 22043, 12, 1330, 2697, 13, 288, 1082, 202, 1673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 666, 5268, 7777, 12, 4632, 2289, 2633, 13, 1216, 1860, 288, 202, 202, 7617, 19103, 8526, 1592, 1343, 2697, 31, 202, 202, 22043, 12, 1330, 2697, 13, 288, 1082, 202, 1673, ...
LOG.debug("Found old doc " + oldDoc.getDocId() + "; identity = " + oldDoc.hashCode() + "; collection = " + hashCode());
private void checkPermissions(DBBroker broker, String name, DocumentImpl oldDoc) throws LockException, PermissionDeniedException { if (oldDoc != null) {// LOG.debug("Found old doc " + oldDoc.getDocId() + "; identity = " + oldDoc.hashCode()); // check if the document is locked by another user User lockUser = oldDoc.getUserLock(); if(lockUser != null && !lockUser.equals(broker.getUser())) throw new PermissionDeniedException("The document is locked by user " + lockUser.getName()); // check if the document is currently being changed by someone else oldDoc.getUpdateLock().acquire(Lock.WRITE_LOCK); // do we have permissions for update? if (!oldDoc.getPermissions().validate(broker.getUser(), Permission.UPDATE)) throw new PermissionDeniedException( "Document exists and update is not allowed"); if (!(getPermissions().validate(broker.getUser(), Permission.UPDATE) || getPermissions().validate(broker.getUser(), Permission.WRITE))) throw new PermissionDeniedException( "Document exists and update is not allowed for the collection"); // do we have write permissions? } else if (!getPermissions().validate(broker.getUser(), Permission.WRITE)) throw new PermissionDeniedException( "Not allowed to write to collection " + getName()); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/7f8b9e1ed7cd1231abcaa3236c78e26e77e01501/Collection.java/clean/src/org/exist/collections/Collection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 4842, 18, 4148, 2932, 2043, 1592, 997, 315, 397, 1592, 1759, 18, 588, 1759, 548, 1435, 397, 13636, 4215, 273, 315, 397, 1592, 1759, 18, 2816, 1085, 1435, 397, 13636, 1849, 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, 225, 202, 1152, 4842, 18, 4148, 2932, 2043, 1592, 997, 315, 397, 1592, 1759, 18, 588, 1759, 548, 1435, 397, 13636, 4215, 273, 315, 397, 1592, 1759, 18, 2816, 1085, 1435, 397, 13636, 1849, 273,...
setModified(true);
public void setPageCount(int pageCount) { if (pageCount != _pageCount) { _pageCount = pageCount; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/LayoutSetModel.java/clean/portal-ejb/src/com/liferay/portal/model/LayoutSetModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18663, 1380, 12, 474, 1363, 1380, 13, 288, 202, 202, 430, 261, 2433, 1380, 480, 389, 2433, 1380, 13, 288, 1082, 202, 67, 2433, 1380, 273, 1363, 1380, 31, 1082, 202, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18663, 1380, 12, 474, 1363, 1380, 13, 288, 202, 202, 430, 261, 2433, 1380, 480, 389, 2433, 1380, 13, 288, 1082, 202, 67, 2433, 1380, 273, 1363, 1380, 31, 1082, 202, 542, ...
assertTrue("Should fail fast on boolean", testPasses); }
assertTrue("Should fail fast on boolean", testPasses); }
public void testBooleanFail() { myExpectation.setExpected(true); boolean testPasses = false; try { myExpectation.setActual(false); } catch (AssertionFailedError ex) { testPasses = true; } assertTrue("Should fail fast on boolean", testPasses); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/ExpectationValueTest.java/buggy/jmock/core/src/test/jmock/expectation/ExpectationValueTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5507, 3754, 1435, 288, 202, 202, 4811, 11988, 367, 18, 542, 6861, 12, 3767, 1769, 202, 202, 6494, 1842, 6433, 281, 273, 629, 31, 202, 202, 698, 288, 1082, 202, 4811...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 5507, 3754, 1435, 288, 202, 202, 4811, 11988, 367, 18, 542, 6861, 12, 3767, 1769, 202, 202, 6494, 1842, 6433, 281, 273, 629, 31, 202, 202, 698, 288, 1082, 202, 4811...
source.addConsumer (this);
if (source != null) source.addConsumer (this);
GtkImage (ImageProducer producer, Graphics g) { source = producer; this.g = g; source.addConsumer (this); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/19f77a0a29e4b11a2129e6e275e45bb801fa301d/GtkImage.java/buggy/gnu/java/awt/peer/gtk/GtkImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 22132, 2040, 261, 2040, 12140, 12608, 16, 16830, 314, 13, 225, 288, 565, 1084, 273, 12608, 31, 565, 333, 18, 75, 273, 314, 31, 565, 309, 261, 3168, 480, 446, 13, 1084, 18, 1289, 5869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 22132, 2040, 261, 2040, 12140, 12608, 16, 16830, 314, 13, 225, 288, 565, 1084, 273, 12608, 31, 565, 333, 18, 75, 273, 314, 31, 565, 309, 261, 3168, 480, 446, 13, 1084, 18, 1289, 5869, ...
handlePlugin( name, spec, args );
handlePlugin( name, spec, args, true );
private void handleMetro( String[] arguments ) { String[] args = processSystemProperties( arguments ); String name = "metro"; String spec = "@DEPOT-EXEC-URI@"; handlePlugin( name, spec, args ); }
10984 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10984/4915d17173983466739f5346aab1047808098344/Main.java/clean/trunk/main/depot/core/console/src/main/net/dpml/depot/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 12244, 303, 12, 514, 8526, 1775, 262, 565, 288, 3639, 514, 8526, 833, 273, 1207, 3163, 2297, 12, 1775, 11272, 3639, 514, 508, 273, 315, 10578, 303, 14432, 3639, 514, 857,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 12244, 303, 12, 514, 8526, 1775, 262, 565, 288, 3639, 514, 8526, 833, 273, 1207, 3163, 2297, 12, 1775, 11272, 3639, 514, 508, 273, 315, 10578, 303, 14432, 3639, 514, 857,...
GuiConstants.INFOINVENTORY_VIEW_TYPE_NAME));
GuiConstants.INFOINVENTORY_VIEW_TYPE_NAME));
public static Dimension getOptionsFromProperties(final PlayerCharacter aPC) { Dimension d = new Dimension(0, 0); final String tempBrowserPath = getPCGenOption("browserPath", ""); //$NON-NLS-1$ //$NON-NLS-2$ if (!"".equals(tempBrowserPath)) //$NON-NLS-1$ { setBrowserPath(tempBrowserPath); } else { setBrowserPath(null); } PersistenceManager.getInstance().setChosenCampaignSourcefiles(CoreUtility.split(getOptions().getProperty("pcgen.files.chosenCampaignSourcefiles", //$NON-NLS-1$ ""), ',')); //$NON-NLS-1$ setLeftUpperCorner(new Point(getPCGenOption("windowLeftUpperCorner.X", -1.0).intValue(), //$NON-NLS-1$ getPCGenOption("windowLeftUpperCorner.Y", -1.0).intValue())); //$NON-NLS-1$ setWindowState(getPCGenOption("windowState",Frame.NORMAL)); //$NON-NLS-1$ Double dw = getPCGenOption("windowWidth", 0.0); //$NON-NLS-1$ Double dh = getPCGenOption("windowHeight", 0.0); //$NON-NLS-1$ if (!CoreUtility.doublesEqual(dw.doubleValue(), 0.0) && !CoreUtility.doublesEqual(dh.doubleValue(), 0.0)) { final int width = Integer.parseInt(dw.toString().substring(0, Math.min(dw.toString().length(), dw.toString().lastIndexOf(".")))); //$NON-NLS-1$ final int height = Integer.parseInt(dh.toString().substring(0, Math.min(dh.toString().length(), dh.toString().lastIndexOf(".")))); //$NON-NLS-1$ d = new Dimension(width, height); } setCustomizerLeftUpperCorner(new Point(getPCGenOption("customizer.windowLeftUpperCorner.X", -1.0).intValue(), //$NON-NLS-1$ getPCGenOption("customizer.windowLeftUpperCorner.Y", -1.0).intValue())); //$NON-NLS-1$ dw = getPCGenOption("customizer.windowWidth", 0.0); //$NON-NLS-1$ dh = getPCGenOption("customizer.windowHeight", 0.0); //$NON-NLS-1$ if (!CoreUtility.doublesEqual(dw.doubleValue(), 0.0) && !CoreUtility.doublesEqual(dh.doubleValue(), 0.0)) { setCustomizerDimension(new Dimension(dw.intValue(), dh.intValue())); } // // Read in the buy/sell percentages for the gear tab // If not in the .ini file and ignoreCost is set, then use 0% // Otherwise set buy to 100% and sell to %50 // int buyRate = getPCGenOption("GearTab.buyRate", -1); //$NON-NLS-1$ int sellRate = getPCGenOption("GearTab.sellRate", -1); //$NON-NLS-1$ if ((buyRate < 0) || (sellRate < 0)) { if (getPCGenOption("GearTab.ignoreCost", false)) //$NON-NLS-1$ { buyRate = 0; sellRate = 0; } else { buyRate = 100; sellRate = 50; } } Globals.initCustColumnWidth(CoreUtility.split(getOptions().getProperty("pcgen.options.custColumnWidth", ""), ',')); //$NON-NLS-1$ //$NON-NLS-2$ showD20InfoAtStart = getPCGenOption("showD20InfoAtStart", true); //$NON-NLS-1$ loadURLs = getPCGenOption("loadURLs", false); //$NON-NLS-1$ allowOverride = getPCGenOption("allowOverride", false); //$NON-NLS-1$ showOGLOnLoad = getPCGenOption("showOGLOnLoad", true); //$NON-NLS-1$ showSponsorsOnLoad = getPCGenOption("showSponsorsOnLoad", true); //$NON-NLS-1$ Globals.setSourceDisplay(getPCGenOption("sourceDisplay", Constants.SOURCELONG)); //$NON-NLS-1$ Globals.setLanguage(getPCGenOption("language", null)); //$NON-NLS-1$ //$NON-NLS-2$ Globals.setCountry(getPCGenOption("country", null)); //$NON-NLS-1$ //$NON-NLS-2$ setAbilitiesShownAsATab(getPCGenOption("abilitiesShownAsTab", false)); //$NON-NLS-1$ setAlwaysOverwrite(getPCGenOption("alwaysOverwrite", false)); //$NON-NLS-1$ setAutoFeatsRefundable(getPCGenOption("autoFeatsRefundable", false)); //$NON-NLS-1$ setUseFeatBenefits(getPCGenOption("useFeatBenefits", true)); //$NON-NLS-1$ setAutogenExoticMaterial(getPCGenOption("autoGenerateExoticMaterial", false)); //$NON-NLS-1$ setAutogenMagic(getPCGenOption("autoGenerateMagic", false)); //$NON-NLS-1$ setAutogenMasterwork(getPCGenOption("autoGenerateMasterwork", false)); //$NON-NLS-1$ setAutogenRacial(getPCGenOption("autoGenerateRacial", false)); //$NON-NLS-1$ setChaTabPlacement(getOptionTabPlacement("chaTabPlacement", SwingConstants.TOP)); //$NON-NLS-1$ setClassTab_AvailableListMode(getPCGenOption("ClassTab.availableListMode", GuiConstants.INFOCLASS_VIEW_NAME)); //$NON-NLS-1$ setClassTab_SelectedListMode(getPCGenOption("ClassTab.selectedListMode", GuiConstants.INFOCLASS_VIEW_NAME)); //$NON-NLS-1$ setCreatePcgBackup(getPCGenOption("createPcgBackup", true)); setCleanupTempFiles(getPCGenOption("cleanupTempFiles", false)); //$NON-NLS-1$ setCustomizerSplit1(getPCGenOption("customizer.split1", -1)); //$NON-NLS-1$ setCustomizerSplit2(getPCGenOption("customizer.split2", -1)); //$NON-NLS-1$ setDmNotes(getPCGenOption("dmnotes", "")); //$NON-NLS-1$ //$NON-NLS-2$ setDomainTab_ListMode(getPCGenOption("DomainTab.ListMode", GuiConstants.INFODOMAIN_VIEW_NAME)); //$NON-NLS-1$ setEnforceSpendingBeforeLevelUp(getPCGenOption("enforceSpendingBeforeLevelUp", false)); //$NON-NLS-1$ setEquipTab_AvailableListMode(getPCGenOption("EquipTab.availableListMode", GuiConstants.INFOEQUIPPING_VIEW_EQUIPPED)); //$NON-NLS-1$ setEquipTab_SelectedListMode(getPCGenOption("EquipTab.selectedListMode", GuiConstants.INFOEQUIPPING_VIEW_NAME)); //$NON-NLS-1$// setExcSkillCost(getPCGenOption("excSkillCost", 0)); //$NON-NLS-1$ setExpertGUI(getPCGenOption("expertGUI", false)); //$NON-NLS-1$ setFeatAutoColor(getPCGenOption("featAutoColor", Color.yellow.darker().getRGB())); //$NON-NLS-1$ setFeatTab_AvailableListMode(getPCGenOption("FeatTab.availableListMode", GuiConstants.INFOFEATS_VIEW_PREREQTREE)); //$NON-NLS-1$ setFeatTab_SelectedListMode(getPCGenOption("FeatTab.selectedListMode", GuiConstants.INFOFEATS_VIEW_NAMEONLY)); //$NON-NLS-1$ setFeatVirtualColor(getPCGenOption("featVirtualColor", Color.magenta.getRGB())); //$NON-NLS-1$ setGearTab_AllowDebt(getPCGenOption("GearTab.allowDebt", false)); //$NON-NLS-1$ setGearTab_AutoResize(getPCGenOption("GearTab.autoResize", false)); //$NON-NLS-1$ setGearTab_AvailableListMode(getPCGenOption("GearTab.availableListMode", //$NON-NLS-1$ GuiConstants.INFOINVENTORY_VIEW_TYPE_NAME)); setGearTab_BuyRate(buyRate); setGearTab_IgnoreCost(getPCGenOption("GearTab.ignoreCost", false)); //$NON-NLS-1$ setGearTab_SelectedListMode(getPCGenOption("GearTab.selectedListMode", GuiConstants.INFOINVENTORY_VIEW_NAME)); //$NON-NLS-1$ setGearTab_SellRate(sellRate); setGrimHPMode(getPCGenOption("grimHPMode", false)); //$NON-NLS-1$ setGrittyACMode(getPCGenOption("grittyACMode", false)); //$NON-NLS-1$ setGUIUsesOutputNameEquipment(getPCGenOption("GUIUsesOutputNameEquipment", false)); //$NON-NLS-1$ setGUIUsesOutputNameSpells(getPCGenOption("GUIUsesOutputNameSpells", false)); //$NON-NLS-1$ setHideMonsterClasses(getPCGenOption("hideMonsterClasses", false)); //$NON-NLS-1$ setHPMaxAtFirstLevel(getPCGenOption("hpMaxAtFirstLevel", true)); //$NON-NLS-1$ setHPPct(getPCGenOption("hpPct", 100)); //$NON-NLS-1$ setHPRollMethod(getPCGenOption("hpRollMethod", Constants.HP_STANDARD)); //$NON-NLS-1$ setIgnoreMonsterHDCap(getPCGenOption("ignoreMonsterHDCap", false)); //$NON-NLS-1$ setIncludeSkills(getPCGenOption("includeSkills", 3)); //$NON-NLS-1$ setSkillsTab_IncludeSkills(getPCGenOption("skillsTab_IncludeSkills", 1)); //$NON-NLS-1$// setIntCrossClassSkillCost(getPCGenOption("intCrossClassSkillCost", 2)); //$NON-NLS-1$ setInvalidDmgText(getPCGenOption("invalidDmgText", PropertyFactory.getString("SettingsHandler.114"))); //$NON-NLS-1$//$NON-NLS-2$ setInvalidToHitText(getPCGenOption("invalidToHitText", PropertyFactory.getString("SettingsHandler.114"))); //$NON-NLS-1$//$NON-NLS-2$ setLastTipShown(getPCGenOption("lastTipOfTheDayTipShown", -1)); //$NON-NLS-1$ setLoadCampaignsAtStart(getPCGenOption("loadCampaignsAtStart", false)); //$NON-NLS-1$ setLoadCampaignsWithPC(getPCGenOption("loadCampaignsWithPC", true)); //$NON-NLS-1$ setLookAndFeel(getPCGenOption("looknFeel", 0)); //$NON-NLS-1$ setAaText(getPCGenOption("aaText", false)); //$NON-NLS-1$ setMaxPotionSpellLevel(getPCGenOption("maxPotionSpellLevel", 3)); //$NON-NLS-1$ setMaxWandSpellLevel(getPCGenOption("maxWandSpellLevel", 4)); //$NON-NLS-1$ setMetamagicAllowedInEqBuilder(getPCGenOption("allowMetamagicInCustomizer", false)); //$NON-NLS-1$ setMonsterDefault(getPCGenOption("useMonsterDefault", false)); //$NON-NLS-1$ setOptionAllowedInSources(getPCGenOption("optionAllowedInSources", true)); //$NON-NLS-1$ setPccFilesLocation(new File(expandRelativePath(getPCGenOption("pccFilesLocation", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "data")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgenCustomDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenCustomDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "data" + File.separator + "customsources")))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ setPcgenVendorDataDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenVendorDataDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "vendordata")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgenDocsDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenDocsDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "docs")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgenSystemDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenSystemDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "system")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgenThemePackDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenThemePackDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "lib" + File.separator + "themes")))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ setPcgenOutputSheetDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenOutputSheetDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "outputsheets")))); //$NON-NLS-1$ //$NON-NLS-2$ setGmgenPluginDir(new File(expandRelativePath(getOptions().getProperty("gmgen.files.gmgenPluginDir", //$NON-NLS-1$ System.getProperty("user.dir") + File.separator + "plugins")))); //$NON-NLS-1$ //$NON-NLS-2$ setPcgPath(new File(expandRelativePath(getOptions().getProperty("pcgen.files.characters", //$NON-NLS-1$ Globals.getDefaultPcgPath())))); setBackupPcgPath(new File(expandRelativePath(getOptions().getProperty("pcgen.files.characters.backup", "")))); //$NON-NLS-1$ setPortraitsPath(new File(expandRelativePath(getOptions().getProperty("pcgen.files.portraits", //$NON-NLS-1$ Globals.getDefaultPath())))); setPostExportCommandStandard(getPCGenOption("postExportCommandStandard", "")); //$NON-NLS-1$ //$NON-NLS-2$ setPostExportCommandPDF(getPCGenOption("postExportCommandPDF", "")); //$NON-NLS-1$ //$NON-NLS-2$ setPrereqFailColor(getPCGenOption("prereqFailColor", Color.red.getRGB())); //$NON-NLS-1$ setPrereqQualifyColor(getPCGenOption("prereqQualifyColor", Color.black.getRGB())); //$NON-NLS-1$ setPreviewTabShown(getPCGenOption("previewTabShown", true)); //$NON-NLS-1$ setRaceTab_ListMode(getPCGenOption("RaceTab.ListMode", GuiConstants.INFORACE_VIEW_NAME)); //$NON-NLS-1$ setRanStartingWizard(getPCGenOption("ranStartingWizard", false)); //$NON-NLS-1$ setROG(getPCGenOption("isROG", false)); //$NON-NLS-1$ setSaveCustomInLst(getPCGenOption("saveCustomInLst", false)); //$NON-NLS-1$ setSaveOutputSheetWithPC(getPCGenOption("saveOutputSheetWithPC", false)); //$NON-NLS-1$ setPrintSpellsWithPC(getPCGenOption("printSpellsWithPC", true)); //$NON-NLS-1$ setSelectedSpellSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedSpellOutputSheet", ""))); //$NON-NLS-1$ //$NON-NLS-2$ setSelectedCharacterHTMLOutputSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedCharacterHTMLOutputSheet", //$NON-NLS-1$ "")), aPC); //$NON-NLS-1$ setSelectedCharacterPDFOutputSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedCharacterPDFOutputSheet", //$NON-NLS-1$ "")), aPC); //$NON-NLS-1$ setSelectedEqSetTemplate(expandRelativePath(getOptions().getProperty("pcgen.files.selectedEqSetTemplate", ""))); //$NON-NLS-1$ //$NON-NLS-2$ setSelectedPartyHTMLOutputSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedPartyHTMLOutputSheet", //$NON-NLS-1$ ""))); //$NON-NLS-1$ setSelectedPartyPDFOutputSheet(expandRelativePath(getOptions().getProperty("pcgen.files.selectedPartyPDFOutputSheet", //$NON-NLS-1$ ""))); //$NON-NLS-1$ setShowFeatDialogAtLevelUp(getPCGenOption("showFeatDialogAtLevelUp", true)); //$NON-NLS-1$ setShowHPDialogAtLevelUp(getPCGenOption("showHPDialogAtLevelUp", true)); //$NON-NLS-1$ setShowMemoryArea(getPCGenOption("showMemoryArea", false)); //$NON-NLS-1$ setShowImagePreview(getPCGenOption("showImagePreview", true)); //$NON-NLS-1$ setShowStatDialogAtLevelUp(getPCGenOption("showStatDialogAtLevelUp", true)); //$NON-NLS-1$ setShowTipOfTheDay(getPCGenOption("showTipOfTheDay", true)); //$NON-NLS-1$ setShowToolBar(getPCGenOption("showToolBar", true)); //$NON-NLS-1$ setShowSkillModifier(getPCGenOption("showSkillModifier", false)); //$NON-NLS-1$ setShowWarningAtFirstLevelUp(getPCGenOption("showWarningAtFirstLevelUp", true)); //$NON-NLS-1$ setSingleChoicePreference(getPCGenOption("ChooserSingleChoiceMethod", Constants.CHOOSER_SINGLECHOICEMETHOD_NONE)); //$NON-NLS-1$ setSkillsTab_AvailableListMode(getPCGenOption("SkillsTab.availableListMode", //$NON-NLS-1$ GuiConstants.INFOSKILLS_VIEW_TYPE_NAME)); setSkillsTab_SelectedListMode(getPCGenOption("SkillsTab.selectedListMode", GuiConstants.INFOSKILLS_VIEW_NAME)); //$NON-NLS-1$ setSkinLFThemePack(getPCGenOption("skinLFThemePack", "")); //$NON-NLS-1$ //$NON-NLS-2$ setSpellMarketPriceAdjusted(getPCGenOption("spellMarketPriceAdjusted", false)); //$NON-NLS-1$ setSpellsTab_AvailableListMode(getPCGenOption("SpellsTab.availableListMode", GuiConstants.INFOSPELLS_VIEW_CLASS)); //$NON-NLS-1$ setSpellsTab_SelectedListMode(getPCGenOption("SpellsTab.selectedListMode", GuiConstants.INFOSPELLS_VIEW_CLASS)); //$NON-NLS-1$ setSummaryTabShown(getPCGenOption("summaryTabShown", true)); //$NON-NLS-1$ setTabPlacement(getOptionTabPlacement("tabPlacement", SwingConstants.BOTTOM)); //$NON-NLS-1$ setToolTipTextShown(getPCGenOption("toolTipTextShown", true)); //$NON-NLS-1$ setUseHigherLevelSlotsDefault(getPCGenOption("useHigherLevelSlotsDefault", false)); //$NON-NLS-1$ setUseWaitCursor(getPCGenOption("useWaitCursor", true)); //$NON-NLS-1$ setWantToLoadMasterworkAndMagic(getPCGenOption("loadMasterworkAndMagicFromLst", false)); //$NON-NLS-1$ setWeaponProfPrintout(getPCGenOption("weaponProfPrintout", Constants.PRINTOUT_WEAPONPROF)); //$NON-NLS-1$ // Load up all the RuleCheck stuff from the options.ini file // It's stored as: // pcgen.options.rulechecks=aKey:Y|bKey:N|cKey:Y parseRuleChecksFromOptions(getPCGenOption("ruleChecks", "")); //$NON-NLS-1$ //$NON-NLS-2$ try { PersistenceManager.getInstance().initialize(); } catch (PersistenceLayerException e) { ShowMessageDelegate.showMessageDialog(e.getMessage(), Constants.s_APPNAME, MessageType.INFORMATION); } setGame(getPCGenOption("game", Constants.e35_MODE)); //$NON-NLS-1$ Globals.loadAttributeNames(); showNatWeaponTab = getPCGenOption("showNatWeaponTab", false); //$NON-NLS-1$ validateBonuses = getPCGenOption("validateBonuses", false); //$NON-NLS-1$ debugFeats = getPCGenOption("debugFeats", false); //$NON-NLS-1$ return d; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/SettingsHandler.java/buggy/code/src/java/pcgen/core/SettingsHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 13037, 9849, 1265, 2297, 12, 6385, 19185, 7069, 279, 3513, 13, 202, 95, 202, 202, 8611, 302, 273, 394, 13037, 12, 20, 16, 374, 1769, 202, 202, 6385, 514, 1906, 9132, 743,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13037, 9849, 1265, 2297, 12, 6385, 19185, 7069, 279, 3513, 13, 202, 95, 202, 202, 8611, 302, 273, 394, 13037, 12, 20, 16, 374, 1769, 202, 202, 6385, 514, 1906, 9132, 743,...
match(LITERAL_xquery); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable:
match(157); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 158:
public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp322_AST = null; tmp322_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp322_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp323_AST = null; tmp323_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp323_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp324_AST = null; tmp324_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp324_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp325_AST = null; tmp325_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp325_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp326_AST = null; tmp326_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp326_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp327_AST = null; tmp327_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp327_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp328_AST = null; tmp328_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp328_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp329_AST = null; tmp329_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp329_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp330_AST = null; tmp330_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp330_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp331_AST = null; tmp331_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp331_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp332_AST = null; tmp332_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp332_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp333_AST = null; tmp333_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp333_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp334_AST = null; tmp334_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp334_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp335_AST = null; tmp335_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp335_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 139: { org.exist.xquery.parser.XQueryAST tmp336_AST = null; tmp336_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp336_AST); match(139); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp337_AST = null; tmp337_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp337_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp338_AST = null; tmp338_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp338_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp339_AST = null; tmp339_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp339_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 151: { org.exist.xquery.parser.XQueryAST tmp340_AST = null; tmp340_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp340_AST); match(151); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 156: { org.exist.xquery.parser.XQueryAST tmp341_AST = null; tmp341_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp341_AST); match(156); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 157: { org.exist.xquery.parser.XQueryAST tmp342_AST = null; tmp342_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp342_AST); match(157); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 152: { org.exist.xquery.parser.XQueryAST tmp343_AST = null; tmp343_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp343_AST); match(152); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp344_AST = null; tmp344_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp344_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp345_AST = null; tmp345_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp345_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp346_AST = null; tmp346_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp346_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp347_AST = null; tmp347_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp347_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_version: { org.exist.xquery.parser.XQueryAST tmp348_AST = null; tmp348_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp348_AST); match(LITERAL_version); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xquery: { org.exist.xquery.parser.XQueryAST tmp349_AST = null; tmp349_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp349_AST); match(LITERAL_xquery); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp350_AST = null; tmp350_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp350_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp351_AST = null; tmp351_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp351_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp352_AST = null; tmp352_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp352_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp353_AST = null; tmp353_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp353_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp354_AST = null; tmp354_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp354_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp355_AST = null; tmp355_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp355_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp356_AST = null; tmp356_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp356_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp357_AST = null; tmp357_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp357_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp358_AST = null; tmp358_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp358_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp359_AST = null; tmp359_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp359_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp360_AST = null; tmp360_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp360_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp361_AST = null; tmp361_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp361_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp362_AST = null; tmp362_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp362_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp363_AST = null; tmp363_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp363_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp364_AST = null; tmp364_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp364_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp365_AST = null; tmp365_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp365_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp366_AST = null; tmp366_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp366_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp367_AST = null; tmp367_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp367_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp368_AST = null; tmp368_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp368_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp369_AST = null; tmp369_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp369_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp370_AST = null; tmp370_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp370_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp371_AST = null; tmp371_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp371_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp372_AST = null; tmp372_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp372_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp373_AST = null; tmp373_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp373_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp374_AST = null; tmp374_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp374_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp375_AST = null; tmp375_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp375_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp376_AST = null; tmp376_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp376_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp377_AST = null; tmp377_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp377_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xmlspace: { org.exist.xquery.parser.XQueryAST tmp378_AST = null; tmp378_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp378_AST); match(LITERAL_xmlspace); if ( inputState.guessing==0 ) { name = "xmlspace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preserve: { org.exist.xquery.parser.XQueryAST tmp379_AST = null; tmp379_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp379_AST); match(LITERAL_preserve); if ( inputState.guessing==0 ) { name = "preserve"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_strip: { org.exist.xquery.parser.XQueryAST tmp380_AST = null; tmp380_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp380_AST); match(LITERAL_strip); if ( inputState.guessing==0 ) { name = "strip"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ordering: { org.exist.xquery.parser.XQueryAST tmp381_AST = null; tmp381_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp381_AST); match(LITERAL_ordering); if ( inputState.guessing==0 ) { name = "ordering"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_construction: { org.exist.xquery.parser.XQueryAST tmp382_AST = null; tmp382_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp382_AST); match(LITERAL_construction); if ( inputState.guessing==0 ) { name = "construction"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ordered: { org.exist.xquery.parser.XQueryAST tmp383_AST = null; tmp383_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp383_AST); match(LITERAL_ordered); if ( inputState.guessing==0 ) { name = "ordered"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_unordered: { org.exist.xquery.parser.XQueryAST tmp384_AST = null; tmp384_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp384_AST); match(LITERAL_unordered); if ( inputState.guessing==0 ) { name = "unordered"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_typeswitch: { org.exist.xquery.parser.XQueryAST tmp385_AST = null; tmp385_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp385_AST); match(LITERAL_typeswitch); if ( inputState.guessing==0 ) { name = "typeswitch"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_encoding: { org.exist.xquery.parser.XQueryAST tmp386_AST = null; tmp386_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp386_AST); match(LITERAL_encoding); if ( inputState.guessing==0 ) { name = "encoding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b1f955b7f1cec4172ad3be7bd2855bd3cca3e6f2/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
private IPath getNewNameFor(IPath originalName, IWorkspace workspace) { int counter = 1; String resourceName = originalName.lastSegment(); IPath leadupSegment = originalName.removeLastSegments(1); while (true) { String nameSegment; if (counter > 1) nameSegment = WorkbenchMessages.format("CopyFilesAndFoldersOperation.copyNameTwoArgs", new Object[] {new Integer(counter), resourceName}); //$NON-NLS-1$ else nameSegment = WorkbenchMessages.format("CopyFilesAndFoldersOperation.copyNameOneArg", new Object[] {resourceName}); //$NON-NLS-1$ IPath pathToTry = leadupSegment.append(nameSegment); if (!workspace.getRoot().exists(pathToTry)) return pathToTry; counter++; } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/bf752ac27dbe2a869d9900197181599a8561dc6a/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 743, 12654, 461, 1290, 12, 45, 743, 2282, 461, 16, 467, 8241, 6003, 13, 288, 202, 202, 474, 3895, 273, 404, 31, 202, 202, 780, 9546, 273, 2282, 461, 18, 2722, 4131, 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, 225, 202, 1152, 467, 743, 12654, 461, 1290, 12, 45, 743, 2282, 461, 16, 467, 8241, 6003, 13, 288, 202, 202, 474, 3895, 273, 404, 31, 202, 202, 780, 9546, 273, 2282, 461, 18, 2722, 4131, 56...
if (wrap) {
if (isWrappable) {
private QName generateReferenceQname(Message wsdl4jMessage) { QName referenceQName = null; //do the wrapping if required if (wrap) { Map parts = wsdl4jMessage.getParts(); // Iterator partsItertator = parts.keySet().iterator(); // Part thisPart = (Part)(parts.get(partsItertator.next())); // if (thisPart.getElementName() != null) { // throw new RuntimeException( // "We don't support multiple element parts in a WSDL message"); // } // Multipart Message // NOTE (gdaniels) : It appears this code is taking multiple // part declarations and "wrapping" them into a single schema // type. This is fine for RPC style stuff, but should not be // happening for document style. // TODO : sanity check // Check whether this message parts have been made to a type Iterator multipartListIterator = this.resolvedMultipartMessageList.iterator(); boolean multipartAlreadyResolved = false; while (multipartListIterator.hasNext() && !multipartAlreadyResolved) { QName temp = (QName) multipartListIterator.next(); multipartAlreadyResolved = wsdl4jMessage.getQName().equals(temp); } if (multipartAlreadyResolved) { //This message with multiple parts has resolved and a new type has been //made out of it earlier. //FIXME Actual element name should it be xs:, if yes change the qname added to the //resolvedmessage list too. referenceQName = wsdl4jMessage.getQName(); } else { //Get the list of multiparts of the message and create a new Element //out of it and add it to the schema. Element schemaElement = null; WSDLTypes types = womDefinition.getTypes(); //If types is null create a new one to be used for multipart //resolution if any. if (null == types) { //create a new types section types = wsdlComponentFactory.createTypes(); this.womDefinition.setTypes(types); } //create a new Schema extensions element ExtensionFactory extensionFactory = wsdlComponentFactory.createExtensionFactory(); org.apache.wsdl.extensions.Schema schemaExtensibilityElement = (org.apache.wsdl.extensions.Schema) extensionFactory.getExtensionElement( ExtensionConstants.SCHEMA); types.addExtensibilityElement(schemaExtensibilityElement); //add a schema DOM element DocumentBuilder documentBuilder = null; try { documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); } catch (ParserConfigurationException e) { throw new RuntimeException(e); } Document newDoc = documentBuilder.newDocument(); schemaElement = newDoc.createElementNS(XMLSCHEMA_NAMESPACE_URI, XSD_SCHEMA_QUALIFIED_NAME); schemaExtensibilityElement.setElement(schemaElement); //add the namespace declarations String targetNamespaceUri = wsdl4jMessage.getQName().getNamespaceURI(); if (targetNamespaceUri.trim().equals("")){ targetNamespaceUri = getTemporaryNamespaceUri(); } schemaElement.setAttribute(XMLNS_AXIS2WRAPPED, targetNamespaceUri); schemaElement.setAttribute(XSD_TARGETNAMESPACE,targetNamespaceUri); schemaElement.setAttribute("xmlns:"+XMLSCHEMA_NAMESPACE_PREFIX,XMLSCHEMA_NAMESPACE_URI); //add the complex type Document doc = schemaElement.getOwnerDocument(); String name = wsdl4jMessage.getQName().getLocalPart(); Element newComplexType = doc.createElementNS(WSDLPump.XMLSCHEMA_NAMESPACE_URI, WSDLPump.XSD_COMPLEXTYPE_QUALIFIED_NAME); newComplexType.setAttribute(WSDLPump.XSD_NAME, name); // add the sequence // Note - we model the complex type as a sequence! Element cmplxContentSequence = doc.createElementNS(WSDLPump.XMLSCHEMA_NAMESPACE_URI, WSDLPump.XSD_SEQUENCE_QUALIFIED_NAME); Element child; Element relaventElementInSchemaReferedByPart = null; Iterator iterator = parts.keySet().iterator(); while (iterator.hasNext()) { Part part = (Part) parts.get(iterator.next()); //the part name String elementName = part.getName(); //the type name QName schemaTypeName = part.getTypeName(); //see whether this type is already present in one of the schemas NodeList allSchemaElements = schemaElement.getChildNodes(); for(int idx = 0; idx < allSchemaElements.getLength(); idx++){ if(allSchemaElements.item(idx).getNodeType() == Node.ELEMENT_NODE && allSchemaElements.item(idx).getLocalName().equals(WSDLPump.XSD_ELEMENT_QUALIFIED_NAME) && elementName.equals(((Element)allSchemaElements.item(idx)).getAttribute(WSDLPump.XSD_NAME))){ relaventElementInSchemaReferedByPart = (Element)allSchemaElements.item(idx); break; } } child = doc.createElementNS(WSDLPump.XMLSCHEMA_NAMESPACE_URI, WSDLPump.XSD_ELEMENT_QUALIFIED_NAME); child.setAttribute(WSDLPump.XSD_NAME, elementName); if(null != relaventElementInSchemaReferedByPart){ child.setAttribute(WSDLPump.XSD_TYPE, relaventElementInSchemaReferedByPart.getAttribute(WSDLPump.XSD_TYPE)); }else{ String prefix = null; if (XMLSCHEMA_NAMESPACE_URI.equals(schemaTypeName.getNamespaceURI())){ prefix = XMLSCHEMA_NAMESPACE_PREFIX; }else{ prefix = schemaTypeName.getPrefix(); } child.setAttribute(WSDLPump.XSD_TYPE, prefix +":"+schemaTypeName.getLocalPart()); } cmplxContentSequence.appendChild(child); } newComplexType.appendChild(cmplxContentSequence); schemaElement.appendChild(newComplexType); Element newElement = doc.createElementNS(WSDLPump.XMLSCHEMA_NAMESPACE_URI, WSDLPump.XSD_ELEMENT_QUALIFIED_NAME); newElement.setAttribute(WSDLPump.XSD_NAME, wsdl4jMessage.getQName().getLocalPart()); newElement.setAttribute(WSDLPump.XSD_TYPE, "axis2wrapped:"+wsdl4jMessage.getQName().getLocalPart()); schemaElement.appendChild(newElement); ////////////////////////////////////////////////////// // System.out.println("schema = " + schemaElement); ////////////////////////////////////////////////////// //Now since a new type is created augmenting the parts add the QName //of the newly created Element as the messageReference's name. //coincidentally it'll be the messages QName! referenceQName = wsdl4jMessage.getQName(); //Add this message as a resolved message, so that incase some other //operation refer to the same message the if above will take a hit //and the cashed QName can be used instead of creating another type //for the same message. this.resolvedMultipartMessageList.add(referenceQName); } } else { //Only one part so copy the QName of the referenced type. Iterator outputIterator = wsdl4jMessage.getParts().values().iterator(); if (outputIterator.hasNext()) { Part outPart = ((Part) outputIterator.next()); QName typeName; if (null != (typeName = outPart.getTypeName())) { referenceQName = typeName; } else { referenceQName = outPart.getElementName(); } } } return referenceQName; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/85dfc60f011e1f00f27188d7fef0bc15c5f3ea2f/WSDLPump.java/buggy/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16723, 2103, 2404, 53, 529, 12, 1079, 17642, 24, 78, 1079, 13, 288, 3639, 16723, 2114, 13688, 273, 446, 31, 3639, 368, 2896, 326, 14702, 309, 1931, 3639, 309, 261, 291, 2964, 19586,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16723, 2103, 2404, 53, 529, 12, 1079, 17642, 24, 78, 1079, 13, 288, 3639, 16723, 2114, 13688, 273, 446, 31, 3639, 368, 2896, 326, 14702, 309, 1931, 3639, 309, 261, 291, 2964, 19586,...
IsotopeReader reader = new IsotopeReader(new InputStreamReader(ins), builder);
IsotopeReader reader = new IsotopeReader(ins, builder);
private IsotopeFactory(IChemObjectBuilder builder) throws IOException, OptionalDataException, ClassNotFoundException { logger = new LoggingTool(this); logger.info("Creating new IsotopeFactory"); InputStream ins = null; // ObjIn in = null; String errorMessage = "There was a problem getting org.openscience.cdk." + "config.isotopes.xml as a stream"; try { String configFile = "org/openscience/cdk/config/data/isotopes.xml"; if (debug) logger.debug("Getting stream for ", configFile); ins = this.getClass().getClassLoader().getResourceAsStream(configFile); } catch (Exception exception) { logger.error(errorMessage); logger.debug(exception); throw new IOException(errorMessage); } if (ins == null) { logger.error(errorMessage); throw new IOException(errorMessage); } IsotopeReader reader = new IsotopeReader(new InputStreamReader(ins), builder); //in = new ObjIn(ins, new Config().aliasID(false)); //isotopes = (Vector) in.readObject(); isotopes = reader.readIsotopes(); if (debug) logger.debug("Found #isotopes in file: ", isotopes.size()); /* for (int f = 0; f < isotopes.size(); f++) { Isotope isotope = (Isotope)isotopes.elementAt(f); } What's this loop for?? */ majorIsotopes = new Hashtable(); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/e62c5b6e131179e395a1e7e79795056eb1b7eaaa/IsotopeFactory.java/clean/src/org/openscience/cdk/config/IsotopeFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2585, 18946, 1733, 12, 45, 20200, 921, 1263, 2089, 13, 1216, 1860, 16, 4055, 22480, 16, 1082, 202, 797, 3990, 202, 95, 3639, 1194, 273, 394, 10253, 6364, 12, 2211, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2585, 18946, 1733, 12, 45, 20200, 921, 1263, 2089, 13, 1216, 1860, 16, 4055, 22480, 16, 1082, 202, 797, 3990, 202, 95, 3639, 1194, 273, 394, 10253, 6364, 12, 2211, 1769, 3639, ...
public static void generateDefaultHTMLSuite(final RepositoryFileManager repFileMan) throws LogSyntaxException, IOException, ConfigurationException { if (ConfigurationOptions.getLogFileName() == null) { throw new ConfigurationException("Missing logfile name"); } if (ConfigurationOptions.getCheckedOutDirectory() == null) { throw new ConfigurationException("Missing checked out directory"); } final long memoryUsedOnStart = Runtime.getRuntime().totalMemory(); final long startTime = System.currentTimeMillis(); initLogManager(ConfigurationOptions.getLoggingProperties()); LOGGER.info("Parsing SVN log '" + ConfigurationOptions.getLogFileName() + "'"); final FileInputStream logFile = new FileInputStream(ConfigurationOptions.getLogFileName()); final Builder builder = new Builder(repFileMan, ConfigurationOptions.getIncludePattern(), ConfigurationOptions.getExcludePattern()); new SvnLogfileParser(repFileMan, logFile, builder).parse(); logFile.close(); if (ConfigurationOptions.getProjectName() == null) { ConfigurationOptions.setProjectName(builder.getProjectName()); } if (ConfigurationOptions.getWebRepository() != null) { ConfigurationOptions.getWebRepository().setAtticFileNames(builder.getAtticFileNames()); } LOGGER.info("Generating report for " + ConfigurationOptions.getProjectName() + " into " + ConfigurationOptions.getOutputDir()); LOGGER.info("Using " + ConfigurationOptions.getCssHandler()); final Repository content = builder.createRepository(); System.setProperty("java.awt.headless", "true"); ReportConfig config = new ReportConfig( content, ConfigurationOptions.getProjectName(), ConfigurationOptions.getOutputDir(), ConfigurationOptions.getMarkupSyntax(), ConfigurationOptions.getCssHandler()); config.setWebRepository(ConfigurationOptions.getWebRepository()); config.setWebBugtracker(ConfigurationOptions.getWebBugtracker()); config.setNonDeveloperLogins(ConfigurationOptions.getNonDeveloperLogins()); List extraReports = new ArrayList(); extraReports.add(new RepoMapPageMaker(config).toFile()); extraReports.add(new ChurnPageMaker(config).toFile()); new ReportSuiteMaker(config, ConfigurationOptions.getNotes(), extraReports).toFile().write(); final long endTime = System.currentTimeMillis(); final long memoryUsedOnEnd = Runtime.getRuntime().totalMemory(); LOGGER.info("runtime: " + (((double) endTime - startTime) / NUMBER_OF_MS_IN_ONE_SEC) + " seconds"); LOGGER.info("memory usage: " + (((double) memoryUsedOnEnd - memoryUsedOnStart) / KB_IN_ONE_MB) + " kb");
public static void generateDefaultHTMLSuite() throws LogSyntaxException, IOException, ConfigurationException { generateDefaultHTMLSuite(new RepositoryFileManager(ConfigurationOptions.getCheckedOutDirectory()));
public static void generateDefaultHTMLSuite(final RepositoryFileManager repFileMan) throws LogSyntaxException, IOException, ConfigurationException { if (ConfigurationOptions.getLogFileName() == null) { throw new ConfigurationException("Missing logfile name"); } if (ConfigurationOptions.getCheckedOutDirectory() == null) { throw new ConfigurationException("Missing checked out directory"); } final long memoryUsedOnStart = Runtime.getRuntime().totalMemory(); final long startTime = System.currentTimeMillis(); initLogManager(ConfigurationOptions.getLoggingProperties()); LOGGER.info("Parsing SVN log '" + ConfigurationOptions.getLogFileName() + "'"); final FileInputStream logFile = new FileInputStream(ConfigurationOptions.getLogFileName()); final Builder builder = new Builder(repFileMan, ConfigurationOptions.getIncludePattern(), ConfigurationOptions.getExcludePattern()); new SvnLogfileParser(repFileMan, logFile, builder).parse(); logFile.close(); if (ConfigurationOptions.getProjectName() == null) { ConfigurationOptions.setProjectName(builder.getProjectName()); } if (ConfigurationOptions.getWebRepository() != null) { ConfigurationOptions.getWebRepository().setAtticFileNames(builder.getAtticFileNames()); } LOGGER.info("Generating report for " + ConfigurationOptions.getProjectName() + " into " + ConfigurationOptions.getOutputDir()); LOGGER.info("Using " + ConfigurationOptions.getCssHandler()); final Repository content = builder.createRepository(); // make JFreeChart work on systems without GUI System.setProperty("java.awt.headless", "true"); ReportConfig config = new ReportConfig( content, ConfigurationOptions.getProjectName(), ConfigurationOptions.getOutputDir(), ConfigurationOptions.getMarkupSyntax(), ConfigurationOptions.getCssHandler()); config.setWebRepository(ConfigurationOptions.getWebRepository()); config.setWebBugtracker(ConfigurationOptions.getWebBugtracker()); config.setNonDeveloperLogins(ConfigurationOptions.getNonDeveloperLogins()); // add new reports List extraReports = new ArrayList(); extraReports.add(new RepoMapPageMaker(config).toFile()); extraReports.add(new ChurnPageMaker(config).toFile()); new ReportSuiteMaker(config, ConfigurationOptions.getNotes(), extraReports).toFile().write(); final long endTime = System.currentTimeMillis(); final long memoryUsedOnEnd = Runtime.getRuntime().totalMemory(); LOGGER.info("runtime: " + (((double) endTime - startTime) / NUMBER_OF_MS_IN_ONE_SEC) + " seconds"); LOGGER.info("memory usage: " + (((double) memoryUsedOnEnd - memoryUsedOnStart) / KB_IN_ONE_MB) + " kb"); }
49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/2183ca1e44f1bc5b530b2e358c9cfa98f1b5ee9d/Main.java/buggy/src/net/sf/statsvn/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2103, 1868, 4870, 13587, 12, 6385, 6281, 812, 1318, 2071, 812, 5669, 13, 1216, 1827, 14714, 16, 1860, 16, 22196, 288, 202, 202, 430, 261, 1750, 1320, 18, 588, 1343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 1868, 4870, 13587, 12, 6385, 6281, 812, 1318, 2071, 812, 5669, 13, 1216, 1827, 14714, 16, 1860, 16, 22196, 288, 202, 202, 430, 261, 1750, 1320, 18, 588, 1343, ...
+" of an "+data.length +" element array.");
+" on a bitTable of size " + bitTableLength); if (data[i] == keywordPresent) { bitTable.set(nextPatch); resizedQRT = null; } else if (data[i] == keywordAbsent) { bitTable.clear(nextPatch); resizedQRT = null;
private void handlePatch(PatchTableMessage m) throws BadPacketException { //0. Verify that m belongs in this sequence. If we haven't just been //RESET, ensure that m's sequence size matches last message if (sequenceSize!=-1 && sequenceSize!=m.getSequenceSize()) throw new BadPacketException("Inconsistent seq size: " +m.getSequenceSize() +" vs. "+sequenceSize); //If we were just reset, ensure that m's sequence number is one. //Otherwise it should be one greater than the last message received. if (sequenceNumber==-1 ? m.getSequenceNumber()!=1 //reset : sequenceNumber+1!=m.getSequenceNumber()) throw new BadPacketException("Inconsistent seq number: " +m.getSequenceNumber() +" vs. "+sequenceNumber); byte[] data=m.getData(); //1. Start pipelined uncompression. //TODO: check that compression is same as last message. if (m.getCompressor()==PatchTableMessage.COMPRESSOR_DEFLATE) { try { //a) If first message, create uncompressor (if needed). if (m.getSequenceNumber()==1) { uncompressor = new Inflater(); } Assert.that(uncompressor!=null, "Null uncompressor. Sequence: "+m.getSequenceNumber()); data=uncompress(data); } catch (IOException e) { throw new BadPacketException("Couldn't uncompress data: "+e); } } else if (m.getCompressor()!=PatchTableMessage.COMPRESSOR_NONE) { throw new BadPacketException("Unknown compressor"); } //2. Expand nibbles if necessary. if (m.getEntryBits()==4) data=unhalve(data); else if (m.getEntryBits()!=8) throw new BadPacketException("Unknown value for entry bits"); //3. Add data[0...] to table[nextPatch...] for (int i=0; i<data.length; i++) { try { if (data[i] == keywordPresent) { bitTable.set(nextPatch); resizedQRT = null; } else if (data[i] == keywordAbsent) { bitTable.clear(nextPatch); resizedQRT = null; } } catch (IndexOutOfBoundsException e) { throw new BadPacketException("Tried to patch "+nextPatch +" of an "+data.length +" element array."); } nextPatch++; } //4. Update sequence numbers. this.sequenceSize=m.getSequenceSize(); if (m.getSequenceNumber()!=m.getSequenceSize()) { this.sequenceNumber=m.getSequenceNumber(); } else { //Sequence complete. this.sequenceNumber=-1; this.sequenceSize=-1; this.nextPatch=0; //TODO: is this right? // if this last message was compressed, release the uncompressor. if( this.uncompressor != null ) { this.uncompressor.end(); this.uncompressor = null; } } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/3de381667733e3d24aab8498481b7361e73aad25/QueryRouteTable.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/routing/QueryRouteTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 7332, 12, 7332, 1388, 1079, 312, 13, 1216, 6107, 6667, 503, 288, 3639, 368, 20, 18, 8553, 716, 312, 11081, 316, 333, 3102, 18, 225, 971, 732, 15032, 1404, 2537, 2118, 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, 3238, 918, 1640, 7332, 12, 7332, 1388, 1079, 312, 13, 1216, 6107, 6667, 503, 288, 3639, 368, 20, 18, 8553, 716, 312, 11081, 316, 333, 3102, 18, 225, 971, 732, 15032, 1404, 2537, 2118, 3...
InputDataThingNode thingNode = (InputDataThingNode) value; Object userObject = thingNode.getUserObject(); String summaryText = "bleh"; if (userObject instanceof String) { summaryText = (String) userObject; if (summaryText.length() > 25) { summaryText = "<html><em>Click to edit...</em></html>"; } } setText(summaryText);
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus); if (value instanceof InputPortNode) { setIcon(ScuflIcons.inputIcon); } else if (value instanceof InputDataThingNode) { setIcon(ScuflIcons.inputValueIcon); InputDataThingNode thingNode = (InputDataThingNode) value; Object userObject = thingNode.getUserObject(); String summaryText = "bleh"; if (userObject instanceof String) { summaryText = (String) userObject; if (summaryText.length() > 25) { summaryText = "<html><em>Click to edit...</em></html>"; } } setText(summaryText); } else if (value instanceof InputListNode) { if (expanded) { setIcon(ScuflIcons.folderOpenIcon); } else { setIcon(ScuflIcons.folderClosedIcon); } setText("Input List"); } else if (expanded) { setIcon(ScuflIcons.folderOpenIcon); } else { setIcon(ScuflIcons.folderClosedIcon); } return this; }
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/183dcddac13f6ef134302413d7c3a9f1ab630fd0/DataThingConstructionPanel.java/clean/trunk/taverna1.0/src/org/embl/ebi/escience/scuflui/DataThingConstructionPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1033, 460, 16, 1250, 357, 16, 1250, 8406, 16, 9506, 202, 6494, 7839, 16, 509, 1027, 16, 1250, 711, 9233, 13, 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, 3196, 202, 482, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1033, 460, 16, 1250, 357, 16, 1250, 8406, 16, 9506, 202, 6494, 7839, 16, 509, 1027, 16, 1250, 711, 9233, 13, 202, 202, ...
public String getRrdRepository() {
private String getRrdRepository() {
public String getRrdRepository() { return m_config.getRrdRepository(); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/c7fb1c0267a7b284c70383a68c91521d57e9172c/DataCollectionConfigFactory.java/buggy/src/services/org/opennms/netmgt/config/DataCollectionConfigFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 4170, 13623, 3305, 1435, 288, 3639, 327, 312, 67, 1425, 18, 588, 54, 13623, 3305, 5621, 565, 289, 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, 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, 514, 4170, 13623, 3305, 1435, 288, 3639, 327, 312, 67, 1425, 18, 588, 54, 13623, 3305, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
progress.setBorderPainted(false); progress.setString("jEdit " + jEdit.getVersion() + " is starting up..."); progress.setBackground(Color.white);
progress.setString("jEdit version: " + jEdit.getVersion());
public SplashScreen() { setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); JPanel splash = new JPanel(new BorderLayout()); URL url = getClass().getResource("/org/gjt/sp/jedit/jedit_logo.gif"); if(url != null) { splash.add(new JLabel(new ImageIcon(url)), BorderLayout.CENTER); } progress = new JProgressBar(0,6); progress.setStringPainted(true); progress.setBorderPainted(false); progress.setString("jEdit " + jEdit.getVersion() + " is starting up..."); progress.setBackground(Color.white); splash.add(BorderLayout.SOUTH,progress); splash.setBorder(new MatteBorder(1,1,1,1,Color.black)); setContentPane(splash); Dimension screen = getToolkit().getScreenSize(); pack(); setLocation((screen.width - getSize().width) / 2, (screen.height - getSize().height) / 2); show(); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/47ec5242657f44695ff8e27f4e3863f760de353b/SplashScreen.java/clean/org/gjt/sp/jedit/gui/SplashScreen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 29356, 7956, 1435, 202, 95, 202, 202, 542, 6688, 12, 6688, 18, 588, 1386, 2178, 6688, 12, 6688, 18, 19046, 67, 7509, 55, 916, 10019, 202, 202, 46, 5537, 6121, 961, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29356, 7956, 1435, 202, 95, 202, 202, 542, 6688, 12, 6688, 18, 588, 1386, 2178, 6688, 12, 6688, 18, 19046, 67, 7509, 55, 916, 10019, 202, 202, 46, 5537, 6121, 961, 273, 394, ...
single = new Dimension(fixedCellWidth, fixedCellHeight); } else if (nrows != 0 && getUI() != null) { Rectangle tmp = getUI().getCellBounds(this, 0, 0); if (tmp != null) single = tmp.getSize(); }
if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new Dimension(fixedCellWidth, size * fixedCellHeight); } }
public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { if (fixedCellWidth != -1 && fixedCellHeight != -1) { single = new Dimension(fixedCellWidth, fixedCellHeight); } else if (nrows != 0 && getUI() != null) { Rectangle tmp = getUI().getCellBounds(this, 0, 0); if (tmp != null) single = tmp.getSize(); } } else if (getUI() != null) { return getUI().getCellBounds(this, 0, vis - 1).getSize(); } return new Dimension(single.width, single.height * vis); }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/7878167de36c868f3f4b0f507094bb155efbb199/JList.java/buggy/libjava/javax/swing/JList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 12822, 4193, 6806, 429, 22743, 1225, 1435, 225, 288, 565, 509, 2281, 273, 31564, 26359, 5621, 565, 509, 18871, 273, 7454, 1435, 422, 446, 692, 374, 294, 7454, 7675, 588, 1225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13037, 12822, 4193, 6806, 429, 22743, 1225, 1435, 225, 288, 565, 509, 2281, 273, 31564, 26359, 5621, 565, 509, 18871, 273, 7454, 1435, 422, 446, 692, 374, 294, 7454, 7675, 588, 1225, ...
Iterator resourcesEnum = resources.iterator();
final void execute(IProgressMonitor monitor) { //1FTIMQN: ITPCORE:WIN - clients required to do too much iteration work List resources = getActionResources(); if (shouldPerformResourcePruning()) { resources = pruneResources(resources); } Iterator resourcesEnum = resources.iterator(); // 1FV0B3Y: ITPUI:ALL - sub progress monitors granularity issues monitor.beginTask("", resources.size() * 1000); //$NON-NLS-1$ // Fix for bug 31768 - Don't provide a task name in beginTask // as it will be appended to each subTask message. Need to // call setTaskName as its the only was to assure the task name is // set in the monitor (see bug 31824) monitor.setTaskName(getOperationMessage()); try { while (resourcesEnum.hasNext()) { IResource resource = (IResource) resourcesEnum.next(); try { // 1FV0B3Y: ITPUI:ALL - sub progress monitors granularity issues invokeOperation(resource, new SubProgressMonitor(monitor, 1000)); } catch (CoreException e) { recordError(e); } if (monitor.isCanceled()) throw new OperationCanceledException(); } } finally { monitor.done(); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ae2958210a6a16f7ababc95edab15604121e9bce/WorkspaceAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 918, 1836, 12, 45, 5491, 7187, 6438, 13, 288, 3639, 368, 21, 4464, 3445, 53, 50, 30, 24142, 3513, 8607, 30, 24572, 300, 7712, 1931, 358, 741, 4885, 9816, 6532, 1440, 3639, 987, 270...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 1836, 12, 45, 5491, 7187, 6438, 13, 288, 3639, 368, 21, 4464, 3445, 53, 50, 30, 24142, 3513, 8607, 30, 24572, 300, 7712, 1931, 358, 741, 4885, 9816, 6532, 1440, 3639, 987, 270...
if (fInElementContent) { if (fStandaloneReader != -1 && fValidating && getElementDeclIsExternal(fCurrentElementIndex)) { reportRecoverableXMLError(XMLMessages.MSG_WHITE_SPACE_IN_ELEMENT_CONTENT_WHEN_STANDALONE, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION); } fDocumentHandler.ignorableWhitespace(chars, offset, length); } else { if (fCurrentContentSpecType == XMLElementDecl.TYPE_EMPTY) { charDataInContent(); } fDocumentHandler.characters(chars, offset, length); }
if (fInElementContent) { if (fStandaloneReader != -1 && fValidating && getElementDeclIsExternal(fCurrentElementIndex)) { reportRecoverableXMLError(XMLMessages.MSG_WHITE_SPACE_IN_ELEMENT_CONTENT_WHEN_STANDALONE, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION); } fDocumentHandler.ignorableWhitespace(chars, offset, length); } else { if (fCurrentContentSpecType == XMLElementDecl.TYPE_EMPTY) { charDataInContent(); } fDocumentHandler.characters(chars, offset, length); }
public void processWhitespace(char[] chars, int offset, int length) throws Exception { if (fInElementContent) { if (fStandaloneReader != -1 && fValidating && getElementDeclIsExternal(fCurrentElementIndex)) { reportRecoverableXMLError(XMLMessages.MSG_WHITE_SPACE_IN_ELEMENT_CONTENT_WHEN_STANDALONE, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION); } fDocumentHandler.ignorableWhitespace(chars, offset, length); } else { if (fCurrentContentSpecType == XMLElementDecl.TYPE_EMPTY) { charDataInContent(); } fDocumentHandler.characters(chars, offset, length); } } // processWhitespace(char[],int,int)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/f2b9ad84920b2015a53c9a67b4dfb5460fa0465e/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 9431, 12, 3001, 8526, 5230, 16, 509, 1384, 16, 509, 769, 13, 377, 1216, 1185, 288, 3639, 309, 261, 74, 382, 1046, 1350, 13, 288, 5411, 309, 261, 74, 20612, 12451, 2514,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9431, 12, 3001, 8526, 5230, 16, 509, 1384, 16, 509, 769, 13, 377, 1216, 1185, 288, 3639, 309, 261, 74, 382, 1046, 1350, 13, 288, 5411, 309, 261, 74, 20612, 12451, 2514,...
for(int i=0;i<pn.getHandshakeIPs().length;i++){ if( pn.getHandshakeIPs()[i].getAddress() == null ) continue; sendFirstHalfDHPacket(0, ctx.getOurExponential(), pn, pn.getHandshakeIPs()[i]);
int sentCount = 0; for(int i=0;i<handshakeIPs.length;i++){ if( handshakeIPs[i].getAddress() == null ) continue; sendFirstHalfDHPacket(0, ctx.getOurExponential(), pn, handshakeIPs[i]);
public void sendHandshake(PeerNode pn) { Logger.minor(this, "Possibly sending handshake to "+pn); DiffieHellmanContext ctx; synchronized(pn) { if((!pn.shouldSendHandshake()) || pn.getHandshakeIPs().length == 0) { return; } else { ctx = DiffieHellman.generateContext(); pn.setDHContext(ctx); } } for(int i=0;i<pn.getHandshakeIPs().length;i++){ if( pn.getHandshakeIPs()[i].getAddress() == null ) continue; sendFirstHalfDHPacket(0, ctx.getOurExponential(), pn, pn.getHandshakeIPs()[i]); pn.sentHandshake(); } }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/adea4eef4bc58940c38dc3f9301a3c0cb2f7e9a9/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 14545, 12, 6813, 907, 11059, 13, 288, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 1616, 8781, 5431, 11942, 358, 13773, 7449, 1769, 3639, 13008, 1385, 44, 1165, 4728, 1042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 14545, 12, 6813, 907, 11059, 13, 288, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 1616, 8781, 5431, 11942, 358, 13773, 7449, 1769, 3639, 13008, 1385, 44, 1165, 4728, 1042, ...
Point p = rr.getPoint( iPointToCheck );
Location p = rr.getPoint( iPointToCheck );
public final boolean checkFit( IDisplayServer xs, Label la, int iLabelLocation ) throws ChartException { if ( iType == TEXT || bCategoryScale ) // !MUST IGNORE the label visibility here.Don't check it! // || !la.isSetVisible( ) // || ( la.isSetVisible( ) && !la.isVisible( ) ) ) { return true; } final double dAngleInDegrees = la.getCaption( ) .getFont( ) .getRotation( ); double x = 0, y = 0; int iPointToCheck = 0; if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) { iPointToCheck = ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) ? 3 : 0; } else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) { iPointToCheck = ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) ? 2 : 3; } double[] da = daTickCoordinates; RotatedRectangle rrPrev = null, rrPrev2 = null, rr; if ( ( iType & ( NUMERICAL | LINEAR ) ) == ( NUMERICAL | LINEAR ) ) { double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); String sText; DecimalFormat df = null; if ( fs == null ) // CREATE IF FORMAT SPECIFIER IS UNDEFINED { df = new DecimalFormat( getNumericPattern( ) ); } final NumberDataElement nde = NumberDataElementImpl.create( 0 ); for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = NULL_STRING; } if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) { x = da[i]; } else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) { y = da[i]; } la.getCaption( ).setValue( sText ); try { rr = computePolygon( xs, iLabelLocation, la, x, y ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } Point p = rr.getPoint( iPointToCheck ); if ( isAxisLabelStaggered( ) && i % 2 == 1 ) { if ( rrPrev2 != null && ( rrPrev2.contains( p ) || rrPrev2.getPoint( iPointToCheck ) .equals( p ) || rr.intersects( rrPrev2.getBounds2D( ) ) ) ) { return false; } rrPrev2 = rr; } else { if ( rrPrev != null && ( rrPrev.contains( p ) || rrPrev.getPoint( iPointToCheck ) .equals( p ) || rr.intersects( rrPrev.getBounds2D( ) ) ) ) { return false; } rrPrev = rr; } dAxisValue += dAxisStep; } } else if ( ( iType & ( NUMERICAL | LOGARITHMIC ) ) == ( NUMERICAL | LOGARITHMIC ) ) { double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); String sText; NumberDataElement nde = NumberDataElementImpl.create( 0 ); DecimalFormat df = null; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); if ( fs == null ) { df = new DecimalFormat( getNumericPattern( dAxisValue ) ); } try { sText = ValueFormatter.format( nde, fs, rtc.getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = NULL_STRING; } if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) { x = da[i]; } else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) { y = da[i]; } la.getCaption( ).setValue( sText ); try { rr = computePolygon( xs, iLabelLocation, la, x, y ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } Point p = rr.getPoint( iPointToCheck ); if ( isAxisLabelStaggered( ) && i % 2 == 1 ) { if ( rrPrev2 != null && ( rrPrev2.contains( p ) || rrPrev2.getPoint( iPointToCheck ) .equals( p ) || rr.intersects( rrPrev2.getBounds2D( ) ) ) ) { return false; } rrPrev2 = rr; } else { if ( rrPrev != null && ( rrPrev.contains( p ) || rrPrev.getPoint( iPointToCheck ) .equals( p ) ) ) { return false; } rrPrev = rr; } dAxisValue *= dAxisStep; } } else if ( iType == DATE_TIME ) { CDateTime cdt, cdtAxisValue = asDateTime( oMinimum ); final int iUnit = asInteger( oUnit ); final int iStep = asInteger( oStep ); final SimpleDateFormat sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); String sText; cdt = cdtAxisValue; for ( int i = 0; i < da.length; i++ ) { sText = sdf.format( cdt.getTime( ) ); if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) x = da[i]; else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) y = da[i]; la.getCaption( ).setValue( sText ); try { rr = computePolygon( xs, iLabelLocation, la, x, y ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } Point p = rr.getPoint( iPointToCheck ); if ( isAxisLabelStaggered( ) && i % 2 == 1 ) { if ( rrPrev2 != null && ( rrPrev2.contains( p ) || rrPrev2.getPoint( iPointToCheck ) .equals( p ) || rr.intersects( rrPrev2.getBounds2D( ) ) ) ) { return false; } rrPrev2 = rr; } else { if ( rrPrev != null && ( rrPrev.contains( p ) || rrPrev.getPoint( iPointToCheck ) .equals( p ) ) ) { return false; } rrPrev = rr; } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } return true; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/6618c22738cb830a4ebf9a96efc9f66a82fd43a3/AutoScale.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 1250, 866, 14219, 12, 1599, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 1082, 202, 474, 277, 2224, 2735, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 277, 559, 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, 225, 202, 482, 727, 1250, 866, 14219, 12, 1599, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 1082, 202, 474, 277, 2224, 2735, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 277, 559, 422,...
/* replaced by fast-fail on getNode if(child.getNode() == null) { u.p("null node of child: " + child); } */ renderer = c.getRenderer(child.getNode());
if (child.getContent() == null) { XRLog.render(Level.WARNING, "null node of child: " + child + " of type " + child.getClass().getName()); renderer = new InlineRenderer(); } else { renderer = c.getRenderer(child.getContent().getElement()); }
public void paintChildren(Context c, Box box) { //u.p("Layout.paintChildren(): " + box); //u.p("child count = " + box.getChildCount()); for (int i = 0; i < box.getChildCount(); i++) { Box child = (Box) box.getChild(i); //u.p("child = " + child); Renderer renderer = null; if (child.isAnonymous()) { renderer = c.getRenderingContext().getLayoutFactory().getAnonymousRenderer(); } else { /* replaced by fast-fail on getNode if(child.getNode() == null) { u.p("null node of child: " + child); } */ renderer = c.getRenderer(child.getNode()); } paintChild(c, child, renderer); } }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/DefaultRenderer.java/clean/src/java/org/xhtmlrenderer/render/DefaultRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 4212, 12, 1042, 276, 16, 8549, 3919, 13, 288, 3639, 368, 89, 18, 84, 2932, 3744, 18, 84, 1598, 4212, 13332, 315, 397, 3919, 1769, 3639, 368, 89, 18, 84, 2932, 3624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 4212, 12, 1042, 276, 16, 8549, 3919, 13, 288, 3639, 368, 89, 18, 84, 2932, 3744, 18, 84, 1598, 4212, 13332, 315, 397, 3919, 1769, 3639, 368, 89, 18, 84, 2932, 3624, ...
else {
for (int i = 0; i < WOClasspathContainer .WOLIPS_CLASSPATH_STANDARD_FRAMEWORKS .length; i++) { path = path.append( "/" + WOClasspathContainer .WOLIPS_CLASSPATH_STANDARD_FRAMEWORKS[i]); } } else {
public WOClasspathContainerPath(IClasspathEntry containerEntry) { IPath path = null; if (containerEntry == null || containerEntry.getPath() == null) path = new Path( WOClasspathContainer.WOLIPS_CLASSPATH_CONTAINER_IDENTITY); else { isExported = containerEntry.isExported(); path = containerEntry.getPath(); } String[] classpathVariables = WOLipsCore.getClasspathVariablesAccessor().classpathVariables(); roots = new WOClasspathContainerRoot[classpathVariables.length]; for (int i = 0; i < classpathVariables.length; i++) { roots[i] = new WOClasspathContainerRoot(classpathVariables[i], path); } }
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/45e2629d00a1ead22f08cdd2acee11dc75701ff3/WOClasspathContainerPath.java/clean/projects/wolips/plugins/org.objectstyle.wolips/java/org/objectstyle/wolips/core/classpath/WOClasspathContainerPath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 678, 51, 17461, 2170, 743, 12, 45, 17461, 1622, 1478, 1622, 13, 288, 202, 202, 45, 743, 589, 273, 446, 31, 202, 202, 430, 261, 3782, 1622, 422, 446, 747, 1478, 1622, 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, 225, 202, 482, 678, 51, 17461, 2170, 743, 12, 45, 17461, 1622, 1478, 1622, 13, 288, 202, 202, 45, 743, 589, 273, 446, 31, 202, 202, 430, 261, 3782, 1622, 422, 446, 747, 1478, 1622, 18, 588...
txtHeight = new LocalizedNumberEditorComposite( grpAreaIncluding,
txtHeight = new LocalizedNumberEditorComposite( leftComp,
protected Composite getComponent( Composite parent ) { ChartUIUtil.bindHelp( parent, ChartHelpContextIds.POPUP_PLOT_AREA_FORMAT ); cmpContent = new Composite( parent, SWT.NONE ); cmpContent.setLayout( new GridLayout( ) ); Group grpAreaIncluding = new Group( cmpContent, SWT.NONE ); { grpAreaIncluding.setLayout( new GridLayout( 4, false ) ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); grpAreaIncluding.setLayoutData( gd ); grpAreaIncluding.setText( getChart( ) instanceof ChartWithAxes ? Messages.getString( "ChartPlotSheetImpl.Label.AreaIncludingAxes" ) : Messages.getString( "ChartPlotSheetImpl.Label.PlotArea" ) ); //$NON-NLS-1$ //$NON-NLS-2$ } Label lblAnchor = new Label( grpAreaIncluding, SWT.NONE ); GridData gdLBLAnchor = new GridData( ); lblAnchor.setLayoutData( gdLBLAnchor ); lblAnchor.setText( Messages.getString( "MoreOptionsChartPlotSheet.Label.Anchor" ) ); //$NON-NLS-1$ cmbAnchor = new Combo( grpAreaIncluding, SWT.DROP_DOWN | SWT.READ_ONLY ); GridData gdCBAnchor = new GridData( GridData.FILL_HORIZONTAL ); cmbAnchor.setLayoutData( gdCBAnchor ); cmbAnchor.addSelectionListener( this ); Group grpOutline = new Group( grpAreaIncluding, SWT.NONE ); GridData gdGRPOutline = new GridData( GridData.FILL_HORIZONTAL ); gdGRPOutline.horizontalSpan = 2; gdGRPOutline.verticalSpan = 4; gdGRPOutline.widthHint = 150; grpOutline.setLayoutData( gdGRPOutline ); grpOutline.setLayout( new FillLayout( ) ); grpOutline.setText( Messages.getString( "MoreOptionsChartPlotSheet.Label.Outline" ) ); //$NON-NLS-1$ outlineIncluding = new LineAttributesComposite( grpOutline, SWT.NONE, getContext( ), getBlockForProcessing( ).getOutline( ), true, true, false ); outlineIncluding.addListener( this ); Label lblStretch = new Label( grpAreaIncluding, SWT.NONE ); { GridData gd = new GridData( ); lblStretch.setLayoutData( gd ); lblStretch.setText( Messages.getString( "MoreOptionsChartPlotSheet.Label.Stretch" ) ); //$NON-NLS-1$ } cmbStretch = new Combo( grpAreaIncluding, SWT.DROP_DOWN | SWT.READ_ONLY ); { GridData gd = new GridData( GridData.FILL_HORIZONTAL ); cmbStretch.setLayoutData( gd ); cmbStretch.addSelectionListener( this ); } Label lblVerticalSpacing = new Label( grpAreaIncluding, SWT.NONE ); lblVerticalSpacing.setLayoutData( new GridData( ) ); lblVerticalSpacing.setText( Messages.getString( "BlockAttributeComposite.Lbl.VerticalSpacing" ) ); //$NON-NLS-1$ iscVSpacing = new IntegerSpinControl( grpAreaIncluding, SWT.NONE, getBlockForProcessing( ).getVerticalSpacing( ) ); iscVSpacing.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); iscVSpacing.addListener( this ); Label lblHorizontalSpacing = new Label( grpAreaIncluding, SWT.NONE ); lblHorizontalSpacing.setLayoutData( new GridData( ) ); lblHorizontalSpacing.setText( Messages.getString( "BlockAttributeComposite.Lbl.HorizontalSpacing" ) ); //$NON-NLS-1$ iscHSpacing = new IntegerSpinControl( grpAreaIncluding, SWT.NONE, getBlockForProcessing( ).getHorizontalSpacing( ) ); iscHSpacing.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); iscHSpacing.addListener( this ); new Label( grpAreaIncluding, SWT.NONE ).setText( Messages.getString( "PlotClientAreaSheet.Label.HeightHint" ) ); //$NON-NLS-1$ txtHeight = new LocalizedNumberEditorComposite( grpAreaIncluding, SWT.BORDER ); { txtHeight.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); if ( getBlockForProcessing( ).isSetHeightHint( ) ) { txtHeight.setValue( getBlockForProcessing( ).getHeightHint( ) ); } else { txtHeight.setValue( -1 ); } txtHeight.addModifyListener( this ); } icIncluding = new InsetsComposite( grpAreaIncluding, SWT.NONE, getBlockForProcessing( ).getInsets( ), getChart( ).getUnits( ), getContext( ).getUIServiceProvider( ) ); GridData gdInsets = new GridData( GridData.FILL_HORIZONTAL ); gdInsets.horizontalSpan = 2; gdInsets.verticalSpan = 3; icIncluding.setLayoutData( gdInsets ); new Label( grpAreaIncluding, SWT.NONE ).setText( Messages.getString( "PlotClientAreaSheet.Label.WidthHint" ) ); //$NON-NLS-1$ txtWidth = new LocalizedNumberEditorComposite( grpAreaIncluding, SWT.BORDER ); { txtWidth.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); if ( getBlockForProcessing( ).isSetWidthHint( ) ) { txtWidth.setValue( getBlockForProcessing( ).getWidthHint( ) ); } else { txtWidth.setValue( -1 ); } txtWidth.addModifyListener( this ); } new Label( grpAreaIncluding, SWT.NONE ); new Label( grpAreaIncluding, SWT.NONE ); Group grpAreaWithin = new Group( cmpContent, SWT.NONE ); { grpAreaWithin.setLayout( new GridLayout( 4, false ) ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); grpAreaWithin.setLayoutData( gd ); grpAreaWithin.setText( getChart( ) instanceof ChartWithAxes ? Messages.getString( "ChartPlotSheetImpl.Label.AreaWithinAxes" ) : Messages.getString( "ChartPlotSheetImpl.Label.ClientArea" ) ); //$NON-NLS-1$ //$NON-NLS-2$ } createClientArea( grpAreaWithin ); populateLists( ); return cmpContent; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/6377e2045e57c60537fee274de4ca8105155e673/PlotClientAreaSheet.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/chart/PlotClientAreaSheet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 14728, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 7984, 5370, 1304, 18, 4376, 6696, 12, 982, 16, 9506, 202, 7984, 6696, 1042, 2673, 18, 30374, 3079, 67, 20485, 56, 67, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14728, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 7984, 5370, 1304, 18, 4376, 6696, 12, 982, 16, 9506, 202, 7984, 6696, 1042, 2673, 18, 30374, 3079, 67, 20485, 56, 67, 20...
jjCheckNAddTwoStates(66, 67);
jjCheckNAddTwoStates(64, 65); break; case 66: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(66, 67);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 75; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0x3ff000000000000L & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 2: case 41: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(2, 3); break; case 3: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: case 50: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 10: case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: case 63: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 13); break; case 13: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(14); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 17: case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(20); break; case 20: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if ((0x600000000000L & l) != 0L) jjCheckNAddStates(27, 29); break; case 26: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 33); break; case 28: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(34, 36); break; case 29: if (curChar != 46) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(29, 30); break; case 30: if (curChar == 45) jjCheckNAdd(31); break; case 31: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(32, 33); break; case 33: if (curChar == 46) jjCheckNAdd(34); break; case 34: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: case 39: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 42: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 44: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 45: case 46: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(46, 47); break; case 47: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(48); break; case 48: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 53: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: case 55: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(57); break; case 57: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 59: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 60: case 61: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(62, 63); break; case 66: if (curChar == 39) jjstateSet[jjnewStateCnt++] = 67; break; case 69: if (curChar == 46) jjCheckNAdd(70); break; case 71: if (curChar != 46) break; if (kind > 3) kind = 3; jjCheckNAdd(70); break; case 73: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 74; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(40, 45); if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(46, 47); break; case 3: if (curChar == 95) jjCheckNAdd(4); break; case 4: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if (curChar == 95) jjCheckNAdd(7); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if (curChar == 95) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(48, 49); break; case 13: if (curChar == 95) jjCheckNAdd(14); break; case 14: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if (curChar == 95) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(50, 51); break; case 19: if (curChar == 95) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(24, 26); break; case 25: if (curChar == 95) jjCheckNAdd(26); break; case 26: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 33); break; case 27: if (curChar == 64) jjCheckNAdd(28); break; case 28: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(34, 36); break; case 31: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(32, 33); break; case 34: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: if (curChar == 95) jjCheckNAddTwoStates(37, 38); break; case 37: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 39: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 39; break; case 40: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 42: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: if (curChar == 95) jjCheckNAddTwoStates(44, 45); break; case 44: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 46: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(52, 53); break; case 47: if (curChar == 95) jjCheckNAdd(48); break; case 48: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: if (curChar == 95) jjCheckNAddTwoStates(53, 54); break; case 53: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 55: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if (curChar == 95) jjCheckNAdd(57); break; case 57: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: if (curChar == 95) jjCheckNAddTwoStates(59, 60); break; case 59: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 61: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(62, 63); break; case 64: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(40, 45); break; case 65: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(65, 66); break; case 67: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(66, 67); break; case 68: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(68, 69); break; case 70: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(54, 55); break; case 72: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(72, 73); break; case 73: if (curChar == 64) jjCheckNAdd(74); break; case 74: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAdd(74); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) { if (kind > 10) kind = 10; jjCheckNAdd(0); } if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); if (jjCanMove_2(hiByte, i1, i2, l1, l2)) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(40, 45); break; case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 10) kind = 10; jjCheckNAdd(0); break; case 2: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 4: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 4; break; case 5: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 7: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(56, 57); break; case 9: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(58, 59); break; case 10: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 11: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 14: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(14, 15); break; case 16: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(60, 61); break; case 17: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 18: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 20: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(24, 26); break; case 26: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 33); break; case 28: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(34, 36); break; case 31: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(32, 33); break; case 34: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(35, 36); break; case 37: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(62, 63); break; case 38: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 39: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 40: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(40, 41); break; case 41: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 42: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(42, 43); break; case 44: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(64, 65); break; case 45: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(46, 47); break; case 46: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(46, 47); break; case 48: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(49, 50); break; case 50: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 51: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(51, 52); break; case 53: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(66, 67); break; case 54: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(55, 56); break; case 55: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(55, 56); break; case 57: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(68, 69); break; case 59: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(70, 71); break; case 60: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 61: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(62, 63); break; case 63: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 64: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(40, 45); break; case 65: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(65, 66); break; case 67: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(66, 67); break; case 68: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(68, 69); break; case 70: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(54, 55); break; case 72: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(72, 73); break; case 74: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 4) kind = 4; jjstateSet[jjnewStateCnt++] = 74; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 75 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/b118a27a8623ffbfab74ffed2cb6817d04292d9a/StandardTokenizerTokenManager.java/buggy/src/java/org/apache/lucene/analysis/standard/StandardTokenizerTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
public Array getArray(int i) throws SQLException
public java.sql.Array getArray(int i) throws SQLException
public Array getArray(int i) throws SQLException { throw org.postgresql.Driver.notImplemented(); }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/e8f7bfc09526a5ba25a9f9b4ae9ce8509f6ceced/CallableStatement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/CallableStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 1076, 12634, 12, 474, 277, 13, 1216, 6483, 565, 288, 202, 12849, 2358, 18, 2767, 24330, 18, 4668, 18, 902, 8644, 5621, 565, 289, 2, 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, 2252, 18, 4669, 18, 1076, 12634, 12, 474, 277, 13, 1216, 6483, 565, 288, 202, 12849, 2358, 18, 2767, 24330, 18, 4668, 18, 902, 8644, 5621, 565, 289, 2, -100, -100, -100, -100, -10...
byte[] bytes = cdptargetipaddress.getBytes();
log.warn(" cdp address is " + cdptargetipaddress); log.warn(" cdp address is " + cdptargetipaddress); String hexDigits = cdptargetipaddress.trim().toLowerCase(); long ipAddr = Long.parseLong(hexDigits, 16); byte[] bytes = new byte[4]; bytes[0] = (byte) (ipAddr & 0xff); bytes[1] = (byte) ((ipAddr >> 8) & 0xff); bytes[2] = (byte) ((ipAddr >> 16) & 0xff); bytes[3] = (byte) ((ipAddr >> 24) & 0xff);
private void storeSnmpCollection(Connection dbConn, Timestamp now) throws SQLException, UnknownHostException { Category log = ThreadCategory.getInstance(getClass()); PreparedStatement stmt = null; ResultSet rs = null; Iterator ite = null; int nodeid = m_node.getNodeId(); if (m_snmpcoll.hasIpNetToMediaTable()) { ite = m_snmpcoll.getIpNetToMediaTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving IpNetToMediaTable to atinterface table in DB"); while (ite.hasNext()) { int atnodeid = -1; IpNetToMediaTableEntry ent = (IpNetToMediaTableEntry) ite .next(); int ifindex = ent .getInt32(IpNetToMediaTableEntry.INTM_INDEX); String physAddr = ent .getHexString(IpNetToMediaTableEntry.INTM_PHYSADDR); InetAddress ipaddress = ent .getIPAddress(IpNetToMediaTableEntry.INTM_NETADDR); if (log.isDebugEnabled()) log.debug("store: trying save info for ipaddr " + ipaddress.getHostName() + " mac address " + physAddr + " found on ifindex " + ifindex); try { stmt = dbConn.prepareStatement(SQL_GET_NODEID); stmt.setString(1, ipaddress.getHostAddress()); rs = stmt.executeQuery(); if (!rs.next()) { rs.close(); stmt.close(); if (log.isEnabledFor(Priority.WARN)) log.warn("store: no nodeid found for ipaddress " + ipaddress + "."); continue; } int ndx = 1; atnodeid = rs.getInt(ndx++); if (rs.wasNull()) { if (log.isEnabledFor(Priority.WARN)) log.warn("store: no nodeid find for ipaddress " + ipaddress + "."); continue; } } finally { if (rs != null) rs.close(); if (stmt != null) stmt.close(); } if (physAddr.equals("000000000000")) { log.warn("store: mac address " + physAddr + " is invalid for ipaddress " + ipaddress.getHostAddress()); continue; } DbAtInterfaceEntry atInterfaceEntry = DbAtInterfaceEntry.get( dbConn, atnodeid, ipaddress.getHostAddress()); if (atInterfaceEntry == null) { atInterfaceEntry = DbAtInterfaceEntry.create(atnodeid, ipaddress.getHostAddress()); } // update object atInterfaceEntry.updateAtPhysAddr(physAddr); atInterfaceEntry.updateSourceNodeId(nodeid); atInterfaceEntry.updateIfIndex(ifindex); atInterfaceEntry.updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); atInterfaceEntry.set_lastpolltime(now); // store object in database atInterfaceEntry.store(dbConn); } } if (m_snmpcoll.hasCdpCacheTable()) { java.util.List cdpInterfaces = new java.util.ArrayList(); ite = m_snmpcoll.getCdpCacheTable() .getEntries().iterator(); while (ite.hasNext()) { CdpCacheTableEntry cdpEntry = (CdpCacheTableEntry) ite.next(); int cdpAddrType = cdpEntry.getInt32(CdpCacheTableEntry.CDP_ADDRESS_TYPE); if (cdpAddrType != 1) continue; String cdptargetipaddress = cdpEntry.getHexString(CdpCacheTableEntry.CDP_ADDRESS); byte[] bytes = cdptargetipaddress.getBytes(); InetAddress cdpTargetIpAddr = InetAddress.getByAddress(bytes); int cdpIfIndex = cdpEntry.getInt32(CdpCacheTableEntry.CDP_IFINDEX); String cdpTargetDevicePort = cdpEntry.getHexString(CdpCacheTableEntry.CDP_DEVICEPORT); CdpInterface cdpIface = new CdpInterface(cdpIfIndex); int targetCdpNodeId = getNodeidFromIp(dbConn, cdpTargetIpAddr); cdpIface.setCdpTargetNodeId(targetCdpNodeId); cdpIface.setCdpTargetIpAddr(cdpTargetIpAddr); cdpIface.setCdpTargetIfIndex(getIfIndexFromSnmpInterfaceIfName( dbConn, targetCdpNodeId, cdpTargetDevicePort)); cdpInterfaces.add(cdpIface); } m_node.setCdpInterfaces(cdpInterfaces); } if (m_snmpcoll.hasRouteTable()) { java.util.List routeInterfaces = new java.util.ArrayList(); ite = m_snmpcoll.getIpRouteTable().getEntries() .iterator(); if (log.isDebugEnabled()) log .debug("store: saving ipRouteTable to iprouteinterface table in DB"); while (ite.hasNext()) { IpRouteTableEntry ent = (IpRouteTableEntry) ite.next(); InetAddress routedest = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_DEST); InetAddress routemask = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_MASK); InetAddress nexthop = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_NXTHOP); int ifindex = ent.getInt32(IpRouteTableEntry.IP_ROUTE_IFINDEX); int routemetric1 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC1); int routemetric2 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC2); int routemetric3 =ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC3); int routemetric4 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC4); int routemetric5 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC5); int routetype = ent.getInt32(IpRouteTableEntry.IP_ROUTE_TYPE); int routeproto = ent.getInt32(IpRouteTableEntry.IP_ROUTE_PROTO); // info used for Discovery Link RouterInterface routeIface = new RouterInterface(ifindex); routeIface.setMetric(routemetric1); routeIface.setNextHop(nexthop); routeIface.setSnmpiftype(getSnmpIfType(dbConn, nodeid, ifindex)); routeIface.setNodeparentid(getNodeidFromIp(dbConn,nexthop)); routeInterfaces.add(routeIface); // save info to DB DbIpRouteInterfaceEntry iprouteInterfaceEntry = DbIpRouteInterfaceEntry .get(dbConn, nodeid, routedest.getHostAddress()); if (iprouteInterfaceEntry == null) { // Create a new entry iprouteInterfaceEntry = DbIpRouteInterfaceEntry.create( m_node.getNodeId(), routedest.getHostAddress()); } // update object iprouteInterfaceEntry.updateRouteMask(routemask.getHostAddress()); iprouteInterfaceEntry.updateRouteNextHop(nexthop.getHostAddress()); iprouteInterfaceEntry.updateIfIndex(ifindex); if (routemetric1 != -1) iprouteInterfaceEntry.updateRouteMetric1(routemetric1); if (routemetric2 != -1) iprouteInterfaceEntry.updateRouteMetric2(routemetric2); if (routemetric3 != -1) iprouteInterfaceEntry.updateRouteMetric3(routemetric3); if (routemetric4 != -1) iprouteInterfaceEntry.updateRouteMetric4(routemetric4); if (routemetric5 != -1) iprouteInterfaceEntry.updateRouteMetric5(routemetric5); if (routetype != -1) iprouteInterfaceEntry.updateRouteType(routetype); if (routeproto != -1) iprouteInterfaceEntry.updateRouteProto(routeproto); iprouteInterfaceEntry .updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); iprouteInterfaceEntry.set_lastpolltime(now); // store object in database iprouteInterfaceEntry.store(dbConn); } m_node.setRouteInterfaces(routeInterfaces); } // STARTS loop on vlans if (m_snmpcoll.hasVlanTable()) { ite = m_snmpcoll.getSnmpVlanCollections() .iterator(); while (ite.hasNext()) { SnmpVlanCollection snmpVlanColl = (SnmpVlanCollection) ite .next(); String vlanindex = snmpVlanColl.getVlanIndex(); int vlan = Integer.parseInt(vlanindex); String vlanname = snmpVlanColl.getVlanName(); if (log.isDebugEnabled()) log .debug("store: saving SnmpVlanCollection entries in DB for VLAN " + vlanname + " index " + vlanindex); if (snmpVlanColl.hasDot1dBase()) { if (log.isDebugEnabled()) log .debug("store: saving Dot1dBaseGroup in stpnode table in DB"); Dot1dBaseGroup dod1db = (Dot1dBaseGroup) snmpVlanColl.getDot1dBase(); String baseBridgeAddress = dod1db.getBridgeAddress(); int basenumports = dod1db.getNumberOfPorts(); int bridgetype = dod1db.getBridgeType(); if (baseBridgeAddress == "000000000000") { log.warn("store: base bridge address " + baseBridgeAddress + " is invalid for ipaddress " ); } else { m_node.addBridgeIdentifier(baseBridgeAddress,vlanindex); DbStpNodeEntry dbStpNodeEntry = DbStpNodeEntry.get(dbConn, m_node.getNodeId(), vlan); if (dbStpNodeEntry == null) { // Create a new entry dbStpNodeEntry = DbStpNodeEntry.create(m_node .getNodeId(), vlan); } // update object dbStpNodeEntry.updateBaseBridgeAddress(baseBridgeAddress); dbStpNodeEntry.updateBaseNumPorts(basenumports); dbStpNodeEntry.updateBaseType(bridgetype); dbStpNodeEntry.updateBaseVlanName(vlanname); if (snmpVlanColl.hasDot1dStp()) { if (log.isDebugEnabled()) log .debug("store: saving Dot1dStpGroup in stpnode table in DB"); Dot1dStpGroup dod1stp = (Dot1dStpGroup) snmpVlanColl .getDot1dStp(); int protospec = dod1stp.getStpProtocolSpecification(); int stppriority = dod1stp.getStpPriority(); String stpDesignatedRoot = dod1stp.getStpDesignatedRoot(); int stprootcost = dod1stp.getStpRootCost(); int stprootport = dod1stp.getStpRootPort(); if (stpDesignatedRoot != "0000000000000000") { m_node.setVlanStpRoot(vlanindex,stpDesignatedRoot); } dbStpNodeEntry.updateStpProtocolSpecification(protospec); dbStpNodeEntry.updateStpPriority(stppriority); dbStpNodeEntry.updateStpDesignatedRoot(stpDesignatedRoot); dbStpNodeEntry.updateStpRootCost(stprootcost); dbStpNodeEntry.updateStpRootPort(stprootport); } // store object in database dbStpNodeEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpNodeEntry.set_lastpolltime(now); dbStpNodeEntry.store(dbConn); if (snmpVlanColl.hasDot1dBasePortTable()) { Iterator sub_ite = snmpVlanColl.getDot1dBasePortTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving Dot1dBasePortTable in stpinterface table in DB"); while (sub_ite.hasNext()) { Dot1dBasePortTableEntry dot1dbaseptentry = (Dot1dBasePortTableEntry) sub_ite .next(); int baseport = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_PORT); int ifindex = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_IFINDEX); m_node.setIfIndexBridgePort(ifindex,baseport); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), baseport, vlan); if (dbStpIntEntry == null) { // Create a new entry dbStpIntEntry = DbStpInterfaceEntry.create( m_node.getNodeId(), baseport, vlan); } dbStpIntEntry.updateIfIndex(ifindex); dbStpIntEntry .updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } if (snmpVlanColl.hasDot1dStpPortTable()) { if (log.isDebugEnabled()) log .debug(" store: saving Dot1dStpPortTable in stpinterface table in DB"); Iterator sub_ite = snmpVlanColl.getDot1dStpPortTable() .getEntries().iterator(); while (sub_ite.hasNext()) { Dot1dStpPortTableEntry dot1dstpptentry = (Dot1dStpPortTableEntry) sub_ite .next(); int stpport = dot1dstpptentry.getInt32(Dot1dStpPortTableEntry.STP_PORT); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), stpport, vlan); if (dbStpIntEntry == null) { // Cannot create the object becouse must exists the dot1dbase // object!!!!! if (log.isEnabledFor(Priority.WARN)) log .warn("store StpInterface: when storing STP info" + " for bridge node with nodeid " + m_node.getNodeId() + " bridgeport number " + stpport + " and vlan index " + vlanindex + " info not found in database, ERROR skipping....."); } else { int stpportstate = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_STATE); int stpportpathcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_PATH_COST); String stpPortDesignatedBridge = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_BRIDGE); String stpPortDesignatedRoot = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_ROOT); int stpportdesignatedcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_COST); String stpPortDesignatedPort = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_PORT); if (stpPortDesignatedBridge.equals("0000000000000000")) { log.warn("storeSnmpCollection: designated bridge is invalid not adding to discoveryLink"); } else if (stpPortDesignatedPort.equals("0000")) { log.warn("storeSnmpCollection: designated port is invalid not adding to discoveryLink"); } else { BridgeStpInterface stpIface = new BridgeStpInterface(stpport,vlanindex); stpIface.setStpPortDesignatedBridge(stpPortDesignatedBridge); stpIface.setStpPortDesignatedPort(stpPortDesignatedPort); m_node.addStpInterface(stpIface); } dbStpIntEntry.updateStpPortState(stpportstate); dbStpIntEntry.updateStpPortPathCost(stpportpathcost); dbStpIntEntry.updateStpportDesignatedBridge(stpPortDesignatedBridge); dbStpIntEntry.updateStpportDesignatedRoot(stpPortDesignatedRoot); dbStpIntEntry.updateStpPortDesignatedCost(stpportdesignatedcost); dbStpIntEntry.updateStpportDesignatedPort(stpPortDesignatedPort); dbStpIntEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } } if (snmpVlanColl.hasDot1dTpFdbTable()) { Iterator subite = snmpVlanColl.getDot1dFdbTable() .getEntries().iterator(); while (subite.hasNext()) { Dot1dTpFdbTableEntry dot1dfdbentry = (Dot1dTpFdbTableEntry) subite .next(); String curMacAddress = dot1dfdbentry .getHexString(Dot1dTpFdbTableEntry.FDB_ADDRESS); int fdbport = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_PORT); if (fdbport == 0) { if (log.isDebugEnabled()) log.debug("populateBridge: macaddress " + curMacAddress + " learned on invalid port " + fdbport + " . Skipping"); continue; } int curfdbstatus = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_STATUS); if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_LEARNED) { m_node.addMacAddress(fdbport, curMacAddress, vlanindex); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found learned mac address " + curMacAddress + " on bridge port " + fdbport + " for VLAN " + snmpVlanColl.getVlanIndex()); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_SELF) { m_node.addBridgeIdentifier(curMacAddress); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + curMacAddress + " for VLAN " + snmpVlanColl.getVlanIndex() + " and bridge port " + fdbport); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_INVALID) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has INVALID status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_MGMT) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has MGMT status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_OTHER) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has OTHER status on port " + fdbport + " . Skipping"); continue; } } } //now adding bridge identifier mac addresses of switch from snmpinterface stmt = dbConn.prepareStatement(SQL_GET_SNMPPHYSADDR_SNMPINTERFACE); stmt.setInt(1, m_node.getNodeId()); rs = stmt.executeQuery(); while (rs.next()) { String macaddr = rs.getString("snmpphysaddr"); if (macaddr == null) continue; m_node.addBridgeIdentifier(macaddr); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + macaddr + " from snmpinterface db table"); } //now adding bridge identifier mac addresses of switch from snmpinterface stmt = dbConn.prepareStatement(SQL_GET_ATPHYSADDR_SNMPINTERFACE); stmt.setInt(1, m_node.getNodeId()); rs = stmt.executeQuery(); while (rs.next()) { String macaddr = rs.getString("atphysaddr"); if (macaddr == null) continue; m_node.addBridgeIdentifier(macaddr); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + macaddr + " from atinterface db table"); } } } } } int i = 0; stmt = dbConn.prepareStatement(SQL_UPDATE_ATINTERFACE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); stmt = dbConn.prepareStatement(SQL_UPDATE_IPROUTEINTERFACE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); stmt = dbConn.prepareStatement(SQL_UPDATE_STPNODE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); stmt = dbConn.prepareStatement(SQL_UPDATE_STPINTERFACE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/626f6afdcec567a4c044af0196f1215ed1878bb2/DbEventWriter.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/linkd/DbEventWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1707, 10461, 1291, 2532, 12, 1952, 30795, 16, 8159, 2037, 13, 1216, 6483, 16, 1082, 202, 4874, 29776, 288, 202, 202, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 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, 225, 202, 1152, 918, 1707, 10461, 1291, 2532, 12, 1952, 30795, 16, 8159, 2037, 13, 1216, 6483, 16, 1082, 202, 4874, 29776, 288, 202, 202, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, ...
public void testRBaseEchoStruct() throws AxisFault {
public void testRBaseEchoStruct() throws AxisFault {
public void testRBaseEchoStruct() throws AxisFault { url = "http://www.cincomsmalltalk.com/soap/interop"; soapAction = ""; util = new Round2EchoStructClientUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "sunBaseStructRes.xml"; compare(retEnv, tempPath); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/95f09abc768fee06d65b12836e31273ac0e15eb3/VWRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/VWRound2InteropTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 2171, 19704, 3823, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 71, 267, 832, 12019, 88, 2960, 18, 832, 19, 19215, 19, 30376, 14432, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 54, 2171, 19704, 3823, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 71, 267, 832, 12019, 88, 2960, 18, 832, 19, 19215, 19, 30376, 14432, 3639,...
public int compare( String value1, String value2 ){
public int compare( String value1, String value2 ) {
public int compare( String value1, String value2 ){ Locale loc = Locale.getDefault(); Collator collator = Collator.getInstance( loc ); return collator.compare( value1, value2 ); }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/c43169e0134e2b20a2b8ac99333cbfebce6baa97/StringDatatypeValidator.java/clean/src/org/apache/xerces/validators/datatype/StringDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 3400, 12, 514, 460, 21, 16, 514, 460, 22, 262, 288, 3639, 6458, 565, 1515, 4202, 273, 6458, 18, 588, 1868, 5621, 3639, 17596, 639, 225, 4508, 639, 225, 273, 17596, 639, 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, 509, 3400, 12, 514, 460, 21, 16, 514, 460, 22, 262, 288, 3639, 6458, 565, 1515, 4202, 273, 6458, 18, 588, 1868, 5621, 3639, 17596, 639, 225, 4508, 639, 225, 273, 17596, 639, 18, ...
Listener lsTransImpact = new Listener() { public void handleEvent(Event e) { analyseImpact(); } };
Listener lsTransCheck = new Listener() { public void handleEvent(Event e) { checkTrans(); } };
Listener lsTransImpact = new Listener() { public void handleEvent(Event e) { analyseImpact(); } };
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/debf6e456945767f60dfbf3992b14417daecffbe/Spoon.java/buggy/kettle/src/be/ibridge/kettle/spoon/Spoon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 10652, 7180, 1429, 22683, 621, 565, 273, 394, 10652, 1435, 288, 1071, 918, 1640, 1133, 12, 1133, 425, 13, 288, 31087, 22683, 621, 5621, 565, 289, 289, 31, 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, 540, 10652, 7180, 1429, 22683, 621, 565, 273, 394, 10652, 1435, 288, 1071, 918, 1640, 1133, 12, 1133, 425, 13, 288, 31087, 22683, 621, 5621, 565, 289, 289, 31, 2, -100, -100, -100, -100, -100,...
java.sql.ResultSet rs = connection.ExecSQL( "SELECT distinct " + "c.relname as prelname, " + "c2.relname as frelname, " + "t.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t.tgdeferrable, " + "t.tginitdeferred, " + "t.tgnargs,t.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + "FROM " + "pg_trigger t, " + "pg_trigger t1, " + "pg_class c, " + "pg_class c2, " + "pg_class ic, " + "pg_proc p1, " + "pg_proc p2, " + "pg_index i, " + "pg_attribute a " + "WHERE " + "(t.tgrelid=c.oid " + "AND t.tgisconstraint " + "AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p1.oid " + "and p1.proname like '%%upd') " + "and " + "(t1.tgrelid=c.oid " + "and t1.tgisconstraint " + "and t1.tgconstrrelid=c2.oid " + "AND t1.tgfoid=p2.oid " + "and p2.proname like '%%del') " + ((primaryTable != null) ? "AND c.relname='" + primaryTable + "' " : "") + ((foreignTable != null) ? "AND c2.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid " + "AND ic.oid=a.attrelid " + "AND i.indisprimary " + "ORDER BY " + (primaryTable != null ? "frelname" : "prelname") + ",keyseq");
String select; String from; String where = ""; /* * The addition of the pg_constraint in 7.3 table should have really * helped us out here, but it comes up just a bit short. * - The conkey, confkey columns aren't really useful without * contrib/array unless we want to issues separate queries. * - Unique indexes that can support foreign keys are not necessarily * added to pg_constraint. Also multiple unique indexes covering * the same keys can be created which make it difficult to determine * the PK_NAME field. */ if (connection.haveMinimumServerVersion("7.3")) { select = "SELECT DISTINCT n.nspname as pnspname,n2.nspname as fnspname, "; from = " FROM pg_catalog.pg_namespace n, pg_catalog.pg_namespace n2, pg_catalog.pg_trigger t, pg_catalog.pg_trigger t1, pg_catalog.pg_class c, pg_catalog.pg_class c2, pg_catalog.pg_class ic, pg_catalog.pg_proc p1, pg_catalog.pg_proc p2, pg_catalog.pg_index i, pg_catalog.pg_attribute a "; where = " AND c.relnamespace = n.oid AND c2.relnamespace=n2.oid "; if (primarySchema != null && !"".equals(primarySchema)) { where += " AND n.nspname = '"+escapeQuotes(primarySchema.toLowerCase())+"' "; } if (foreignSchema != null && !"".equals(foreignSchema)) { where += " AND n2.nspname = '"+escapeQuotes(foreignSchema.toLowerCase())+"' "; } } else { select = "SELECT DISTINCT NULL::text as pnspname, NULL::text as fnspname, "; from = " FROM pg_trigger t, pg_trigger t1, pg_class c, pg_class c2, pg_class ic, pg_proc p1, pg_proc p2, pg_index i, pg_attribute a "; } String sql = select + "c.relname as prelname, " + "c2.relname as frelname, " + "t.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t.tgdeferrable, " + "t.tginitdeferred, " + "t.tgnargs,t.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + from + "WHERE " + "(t.tgrelid=c.oid " + "AND t.tgisconstraint " + "AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p1.oid " + "and p1.proname like 'RI\\\\_FKey\\\\_%\\\\_upd') " + "and " + "(t1.tgrelid=c.oid " + "and t1.tgisconstraint " + "and t1.tgconstrrelid=c2.oid " + "AND t1.tgfoid=p2.oid " + "and p2.proname like 'RI\\\\_FKey\\\\_%\\\\_del') " + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid " + "AND ic.oid=a.attrelid " + "AND i.indisprimary " + where; if (primaryTable != null) { sql += "AND c.relname='" + escapeQuotes(primaryTable.toLowerCase()) + "' "; } if (foreignTable != null) { sql += "AND c2.relname='" + escapeQuotes(foreignTable.toLowerCase()) + "' "; } sql += "ORDER BY "; if (primaryTable != null) { sql += "frelname"; } else { sql += "prelname"; } sql += ",keyseq"; ResultSet rs = connection.createStatement().executeQuery(sql);
protected java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, NAME_SIZE); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, NAME_SIZE); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, NAME_SIZE); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, NAME_SIZE); f[12] = new Field(connection, "PK_NAME", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL( "SELECT distinct " + "c.relname as prelname, " + "c2.relname as frelname, " + "t.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t.tgdeferrable, " + "t.tginitdeferred, " + "t.tgnargs,t.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + "FROM " + "pg_trigger t, " + "pg_trigger t1, " + "pg_class c, " + "pg_class c2, " + "pg_class ic, " + "pg_proc p1, " + "pg_proc p2, " + "pg_index i, " + "pg_attribute a " + "WHERE " // isolate the update rule + "(t.tgrelid=c.oid " + "AND t.tgisconstraint " + "AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p1.oid " + "and p1.proname like '%%upd') " + "and " // isolate the delete rule + "(t1.tgrelid=c.oid " + "and t1.tgisconstraint " + "and t1.tgconstrrelid=c2.oid " + "AND t1.tgfoid=p2.oid " + "and p2.proname like '%%del') " // if we are looking for exported keys then primary table will be used + ((primaryTable != null) ? "AND c.relname='" + primaryTable + "' " : "") // if we are looking for imported keys then the foreign table will be used + ((foreignTable != null) ? "AND c2.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid " + "AND ic.oid=a.attrelid " + "AND i.indisprimary " + "ORDER BY " // orderby is as follows getExported, orders by FKTABLE, // getImported orders by PKTABLE // getCrossReference orders by FKTABLE, so this should work for both, // since when getting crossreference, primaryTable will be defined + (primaryTable != null ? "frelname" : "prelname") + ",keyseq"); // returns the following columns // and some example data with a table defined as follows // create table people ( id int primary key); // create table policy ( id int primary key); // create table users ( id int primary key, people_id int references people(id), policy_id int references policy(id)) // prelname | frelname | tgconstrname | keyseq | fkeyName | tgdeferrable | tginitdeferred // 1 | 2 | 3 | 4 | 5 | 6 | 7 // people | users | <unnamed> | 1 | people_pkey | f | f // | tgnargs | tgargs | updaterule | deleterule // | 8 | 9 | 10 | 11 // | 6 | <unnamed>\000users\000people\000UNSPECIFIED\000people_id\000id\000 | RI_FKey_noaction_upd | RI_FKey_noaction_del Vector tuples = new Vector(); while ( rs.next() ) { byte tuple[][] = new byte[14][]; tuple[2] = rs.getBytes(1); //PKTABLE_NAME tuple[6] = rs.getBytes(2); //FKTABLE_NAME String fKeyName = rs.getString(3); String updateRule = rs.getString(10); if (updateRule != null ) { // Rules look like this RI_FKey_noaction_del so we want to pull out the part between the 'Key_' and the last '_' s String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ( rule == null || "noaction".equals(rule) ) action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; else if ("restrict".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyRestrict; tuple[9] = Integer.toString(action).getBytes(); } String deleteRule = rs.getString(11); if ( deleteRule != null ) { String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; tuple[10] = Integer.toString(action).getBytes(); } // Parse the tgargs data String fkeyColumn = ""; String pkeyColumn = ""; // Note, I am guessing at most of this, but it should be close // if not, please correct // the keys are in pairs and start after the first four arguments // the arguments are seperated by \000 int keySequence = rs.getInt(4); //KEY_SEQ // get the args String targs = rs.getString(9); // args look like this //<unnamed>\000ww\000vv\000UNSPECIFIED\000m\000a\000n\000b\000 // we are primarily interested in the column names which are the last items in the string StringTokenizer st = new StringTokenizer(targs, "\\000"); int advance = 4 + (keySequence - 1) * 2; for ( int i = 0; st.hasMoreTokens() && i < advance ; i++ ) st.nextToken(); // advance to the key column of interest if ( st.hasMoreTokens() ) { fkeyColumn = st.nextToken(); } if ( st.hasMoreTokens() ) { pkeyColumn = st.nextToken(); } tuple[3] = pkeyColumn.getBytes(); //PKCOLUMN_NAME tuple[7] = fkeyColumn.getBytes(); //FKCOLUMN_NAME tuple[8] = rs.getBytes(4); //KEY_SEQ tuple[11] = targs.getBytes(); //FK_NAME this will give us a unique name for the foreign key tuple[12] = rs.getBytes(5); //PK_NAME // DEFERRABILITY int deferrability = java.sql.DatabaseMetaData.importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(6); boolean initiallyDeferred = rs.getBoolean(7); if (deferrable) { if (initiallyDeferred) deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyDeferred; else deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); } return connection.getResultSet(null, f, tuples, "OK", 1); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/40327076bce2d4a086a440f2d10fd1d514f96450/AbstractJdbc1DatabaseMetaData.java/buggy/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 3354, 1388, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 3354, 1388, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526,...
public IStatus run(IProgressMonitor monitor) { monitor.beginTask("Opening Remote Task", 10); TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository( repositoryKind, serverUrl); if (repository == null) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openError(null, "Repository Not Found", "Could not find repository configuration for " + serverUrl + ". \nPlease set up repository via " + TaskRepositoriesView.NAME + "."); TaskUiUtil.openUrl(taskUrl); } }); return Status.OK_STATUS; } AbstractRepositoryConnector connector = TasksUiPlugin.getRepositoryManager().getRepositoryConnector(repositoryKind); try { IOfflineTaskHandler offlineHandler = connector.getOfflineTaskHandler(); if (offlineHandler != null) { // the following code was copied from SynchronizeTaskJob RepositoryTaskData downloadedTaskData = null; try { downloadedTaskData = offlineHandler.downloadTaskData(repository, taskId, TasksUiPlugin.getDefault().getProxySettings()); openEditor(repository, downloadedTaskData); } catch (final CoreException e) { // TODO generalize exception handling if (e.getStatus().getException() instanceof UnrecognizedReponseException) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { WebBrowserDialog.openAcceptAgreement(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Unrecognized response from server", e.getStatus().getMessage(), e.getStatus().getException() .getMessage()); MylarStatusHandler.log(e.getStatus()); } }); } else if (e.getStatus().getException() instanceof LoginException) { MylarStatusHandler.log(e.getStatus().getException(), "Login credentials are invalid for " + repository.getUrl()); } else if (!(e.getStatus().getException() instanceof IOException)) { MylarStatusHandler.log(e.getStatus()); } else if (e.getStatus().getException() instanceof FileNotFoundException) { // can be caused by empty urlbase parameter on bugzilla server MylarStatusHandler.log(e.getStatus()); } else { // >>> bug 154729 // MylarStatusHandler.log(e.getStatus()); } } } else { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { TaskUiUtil.openUrl(taskUrl); } }); } } finally { monitor.done(); } return new Status(IStatus.OK, TasksUiPlugin.PLUGIN_ID, IStatus.OK, "", null); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/cf14516fcf0426aa9b95f6575547ff9b17985b6a/OpenRemoteTaskJob.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRemoteTaskJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 10259, 18, 10086, 2174, 2932, 21378, 6304, 3837, 3113, 1728, 1769, 1082, 202, 2174, 3305, 3352, 273, 20350, 13943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 10259, 18, 10086, 2174, 2932, 21378, 6304, 3837, 3113, 1728, 1769, 1082, 202, 2174, 3305, 3352, 273, 20350, 13943, ...
} else if( nMTF < 1200 ) {
} else if( nMTF < 1200 ) {
private void sendMTFValues() throws IOException { char len[][] = new char[ N_GROUPS ][ MAX_ALPHA_SIZE ]; int v; int t; int i; int j; int gs; int ge; int totc; int bt; int bc; int iter; int nSelectors = 0; int alphaSize; int minLen; int maxLen; int selCtr; int nGroups; int nBytes; alphaSize = nInUse + 2; for( t = 0; t < N_GROUPS; t++ ) { for( v = 0; v < alphaSize; v++ ) { len[ t ][ v ] = (char)GREATER_ICOST; } } /* * Decide how many coding tables to use */ if( nMTF <= 0 ) { panic(); } if( nMTF < 200 ) { nGroups = 2; } else if( nMTF < 600 ) { nGroups = 3; } else if( nMTF < 1200 ) { nGroups = 4; } else if( nMTF < 2400 ) { nGroups = 5; } else { nGroups = 6; } { /* * Generate an initial set of coding tables */ int nPart; int remF; int tFreq; int aFreq; nPart = nGroups; remF = nMTF; gs = 0; while( nPart > 0 ) { tFreq = remF / nPart; ge = gs - 1; aFreq = 0; while( aFreq < tFreq && ge < alphaSize - 1 ) { ge++; aFreq += mtfFreq[ ge ]; } if( ge > gs && nPart != nGroups && nPart != 1 && ( ( nGroups - nPart ) % 2 == 1 ) ) { aFreq -= mtfFreq[ ge ]; ge--; } for( v = 0; v < alphaSize; v++ ) { if( v >= gs && v <= ge ) { len[ nPart - 1 ][ v ] = (char)LESSER_ICOST; } else { len[ nPart - 1 ][ v ] = (char)GREATER_ICOST; } } nPart--; gs = ge + 1; remF -= aFreq; } } int rfreq[][] = new int[ N_GROUPS ][ MAX_ALPHA_SIZE ]; int fave[] = new int[ N_GROUPS ]; short cost[] = new short[ N_GROUPS ]; /* * Iterate up to N_ITERS times to improve the tables. */ for( iter = 0; iter < N_ITERS; iter++ ) { for( t = 0; t < nGroups; t++ ) { fave[ t ] = 0; } for( t = 0; t < nGroups; t++ ) { for( v = 0; v < alphaSize; v++ ) { rfreq[ t ][ v ] = 0; } } nSelectors = 0; totc = 0; gs = 0; while( true ) { /* * Set group start & end marks. */ if( gs >= nMTF ) { break; } ge = gs + G_SIZE - 1; if( ge >= nMTF ) { ge = nMTF - 1; } /* * Calculate the cost of this group as coded * by each of the coding tables. */ for( t = 0; t < nGroups; t++ ) { cost[ t ] = 0; } if( nGroups == 6 ) { short cost0; short cost1; short cost2; short cost3; short cost4; short cost5; cost0 = cost1 = cost2 = cost3 = cost4 = cost5 = 0; for( i = gs; i <= ge; i++ ) { short icv = szptr[ i ]; cost0 += len[ 0 ][ icv ]; cost1 += len[ 1 ][ icv ]; cost2 += len[ 2 ][ icv ]; cost3 += len[ 3 ][ icv ]; cost4 += len[ 4 ][ icv ]; cost5 += len[ 5 ][ icv ]; } cost[ 0 ] = cost0; cost[ 1 ] = cost1; cost[ 2 ] = cost2; cost[ 3 ] = cost3; cost[ 4 ] = cost4; cost[ 5 ] = cost5; } else { for( i = gs; i <= ge; i++ ) { short icv = szptr[ i ]; for( t = 0; t < nGroups; t++ ) { cost[ t ] += len[ t ][ icv ]; } } } /* * Find the coding table which is best for this group, * and record its identity in the selector table. */ bc = 999999999; bt = -1; for( t = 0; t < nGroups; t++ ) { if( cost[ t ] < bc ) { bc = cost[ t ]; bt = t; } } ; totc += bc; fave[ bt ]++; selector[ nSelectors ] = (char)bt; nSelectors++; /* * Increment the symbol frequencies for the selected table. */ for( i = gs; i <= ge; i++ ) { rfreq[ bt ][ szptr[ i ] ]++; } gs = ge + 1; } /* * Recompute the tables based on the accumulated frequencies. */ for( t = 0; t < nGroups; t++ ) { hbMakeCodeLengths( len[ t ], rfreq[ t ], alphaSize, 20 ); } } rfreq = null; fave = null; cost = null; if( !( nGroups < 8 ) ) { panic(); } if( !( nSelectors < 32768 && nSelectors <= ( 2 + ( 900000 / G_SIZE ) ) ) ) { panic(); } { /* * Compute MTF values for the selectors. */ char pos[] = new char[ N_GROUPS ]; char ll_i; char tmp2; char tmp; for( i = 0; i < nGroups; i++ ) { pos[ i ] = (char)i; } for( i = 0; i < nSelectors; i++ ) { ll_i = selector[ i ]; j = 0; tmp = pos[ j ]; while( ll_i != tmp ) { j++; tmp2 = tmp; tmp = pos[ j ]; pos[ j ] = tmp2; } pos[ 0 ] = tmp; selectorMtf[ i ] = (char)j; } } int code[][] = new int[ N_GROUPS ][ MAX_ALPHA_SIZE ]; /* * Assign actual codes for the tables. */ for( t = 0; t < nGroups; t++ ) { minLen = 32; maxLen = 0; for( i = 0; i < alphaSize; i++ ) { if( len[ t ][ i ] > maxLen ) { maxLen = len[ t ][ i ]; } if( len[ t ][ i ] < minLen ) { minLen = len[ t ][ i ]; } } if( maxLen > 20 ) { panic(); } if( minLen < 1 ) { panic(); } hbAssignCodes( code[ t ], len[ t ], minLen, maxLen, alphaSize ); } { /* * Transmit the mapping table. */ boolean inUse16[] = new boolean[ 16 ]; for( i = 0; i < 16; i++ ) { inUse16[ i ] = false; for( j = 0; j < 16; j++ ) { if( inUse[ i * 16 + j ] ) { inUse16[ i ] = true; } } } nBytes = bytesOut; for( i = 0; i < 16; i++ ) { if( inUse16[ i ] ) { bsW( 1, 1 ); } else { bsW( 1, 0 ); } } for( i = 0; i < 16; i++ ) { if( inUse16[ i ] ) { for( j = 0; j < 16; j++ ) { if( inUse[ i * 16 + j ] ) { bsW( 1, 1 ); } else { bsW( 1, 0 ); } } } } } /* * Now the selectors. */ nBytes = bytesOut; bsW( 3, nGroups ); bsW( 15, nSelectors ); for( i = 0; i < nSelectors; i++ ) { for( j = 0; j < selectorMtf[ i ]; j++ ) { bsW( 1, 1 ); } bsW( 1, 0 ); } /* * Now the coding tables. */ nBytes = bytesOut; for( t = 0; t < nGroups; t++ ) { int curr = len[ t ][ 0 ]; bsW( 5, curr ); for( i = 0; i < alphaSize; i++ ) { while( curr < len[ t ][ i ] ) { bsW( 2, 2 ); curr++; /* * 10 */ } while( curr > len[ t ][ i ] ) { bsW( 2, 3 ); curr--; /* * 11 */ } bsW( 1, 0 ); } } /* * And finally, the block data proper */ nBytes = bytesOut; selCtr = 0; gs = 0; while( true ) { if( gs >= nMTF ) { break; } ge = gs + G_SIZE - 1; if( ge >= nMTF ) { ge = nMTF - 1; } for( i = gs; i <= ge; i++ ) { bsW( len[ selector[ selCtr ] ][ szptr[ i ] ], code[ selector[ selCtr ] ][ szptr[ i ] ] ); } gs = ge + 1; selCtr++; } if( !( selCtr == nSelectors ) ) { panic(); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/bab9e2d799ee887bc0a404b4acdec0366234eafe/CBZip2OutputStream.java/clean/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 6152, 42, 1972, 1435, 3639, 1216, 1860, 565, 288, 3639, 1149, 562, 63, 6362, 65, 273, 394, 1149, 63, 423, 67, 28977, 308, 63, 4552, 67, 26313, 67, 4574, 308, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 6152, 42, 1972, 1435, 3639, 1216, 1860, 565, 288, 3639, 1149, 562, 63, 6362, 65, 273, 394, 1149, 63, 423, 67, 28977, 308, 63, 4552, 67, 26313, 67, 4574, 308, 31, 3639, ...
return file .getPersistentProperty(IPDEUIConstants.DEFAULT_EDITOR_PAGE_KEY_NEW);
return project.getPersistentProperty( IPDEUIConstants.DEFAULT_EDITOR_PAGE_KEY_NEW);
private String loadDefaultPage() { IEditorInput input = getEditorInput(); if (input instanceof IFileEditorInput) { // load the setting from the resource IFile file = ((IFileEditorInput) input).getFile(); try { return file .getPersistentProperty(IPDEUIConstants.DEFAULT_EDITOR_PAGE_KEY_NEW); } catch (CoreException e) { return null; } } else if (input instanceof SystemFileEditorInput) { File file = (File) ((SystemFileEditorInput) input) .getAdapter(File.class); if (file == null) return null; IDialogSettings section = getSettingsSection(); String key = file.getPath(); return section.get(key); } return null; }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/f05ab7833f64029c0ae936c412e7d86960291167/PDEFormEditor.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDEFormEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1262, 1868, 1964, 1435, 288, 202, 202, 45, 6946, 1210, 810, 273, 336, 6946, 1210, 5621, 202, 202, 430, 261, 2630, 1276, 467, 812, 6946, 1210, 13, 288, 1082, 202, 759, 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, 225, 202, 1152, 514, 1262, 1868, 1964, 1435, 288, 202, 202, 45, 6946, 1210, 810, 273, 336, 6946, 1210, 5621, 202, 202, 430, 261, 2630, 1276, 467, 812, 6946, 1210, 13, 288, 1082, 202, 759, 12...
public void test_getRawSchemeSpecificPart() { URI[] uris = getUris(); String[] getRawSspResults = { "//user%60%20info@host/a%20path?qu%60%20ery", "//user%C3%9F%C2%A3info@host:80/a%E2%82%ACpath?qu%C2%A9%C2%AEery", "//user\u00DF\u00A3info@host:0/a\u20ACpath?qu\u00A9\u00AEery", // = // "//userߣinfo@host:0/apath?query" "//user%2560%2520info@host:80/a%2520path?qu%2560%2520ery", "//user%25C3%259F%25C2%25A3info@host/a%25E2%2582%25ACpath?qu%25C2%25A9%25C2%25AEery", "//user\u00DF\u00A3info@host:80/a\u20ACpath?qu\u00A9\u00AEery", // = // "//userߣinfo@host:80/apath?query" "//user%60%20info@host:81/a%20path?qu%60%20ery", "//user%25info@host:0/a%25path?que%25ry", "user@domain.com", "../adirectory/file.html", "comp.infosystems.www.servers.unix", "", "//server.org", "//reg:istry?query", "///c:/temp/calculate.pl?" }; for (int i = 0; i < uris.length; i++) { try { String result = uris[i].getRawSchemeSpecificPart(); if (!getRawSspResults[i].equals(result)) fail("Error: For URI \"" + uris[i].toString() + "\", getRawSchemeSpecificPart() returned: " + result + ", expected: " + getRawSspResults[i]); } catch (Exception e) { fail("Unexpected " + e.toString()); } } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/777c969d5acd1db093d3208141f7869c5bcd89ed/URITest.java/buggy/modules/luni/src/test/java/tests/api/java/net/URITest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 588, 4809, 9321, 9969, 1988, 1435, 288, 202, 202, 3098, 8526, 21476, 273, 23037, 18387, 5621, 202, 202, 780, 8526, 10547, 55, 1752, 3447, 273, 288, 9506, 202, 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, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 588, 4809, 9321, 9969, 1988, 1435, 288, 202, 202, 3098, 8526, 21476, 273, 23037, 18387, 5621, 202, 202, 780, 8526, 10547, 55, 1752, 3447, 273, 288, 9506, 202, 6, ...
String readFile(String fileName) {
private String readFile(String fileName) {
String readFile(String fileName) { String text; try { Reader r = new FileReader(fileName); try { text = Kit.readReader(r); } finally { r.close(); } } catch (IOException ex) { MessageDialogWrapper.showMessageDialog(this, ex.getMessage(), "Error reading "+fileName, JOptionPane.ERROR_MESSAGE); text = null; } return text; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/2d4fc75b74d717c754829dde488ff0a7456682cc/SwingGui.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 10413, 12, 780, 3968, 13, 565, 288, 3639, 514, 977, 31, 3639, 775, 288, 5411, 5393, 436, 273, 394, 23010, 12, 17812, 1769, 5411, 775, 288, 7734, 977, 273, 1475, 305, 18, 896, 2514,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 10413, 12, 780, 3968, 13, 565, 288, 3639, 514, 977, 31, 3639, 775, 288, 5411, 5393, 436, 273, 394, 23010, 12, 17812, 1769, 5411, 775, 288, 7734, 977, 273, 1475, 305, 18, 896, 2514,...
for(int i = 0; i < declaredElements.length; i++){ if(declaredElements[i] instanceof PsiVariable){
for(PsiElement declaredElement1 : declaredElements){ if(declaredElement1 instanceof PsiVariable){
public void visitDeclarationStatement(PsiDeclarationStatement declaration){ final PsiElement[] declaredElements = declaration.getDeclaredElements(); for(int i = 0; i < declaredElements.length; i++){ if(declaredElements[i] instanceof PsiVariable){ final PsiVariable declaredElement = (PsiVariable) declaredElements[i]; final PsiExpression initializer = declaredElement.getInitializer(); if(wrappedExp.equals(initializer)){ expectedType = declaredElement.getType(); return; } } } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2d46d291193579a7564649b4881c7ea8e02eda5b/ExpectedTypeUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/ExpectedTypeUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 6094, 3406, 12, 52, 7722, 6094, 3406, 8266, 15329, 5411, 727, 453, 7722, 1046, 8526, 7886, 3471, 273, 10792, 8266, 18, 588, 18888, 3471, 5621, 5411, 364, 12, 474, 277, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 3757, 6094, 3406, 12, 52, 7722, 6094, 3406, 8266, 15329, 5411, 727, 453, 7722, 1046, 8526, 7886, 3471, 273, 10792, 8266, 18, 588, 18888, 3471, 5621, 5411, 364, 12, 474, 277, 27...
for (int i = 0; i < chars.length; i++) { char ch = chars[i];
public Procedure(String rawQueryString, String signature, ParameterListItem[] parameterListIn, Tds tds) throws SQLException { _signature = signature; _sqlProcedureName = getUniqueProcedureName(tds); // Create actual to formal parameter mapping // SAfe No need for this. It's already done by PreparedStatement_base. // ParameterUtils.createParameterMapping(rawQueryString, parameterListIn, tds); // MJH - OK now clone parameter details minus data values. // copy back the formal types and check for LOBs _parameterList = new ParameterListItem[parameterListIn.length]; for (int i = 0; i < _parameterList.length; i++) { _parameterList[i] = (ParameterListItem) parameterListIn[i].clone(); _parameterList[i].value = null; // MJH allow value to be garbage collected } // Create the procedure text; allocate a buffer large enough for the raw string // plus a little extra for the procedure name and parameters. StringBuffer procedureString = new StringBuffer(rawQueryString.length() + 128); procedureString.append("create proc "); procedureString.append(_sqlProcedureName); // add the formal parameter list to the sql string createFormalParameterList(_parameterList, procedureString); procedureString.append(" as "); // Go through the raw sql and substitute a parameter name // for each '?' placeholder in the raw sql boolean inString = false; char[] chars = rawQueryString.toCharArray(); // avoid getfield opcode int nextParameterIndex = 0; for (int i = 0; i < chars.length; i++) { char ch = chars[i]; // avoid getfield opcode if (!inString) { if (ch == '?') { procedureString.append(_parameterList[nextParameterIndex].formalName); nextParameterIndex++; } else { if (ch == '\'') { inString = true; } procedureString.append(ch); } } else { // NOTE: This works even if a single quote is being used as an escape // character since the next single quote found will force the state // to be inString == true again. if (ch == '\'') { inString = false; } procedureString.append(ch); } } _procedureString = procedureString.toString(); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/3a3251044111ce7e2d595c1b6ee4b0f047ab39e5/Procedure.java/clean/src/main/net/sourceforge/jtds/jdbc/Procedure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 26639, 12, 780, 1831, 15276, 16, 5397, 514, 3372, 16, 5397, 5498, 13575, 8526, 1569, 682, 382, 16, 5397, 399, 2377, 268, 2377, 13, 565, 1216, 6483, 288, 3639, 389, 8195, 273, 3372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26639, 12, 780, 1831, 15276, 16, 5397, 514, 3372, 16, 5397, 5498, 13575, 8526, 1569, 682, 382, 16, 5397, 399, 2377, 268, 2377, 13, 565, 1216, 6483, 288, 3639, 389, 8195, 273, 3372, ...
public synchronized PersistenceManager createManager (String filePath) throws Exception {
public synchronized PersistenceManager createManager() throws Exception {
public synchronized PersistenceManager createManager (String filePath) throws Exception { if (_manager == null) { if (checkDB(filePath)) _manager = createManagerDB(filePath); else _manager = createManagerFile(filePath); } return _manager; }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/13de68466e3cf7fde6ee0bde0cee09a33e837e89/PersistenceFactory.java/buggy/src/org/jgroups/persistence/PersistenceFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 13381, 1318, 752, 1318, 261, 780, 4612, 13, 1216, 1185, 377, 288, 3639, 309, 261, 67, 4181, 422, 446, 13, 3639, 288, 5411, 309, 261, 1893, 2290, 12, 22787, 3719, 7734, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 13381, 1318, 752, 1318, 261, 780, 4612, 13, 1216, 1185, 377, 288, 3639, 309, 261, 67, 4181, 422, 446, 13, 3639, 288, 5411, 309, 261, 1893, 2290, 12, 22787, 3719, 7734, 389, ...
sb.append(c); break; }
sb.append(c); break; }
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIsModifier = false; boolean isModifier = false; int i; main_parse_loop: for (i = 0; i < rules.length(); i++) { char c = rules.charAt(i); int type = -1; if (!eatingChars && ((c >= 0x09 && c <= 0x0D) || (c == 0x20))) continue; isModifier = nextIsModifier; nextIsModifier = false; if (eatingChars && c != '\'') { doubleQuote = false; sb.append(c); continue; } if (doubleQuote && eatingChars) { sb.append(c); doubleQuote = false; continue; } switch (c) { case '!': throw new ParseException ("Modifier '!' is not yet supported by Classpath", i+base_offset); case '<': type = CollationSorter.GREATERP; break; case ';': type = CollationSorter.GREATERS; break; case ',': type = CollationSorter.GREATERT; break; case '=': type = CollationSorter.EQUAL; break; case '\'': eatingChars = !eatingChars; doubleQuote = true; break; case '@': if (ignoreChars) throw new ParseException ("comparison list has not yet been started. You may only use" + "(<,;=&)", i+base_offset); // Inverse the order of secondaries from now on. nextIsModifier = true; type = CollationSorter.INVERSE_SECONDARY; break; case '&': type = CollationSorter.RESET; if (stop_on_reset) break main_parse_loop; break; default: if (operator < 0) throw new ParseException ("operator missing at " + (i+base_offset), i+base_offset); if (!eatingChars && ((c >= 0x21 && c <= 0x2F) || (c >= 0x3A && c <= 0x40) || (c >= 0x5B && c <= 0x60) || (c >= 0x7B && c <= 0x7E))) throw new ParseException ("unquoted punctuation character '"+c+"'", i+base_offset); //type = ignoreChars ? CollationSorter.IGNORE : -1; sb.append(c); break; } if (type < 0) continue; if (operator < 0) { operator = type; continue; } if (sb.length() == 0 && !isModifier) throw new ParseException ("text element empty at " + (i+base_offset), i+base_offset); if (operator == CollationSorter.RESET) { /* Reposition in the sorting list at the position * indicated by the text element. */ String subrules = rules.substring(i); ArrayList sorted_rules = new ArrayList(); int idx; // Parse the subrules but do not iterate through all // sublist. This is the priviledge of the first call. idx = subParseString(true, sorted_rules, base_offset+i, subrules); // Merge new parsed rules into the list. mergeRules(base_offset+i, sb.toString(), v, sorted_rules); sb.setLength(0); // Reset state to none. operator = -1; type = -1; // We have found a new subrule at 'idx' but it has not been parsed. if (idx >= 0) { i += idx-1; continue main_parse_loop; } else // No more rules. break main_parse_loop; } CollationSorter sorter = new CollationSorter(); if (operator == CollationSorter.GREATERP) ignoreChars = false; sorter.comparisonType = operator; sorter.textElement = sb.toString(); sorter.hashText = sorter.textElement.hashCode(); sorter.offset = base_offset+rules.length(); sorter.ignore = ignoreChars; sb.setLength(0); v.add(sorter); operator = type; } if (operator >= 0) { CollationSorter sorter = new CollationSorter(); int pos = rules.length() + base_offset; if ((sb.length() != 0 && nextIsModifier) || (sb.length() == 0 && !nextIsModifier && !eatingChars)) throw new ParseException("text element empty at " + pos, pos); if (operator == CollationSorter.GREATERP) ignoreChars = false; sorter.comparisonType = operator; sorter.textElement = sb.toString(); sorter.hashText = sorter.textElement.hashCode(); sorter.offset = base_offset+pos; sorter.ignore = ignoreChars; v.add(sorter); } if (i == rules.length()) return -1; else return i; }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/1673562af27e9961ceb68baa04575b5b4db24ba4/RuleBasedCollator.java/buggy/libjava/java/text/RuleBasedCollator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 509, 720, 3201, 780, 12, 6494, 2132, 67, 265, 67, 6208, 16, 2407, 331, 16, 9506, 377, 509, 1026, 67, 3348, 16, 514, 2931, 13, 565, 1216, 10616, 225, 288, 565, 1250, 2305, 7803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 509, 720, 3201, 780, 12, 6494, 2132, 67, 265, 67, 6208, 16, 2407, 331, 16, 9506, 377, 509, 1026, 67, 3348, 16, 514, 2931, 13, 565, 1216, 10616, 225, 288, 565, 1250, 2305, 7803, ...
String name = MylarXmlPlugin.getAntStructureBridge().getName( MylarXmlPlugin.getAntStructureBridge().getObjectForHandle(node.getElementHandle())
IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(AntStructureBridge.EXTENSION); String name = bridge.getName( bridge.getObjectForHandle(node.getElementHandle())
public String getText(Object element) { IMylarContextNode node = (IMylarContextNode)element; String name = MylarXmlPlugin.getAntStructureBridge().getName( MylarXmlPlugin.getAntStructureBridge().getObjectForHandle(node.getElementHandle()) ); return name; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/0f76ac0f592ee57b1f4d730ca004be754a8f5010/AntNodeLabelProvider.java/clean/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/xml/ant/ui/AntNodeLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6701, 12, 921, 930, 13, 288, 3639, 6246, 93, 7901, 1042, 907, 756, 273, 261, 3445, 93, 7901, 1042, 907, 13, 2956, 31, 3639, 514, 508, 273, 8005, 7901, 4432, 3773, 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, 514, 6701, 12, 921, 930, 13, 288, 3639, 6246, 93, 7901, 1042, 907, 756, 273, 261, 3445, 93, 7901, 1042, 907, 13, 2956, 31, 3639, 514, 508, 273, 8005, 7901, 4432, 3773, 18, 588, ...
public java.io.InputStream getInputStream (String uid) throws IOException { ChannelState channelState = (ChannelState)channelStateMap.get(uid); ChannelStaticData staticData = channelState.getStaticData(); ChannelRuntimeData runtimeData = channelState.getRuntimeData(); String attrName = runtimeData.getParameter("attribute"); IPerson person = staticData.getPerson(); if ( attrName == null ) { attrName = ""; } // get the image out of the IPerson as a byte array. // Note: I am assuming here that the only thing that this // IMimeResponse will return is a jpegPhoto. Some other // generalized mechanism will need to be inserted here to // support other mimetypes and IPerson attributes. byte[] imgBytes = (byte [])person.getAttribute(attrName); // need to create a ByteArrayInputStream() if ( imgBytes == null ) { imgBytes = new byte[0]; // let's avoid a null pointer } java.io.InputStream is = (java.io.InputStream) new java.io.ByteArrayInputStream(imgBytes); return is; }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/1ca765c95fc18cca271edbecb6208ad6dca6f286/CPersonAttributes.java/buggy/source/org/jasig/portal/channels/CPersonAttributes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 1594, 18, 4348, 14424, 261, 780, 4555, 13, 1216, 1860, 288, 3639, 5307, 1119, 1904, 1119, 273, 261, 2909, 1119, 13, 4327, 1119, 863, 18, 588, 12, 1911, 1769, 3639, 5307, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 1594, 18, 4348, 14424, 261, 780, 4555, 13, 1216, 1860, 288, 3639, 5307, 1119, 1904, 1119, 273, 261, 2909, 1119, 13, 4327, 1119, 863, 18, 588, 12, 1911, 1769, 3639, 5307, ...
return name.hashCode()+(int)size+(int)index;
return getName().hashCode()+(int)getSize()+(int)getIndex();
public int hashCode() { //Good enough for the moment return name.hashCode()+(int)size+(int)index; }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/a234be6d0a597d76c1abf782c3bbe57ff684165e/Response.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/Response.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 13374, 1435, 288, 3639, 368, 18195, 7304, 364, 326, 10382, 3639, 327, 1723, 7675, 2816, 1085, 1435, 15, 12, 474, 13, 588, 1225, 1435, 15, 12, 474, 13, 588, 1016, 5621, 565, 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, 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, 509, 13374, 1435, 288, 3639, 368, 18195, 7304, 364, 326, 10382, 3639, 327, 1723, 7675, 2816, 1085, 1435, 15, 12, 474, 13, 588, 1225, 1435, 15, 12, 474, 13, 588, 1016, 5621, 565, 2...
public static Point asPoint(String value, Point dflt) {
public static Point asPoint(String value) throws DataFormatException { if (value == null) { throw new DataFormatException( "Null doesn't represent a valid point"); } StringTokenizer stok = new StringTokenizer(value, ","); String x = stok.nextToken(); String y = stok.nextToken(); int xval = 0, yval = 0;
public static Point asPoint(String value, Point dflt) { try { return asPoint(value); } catch (DataFormatException e) { return dflt; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/StringConverter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 4686, 487, 2148, 12, 780, 460, 13, 1216, 1910, 9291, 288, 309, 261, 1132, 422, 446, 13, 288, 604, 394, 1910, 9291, 12, 315, 2041, 3302, 1404, 2406, 279, 923, 1634, 8863, 289,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4686, 487, 2148, 12, 780, 460, 13, 1216, 1910, 9291, 288, 309, 261, 1132, 422, 446, 13, 288, 604, 394, 1910, 9291, 12, 315, 2041, 3302, 1404, 2406, 279, 923, 1634, 8863, 289,...
return resolvedObject.getValue(facesContext);
else { VariableResolver resolver = application.getVariableResolver(); resolvedObject = resolver.resolveVariable(facesContext, getManagedBeanName()); } return resolvedObject;
public Object getInstance() throws InstantiationException { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext == null) { log.error("Object " + getManagedBeanName() + " cannot be created since the faces context is null"); //$NON-NLS-1$ //$NON-NLS-2$ return null; } Application application = facesContext.getApplication(); // VariableResolver resolver = application.getVariableResolver(); // return resolver.resolveVariable(facesContext, getManagedBeanName()); ValueBinding resolvedObject = application.createValueBinding(getManagedBeanName()); if (resolvedObject == null) { return null; } return resolvedObject.getValue(facesContext); }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/72a07cb4f8523847f5b8203cdad7092705cf9fcb/JsfCreator.java/clean/java/org/directwebremoting/faces/JsfCreator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3694, 1435, 1216, 19248, 565, 288, 3639, 20306, 22529, 273, 20306, 18, 588, 3935, 1442, 5621, 3639, 309, 261, 4601, 1042, 422, 446, 13, 3639, 288, 5411, 613, 18, 1636, 2932, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3694, 1435, 1216, 19248, 565, 288, 3639, 20306, 22529, 273, 20306, 18, 588, 3935, 1442, 5621, 3639, 309, 261, 4601, 1042, 422, 446, 13, 3639, 288, 5411, 613, 18, 1636, 2932, 9...
e.printStackTrace();
public Node override( Node n) { try { return n.cleanupSignatures(c, this); } catch( SemanticException e) {e.printStackTrace(); eq.enqueue( ErrorInfo.SEMANTIC_ERROR, e.getMessage(), (e.getLineNumber() == SemanticException.INVALID_LINE ? Annotate.getLineNumber( n) : e.getLineNumber()) ); // FIXME n.setHasError( true); } catch( IOException e) { eq.enqueue( ErrorInfo.IO_ERROR, e.getMessage(), Annotate.getLineNumber( n)); // FIXME n.setHasError( true); } return null; }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/24d791b9c730e45befb5131fac107c29756e7b7b/SignatureCleaner.java/clean/src/polyglot/visit/SignatureCleaner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2029, 3849, 12, 2029, 290, 13, 225, 288, 565, 775, 565, 288, 1377, 327, 290, 18, 16732, 23918, 12, 71, 16, 333, 1769, 565, 289, 565, 1044, 12, 24747, 503, 425, 13, 565, 288, 377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2029, 3849, 12, 2029, 290, 13, 225, 288, 565, 775, 565, 288, 1377, 327, 290, 18, 16732, 23918, 12, 71, 16, 333, 1769, 565, 289, 565, 1044, 12, 24747, 503, 425, 13, 565, 288, 377...
ca.copyAnnotationsFrom(this);
public Node copy() { ConstructorCallStatement ca = new ConstructorCallStatement(type, argumentList); ca.copyAnnotationsFrom(this); return ca; }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/f1ee7a45556c78011d70f69f2db5df22f0b70b7e/ConstructorCallStatement.java/buggy/src/polyglot/ast/ConstructorCallStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2029, 1610, 1435, 288, 565, 11417, 1477, 3406, 3474, 273, 394, 11417, 1477, 3406, 12, 723, 16, 6862, 9506, 4202, 1237, 682, 1769, 3639, 327, 3474, 31, 225, 289, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2029, 1610, 1435, 288, 565, 11417, 1477, 3406, 3474, 273, 394, 11417, 1477, 3406, 12, 723, 16, 6862, 9506, 4202, 1237, 682, 1769, 3639, 327, 3474, 31, 225, 289, 2, -100, -100, -100,...
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(C_DEBUG && A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } I_CmsSession session = cms.getRequestContext().getSession(true); CmsRequestContext reqCont = cms.getRequestContext(); CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms, templateFile); boolean userYetChanged = true; boolean userYetEstablished = true; // find out which template (=perspective) should be used String perspective = (String)parameters.get("perspective"); if(perspective != null && perspective.equals("user")) { session.removeValue("ERROR"); if(reqCont.getRequest().getParameter("CHANGE") != null) { // change data of selected user perspective = "changeuser"; userYetChanged = false; } else { if(reqCont.getRequest().getParameter("DELETE") != null) { // delete the selected user perspective = "deleteuser"; } else { if(reqCont.getRequest().getParameter("NEW") != null) { // establish a new user perspective = "newuser"; userYetEstablished = false; } } } } if(perspective == null) { // display the first template, which lets you chose the action perspective = new String("user"); } if(perspective.equals("newuser") || perspective.equals("changeuser")) { // first the common part of the two actions: // read the common parameters like first name, description, ... String firstname, desc, street, pwd, pwd2, user, userLastname, town, zipcode, email, defaultGroup; if(session.getValue("ERROR") == null) { firstname = (String)parameters.get("USERFIRSTNAME"); desc = (String)parameters.get("USERDESC"); street = (String)parameters.get("USERSTREET"); pwd = (String)parameters.get("PWD"); pwd2 = (String)parameters.get("PWD2"); user = (String)parameters.get("USER"); userLastname = (String)parameters.get("USERNAME"); town = (String)parameters.get("TOWN"); zipcode = (String)parameters.get("ZIP"); email = (String)parameters.get("USEREMAIL"); defaultGroup = (String)parameters.get("DEFAULTGROUP"); } else { // an error has occurred before, retrieve the form data from the session firstname = (String)session.getValue("USERFIRSTNAME"); desc = (String)session.getValue("USERDESC"); street = (String)session.getValue("USERSTREET"); pwd = (String)session.getValue("PWD"); pwd2 = (String)session.getValue("PWD2"); user = (String)session.getValue("USER"); userLastname = (String)session.getValue("USERNAME"); town = (String)session.getValue("TOWN"); zipcode = (String)session.getValue("ZIP"); email = (String)session.getValue("USEREMAIL"); defaultGroup = (String)session.getValue("DEFAULTGROUP"); session.removeValue("ERROR"); } if(firstname == null) { firstname = ""; } if(desc == null) { desc = ""; } if(street == null) { street = ""; } if(pwd == null) { pwd = ""; } if(pwd2 == null) { pwd2 = ""; } if(user == null) { user = ""; } if(userLastname == null) { userLastname = ""; } if(town == null) { town = ""; } if(zipcode == null) { zipcode = ""; } if(email == null) { email = ""; } if(defaultGroup == null) { defaultGroup = ""; } // vectors of Strings that hold the selected and not selected Groups Vector selectedGroups = (Vector)session.getValue("selectedGroups"); Vector notSelectedGroups = (Vector)session.getValue("notSelectedGroups"); if(perspective.equals("newuser")) { // input is the form for establishing new users templateSelector = "newuser"; if(!userYetEstablished) { // first time the form is visited user = ""; selectedGroups = new Vector(); notSelectedGroups = new Vector(); selectedGroups.addElement(C_GROUP_USERS); // preselect Users Vector groups = cms.getGroups(); for(int z = 0;z < groups.size();z++) { String aName = (String)((CmsGroup)groups.elementAt(z)).getName(); if(!C_GROUP_USERS.equals(aName)) { notSelectedGroups.addElement(aName); } } session.putValue("selectedGroups", selectedGroups); session.putValue("notSelectedGroups", notSelectedGroups); } if(reqCont.getRequest().getParameter("ADD") != null) { // add a new group to selectedGroups String groupname = (String)parameters.get("notselectgroup"); if(groupname != null) { selectedGroups.addElement(groupname); notSelectedGroups.removeElement(groupname); } session.putValue("selectedGroups", selectedGroups); session.putValue("notSelectedGroups", notSelectedGroups); } else { if(reqCont.getRequest().getParameter("REMOVE") != null) { // delete a new group from selectedGroups // and move it to notSelectedGroups String groupname = (String)parameters.get("selectgroup"); if(groupname != null) { notSelectedGroups.addElement(groupname); selectedGroups.removeElement(groupname); if(groupname.equals(defaultGroup)) { defaultGroup = ""; } } session.putValue("selectedGroups", selectedGroups); session.putValue("notSelectedGroups", notSelectedGroups); } else { if(reqCont.getRequest().getParameter("OK") != null) { // form submitted, try to establish new user try { if(email.equals("") || userLastname.equals("") || user.equals("")) { throw new CmsException("user data missing", CmsException.C_NO_USER); } if(!pwd.equals(pwd2)) { throw new CmsException("unequal passwords", CmsException.C_SHORT_PASSWORD); } if(pwd.length() < C_PASSWORD_MINIMUMSIZE) { throw new CmsException("password too short", CmsException.C_SHORT_PASSWORD); } Hashtable additionalInfo = new Hashtable(); // additionalInfo.put(C_ADDITIONAL_INFO_ZIPCODE, zipcode); // additionalInfo.put(C_ADDITIONAL_INFO_TOWN, town); CmsUser newUser = cms.addUser(user, pwd, defaultGroup, desc, additionalInfo, C_FLAG_ENABLED); newUser.setEmail(email); newUser.setFirstname(firstname); newUser.setLastname(userLastname); newUser.setAddress(street); newUser.setAdditionalInfo(C_ADDITIONAL_INFO_ZIPCODE, zipcode); newUser.setAdditionalInfo(C_ADDITIONAL_INFO_TOWN, town); for(int z = 0;z < selectedGroups.size();z++) { String groupname = (String)selectedGroups.elementAt(z); if(!groupname.equals(defaultGroup)) { cms.addUserToGroup(user, groupname); } } cms.writeUser(newUser); // update in the database session.removeValue("selectedGroups"); session.removeValue("notSelectedGroups"); session.removeValue("ERROR"); templateSelector = ""; //successful } catch(CmsException e) { // save the form data in the session, so it can be displayed again later session.putValue("ERROR", new String("yes")); // remeber that an error has occurred session.putValue("USERFIRSTNAME", firstname); session.putValue("USERDESC", desc); session.putValue("USERSTREET", street); session.putValue("PWD", pwd); session.putValue("PWD2", pwd2); session.putValue("USER", user); session.putValue("USERNAME", userLastname); session.putValue("ZIP", zipcode); session.putValue("TOWN", town); session.putValue("USEREMAIL", email); session.putValue("DEFAULTGROUP", defaultGroup); if(e.getType() == CmsException.C_SHORT_PASSWORD) { if(e.getMessage().equals("unequal passwords")) { templateSelector = "passworderror1"; } else { if(e.getMessage().equals("password too short")) { templateSelector = "passworderror2"; } else { throw e; } } } else { if(e.getType() == CmsException.C_NO_GROUP) { templateSelector = "errornogroup1"; } else { if(e.getType() == CmsException.C_NO_USER && e.getMessage().equals("user data missing")) { templateSelector = "errordatamissing1"; } else { throw e; // hand the exception down } } } } // catch block } // OK } } } else { // input is the form for changing the user data templateSelector = "changeuser"; boolean disabled = false; if(!userYetChanged) { // form visited for the first time, not yet changed // read the data from the user object CmsUser theUser = (CmsUser)cms.readUser(user); if(theUser == null) { throw new CmsException("user does not exist"); } firstname = theUser.getFirstname(); desc = theUser.getDescription(); street = theUser.getAddress(); userLastname = theUser.getLastname(); email = theUser.getEmail(); disabled = theUser.getDisabled(); zipcode = (String)theUser.getAdditionalInfo(C_ADDITIONAL_INFO_ZIPCODE); town = (String)theUser.getAdditionalInfo(C_ADDITIONAL_INFO_TOWN); defaultGroup = theUser.getDefaultGroup().getName(); Vector groups = cms.getDirectGroupsOfUser(user); if(groups != null) { selectedGroups = new Vector(); for(int z = 0;z < groups.size();z++) { selectedGroups.addElement(((CmsGroup)groups.elementAt(z)).getName()); } } else { throw new CmsException(CmsException.C_NO_GROUP); } groups = cms.getGroups(); if(groups != null) { notSelectedGroups = new Vector(); for(int z = 0;z < groups.size();z++) { String name = ((CmsGroup)groups.elementAt(z)).getName(); if(!selectedGroups.contains(name)) { notSelectedGroups.addElement(name); } } } } else { // fetch data from the form if((String)parameters.get("LOCK") != null) { disabled = true; } if(reqCont.getRequest().getParameter("ADD") != null) { // add a new group to selectedGroups String groupname = (String)parameters.get("notselectgroup"); if(groupname != null) { selectedGroups.addElement(groupname); notSelectedGroups.removeElement(groupname); } } else { if(reqCont.getRequest().getParameter("REMOVE") != null) { // delete a group from selectedGroups // and move it to notSelectedGroups String groupname = (String)parameters.get("selectgroup"); if(groupname != null) { notSelectedGroups.addElement(groupname); selectedGroups.removeElement(groupname); if(groupname.equals(defaultGroup)) { defaultGroup = ""; } } } else { if(reqCont.getRequest().getParameter("OK") != null) { // form submitted, try to change the user data try { if(email.equals("") || userLastname.equals("") || user.equals("")) { throw new CmsException("user data missing", CmsException.C_NO_USER); } if(!pwd.equals(pwd2)) { throw new CmsException("unequal passwords", CmsException.C_SHORT_PASSWORD); } if(!pwd.equals("")) { if(pwd.length() < C_PASSWORD_MINIMUMSIZE) { throw new CmsException("password too short", CmsException.C_SHORT_PASSWORD); } cms.setPassword(user, pwd); } // if nothing is entered don't change the password CmsUser theUser = (CmsUser)cms.readUser(user); theUser.setEmail(email); theUser.setFirstname(firstname); theUser.setLastname(userLastname); theUser.setAddress(street); theUser.setAdditionalInfo(C_ADDITIONAL_INFO_ZIPCODE, zipcode); theUser.setAdditionalInfo(C_ADDITIONAL_INFO_TOWN, town); if((C_USER_ADMIN.equals(theUser.getName())) && (!selectedGroups.contains(C_GROUP_ADMIN))) { throw new CmsException("cant remove Admin from " + C_GROUP_ADMIN, CmsException.C_NOT_ADMIN); } if(disabled && selectedGroups.contains(C_GROUP_ADMIN)) { throw new CmsException("disabled admin", CmsException.C_NOT_ADMIN); } if(disabled == true) { theUser.setDisabled(); } else { theUser.setEnabled(); } changeGroups(cms, theUser, defaultGroup, selectedGroups); session.removeValue("selectedGroups"); session.removeValue("notSelectedGroups"); session.removeValue("DEFAULTGROUP"); session.removeValue("ERROR"); templateSelector = ""; //successful } catch(CmsException e) { session.putValue("ERROR", new String("yes")); // remeber that an error has occurred session.putValue("USERFIRSTNAME", firstname); session.putValue("USERDESC", desc); session.putValue("USERSTREET", street); session.putValue("PWD", pwd); session.putValue("PWD2", pwd2); session.putValue("USER", user); session.putValue("USERNAME", userLastname); session.putValue("ZIP", zipcode); session.putValue("TOWN", town); session.putValue("USEREMAIL", email); session.putValue("DEFAULTGROUP", defaultGroup); if(e.getType() == CmsException.C_SHORT_PASSWORD) { if(e.getMessage().equals("unequal passwords")) { templateSelector = "passworderror3"; } else { if(e.getMessage().equals("password too short")) { templateSelector = "passworderror4"; } else { throw e; } } } else { if(e.getType() == CmsException.C_NO_GROUP) { templateSelector = "errornogroup2"; } else { if(e.getType() == CmsException.C_NO_USER && e.getMessage().equals("user data missing")) { templateSelector = "errordatamissing2"; } else { if(e.getType() == CmsException.C_NOT_ADMIN && e.getMessage().equals("disabled admin")) { templateSelector = "errordisabledadmin"; } else { throw e; // hand the exception down } } } } } // catch block } // OK } } } // userYetEstablished session.putValue("selectedGroups", selectedGroups); session.putValue("notSelectedGroups", notSelectedGroups); session.putValue("DEFAULTGROUP", defaultGroup); xmlTemplateDocument.setData("DISABLED", disabled ? "checked" : ""); } // again common part for 'newuser' and 'changeuser': // set the variables for display in the document if(firstname == null) { firstname = ""; } if(desc == null) { desc = ""; } if(street == null) { street = ""; } if(pwd == null) { pwd = ""; } if(pwd2 == null) { pwd2 = ""; } if(user == null) { user = ""; } if(userLastname == null) { userLastname = ""; } if(town == null) { town = ""; } if(zipcode == null) { zipcode = ""; } if(email == null) { email = ""; } xmlTemplateDocument.setData("USERFIRSTNAME", firstname); xmlTemplateDocument.setData("USERDESC", desc); xmlTemplateDocument.setData("USERSTREET", street); xmlTemplateDocument.setData("PWD", pwd); xmlTemplateDocument.setData("PWD2", pwd2); xmlTemplateDocument.setData("USER", user); xmlTemplateDocument.setData("USERNAME", userLastname); xmlTemplateDocument.setData("TOWN", town); xmlTemplateDocument.setData("ZIP", zipcode); xmlTemplateDocument.setData("EMAIL", email); } // belongs to: 'if perspective is newuser or changeuser' else { if(perspective.equals("deleteuser")) { String user = (String)parameters.get("USER"); xmlTemplateDocument.setData("USER", user); templateSelector = "RUsureDelete"; } else { if(perspective.equals("reallydeleteuser")) { // deleting a user String user = (String)parameters.get("USER"); try { cms.deleteUser(user); templateSelector = ""; } catch(Exception e) { // user == null or delete failed xmlTemplateDocument.setData("DELETEDETAILS", Utils.getStackTrace(e)); templateSelector = "deleteerror"; } } // delete user } } // Now load the template file and start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/4441f9abf854daec115ad9c599fdd4770f19035e/CmsAdminUsers.java/clean/src/com/opencms/workplace/CmsAdminUsers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 2398, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 309, 12, 39, 67, 9394, 597, 432, 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, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 2398, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 309, 12, 39, 67, 9394, 597, 432, 67,...
yaccValue = new Token(new Long(0), getPosition(null, false));
yaccValue = new Token(new Long(0), getPositionMinusOne());
private int parseNumber(char c) { lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); if (c == '-') { tokenBuffer.append(c); c = src.read(); } else if (c == '+') { // We don't append '+' since Java number parser gets confused c = src.read(); } char nondigit = '\0'; if (c == '0') { int startLen = tokenBuffer.length(); switch (c = src.read()) { case 'x' : case 'X' : // hexadecimal c = src.read(); if (isHexChar(c)) { for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (isHexChar(c)) { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } } src.unread(c); if (tokenBuffer.length() == startLen) { throw new SyntaxException(src.getPosition(), "Hexadecimal number without hex-digits."); } else if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = new Token(getInteger(tokenBuffer.toString(), 16), getPosition(null, false)); return Tokens.tINTEGER; case 'b' : case 'B' : // binary c = src.read(); if (c == '0' || c == '1') { for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (c == '0' || c == '1') { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } } src.unread(c); if (tokenBuffer.length() == startLen) { throw new SyntaxException(src.getPosition(), "Binary number without digits."); } else if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = new Token(getInteger(tokenBuffer.toString(), 2), getPosition(null, false)); return Tokens.tINTEGER; case 'd' : case 'D' : // decimal c = src.read(); if (Character.isDigit(c)) { for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (Character.isDigit(c)) { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } } src.unread(c); if (tokenBuffer.length() == startLen) { throw new SyntaxException(src.getPosition(), "Binary number without digits."); } else if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = new Token(getInteger(tokenBuffer.toString(), 2), getPosition(null, false)); return Tokens.tINTEGER; case '0' : case '1' : case '2' : case '3' : case '4' : //Octal case '5' : case '6' : case '7' : case '_' : for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (c >= '0' && c <= '7') { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } if (tokenBuffer.length() > startLen) { src.unread(c); if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = new Token(getInteger(tokenBuffer.toString(), 8), getPosition(null, false)); return Tokens.tINTEGER; } case '8' : case '9' : throw new SyntaxException(src.getPosition(), "Illegal octal digit."); case '.' : case 'e' : case 'E' : tokenBuffer.append('0'); break; default : src.unread(c); yaccValue = new Token(new Long(0), getPosition(null, false)); return Tokens.tINTEGER; } } boolean seen_point = false; boolean seen_e = false; for (;; c = src.read()) { switch (c) { case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : nondigit = '\0'; tokenBuffer.append(c); break; case '.' : if (nondigit != '\0') { src.unread(c); throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } else if (seen_point || seen_e) { src.unread(c); return getNumberToken(tokenBuffer.toString(), true, nondigit); } else { char c2; if (!Character.isDigit(c2 = src.read())) { src.unread(c2); src.unread('.'); if (c == '_') { // Enebo: c can never be antrhign but '.' // Why did I put this here? } else { yaccValue = new Token(getInteger(tokenBuffer.toString(), 10), getPosition(null, false)); return Tokens.tINTEGER; } } else { tokenBuffer.append('.'); tokenBuffer.append(c2); seen_point = true; nondigit = '\0'; } } break; case 'e' : case 'E' : if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } else if (seen_e) { src.unread(c); return getNumberToken(tokenBuffer.toString(), true, nondigit); } else { tokenBuffer.append(c); seen_e = true; nondigit = c; c = src.read(); if (c == '-' || c == '+') { tokenBuffer.append(c); nondigit = c; } else { src.unread(c); } } break; case '_' : // '_' in number just ignored if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } nondigit = c; break; default : src.unread(c); return getNumberToken(tokenBuffer.toString(), seen_e || seen_point, nondigit); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/67a441c8ea70c9532cdedb2001a6741b63e793ae/RubyYaccLexer.java/clean/src/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 1854, 12, 3001, 276, 13, 288, 3639, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 3639, 1147, 1892, 18, 542, 1782, 12, 20, 1769, 3639, 309, 261, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 1109, 1854, 12, 3001, 276, 13, 288, 3639, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 3639, 1147, 1892, 18, 542, 1782, 12, 20, 1769, 3639, 309, 261, 71, ...
AST tmp141_AST = null; tmp141_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp141_AST);
AST tmp143_AST = null; tmp143_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp143_AST);
public final void defaultNamespaceDecl() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST defaultNamespaceDecl_AST = null; Token defu = null; AST defu_AST = null; Token deff = null; AST deff_AST = null; AST tmp136_AST = null; tmp136_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp136_AST); match(LITERAL_declare); AST tmp137_AST = null; tmp137_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp137_AST); match(LITERAL_default); { switch ( LA(1)) { case LITERAL_element: { AST tmp138_AST = null; tmp138_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp138_AST); match(LITERAL_element); AST tmp139_AST = null; tmp139_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp139_AST); match(LITERAL_namespace); defu = LT(1); defu_AST = astFactory.create(defu); astFactory.addASTChild(currentAST, defu_AST); match(STRING_LITERAL); if ( inputState.guessing==0 ) { defaultNamespaceDecl_AST = (AST)currentAST.root; defaultNamespaceDecl_AST= (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(DEF_NAMESPACE_DECL,"defaultNamespaceDecl")).add(defu_AST)); currentAST.root = defaultNamespaceDecl_AST; currentAST.child = defaultNamespaceDecl_AST!=null &&defaultNamespaceDecl_AST.getFirstChild()!=null ? defaultNamespaceDecl_AST.getFirstChild() : defaultNamespaceDecl_AST; currentAST.advanceChildToEnd(); } break; } case LITERAL_function: { AST tmp140_AST = null; tmp140_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp140_AST); match(LITERAL_function); AST tmp141_AST = null; tmp141_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp141_AST); match(LITERAL_namespace); deff = LT(1); deff_AST = astFactory.create(deff); astFactory.addASTChild(currentAST, deff_AST); match(STRING_LITERAL); if ( inputState.guessing==0 ) { defaultNamespaceDecl_AST = (AST)currentAST.root; defaultNamespaceDecl_AST= (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(DEF_FUNCTION_NS_DECL,"defaultFunctionNSDecl")).add(deff_AST)); currentAST.root = defaultNamespaceDecl_AST; currentAST.child = defaultNamespaceDecl_AST!=null &&defaultNamespaceDecl_AST.getFirstChild()!=null ? defaultNamespaceDecl_AST.getFirstChild() : defaultNamespaceDecl_AST; currentAST.advanceChildToEnd(); } break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } defaultNamespaceDecl_AST = (AST)currentAST.root; returnAST = defaultNamespaceDecl_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/722cca774247887cf67fef993c71f848a05e075f/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 805, 3402, 3456, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 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, 225, 202, 482, 727, 918, 805, 3402, 3456, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 2...
if (!(other instanceof ColumnConstraint))
if (!(other instanceof ColumnConstraint)) {
public boolean equals(Object other){ if (!(other instanceof ColumnConstraint)) return false; if (member!= null) return (member.equals(((ColumnConstraint)other).getMember())); if (value != null) return (value.equals(((ColumnConstraint)other).getValue())); return (null == ((ColumnConstraint)other).getValue()); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/0cc18052c959f8014f772086b193e28d7a6dd66a/ColumnConstraint.java/buggy/src/main/mondrian/rolap/agg/ColumnConstraint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 1308, 15329, 3639, 309, 16051, 12, 3011, 1276, 4753, 5806, 3719, 288, 5411, 327, 629, 31, 3639, 309, 261, 5990, 5, 33, 446, 13, 5411, 327, 261, 5990, 18, 1496...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1606, 12, 921, 1308, 15329, 3639, 309, 16051, 12, 3011, 1276, 4753, 5806, 3719, 288, 5411, 327, 629, 31, 3639, 309, 261, 5990, 5, 33, 446, 13, 5411, 327, 261, 5990, 18, 1496...
if (moduleToSelect != null) { projectRootConfigurable.selectModuleTab(moduleToSelect, tabNameToSelect); } projectRootConfigurable.setStartModuleWizard(showModuleWizard); SwingUtilities.invokeLater(new Runnable() { public void run() { projectRootConfigurable.setStartModuleWizard(false);
createModuleEditor(module, builder);
public void run() { if (moduleToSelect != null) { projectRootConfigurable.selectModuleTab(moduleToSelect, tabNameToSelect); } projectRootConfigurable.setStartModuleWizard(showModuleWizard); SwingUtilities.invokeLater(new Runnable() { public void run() { projectRootConfigurable.setStartModuleWizard(false); } }); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/de95defbfd97b0015020d82b9d4f6dbd1b2d6f98/ModulesConfigurator.java/buggy/source/com/intellij/openapi/roots/ui/configuration/ModulesConfigurator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1086, 1435, 288, 3639, 309, 261, 2978, 774, 3391, 480, 446, 13, 288, 1850, 27905, 31660, 18, 4025, 3120, 5661, 12, 2978, 774, 3391, 16, 3246, 28455, 3391, 1769, 3639, 289, 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, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1086, 1435, 288, 3639, 309, 261, 2978, 774, 3391, 480, 446, 13, 288, 1850, 27905, 31660, 18, 4025, 3120, 5661, 12, 2978, 774, 3391, 16, 3246, 28455, 3391, 1769, 3639, 289, 363...
}
e = b.getOut(); while (e.hasMoreElements()) { OPT_BasicBlock out = e.next(); if (!OPT_CFGTransformations.inLoop (out, nloop)) { if (exitBlock == null) { exitBlock = out; } else { report("5 multiple exit blocks.\n"); return true; } } } } if (exitBlock == null) { report("6 no exit block found...infinite loop?"); return true; } if (exitBlock != backEdgeBlock) { report("7 exit block is not immediate predecessor of loop head"); return true; }
static boolean unrollLeaf(OPT_LSTNode t, OPT_IR ir) { int instructionsInLoop = 0; OPT_BasicBlock exitBlock = null, succBlock = null, predBlock = null; OPT_BitVector nloop = t.loop; OPT_BasicBlock header = t.header; OPT_Instruction tmp; if (ir.hasReachableExceptionHandlers()){ report ("0 IR may have exception handlers\n"); return false;} // determine loop structure by looking at its blocks OPT_BasicBlockEnumeration loopBlocks = ir.getBasicBlocks(nloop); int blocks = 0; while (loopBlocks.hasMoreElements()) { OPT_BasicBlock b = loopBlocks.next(); blocks++; // check for size instructionsInLoop += b.getNumberOfRealInstructions(); if (instructionsInLoop > MaxInstructions) { report ("1 is too big\n"); return false;} // look at the in edges. We want the header to be the only // block with out of loop incoming edges. OPT_BasicBlockEnumeration e = b.getIn(); if (b != header) { while (e.hasMoreElements()) { OPT_BasicBlock o = e.next(); if (!OPT_CFGTransformations.inLoop (o, nloop)) { report ("2 interior pointers.\n"); return true;} } } else { // check the headers predecessors: there should be // one out of loop input and one backedge. // We can extend this for loops with several backedges, // if they all have the same conditions. int inEdges = 0; while (e.hasMoreElements()) { inEdges++; OPT_BasicBlock o = e.next(); if (!OPT_CFGTransformations.inLoop (o, nloop)) { if (predBlock == null) predBlock = o; else {report ("3 multi entry header.\n"); return true;} } else { if (exitBlock == null) exitBlock = o; else {report ("4 multiple back edges.\n"); return true;} } } } } // exitBlock must exit (skip over pads in critical edges) while (exitBlock.getNumberOfOut() == 1 && exitBlock.getNumberOfIn() == 1) exitBlock = exitBlock.getIn().next(); OPT_BasicBlockEnumeration e = exitBlock.getOut(); boolean exits = false; while (e.hasMoreElements()) { OPT_BasicBlock b = e.next(); if (!OPT_CFGTransformations.inLoop (b, nloop)) {exits = true; break;} } if (!exits) {report ("5 exitBlock doesn't exit\n"); return true;} if (exitBlock == header && blocks > 1) { report("6 while loop? ("+blocks+")\n"); return true;} // So far, so good. Examine the exit test. OPT_Instruction origBranch = exitBlock.firstBranchInstruction(); if (origBranch != exitBlock.lastRealInstruction()) { OPT_Instruction aGoto = origBranch.nextInstructionInCodeOrder(); if (aGoto.operator.opcode != GOTO_opcode) { report ("7 too complex exit\n"); return true;} succBlock = Label.getBlock(Goto.getTarget(aGoto).target).block; if (VM.VerifyAssertions) VM._assert (aGoto == exitBlock.lastRealInstruction()); } else { succBlock = exitBlock.getFallThroughBlock(); } if (origBranch.operator.opcode != INT_IFCMP_opcode) { report("8 branch isn't int_ifcmp: "+origBranch.operator+".\n"); return true;} // examine operands: OPT_Operand op1 = follow(IfCmp.getVal1(origBranch)); OPT_Operand op2 = follow(IfCmp.getVal2(origBranch)); OPT_ConditionOperand cond = (OPT_ConditionOperand)IfCmp.getCond(origBranch).copy(); OPT_RegisterOperand ifcmpGuard = IfCmp.getGuardResult(origBranch); float backBranchProbability = IfCmp.getBranchProfile (origBranch).takenProbability; if (!loopInvariant (op2, nloop, 4)) { if (loopInvariant (op1, nloop, 4)) { OPT_Operand op = op1; op1 = op2; op2 = op; cond.flipOperands(); } else { if (DEBUG) { printDefs (op1, nloop, 4); printDefs (op2, nloop, 4); VM.sysWrite (""+origBranch+"\n"); } report ("8a op1 and op2 may not be loop invariant\n"); return true; } } OPT_BasicBlock target = Label.getBlock(IfCmp.getTarget(origBranch).target).block; if (!(op1 instanceof OPT_RegisterOperand)) { report ("9 op1 of ifcmp isn't a register\n"); return true;} OPT_RegisterOperand rop1 = (OPT_RegisterOperand) op1; OPT_Register reg = rop1.register; if (reg.isPhysical()) {report("10 loops over physical register\n"); return false;} if (succBlock == header && !OPT_CFGTransformations.inLoop (target, nloop)) { succBlock = target; target = header; cond.flipCode(); } if (target != header) {report("11 ifcmp doesn't jump to header\n");return true;} OPT_Instruction iterator = null; OPT_OperandEnumeration defs = new RealDefs (rop1); while (defs.hasMoreElements()) { OPT_Operand def = defs.next(); OPT_Instruction inst = def.instruction; OPT_BasicBlock block = inst.getBasicBlock(); //VM.sysWrite (""+block+": "+inst+"\n"); if (OPT_CFGTransformations.inLoop (block, nloop)) { if (iterator == null) { iterator = inst; } else {report("12 iterator not unique.\n"); return true;} } } if (iterator == null) {report ("15 iterator not found.\n"); return true;} if (iterator.operator.opcode != INT_ADD_opcode) { //dumpIR (ir, "malformed"); report ("16 iterator is no addition: "+iterator.operator+"\n"); return true;} if (!rop1.similar(follow(Binary.getVal1(iterator)))) { //dumpIR (ir, "malformed"); report ("17 malformed iterator.\n"+iterator+"\n"); return true;} OPT_Operand strideOp = follow (Binary.getVal2(iterator)); if (!(strideOp instanceof OPT_IntConstantOperand)) { report ("18 stride not constant\n"); return true;} int stride = ((OPT_IntConstantOperand)strideOp).value; if (stride != 1 && stride != -1) { report ("18b stride != +/-1 ("+stride+")\n"); return true;} if (( stride == 1 && (( cond.value != OPT_ConditionOperand.LESS) && cond.value != OPT_ConditionOperand.LESS_EQUAL && cond.value != OPT_ConditionOperand.NOT_EQUAL )) || (stride == -1 && (( cond.value != OPT_ConditionOperand.GREATER) && cond.value != OPT_ConditionOperand.GREATER_EQUAL && cond.value != OPT_ConditionOperand.NOT_EQUAL ))) { report ("19 unexpected condition: "+cond+"\n"+iterator+"\n" +origBranch+"\n\n"); return true; } OPT_RegisterOperand outerGuard; OPT_BasicBlock outer = predBlock; while (outer.getNumberOfOut() == 1 && outer.getNumberOfIn() == 1) { outer = outer.getIn().next(); } if (outer.getNumberOfIn() > 0 && outer.getNumberOfOut() < 2) { report ("23 no suitable outer guard found.\n"); return true;} tmp = outer.firstBranchInstruction(); if (tmp != null && GuardResultCarrier.conforms(tmp)) outerGuard = GuardResultCarrier.getGuardResult(tmp); else { outerGuard = ir.regpool.makeTempValidation(); } //////////// // transfom // transform this: // // Orig: // B // if i CC b goto Orig // else goto exit // // exit: // // into this: ////// stride == 1: common: stride == -1://--------------------------------------------------------------------------// guard0:// limit = b;// if a > b goto Orig if b > a goto Orig// else guard1 // // // guard 1: // remainder = b - a; remainder = a - b;// if cond == '<=' if cond == '>='// remainder++; remainder++;// remainder = remainder & 3 // limit = a + remainder limit = a - remainder// if cond == '<=' if cond == '>='// limit--; limit++;// if remainder == 0 goto mllp // goto Orig // // Orig: // LOOP; // if i CC limit goto Orig // else guard2 // // guard2: if i CC b goto mllp // else exit// // mllp: // landing pad// goto ml// // ml: // LOOP;LOOP;LOOP;LOOP; // if i CC b goto ml // else exit// // exit://-------------------------------------------------------------------------- report ("...transforming.\n"); if (DEBUG && ir.options.hasMETHOD_TO_PRINT() && ir.options.fuzzyMatchMETHOD_TO_PRINT(ir.method.toString())) dumpIR(ir, "before unroll"); OPT_CFGTransformations.killFallThroughs (ir, nloop); OPT_BasicBlock handles[] = makeSomeCopies(unrollFactor, ir, nloop, blocks, header, exitBlock, exitBlock); OPT_BasicBlock mainHeader = handles[0]; OPT_BasicBlock mainExit = handles[1]; // test block for well formed bounds OPT_BasicBlock guardBlock0 = header.createSubBlock(header.firstInstruction().bcIndex, ir); predBlock.redirectOuts (header, guardBlock0, ir); // test block for iteration alignemnt OPT_BasicBlock guardBlock1 = header.createSubBlock(header.firstInstruction().bcIndex, ir); // landing pad for orig loop OPT_BasicBlock olp = header.createSubBlock(header.firstInstruction().bcIndex, ir); olp.setLandingPad(); OPT_BasicBlock predSucc = predBlock.nextBasicBlockInCodeOrder(); if (predSucc != null) { ir.cfg.breakCodeOrder(predBlock, predSucc); ir.cfg.linkInCodeOrder(olp, predSucc); } ir.cfg.linkInCodeOrder(predBlock, guardBlock0); ir.cfg.linkInCodeOrder(guardBlock0, guardBlock1); ir.cfg.linkInCodeOrder(guardBlock1, olp); // guard block for main loop OPT_BasicBlock guardBlock2 = header.createSubBlock(header.firstInstruction().bcIndex, ir); // landing pad for main loop OPT_BasicBlock landingPad = header.createSubBlock(header.firstInstruction().bcIndex, ir); landingPad.setLandingPad(); OPT_BasicBlock mainLoop = exitBlock.nextBasicBlockInCodeOrder(); ir.cfg.breakCodeOrder (exitBlock, mainLoop); ir.cfg.linkInCodeOrder(exitBlock, guardBlock2); ir.cfg.linkInCodeOrder(guardBlock2, landingPad); ir.cfg.linkInCodeOrder(landingPad, mainLoop); OPT_RegisterOperand remainder = ir.regpool.makeTemp(rop1.type); OPT_RegisterOperand limit = ir.regpool.makeTemp(rop1.type); // test whether a <= b for stride == 1 and a >= b for stride == -1 tmp = guardBlock0.lastInstruction(); tmp.insertBefore (Move.create (INT_MOVE, limit, op2.copy())); OPT_ConditionOperand g0cond = OPT_ConditionOperand.GREATER_EQUAL(); if (stride == -1) g0cond = OPT_ConditionOperand.LESS_EQUAL(); tmp.insertBefore (IfCmp.create(INT_IFCMP, outerGuard.copyD2D(), rop1.copyD2U(), op2.copy(), g0cond, olp.makeJumpTarget(), OPT_BranchProfileOperand.unlikely())); tmp.insertBefore(Goto.create(GOTO, guardBlock1.makeJumpTarget())); // align the loop iterations tmp = guardBlock1.lastInstruction(); if (stride == 1) tmp.insertBefore (Binary.create(INT_SUB, remainder, op2.copy(), rop1.copyD2U())); else tmp.insertBefore (Binary.create(INT_SUB, remainder, rop1.copyD2U(), op2.copy())); if (cond.isGREATER_EQUAL() || cond.isLESS_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(1))); tmp.insertBefore (Binary.create(INT_ADD, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(-1))); tmp.insertBefore (Binary.create(INT_AND, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(unrollFactor-1))); tmp.insertBefore (Binary.create(INT_ADD, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(1))); if (stride == 1) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2U(), op1.copy(), remainder.copyD2U())); else tmp.insertBefore (Binary.create(INT_SUB, limit.copyD2U(), op1.copy(), remainder.copyD2U())); if (cond.isLESS_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2D(), limit.copyD2U(), new OPT_IntConstantOperand(-1))); if (cond.isGREATER_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2D(), limit.copyD2U(), new OPT_IntConstantOperand(1))); tmp.insertBefore(Goto.create(GOTO, olp.makeJumpTarget())); // build landing pad for original loop tmp = olp.lastInstruction(); tmp.insertBefore(Goto.create(GOTO, header.makeJumpTarget())); // change the back branch in the original loop deleteBranches (exitBlock); tmp = exitBlock.lastInstruction(); tmp.insertBefore (IfCmp.create (INT_IFCMP, outerGuard.copyD2D(), rop1.copyU2U(), limit.copyD2U(), (OPT_ConditionOperand) cond.copy(), header.makeJumpTarget(), new OPT_BranchProfileOperand(1.0f - 1.0f / (unrollFactor/2)))); tmp.insertBefore (Goto.create(GOTO,guardBlock2.makeJumpTarget())); // only enter main loop if iterations left tmp = guardBlock2.lastInstruction(); tmp.insertBefore (IfCmp.create (INT_IFCMP, outerGuard.copyD2D(), rop1.copyU2U(), op2.copy(), (OPT_ConditionOperand) cond.copy(), landingPad.makeJumpTarget(), new OPT_BranchProfileOperand(backBranchProbability))); tmp.insertBefore (Goto.create (GOTO, succBlock.makeJumpTarget())); // landing pad jumps to mainHeader tmp = landingPad.lastInstruction(); tmp.insertBefore (Goto.create(GOTO, mainHeader.makeJumpTarget())); // repair back edge in mainExit if (VM.VerifyAssertions) VM._assert (mainExit != null); tmp = mainExit.lastInstruction(); if (VM.VerifyAssertions) VM._assert (( mainExit.lastRealInstruction() == null) || !mainExit.lastRealInstruction().isBranch()); tmp.insertBefore (IfCmp.create (INT_IFCMP, ifcmpGuard.copyU2U(), rop1.copyU2U(), op2.copy(), (OPT_ConditionOperand) cond.copy(), mainHeader.makeJumpTarget(), new OPT_BranchProfileOperand(1.0f - (1.0f-backBranchProbability) * unrollFactor))); tmp.insertBefore (Goto.create (GOTO, succBlock.makeJumpTarget())); if (mainHeader.firstInstruction().position.getMethod().isInterruptible()) { mainHeader.prependInstruction (Empty.create (YIELDPOINT_BACKEDGE)); } // recompute normal outs guardBlock0.recomputeNormalOut(ir); guardBlock1.recomputeNormalOut(ir); olp.recomputeNormalOut(ir); guardBlock2.recomputeNormalOut(ir); exitBlock.recomputeNormalOut(ir); landingPad.recomputeNormalOut(ir); mainExit.recomputeNormalOut(ir); if (DEBUG && ir.options.hasMETHOD_TO_PRINT() && ir.options.fuzzyMatchMETHOD_TO_PRINT(ir.method.toString())) dumpIR(ir, "after unroll"); return false; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/70e0995ec380a322eebfe3e7515348c42045a56e/OPT_LoopUnrolling.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/control/OPT_LoopUnrolling.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1250, 640, 2693, 9858, 12, 15620, 67, 48, 882, 907, 268, 16, 16456, 67, 7937, 9482, 13, 288, 565, 509, 12509, 382, 6452, 273, 374, 31, 565, 16456, 67, 8252, 1768, 2427, 1768, 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, 282, 760, 1250, 640, 2693, 9858, 12, 15620, 67, 48, 882, 907, 268, 16, 16456, 67, 7937, 9482, 13, 288, 565, 509, 12509, 382, 6452, 273, 374, 31, 565, 16456, 67, 8252, 1768, 2427, 1768, 273, ...
if (aJavaTask.executeJava() != 0) { throw new BuildException("GenIC reported an error"); } addAllFiles(anOutputDirectoryFile,"",someFiles);
aJavaTask.createArg().setValue(inSourceJar.getPath());
private void buildJOnASJar(final String inBaseName, final File inSourceJar,final File inDestJar, final Hashtable someFiles,String inPublicId) { org.apache.tools.ant.taskdefs.Java aJavaTask = null; String aGenIcClassName = genicClass; boolean isOldGenIC = false; boolean isTempDirectory = false; File anOutputDirectoryFile = null; // do not call GenIC // only copy file if (noGENIC) { try { FileUtils.newFileUtils().copyFile(inSourceJar, inDestJar); return; } catch (IOException anIOException) { throw new BuildException("Unable to write EJB jar", anIOException); } } // call GenIC try { aJavaTask = (Java) getTask().getProject().createTask("java"); aJavaTask.setTaskName("genic"); if(aGenIcClassName == null) { aGenIcClassName = GENIC_CLASS; } else if( OLD_GENIC_CLASS.equals(aGenIcClassName) ){ isOldGenIC = true; } // ClassName aJavaTask.setClassname(aGenIcClassName); // JVM Args if( jonasroot == null ) { throw new BuildException("Error : set the jonasroot parameter"); } else if ( ! jonasroot.isDirectory() ) { log("jonasroot attribut '" + jonasroot + "' is not a valid directory", Project.MSG_ERR); } aJavaTask.createJvmarg().setValue("-Dinstall.root=" + jonasroot); File aJavaPolicyFile = new File(jonasroot,"config/java.policy"); if( aJavaPolicyFile.exists() ) { aJavaTask.createJvmarg().setValue("-Djava.security.policy=" + aJavaPolicyFile.toString() ); } // Find output directory if( ouputdirectory == null ) { anOutputDirectoryFile = createTempDir(); isTempDirectory = true; log("Use temporary output directory : " + anOutputDirectoryFile, Project.MSG_VERBOSE); } else { anOutputDirectoryFile = ouputdirectory; log("Use temporary specific output directory : " + anOutputDirectoryFile, Project.MSG_VERBOSE); } aJavaTask.createArg().setValue("-d"); aJavaTask.createArg().setFile(anOutputDirectoryFile); // Additionnal args aJavaTask.createArg().setLine(additionalArgs); // KeepGenerated if (keepgenerated) { aJavaTask.createArg().setValue("-keepgenerated"); } // Verbose if( verbose ) { aJavaTask.createArg().setValue("-verbose"); } // -secpropag if( secpropag ) { aJavaTask.createArg().setValue("-secpropag"); } // The compiler if (compiler == null) { // try to use the compiler specified by build.compiler. Right now we are just going // to allow Jikes String aBuildCompiler = getTask().getProject().getProperty("build.compiler"); if ("jikes".equals(aBuildCompiler) ) { aJavaTask.createArg().setValue("-javac"); aJavaTask.createArg().setValue("jikes"); } } else { if( ! "default".equals( compiler ) ) { aJavaTask.createArg().setValue("-javac"); aJavaTask.createArg().setLine(compiler); } } if( ! isOldGenIC ) { // the add in jar features is buggy... aJavaTask.createArg().setValue("-noaddinjar"); } aJavaTask.createArg().setValue(inSourceJar.getPath()); // try to create the classpath for the correct ORB Path aClasspath = getCombinedClasspath(); if( aClasspath == null ) { aClasspath = new Path(getTask().getProject()); } if( orb != null ) { String aOrbJar = new File(jonasroot,"lib/" + orb + "_jonas.jar").toString(); String aConfigDir = new File(jonasroot,"config/").toString(); Path aJOnASOrbPath = new Path(aClasspath.getProject(), aOrbJar + File.pathSeparator + aConfigDir ); aClasspath.append( aJOnASOrbPath ); } else { log("No ORB propertie setup (RMI, JEREMIE, DAVID).", Project.MSG_WARN); } // append the output directory aClasspath.append( new Path(aClasspath.getProject(), anOutputDirectoryFile.getPath())); aJavaTask.setClasspath(aClasspath); aJavaTask.setFork(true); log("Calling " + aGenIcClassName + " for " + inSourceJar.toString(), Project.MSG_VERBOSE); if (aJavaTask.executeJava() != 0) { throw new BuildException("GenIC reported an error"); } // Update the list of files. addAllFiles(anOutputDirectoryFile,"",someFiles); // rewrite the jar with the new files super.writeJar(inBaseName, inDestJar, someFiles, inPublicId); } catch(BuildException aBuildException) { throw aBuildException; } catch (Exception e) { // Have to catch this because of the semantics of calling main() String msg = "Exception while calling " + aGenIcClassName + ". Details: " + e.toString(); throw new BuildException(msg, e); } finally { if( isTempDirectory && anOutputDirectoryFile != null) { dellAllFiles(anOutputDirectoryFile); } else if( cleanWorkDir && anOutputDirectoryFile != null) { dellAllFilesInside(anOutputDirectoryFile); } } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/JonasDeploymentTool.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1361, 46, 1398, 3033, 10813, 12, 6385, 514, 316, 29907, 16, 1171, 9079, 727, 1387, 316, 1830, 10813, 16, 6385, 1387, 316, 9378, 10813, 16, 1171, 9079, 727, 18559, 2690, 2697, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 46, 1398, 3033, 10813, 12, 6385, 514, 316, 29907, 16, 1171, 9079, 727, 1387, 316, 1830, 10813, 16, 6385, 1387, 316, 9378, 10813, 16, 1171, 9079, 727, 18559, 2690, 2697, 1...
butPunch.setEnabled(enabled);
butPunch.setEnabled(enabled);
public void setPunchEnabled(boolean enabled) { butPunch.setEnabled(enabled); client.getMenuBar().setPhysicalPunchEnabled(enabled); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/bfddb9e38302ae75e9e737b88b90d88b5fa48dab/PhysicalDisplay.java/clean/megamek/src/megamek/client/ui/AWT/PhysicalDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 17004, 4384, 1526, 12, 6494, 3696, 13, 288, 202, 202, 12885, 52, 4384, 18, 542, 1526, 12, 5745, 1769, 3639, 1004, 18, 588, 4599, 5190, 7675, 542, 18136, 52, 4384, 1526, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 17004, 4384, 1526, 12, 6494, 3696, 13, 288, 202, 202, 12885, 52, 4384, 18, 542, 1526, 12, 5745, 1769, 3639, 1004, 18, 588, 4599, 5190, 7675, 542, 18136, 52, 4384, 1526, 1...
viewState = (viewState == null) ? RenderUtils.getViewState("materialTypeToCreate") : viewState;
if(viewState != null) { MaterialTypeBean materialTypeBean = (MaterialTypeBean) viewState.getMetaObject().getObject(); if(materialTypeBean.getMaterial() == null) { addActionMessage(request, "error.material.not.found"); } } viewState = (viewState == null) ? RenderUtils.getViewState("materialTypeToCreate") : viewState;
public ActionForward prepareInsertMaterialOccupation(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixFilterException, FenixServiceException, ExcepcaoPersistencia { IViewState viewState = RenderUtils.getViewState("materialTypeWithMaterial"); viewState = (viewState == null) ? RenderUtils.getViewState("materialTypeToCreate") : viewState; return setMaterialTypeBean(mapping, request, viewState); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/538a818e424464279b9fa79327fc7170b3c7d898/ManageMaterialSpaceOccupationsDA.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/spaceManager/ManageMaterialSpaceOccupationsDA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 2911, 4600, 11790, 24269, 416, 367, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 478, 275, 697, 1586, 503, 16, 5411, 478, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2911, 4600, 11790, 24269, 416, 367, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 478, 275, 697, 1586, 503, 16, 5411, 478, ...
SVNDebugLog.log(e); SVNErrorManager .error("svn: Unable to find repository location for '"
SVNDebugLog.logInfo(e); SVNErrorManager.error("svn: Unable to find repository location for '"
public String getURL(String url, SVNRevision peg, SVNRevision rev) throws SVNException { if (rev == null || !rev.isValid()) { rev = SVNRevision.HEAD; } if (rev.equals(peg)) { return url; } if (peg == null || !peg.isValid()) { return url; } SVNRepository repos = createRepository(url); long pegRevNumber = getRevisionNumber(url, peg); long revNumber = getRevisionNumber(url, rev); List locations = new ArrayList(1); try { locations = (List) repos.getLocations("", locations, pegRevNumber, new long[] { revNumber }); } catch (SVNException e) { SVNDebugLog.log(e); SVNErrorManager .error("svn: Unable to find repository location for '" + url + "' in revision " + revNumber); return null; } if (locations == null || locations.size() != 1) { SVNErrorManager .error("svn: Unable to find repository location for '" + url + "' in revision " + revNumber); return null; } SVNLocationEntry location = (SVNLocationEntry) locations.get(0); String path = SVNEncodingUtil.uriEncode(location.getPath()); String rootPath = SVNEncodingUtil.uriEncode(repos.getRepositoryRoot().getPath()); String fullPath = SVNEncodingUtil.uriEncode(SVNURL.parseURIEncoded(url).getPath()); url = url.substring(0, url.length() - fullPath.length()); url = SVNPathUtil.append(url, rootPath); url = SVNPathUtil.append(url, path); return url; }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/3923f5416342d8fbfe28509bee38b5bd27c711aa/SVNBasicClient.java/clean/javasvn/src/org/tmatesoft/svn/core/wc/SVNBasicClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 19341, 12, 780, 880, 16, 29537, 50, 7939, 29231, 16, 29537, 50, 7939, 5588, 13, 5411, 1216, 29537, 50, 503, 288, 3639, 309, 261, 9083, 422, 446, 747, 401, 9083, 18, 26810, 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, 377, 1071, 514, 19341, 12, 780, 880, 16, 29537, 50, 7939, 29231, 16, 29537, 50, 7939, 5588, 13, 5411, 1216, 29537, 50, 503, 288, 3639, 309, 261, 9083, 422, 446, 747, 401, 9083, 18, 26810, 10...
actionFactory.handleDoubleClick(selection);
actionGroup.runDefaultAction(selection);
protected void handleDoubleClick(DoubleClickEvent event) { IStructuredSelection selection = (IStructuredSelection) event.getSelection(); Object element = selection.getFirstElement(); actionFactory.handleDoubleClick(selection); // 1GBZIA0: ITPUI:WIN2000 - Double-clicking in navigator should expand/collapse containers if (viewer.isExpandable(element)) { viewer.setExpandedState(element, !viewer.getExpandedState(element)); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ae9406ca544b856fdac3df1b4951b06410fdcf52/ResourceNavigator.java/buggy/bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/views/navigator/ResourceNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 5265, 6563, 12, 5265, 6563, 1133, 871, 13, 288, 202, 202, 45, 30733, 6233, 4421, 273, 261, 45, 30733, 6233, 13, 871, 18, 588, 6233, 5621, 202, 202, 921, 930, 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, 225, 202, 1117, 918, 1640, 5265, 6563, 12, 5265, 6563, 1133, 871, 13, 288, 202, 202, 45, 30733, 6233, 4421, 273, 261, 45, 30733, 6233, 13, 871, 18, 588, 6233, 5621, 202, 202, 921, 930, 273, ...
return super.left(cellpadding);
return super.left(cellspacing);
public float left() { return super.left(cellpadding); }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/56bba53f54d48fd94d3f26be006225307949937c/PdfCell.java/buggy/src/com/lowagie/text/pdf/PdfCell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 2002, 1435, 288, 3639, 327, 2240, 18, 4482, 12, 3855, 14080, 1769, 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, 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, 377, 1071, 1431, 2002, 1435, 288, 3639, 327, 2240, 18, 4482, 12, 3855, 14080, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Hashtable env = new Hashtable(); env.put( Context.PROVIDER_URL, "ou=system" ); env.put( Context.INITIAL_CONTEXT_FACTORY, CoreContextFactory.class.getName() ); env.putAll( new ShutdownConfiguration( replicaId ).toJndiEnvironment() ); env.put( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" ); env.put( Context.SECURITY_CREDENTIALS, "secret" ); try { new InitialContext( env ); } catch( Exception e ) { } try { FileUtils.deleteDirectory( workDir ); } catch( Exception e ) { e.printStackTrace(); } workDir.getParentFile().delete();
Hashtable env = new Hashtable(); env.put( Context.PROVIDER_URL, "ou=system" ); env.put( Context.INITIAL_CONTEXT_FACTORY, CoreContextFactory.class .getName() ); env.putAll( new ShutdownConfiguration( replicaId ) .toJndiEnvironment() ); env.put( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" ); env.put( Context.SECURITY_CREDENTIALS, "secret" ); try { new InitialContext( env ); } catch( Exception e ) { }
private void destroyAllReplicas() throws Exception { for( Iterator i = contexts.keySet().iterator(); i.hasNext(); ) { String replicaId = ( String ) i.next(); File workDir = DirectoryService.getInstance( replicaId ).getConfiguration().getStartupConfiguration().getWorkingDirectory(); Hashtable env = new Hashtable(); env.put( Context.PROVIDER_URL, "ou=system" ); env.put( Context.INITIAL_CONTEXT_FACTORY, CoreContextFactory.class.getName() ); env.putAll( new ShutdownConfiguration( replicaId ).toJndiEnvironment() ); env.put( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" ); env.put( Context.SECURITY_CREDENTIALS, "secret" ); try { new InitialContext( env ); } catch( Exception e ) { } try { FileUtils.deleteDirectory( workDir ); } catch( Exception e ) { e.printStackTrace(); } workDir.getParentFile().delete(); i.remove(); } }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/78895f4a7ec6c2bd3ff2c68a0cdf118a26a24496/ReplicationServiceIntegrationTest.java/clean/mitosis/src/test/java/org/apache/directory/mitosis/service/ReplicationServiceIntegrationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5546, 1595, 17248, 1435, 1216, 1185, 202, 95, 202, 202, 1884, 12, 4498, 277, 273, 5781, 18, 856, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 202, 202, 95, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5546, 1595, 17248, 1435, 1216, 1185, 202, 95, 202, 202, 1884, 12, 4498, 277, 273, 5781, 18, 856, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 202, 202, 95, 108...
for (OpenDefinitionsDocument doc: docs) { if (doc.isModifiedSinceSave()) return true; }
for (OpenDefinitionsDocument doc: docs) { if (doc.isSourceFile() && doc.isModifiedSinceSave()) return true; }
public boolean hasModifiedDocuments() { OpenDefinitionsDocument[] docs; synchronized(_documentsRepos) { docs = _documentsRepos.toArray(new OpenDefinitionsDocument[0]); } for (OpenDefinitionsDocument doc: docs) { if (doc.isModifiedSinceSave()) return true; } return false; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/ac147bfd47d7e558bfd3f0afa39ad091a35b6f6f/AbstractGlobalModel.java/buggy/drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 711, 4575, 12922, 1435, 288, 565, 3502, 7130, 2519, 8526, 3270, 31, 3639, 3852, 24899, 24795, 28453, 13, 288, 3270, 273, 389, 24795, 28453, 18, 31447, 12, 2704, 3502, 7130, 2519...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 711, 4575, 12922, 1435, 288, 565, 3502, 7130, 2519, 8526, 3270, 31, 3639, 3852, 24899, 24795, 28453, 13, 288, 3270, 273, 389, 24795, 28453, 18, 31447, 12, 2704, 3502, 7130, 2519...
if(bookmark.equals( chooserValues[i]))
if ( bookmark.equals( chooserValues[i] ) )
private void initAnchorChooser( Object handle, boolean isToc ) { anchorChooser.removeAll( ); if ( handle instanceof ReportDesignHandle ) { if ( isToc ) { anchorChooser.setItems( (String[]) ( (ReportDesignHandle) handle ).getAllTocs( ) .toArray( new String[0] ) ); } else { anchorChooser.setItems( (String[]) ( (ReportDesignHandle) handle ).getAllBookmarks( ) .toArray( new String[0] ) ); } } else if ( handle instanceof IReportDocument ) { if ( isToc ) { TOCNode rootTocNode = ( (IReportDocument) handle ).findTOC( null ); anchorChooser.setItems( (String[]) getAllTocNode( rootTocNode ).toArray( new String[0] ) ); } else { anchorChooser.setItems( (String[]) ( (IReportDocument) handle ).getBookmarks( ) .toArray( new String[0] ) ); } } String bookmark = inputHandle.getTargetBookmark( ); String[] chooserValues = anchorChooser.getItems( ); if(bookmark!=null && chooserValues!=null){ for ( int i = 0; i < chooserValues.length; i++ ) { if(bookmark.equals( chooserValues[i])) anchorChooser.select( i ); } } anchorChooser.setEnabled( anchorChooser.getItemCount( ) > 0 ); bookmarkEditor.setText( "" ); //$NON-NLS-1$ }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a779e0424e64d5b1b9558a13033416274a2cfd43/HyperlinkBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 11605, 17324, 12, 1033, 1640, 16, 1250, 353, 56, 504, 262, 202, 95, 202, 202, 16215, 17324, 18, 4479, 1595, 12, 11272, 202, 202, 430, 261, 1640, 1276, 8706, 15478, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 11605, 17324, 12, 1033, 1640, 16, 1250, 353, 56, 504, 262, 202, 95, 202, 202, 16215, 17324, 18, 4479, 1595, 12, 11272, 202, 202, 430, 261, 1640, 1276, 8706, 15478, ...
setTransaction(false);
private void evaluateExpressions() throws JspException { try { setAnchor((String) evalAttr("anchor", getAnchor(), String.class)); } catch (NullAttributeException ex) { setAnchor(null); } try { setForward((String) evalAttr("forward", getForward(), String.class)); } catch (NullAttributeException ex) { setForward(null); } try { setHref((String) evalAttr("href", getHref(), String.class)); } catch (NullAttributeException ex) { setHref(null); } try { setId((String) evalAttr("id", getId(), String.class)); } catch (NullAttributeException ex) { setId(null); } // The "name" attribute is deprecated. The base class has a // "setName()" method, which sets the "page" attribute, but it does // not have a "getName()" attribute, so just use "getPage()". try { setName((String) evalAttr("name", getPage(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setPage((String) evalAttr("page", getPage(), String.class)); } catch (NullAttributeException ex) { setPage(null); } try { setTransaction(((Boolean) evalAttr("transaction", getTransactionExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setTransaction(false); } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/8505d2daee76ab5fee7073c344e65065b694c149/ELIncludeTag.java/clean/struts-el/src/share/org/apache/strutsel/taglib/bean/ELIncludeTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 11605, 12443, 780, 13, 5302, 3843, 2932, 16215, 3113, 336, 11605, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 11605, 12443, 780, 13, 5302, 3843, 2932, 16215, 3113, 336, 11605, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261,...
case Id_getTimezoneOffset: return wrap_double(realThis(thisObj, f, true). jsFunction_getTimezoneOffset());
case Id_getTimezoneOffset: return wrap_double(realThis(thisObj, f, true). jsFunction_getTimezoneOffset());
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case ConstructorId_UTC: return wrap_double (jsStaticFunction_UTC(args)); case ConstructorId_parse: return wrap_double (jsStaticFunction_parse(ScriptRuntime.toString(args, 0))); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f, true). jsFunction_toString(); case Id_toTimeString: return realThis(thisObj, f, true). jsFunction_toTimeString(); case Id_toDateString: return realThis(thisObj, f, true). jsFunction_toDateString(); case Id_toLocaleString: return realThis(thisObj, f, true). jsFunction_toLocaleString(); case Id_toLocaleTimeString: return realThis(thisObj, f, true). jsFunction_toLocaleTimeString(); case Id_toLocaleDateString: return realThis(thisObj, f, true). jsFunction_toLocaleDateString(); case Id_toGMTString: case Id_toUTCString: return realThis(thisObj, f, true). jsFunction_toUTCString(); case Id_valueOf: return wrap_double(realThis(thisObj, f, true). jsFunction_valueOf()); case Id_getTime: return wrap_double(realThis(thisObj, f, true). jsFunction_getTime()); case Id_getYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getYear(cx)); case Id_getFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getFullYear()); case Id_getUTCFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCFullYear()); case Id_getMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getMonth()); case Id_getUTCMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMonth()); case Id_getDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getDate()); case Id_getUTCDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDate()); case Id_getDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getDay()); case Id_getUTCDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDay()); case Id_getHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getHours()); case Id_getUTCHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCHours()); case Id_getMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getMinutes()); case Id_getUTCMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMinutes()); case Id_getSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getSeconds()); case Id_getUTCSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCSeconds()); case Id_getMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getMilliseconds()); case Id_getUTCMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMilliseconds()); case Id_getTimezoneOffset: return wrap_double(realThis(thisObj, f, true). jsFunction_getTimezoneOffset()); case Id_setTime: return wrap_double(realThis(thisObj, f, true). jsFunction_setTime(ScriptRuntime.toNumber(args, 0))); case Id_setMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setMilliseconds(args)); case Id_setUTCMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMilliseconds(args)); case Id_setSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setSeconds(args)); case Id_setUTCSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCSeconds(args)); case Id_setMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setMinutes(args)); case Id_setUTCMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMinutes(args)); case Id_setHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setHours(args)); case Id_setUTCHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCHours(args)); case Id_setDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setDate(args)); case Id_setUTCDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCDate(args)); case Id_setMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setMonth(args)); case Id_setUTCMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMonth(args)); case Id_setFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setFullYear(args)); case Id_setUTCFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCFullYear(args)); case Id_setYear: return wrap_double(realThis(thisObj, f, true). jsFunction_setYear(ScriptRuntime.toNumber(args, 0))); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/35caf7c2bb93872680ae16e34746d94fe1e533e3/NativeDate.java/clean/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
if (log.isLoggable(Level.FINEST)) log.finest("getting platform resource: " + resource); byte[] res = getPlatformResource(resource); if (res == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); } else { String mimeType; if (resource.endsWith(".js")) { mimeType = "text/plain"; } else { mimeType = getServletContext().getMimeType(resource); if (mimeType.startsWith("image/")) response.setHeader("Cache-Control", "max-age=43200"); } response.setContentType(mimeType); response.getOutputStream().write(res); }
if (log.isLoggable(Level.FINEST)) log.finest("getting platform resource: " + resource); handleResource(resource, getPlatformResource(resource), response);
private void handlePlatformResource(HttpServletRequest request, HttpServletResponse response, String resource) throws IOException, ServletException { if (log.isLoggable(Level.FINEST)) log.finest("getting platform resource: " + resource); byte[] res = getPlatformResource(resource); if (res == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); } else { String mimeType; //Necessary because the XMLHttpRequest object in certain browsers, such as Opera //do not properly handle text/javascript as the content type. if (resource.endsWith(".js")) { mimeType = "text/plain"; } else { mimeType = getServletContext().getMimeType(resource); if (mimeType.startsWith("image/")) response.setHeader("Cache-Control", "max-age=43200"); } response.setContentType(mimeType); response.getOutputStream().write(res); } }
51553 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51553/f92e9b34465915b5a9427afe1d7d625eccda8376/WebServlet.java/clean/src/thinwire/render/web/WebServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 8201, 1420, 12, 2940, 18572, 590, 16, 12446, 766, 16, 514, 1058, 13, 1216, 1860, 16, 16517, 288, 3639, 309, 261, 1330, 18, 291, 1343, 8455, 12, 2355, 18, 42, 3740, 882,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 8201, 1420, 12, 2940, 18572, 590, 16, 12446, 766, 16, 514, 1058, 13, 1216, 1860, 16, 16517, 288, 3639, 309, 261, 1330, 18, 291, 1343, 8455, 12, 2355, 18, 42, 3740, 882,...
writeOut(ZERO); writeOut(ZERO);
writeOut( ZERO ); writeOut( ZERO );
protected void writeCentralDirectoryEnd() throws IOException { writeOut(EOCD_SIG.getBytes()); // disk numbers writeOut(ZERO); writeOut(ZERO); // number of entries byte[] num = (new ZipShort(entries.size())).getBytes(); writeOut(num); writeOut(num); // length and location of CD writeOut(cdLength.getBytes()); writeOut(cdOffset.getBytes()); // ZIP file comment byte[] data = getBytes(comment); writeOut((new ZipShort(data.length)).getBytes()); writeOut(data); }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/ZipOutputStream.java/clean/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/zip/ZipOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 39, 12839, 2853, 1638, 1435, 1216, 1860, 288, 3639, 1045, 1182, 12, 41, 51, 10160, 67, 18513, 18, 588, 2160, 10663, 3639, 368, 4234, 5600, 3639, 1045, 1182, 12, 24968, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 39, 12839, 2853, 1638, 1435, 1216, 1860, 288, 3639, 1045, 1182, 12, 41, 51, 10160, 67, 18513, 18, 588, 2160, 10663, 3639, 368, 4234, 5600, 3639, 1045, 1182, 12, 24968, 17...
public void actionPerformed (java.awt.event.ActionEvent evt) { onQuickBarButton (evt); }
public void actionPerformed(java.awt.event.ActionEvent evt) { onQuickBarButton(evt); }
public void actionPerformed (java.awt.event.ActionEvent evt) { onQuickBarButton (evt); }
6381 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6381/9cb875bba90e0f89c83030d5b5fd4e9676c2fdd9/OCLEditor.java/clean/ocl/src/tudresden/ocl/gui/OCLEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 26100, 261, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 3639, 603, 13663, 5190, 3616, 261, 73, 11734, 1769, 1377, 289, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 26100, 261, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 3639, 603, 13663, 5190, 3616, 261, 73, 11734, 1769, 1377, 289, 2, -100, -100, -100, -100, -100, -100, ...
public org.quickfix.field.TradeRequestID get(org.quickfix.field.TradeRequestID value)
public quickfix.field.TradeRequestID get(quickfix.field.TradeRequestID value)
public org.quickfix.field.TradeRequestID get(org.quickfix.field.TradeRequestID value) throws FieldNotFound { getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequestAck.java/clean/src/java/src/quickfix/fix44/TradeCaptureReportRequestAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 22583, 691, 734, 336, 12, 19525, 904, 18, 1518, 18, 22583, 691, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 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, 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, 9549, 904, 18, 1518, 18, 22583, 691, 734, 336, 12, 19525, 904, 18, 1518, 18, 22583, 691, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 31, ...
public TextRun(TextSpanLayout layout, AttributedCharacterIterator aci, boolean firstRunInChunk) {
public TextRun(TextSpanLayout layout, AttributedCharacterIterator aci, boolean firstRunInChunk) {
public TextRun(TextSpanLayout layout, AttributedCharacterIterator aci, boolean firstRunInChunk) { this.layout = layout; this.aci = aci; this.aci.first(); this.firstRunInChunk = firstRunInChunk; TextNode.Anchor anchor = (TextNode.Anchor) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.ANCHOR_TYPE); anchorType = TextNode.Anchor.ANCHOR_START; if (anchor != null) { anchorType = anchor.getType(); } // if writing mode is right to left, then need to reverse the // text anchor positions if (aci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.WRITING_MODE) == GVTAttributedCharacterIterator.TextAttribute.WRITING_MODE_RTL) { if (anchorType == TextNode.Anchor.ANCHOR_START) { anchorType = TextNode.Anchor.ANCHOR_END; } else if (anchorType == TextNode.Anchor.ANCHOR_END) { anchorType = TextNode.Anchor.ANCHOR_START; } // leave middle as is } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/32fa5d6f134dbc7519ade5bde79d3c0386deef5e/StrokingTextPainter.java/buggy/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3867, 1997, 12, 1528, 6952, 3744, 3511, 16, 2380, 11050, 7069, 3198, 1721, 77, 16, 1250, 1122, 1997, 382, 5579, 13, 288, 2398, 333, 18, 6741, 273, 3511, 31, 5411, 333, 18, 1077, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3867, 1997, 12, 1528, 6952, 3744, 3511, 16, 2380, 11050, 7069, 3198, 1721, 77, 16, 1250, 1122, 1997, 382, 5579, 13, 288, 2398, 333, 18, 6741, 273, 3511, 31, 5411, 333, 18, 1077, 7...
return ReflectionSupport.getComponentType(this); }
return ReflectionSupport.getComponentType(this); }
public Class getComponentType() { return ReflectionSupport.getComponentType(this); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/d49f912bb34544152bb8de670a46308ec7c678ee/Class.java/clean/rvm/src/vm/GNUClasspathSupport/java/lang/Class.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 23948, 1435, 288, 202, 2463, 5685, 6289, 18, 588, 28116, 12, 2211, 1769, 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, 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, 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, 377, 1071, 1659, 23948, 1435, 288, 202, 2463, 5685, 6289, 18, 588, 28116, 12, 2211, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
boolean added = composerNode.addComposingVirtualNode(composingNode); if (added) { if (logger.isDebugEnabled()) { logger.debug("COMPOSED " + exportedVNComponent + "." + exportedVN + " from " + baseVNComponent + "." + baseVN);
if (composingNode != composerNode) { boolean added = composerNode.addComposingVirtualNode(composingNode); if (added) { if (logger.isDebugEnabled()) { logger.debug("COMPOSED " + exportedVNComponent + "." + exportedVN + " from " + baseVNComponent + "." + baseVN); }
public void compose(String exportedVNComponent, String exportedVN, String baseVNComponent, String baseVN, boolean composingVNIsMultiple) throws ADLException { LinkedVirtualNode composerNode = getNode(exportedVNComponent, exportedVN, true); LinkedVirtualNode composingNode = getNode(baseVNComponent, baseVN, true);// if (exportedVNComponent.equals(baseVNComponent)) {// composingNode.setSelfExported();// } composingNode.setMultiple(composingVNIsMultiple); checkComposition(composerNode, composingNode); boolean added = composerNode.addComposingVirtualNode(composingNode); if (added) { if (logger.isDebugEnabled()) { logger.debug("COMPOSED " + exportedVNComponent + "." + exportedVN + " from " + baseVNComponent + "." + baseVN); } } }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/874b7d69a96abc95caf471f20d0d85c2a52de8f0/ExportedVirtualNodesList.java/buggy/src/org/objectweb/proactive/core/component/adl/vnexportation/ExportedVirtualNodesList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11458, 12, 780, 11518, 58, 50, 1841, 16, 514, 11518, 58, 50, 16, 3639, 514, 1026, 58, 50, 1841, 16, 514, 1026, 58, 50, 16, 1250, 532, 24014, 58, 50, 2520, 8438, 13, 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, 1071, 918, 11458, 12, 780, 11518, 58, 50, 1841, 16, 514, 11518, 58, 50, 16, 3639, 514, 1026, 58, 50, 1841, 16, 514, 1026, 58, 50, 16, 1250, 532, 24014, 58, 50, 2520, 8438, 13, 1216, ...
Assert.assert(left.length==min);
Assert._assert(left.length==min);
private static int compare(byte[] left, byte[] right) { int min = (left.length < right.length) ? left.length : right.length; for(int i=0; i < min; i++) { if( (left[i]&0xff) < (right[i]&0xff) ) { return -1; } else if( (left[i]&0xff) > (right[i]&0xff) ) { return 1; } } // equal up to the minimal endpoint if( left.length > min ) { Assert.assert(right.length==min); return 1; } if( right.length > min ) { Assert.assert(left.length==min); return -1; } return 0; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/6ddc297e30f1af6609057abe4502eaa3ba3bb664/SET.java/clean/security/jss/org/mozilla/jss/asn1/SET.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 3400, 12, 7229, 8526, 2002, 16, 1160, 8526, 2145, 13, 288, 3639, 509, 1131, 273, 261, 4482, 18, 2469, 411, 2145, 18, 2469, 13, 692, 2002, 18, 2469, 294, 2145, 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, 3238, 760, 509, 3400, 12, 7229, 8526, 2002, 16, 1160, 8526, 2145, 13, 288, 3639, 509, 1131, 273, 261, 4482, 18, 2469, 411, 2145, 18, 2469, 13, 692, 2002, 18, 2469, 294, 2145, 18, 2469, ...
String fileName = dialog.open( );
String fileName = previewImageText.getText( ).trim( ); if(fileName.length( ) != 0) { File file = new File( fileName ); if ( fileName.indexOf( '/' ) < 0 && fileName.indexOf( '\\' ) < 0 ) { if ( ReportPlugin.getDefault( ).getTemplatePreference( ) != null && ReportPlugin.getDefault( ) .getTemplatePreference( ) .trim( ) .length( ) != 0 ) { String path = ReportPlugin.getDefault( ) .getTemplatePreference( ) .trim( ); file = new File( path, fileName ); if ( file.exists( ) && file.isFile( ) ) { dialog.setFileName( file.getPath( ) ); } } } else if ( file.exists( ) && file.isFile( ) ) { dialog.setFileName( fileName ); } } fileName = dialog.open( );
public void createControl( Composite parent ) { Composite container = new Composite( parent, SWT.NONE ); GridLayout gridLayout = new GridLayout( ); gridLayout.numColumns = 3; container.setLayout( gridLayout ); new Label( container, SWT.NONE ).setText( LABEL_DISPLAY_NAME ); nameText = createText( container, 2, 1 ); if ( module != null && module.getProperty( ModuleHandle.DISPLAY_NAME_PROP ) != null ) nameText.setText( module.getDisplayName( ) ); nameText.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { checkStatus(); } } ); new Label( container, SWT.NONE ).setText( LABEL_DESCRIPTION ); descText = createText( container, 2, 5 ); if ( module != null && module.getProperty( ModuleHandle.DESCRIPTION_PROP ) != null ) descText.setText( (String) module.getProperty( ModuleHandle.DESCRIPTION_PROP ) ); descText.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { checkStatus(); } } ); new Label( container, SWT.NONE ).setText( LABEL_IMAGE ); previewImageText = createText( container, 1, 1 ); if ( module != null && module.getIconFile( ) != null ) previewImageText.setText( module.getIconFile( ) ); previewImageText.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { checkStatus(); validate( ); } } ); Button chooseBtn = new Button( container, SWT.NONE ); chooseBtn.setText( BTN_CHOOSE ); chooseBtn.addSelectionListener( new SelectionListener( ) { public void widgetSelected( SelectionEvent e ) { FileDialog dialog = new FileDialog( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ) ); dialog.setText( BROWSE_TITLE ); dialog.setFilterExtensions( IMAGE_FILEFILTERS ); String fileName = dialog.open( ); if ( fileName == null ) { return; } previewImageText.setText( fileName ); } public void widgetDefaultSelected( SelectionEvent e ) { } } ); nameText.forceFocus( ); setControl( container ); UIUtil.bindHelp( getControl(),IHelpContextIds.PUBLISH_TEMPLATE_WIZARD_ID ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/5dd4b8bf9ad20663a0656c7f795fb830c81a3078/WizardReportSettingPage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardReportSettingPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 3744, 3068, 3744, 273, 394, 7145,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 3367, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 3744, 3068, 3744, 273, 394, 7145,...
CompositeElement codeBlock;
TreeElement codeBlock;
private CompositeElement parseCatchSection(Lexer lexer) { CompositeElement codeBlock; CompositeElement catchSection = Factory.createCompositeElement(CATCH_SECTION); TreeUtil.addChildren(catchSection, ParseUtil.createTokenElement(lexer, myContext.getCharTable())); lexer.advance(); if (lexer.getTokenType() != LPARENTH) { TreeUtil.addChildren(catchSection, Factory.createErrorElement("'(' expected")); return catchSection; } TreeUtil.addChildren(catchSection, ParseUtil.createTokenElement(lexer, myContext.getCharTable())); lexer.advance(); TreeElement parm = myContext.getDeclarationParsing().parseParameter(lexer, false); if (parm == null) { TreeUtil.addChildren(catchSection, Factory.createErrorElement("Parameter expected")); return catchSection; } TreeUtil.addChildren(catchSection, parm); if (lexer.getTokenType() != RPARENTH) { TreeUtil.addChildren(catchSection, Factory.createErrorElement("')' expected")); return catchSection; } TreeUtil.addChildren(catchSection, ParseUtil.createTokenElement(lexer, myContext.getCharTable())); lexer.advance(); codeBlock = parseCodeBlock(lexer, DEEP_PARSE_BLOCKS_IN_STATEMENTS); if (codeBlock == null) { TreeUtil.addChildren(catchSection, Factory.createErrorElement("'{' expected")); return catchSection; } TreeUtil.addChildren(catchSection, codeBlock); return catchSection; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/7cc49f57fd75f032b80560ecde54c4a99bda9ac7/StatementParsing.java/clean/source/com/intellij/psi/impl/source/parsing/StatementParsing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 14728, 1046, 1109, 14842, 5285, 12, 13356, 8512, 13, 288, 565, 4902, 1046, 981, 1768, 31, 565, 14728, 1046, 1044, 5285, 273, 7822, 18, 2640, 9400, 1046, 12, 39, 5858, 67, 19082, 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, 282, 3238, 14728, 1046, 1109, 14842, 5285, 12, 13356, 8512, 13, 288, 565, 4902, 1046, 981, 1768, 31, 565, 14728, 1046, 1044, 5285, 273, 7822, 18, 2640, 9400, 1046, 12, 39, 5858, 67, 19082, 176...
this.log(header + msg) ;
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); Writer out = res.getWriter(); // Lets get the server this request was aimed for String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("adminserver",host) ; // Lets validate the session if (super.checkSession(req,res) == false) return ; // Lets get an user object imcode.server.User user = super.getUserObj(req,res) ; if(user == null){ String header = "Error in AdminRandomTexts." ; String msg = "Couldnt create an user object."+ "<BR>" ; this.log(header + msg) ; AdminError err = new AdminError(req,res,header,msg) ; return ; } // Lets verify that the user who tries to admin a fortune is an admin if (super.checkAdminRights(imcServer, user) == false){ String header = "Error in AdminRandomTexts." ; String msg = "The user is not an administrator."+ "<BR>" ; this.log(header + msg) ; // Lets get the path to the admin templates folder String server = Utility.getDomainPref("adminserver",host) ; File templateLib = getAdminTemplateFolder(server, user) ; AdminError err = new AdminError(req,res,header,msg) ; return ; } //get fortunefiles File fortune_path = Utility.getDomainPrefPath("FortunePath",host); File files[] = fortune_path.listFiles(); StringBuffer options = new StringBuffer() ; for(int i=0;i<files.length;i++) { //remove suffixes and create optionstring String filename=files[i].getName(); int index = filename.lastIndexOf("."); if (index != -1) { filename=filename.substring(0,index); } if ( ( !filename.endsWith(".current") ) && ( !filename.endsWith(".stat") ) && ( !filename.endsWith(".poll") ) ) { options.append( "<option value=\"" + filename + "\">" + filename + "</option>" ) ; } } //Add info for parsing to a Vector and parse it with a template to a htmlString that is printed Vector values = new Vector(); values.add("#options#"); values.add(options.toString()); out.write(IMCServiceRMI.parseExternalDoc(imcServer, values, HTML_TEMPLATE , user.getLangPrefix(), DOCTYPE_FORTUNES+"")); } // End doGet
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/AdminRandomTexts.java/buggy/servlets/AdminRandomTexts.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1216, 16517, 16, 1860, 202, 95, 202, 455, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 202, 2289, 596, 273, 400, 18, 588, 2289,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1216, 16517, 16, 1860, 202, 95, 202, 455, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 202, 2289, 596, 273, 400, 18, 588, 2289,...
assertEquals(((Long) value).longValue(), (long) 0);
assertEquals(((Long) value).longValue(), 0);
public void testNegativeScalar() { Object value = null; value = ConvertUtils.convert("foo", Boolean.TYPE); assertTrue(value instanceof Boolean); assertEquals(((Boolean) value).booleanValue(), false); value = ConvertUtils.convert("foo", Boolean.class); assertTrue(value instanceof Boolean); assertEquals(((Boolean) value).booleanValue(), false); value = ConvertUtils.convert("foo", Byte.TYPE); assertTrue(value instanceof Byte); assertEquals(((Byte) value).byteValue(), (byte) 0); value = ConvertUtils.convert("foo", Byte.class); assertTrue(value instanceof Byte); assertEquals(((Byte) value).byteValue(), (byte) 0); try { value = ConvertUtils.convert ("org.apache.commons.beanutils.Undefined", Class.class); fail("Should have thrown conversion exception"); } catch (ConversionException e) { // Expected result } value = ConvertUtils.convert("foo", Double.TYPE); assertTrue(value instanceof Double); assertEquals(((Double) value).doubleValue(), (double) 0.0, (double) 0.005); value = ConvertUtils.convert("foo", Double.class); assertTrue(value instanceof Double); assertEquals(((Double) value).doubleValue(), (double) 0.0, (double) 0.005); value = ConvertUtils.convert("foo", Float.TYPE); assertTrue(value instanceof Float); assertEquals(((Float) value).floatValue(), (float) 0.0, (float) 0.005); value = ConvertUtils.convert("foo", Float.class); assertTrue(value instanceof Float); assertEquals(((Float) value).floatValue(), (float) 0.0, (float) 0.005); value = ConvertUtils.convert("foo", Integer.TYPE); assertTrue(value instanceof Integer); assertEquals(((Integer) value).intValue(), (int) 0); value = ConvertUtils.convert("foo", Integer.class); assertTrue(value instanceof Integer); assertEquals(((Integer) value).intValue(), (int) 0); value = ConvertUtils.convert("foo", Byte.TYPE); assertTrue(value instanceof Byte); assertEquals(((Byte) value).byteValue(), (byte) 0); value = ConvertUtils.convert("foo", Long.class); assertTrue(value instanceof Long); assertEquals(((Long) value).longValue(), (long) 0); value = ConvertUtils.convert("foo", Short.TYPE); assertTrue(value instanceof Short); assertEquals(((Short) value).shortValue(), (short) 0); value = ConvertUtils.convert("foo", Short.class); assertTrue(value instanceof Short); assertEquals(((Short) value).shortValue(), (short) 0); }
54521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54521/563cb810bc92fd1ec7cc4af1bcde00af99056757/ConvertUtilsTestCase.java/buggy/src/test/org/apache/commons/beanutils/ConvertUtilsTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14959, 13639, 1435, 288, 3639, 1033, 460, 273, 446, 31, 3639, 460, 273, 4037, 1989, 18, 6283, 2932, 11351, 3113, 3411, 18, 2399, 1769, 3639, 1815, 5510, 12, 1132, 1276, 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, 918, 1842, 14959, 13639, 1435, 288, 3639, 1033, 460, 273, 446, 31, 3639, 460, 273, 4037, 1989, 18, 6283, 2932, 11351, 3113, 3411, 18, 2399, 1769, 3639, 1815, 5510, 12, 1132, 1276, 3...
if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!");
ruby.getFrameStack().push(currentFrame); ruby.getBlockStack().setCurrent(currentBlock);
public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/8db42974495981011f558bcce15e2dfc28681a76/RubyThread.java/clean/org/jruby/RubyThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 309, 261, 27768, 18, 291, 1768, 6083, 10756, 288, 10792, 2332, 18, 659, 18, 8222, 2932, 24644, 14073, 21641, 4629, 2419, 43, 6344, 4442, 1769, 10792, 1748...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2398, 1071, 918, 1086, 1435, 288, 7734, 309, 261, 27768, 18, 291, 1768, 6083, 10756, 288, 10792, 2332, 18, 659, 18, 8222, 2932, 24644, 14073, 21641, 4629, 2419, 43, 6344, 4442, 1769, 10792, 1748...
configureDetectorsItemActionPerformed(evt); }
fullDescriptionsItemActionPerformed(evt); }
public void actionPerformed(java.awt.event.ActionEvent evt) { configureDetectorsItemActionPerformed(evt); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/64cddd7d81812ff3724537a9d1db98a9686cd756/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 9506, 202, 14895, 12594, 87, 1180, 19449, 12, 73, 11734, 1769, 1082, 202, 97, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 9506, 202, 14895, 12594, 87, 1180, 19449, 12, 73, 11734, 1769, 1082, 202, 97, 2, -100, -100, -100...
Object target = targets[i];
target = targets[i];
public void actionPerformed(ActionEvent ae) { Object[] targets = null; if (ae.getSource() instanceof PropPanel) { targets = new Object[] {TargetManager.getInstance().getModelTarget()}; } else targets = getTargets(); for (int i = 0; i < targets.length; i++) { Object target = targets[i]; if (sureRemove(target)) { // Argo.log.info("deleting "+target+"+ "+(((MModelElement)target).getMElementListeners()).size()); // remove from the model if (target instanceof Fig) { target = ((Fig)target).getOwner(); } ProjectManager.getManager().getCurrentProject().moveToTrash(target); // move the pointer to the target in the NavPane to some other target Object newTarget = null; if (target instanceof MBase) { newTarget = ((MBase)target).getModelElementContainer(); } else if (target instanceof ArgoDiagram) { newTarget = ProjectManager.getManager().getCurrentProject().getDiagrams().get(0); } if (newTarget != null) TargetManager.getInstance().setTarget(newTarget); } } super.actionPerformed(ae); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/345fbb5e2f0eb0a5aae3fd6d9d3f13c09744b3a4/ActionRemoveFromModel.java/buggy/src_new/org/argouml/uml/ui/ActionRemoveFromModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 3639, 1033, 8526, 5774, 273, 446, 31, 3639, 309, 261, 8906, 18, 588, 1830, 1435, 1276, 10484, 5537, 13, 288, 5411, 5774, 273, 394, 1033, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 14221, 13, 288, 3639, 1033, 8526, 5774, 273, 446, 31, 3639, 309, 261, 8906, 18, 588, 1830, 1435, 1276, 10484, 5537, 13, 288, 5411, 5774, 273, 394, 1033, ...