rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
public void nodesAdded(NodesEvent event) { if (fViewer instanceof AbstractTreeViewer) { StructuredViewer viewer = (StructuredViewer) fViewer; ISelection selection = viewer.getSelection(); Object firstObj = (!selection.isEmpty() && selection instanceof IStructuredSelection) ? ((IStructuredSelection) selection).getFirstElement() : null; DTDNode oldSelectedNode = null; if (firstObj instanceof DTDNode) { oldSelectedNode = (DTDNode) firstObj; } // for now just refresh the whole view AbstractTreeViewer abstractTreeViewer = (AbstractTreeViewer) fViewer; abstractTreeViewer.refresh(); Iterator iter = event.getNodes().iterator(); List newSelection = new ArrayList(); while (iter.hasNext()) { DTDNode node = (DTDNode) iter.next(); if (oldSelectedNode == null || node.getStructuredDTDDocumentRegion() != oldSelectedNode.getStructuredDTDDocumentRegion() || node.getStartOffset() != oldSelectedNode.getStartOffset() || node.getEndOffset() != oldSelectedNode.getEndOffset()) { // add to selection newSelection.add(node); expandToNode(node); } } if (newSelection.size() > 0) { viewer.setSelection(new StructuredSelection(newSelection)); } } } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/e4bd66590b7c80939f9d036a3ac9f447da53b07a/DTDTreeContentProvider.java/clean/bundles/org.eclipse.wst.dtd.ui/src/org/eclipse/wst/dtd/ui/views/contentoutline/DTDTreeContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
4690,
8602,
12,
3205,
1133,
2575,
15329,
202,
202,
430,
12,
74,
18415,
1336,
792,
7469,
2471,
18415,
15329,
1082,
202,
30733,
18415,
25256,
28657,
30733,
18415,
13,
74,
1841... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
4690,
8602,
12,
3205,
1133,
2575,
15329,
202,
202,
430,
12,
74,
18415,
1336,
792,
7469,
2471,
18415,
15329,
1082,
202,
30733,
18415,
25256,
28657,
30733,
18415,
13,
74,
1841... | ||
int length = args == null ? 0 : args.length; | int length = nargs == null ? 0 : nargs.length; | public static IRubyObject new_proxy_instance(final IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw recv.getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } final RubyProc proc = args[args.length - 1] instanceof RubyProc ? (RubyProc)args[args.length - 1] : recv.getRuntime().newProc(); int size = args[args.length - 1] instanceof RubyProc ? args.length - 1 : args.length; Class[] interfaces = new Class[size]; for (int i = 0; i < size; i++) { if (!(args[i] instanceof JavaClass) || !((JavaClass)args[i]).interface_p().isTrue()) { throw recv.getRuntime().newArgumentError("Java interface expected."); } interfaces[i] = ((JavaClass) args[i]).javaClass(); } return JavaObject.wrap(recv.getRuntime(), Proxy.newProxyInstance(recv.getRuntime().getJavaSupport().getJavaClassLoader(), interfaces, new InvocationHandler() { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if (method.getName().equals("toString") && method.getParameterTypes().length == 0) { return proxy.getClass().getName(); } else if (method.getName().equals("hashCode") && method.getParameterTypes().length == 0) { return new Integer(proxy.getClass().hashCode()); } else if (method.getName().equals("equals") && method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(Object.class)) { return Boolean.valueOf(proxy == args[0]); } int length = args == null ? 0 : args.length; IRubyObject[] rubyArgs = new IRubyObject[length + 2]; rubyArgs[0] = JavaObject.wrap(recv.getRuntime(), proxy); rubyArgs[1] = new JavaMethod(recv.getRuntime(), method); for (int i = 0; i < length; i++) { rubyArgs[i + 2] = JavaObject.wrap(recv.getRuntime(), args[i]); } return JavaUtil.convertArgument(proc.call(rubyArgs), method.getReturnType()); } })); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/ca6b16e996ea9af83ce593594b9c69b9364a9924/Java.java/buggy/src/org/jruby/javasupport/Java.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
394,
67,
5656,
67,
1336,
12,
6385,
15908,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
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,
760,
15908,
10340,
921,
394,
67,
5656,
67,
1336,
12,
6385,
15908,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
... |
public void setContextProperties( String file ) { String[] sources = StringUtils.split(file,","); contextProperties = new ExtendedProperties(); // Always try to get the context properties resource // from a file first. Templates may be taken from a JAR // file but the context properties resource may be a // resource in the filesystem. If this fails than attempt // to get the context properties resource from the // classpath. for (int i = 0; i < sources.length; i++) { ExtendedProperties source = new ExtendedProperties(); try { // resolve relative path from basedir and leave // absolute path untouched. File fullPath = project.resolveFile(sources[i]); log("Using contextProperties file: " + fullPath); source.load(new FileInputStream(fullPath)); } catch (Exception e) { ClassLoader classLoader = this.getClass().getClassLoader(); try { InputStream inputStream = classLoader.getResourceAsStream(sources[i]); if (inputStream == null) { throw new BuildException("Context properties file " + sources[i] + " could not be found in the file system or on the classpath!"); } else { source.load(inputStream); } } catch (IOException ioe) { source = null; } } Iterator j = source.getKeys(); while (j.hasNext()) { String name = (String) j.next(); String value = source.getString(name); contextProperties.setProperty(name,value); } } } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/89173502837b4d67a69cd30d0b93cf47ed84c8cc/TexenTask.java/clean/src/java/org/apache/velocity/texen/ant/TexenTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16615,
2297,
12,
514,
585,
262,
565,
288,
3639,
514,
8526,
5550,
273,
5778,
18,
4939,
12,
768,
16,
3113,
8863,
3639,
819,
2297,
273,
394,
14094,
2297,
5621,
3639,
368,
14178,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16615,
2297,
12,
514,
585,
262,
565,
288,
3639,
514,
8526,
5550,
273,
5778,
18,
4939,
12,
768,
16,
3113,
8863,
3639,
819,
2297,
273,
394,
14094,
2297,
5621,
3639,
368,
14178,
... | ||
public void execute( HttpServletRequest req, HttpServletResponse res) throws IOException { LogisticsInventoryPG logInvPG=null; this.out = res.getOutputStream(); int len = req.getContentLength(); if (len > 0) { //logger.debug("READ from content-length["+len+"]"); InputStream in = req.getInputStream(); BufferedReader bin = new BufferedReader(new InputStreamReader(in)); desiredAssetName = bin.readLine(); bin.close(); desiredAssetName = desiredAssetName.trim(); logger.info("POST DATA: " + desiredAssetName); } else { logger.warn(" No asset to plot"); return; } // return list of asset names if (desiredAssetName.equals(ASSET)|| desiredAssetName.startsWith(ASSET_AND_CLASSTYPE)) { //DemandObjectPredicate assetNamePredicate; AssetPredicate assetNamePredicate; if(desiredAssetName.startsWith(ASSET_AND_CLASSTYPE)) { String desiredClassType = desiredAssetName.substring(ASSET_AND_CLASSTYPE.length()); //assetNamePredicate = new DemandObjectPredicate(desiredClassType); assetNamePredicate = new AssetPredicate(desiredClassType,logger); } else { //assetNamePredicate = new DemandObjectPredicate(); assetNamePredicate = new AssetPredicate(logger); } // Asset no demand type handling /*** ** */ Vector assetNames = new Vector(); Collection container = support.queryBlackboard(assetNamePredicate); for (Iterator i = container.iterator(); i.hasNext(); ) { Inventory inv = (Inventory)(i.next()); logInvPG=null; logInvPG = (LogisticsInventoryPG)inv.searchForPropertyGroup(LogisticsInventoryPG.class); TypeIdentificationPG typeIdPG = logInvPG.getResource().getTypeIdentificationPG(); String nomenclature = typeIdPG.getNomenclature(); String typeId = typeIdPG.getTypeIdentification(); if (nomenclature != null) { nomenclature = nomenclature + ":" + typeId; } else if(logInvPG.getIsLevel2()) { SupplyClassPG supplyPG = (SupplyClassPG)logInvPG.getResource().searchForPropertyGroup(SupplyClassPG.class); if (supplyPG != null) { nomenclature = typeId + ":" + supplyPG.getSupplyType(); } else { nomenclature = typeId; } } else { nomenclature = typeId; } assetNames.addElement(nomenclature); } /*** * Below is for Demand Object Predicate * MWD fix and try this out -below * MWD get rid of old commented out above replaced by below * to get demand even where no inventories. *** HashSet assetNamesSet = new HashSet(); Collection container = support.queryBlackboard(assetNamePredicate); for (Iterator i = container.iterator(); i.hasNext(); ) { Asset asset = ((Task)(i.next())).getDirectObject(); TypeIdentificationPG typeIdPG = asset.getTypeIdentificationPG(); String nomenclature = typeIdPG.getNomenclature(); String typeId = typeIdPG.getTypeIdentification(); if (nomenclature != null) nomenclature = nomenclature + ":" + typeId; else nomenclature = typeId; assetNamesSet.add(nomenclature); } Vector assetNames = new Vector(assetNamesSet); ****/ // send the results ObjectOutputStream p = new ObjectOutputStream(out); p.writeObject(assetNames); logger.info("Sent asset names"); return; } // end returning list of asset names if (desiredAssetName.startsWith("UID:")) { String desiredAssetUID = desiredAssetName.substring(4); Collection collection = support.queryBlackboard(new AssetUIDPredicate(desiredAssetUID,logger)); for (Iterator i = collection.iterator(); i.hasNext(); ) { Inventory inv = (Inventory)(i.next()); logInvPG=null; logInvPG = (LogisticsInventoryPG)inv.searchForPropertyGroup(LogisticsInventoryPG.class); TypeIdentificationPG typeIdPG = logInvPG.getResource().getTypeIdentificationPG(); String nomenclature = typeIdPG.getNomenclature(); String typeId = typeIdPG.getTypeIdentification(); if (nomenclature == null) return; desiredAssetName = nomenclature + ":" + typeId; } } // end getting asset name from UID Date startDay=getStartDate(); // get roles and determine if this cluster is a provider (or consumer) //logger.debug("\n****** look for roles for agent \""+support.getEncodedAgentName()+"\""); /**** MWD do we still need to know if we are a provider or not? ** all the role predicate code below RolePredicate rolePred = new RolePredicate(support.getEncodedAgentName()); Collection roleCollection = support.queryBlackboard(rolePred); boolean provider = false; if (!roleCollection.isEmpty()) { Organization asset = (Organization) roleCollection.iterator().next(); Collection roles = asset.getOrganizationPG().getRoles(); if (roles != null) { Iterator i = roles.iterator(); while (i.hasNext()) { Role role = (Role)i.next(); if (role.getName().endsWith("Provider")) { provider = true; break; } } } } *****/ // get asset and tasks we need to create the inventory logger.debug("Getting Inventory w/InventoryPredicate for " + desiredAssetName); InventoryPredicate inventoryPredicate = new InventoryPredicate(desiredAssetName, support.getEncodedAgentName(),logger); Collection collection = support.queryBlackboard(inventoryPredicate); if (collection.isEmpty()) { logger.warn("\n\n ************* collection is empty; return no response!"); return; } // create UIInventory data object from the log plan objects String xmlStr = getXMLFromLogPlan(collection,startDay); // set values in UISimpleInventory, a serializable object //UISimpleInventory simpleInventory = //getInventoryForClient(inventory, provider, startDay); // send the String object if ((xmlStr != null) && (!(xmlStr.trim().equals("")))){ //ObjectOutputStream p = new ObjectOutputStream(out); //logger.debug("\n\n\n\n sending back a non-null inventory:\n"+simpleInventory); //p.writeObject(xmlStr); BufferedWriter p = new BufferedWriter(new OutputStreamWriter(out,Charset.forName("ASCII"))); p.write(xmlStr); p.flush(); p.close(); logger.info("Sent XML document"); } else { logger.error("XML string is null or empty. returning null response."); } } | 11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/f3d3445cfb3f4ebbd27cffd78c3103a720e5ab45/LogisticsInventoryServlet.java/buggy/bbn/src/org/cougaar/logistics/servlet/LogisticsInventoryServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
1875,
202,
2940,
18572,
1111,
16,
1875,
202,
2940,
29910,
400,
13,
1216,
1860,
565,
288,
202,
1343,
4287,
15059,
18679,
613,
3605,
18679,
33,
2011,
31,
4202,
202,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
12,
1875,
202,
2940,
18572,
1111,
16,
1875,
202,
2940,
29910,
400,
13,
1216,
1860,
565,
288,
202,
1343,
4287,
15059,
18679,
613,
3605,
18679,
33,
2011,
31,
4202,
202,
221... | ||
String consequence = backText.substring(thenPosition + 4); list.addAll(getJavaCompletionProposals(consequence, prefix, params)); | private void addRHSJavaCompletionProposals(List list, String backText, String prefix) { int thenPosition = backText.lastIndexOf("then"); String conditions = backText.substring(0, thenPosition); DrlParser parser = new DrlParser(); try { PackageDescr descr = parser.parse(conditions); List rules = descr.getRules(); if (rules != null && rules.size() == 1) { Map result = new HashMap(); getRuleParameters(result, ((RuleDescr) rules.get(0)).getLhs().getDescrs()); Iterator iterator = result.keySet().iterator(); while (iterator.hasNext()) { String name = (String) iterator.next(); RuleCompletionProposal prop = new RuleCompletionProposal(prefix.length(), name, name + "."); prop.setPriority(-1); prop.setImage(methodIcon); list.add(prop); } } } catch (DroolsParserException exc) { // do nothing } // String consequence = backText.substring(thenPosition + 4); // list.addAll(getRHSJavaCompletionProposals(consequence, prefix)); } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/910b467ac0afcb45901f8587312d3da0f62abb22/RuleCompletionProcessor.java/clean/drools-ide/src/main/java/org/drools/ide/editors/completion/RuleCompletionProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
514,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
514,
356,
6178,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
514,
356,
6178,
... | |
buf.append("attrs" + (n - 1) + " = attrs" + n + ";\n"); | buf.append("methodAttrs" + (n - 1) + ".next = methodAttrs" + n + ";\n"); | public CodeVisitor visitMethod ( final int access, final String name, final String desc, final String[] exceptions, final Attribute attrs) { buf.setLength(0); buf.append("{\n"); if (attrs != null) { buf.append("// METHOD ATTRIBUTES\n"); Attribute a = attrs; int n = 1; while (a != null) { if (a instanceof ASMifiable) { ((ASMifiable)a).asmify(buf, "attrs" + n, null); if (n > 1) { buf.append("attrs" + (n - 1) + " = attrs" + n + ";\n"); } } else { buf.append("// WARNING! skipped non standard method attribute of type "); buf.append(a.type).append("\n"); } n++; a = a.next; } } buf.append("cv = cw.visitMethod("); appendAccess(access); buf.append(", "); appendConstant(buf, name); buf.append(", "); appendConstant(buf, desc); buf.append(", "); if (exceptions != null && exceptions.length > 0) { buf.append("new String[] {"); for (int i = 0; i < exceptions.length; ++i) { buf.append(i == 0 ? " " : ", "); appendConstant(buf, exceptions[i]); } buf.append(" }"); } else { buf.append("null"); } if (attrs==null) { buf.append(", null);\n"); } else { buf.append(", attrs1);\n"); } text.add(buf.toString()); PrintCodeVisitor pcv = new ASMifierCodeVisitor(); text.add(pcv.getText()); text.add("}\n"); return pcv; } | 2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/d729b248536bf23ef191a46635634b7128ec3284/ASMifierClassVisitor.java/buggy/asm/src/org/objectweb/asm/util/ASMifierClassVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3356,
7413,
25138,
261,
565,
727,
509,
2006,
16,
565,
727,
514,
508,
16,
565,
727,
514,
3044,
16,
565,
727,
514,
8526,
4798,
16,
565,
727,
3601,
3422,
13,
225,
288,
565,
1681,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3356,
7413,
25138,
261,
565,
727,
509,
2006,
16,
565,
727,
514,
508,
16,
565,
727,
514,
3044,
16,
565,
727,
514,
8526,
4798,
16,
565,
727,
3601,
3422,
13,
225,
288,
565,
1681,
1... |
weapon.flags |= F_PROTOMECH; | weapon.flags |= F_PROTOMECH | F_MISSILE; | public static WeaponType createCLPROStreakSRM1() { WeaponType weapon = new WeaponType(); weapon.name = "Streak SRM 1"; weapon.setInternalName("CLStreakSRM1"); weapon.heat = 0; weapon.damage = DAMAGE_MISSILE; weapon.rackSize = 1; weapon.ammoType = AmmoType.T_SRM_STREAK; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 4; weapon.mediumRange = 8; weapon.longRange = 12; weapon.extremeRange = 16; weapon.tonnage = 0.5f; weapon.criticals = 0; weapon.bv = 20; weapon.flags |= F_PROTOMECH; return weapon; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/3de8871e6895277c40058c53708655401dda40bd/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5017,
3373,
510,
870,
55,
8717,
21,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1660,
28629,
559,
752,
5017,
3373,
510,
870,
55,
8717,
21,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,... |
textField.setOnKeyUp("javascript:autoCompleteUpdateValueField('" + textField.getId() + "', '" + TYPING_VALUE + "');"); | textField.setOnKeyDown("javascript:autoCompleteKeyDownHandler(event, '" + textField.getId() +"');"); textField.setOnKeyUp("javascript:autoCompleteKeyUpHandler(event, '" + textField.getId() + "', '" + TYPING_VALUE + "');"); | public HtmlComponent createComponent(Object object, Class type) { HtmlInlineContainer container = new HtmlInlineContainer(); addScripts(container); MetaSlotKey key = (MetaSlotKey) getContext().getMetaObject().getKey(); HtmlHiddenField valueField = new HtmlHiddenField(); valueField.setTargetSlot(key); valueField.setId(key.toString() + "_AutoComplete"); valueField.setName(valueField.getId()); container.addChild(valueField); valueField.setConverter(new AutoCompleteConverter(getClassName())); HtmlTextInput textField = new HtmlTextInput(); textField.setId(key.toString()); textField.setName(textField.getId()); textField.setClasses(getTextFieldStyleClass()); textField.setSize(getSize()); textField.setOnKeyUp("javascript:autoCompleteUpdateValueField('" + textField.getId() + "', '" + TYPING_VALUE + "');"); container.addChild(textField); if (getRawSlotName() != null) { textField.setController(new UpdateRawNameController(getRawSlotName())); } HtmlBlockContainer resultsContainer = new HtmlBlockContainer(); resultsContainer.setId(key.toString() + "_div"); resultsContainer.setClasses(getAutoCompleteStyleClass()); container.addChild(resultsContainer); addFinalScript(container, textField.getId(), resultsContainer.getId()); return container; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/6e5d0c1a2978eef62b4c539a271e71239d4cbe0b/AutoCompleteInputRenderer.java/clean/src/net/sourceforge/fenixedu/presentationTier/renderers/AutoCompleteInputRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
5430,
1841,
752,
1841,
12,
921,
733,
16,
1659,
618,
13,
288,
27573,
5430,
10870,
2170,
1478,
273,
394,
5430,
10870,
2170,
5621,
7734,
527,
15041,
12,
3782,
1769,
27573,
6565,
8764,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5430,
1841,
752,
1841,
12,
921,
733,
16,
1659,
618,
13,
288,
27573,
5430,
10870,
2170,
1478,
273,
394,
5430,
10870,
2170,
5621,
7734,
527,
15041,
12,
3782,
1769,
27573,
6565,
8764,
... |
if(checkFlags(BuildDescriptionManager.DEPS_DEPFILE_INFO)){ | if(checkFlags(BuildDescriptionManager.DEPFILES)){ | private void calculateOutputs(BuildStep action, BuildIOType arg, BuildResource buildRc) throws CoreException { BuildResource rcs[] = null; ITool tool = action.getTool(); boolean isMultiAction = action.isMultiAction(); IPath resPath = null; if(!isMultiAction){ resPath = buildRc.getFullPath(); if(resPath == null) resPath = buildRc.getLocation(); } else { rcs = (BuildResource[])action.getPrimaryTypes(true)[0].getResources(); if(rcs.length == 0) return; } IPath outDirPath = isMultiAction ? getTopBuildDirFullPath() : buildRc.getProducerIOType().getStep() == fInputStep ? getTopBuildDirFullPath().append(resPath.removeFirstSegments(1).removeLastSegments(1)).addTrailingSeparator() : resPath.removeLastSegments(1).addTrailingSeparator(); IInputType inType = (IInputType)arg.getIoType(); String linkId = inType != null ? inType.getBuildVariable() : null; if(linkId != null && linkId.length() == 0) linkId = null; IOutputType[] outTypes = tool.getOutputTypes(); // 1. If the tool is the build target and this is the primary output, // use artifact name & extension if (fTargetStep == action){ String artifactName = fCfg.getArtifactName(); try { String tmp = ManagedBuildManager.getBuildMacroProvider().resolveValue(artifactName, "", " ", IBuildMacroProvider.CONTEXT_CONFIGURATION, fCfg); //$NON-NLS-1$ //$NON-NLS-2$ if((tmp = tmp.trim()).length() > 0) artifactName = tmp; } catch (BuildMacroException e){ } String artifactExt = fCfg.getArtifactExtension(); try { String tmp = ManagedBuildManager.getBuildMacroProvider() .resolveValue(artifactExt, "", " ", IBuildMacroProvider.CONTEXT_CONFIGURATION, fCfg); //$NON-NLS-1$ //$NON-NLS-2$ if((tmp = tmp.trim()).length() > 0) artifactExt = tmp; } catch (BuildMacroException e) { } IPath path = new Path(artifactName); if(artifactExt != null && artifactExt.length() != 0) path = path.addFileExtension(artifactExt); IOutputType type = action.getTool().getPrimaryOutputType(); BuildIOType ioType = action.getIOTypeForType(type, false); if(ioType == null) ioType = action.createIOType(false, true, type); addOutputs(new IPath[]{path}, ioType, outDirPath); } else if (outTypes != null && outTypes.length > 0) { for (int i=0; i<outTypes.length; i++) { IOutputType type = outTypes[i]; boolean primaryOutput = (type == tool.getPrimaryOutputType()); String outputPrefix = type.getOutputPrefix(); String[] pathStrings = null; IPath[] paths = null; // Resolve any macros in the outputPrefix // Note that we cannot use file macros because if we do a clean // we need to know the actual name of the file to clean, and // cannot use any builder variables such as $@. Hence we use the // next best thing, i.e. configuration context. // figure out the configuration we're using IBuildObject toolParent = tool.getParent(); IConfiguration config = null; // if the parent is a config then we're done if (toolParent instanceof IConfiguration) config = (IConfiguration) toolParent; else if (toolParent instanceof IToolChain) { // must be a toolchain config = (IConfiguration) ((IToolChain) toolParent) .getParent(); } else if (toolParent instanceof IResourceConfiguration) { config = (IConfiguration) ((IResourceConfiguration) toolParent) .getParent(); } else { // bad throw new AssertionError( "tool parent must be one of configuration, toolchain, or resource configuration"); //$NON-NLS-1$ } if (config != null) { try {//TODO outputPrefix = ManagedBuildManager .getBuildMacroProvider() .resolveValue( outputPrefix, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_CONFIGURATION, config); } catch (BuildMacroException e) { } } boolean multOfType = type.getMultipleOfType(); IOption option = tool.getOptionBySuperClassId(type.getOptionId()); IManagedOutputNameProvider nameProvider = type.getNameProvider(); String[] outputNames = type.getOutputNames(); BuildIOType buildArg = null; // 2. If an option is specified, use the value of the option if (option != null) { try { int optType = option.getValueType(); if (optType == IOption.STRING) { String val = option.getStringValue(); if(val != null && val.length() > 0){ // try to resolve the build macros in the output // names try {//TODO val = ManagedBuildManager .getBuildMacroProvider() .resolveValue( val, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_FILE, new FileContextData( resPath, null, option, tool)); } catch (BuildMacroException e){ } if((val = val.trim()).length() > 0){ pathStrings = new String[]{outputPrefix + val}; } } } else if ( optType == IOption.STRING_LIST || optType == IOption.LIBRARIES || optType == IOption.OBJECTS) { List outputList = (List)option.getValue(); // Add outputPrefix to each if necessary if(outputList != null && outputList.size() > 0){//TODO try{ pathStrings = ManagedBuildManager .getBuildMacroProvider() .resolveStringListValues( (String[])outputList.toArray(new String[outputList.size()]), "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_FILE, new FileContextData( resPath, null, option, tool)); } catch (BuildMacroException e){ } } if(pathStrings != null && pathStrings.length > 0 && outputPrefix.length() > 0){ for (int j=0; j<pathStrings.length; j++) { if(pathStrings[j] == null && (pathStrings[j] = pathStrings[j].trim()).length() == 0) pathStrings[j] = null; else pathStrings[j] = outputPrefix + pathStrings[j]; } } } } catch( BuildException ex ) {} } else // 3. If a nameProvider is specified, call it if (nameProvider != null) { IPath[] inPaths; if(buildRc != null){ inPaths = new Path[1]; inPaths[0] = buildRc.getLocation(); } else { inPaths = new Path[rcs.length]; for(int k = 0; k < inPaths.length; k++){ inPaths[k] = rcs[k].getLocation(); } } paths = nameProvider.getOutputNames(tool, inPaths); } else // 4. If outputNames is specified, use it if (outputNames != null) { try{ pathStrings = ManagedBuildManager .getBuildMacroProvider() .resolveStringListValues( outputNames, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_FILE, new FileContextData( resPath, null, option, tool)); } catch (BuildMacroException e){ } } else { // 5. Use the name pattern to generate a transformation macro // so that the source names can be transformed into the target names // using the built-in string substitution functions of <code>make</code>. if (multOfType || isMultiAction) { // This case is not handled - a nameProvider or outputNames must be specified // TODO - report error } else { String namePattern = type.getNamePattern(); IPath namePatternPath = null; String inExt = resPath.getFileExtension(); String outExt = tool.getOutputExtension(inExt); if (namePattern == null || namePattern.length() == 0) { namePattern = /*outDirPath.toOSString() +*/ outputPrefix + IManagedBuilderMakefileGenerator.WILDCARD; if (outExt != null && outExt.length() > 0) { namePattern += DOT + outExt; } namePatternPath = Path.fromOSString(namePattern); } else { if (outputPrefix.length() > 0) { namePattern = outputPrefix + namePattern; } namePatternPath = Path.fromOSString(namePattern); // If only a file name is specified, add the relative path of this output directory if (namePatternPath.segmentCount() == 1) { namePatternPath = Path.fromOSString(/*outDirPath.toOSString() +*/ namePatternPath.toString()); } } paths = new IPath[]{resolvePercent(namePatternPath, buildRc.getLocation())}; } } if(paths == null && pathStrings != null){ paths = new IPath[pathStrings.length]; for(int k = 0; k < pathStrings.length; k++){ paths[k] = Path.fromOSString(pathStrings[k]); } } if(paths != null){ if(buildArg == null) buildArg = action.createIOType(false, primaryOutput, type); addOutputs(paths, buildArg, outDirPath); } } } else { // For support of pre-CDT 3.0 integrations. // NOTE WELL: This only supports the case of a single "target tool" // that consumes exactly all of the object files, $OBJS, produced // by other tools in the build and produces a single output. // In this case, the output file name is the input file name with // the output extension. String outPrefix = tool.getOutputPrefix(); IPath outFullPath = Path.fromOSString(outDirPath.toOSString() + outPrefix + WILDCARD); IPath outLocation; String inExt = resPath.getFileExtension(); String outExt = tool.getOutputExtension(inExt); outFullPath = resolvePercent(outFullPath.addFileExtension(outExt), buildRc.getLocation()); outLocation = fProject.getLocation().append(outFullPath.removeFirstSegments(1)); BuildIOType buildArg = action.createIOType(false, true, null); BuildResource outRc = createResource(outLocation, outFullPath); buildArg.addResource(outRc); } if(checkFlags(BuildDescriptionManager.DEPS_DEPFILE_INFO)){ if(tool != null && buildRc != null){ IInputType type = action.getInputType(); String ext = null; if(type != null){ String exts[] = type.getSourceExtensions(tool); String location = buildRc.getLocation().toOSString(); for(int i = 0; i < exts.length; i++){ if(location.endsWith(exts[i])){ ext = exts[i]; break; } } } if(ext == null) ext = buildRc.getLocation().getFileExtension(); if (ext != null) { IManagedDependencyGeneratorType depGenType = tool .getDependencyGeneratorForExtension(ext); if (depGenType != null) { IPath depFiles[] = null; if (depGenType instanceof IManagedDependencyGenerator2) { IBuildObject context = tool.getParent(); if (context instanceof IToolChain) { context = ((IToolChain) context).getParent(); } IPath path = buildRc.isProjectResource() ? buildRc .getFullPath().removeFirstSegments(1) : buildRc.getLocation(); IResource resource = buildRc.isProjectResource() ? fProject .findMember(buildRc.getLocation()) : null; IManagedDependencyInfo info = ((IManagedDependencyGenerator2) depGenType) .getDependencySourceInfo(path, resource, context, tool, getDefaultBuildDirLocation()); if (info instanceof IManagedDependencyCommands) { depFiles = ((IManagedDependencyCommands) info) .getDependencyFiles(); } } else if (depGenType.getCalculatorType() == IManagedDependencyGeneratorType.TYPE_COMMAND && depGenType instanceof IManagedDependencyGenerator) { depFiles = new IPath[1]; depFiles[0] = new Path(buildRc.getLocation() .segment( buildRc.getLocation() .segmentCount() - 1)) .removeFileExtension() .addFileExtension("d"); //$NON-NLS-1$ } if (depFiles != null) { BuildIOType depType = action.createIOType(false, false, null); addOutputs(depFiles, depType, outDirPath); } } } } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d6c3820f2ac080073cc3abf91f36b90dd97ee187/BuildDescription.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/buildmodel/BuildDescription.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4604,
13856,
12,
3116,
4160,
1301,
16,
3998,
4294,
559,
1501,
16,
3998,
1420,
1361,
24599,
13,
1216,
30015,
288,
202,
202,
3116,
1420,
436,
2143,
8526,
273,
446,
31,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4604,
13856,
12,
3116,
4160,
1301,
16,
3998,
4294,
559,
1501,
16,
3998,
1420,
1361,
24599,
13,
1216,
30015,
288,
202,
202,
3116,
1420,
436,
2143,
8526,
273,
446,
31,
202,
... |
resize (d.width, d.height); | int oldwidth = this.width; int oldheight = this.height; if (this.width == width && this.height == height) return; invalidate (); this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); if (isLightweight()) { if (oldwidth != 0 && oldheight != 0 && parent != null) parent.repaint(x, y, oldwidth, oldheight); if (width != 0 && height != 0) repaint(); } if (oldwidth != width || oldheight != height) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } | public void resize(Dimension d) { resize (d.width, d.height); } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/14511e3ad21013e92c6399b2bd2ec09a8263e33a/Component.java/buggy/libjava/java/awt/Component.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7041,
12,
8611,
302,
13,
225,
288,
565,
509,
1592,
2819,
273,
333,
18,
2819,
31,
509,
1592,
4210,
273,
333,
18,
4210,
31,
225,
309,
261,
2211,
18,
2819,
422,
1835,
597,
333... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7041,
12,
8611,
302,
13,
225,
288,
565,
509,
1592,
2819,
273,
333,
18,
2819,
31,
509,
1592,
4210,
273,
333,
18,
4210,
31,
225,
309,
261,
2211,
18,
2819,
422,
1835,
597,
333... |
if (extension.getContentProvider() instanceof IPipelinedTreeContentProvider) { intercepted |= ((IPipelinedTreeContentProvider) extension .getContentProvider()) .interceptRefresh(aRefreshSynchronization); if (extension.getDescriptor().hasOverridingExtensions()) { Set nextLevelOfOverrideableExtensions = new HashSet(); for (Iterator refreshTargetsItr = aRefreshSynchronization .getRefreshTargets().iterator(); refreshTargetsItr .hasNext();) { nextLevelOfOverrideableExtensions .addAll(Arrays .asList(extension .getOverridingExtensionsForPossibleChild(refreshTargetsItr .next()))); } if (!nextLevelOfOverrideableExtensions.isEmpty()) { intercepted |= pipelineRefresh( nextLevelOfOverrideableExtensions, aRefreshSynchronization); | intercepted |= ((IPipelinedTreeContentProvider) overridingExtensionsForPossibleChild[i] .getContentProvider()) .interceptRefresh(aRefreshSynchronization); if (overridingExtensionsForPossibleChild[i].getDescriptor().hasOverridingExtensions()) { intercepted |= pipelineRefresh(overridingExtensionsForPossibleChild[i], aRefreshSynchronization, refreshable); | private boolean pipelineRefresh(Set overrideableExtensions, PipelinedViewerUpdate aRefreshSynchronization) { boolean intercepted = false; for (Iterator extensionsItr = overrideableExtensions.iterator(); extensionsItr .hasNext();) { NavigatorContentExtension extension = (NavigatorContentExtension) extensionsItr .next(); if (extension.getContentProvider() instanceof IPipelinedTreeContentProvider) { intercepted |= ((IPipelinedTreeContentProvider) extension .getContentProvider()) .interceptRefresh(aRefreshSynchronization); if (extension.getDescriptor().hasOverridingExtensions()) { Set nextLevelOfOverrideableExtensions = new HashSet(); for (Iterator refreshTargetsItr = aRefreshSynchronization .getRefreshTargets().iterator(); refreshTargetsItr .hasNext();) { nextLevelOfOverrideableExtensions .addAll(Arrays .asList(extension .getOverridingExtensionsForPossibleChild(refreshTargetsItr .next()))); } if (!nextLevelOfOverrideableExtensions.isEmpty()) { intercepted |= pipelineRefresh( nextLevelOfOverrideableExtensions, aRefreshSynchronization); } } } } return intercepted; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/57b242c92dd8f86e46818b8afadab49e6931c4b6/NavigatorPipelineService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorPipelineService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
5873,
8323,
12,
694,
3849,
429,
7513,
16,
1082,
202,
24925,
292,
1920,
18415,
1891,
279,
8323,
30196,
13,
288,
202,
202,
6494,
10883,
329,
273,
629,
31,
202,
202,
1884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
5873,
8323,
12,
694,
3849,
429,
7513,
16,
1082,
202,
24925,
292,
1920,
18415,
1891,
279,
8323,
30196,
13,
288,
202,
202,
6494,
10883,
329,
273,
629,
31,
202,
202,
1884,
... |
super(position); | super(position, NodeTypes.MULTIPLEASGNNODE); | public MultipleAsgnNode(ISourcePosition position, ListNode headNode, Node argsNode) { super(position); this.headNode = headNode; this.argsNode = argsNode; } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/6e15491217631472c05c6928672f9c7064a978b3/MultipleAsgnNode.java/buggy/src/org/jruby/ast/MultipleAsgnNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13531,
37,
1055,
82,
907,
12,
45,
1830,
2555,
1754,
16,
987,
907,
910,
907,
16,
2029,
833,
907,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
24683,
900,
3033,
8318,
8744,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13531,
37,
1055,
82,
907,
12,
45,
1830,
2555,
1754,
16,
987,
907,
910,
907,
16,
2029,
833,
907,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
24683,
900,
3033,
8318,
8744,
... |
ISourcePosition position = support.getPosition(); | ISourcePosition position = support.getPosition(); | private int parseSingleQuotedString(int closeQuote, int openQuote) { ISourcePosition position = support.getPosition(); int c; int nest = 0; // int strstart = ruby.getSourceLine(); StringBuffer stringToken = new StringBuffer(); while ((c = nextc()) != closeQuote || nest > 0) { if (c == -1) { // ruby.setSourceLine(strstart); errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } if (c == '\\') { c = nextc(); switch (c) { case '\n' : continue; case '\\' : c = '\\'; break; default : // fall through if (c == closeQuote || (openQuote != 0 && c == openQuote)) { stringToken.append((char) c); continue; } stringToken.append('\\'); } } if (openQuote != 0) { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } stringToken.append((char) c); } lexState = LexState.EXPR_END; yaccValue = stringToken.toString(); return Token.tSTRING; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
5281,
15919,
780,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
474,
276,
31,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
5281,
15919,
780,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
474,
276,
31,
202,... |
return authToken.getUsername(); | return address.getNode(); | public String getUsername() throws UserNotFoundException { if (authToken == null) { throw new UserNotFoundException(); } return authToken.getUsername(); } | 6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/fdb96256d377ff7671095212c97ade3b92b7de47/SessionImpl.java/buggy/src/java/org/jivesoftware/messenger/spi/SessionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
17827,
1435,
1216,
2177,
3990,
288,
3639,
309,
261,
1944,
1345,
422,
446,
13,
288,
5411,
604,
394,
2177,
3990,
5621,
3639,
289,
3639,
327,
1758,
18,
588,
907,
5621,
565,
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,
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,
17827,
1435,
1216,
2177,
3990,
288,
3639,
309,
261,
1944,
1345,
422,
446,
13,
288,
5411,
604,
394,
2177,
3990,
5621,
3639,
289,
3639,
327,
1758,
18,
588,
907,
5621,
565,
289,
... |
sb.append(cs.internalsprintf(x)); | if (cs.isPositionalSpecification()) { i = cs.getArgumentPosition() - 1; } if (cs.isPositionalFieldWidth()) { int ifw = cs.getArgumentPositionForFieldWidth() - 1; cs.setFieldWidthWithArg(((Number) o[ifw]).intValue()); } else if (cs.isVariableFieldWidth() && !cs.isPositionalSpecification()) { cs.setFieldWidthWithArg(((Number) o[i]).intValue()); i++; } if (cs.isPositionalPrecision()) { int ipr = cs.getArgumentPositionForPrecision() - 1; cs.setPrecisionWithArg(((Number) o[ipr]).intValue()); } else if (cs.isVariablePrecision() && !cs.isPositionalSpecification()) { cs.setPrecisionWithArg(((Number) o[i]).intValue()); i++; } if (o[i] == null) { } else if (o[i] instanceof Byte) { sb.append(cs.internalsprintf(((Byte) o[i]).byteValue())); } else if (o[i] instanceof Short) { sb.append(cs.internalsprintf(((Short) o[i]).shortValue())); } else if (o[i] instanceof Integer) { sb.append(cs.internalsprintf(((Integer) o[i]).intValue())); } else if (o[i] instanceof Long) { sb.append(cs.internalsprintf(((Long) o[i]).longValue())); } else if (o[i] instanceof Float) { sb.append(cs.internalsprintf(((Float) o[i]).floatValue())); } else if (o[i] instanceof Double) { sb.append(cs.internalsprintf(((Double) o[i]).doubleValue())); } else if (o[i] instanceof Character) { sb.append(cs.internalsprintf(((Character) o[i]).charValue())); } else if (o[i] instanceof String) { sb.append(cs.internalsprintf((String) o[i])); } else { sb.append(cs.internalsprintf(o[i])); } i++; | public String sprintf(int x) throws IllegalArgumentException { Enumeration e = vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = (ConversionSpecification) e.nextElement(); c = cs.getConversionCharacter(); if (c == '\0') { sb.append(cs.getLiteral()); } else if (c == '%') { sb.append("%"); } else { sb.append(cs.internalsprintf(x)); } } return sb.toString(); } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/35891dc0540a7a6cc0d57a33475e292e2558e1b1/PrintfFormat.java/buggy/src/org/jruby/util/PrintfFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2005,
12,
474,
619,
13,
1216,
2754,
288,
3639,
13864,
425,
273,
331,
16090,
18,
6274,
5621,
3639,
16401,
8615,
2873,
273,
446,
31,
3639,
1149,
276,
273,
374,
31,
3639,
6674,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2005,
12,
474,
619,
13,
1216,
2754,
288,
3639,
13864,
425,
273,
331,
16090,
18,
6274,
5621,
3639,
16401,
8615,
2873,
273,
446,
31,
3639,
1149,
276,
273,
374,
31,
3639,
6674,
... |
cat.error("got an URLException in ActionReopenProject", ex); | LOG.error("got an URLException in ActionReopenProject", ex); | public void actionPerformed(ActionEvent e) { // actually copy from ActionOpenProject, there should be a better way ProjectBrowser pb = ProjectBrowser.getInstance(); Project p = ProjectManager.getManager().getCurrentProject(); if (p != null && p.needsSave()) { String t = MessageFormat.format( Translator.localize( "Actions", "optionpane.open-project-save-changes-to"), new Object[] { p.getName() }); int response = JOptionPane.showConfirmDialog( pb, t, t, JOptionPane.YES_NO_CANCEL_OPTION); if (response == JOptionPane.CANCEL_OPTION || response == JOptionPane.CLOSED_OPTION) return; if (response == JOptionPane.YES_OPTION) { boolean safe = false; if (ActionSaveProject.SINGLETON.shouldBeEnabled()) { safe = ActionSaveProject.SINGLETON.trySave(true); } if (!safe) { safe = ActionSaveProjectAs.SINGLETON.trySave(false); } if (!safe) return; } } // load of the new project // just reuse of the ActionOpen object File toOpen = new File(_filename);; try { ActionOpenProject openProjectHandler = new ActionOpenProject(); openProjectHandler.loadProject(toOpen.toURL()); } catch ( java.net.MalformedURLException ex) { cat.error("got an URLException in ActionReopenProject", ex); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/d099086bfb37f6acb8e6fe27c21af918f8847c0a/ActionReopenProject.java/buggy/src_new/org/argouml/uml/ui/ActionReopenProject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
368,
6013,
1610,
628,
4382,
3678,
4109,
16,
1915,
1410,
506,
279,
7844,
4031,
3639,
5420,
9132,
6386,
273,
5420,
9132,
18,
588,
1442,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
425,
13,
288,
7734,
368,
6013,
1610,
628,
4382,
3678,
4109,
16,
1915,
1410,
506,
279,
7844,
4031,
3639,
5420,
9132,
6386,
273,
5420,
9132,
18,
588,
1442,... |
OMDist omd = new OMDist(); | OMDist omd = new OMDist(); | protected synchronized OMDist _findClosest(int x, int y, float limit, boolean resetSelect) { OMDist omd = new OMDist(); OMDist tomd; ListIterator iterator; int i; if (size() != 0) { if (traverseMode == FIRST_ADDED_ON_TOP) { i = 0; iterator = graphics.listIterator(); while (iterator.hasNext()) { tomd = findClosestTest(omd, i, (OMGeometry) iterator.next(), x, y, limit, resetSelect); if (tomd == null) continue; omd = tomd; // for style if (omd.d == 0) break; i++; } } else { i = graphics.size(); iterator = graphics.listIterator(i); while (iterator.hasPrevious()) { tomd = findClosestTest(omd, i, (OMGeometry) iterator.previous(), x, y, limit, resetSelect); if (tomd == null) continue; omd = tomd; // for style if (omd.d == 0) break; i--; } } } return omd; } | 47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/5261c960499272e5f439d0223d1615c1b38a09c2/OMGraphicList.java/clean/src/openmap/com/bbn/openmap/omGraphics/OMGraphicList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
28839,
5133,
389,
4720,
4082,
7781,
12,
474,
619,
16,
509,
677,
16,
1431,
1800,
16,
1250,
2715,
3391,
13,
288,
202,
1872,
5133,
320,
1264,
273,
394,
28839,
5133,
5621,
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,
377,
4750,
3852,
28839,
5133,
389,
4720,
4082,
7781,
12,
474,
619,
16,
509,
677,
16,
1431,
1800,
16,
1250,
2715,
3391,
13,
288,
202,
1872,
5133,
320,
1264,
273,
394,
28839,
5133,
5621,
202,
... |
jj_la1[12] = jj_gen; | jj_la1[11] = jj_gen; | final public void NestedClassDeclaration() throws ParseException { /*@bgen(jjtree) NestedClassDeclaration */ ASTNestedClassDeclaration jjtn000 = new ASTNestedClassDeclaration(this, JJTNESTEDCLASSDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ABSTRACT: case FINAL: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: case STRICTFP: ; break; default: jj_la1[12] = jj_gen; break label_5; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STATIC: jj_consume_token(STATIC); jjtn000.setStatic(); break; case ABSTRACT: jj_consume_token(ABSTRACT); jjtn000.setAbstract(); break; case FINAL: jj_consume_token(FINAL); jjtn000.setFinal(); break; case PUBLIC: jj_consume_token(PUBLIC); jjtn000.setPublic(); break; case PROTECTED: jj_consume_token(PROTECTED); jjtn000.setProtected(); break; case PRIVATE: jj_consume_token(PRIVATE); jjtn000.setPrivate(); break; case STRICTFP: jj_consume_token(STRICTFP); jjtn000.setStrict(); break; default: jj_la1[13] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } UnmodifiedClassDeclaration(); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/e4e1467181b67cfd9bbbd764d319d740024b0993/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
19071,
797,
6094,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
19071,
797,
6094,
1195,
225,
9183,
8649,
797,
6094,
10684,
5088,
3784,
273,
394,
9183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
19071,
797,
6094,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
19071,
797,
6094,
1195,
225,
9183,
8649,
797,
6094,
10684,
5088,
3784,
273,
394,
9183,
... |
if(header[pos + i] == 0) break; if(header[pos + i] == ' ') continue; | if(header[pos + i] == 0) { break; } if(header[pos + i] == ' ') { continue; } | TarEntry getNextEntryInternal() throws TarException, IOException { byte[] header = new byte[512]; int pos = 0; int i; if(firstEntry != null) { TarEntry entryReturn = firstEntry; firstEntry = null; return entryReturn; } while(nextEntry > 0) { long ret = in.skip(nextEntry); if(ret < 0) { throw new IOException("early end of stream"); //$NON-NLS-1$ } nextEntry -= ret; bytesread += ret; } int bytestoread = 512; while(bytestoread > 0) { int ret = super.read(header, 512 - bytestoread, bytestoread); if( ret < 0 ) { throw new IOException("early end of stream"); //$NON-NLS-1$ } bytestoread -= ret; bytesread += ret; } // If we have a header of all zeros, this marks the end of the file. if(headerChecksum(header) == 0) { // We are at the end of the file. if(filepos > 0) { return null; } // Invalid stream. throw new TarException("not in tar format"); //$NON-NLS-1$ } // Validate checksum. if(!isValidTarHeader(header)) { throw new TarException("not in tar format"); //$NON-NLS-1$ } while (pos < 100 && header[pos] != 0) pos++; String name = new String(header, 0, pos, "UTF8"); //$NON-NLS-1$ // Prepend the prefix here. pos = 345; if(header[pos] != 0) { while (pos < 500 && header[pos] != 0) pos++; String prefix = new String(header, 345, pos - 345, "UTF8"); //$NON-NLS-1$ name = prefix + "/" + name; //$NON-NLS-1$ } TarEntry entry; if(longLinkName != null) { entry = new TarEntry(longLinkName, filepos); longLinkName = null; } else { entry = new TarEntry(name, filepos); } if(header[156] != 0) { entry.setFileType(header[156]); } pos = 100; StringBuffer mode = new StringBuffer(); for(i = 0; i < 8; i++) { if(header[pos + i] == 0) break; if(header[pos + i] == ' ') continue; mode.append((char) header[pos + i]); } if(mode.length() > 0 && mode.charAt(0) != '0') mode.insert(0, '0'); try { long fileMode = Long.decode(mode.toString()).longValue(); entry.setMode(fileMode); } catch(NumberFormatException nfe) { throw new TarException(DataTransferMessages.TarImport_invalid_tar_format, nfe); } pos = 100 + 24; StringBuffer size = new StringBuffer(); for(i = 0; i < 12; i++) { if(header[pos + i] == 0) break; if(header[pos + i] == ' ') continue; size.append((char) header[pos + i]); } if(size.charAt(0) != '0') size.insert(0, '0'); int fileSize; try { fileSize = Integer.decode(size.toString()).intValue(); } catch(NumberFormatException nfe) { throw new TarException(DataTransferMessages.TarImport_invalid_tar_format, nfe); } entry.setSize(fileSize); nextEOF = fileSize; if(fileSize % 512 > 0) { nextEntry = fileSize + (512 - (fileSize % 512)); } else { nextEntry = fileSize; } filepos += (nextEntry + 512); return entry; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TarInputStream.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
20464,
1622,
6927,
1622,
3061,
1435,
1216,
20334,
503,
16,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
474,
949,
273,
374,
31,
202,
202,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20464,
1622,
6927,
1622,
3061,
1435,
1216,
20334,
503,
16,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
474,
949,
273,
374,
31,
202,
202,
474,
... |
+ " " + finally_pc); pc += 4; | + " " + finally_pc + " " +with_depth); pc += 6; | private static void dumpICode(InterpreterData idata) { if (Context.printICode) { try { int iCodeLength = idata.itsICodeTop; byte iCode[] = idata.itsICode; String[] strings = idata.itsStringTable; out = new PrintWriter(new FileOutputStream("icode.txt", true)); out.println("ICode dump, for " + idata.itsName + ", length = " + iCodeLength); out.println("MaxStack = " + idata.itsMaxStack); for (int pc = 0; pc < iCodeLength; ) { out.print("[" + pc + "] "); int token = iCode[pc] & 0xff; String tname = icodeToName(token); int old_pc = pc; ++pc; int icodeLength = icodeTokenLength(token); switch (token) { default: if (icodeLength != 1) Context.codeBug(); out.println(tname); break; case GOSUB : case TokenStream.GOTO : case TokenStream.IFEQ : case TokenStream.IFNE : { int newPC = getTarget(iCode, pc); out.println(tname + " " + newPC); pc += 2; break; } case TokenStream.TRY : { int catch_offset = getShort(iCode, pc); int finally_offset = getShort(iCode, pc + 2); int catch_pc = (catch_offset == 0) ? -1 : pc - 1 + catch_offset; int finally_pc = (finally_offset == 0) ? -1 : pc - 1 + finally_offset; out.println(tname + " " + catch_pc + " " + finally_pc); pc += 4; break; } case RETSUB : case TokenStream.ENUMINIT : case TokenStream.ENUMNEXT : case TokenStream.VARINC : case TokenStream.VARDEC : case TokenStream.GETVAR : case TokenStream.SETVAR : case TokenStream.NEWTEMP : case TokenStream.USETEMP : { int slot = (iCode[pc] & 0xFF); out.println(tname + " " + slot); pc++; break; } case TokenStream.CALLSPECIAL : { int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int line = getShort(iCode, pc+2); String source = strings[getIndex(iCode, pc + 4)]; int count = getIndex(iCode, pc + 6); out.println(tname + " " + callType + " " + isNew + " " + count + " " + line + " " + source); pc += 8; break; } case TokenStream.REGEXP : { int i = getIndex(iCode, pc); Object regexp = idata.itsRegExpLiterals[i]; out.println(tname + " " + regexp); pc += 2; break; } case TokenStream.CLOSURE : { int i = getIndex(iCode, pc); InterpreterData data2 = idata.itsNestedFunctions[i]; out.println(tname + " " + data2); pc += 2; break; } case TokenStream.NEW : case TokenStream.CALL : { int count = getIndex(iCode, pc + 2); String name = strings[getIndex(iCode, pc)]; out.println(tname + " " + count + " \"" + name + '"'); pc += 4; break; } case SHORTNUMBER_ICODE : { int value = getShort(iCode, pc); out.println(tname + " " + value); pc += 2; break; } case INTNUMBER_ICODE : { int value = getInt(iCode, pc); out.println(tname + " " + value); pc += 4; break; } case TokenStream.NUMBER : { int index = getIndex(iCode, pc); double value = idata.itsDoubleTable[index]; out.println(tname + " " + value); pc += 2; break; } case TokenStream.TYPEOFNAME : case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.SETNAME : case TokenStream.NAME : case TokenStream.NAMEINC : case TokenStream.NAMEDEC : case TokenStream.STRING : { String str = strings[getIndex(iCode, pc)]; out.println(tname + " \"" + str + '"'); pc += 2; break; } case LINE_ICODE : { int line = getShort(iCode, pc); out.println(tname + " : " + line); pc += 2; break; } } if (old_pc + icodeLength != pc) Context.codeBug(); } out.close(); } catch (IOException x) {} } } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/7625f8b5192375fcb45891d89875d1bc26d2561d/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4657,
45,
1085,
12,
30010,
751,
612,
396,
13,
288,
3639,
309,
261,
1042,
18,
1188,
45,
1085,
13,
288,
5411,
775,
288,
7734,
509,
277,
1085,
1782,
273,
612,
396,
18,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4657,
45,
1085,
12,
30010,
751,
612,
396,
13,
288,
3639,
309,
261,
1042,
18,
1188,
45,
1085,
13,
288,
5411,
775,
288,
7734,
509,
277,
1085,
1782,
273,
612,
396,
18,
12... |
if (jj_scan_token(ASSIGN)) return true; | if (jj_scan_token(SC_OR)) return true; if (jj_3R_194()) return true; | final private boolean jj_3R_235() { if (jj_scan_token(ASSIGN)) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/606e83b0f5c7b0b4f0d05f9c5bcc8d92c81d9342/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30803,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2312,
67,
916,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
23,
54,
67,
15613,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30803,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2312,
67,
916,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
23,
54,
67,
15613,
... |
bridgeBidPanel.addBid(bidder, bid); } | public void run() { if (bridgeBidPanel == null) { bridgeBidPanel = new BridgeBidPanel(card_client .get_num_players()); bridgeBidPanel.addActionListener(GamePanel.this); table.add(bridgeBidPanel, new TableConstraints( TableConstraints.BUTTON_PANEL)); table.invalidate(); table.validate(); } bridgeBidPanel.addBid(bidder, bid); } | 45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/d041db836ca7f8578036f612f625c2a05db70fad/GamePanel.java/buggy/playground/ggz-java5/src/ggz/cards/GamePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
309,
261,
18337,
17763,
5537,
422,
446,
13,
288,
13491,
10105,
17763,
5537,
273,
394,
24219,
17763,
5537,
12,
3327,
67,
2625,
27573,
263,
588,
67,
2107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1171,
1071,
918,
1086,
1435,
288,
10792,
309,
261,
18337,
17763,
5537,
422,
446,
13,
288,
13491,
10105,
17763,
5537,
273,
394,
24219,
17763,
5537,
12,
3327,
67,
2625,
27573,
263,
588,
67,
2107,
... | |
Policy policy = PolicyEngine.getPolicy(element); | Policy policy = PolicyEngine.getPolicy(element.getFirstElement()); | public Assertion build(OMElement element, AssertionBuilderFactory factory) throws IllegalArgumentException { SymmetricBinding symmetricBinding = new SymmetricBinding(); Policy policy = PolicyEngine.getPolicy(element); policy = (Policy) policy.normalize(false); for (Iterator iterator = policy.getAlternatives(); iterator.hasNext();) { processAlternatives((List) iterator.next(), symmetricBinding); /* * since there should be only one alternative .. */ break; } return symmetricBinding; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/2a5ba4ec18e8e760a63eac472351a67a530ab5cf/SymmetricBindingBuilder.java/buggy/modules/secpolicy/src/org/apache/ws/secpolicy/builders/SymmetricBindingBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9067,
1361,
12,
51,
12310,
930,
16,
9067,
20692,
3272,
13,
1216,
2754,
288,
3639,
10042,
6899,
5250,
15108,
5250,
273,
394,
10042,
6899,
5250,
5621,
1171,
7436,
3329,
273,
7436,
4410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9067,
1361,
12,
51,
12310,
930,
16,
9067,
20692,
3272,
13,
1216,
2754,
288,
3639,
10042,
6899,
5250,
15108,
5250,
273,
394,
10042,
6899,
5250,
5621,
1171,
7436,
3329,
273,
7436,
4410,... |
if (nestedMethod[nestedType] == 0) { if (nestedType != 0) { | if (this.nestedMethod[this.nestedType] == 0) { if (this.nestedType != 0) { | protected void consumeClassHeaderName() { // ClassHeaderName ::= Modifiersopt 'class' 'Identifier' TypeDeclaration typeDecl = new TypeDeclaration(this.compilationUnit.compilationResult); if (nestedMethod[nestedType] == 0) { if (nestedType != 0) { typeDecl.bits |= ASTNode.IsMemberTypeMASK; } } else { // Record that the block has a declaration for local types typeDecl.bits |= ASTNode.IsLocalTypeMASK; markEnclosingMemberWithLocalType(); blockReal(); } //highlight the name of the type long pos = identifierPositionStack[identifierPtr]; typeDecl.sourceEnd = (int) pos; typeDecl.sourceStart = (int) (pos >>> 32); typeDecl.name = identifierStack[identifierPtr--]; identifierLengthPtr--; //compute the declaration source too // 'class' and 'interface' push two int positions: the beginning of the class token and its end. // we want to keep the beginning position but get rid of the end position // it is only used for the ClassLiteralAccess positions. typeDecl.declarationSourceStart = intStack[intPtr--]; intPtr--; // remove the end position of the class token typeDecl.modifiersSourceStart = intStack[intPtr--]; typeDecl.modifiers = intStack[intPtr--]; if (typeDecl.modifiersSourceStart >= 0) { typeDecl.declarationSourceStart = typeDecl.modifiersSourceStart; } typeDecl.bodyStart = typeDecl.sourceEnd + 1; pushOnAstStack(typeDecl); listLength = 0; // will be updated when reading super-interfaces // recovery if (currentElement != null){ lastCheckPoint = typeDecl.bodyStart; currentElement = currentElement.add(typeDecl, 0); lastIgnoredToken = -1; } // javadoc typeDecl.javadoc = this.javadoc; this.javadoc = null;} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/72d09911302484497c2776b017dc226fd10250ec/Parser.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
797,
1864,
461,
1435,
288,
202,
759,
1659,
1864,
461,
493,
33,
3431,
3383,
3838,
296,
1106,
11,
296,
3004,
11,
202,
559,
6094,
618,
3456,
273,
394,
1412,
6094,
12,
2211,
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,
4750,
918,
7865,
797,
1864,
461,
1435,
288,
202,
759,
1659,
1864,
461,
493,
33,
3431,
3383,
3838,
296,
1106,
11,
296,
3004,
11,
202,
559,
6094,
618,
3456,
273,
394,
1412,
6094,
12,
2211,
18,... |
String content; content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-2.xml", UTF8); | String content; content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-2.xml", UTF8); | public void testXmlPageLocaleAccess() throws Exception { // create a XML entity resolver CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null); CmsXmlPage page; String content; content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-2.xml", UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); List locales; locales = page.getLocales("body"); assertEquals(2, locales.size()); assertTrue(locales.contains(Locale.ENGLISH)); assertTrue(locales.contains(Locale.GERMAN)); locales = page.getLocales("body2"); assertEquals(1, locales.size()); assertTrue(locales.contains(Locale.ENGLISH)); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/6f754ad872cb162fb0d29d167cdd6d159d8112a0/TestCmsXmlPage.java/buggy/test/org/opencms/xml/page/TestCmsXmlPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4432,
1964,
3916,
1862,
1435,
1216,
1185,
288,
13491,
368,
752,
279,
3167,
1522,
5039,
3639,
16084,
1943,
4301,
5039,
273,
394,
16084,
1943,
4301,
12,
2011,
1769,
7734,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4432,
1964,
3916,
1862,
1435,
1216,
1185,
288,
13491,
368,
752,
279,
3167,
1522,
5039,
3639,
16084,
1943,
4301,
5039,
273,
394,
16084,
1943,
4301,
12,
2011,
1769,
7734,
160... |
endIndex = text.indexOf('}', startIndex); if (endIndex < 0) { endIndex = startIndex; | endIndex = startIndex; int nestedBrackets = 0; while (text.length() > endIndex) { final char ch = text.charAt(endIndex); if (ch == '}') { if (nestedBrackets == 0) { break; } --nestedBrackets; } else if (ch == '{') { ++nestedBrackets; } ++endIndex; | private void getXmlElementReferences(final XmlElement element, final List<PsiReference> refs, final AntStructuredElement antElement) { if (element == null) return; final String text = element.getText(); final int offsetInPosition = element.getTextRange().getStartOffset() - antElement.getTextRange().getStartOffset(); int startIndex; int endIndex = -1; while ((startIndex = text.indexOf("@{", endIndex + 1)) > endIndex) { startIndex += 2; endIndex = text.indexOf('}', startIndex); if (endIndex < 0) { endIndex = startIndex; } if (endIndex >= startIndex) { final String name = text.substring(startIndex, endIndex); refs.add(new AntMacroDefParameterReference(this, antElement, name, new TextRange(offsetInPosition + startIndex, offsetInPosition + endIndex), element)); } } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/7f7dc32cdeec2e71c61bbeef27d5ce51671ab917/AntMacroDefParameterReferenceProvider.java/clean/plugins/ant/src/com/intellij/lang/ant/psi/impl/reference/providers/AntMacroDefParameterReferenceProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
28504,
1046,
8221,
12,
6385,
15412,
930,
16,
727,
987,
32,
52,
7722,
2404,
34,
9047,
16,
727,
18830,
30733,
1046,
17841,
1046,
13,
288,
565,
309,
261,
2956,
422,
446,
13,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
28504,
1046,
8221,
12,
6385,
15412,
930,
16,
727,
987,
32,
52,
7722,
2404,
34,
9047,
16,
727,
18830,
30733,
1046,
17841,
1046,
13,
288,
565,
309,
261,
2956,
422,
446,
13,
327... |
log.info(this + " started"); | log.info(this + " started, fullSize=" + fullSize + ", pageSize=" + pageSize + ", downCacheSize=" + downCacheSize); | public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateException( "The " + (isQueue() ? "queue" : "topic") + " " + "name was not properly set in the service's" + "ObjectName"); } ServerPeer serverPeer = (ServerPeer)server.getAttribute(serverPeerObjectName, "Instance"); dm = serverPeer.getDestinationManager(); sm = serverPeer.getSecurityManager(); cm = serverPeer.getChannelMapperDelegate(); jndiName = dm.registerDestination(isQueue(), name, jndiName, securityConfig); cm.deployCoreDestination(isQueue(), name, serverPeer.getMessageStoreDelegate(), serverPeer.getPersistenceManagerDelegate(), fullSize, pageSize, downCacheSize); log.info(this + " started"); } catch (Exception e) { log.error("Failed to start service", e); throw e; } } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c7133c9662c41fb385b863c92214187907f2d1b0/DestinationServiceSupport.java/buggy/src/main/org/jboss/jms/server/destination/DestinationServiceSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3852,
918,
787,
1179,
1435,
1216,
1185,
282,
288,
1377,
775,
1377,
288,
540,
5746,
273,
638,
31,
5411,
309,
261,
15423,
480,
446,
13,
540,
288,
5411,
508,
273,
6773,
18,
588,
653,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3852,
918,
787,
1179,
1435,
1216,
1185,
282,
288,
1377,
775,
1377,
288,
540,
5746,
273,
638,
31,
5411,
309,
261,
15423,
480,
446,
13,
540,
288,
5411,
508,
273,
6773,
18,
588,
653,... |
ObjectReference nextRef = TraceInterface.getLink(thisRef); | ObjectReference nextRef = TraceInterface.getLink(thisRef); | private final static void findDeaths() { /* Only the merlin analysis needs to compute death times */ if (MERLIN_ANALYSIS) { /* Start with an empty stack. */ if (Assert.VERIFY_ASSERTIONS) Assert._assert(worklist.isEmpty()); /* Scan the linked list of objects within each region */ for (int allocator = 0; allocator < ALLOCATORS; allocator++) { ObjectReference thisRef = objectLinks.get(allocator); /* Start at the top of each linked list */ while (!thisRef.isNull()) { /* Add the unreachable objects onto the worklist. */ if (!Plan.getInstance().isReachable(thisRef)) worklist.push(thisRef); thisRef = TraceInterface.getLink(thisRef); } } /* Sort the objects on the worklist by their timestamp */ worklist.sort(); /* Now compute the death times. */ computeTransitiveClosure(); } /* Output the death times for each object */ for (int allocator = 0; allocator < ALLOCATORS; allocator++) { ObjectReference thisRef = objectLinks.get(allocator); ObjectReference prevRef = ObjectReference.nullReference(); // the last live object seen while (!thisRef.isNull()) { ObjectReference nextRef = TraceInterface.getLink(thisRef); /* Maintain reachable objects on the linked list of allocated objects */ if (Plan.getInstance().isReachable(thisRef)) { thisRef = Plan.followObject(thisRef); TraceInterface.setLink(thisRef, prevRef); prevRef = thisRef; } else { /* For brute force lifetime analysis, objects become unreachable "now" */ Word deadTime; if (MERLIN_ANALYSIS) deadTime = TraceInterface.getDeathTime(thisRef); else deadTime = lastGC; /* Add the death record to the trace for unreachable objects. */ trace.push(TRACE_DEATH); trace.push(TraceInterface.getOID(thisRef)); trace.push(deadTime); } thisRef = nextRef; } /* Purge the list of unreachable objects... */ objectLinks.set(allocator, prevRef); } } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9232c996b259f69154b495f6df0a9c0d44e630e0/TraceGenerator.java/clean/MMTk/src/org/mmtk/utility/TraceGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
760,
918,
1104,
758,
421,
87,
1435,
288,
565,
1748,
5098,
326,
4045,
7511,
6285,
4260,
358,
3671,
443,
421,
4124,
1195,
565,
309,
261,
20969,
20663,
67,
1258,
19448,
15664,
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,
282,
3238,
727,
760,
918,
1104,
758,
421,
87,
1435,
288,
565,
1748,
5098,
326,
4045,
7511,
6285,
4260,
358,
3671,
443,
421,
4124,
1195,
565,
309,
261,
20969,
20663,
67,
1258,
19448,
15664,
13,... |
df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); | df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); } else { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); } | public static Timestamp toTimestamp(String s, ResultSet resultSet) throws SQLException { if (s == null) return null; // We must be synchronized here incase more theads access the ResultSet // bad practice but possible. Anyhow this is to protect sbuf and // SimpleDateFormat objects synchronized (resultSet) { SimpleDateFormat df = null; // If first time, create the buffer, otherwise clear it. if (resultSet.sbuf == null) resultSet.sbuf = new StringBuffer(); else resultSet.sbuf.setLength(0); // Copy s into sbuf for parsing. resultSet.sbuf.append(s); if (s.length() > 19) { // The len of the ISO string to the second value is 19 chars. If // greater then 19, there should be tz info and perhaps fractional // second info which we need to change to java to read it. // cut the copy to second value "2001-12-07 16:29:22" int i = 19; resultSet.sbuf.setLength(i); char c = s.charAt(i++); if (c == '.') { // Found a fractional value. Append up to 3 digits including // the leading '.' do { if (i < 24) resultSet.sbuf.append(c); c = s.charAt(i++); } while (Character.isDigit(c)); // If there wasn't at least 3 digits we should add some zeros // to make up the 3 digits we tell java to expect. for (int j = i; j < 24; j++) resultSet.sbuf.append('0'); } else { // No fractional seconds, lets add some. resultSet.sbuf.append(".000"); } // prepend the GMT part and then add the remaining bit of // the string. resultSet.sbuf.append(" GMT"); resultSet.sbuf.append(c); resultSet.sbuf.append(s.substring(i, s.length())); // Lastly, if the tz part doesn't specify the :MM part then // we add ":00" for java. if (s.length() - i < 5) resultSet.sbuf.append(":00"); // we'll use this dateformat string to parse the result. df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); } else if (s.length() == 19) { // No tz or fractional second info. // I'm not sure if it is // possible to have a string in this format, as pg // should give us tz qualified timestamps back, but it was // in the old code, so I'm handling it for now. df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } else { // We must just have a date. This case is // needed if this method is called on a date // column df = new SimpleDateFormat("yyyy-MM-dd"); } try { // All that's left is to parse the string and return the ts. return new Timestamp(df.parse(resultSet.sbuf.toString()).getTime()); } catch (ParseException e) { throw new PSQLException("postgresql.res.badtimestamp", new Integer(e.getErrorOffset()), s); } } } | 45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/8f83590aa18ed5416b094225fe46b1e0611569e3/ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
8159,
358,
4921,
12,
780,
272,
16,
10842,
12168,
13,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
1660,
129... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8159,
358,
4921,
12,
780,
272,
16,
10842,
12168,
13,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
1660,
129... |
return Field.getSQLType( getBaseTypeName() ); | return conn.getSQLType(getBaseTypeName()); | public int getBaseType() throws SQLException { return Field.getSQLType( getBaseTypeName() ); } | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/76a6da8a1b01e23091da65f5e167d67f5274d740/Array.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8297,
559,
1435,
1216,
6483,
288,
202,
202,
2463,
2286,
18,
588,
3997,
559,
12,
8297,
7947,
1435,
11272,
202,
97,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8297,
559,
1435,
1216,
6483,
288,
202,
202,
2463,
2286,
18,
588,
3997,
559,
12,
8297,
7947,
1435,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
throws SQLException | private Procedure findCompatibleStoredProcedure( Tds tds, String rawQueryString ) throws SQLException { Procedure procedure = null; int i; procedure = ( Procedure ) tds.procedureCache.get( rawQueryString ); return procedure; } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/3395178cc8dfc801b4baece1c3448145ff271621/PreparedStatement_base.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/PreparedStatement_base.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
26639,
1104,
14599,
18005,
17213,
12,
399,
2377,
268,
2377,
16,
514,
1831,
15276,
262,
7734,
288,
3639,
26639,
12131,
273,
446,
31,
3639,
509,
277,
31,
3639,
12131,
273,
261,
26639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
26639,
1104,
14599,
18005,
17213,
12,
399,
2377,
268,
2377,
16,
514,
1831,
15276,
262,
7734,
288,
3639,
26639,
12131,
273,
446,
31,
3639,
509,
277,
31,
3639,
12131,
273,
261,
26639,
... | |
return false; | throw new LSException(LSException.SERIALIZE_ERR, DOMMessageFormatter.formatMessage( DOMMessageFormatter.SERIALIZER_DOMAIN, "unsupported-encoding", null)); | public boolean write(Node node, LSOutput destination) throws LSException{ if (node == null) return false; Method getVersion = null; XMLSerializer ser = null; String ver = null; Document fDocument =(node.getNodeType() == Node.DOCUMENT_NODE) ? (Document) node : node.getOwnerDocument(); // this should run under JDK 1.1.8... try { getVersion = fDocument.getClass().getMethod("getXmlVersion", new Class[] {}); if (getVersion != null) { ver = (String) getVersion.invoke(fDocument, null); } } catch (Exception e) { //no way to test the version... //ignore the exception } //determine which serializer to use: if (ver != null && ver.equals("1.1")) { if (xml11Serializer == null) { xml11Serializer = new XML11Serializer(); initSerializer(xml11Serializer); } //copy setting from "main" serializer to XML 1.1 serializer copySettings(serializer, xml11Serializer); ser = xml11Serializer; } else { ser = serializer; } String encoding = null; if ((encoding = destination.getEncoding()) == null) { try { Method getEncoding = fDocument.getClass().getMethod("getActualEncoding", new Class[] {}); if (getEncoding != null) { encoding = (String) getEncoding.invoke(fDocument, null); } } catch (Exception e) { // ignore the exception } if (encoding == null) { try { Method getEncoding = fDocument.getClass().getMethod("getXmlEncoding", new Class[] {}); if (getEncoding != null) { encoding = (String) getEncoding.invoke(fDocument, null); } } catch (Exception e) { // ignore the exception } if (encoding == null) { encoding = "UTF-8"; } } } try { prepareForSerialization(ser, node); ser._format.setEncoding(encoding); OutputStream outputStream = destination.getByteStream(); Writer writer = destination.getCharacterStream(); String uri = destination.getSystemId(); if (writer == null) { if (outputStream == null) { if (uri == null) { if (ser.fDOMErrorHandler != null) { DOMErrorImpl error = new DOMErrorImpl(); error.fType = "no-output-specified"; error.fMessage = "no-output-specified"; error.fSeverity = DOMError.SEVERITY_FATAL_ERROR; ser.fDOMErrorHandler.handleError(error); } throw new LSException(LSException.SERIALIZE_ERR, "no-output-specified"); } else { // URI was specified. Handle relative URIs. String expanded = XMLEntityManager.expandSystemId(uri, null, true); URL url = new URL(expanded != null ? expanded : uri); OutputStream out = null; String protocol = url.getProtocol(); String host = url.getHost(); // Use FileOutputStream if this URI is for a local file. if (protocol.equals("file") && (host == null || host.length() == 0 || host.equals("localhost"))) { // REVISIT: We have to decode %nn sequences. For // now files containing spaces and other characters // which were escaped in the URI will fail. -- mrglavas out = new FileOutputStream(new File(url.getPath())); } // Try to write to some other kind of URI. Some protocols // won't support this, though HTTP should work. else { URLConnection urlCon = url.openConnection(); urlCon.setDoInput(false); urlCon.setDoOutput(true); urlCon.setUseCaches(false); // Enable tunneling. if (urlCon instanceof HttpURLConnection) { // The DOM L3 LS CR says if we are writing to an HTTP URI // it is to be done with an HTTP PUT. HttpURLConnection httpCon = (HttpURLConnection) urlCon; httpCon.setRequestMethod("PUT"); } out = urlCon.getOutputStream(); } ser.setOutputByteStream(out); } } else { // byte stream was specified ser.setOutputByteStream(outputStream); } } else { // character stream is specified ser.setOutputCharStream(writer); } if (node.getNodeType() == Node.DOCUMENT_NODE) ser.serialize((Document) node); else if (node.getNodeType() == Node.DOCUMENT_FRAGMENT_NODE) ser.serialize((DocumentFragment) node); else if (node.getNodeType() == Node.ELEMENT_NODE) ser.serialize((Element) node); else return false; } catch( UnsupportedEncodingException ue) { if (ser.fDOMErrorHandler != null) { DOMErrorImpl error = new DOMErrorImpl(); error.fException = ue; error.fType = "unsupported-encoding"; error.fMessage = ue.getMessage(); error.fSeverity = DOMError.SEVERITY_FATAL_ERROR; ser.fDOMErrorHandler.handleError(error); } return false; } catch (RuntimeException e) { if (e == DOMNormalizer.abort){ // stopped at user request return false; } throw new LSException(LSException.SERIALIZE_ERR, e.toString()); } catch (Exception e) { if (ser.fDOMErrorHandler != null) { DOMErrorImpl error = new DOMErrorImpl(); error.fException = e; error.fMessage = e.getMessage(); error.fSeverity = DOMError.SEVERITY_ERROR; ser.fDOMErrorHandler.handleError(error); } e.printStackTrace(); throw new LSException(LSException.SERIALIZE_ERR, e.toString()); } return true; } //write | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/a98db6ea80b4d7fed2468673a870d190f30918fc/DOMSerializerImpl.java/buggy/src/org/apache/xml/serialize/DOMSerializerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1045,
12,
907,
756,
16,
29204,
1447,
2929,
13,
1216,
29204,
503,
95,
3639,
309,
261,
2159,
422,
446,
13,
5411,
604,
394,
29204,
503,
12,
3045,
503,
18,
2123,
6365,
15641,
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,
1250,
1045,
12,
907,
756,
16,
29204,
1447,
2929,
13,
1216,
29204,
503,
95,
3639,
309,
261,
2159,
422,
446,
13,
5411,
604,
394,
29204,
503,
12,
3045,
503,
18,
2123,
6365,
15641,
67... |
minor = in.readUnsignedShort(); major = in.readUnsignedShort(); constPool = new ConstPool(in); accessFlags = in.readUnsignedShort(); thisClass = in.readUnsignedShort(); constPool.setThisClassInfo(thisClass); superClass = in.readUnsignedShort(); n = in.readUnsignedShort(); if (n == 0) interfaces = null; else { interfaces = new int[n]; for (i = 0; i < n; ++i) interfaces[i] = in.readUnsignedShort(); } | minor = in.readUnsignedShort(); major = in.readUnsignedShort(); constPool = new ConstPool(in); accessFlags = in.readUnsignedShort(); thisClass = in.readUnsignedShort(); constPool.setThisClassInfo(thisClass); superClass = in.readUnsignedShort(); n = in.readUnsignedShort(); if (n == 0) interfaces = null; else { interfaces = new int[n]; for (i = 0; i < n; ++i) interfaces[i] = in.readUnsignedShort(); } | private void read(DataInputStream in) throws IOException { int i, n; int magic = in.readInt(); if (magic != 0xCAFEBABE) throw new IOException("non class file"); minor = in.readUnsignedShort(); major = in.readUnsignedShort(); constPool = new ConstPool(in); accessFlags = in.readUnsignedShort(); thisClass = in.readUnsignedShort(); constPool.setThisClassInfo(thisClass); superClass = in.readUnsignedShort(); n = in.readUnsignedShort(); if (n == 0) interfaces = null; else { interfaces = new int[n]; for (i = 0; i < n; ++i) interfaces[i] = in.readUnsignedShort(); } ConstPool cp = constPool; n = in.readUnsignedShort(); fields = new ArrayList(); for (i = 0; i < n; ++i) addField0(new FieldInfo(cp, in)); n = in.readUnsignedShort(); methods = new ArrayList(); for (i = 0; i < n; ++i) addMethod0(new MethodInfo(cp, in)); attributes = new LinkedList(); n = in.readUnsignedShort(); for (i = 0; i < n; ++i) addAttribute(AttributeInfo.read(cp, in)); thisclassname = constPool.getClassInfo(thisClass); } | 11369 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11369/f5d84c890b70def694dbd2904f1e6d2f7f1b70e3/ClassFile.java/buggy/src/main/javassist/bytecode/ClassFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
855,
12,
751,
4348,
316,
13,
1216,
1860,
288,
3639,
509,
277,
16,
290,
31,
3639,
509,
8146,
273,
316,
18,
896,
1702,
5621,
3639,
309,
261,
11179,
480,
374,
92,
3587,
8090,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
12,
751,
4348,
316,
13,
1216,
1860,
288,
3639,
509,
277,
16,
290,
31,
3639,
509,
8146,
273,
316,
18,
896,
1702,
5621,
3639,
309,
261,
11179,
480,
374,
92,
3587,
8090,
... |
erase(); } | erase(); } | public void mouseReleased(MouseEvent e) { erase(); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/RubberBand.java/buggy/tn5250j/src/org/tn5250j/RubberBand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
288,
1875,
202,
264,
448,
5621,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
288,
1875,
202,
264,
448,
5621,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
char type = support.read(); char openQuote = type; | char type = support.read(); char openQuote = type; | private int parseQuotation() { char type = support.read(); char openQuote = type; if (Character.isLetterOrDigit(type)) { openQuote = support.read(); } else { type = 'Q'; } if (type == '\0' || openQuote == '\0') { errorHandler.handleError(IErrors.COMPILE_ERROR, support.getPosition(), Messages.getString("unterminated_quoted_string")); //$NON-NLS-1$ return 0; } char closeQuote = openQuote; if (openQuote == '(') { closeQuote = ')'; } else if (openQuote == '[') { closeQuote = ']'; } else if (openQuote == '{') { closeQuote = '}'; } else if (openQuote == '<') { closeQuote = '>'; } else { openQuote = '\0'; } switch (type) { case 'Q' : return parseString('"', closeQuote, openQuote); case 'q' : return parseSingleQuotedString(closeQuote, openQuote); case 'w' : return parseQuotedWords(closeQuote, openQuote); case 'x' : return parseString('`', closeQuote, openQuote); case 'r' : return parseRegexp(closeQuote, openQuote); default : errorHandler.handleError(IErrors.SYNTAX_ERROR, support.getPosition(), Messages.getString("unknown_quotation_type", Character.toString(type))); //$NON-NLS-1$ return 0; } } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
509,
1109,
7678,
367,
1435,
288,
1082,
202,
3001,
618,
273,
2865,
18,
896,
5621,
1082,
202,
3001,
1696,
10257,
273,
618,
31,
1082,
202,
430,
261,
7069,
18,
291,
13938,
1162,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
509,
1109,
7678,
367,
1435,
288,
1082,
202,
3001,
618,
273,
2865,
18,
896,
5621,
1082,
202,
3001,
1696,
10257,
273,
618,
31,
1082,
202,
430,
261,
7069,
18,
291,
13938,
1162,
... |
errorOutput.write(msg); errorOutput.write('\n'); | listener.getLogger().println(msg); | public void log(String msg, int msgLevel) { // send error to listener. This seems like the route in which the changelog task // sends output if(msgLevel==org.apache.tools.ant.Project.MSG_ERR) { hadError[0] = true; errorOutput.write(msg); errorOutput.write('\n'); return; } if(debugLogging) { errorOutput.write(msg); errorOutput.write('\n'); } } | 28182 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28182/a80fb9de78ed13c908aabe9162fcfb8ea2e2898e/CVSSCM.java/buggy/core/src/main/java/hudson/scm/CVSSCM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
613,
12,
780,
1234,
16,
509,
1234,
2355,
13,
288,
7734,
368,
1366,
555,
358,
2991,
18,
1220,
12001,
3007,
326,
1946,
316,
1492,
326,
21182,
1562,
7734,
368,
9573,
876,
7734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
613,
12,
780,
1234,
16,
509,
1234,
2355,
13,
288,
7734,
368,
1366,
555,
358,
2991,
18,
1220,
12001,
3007,
326,
1946,
316,
1492,
326,
21182,
1562,
7734,
368,
9573,
876,
7734,
... |
public org.quickfix.field.AllocShares getAllocShares() throws FieldNotFound { org.quickfix.field.AllocShares value = new org.quickfix.field.AllocShares(); | public quickfix.field.AllocShares getAllocShares() throws FieldNotFound { quickfix.field.AllocShares value = new quickfix.field.AllocShares(); | public org.quickfix.field.AllocShares getAllocShares() throws FieldNotFound { org.quickfix.field.AllocShares value = new org.quickfix.field.AllocShares(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/buggy/src/java/src/quickfix/fix42/NewOrderList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
336,
8763,
24051,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
460,
273,
394,
2358,
18,
19525,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
336,
8763,
24051,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
460,
273,
394,
2358,
18,
19525,... |
fSGComparator = null; | private void resetCommon(StringPool stringPool) throws Exception { fStringPool = stringPool; fValidateEntity.setDatatypeObject(new Object[]{fEntityHandler, stringPool}); fValidating = fValidationEnabled; fValidationEnabledByDynamic = false; fDynamicDisabledByValidation = false; poolReset(); fCalledStartDocument = false; fStandaloneReader = -1; fElementChildrenLength = 0; fElementDepth = -1; fSeenRootElement = false; fSeenDoctypeDecl = false; fNamespacesScope = null; fNamespacesPrefix = -1; fRootElement.clear(); fAttrListHandle = -1; fCheckedForSchema = false; fCurrentScope = TOP_LEVEL_SCOPE; fCurrentSchemaURI = StringPool.EMPTY_STRING; fEmptyURI = StringPool.EMPTY_STRING; fXsiPrefix = - 1; fXsiTypeValidator = null; // xsi:nill fNil = false; fGrammar = null; fGrammarNameSpaceIndex = StringPool.EMPTY_STRING; // we reset fGrammarResolver in XMLParser before passing it to Validator fGrammarIsDTDGrammar = false; fGrammarIsSchemaGrammar = false; //Normalization fCurrentDV = null; fFirstChunk = true; fTrailing = false; fWhiteSpace = DatatypeValidator.COLLAPSE; fMatcherStack.clear(); UPACheckedGrammarURIs.clear(); //REVISIT: fExternalSchemas/fExternalNoNamespaceSchema is not reset 'cause we don't have grammar cashing in Xerces-J // reconsider implementation when we have grammar chashing // init(); } // resetCommon(StringPool) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/a1b0cd5294f8baebb5bcfb1f068690248b002281/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
3238,
74,
30820,
5559,
273,
446,
31,
918,
74,
30820,
5559,
273,
446,
31,
2715,
6517,
12,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
3238,
74,
30820,
5559,
273,
446,
31,
918,
74,
30820,
5559,
273,
446,
31,
2715,
6517,
12,
780,
... | |
public static Object test(Context cx, Scriptable thisObj, Object[] args, Function funObj) { Object rval = execSub(cx, thisObj, args, funObj, TEST, funObj); | private Object test(Context cx, Scriptable scopeObj, Object[] args) { Object rval = execSub(cx, scopeObj, args, TEST); | public static Object test(Context cx, Scriptable thisObj, Object[] args, Function funObj) { Object rval = execSub(cx, thisObj, args, funObj, TEST, funObj); if (rval == null || !rval.equals(Boolean.TRUE)) rval = Boolean.FALSE; return rval; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8b34980fb3adc3beae5bcea5913d426dc2e366c8/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1842,
12,
1042,
9494,
16,
22780,
15261,
16,
17311,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
288,
3639,
1033,
14267,
273,
1196,
1676,
12,
71,
92,
16,
15261,
16,
833,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
1842,
12,
1042,
9494,
16,
22780,
15261,
16,
17311,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
288,
3639,
1033,
14267,
273,
1196,
1676,
12,
71,
92,
16,
15261,
16,
833,
1... |
imageContent.setURI( strUri ); | imageContent.setURI( uri.toExternalForm( ) ); | protected void handleURIImage( String uriExpr, IImageContent imageContent ) { // the expression is an expression, but UI may use // the expression as the string constants, so first try // to evaluate, if there are some errors, use it as a // string. imageContent.setImageSource( IImageContent.IMAGE_URL ); assert uriExpr != null; Object uriObj = evaluate( uriExpr ); String strUri = null; if ( uriObj != null ) { strUri = uriObj.toString( ); } else if ( uriExpr != null && uriExpr.length( ) > 0 ) { strUri = uriExpr; } ReportDesignHandle reportDesign = context.getDesign( ); URL uri = reportDesign.findResource( strUri, IResourceLocator.IMAGE ); if ( uri != null ) { strUri = uri.toExternalForm( ); if ( "file".equals( uri.getProtocol( ) ) ) { handleFileImage( strUri, imageContent ); } else { imageContent.setURI( strUri ); } } else { handleFileImage( strUri, imageContent ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/11aa8d97d4433c2ff705e9c176dd7ca72917ccbe/ImageItemExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ImageItemExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
3098,
2040,
12,
514,
2003,
4742,
16,
1082,
202,
45,
2040,
1350,
1316,
1350,
262,
202,
95,
202,
202,
759,
326,
2652,
353,
392,
2652,
16,
1496,
6484,
2026,
999,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
3098,
2040,
12,
514,
2003,
4742,
16,
1082,
202,
45,
2040,
1350,
1316,
1350,
262,
202,
95,
202,
202,
759,
326,
2652,
353,
392,
2652,
16,
1496,
6484,
2026,
999,
202,... |
is.getComponentDescriptions(name, "Node.AgentManager.Agent"); | is.getComponentDescriptions(name, "Node.AgentManager"); | protected void initNode() throws UnknownHostException, NamingException, IOException, SQLException, InitializerServiceException { // get the node name String name = System.getProperty("org.cougaar.node.name"); if (name == null) { name = findHostName(); if (name == null) { throw new IllegalArgumentException("Node name not specified"); } } // get the start mode (file or experimentId) String filename = System.getProperty("org.cougaar.filename"); String experimentId = System.getProperty("org.cougaar.experiment.id"); if (filename == null) { if (experimentId == null) { // use the default "name.ini" filename = name + ".ini"; } else { // use the filename } } else if (experimentId == null) { // use the experimentId } else { throw new IllegalArgumentException( "Both file name (-f) and experiment -X) specified. "+ "Only one allowed."); } // set the node name NodeIdentifier nid = new NodeIdentifier(name); setNodeIdentifier(nid); // create the AgentManager on our own for now BinderFactory ambf = new AgentManagerBinderFactory(); if (!attachBinderFactory(ambf)) { throw new RuntimeException( "Failed to load the AgentManagerBinderFactory in Node"); } agentManager = new AgentManager(); super.add(agentManager); ServiceBroker sb = getServiceBroker(); sb.addService(NodeIdentificationService.class, new NodeIdentificationServiceProvider(nid)); sb.addService(NamingService.class, new NamingServiceProvider(System.getProperties())); LoggingServiceProvider loggingServiceProvider = new LoggingServiceProvider(System.getProperties()); sb.addService(LoggingService.class, loggingServiceProvider); sb.addService(LoggingControlService.class, loggingServiceProvider); //add the vm metrics sb.addService(NodeMetricsService.class, new NodeMetricsServiceProvider(new NodeMetricsProxy())); ServiceProvider sp; if (filename != null) sp = new FileInitializerServiceProvider(); else sp = new DBInitializerServiceProvider(experimentId); sb.addService(InitializerService.class, sp); InitializerService is = (InitializerService) sb.getService( this, InitializerService.class, null); ComponentDescription[] agentDescs = is.getComponentDescriptions(name, "Node.AgentManager.Agent"); sb.releaseService(this, InitializerService.class, is); // Set up MTS and QOS service provides. // // NB: The order is important for now - MTS *must* be created // first. initTransport(); initQos(); // register for external control by the AppServer // -- disabled for now -- // load the clusters // // once bulk-add ComponentMessages are implements this can // be done with "this.receiveMessage(compMsg)" add(agentDescs); //mgmtLP = new MgmtLP(this); // MTMTMT turn off till RMI namespace works // start up the NodeTrust component String ntc = new String(getIdentifier()+"NodeTrust"); ComponentDescription ntcdesc = new ComponentDescription( ntc, "Node.NodeTrust", "org.cougaar.core.society.NodeTrustComponent", null, //codebase null, //parameters null, //certificate null, //lease null); //policy super.add(ntcdesc); } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/133aa79fbb8b5ed775a148a756f7798e4f2e804f/Node.java/clean/core/src/org/cougaar/core/society/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
907,
1435,
565,
1216,
30592,
16,
26890,
16,
1860,
16,
6647,
6483,
16,
4378,
3926,
15133,
225,
288,
565,
368,
336,
326,
756,
508,
565,
514,
508,
273,
2332,
18,
588,
1396... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
907,
1435,
565,
1216,
30592,
16,
26890,
16,
1860,
16,
6647,
6483,
16,
4378,
3926,
15133,
225,
288,
565,
368,
336,
326,
756,
508,
565,
514,
508,
273,
2332,
18,
588,
1396... |
_printer.printText( '<' ); _printer.printText( rawName ); _printer.indent(); | _printer.printText( '<' ); _printer.printText( rawName ); _printer.indent(); | public void startElement( String namespaceURI, String localName, String rawName, Attributes attrs ) throws SAXException { int i; boolean preserveSpace; ElementState state; String name; String value; boolean addNSAttr = false; try { if ( _printer == null ) throw new IllegalStateException( "SER002 No writer supplied for serializer" ); state = getElementState(); if ( isDocumentState() ) { // If this is the root element handle it differently. // If the first root element in the document, serialize // the document's DOCTYPE. Space preserving defaults // to that of the output format. if ( ! _started ) startDocument( ( localName == null || localName.length() == 0 ) ? rawName : localName ); } else { // For any other element, if first in parent, then // close parent's opening tag and use the parnet's // space preserving. if ( state.empty ) _printer.printText( '>' ); // Must leave CData section first if ( state.inCData ) { _printer.printText( "]]>" ); state.inCData = false; } // Indent this element on a new line if the first // content of the parent element or immediately // following an element or a comment if ( _indenting && ! state.preserveSpace && ( state.empty || state.afterElement || state.afterComment) ) _printer.breakLine(); } preserveSpace = state.preserveSpace; //We remove the namespaces from the attributes list so that they will //be in _prefixes attrs = extractNamespaces(attrs); // Do not change the current element state yet. // This only happens in endElement(). if ( rawName == null || rawName.length() == 0 ) { if ( localName == null ) throw new SAXException( "No rawName and localName is null" ); if ( namespaceURI != null && ! namespaceURI.equals( "" ) ) { String prefix; prefix = getPrefix( namespaceURI ); if ( prefix != null && prefix.length() > 0 ) rawName = prefix + ":" + localName; else rawName = localName; } else rawName = localName; addNSAttr = true; } _printer.printText( '<' ); _printer.printText( rawName ); _printer.indent(); // For each attribute print it's name and value as one part, // separated with a space so the element can be broken on // multiple lines. if ( attrs != null ) { for ( i = 0 ; i < attrs.getLength() ; ++i ) { _printer.printSpace(); name = attrs.getQName( i ); if ( name != null && name.length() == 0 ) { String prefix; String attrURI; name = attrs.getLocalName( i ); attrURI = attrs.getURI( i ); if ( ( attrURI != null && attrURI.length() != 0 ) && ( namespaceURI == null || namespaceURI.length() == 0 || ! attrURI.equals( namespaceURI ) ) ) { prefix = getPrefix( attrURI ); if ( prefix != null && prefix.length() > 0 ) name = prefix + ":" + name; } } value = attrs.getValue( i ); if ( value == null ) value = ""; _printer.printText( name ); _printer.printText( "=\"" ); printEscaped( value ); _printer.printText( '"' ); // If the attribute xml:space exists, determine whether // to preserve spaces in this and child nodes based on // its value. if ( name.equals( "xml:space" ) ) { if ( value.equals( "preserve" ) ) preserveSpace = true; else preserveSpace = _format.getPreserveSpace(); } } } if ( _prefixes != null ) { Enumeration enum; enum = _prefixes.keys(); while ( enum.hasMoreElements() ) { _printer.printSpace(); value = (String) enum.nextElement(); name = (String) _prefixes.get( value ); if ( name.length() == 0 ) { _printer.printText( "xmlns=\"" ); printEscaped( value ); _printer.printText( '"' ); } else { _printer.printText( "xmlns:" ); _printer.printText( name ); _printer.printText( "=\"" ); printEscaped( value ); _printer.printText( '"' ); } } } // Now it's time to enter a new element state // with the tag name and space preserving. // We still do not change the curent element state. state = enterElementState( namespaceURI, localName, rawName, preserveSpace ); name = ( localName == null || localName.length() == 0 ) ? rawName : namespaceURI + "^" + localName; state.doCData = _format.isCDataElement( name ); state.unescaped = _format.isNonEscapingElement( name ); } catch ( IOException except ) { | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/75df449ca03dcc93450a7a436a211467b704d347/XMLSerializer.java/clean/src/org/apache/xml/serialize/XMLSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
514,
19421,
16,
514,
11927,
16,
17311,
514,
1831,
461,
16,
9055,
3422,
262,
3639,
1216,
14366,
565,
288,
3639,
509,
1850,
277,
31,
3639,
1250,
1377,
9420,
3819,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
514,
19421,
16,
514,
11927,
16,
17311,
514,
1831,
461,
16,
9055,
3422,
262,
3639,
1216,
14366,
565,
288,
3639,
509,
1850,
277,
31,
3639,
1250,
1377,
9420,
3819,
31,
... |
if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; | if (name != null) { if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; } | public int registerLocal(String name) { if (localNames == null) { localNames = new ArrayList(); localNames.add("_"); localNames.add("~"); if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; } } localNames.add(name); return localNames.size() - 1; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/580f3017bb64fb7c2bf269b73a8f918801c19963/LocalNamesElement.java/buggy/src/org/jruby/parser/LocalNamesElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1744,
2042,
12,
780,
508,
13,
288,
3639,
309,
261,
3729,
1557,
422,
446,
13,
288,
5411,
1191,
1557,
273,
394,
2407,
5621,
5411,
1191,
1557,
18,
1289,
2932,
67,
8863,
5411,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1744,
2042,
12,
780,
508,
13,
288,
3639,
309,
261,
3729,
1557,
422,
446,
13,
288,
5411,
1191,
1557,
273,
394,
2407,
5621,
5411,
1191,
1557,
18,
1289,
2932,
67,
8863,
5411,
11... |
public void setApplicationClassLoader(ClassLoader loader) | public final void setApplicationClassLoader(ClassLoader loader) | public void setApplicationClassLoader(ClassLoader loader) { if (loader == null) { // restore default behaviour applicationClassLoader = null; return; } if (!testIfCanUseLoader(loader, this.getClass())) { throw new IllegalArgumentException( "Loader can not resolve Rhino classes"); } applicationClassLoader = loader; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/5586a284813f024a7d52061d1ea71ae99876066e/Context.java/clean/js/rhino/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
444,
3208,
7805,
12,
7805,
4088,
13,
565,
288,
3639,
309,
261,
6714,
422,
446,
13,
288,
5411,
368,
5217,
805,
14273,
5411,
2521,
7805,
273,
446,
31,
5411,
327,
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,
1071,
727,
918,
444,
3208,
7805,
12,
7805,
4088,
13,
565,
288,
3639,
309,
261,
6714,
422,
446,
13,
288,
5411,
368,
5217,
805,
14273,
5411,
2521,
7805,
273,
446,
31,
5411,
327,
31,
3639,... |
"ConstraintViolationExcpetion if" ); | "ConstraintViolationExcpetion if the type parameter and the " + "type of the property do not match." ); | public void testValueConstraintVioloationExceptionBecauseOfInvalidTypeParameter() throws NotExecutableException, RepositoryException { // locate a property definition of type string PropertyDefinition propDef = NodeTypeUtil.locatePropertyDef(superuser, PropertyType.STRING, false, false, false, false); if (propDef == null) { throw new NotExecutableException("No testable property has been found."); } // create a node of type propDef.getDeclaringNodeType() String nodeType = propDef.getDeclaringNodeType().getName(); Node testNode = testRootNode.addNode(nodeName1, nodeType); String testPropName = propDef.getName(); try { testNode.setProperty(testPropName, stringValue, PropertyType.DATE); testRootNode.save(); fail("Node.setProperty(String, Value, int) must throw a " + "ConstraintViolationExcpetion if" ); } catch (ConstraintViolationException e) { // success } } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/90ec655548dec7c3c4de711cf2aacda9e203948f/SetPropertyAssumeTypeTest.java/buggy/src/test/org/apache/jackrabbit/test/api/SetPropertyAssumeTypeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
620,
5806,
28658,
83,
29304,
38,
11884,
951,
1941,
16920,
1435,
3639,
1216,
2288,
17709,
503,
16,
13367,
288,
3639,
368,
10627,
279,
1272,
2379,
434,
618,
533,
3639,
4276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
620,
5806,
28658,
83,
29304,
38,
11884,
951,
1941,
16920,
1435,
3639,
1216,
2288,
17709,
503,
16,
13367,
288,
3639,
368,
10627,
279,
1272,
2379,
434,
618,
533,
3639,
4276,
... |
String path = file.getPath().toOSString(); | String path = rfile != null ? rfile.getLocation().toOSString() : file.getPath().toOSString(); | public IASTTranslationUnit getASTTranslationUnit(ITranslationUnit file, int style) { IResource resource = file.getResource(); ICProject project = file.getCProject(); IProject rproject = project.getProject(); IScannerInfo scanInfo = null; IScannerInfoProvider provider = CCorePlugin.getDefault().getScannerInfoProvider(rproject); if (provider != null){ IResource infoResource = resource != null ? resource : rproject; IScannerInfo buildScanInfo = provider.getScannerInformation(infoResource); if (buildScanInfo != null) scanInfo = buildScanInfo; else if ((style & ILanguage.AST_SKIP_IF_NO_BUILD_INFO) != 0) return null; else scanInfo = new ScannerInfo(); } PDOM pdom = (PDOM)CCorePlugin.getPDOMManager().getPDOM(project).getAdapter(PDOM.class); ICodeReaderFactory fileCreator; if ((style & ILanguage.AST_SKIP_INDEXED_HEADERS) != 0) fileCreator = new PDOMCodeReaderFactory(pdom); else fileCreator = SavedCodeReaderFactory.getInstance(); CodeReader reader; if (file instanceof IWorkingCopy) { // get the working copy contents IFile rfile = (IFile)file.getResource(); reader = new CodeReader(rfile.getLocation().toOSString(), file.getContents()); } else { String path = file.getPath().toOSString(); reader = fileCreator.createCodeReaderForTranslationUnit(path); if (reader == null) return null; } IScannerExtensionConfiguration scannerExtensionConfiguration = scannerExtensionConfiguration = C_GNU_SCANNER_EXTENSION; IScanner scanner = new DOMScanner(reader, scanInfo, ParserMode.COMPLETE_PARSE, ParserLanguage.C, ParserFactory.createDefaultLogService(), scannerExtensionConfiguration, fileCreator ); //assume GCC ISourceCodeParser parser = new GNUCSourceParser( scanner, ParserMode.COMPLETE_PARSE, ParserUtil.getParserLogService(), new GCCParserExtensionConfiguration() ); // Parse IASTTranslationUnit ast = parser.parse(); if ((style & AST_USE_INDEX) != 0) ast.setIndex(pdom); return ast; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e9eb7ef7e61bb6bbea17ee25aa648a353da6edd7/GCCLanguage.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/gnu/c/GCCLanguage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
6717,
2802,
4506,
882,
6717,
2802,
12,
45,
6717,
2802,
585,
16,
509,
2154,
13,
288,
202,
202,
45,
1420,
1058,
273,
585,
18,
588,
1420,
5621,
202,
202,
2871,
4109,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9053,
6717,
2802,
4506,
882,
6717,
2802,
12,
45,
6717,
2802,
585,
16,
509,
2154,
13,
288,
202,
202,
45,
1420,
1058,
273,
585,
18,
588,
1420,
5621,
202,
202,
2871,
4109,
... |
false, false)); | false, false, false)); | public final boolean setHandler(final IHandler handler) { if (Util.equals(handler, this.handler)) { return false; } // Swap the state around. final String[] stateIds = getStateIds(); if (stateIds != null) { for (int i = 0; i < stateIds.length; i++) { final String stateId = stateIds[i]; if (this.handler instanceof IObjectWithState) { ((IObjectWithState) this.handler).removeState(stateId); } if (handler instanceof IObjectWithState) { final IState stateToAdd = getState(stateId); ((IObjectWithState) handler).addState(stateId, stateToAdd); } } } // Update the handler, and flush the string representation. this.handler = handler; string = null; // Debugging output if ((DEBUG_HANDLERS) && ((DEBUG_HANDLERS_COMMAND_ID == null) || (DEBUG_HANDLERS_COMMAND_ID .equals(id)))) { final StringBuffer buffer = new StringBuffer("Command('"); //$NON-NLS-1$ buffer.append(id); buffer.append("') has changed to "); //$NON-NLS-1$ if (handler == null) { buffer.append("no handler"); //$NON-NLS-1$ } else { buffer.append('\''); buffer.append(handler); buffer.append("' as its handler"); //$NON-NLS-1$ } Tracing.printTrace("HANDLERS", buffer.toString()); //$NON-NLS-1$ } // Send notification fireCommandChanged(new CommandEvent(this, false, false, false, true, false, false)); return true; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5c1b204b8e3e616a79abfbcbbfe746b9003ba0a1/Command.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/Command.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
444,
1503,
12,
6385,
467,
1503,
1838,
13,
288,
202,
202,
430,
261,
1304,
18,
14963,
12,
4176,
16,
333,
18,
4176,
3719,
288,
1082,
202,
2463,
629,
31,
202,
202,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
444,
1503,
12,
6385,
467,
1503,
1838,
13,
288,
202,
202,
430,
261,
1304,
18,
14963,
12,
4176,
16,
333,
18,
4176,
3719,
288,
1082,
202,
2463,
629,
31,
202,
202,
97... |
name = getString(theData.itsStringTable, iCode, pc + 1); | name = strings[getShort(iCode, pc + 1)]; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK, // sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (maxTryDepth != 0) { // catchStack[2 * i]: starting pc of catch block // catchStack[2 * i + 1]: starting pc of finally block catchStack = new int[maxTryDepth * 2]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { cx.interpreterSecurityDomain = null; if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = catchStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = catchStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7f850f6162d49fce5f2a418eb4b32ba1cf9d58bf/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... |
public CmsFile createFile(A_CmsUser user, A_CmsProject project, | public CmsFile createFile(A_CmsUser user, A_CmsProject project, A_CmsProject onlineProject, | public CmsFile createFile(A_CmsUser user, A_CmsProject project, String filename, int flags, byte[] contents, A_CmsResourceType type) throws CmsException { return m_accessFile.createFile(user,project,filename,flags,contents,type); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/95a9c02f06acd3100278d024929b4b0d15ba4341/CmsRbFile.java/buggy/src/com/opencms/file/CmsRbFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
1071,
28118,
21266,
12,
37,
67,
4747,
1299,
729,
16,
432,
67,
4747,
4109,
1984,
16,
432,
67,
4747,
4109,
12365,
4109,
16,
1171,
9079,
514,
1544,
16,
509,
2943,
16,
6862,
9506,
282,
116... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
28118,
21266,
12,
37,
67,
4747,
1299,
729,
16,
432,
67,
4747,
4109,
1984,
16,
432,
67,
4747,
4109,
12365,
4109,
16,
1171,
9079,
514,
1544,
16,
509,
2943,
16,
6862,
9506,
282,
116... |
final MemberCalc memberCalc = compiler.compileMember(call.getArg(0)); return new AbstractStringCalc(call, new Calc[] {memberCalc}) { | final LevelCalc levelCalc = compiler.compileLevel(call.getArg(0)); return new AbstractStringCalc(call, new Calc[] {levelCalc}) { | public Calc compileCall(FunCall call, ExpCompiler compiler) { final MemberCalc memberCalc = compiler.compileMember(call.getArg(0)); return new AbstractStringCalc(call, new Calc[] {memberCalc}) { public String evaluateString(Evaluator evaluator) { final Member member = memberCalc.evaluateMember(evaluator); return member.getUniqueName(); } }; } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/5aca340e1cdbb6179077d96383341db48f0997be/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
8596,
25779,
3140,
25779,
273,
13491,
5274,
18,
11100,
4419,
12,
1991,
18,
588,
4117,
12,
20,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
8596,
25779,
3140,
25779,
273,
13491,
5274,
18,
11100,
4419,
12,
1991,
18,
588,
4117,
12,
20,
100... |
"Likes to be left alone?", | "Likes to be left alone?", | private boolean askForExclusive() { MessageDialog dialog = new MessageDialog( window.getShell(), "Likes to be left alone?", null, "Press yes if the jobs should be run one at a time, and no otherwise", MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 1 // no is the default ); return dialog.open() == 0; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c96c4f274dd5c81e1339f85c32a8a6669c73643f/CreateJobsAction.java/clean/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/actions/CreateJobsAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
6827,
1290,
17075,
1435,
288,
202,
202,
1079,
6353,
6176,
273,
1082,
202,
2704,
2350,
6353,
12,
9506,
202,
5668,
18,
588,
13220,
9334,
9506,
202,
6,
48,
25235,
358,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
6827,
1290,
17075,
1435,
288,
202,
202,
1079,
6353,
6176,
273,
1082,
202,
2704,
2350,
6353,
12,
9506,
202,
5668,
18,
588,
13220,
9334,
9506,
202,
6,
48,
25235,
358,
506,
... |
finally{ try{ if (stmt != null) stmt.close (); } catch (SQLException ex){ Logger.log(Logger.ERROR, ex); } rdbmService.releaseConnection(con); } | rdbmService.releaseConnection(con); | public void addChannel(int id, String title, Document doc, String catID[]) throws Exception { Statement stmt = null; RdbmServices rdbmService = new RdbmServices (); Connection con = rdbmService.getConnection (); try { stmt = con.createStatement (); con.setAutoCommit(false); for(int i=0; i < catID.length; i++) { String sInsert = "INSERT INTO UP_CHAN_CLASS (CLASS_ID, CHAN_ID) "; sInsert += "VALUES (" + catID[i] + "," + id + ")"; Logger.log (Logger.DEBUG, "DBImpl::addChannel(): " + sInsert); stmt.executeUpdate (sInsert); } con.commit(); } catch (Exception e) { con.rollback(); throw e; } finally{ try{ if (stmt != null) stmt.close (); } catch (SQLException ex){ Logger.log(Logger.ERROR, ex); } rdbmService.releaseConnection(con); } } | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/da068f3fc3c2a9d337780f6c72e612d14035790e/DBImpl.java/clean/source/org/jasig/portal/DBImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2909,
12,
474,
612,
16,
514,
2077,
16,
4319,
997,
16,
514,
6573,
734,
63,
5717,
1216,
1185,
565,
288,
1377,
8056,
3480,
273,
446,
31,
1377,
534,
1966,
81,
5676,
436,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
2909,
12,
474,
612,
16,
514,
2077,
16,
4319,
997,
16,
514,
6573,
734,
63,
5717,
1216,
1185,
565,
288,
1377,
8056,
3480,
273,
446,
31,
1377,
534,
1966,
81,
5676,
436,
1... |
private synchronized void fail(InserterException e) { if(finished) return; finished = true; | private void fail(InserterException e) { synchronized(this) { if(finished) return; finished = true; } | private synchronized void fail(InserterException e) { if(finished) return; finished = true; cb.onFailure(e, this); } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/f1e1ccfc4cacd0065808ad5458fabedc486f2ca2/SingleBlockInserter.java/buggy/src/freenet/client/async/SingleBlockInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
2321,
12,
382,
550,
387,
503,
425,
13,
288,
202,
202,
430,
12,
13527,
13,
327,
31,
202,
202,
13527,
273,
638,
31,
202,
202,
7358,
18,
265,
5247,
12,
73,
16,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
3852,
918,
2321,
12,
382,
550,
387,
503,
425,
13,
288,
202,
202,
430,
12,
13527,
13,
327,
31,
202,
202,
13527,
273,
638,
31,
202,
202,
7358,
18,
265,
5247,
12,
73,
16,
33... |
return items.VoidItem(); | Item retItem = items.SelfItem(tc.getType(currentClass)); return retItem; | Item gen2(Tree tree, MSILType toType) { Symbol sym = tree.hasSymbol() ? tree.symbol() : null; switch (tree) { case Empty: return items.VoidItem();; case Block(Tree[] stats): return gen(stats); case ValDef(_, Name name, Tree tpe, Tree rhs): LocalBuilder local = code.DeclareLocal(tc.getType(sym)); local.SetLocalSymInfo(name.toString()); locals.put(sym, local); if (rhs == Tree.Empty) return items.VoidItem(); MSILType type = type2MSILType(tpe.type); load(coerce(gen(rhs, type), type)); return check(store(items.LocalItem(type, local))); case Ident(Name name): //log("Ident: " + Debug.show(tree)); if (sym == defs.NULL) //return items.LiteralItem(MSILType.NULL_REF, null); return items.LiteralItem(MSILType.OBJECT, null); MSILType type = type2MSILType(sym.type()); if ( sym.isModule() ) // ??? return load(items.StaticItem (type2MSILType(tree.type), tc.getModuleField(sym))); else { Integer slot = (Integer) params.get(sym); if (slot != null) { return items.ArgItem(type, slot.intValue()); } else { LocalBuilder local = (LocalBuilder) locals.get(sym); if (local != null) return items.LocalItem(type, local); } return items.SelectItem(type, items.SelfItem(tc.getType(currentClass)), tc.getField(sym)); } case Select(Tree qualifier, Name selector): if (sym.isModule()) { //log("gen: Select from a module: " + sym); if (sym.isJava()) logErr("gen.Select: Cannot treat Java class '" + sym.fullNameString() + "' as value:\n\t" + dumpSym(sym)); else { // scala module Type module = tc.getType(sym); return items.StaticItem(MSILType.REF(module), tc.getModuleField(sym)); } } if (!qualifier.hasSymbol()) { return items.SelectItem(type2MSILType(tree.type), gen(qualifier), tc.getField(sym)); }//??? if ((qualifier.symbol().flags & NOVAL) == NOVAL) {// log("gen.Select: owner NOVAL");// return items.StaticItem(type2MSILType(tree.type), tc.getField(sym));// } // check if the tree corresponds to a static Java field if (qualifier.symbol().isModule() && sym.isJava()) { //log("gen.Select: static Java field"); return items.StaticItem (type2MSILType(tree.type), tc.getField(sym)); } if ( qualifier.symbol().isModule() ) { // ????? //log("gen: Select from a non-Java module: " + qualifier.symbol() + "::" + selector); return items.SelectItem (type2MSILType(tree.type), gen(qualifier), tc.getField(sym)); } if ( sym.isValue() || sym.isVariable() ) { return items.SelectItem (type2MSILType(sym.type()), gen(qualifier, type2MSILType(qualifier.type)), tc.getField(sym)); } log("gen.Select: Dunno what to do with: " + dumpSym(sym)); break;// switch (sym.kind) {// case Kinds.VAL:// case Kinds.VAR:// //log("gen.Select: qualifier " + dumpSym(qualifier.symbol()) + ";;; " + dumpSym(sym));// //log("MSILType = " + type2MSILType(sym.type()));// return items.SelectItem(type2MSILType(sym.type()),// gen(qualifier, type2MSILType(qualifier.type)),// tc.getField(sym));// default:// log("gen.Select: Dunno what to do with: " + dumpSym(sym));// }// break; case Apply(Tree fun, Tree[] args): return check(genApply(fun, args, type2MSILType(tree.type))); case Assign(Tree lhs, Tree rhs): boolean tmpLastStatement = lastStatement; lastStatement = false; MSILType type = type2MSILType(lhs.type); Item var = gen(lhs, type); load(gen(rhs, type)); lastStatement = tmpLastStatement; return check(store(var)); case Typed(Literal(Object value), Tree tpe): log("Typed.Literal: " + Debug.show(tree)); return items.LiteralItem(type2MSILType(tpe.type), value); case Typed(Tree expr, Tree tpe): //log("gen.Typed: processing node: " + Debug.show(tree)); return gen(expr, type2MSILType(tpe.type)); case New(Template(Tree[] baseClasses, Tree[] body)): assert body.length == 0 : "Template should not have a body!"; switch (baseClasses[0]) { case Apply(Tree fun, Tree[] args): //MethodBase mctor = tc.getMethod(fun.symbol()); //log("GenMSIL.New: " + dumpSym(fun.symbol())); //log("\t" + mctor); ConstructorInfo ctor = (ConstructorInfo) tc.getMethod(fun.symbol()); loadArgs(args, ctor.GetParameters()); code.Emit(OpCodes.Newobj, ctor); return items.StackItem(MSILType.REF(ctor.DeclaringType)); default: throw new ApplicationError("Dunno what to do!"); } case This(_): return items.SelfItem(tc.getType(currentClass)); case Super(Tree tpe): //logErr("Super not implemented yet"); return items.VoidItem(); case Literal(Object value): //log("Literal: " + Debug.show(tree)); //log("\ttype = " + Debug.show(tree.type)); MSILType t = type2MSILType(tree.type); //log("\tmsil type = " + t); return items.LiteralItem(t, value); case If(Tree cond, Tree thenp, Tree elsep): //log("gen.If: cond = " + Debug.show(cond)); //log(" then = " + Debug.show(thenp)); //log(" else = " + Debug.show(elsep)); Item item = genIf(cond, thenp, elsep, toType); return check(item); default: throw new ApplicationError("Dunno what to do: " + tree); } throw new ApplicationError ("Dunno what to do with tree node: " + Debug.show(tree)); } //gen() | 48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/4fdf2ee3ca88ae22997b7dc279d2143e22e80717/GenMSIL.java/clean/sources/scalac/backend/msil/GenMSIL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4342,
3157,
22,
12,
2471,
2151,
16,
490,
2320,
48,
559,
28234,
13,
288,
202,
5335,
5382,
273,
2151,
18,
5332,
5335,
1435,
692,
2151,
18,
7175,
1435,
294,
446,
31,
202,
9610,
261,
3413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4342,
3157,
22,
12,
2471,
2151,
16,
490,
2320,
48,
559,
28234,
13,
288,
202,
5335,
5382,
273,
2151,
18,
5332,
5335,
1435,
692,
2151,
18,
7175,
1435,
294,
446,
31,
202,
9610,
261,
3413,
... |
IModuleNameSpace elementResolver = module | IModuleNameScope elementResolver = module | private ElementRefValue validateStringValue( Module module, ElementDefn targetDefn, PropertyDefn propDefn, String name ) throws PropertyValueException { name = StringUtil.trimString( name ); if ( name == null ) return null; IModuleNameSpace elementResolver = module .getModuleNameSpace( targetDefn.getNameSpaceID( ) ); ElementRefValue refValue = null; // special case for theme property since it can be direcly referred. refValue = elementResolver.resolve( name, propDefn ); assert refValue != null; // Element is unresolved. if ( !refValue.isResolved( ) ) return refValue; DesignElement target = refValue.getElement( ); assert target != null; // Check type. if ( !target.getDefn( ).isKindOf( targetDefn ) ) throw new PropertyValueException( target.getName( ), PropertyValueException.DESIGN_EXCEPTION_WRONG_ELEMENT_TYPE, PropertyType.ELEMENT_REF_TYPE ); // Resolved reference. return refValue; // new ElementRefValue( target ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b5833a1e367eb18d2954f384e496137a276c1324/ElementRefPropertyType.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/ElementRefPropertyType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3010,
30556,
1954,
19733,
12,
5924,
1605,
16,
1082,
202,
1046,
3262,
82,
1018,
3262,
82,
16,
4276,
3262,
82,
2270,
3262,
82,
16,
514,
508,
262,
1082,
202,
15069,
4276,
9738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3010,
30556,
1954,
19733,
12,
5924,
1605,
16,
1082,
202,
1046,
3262,
82,
1018,
3262,
82,
16,
4276,
3262,
82,
2270,
3262,
82,
16,
514,
508,
262,
1082,
202,
15069,
4276,
9738,
... |
public void testCollectModify() throws Exception { //read in the source final Reader reader = new InputStreamReader( getClass().getResourceAsStream( "test_Collect.drl" ) ); final DrlParser parser = new DrlParser(); final PackageDescr packageDescr = parser.parse( reader ); //pre build the package final PackageBuilder builder = new PackageBuilder(); builder.addPackage( packageDescr ); final Package pkg = builder.getPackage(); //add the package to a rulebase final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); //load up the rulebase final WorkingMemory wm = ruleBase.newWorkingMemory(); List results = new ArrayList(); wm.setGlobal( "results", results ); Cheese[] cheese = new Cheese[] { new Cheese("stilton", 10), new Cheese("stilton", 2), new Cheese("stilton", 5), new Cheese("brie", 15), new Cheese("brie", 16), new Cheese("provolone", 8) }; Person bob = new Person("Bob", "stilton"); FactHandle[] cheeseHandles = new FactHandle[cheese.length]; for( int i = 0; i < cheese.length; i++ ) { cheeseHandles[i] = wm.assertObject( cheese[i] ); } FactHandle bobHandle = wm.assertObject( bob ); // ---------------- 1st scenario int fireCount = 0; wm.fireAllRules(); Assert.assertEquals( ++fireCount, results.size() ); Assert.assertEquals( 3, ((Collection)results.get(fireCount-1)).size()); Assert.assertEquals( ArrayList.class.getName(), results.get(fireCount-1).getClass().getName()); // ---------------- 2nd scenario int index = 1; cheese[index].setPrice( 9 ); wm.modifyObject( cheeseHandles[index], cheese[index] ); wm.fireAllRules(); Assert.assertEquals( ++fireCount, results.size() ); Assert.assertEquals( 3, ((Collection)results.get(fireCount-1)).size()); Assert.assertEquals( ArrayList.class.getName(), results.get(fireCount-1).getClass().getName()); // ---------------- 3rd scenario bob.setLikes( "brie" ); wm.modifyObject( bobHandle, bob ); wm.fireAllRules(); Assert.assertEquals( fireCount, results.size() ); // ---------------- 4th scenario wm.retractObject( cheeseHandles[3] ); wm.fireAllRules(); // should not have fired as per constraint Assert.assertEquals( fireCount, results.size()); } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/8bf342687afa7ece5d554db21146984eff9076c8/IntegrationCases.java/clean/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10808,
11047,
1435,
1216,
1185,
288,
3639,
368,
896,
316,
326,
1084,
3639,
727,
5393,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
315,
3813,
67,
10808,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10808,
11047,
1435,
1216,
1185,
288,
3639,
368,
896,
316,
326,
1084,
3639,
727,
5393,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
315,
3813,
67,
10808,
1... | ||
if(source == save) | if(source == selectAll) { try { selectAllFlag = true; bufferList.setSelectionInterval(0, bufferModel.getSize()); } finally { selectAllFlag = false; } } else if(source == save) | public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == save) { Object[] paths = bufferList.getSelectedValues(); for(int i = 0; i < paths.length; i++) { String path = (String)paths[i]; Buffer buffer = jEdit.getBuffer(path); if(!buffer.save(view,null,true)) return; VFSManager.waitForRequests(); jEdit._closeBuffer(view,buffer); bufferModel.removeElement(path); } updateButtons(); if(bufferModel.getSize() == 0) { ok = true; dispose(); } } else if(source == discard) { Object[] paths = bufferList.getSelectedValues(); for(int i = 0; i < paths.length; i++) { String path = (String)paths[i]; Buffer buffer = jEdit.getBuffer(path); jEdit._closeBuffer(view,buffer); bufferModel.removeElement(path); } updateButtons(); if(bufferModel.getSize() == 0) { ok = true; dispose(); } } else if(source == cancel) cancel(); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/3458bb479e4eca18d0f14f79d9dd58e1db1575de/CloseDialog.java/buggy/org/gjt/sp/jedit/gui/CloseDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1923,
13,
1082,
202,
95,
9506,
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,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1923,
13,
1082,
202,
95,
9506,
202,
... |
cat2.addTask(task6); | cat2.addTask(task6); | public void testCreationAndExternalization() { File file = new File("foo" + MylarTasksPlugin.FILE_EXTENSION); file.deleteOnExit(); TaskListManager manager = new TaskListManager(file); TaskList tlist = manager.getTaskList(); Task task1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 1"); tlist.addRootTask(task1); Task sub1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub 1"); task1.addSubTask(sub1); sub1.setParent(task1); Task task2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 2"); tlist.addRootTask(task2); TaskCategory cat1 = new TaskCategory("Category 1"); tlist.addCategory(cat1); Task task3 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 3"); cat1.addTask(task3); Task sub2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub 2"); task3.addSubTask(sub2); sub2.setParent(task3); Task task4 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 4"); cat1.addTask(task4); TaskCategory cat2 = new TaskCategory("Category 2"); tlist.addCategory(cat2); Task task5 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 5"); cat2.addTask(task5); Task task6 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 6"); cat2.addTask(task6); assertEquals(manager.getTaskList().getRoots().size(), 4); manager.saveTaskList(); assertNotNull(manager.getTaskList()); TaskList list = new TaskList(); manager.setTaskList(list); manager.readTaskList(); assertNotNull(manager.getTaskList()); assertEquals(2, manager.getTaskList().getRootTasks().size()); assertEquals(2, manager.getTaskList().getCategories().size()); check(manager); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/be1e5de715cb7f403726dd3d9db59f5a0c8c6dcc/TaskListManagerTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9906,
1876,
6841,
1588,
1435,
288,
3639,
1387,
585,
273,
394,
1387,
2932,
11351,
6,
397,
8005,
7901,
6685,
3773,
18,
3776,
67,
12796,
1769,
3639,
585,
18,
3733,
1398,
676... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9906,
1876,
6841,
1588,
1435,
288,
3639,
1387,
585,
273,
394,
1387,
2932,
11351,
6,
397,
8005,
7901,
6685,
3773,
18,
3776,
67,
12796,
1769,
3639,
585,
18,
3733,
1398,
676... |
public void pushTreeChangedEvent(NodeRef nodeRef) { pushTreeChangedEvent(new TreeChangedEvent((Node)nodeRef)); | public void pushTreeChangedEvent() { pushTreeChangedEvent(new TreeChangedEvent()); | public void pushTreeChangedEvent(NodeRef nodeRef) { pushTreeChangedEvent(new TreeChangedEvent((Node)nodeRef)); } | 49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/1d0917163679a41ce4b3462ba04d08b6bcdad306/TreeModel.java/clean/trunk/src/dr/evomodel/tree/TreeModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1817,
2471,
27553,
12,
907,
1957,
756,
1957,
13,
288,
3639,
1817,
2471,
27553,
12,
2704,
4902,
27553,
12443,
907,
13,
2159,
1957,
10019,
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,
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,
1817,
2471,
27553,
12,
907,
1957,
756,
1957,
13,
288,
3639,
1817,
2471,
27553,
12,
2704,
4902,
27553,
12443,
907,
13,
2159,
1957,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-1... |
continue; | switch (rule.getRule()) { case CompositeRule.RULE_IN: return null; case CompositeRule.RULE_ARITHMETIC: { BufferedImage blank; if (csIsLinear) blank = GraphicsUtil.makeLinearBufferedImage (r.width, r.height, true); else blank = new BufferedImage (r.width, r.height, BufferedImage.TYPE_INT_ARGB_PRE); ri = new BufferedImageCachableRed(blank, r.x, r.y); } break; case CompositeRule.RULE_OUT: { g2d.setComposite(AlphaComposite.Clear); g2d.setColor(new Color(0, 0, 0, 0)); g2d.fillRect(r.x, r.y, r.width, r.height); g2d.setComposite(comp); } first = false; continue; default: first = false; continue; } | public RenderedImage createRendering(RenderContext rc) { if (srcs.size() == 0) return null; // This is an optimized version that does two things. // 1) It only renders the portion needed for display // 2) It uses GraphicsUtil.drawImage to draw the Renderable // sources. This is useful since it often allows it // to bypass intermediate images... if (rule == CompositeRule.OVER) return createRenderingOver(rc); // System.out.println("Rendering General: " + rule); // Just copy over the rendering hints. RenderingHints rh = rc.getRenderingHints(); if (rh == null) rh = new RenderingHints(null); // update the current affine transform AffineTransform at = rc.getTransform(); Rectangle2D aoi = rc.getAreaOfInterest().getBounds2D(); if (aoi == null) aoi = getBounds2D(); else { Rectangle2D bounds2d = getBounds2D(); if (bounds2d.intersects(aoi) == false) return null; Rectangle2D.intersect(aoi, bounds2d, aoi); } // AOI bounds in device space. Ideally we would limit r to // the actual region needed based on the current mode. So for // IN we only need the intersection of all source. For OUT we // only need the region under the last source (most of the // rest are r so I don't worry about it too much). Rectangle r = at.createTransformedShape(aoi).getBounds(); BufferedImage bi; if (csIsLinear) bi = GraphicsUtil.makeLinearBufferedImage (r.width, r.height, true); else bi = new BufferedImage(r.width, r.height, BufferedImage.TYPE_INT_ARGB_PRE); WritableRaster wr = bi.getRaster(); Composite comp = new SVGComposite(rule); Graphics2D g2d = bi.createGraphics(); // Make sure we draw with what hints we have. g2d.setRenderingHints(rh); g2d.setComposite(comp); g2d.translate(-r.x, -r.y); rc = new RenderContext(at, aoi, rh); Iterator i = srcs.iterator(); boolean first = true; while (i.hasNext()) { // Get the source to work with... Filter filt = (Filter)i.next(); // Get our sources image... RenderedImage ri = filt.createRendering(rc); // No output image keep going // FIXX: Should we do something different for IN/OUT/ARITH??? if (ri == null) continue; CachableRed cr; cr = GraphicsUtil.wrap(ri); if (csIsLinear) cr = GraphicsUtil.convertToLsRGB(cr); else cr = GraphicsUtil.convertTosRGB(cr); if ((ri.getMinX() != r.x) || (ri.getMinY() != r.y) || (ri.getWidth() != r.width) || (ri.getHeight() != r.height)) { cr = new PadRed(cr, r, PadMode.ZERO_PAD, rh); } if (first) { wr = wr.createWritableTranslatedChild(r.x, r.y); cr.copyData(wr); if (cr.getColorModel().isAlphaPremultiplied() == false) { GraphicsUtil.coerceData(wr, cr.getColorModel(), true); } wr = bi.getRaster(); first = false; } else { // If I allow any of the other modes to fall into // the draw case they fail miserably. But OVER // is used alot and is significantly faster in the // draw case, and works as long as the source and dest // colorspace match (which the always will here). if (csIsLinear && (rule != CompositeRule.OVER)) { // System.out.println("In manual"); Raster ras = cr.getData(r); ras = ras.createTranslatedChild(0,0); CompositeContext compCont; compCont = comp.createContext(cr.getColorModel(), bi.getColorModel(), rh); compCont.compose(ras, wr, wr); } else { // System.out.println("In Draw"); GraphicsUtil.drawImage(g2d, cr); } } } // System.out.println("Done General: " + rule); return new BufferedImageCachableRed(bi, r.x, r.y); } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/5bdc5fea9d792abece807ea8eef98bd5e32b68fa/CompositeRable8Bit.java/buggy/sources/org/apache/batik/ext/awt/image/renderable/CompositeRable8Bit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
13,
288,
3639,
309,
261,
4816,
87,
18,
1467,
1435,
422,
374,
13,
5411,
327,
446,
31,
3639,
368,
1220,
353,
392,
15411,
1177,
716... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
13,
288,
3639,
309,
261,
4816,
87,
18,
1467,
1435,
422,
374,
13,
5411,
327,
446,
31,
3639,
368,
1220,
353,
392,
15411,
1177,
716... |
if ((jjbitVec0[i2] & l2) != 0L && kind > 9) kind = 9; | if ((jjbitVec0[i2] & l2) != 0L && kind > 10) kind = 10; | private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 11; 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 3: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 10; else if (curChar == 34) jjCheckNAddTwoStates(5, 6); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 9) kind = 9; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if (curChar == 34) jjCheckNAddTwoStates(5, 6); break; case 5: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if (curChar == 34 && kind > 20) kind = 20; break; case 8: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 53) kind = 53; jjstateSet[jjnewStateCnt++] = 8; break; case 9: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 10; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(8); break; case 1: if (kind > 9) kind = 9; break; case 5: jjAddStates(2, 3); break; case 8: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(8); break; case 10: if ((0x7fffffe07fffffeL & l) != 0L && kind > 54) kind = 54; break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((jjbitVec0[i2] & l2) != 0L && kind > 9) kind = 9; break; case 5: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(2, 3); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 11 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/b827d0bf89e728dc8324fc63c2ad3662c9d19cd3/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
23,
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,
23,
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,... |
XBoxPanel buttonsPanel; buttonsPanel = new XBoxPanel(); clearButton = new JButton(Translator.get("run_dialog.clear_history")); | public RunDialog(MainFrame mainFrame) { super(mainFrame, Translator.get("com.mucommander.ui.action.RunCommandAction.label"), mainFrame); this.mainFrame = mainFrame; Container contentPane = getContentPane(); YBoxPanel mainPanel = new YBoxPanel(); JLabel label = new JLabel(Translator.get("run_dialog.run_command_description")+":"); mainPanel.add(label); inputCombo = new ShellComboBox(this); mainPanel.add(inputCombo); mainPanel.addSpace(10); contentPane.add(mainPanel, BorderLayout.NORTH); mainPanel.add(new JLabel(Translator.get("run_dialog.command_output")+":")); outputTextArea = new JTextArea(); outputTextArea.setLineWrap(true); outputTextArea.setRows(10); outputTextArea.setEditable(false); outputTextArea.addKeyListener(this); // Set custom text, selected text, background and selection background colors Color textColor = ConfigurationManager.getVariableColor(TEXT_COLOR_VAR, DEFAULT_TEXT_COLOR); outputTextArea.setForeground(textColor); // Selected text color and text color are the same outputTextArea.setSelectedTextColor(textColor); outputTextArea.setBackground(ConfigurationManager.getVariableColor(BACKGROUND_COLOR_VAR, DEFAULT_BACKGROUND_COLOR)); outputTextArea.setSelectionColor(ConfigurationManager.getVariableColor(SELECTION_BACKGROUND_COLOR_VAR, DEFAULT_SELECTION_BACKGROUND_COLOR)); outputTextArea.setCaretColor(textColor); // Use a monospaced font in the command field and process output text area, as most terminals do. // The logical "Monospaced" font name is always available in Java. // The font size is the one of the default JTextArea, style is plain. Font monospacedFont = new Font("Monospaced", Font.PLAIN, outputTextArea.getFont().getSize()); outputTextArea.setFont(monospacedFont); JScrollPane scrollPane = new JScrollPane(outputTextArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); contentPane.add(scrollPane, BorderLayout.CENTER); // Run / Cancel buttons panel runStopButton = new JButton(Translator.get("run_dialog.run")); cancelButton = new JButton(Translator.get("cancel")); contentPane.add(DialogToolkit.createOKCancelPanel(runStopButton, cancelButton, this), BorderLayout.SOUTH); // Path field will receive initial focus setInitialFocusComponent(inputCombo); setMinimumSize(MINIMUM_DIALOG_DIMENSION); // setMaximumSize(MAXIMUM_DIALOG_DIMENSION); // Closing this dialog kills the process addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent e) { if(currentProcess!=null) { processInput.close(); currentProcess.destroy(); } } }); // Make the 'Run/stop' button the default button getRootPane().setDefaultButton(runStopButton); inputCombo.setEnabled(true); showDialog(); } | 12534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12534/b4c3480427b4bc3aacf2b9be7bbfdc355d320984/RunDialog.java/clean/source/com/mucommander/ui/RunDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
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,
225,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
... | |
if( index < chars.length ) opcode = str.substring( 0, index ); | opcode = str.substring( 0, index ); | void parse(MITuple tuple) { MIResult[] results = tuple.getMIResults(); for (int i = 0; i < results.length; i++) { String var = results[i].getVariable(); MIValue value = results[i].getMIValue(); String str = ""; if (value != null && value instanceof MIConst) { str = ((MIConst)value).getCString(); } if (var.equals("address")) { try { address = Long.decode(str.trim()).longValue(); } catch (NumberFormatException e) { } } else if (var.equals("func-name")) { function = str; } else if (var.equals("offset")) { try { offset = Long.decode(str.trim()).longValue(); } catch (NumberFormatException e) { } } else if (var.equals("inst")) { /* for the instruction, we do not want the C string but the translated string since the only thing we are doing is displaying it. */ str = ((MIConst)value).getString(); char chars[] = str.toCharArray(); int index = 0; // count the non-whitespace characters. while( (index < chars.length) && (chars[index] > '\u0020')) index++; // guard all whitespace if( index < chars.length ) opcode = str.substring( 0, index ); // skip any whitespace characters while( index < chars.length && chars[index] >= '\u0000' && chars[index] <= '\u0020') index++; // guard no argument if( index < chars.length ) args = str.substring( index ); } } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/783c8d5e5e47411f3b5a2cc2d83b7cf869fea8e3/MIAsm.java/clean/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIAsm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1109,
12,
6068,
2268,
3193,
13,
288,
202,
202,
7492,
1253,
8526,
1686,
273,
3193,
18,
588,
7492,
3447,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1686,
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,
225,
202,
6459,
1109,
12,
6068,
2268,
3193,
13,
288,
202,
202,
7492,
1253,
8526,
1686,
273,
3193,
18,
588,
7492,
3447,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1686,
18,
... |
boolean trueNs = true; | boolean trueNs = false; | private static Map<String,String> parseUserAgent(String agent) { Map<String,String> macros = new HashMap<String,String>(); // state double browserVersion = -1.0; double geckoDate = 0; double mozVersion = -1; boolean isMac = false; boolean isWindows = false; boolean isLinux = false; boolean isNav = false; boolean isIE = false; boolean isNav4 = false; boolean trueNs = true; boolean isNav6 = false; boolean isNav6up = false; boolean isNav7 = false; boolean isIE3 = false; boolean isIE4 = false; boolean isIE4up = false; boolean isIE5 = false; boolean isIE5_5 = false; boolean isIE5up = false; boolean isIE5_5up = false; boolean isIE6 = false; boolean isIE6up = false; boolean isFirefox = false; boolean isFirefox1up = false; boolean isFirefox1_5up = false; boolean isMozilla = false; boolean isMozilla1_4up = false; boolean isSafari = false; boolean isGeckoBased = false; boolean isOpera = false; // parse user agent String agt = agent.toLowerCase(); //System.err.println("USER-AGENT: "+agt); StringTokenizer agtArr = new StringTokenizer(agt, " "); int i = 0; int index = -1; boolean isSpoofer = false; boolean isWebTv = false; boolean isHotJava = false; boolean beginsWithMozilla = false; boolean isCompatible = false; if (agtArr.hasMoreTokens()) { String token = agtArr.nextToken(); Pattern pattern = Pattern.compile("\\s*mozilla"); Matcher mozilla = pattern.matcher(token); if (mozilla.find()){ index = mozilla.start(); beginsWithMozilla = true; browserVersion = parseFloat(token.substring(index + 8)); isNav = true; } do { //System.err.println("TOKEN: "+token); if (token.indexOf("compatible") != -1 ) { isCompatible = true; isNav = false; } else if ((token.indexOf("opera")) != -1){ isOpera = true; isNav = false; if (agtArr.hasMoreTokens()) { browserVersion = parseFloat(agtArr.nextToken()); } token = agtArr.hasMoreTokens() ? agtArr.nextToken() : null; continue; } else if ((token.indexOf("spoofer")) != -1){ isSpoofer = true; isNav = false; } else if ((token.indexOf("webtv")) != -1) { isWebTv = true; isNav = false; } else if ((token.indexOf("hotjava")) != -1) { isHotJava = true; isNav = false; } else if ((index = token.indexOf("msie")) != -1) { isIE = true; if (agtArr.hasMoreTokens()) { browserVersion = parseFloat(agtArr.nextToken()); } token = agtArr.hasMoreTokens() ? agtArr.nextToken() : null; continue; } else if ((index = token.indexOf("gecko/")) != -1){ isGeckoBased = true; geckoDate = Float.parseFloat(token.substring(index + 6)); } else if ((index = token.indexOf("rv:")) != -1){ mozVersion = parseFloat(token.substring(index + 3)); browserVersion = mozVersion; } else if ((index = token.indexOf("firefox/")) != -1){ isFirefox = true; browserVersion = parseFloat(token.substring(index + 8)); } else if ((index = token.indexOf("netscape6/")) != -1){ trueNs = true; browserVersion = parseFloat(token.substring(index + 10)); } else if ((index = token.indexOf("netscape/")) != -1){ trueNs = true; browserVersion = parseFloat(token.substring(index + 9)); } else if ((index = token.indexOf("safari/")) != -1){ isSafari = true; browserVersion = parseFloat(token.substring(index + 7)); } else if (token.indexOf("windows") != -1){ isWindows = true; } else if ((token.indexOf("macintosh") != -1) || (token.indexOf("mac_") != -1)){ isMac = true; } else if (token.indexOf("linux") != -1){ isLinux = true; } token = agtArr.hasMoreTokens() ? agtArr.nextToken() : null; } while (token != null); // Note: Opera and WebTV spoof Navigator. // We do strict client detection. isNav = (beginsWithMozilla && !isSpoofer && !isCompatible && !isOpera && !isWebTv && !isHotJava && !isSafari); isIE = (isIE && !isOpera); isNav4 = (isNav && (browserVersion == 4) && (!isIE)); isNav6 = (isNav && trueNs && (browserVersion >=6.0) && (browserVersion < 7.0)); isNav6up = (isNav && trueNs && (browserVersion >= 6.0)); isNav7 = (isNav && trueNs && (browserVersion == 7.0)); isIE3 = (isIE && (browserVersion < 4)); isIE4 = (isIE && (browserVersion == 4) && (browserVersion == 4.0)); isIE4up = (isIE && (browserVersion >= 4)); isIE5 = (isIE && (browserVersion == 4) && (browserVersion == 5.0)); isIE5_5 = (isIE && (browserVersion == 4) && (browserVersion == 5.5)); isIE5up = (isIE && (browserVersion >= 5.0)); isIE5_5up =(isIE && (browserVersion >= 5.5)); isIE6 = (isIE && (browserVersion == 6.0)); isIE6up = (isIE && (browserVersion >= 6.0)); isMozilla = ((isNav && mozVersion > -1.0 && isGeckoBased && (geckoDate != 0))); isMozilla1_4up = (isMozilla && (mozVersion >= 1.4)); isFirefox = ((isMozilla && isFirefox)); isFirefox1up = (isFirefox && browserVersion >= 1.0); isFirefox1_5up = (isFirefox && browserVersion >= 1.5); // operating systems define(macros, "WINDOWS", isWindows); define(macros, "MACINTOSH", isMac); define(macros, "LINUX", isLinux); // browser variants define(macros, "NAVIGATOR", isNav); define(macros, "NAVIGATOR_4", isNav4); define(macros, "NAVIGATOR_6", isNav6); define(macros, "NAVIGATOR_6_OR_HIGHER", isNav6up); define(macros, "NAVIGATOR_7", isNav7); define(macros, "NAVIGATOR_COMPATIBLE", isCompatible); define(macros, "MOZILLA", isMozilla); define(macros, "MOZILLA_1_4_OR_HIGHER", isMozilla1_4up); define(macros, "FIREFOX", isFirefox); define(macros, "FIREFOX_1_OR_HIGHER", isFirefox1up); define(macros, "FIREFOX_1_5_OR_HIGHER", isFirefox1_5up); define(macros, "GECKO", isGeckoBased); define(macros, "MSIE", isIE); define(macros, "MSIE_3", isIE3); define(macros, "MSIE_4", isIE4); define(macros, "MSIE_4_OR_HIGHER", isIE4up); define(macros, "MSIE_5", isIE5); define(macros, "MSIE_5_OR_HIGHER", isIE5up); define(macros, "MSIE_5_5", isIE5_5); define(macros, "MSIE_5_5_OR_HIGHER", isIE5_5up); define(macros, "MSIE_6", isIE6); define(macros, "MSIE_6_OR_HIGHER", isIE6up); define(macros, "SAFARI", isSafari); define(macros, "WEBTV", isWebTv); define(macros, "HOTJAVA", isHotJava); } return macros; } // parseUserAgent(String,Map<String,String>) | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/fea247a33b2a39b897009b172ac6c4ac114a6142/SkinResources.java/clean/ZimbraWebClient/src/com/zimbra/webClient/servlet/SkinResources.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1635,
32,
780,
16,
780,
34,
1109,
12276,
12,
780,
4040,
13,
288,
202,
202,
863,
32,
780,
16,
780,
34,
24302,
273,
394,
4317,
32,
780,
16,
780,
34,
5621,
202,
202,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1635,
32,
780,
16,
780,
34,
1109,
12276,
12,
780,
4040,
13,
288,
202,
202,
863,
32,
780,
16,
780,
34,
24302,
273,
394,
4317,
32,
780,
16,
780,
34,
5621,
202,
202,
75... |
java.awt.Component parent = getParent(); if (parent instanceof javax.swing.JViewport) return parent.getHeight() > getPreferredSize().getHeight(); return false; } | java.awt.Component parent = getParent(); if (parent instanceof javax.swing.JViewport) return parent.getHeight() > getPreferredSize().getHeight(); return false; } | public boolean getScrollableTracksViewportHeight() { java.awt.Component parent = getParent(); if (parent instanceof javax.swing.JViewport) return parent.getHeight() > getPreferredSize().getHeight(); return false; } | 9790 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9790/7fa76698bc4a84a814a4bafa9f059c4187c75e05/FrameEditor.java/clean/mylang/src/mylang/gui/FrameEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1250,
11971,
30453,
22138,
22743,
2686,
1435,
288,
7734,
2252,
18,
2219,
88,
18,
1841,
982,
273,
5089,
5621,
7734,
309,
261,
2938,
1276,
6863,
18,
5328,
310,
18,
46,
22743,
13,
773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
11971,
30453,
22138,
22743,
2686,
1435,
288,
7734,
2252,
18,
2219,
88,
18,
1841,
982,
273,
5089,
5621,
7734,
309,
261,
2938,
1276,
6863,
18,
5328,
310,
18,
46,
22743,
13,
773... |
gd = new GridData(); gd.horizontalAlignment = GridData.END; titleImage.setLayoutData(gd); | FormData imageData = new FormData(); imageData.right = new FormAttachment(100); imageData.top = new FormAttachment(0); titleImage.setLayoutData(imageData); FormData messageData = new FormData(); messageData.top = new FormAttachment(0); messageData.bottom = new FormAttachment(titleImage,0,SWT.BOTTOM); messageData.right = new FormAttachment(titleImage,0); messageData.left = new FormAttachment(0); messageArea.setLayoutData(messageData); | private Composite createTitleArea(Composite parent) { // Create the title area which will contain // a title, message, and image. titleArea = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 2; layout.marginWidth = 2; layout.verticalSpacing = 0; layout.horizontalSpacing = 0; layout.numColumns = 2; // Get the background color for the title area Display display = parent.getDisplay(); Color background = JFaceColors.getBannerBackground(display); final Color foreground = JFaceColors.getBannerForeground(display); GridData layoutData = new GridData(GridData.FILL_BOTH); titleArea.setLayout(layout); titleArea.setLayoutData(layoutData); titleArea.setBackground(background); final Color borderColor = new Color(titleArea.getDisplay(), ViewForm.borderOutsideRGB); titleArea.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { e.gc.setForeground(borderColor); Rectangle bounds = titleArea.getClientArea(); bounds.height = bounds.height - 2; bounds.width = bounds.width - 1; e.gc.drawRectangle(bounds); } }); // Add a dispose listener titleArea.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (titleAreaColor != null) titleAreaColor.dispose(); if (errorMsgAreaBackground != null) errorMsgAreaBackground.dispose(); borderColor.dispose(); } }); // Message label messageLabel = new CLabel(titleArea, SWT.LEFT); JFaceColors.setColors(messageLabel, foreground, background); messageLabel.setText(" "); //$NON-NLS-1$ messageLabel.setFont(JFaceResources.getBannerFont()); final IPropertyChangeListener fontListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (JFaceResources.BANNER_FONT.equals(event.getProperty())) updateMessage(); if (JFaceResources.DIALOG_FONT.equals(event.getProperty())) { updateMessage(); Font dialogFont = JFaceResources.getDialogFont(); updateTreeFont(dialogFont); Control[] children = ((Composite) buttonBar).getChildren(); for (int i = 0; i < children.length; i++) children[i].setFont(dialogFont); } } }; messageLabel.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { JFaceResources.getFontRegistry().removeListener(fontListener); } }); JFaceResources.getFontRegistry().addListener(fontListener); GridData gd = new GridData(GridData.FILL_BOTH); messageLabel.setLayoutData(gd); // Title image titleImage = new Label(titleArea, SWT.LEFT); titleImage.setBackground(background); titleImage.setImage(JFaceResources.getImage(PREF_DLG_TITLE_IMG)); gd = new GridData(); gd.horizontalAlignment = GridData.END; titleImage.setLayoutData(gd); return titleArea; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2593c8913aa9b11026712adfe8471703134dfe05/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
752,
4247,
5484,
12,
9400,
982,
13,
288,
202,
202,
759,
1788,
326,
2077,
5091,
1492,
903,
912,
202,
202,
759,
279,
2077,
16,
883,
16,
471,
1316,
18,
202,
202,
2649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14728,
752,
4247,
5484,
12,
9400,
982,
13,
288,
202,
202,
759,
1788,
326,
2077,
5091,
1492,
903,
912,
202,
202,
759,
279,
2077,
16,
883,
16,
471,
1316,
18,
202,
202,
2649,
... |
final boolean b0 = getBooleanArg(evaluator, args, 0); final boolean b1 = getBooleanArg(evaluator, args, 1); return toBoolean(b0 != b1); | return toBoolean( getBooleanArg(evaluator, args, 0) || getBooleanArg(evaluator, args, 1)); | public Object evaluate(Evaluator evaluator, Exp[] args) { final boolean b0 = getBooleanArg(evaluator, args, 0); final boolean b1 = getBooleanArg(evaluator, args, 1); return toBoolean(b0 != b1); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b51b7f4f6bfd44a884afd7801c1f0f8b9351674c/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
6385,
1250,
324,
20,
273,
12835,
4117,
12,
14168,
639,
16,
833,
16,
374,
1769,
9506,
202,
6385,
1250,
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,
1875,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
6385,
1250,
324,
20,
273,
12835,
4117,
12,
14168,
639,
16,
833,
16,
374,
1769,
9506,
202,
6385,
1250,
3... |
throw new RuntimeException(); | throw new RangeError(getRuby(), this.toString() + " out of char range"); | public RubyString chr() { if (getLongValue() < 0 || getLongValue() > 0xff) { // throw new RubyRangeException(); // HACK +++ throw new RuntimeException(); // HACK --- } return RubyString.newString(getRuby(), new String(new char[] {(char) getLongValue()})); } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/c5505ec7f148e23ccef642f45d2ff27f7d7483c6/RubyInteger.java/buggy/org/jruby/RubyInteger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
4513,
1435,
288,
3639,
309,
261,
588,
3708,
620,
1435,
411,
374,
747,
11105,
620,
1435,
405,
374,
5297,
13,
288,
5411,
368,
604,
394,
19817,
2655,
503,
5621,
5411,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
4513,
1435,
288,
3639,
309,
261,
588,
3708,
620,
1435,
411,
374,
747,
11105,
620,
1435,
405,
374,
5297,
13,
288,
5411,
368,
604,
394,
19817,
2655,
503,
5621,
5411,
368,
... |
if(adapter.getResourceAdapterInstance() != null) { parents.add(adapter.getResourceAdapterInstance()); adapter.getResourceAdapterInstance().clearNullSettings(); } | private void clearNulls(List parents) { ResourceAdapter[] adapters = connector.getResourceAdapter(); for (int i = 0; i < adapters.length; i++) { ResourceAdapter adapter = adapters[i]; // todo: check resource adapter instances ConnectionDefinition defs[] = adapter.getConnectionDefinition(); for (int j = 0; j < defs.length; j++) { ConnectionDefinition def = defs[j]; ConnectionDefinitionInstance instances[] = def.getConnectionInstances(); for (int k = 0; k < instances.length; k++) { ConnectionDefinitionInstance instance = instances[k]; parents.add(instance); instance.clearNullSettings(); } } } //todo: check admin object instances } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/ca4cf8742cdb8304c284d0b10afdbd8c69ae747b/Connector15DCBRoot.java/clean/modules/connector-builder/src/java/org/apache/geronimo/connector/deployment/jsr88/Connector15DCBRoot.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
... | |
Sorting labelValue = ((SortingStyle)object).getSorting(); String label = labelValue == null ? null : labelValue.toString(); return label == null || label.length() == 0 ? getString("_UI_SortingStyle_type") : getString("_UI_SortingStyle_type") + " " + label; } | Sorting labelValue = ((SortingStyle)object).getSorting(); String label = labelValue == null ? null : labelValue.toString(); return label == null || label.length() == 0 ? getString("_UI_SortingStyle_type") : getString("_UI_SortingStyle_type") + " " + label; } | public String getText(Object object) { Sorting labelValue = ((SortingStyle)object).getSorting(); String label = labelValue == null ? null : labelValue.toString(); return label == null || label.length() == 0 ? getString("_UI_SortingStyle_type") : //$NON-NLS-1$ getString("_UI_SortingStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/SortingStyleItemProvider.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation.edit/src/org/eclipse/gmf/runtime/notation/provider/SortingStyleItemProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
12,
921,
733,
13,
288,
202,
202,
18236,
1433,
620,
273,
14015,
18236,
2885,
13,
1612,
2934,
588,
18236,
5621,
202,
202,
780,
1433,
273,
1433,
620,
422,
446,
692,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
12,
921,
733,
13,
288,
202,
202,
18236,
1433,
620,
273,
14015,
18236,
2885,
13,
1612,
2934,
588,
18236,
5621,
202,
202,
780,
1433,
273,
1433,
620,
422,
446,
692,
44... |
{ following.push(FOLLOW_literal_constraint_in_constraint1870); | { following.push(FOLLOW_literal_constraint_in_constraint1874); | public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token op=null; Token bvc=null; String lc = null; String rvc = null; PatternDescr d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:678:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:678:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol { following.push(FOLLOW_opt_eol_in_constraint1681); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:679:17: (fb= ID opt_eol ':' opt_eol )? int alt49=2; alt49 = dfa49.predict(input); switch (alt49) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:679:19: fb= ID opt_eol ':' opt_eol { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1689); following.push(FOLLOW_opt_eol_in_constraint1691); opt_eol(); following.pop(); match(input,30,FOLLOW_30_in_constraint1693); following.push(FOLLOW_opt_eol_in_constraint1695); opt_eol(); following.pop(); } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1705); if ( fb != null ) { //System.err.println( "fb: " + fb.getText() ); //System.err.println( " f: " + f.getText() ); d = new FieldBindingDescr( f.getText(), fb.getText() ); //System.err.println( "fbd: " + d ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } following.push(FOLLOW_opt_eol_in_constraint1715); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:692:33: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? int alt51=2; int LA51_0 = input.LA(1); if ( (LA51_0>=40 && LA51_0<=47) ) { alt51=1; } else if ( LA51_0==EOL||LA51_0==15||(LA51_0>=22 && LA51_0<=23) ) { alt51=2; } else { NoViableAltException nvae = new NoViableAltException("692:33: (op= (\'==\'|\'>\'|\'>=\'|\'<\'|\'<=\'|\'!=\'|\'contains\'|\'matches\') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )?", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:692:41: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) { op=(Token)input.LT(1); if ( (input.LA(1)>=40 && input.LA(1)<=47) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint1723); throw mse; } following.push(FOLLOW_opt_eol_in_constraint1795); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) int alt50=4; switch ( input.LA(1) ) { case ID: int LA50_1 = input.LA(2); if ( LA50_1==49 ) { alt50=2; } else if ( LA50_1==EOL||LA50_1==15||(LA50_1>=22 && LA50_1<=23) ) { alt50=1; } else { NoViableAltException nvae = new NoViableAltException("702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 50, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case 48: alt50=3; break; case 21: alt50=4; break; default: NoViableAltException nvae = new NoViableAltException("702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:702:49: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1813); d = new BoundVariableDescr( f.getText(), op.getText(), bvc.getText() ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:709:49: lc= enum_constraint { following.push(FOLLOW_enum_constraint_in_constraint1838); lc=enum_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc, true ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:716:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint1870); lc=literal_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:722:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint1890); rvc=retval_constraint(); following.pop(); d = new ReturnValueDescr( f.getText(), op.getText(), rvc ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; } } break; } following.push(FOLLOW_opt_eol_in_constraint1923); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/7f81b86a0f548bd02b09afc74b46454cdf158154/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
1061,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
1061,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,... |
if(model != null) { collectElements(model,profile,false); | if (model != null) { collectElements(model, profile, false); | private void makeSelection(MModel model, MClassifier selClass) { getSet().clear(); Profile profile = getContainer().getProfile(); if(allowVoid()) { getSet().add(new UMLComboBoxEntry(null,profile,false)); } if(model != null) { collectElements(model,profile,false); } if(addElementsFromProfileModel()) { MModel profileModel = profile.getProfileModel(); if(profileModel != null) { collectElements(profileModel,profile,true); } } // // scan for name collisions // Iterator iter = getSet().iterator(); String before = null; UMLComboBoxEntry currentEntry = null; String currentStr = null; UMLComboBoxEntry afterEntry = null; String after = null; while(iter.hasNext()) { before = currentStr; currentEntry = afterEntry; currentStr = after; afterEntry = (UMLComboBoxEntry) iter.next(); after = afterEntry.getShortName(); if(currentEntry != null) currentEntry.checkCollision(before,after); } if(afterEntry != null) afterEntry.checkCollision(currentStr,null); // fireContentsChanged(this,0,getSet().size()); // // get current value // Iterator it = getSet().iterator(); UMLComboBoxEntry entry; while(it.hasNext()) { entry = (UMLComboBoxEntry) it.next(); if(!entry.isPhantom() && entry.getElement(model) == selClass) { MModelElement elem = entry.getElement(model); String name = null; if (elem != null ) name=elem.getName(); cat.debug("setSelectedItem"); setSelectedItem( entry); } } fireContentsChanged(this,0,getSet().size()); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLClassifierComboBoxModel.java/buggy/src_new/org/argouml/uml/ui/UMLClassifierComboBoxModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1221,
6233,
12,
49,
1488,
938,
16,
490,
13860,
357,
797,
13,
288,
202,
588,
694,
7675,
8507,
5621,
202,
4029,
3042,
273,
9272,
7675,
588,
4029,
5621,
202,
430,
12,
5965,
1903... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
6233,
12,
49,
1488,
938,
16,
490,
13860,
357,
797,
13,
288,
202,
588,
694,
7675,
8507,
5621,
202,
4029,
3042,
273,
9272,
7675,
588,
4029,
5621,
202,
430,
12,
5965,
1903... |
connectAtom.setPoint2D(new Point2d(newX, newY)); | points.addElement(new Point2d(newX, newY)); | public void populatePolygonCorners(Vector atomsToDraw, Point2d rotationCenter, double startAngle, double addAngle, double radius) { Atom connectAtom = null; double angle = startAngle; double newX; double newY; double x; double y; if (debug) { System.out.println("populatePolygonCorners->startAngle: " + Math.toDegrees(angle)); } for (int i = 0; i < atomsToDraw.size(); i++) { connectAtom = (Atom) atomsToDraw.elementAt(i); angle = angle + addAngle; if (angle >= 2 * Math.PI) { angle -= 2 * Math.PI; } if (debug) { System.out.println("populatePolygonCorners->angle: " + Math.toDegrees(angle)); } x = Math.cos(angle) * radius; y = Math.sin(angle) * radius; newX = x + rotationCenter.x; newY = y + rotationCenter.y; connectAtom.setPoint2D(new Point2d(newX, newY)); try { if (debug) { System.out.println("populatePolygonCorners->connectAtom: " + (molecule.getAtomNumber(connectAtom) + 1) + " placed at " + connectAtom.getPoint2D()); } } catch (Exception exc) { } connectAtom.setFlag(CDKConstants.ISPLACED, true); } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/ce671bad54ba13afe05c622f64a9b05900832535/AtomPlacer.java/clean/src/org/openscience/cdk/layout/AtomPlacer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
13,
202,
95,
202,
202,
3641,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
13,
202,
95,
202,
202,
3641,
... |
public String getDefaultDimension() { return saDimensions[0]; } | public String getDefaultDimension( ) { return saDimensions[0]; } | public String getDefaultDimension() { return saDimensions[0]; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/349f24e6a8f8484f0f1f1af682b4952337cac402/StockChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4829,
8611,
1435,
565,
288,
3639,
327,
7864,
10796,
63,
20,
15533,
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,
514,
4829,
8611,
1435,
565,
288,
3639,
327,
7864,
10796,
63,
20,
15533,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ModuleHandle handle = SessionHandleAdapter.getInstance() .getReportDesignHandle(); | ModuleHandle handle = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); | public static String[] getDataSets() { ArrayList list = new ArrayList(); ModuleHandle handle = SessionHandleAdapter.getInstance() .getReportDesignHandle(); SlotHandle dataSets = handle.getDataSets(); if (dataSets != null) { Iterator iterator = dataSets.iterator(); while (iterator.hasNext()) { DataSetHandle DataSetHandle = (DataSetHandle) iterator.next(); list.add(DataSetHandle.getName()); } } return (String[]) list.toArray(new String[0]); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7ca10c49a247dfe395b2e0483af9946ea07fe89b/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
8526,
4303,
2785,
1435,
288,
202,
202,
19558,
666,
273,
394,
2407,
5621,
202,
202,
3120,
3259,
1640,
273,
3877,
3259,
4216,
18,
588,
1442,
1435,
9506,
202,
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,
760,
514,
8526,
4303,
2785,
1435,
288,
202,
202,
19558,
666,
273,
394,
2407,
5621,
202,
202,
3120,
3259,
1640,
273,
3877,
3259,
4216,
18,
588,
1442,
1435,
9506,
202,
18,
588,
... |
if (ELEMENT_SKIP_LIST.contains(name)) return; if (log != null) log.println("Element\t" + name + "\t" + model); String[] list = model.split("[^A-Z0-9a-z]"); List mc = new ArrayList(); /*if (name.equals("currency")) { mc.add("alias"); mc.add("symbol"); mc.add("pattern"); } */ for (int i = 0; i < list.length; ++i) { if (list[i].length() == 0) continue; if (SUBELEMENT_SKIP_LIST.contains(list[i])) continue; if (mc.contains(list[i])) { if (log != null) log.println("Duplicate attribute " + name + ", " + list[i] + ":\t" + Arrays.asList(list) + ":\t" + mc ); } else { mc.add(list[i]); } } if (mc.size() != 0) element_childComparator.put(name, mc); } | if (ELEMENT_SKIP_LIST.contains(name)) return; if (log != null) log.println("Element\t" + name + "\t" + model); String[] list = model.split("[^A-Z0-9a-z]"); List mc = new ArrayList(); /*if (name.equals("currency")) { mc.add("alias"); mc.add("symbol"); mc.add("pattern"); } */ for (int i = 0; i < list.length; ++i) { if (list[i].length() == 0) continue; if (SUBELEMENT_SKIP_LIST.contains(list[i])) continue; if (mc.contains(list[i])) { if (log != null) log.println("Duplicate attribute " + name + ", " + list[i] + ":\t" + Arrays.asList(list) + ":\t" + mc ); } else { mc.add(list[i]); } } if (mc.size() < 1) { log.println("\tSKIPPING\t" + name + "\t" + mc); } else { log.println("\t" + name + "\t" + mc); element_childComparator.put(name, mc); } } | public void elementDecl(String name, String model) throws SAXException { if (ELEMENT_SKIP_LIST.contains(name)) return; if (log != null) log.println("Element\t" + name + "\t" + model); String[] list = model.split("[^A-Z0-9a-z]"); List mc = new ArrayList(); /*if (name.equals("currency")) { mc.add("alias"); mc.add("symbol"); mc.add("pattern"); } */ for (int i = 0; i < list.length; ++i) { if (list[i].length() == 0) continue; if (SUBELEMENT_SKIP_LIST.contains(list[i])) continue; //if (log != null) log.print("\t" + list[i]); if (mc.contains(list[i])) { if (log != null) log.println("Duplicate attribute " + name + ", " + list[i] + ":\t" + Arrays.asList(list) + ":\t" + mc ); } else { mc.add(list[i]); } } if (mc.size() != 0) element_childComparator.put(name, mc); //if (log != null) log.println(); } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/12a2ab631354035ef78cdf435220be6a72b685d9/FindDTDOrder.java/buggy/tools/java/org/unicode/cldr/util/FindDTDOrder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
930,
3456,
12,
780,
508,
16,
514,
938,
13,
1216,
14366,
288,
5411,
309,
261,
10976,
67,
22589,
67,
7085,
18,
12298,
12,
529,
3719,
327,
31,
5411,
309,
261,
1330,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
930,
3456,
12,
780,
508,
16,
514,
938,
13,
1216,
14366,
288,
5411,
309,
261,
10976,
67,
22589,
67,
7085,
18,
12298,
12,
529,
3719,
327,
31,
5411,
309,
261,
1330,
480,
446,
... |
260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 59, 60, -1, 265, 266, -1, -1, -1, | 260, 261, 262, 263, 264, 265, 266, 33, -1, 269, | private static final short[] yyCheck2() { return new short[] { 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 126, -1, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, 58, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 63, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 124, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, 33, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, 297, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, 59, 60, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, 91, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 123, -1, -1, 126, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 41, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, 59, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, 125, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 59, 60, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, 91, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 33, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 59, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 10, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 33, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, 59, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 0, 346, 347, 348, 349, 350, 351, -1, -1, -1, 10, 356, -1, -1, -1, 126, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 93, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 33, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, 264, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 10, 313, 314, -1, 316, 317, 125, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 0, 281, 91, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -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, 91, -1, 93, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 91, 271, 93, 94, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 0, -1, 123, 124, 125, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 41, -1, 343, 44, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 59, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 125, 337, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, 91, -1, 93, 94, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 60, -1, 62, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 94, -1, 96, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 124, 338, 126, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -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, -1, -1, -1, 93, 94, -1, -1, -1, -1, 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, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 37, 38, -1, 281, 282, 42, 43, 44, 45, -1, 47, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 94, -1, -1, 338, -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 124, -1, -1, 37, 38, 281, 282, 41, 42, 43, 44, 45, -1, 47, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 93, 94, -1, 338, }; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
... |
try { setHspace((String) evalAttr("hspace", getHspaceExpr(), String.class)); } catch (NullAttributeException ex) { } | if ((string = EvalHelper.evalString("height", getHeightExpr(), this, pageContext)) != null) setHeight(string); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlign((String) evalAttr("align", getAlignExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBorder((String) evalAttr("border", getBorderExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBundle((String) evalAttr("bundle", getBundleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHeight((String) evalAttr("height", getHeightExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHspace((String) evalAttr("hspace", getHspaceExpr(), String.class)); } catch (NullAttributeException ex) { } try { setImageName((String) evalAttr("imageName", getImageNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setIsmap((String) evalAttr("ismap", getIsmapExpr(), String.class)); } catch (NullAttributeException ex) { } try { setLocale((String) evalAttr("locale", getLocaleExpr(), String.class)); } catch (NullAttributeException ex) { } // The "lowsrc" attribute is deprecated. This needs to be removed // when the "lowsrc" attribute is finally removed. try { setLowsrc((String) evalAttr("lowsrc", getLowsrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPage((String) evalAttr("page", getPageExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPageKey((String) evalAttr("pageKey", getPageKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamId((String) evalAttr("paramId", getParamIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamName((String) evalAttr("paramName", getParamNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamProperty((String) evalAttr("paramProperty", getParamPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamScope((String) evalAttr("paramScope", getParamScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setScope((String) evalAttr("scope", getScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrc((String) evalAttr("src", getSrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrcKey((String) evalAttr("srcKey", getSrcKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setUsemap((String) evalAttr("usemap", getUsemapExpr(), String.class)); } catch (NullAttributeException ex) { } try { setVspace((String) evalAttr("vspace", getVspaceExpr(), String.class)); } catch (NullAttributeException ex) { } try { setWidth((String) evalAttr("width", getWidthExpr(), String.class)); } catch (NullAttributeException ex) { } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELImgTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImgTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
... |
genuineHost = host.substring(at_host); | { genuineHost = host.substring(at_host); userInfo = host.substring(0, at_host); } | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { String genuineHost; int hostEnd; int colon; int at_host; start += 2; int slash = spec.indexOf('/', start); if (slash >= 0) hostEnd = slash; else hostEnd = end; host = spec.substring(start, hostEnd); // We first need a genuine host name (with userinfo). // So we check for '@': if it's present check the port in the // section after '@' in the other case check it in the full string. // P.S.: We don't care having '@' at the beginning of the string. if ((at_host = host.indexOf('@')) >= 0) genuineHost = host.substring(at_host); else genuineHost = host; // Look for optional port number. It is valid for the non-port // part of the host name to be null (e.g. a URL "http://:80"). // TBD: JDK 1.2 in this case sets host to null rather than ""; // this is undocumented and likely an unintended side effect in 1.2 // so we'll be simple here and stick with "". Note that // "http://" or "http:///" produce a "" host in JDK 1.2. if ((colon = genuineHost.indexOf(':')) >= 0) { try { port = Integer.parseInt(genuineHost.substring(colon + 1)); } catch (NumberFormatException e) { ; // Ignore invalid port values; port is already set to u's // port. } // Now we must cut the port number in the original string. if (at_host >= 0) host = host.substring(0, at_host + colon); else host = host.substring(0, colon); } file = null; start = hostEnd; } else if (host == null) host = ""; if (file == null || file.length() == 0 || (start < end && spec.charAt(start) == '/')) { // No file context available; just spec for file. // Or this is an absolute path name; ignore any file context. file = spec.substring(start, end); ref = null; } else if (start < end) { // Context is available, but only override it if there is a new file. char sepChar = '/'; int lastSlash = file.lastIndexOf(sepChar); if (lastSlash < 0 && File.separatorChar != sepChar && url.getProtocol().equals("file")) { // On Windows, even '\' is allowed in a "file" URL. sepChar = File.separatorChar; lastSlash = file.lastIndexOf(sepChar); } file = file.substring(0, lastSlash) + sepChar + spec.substring(start, end); if (url.getProtocol().equals("file")) { // For "file" URLs constructed relative to a context, we // need to canonicalise the file path. try { boolean endsWithSlash = file.charAt(file.length() - 1) == '/'; file = new File(file).getCanonicalPath(); if (endsWithSlash && file.charAt(file.length() - 1) != '/') file += '/'; } catch (IOException e) { // Do nothing. } } ref = null; } if (ref == null) { // Normally there should be no '#' in the file part, // but we are nice. int hash = file.indexOf('#'); if (hash != -1) { ref = file.substring(hash + 1, file.length()); file = file.substring(0, hash); } } // XXX - Classpath used to call PlatformHelper.toCanonicalForm() on // the file part. It seems like overhead, but supposedly there is some // benefit in windows based systems (it also lowercased the string). setURL(url, url.getProtocol(), host, port, file, ref); } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/141410702d2753052385e841596a13c4a870b7d7/URLStreamHandler.java/buggy/libjava/java/net/URLStreamHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1109,
1785,
12,
1785,
880,
16,
514,
857,
16,
509,
787,
16,
509,
679,
13,
225,
288,
565,
514,
1479,
273,
880,
18,
588,
2594,
5621,
565,
509,
1756,
273,
880,
18,
588,
2617,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1109,
1785,
12,
1785,
880,
16,
514,
857,
16,
509,
787,
16,
509,
679,
13,
225,
288,
565,
514,
1479,
273,
880,
18,
588,
2594,
5621,
565,
509,
1756,
273,
880,
18,
588,
2617,
... |
bean = getMappedProperty(bean, next); | nestedBean = getMappedProperty(bean, next); | public Object getNestedProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { if (bean == null) { throw new IllegalArgumentException("No bean specified"); } if (name == null) { throw new IllegalArgumentException("No name specified"); } int indexOfINDEXED_DELIM = -1; int indexOfMAPPED_DELIM = -1; int indexOfMAPPED_DELIM2 = -1; int indexOfNESTED_DELIM = -1; while (true) { indexOfNESTED_DELIM = name.indexOf(PropertyUtils.NESTED_DELIM); indexOfMAPPED_DELIM = name.indexOf(PropertyUtils.MAPPED_DELIM); indexOfMAPPED_DELIM2 = name.indexOf(PropertyUtils.MAPPED_DELIM2); if (indexOfMAPPED_DELIM2 >= 0 && indexOfMAPPED_DELIM >=0 && (indexOfNESTED_DELIM < 0 || indexOfNESTED_DELIM > indexOfMAPPED_DELIM)) { indexOfNESTED_DELIM = name.indexOf(PropertyUtils.NESTED_DELIM, indexOfMAPPED_DELIM2); } else { indexOfNESTED_DELIM = name.indexOf(PropertyUtils.NESTED_DELIM); } if (indexOfNESTED_DELIM < 0) { break; } String next = name.substring(0, indexOfNESTED_DELIM); indexOfINDEXED_DELIM = next.indexOf(PropertyUtils.INDEXED_DELIM); indexOfMAPPED_DELIM = next.indexOf(PropertyUtils.MAPPED_DELIM); if (bean instanceof Map) { bean = getPropertyOfMapBean((Map) bean, next); } else if (indexOfMAPPED_DELIM >= 0) { bean = getMappedProperty(bean, next); } else if (indexOfINDEXED_DELIM >= 0) { bean = getIndexedProperty(bean, next); } else { bean = getSimpleProperty(bean, next); } if (bean == null) { throw new NestedNullException ("Null property value for '" + name.substring(0, indexOfNESTED_DELIM) + "'"); } name = name.substring(indexOfNESTED_DELIM + 1); } indexOfINDEXED_DELIM = name.indexOf(PropertyUtils.INDEXED_DELIM); indexOfMAPPED_DELIM = name.indexOf(PropertyUtils.MAPPED_DELIM); if (bean instanceof Map) { bean = getPropertyOfMapBean((Map) bean, name); } else if (indexOfMAPPED_DELIM >= 0) { bean = getMappedProperty(bean, name); } else if (indexOfINDEXED_DELIM >= 0) { bean = getIndexedProperty(bean, name); } else { bean = getSimpleProperty(bean, name); } return bean; } | 54521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54521/11663fc64a5a250877c75204cc07a0c9ef4c25fa/PropertyUtilsBean.java/buggy/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
336,
8649,
1396,
12,
921,
3931,
16,
514,
508,
13,
5411,
1216,
11900,
16,
15342,
16,
5411,
15959,
288,
3639,
309,
261,
14496,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
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,
377,
1071,
1033,
336,
8649,
1396,
12,
921,
3931,
16,
514,
508,
13,
5411,
1216,
11900,
16,
15342,
16,
5411,
15959,
288,
3639,
309,
261,
14496,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2... |
if (ChainBuilderAgent.DEBUG) System.err.println("popup. zooming out of "+n); | private void evaluatePopup(PInputEvent e) { postPopup=true; PNode n = e.getPickedNode(); PNode p = n.getParent(); //System.err.println("popup. zooming out of "+n); if (n instanceof BufferedObject && (p == canvas.getLayer() || p instanceof ChainView)) { // if I'm on a module that's not in a chain or not. // I should zoom to view of whole canvas PBounds b = canvas.getBufferedBounds(); PCamera camera =canvas.getCamera(); camera.animateViewToCenterBounds(b,true,Constants.ANIMATION_DELAY); setModulesDisplayMode(); } else { double scaleFactor = 1/Constants.SCALE_FACTOR; zoom(scaleFactor,e); } e.setHandled(true); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
918,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
918,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,... | |
ImageSize imageSize ; String fileSize; | ImageSize imageSize = new ImageSize( 0, 0 ); long fileSize ; InputStreamSource inputStreamSource = imageFileDocument.getDefaultFile().getInputStreamSource(); | public String render( DocumentDomainObject document, HttpServletRequest request ) { UserDomainObject user = Utility.getLoggedOnUser( request ); FileDocumentDomainObject imageFileDocument = (FileDocumentDomainObject)document; ImageSize imageSize ; String fileSize; try { BufferedImage image = ImageIO.read( imageFileDocument.getDefaultFile().getInputStreamSource().getInputStream() ) ; imageSize = new ImageSize( image.getWidth(), image.getHeight() ); fileSize = imageFileDocument.getDefaultFile().getInputStreamSource().getSize()+""; } catch ( IOException ioe ) { imageSize = new ImageSize( 0, 0 ); fileSize = "0"; } List values = Arrays.asList( new Object[]{ "imageUrl", "GetDoc?meta_id=" + document.getId(), "imageSize", imageSize, "fileSize", fileSize, } ); return Imcms.getServices().getAdminTemplate( "images/thumbnail.frag", user, values ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/e6cf0a83832d82eb6846ea3480525b76a676796c/ChangeImage.java/buggy/server/src/com/imcode/imcms/servlet/admin/ChangeImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1743,
12,
4319,
3748,
921,
1668,
16,
9984,
590,
262,
288,
5411,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
590,
11272,
5411,
1387,
2519,
3748,
921,
31146... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1743,
12,
4319,
3748,
921,
1668,
16,
9984,
590,
262,
288,
5411,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
590,
11272,
5411,
1387,
2519,
3748,
921,
31146... |
System.exit(status); return recv.getRuntime().getNil(); | throw new SystemExit(recv.getRuntime(), status); | public static IRubyObject exit(IRubyObject recv, IRubyObject args[]) { int status = 0; if (args.length > 0) { status = RubyNumeric.fix2int(args[0]); } System.exit(status); return recv.getRuntime().getNil(); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/d9317e0eeee3391f47aa759e650cc97132b1f4f7/KernelModule.java/clean/org/jruby/KernelModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
2427,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
509,
1267,
273,
374,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
2427,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
509,
1267,
273,
374,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
... |
AST tmp2239_AST_in = (AST)_t; | AST tmp2238_AST_in = (AST)_t; | public final void record_fields(AST _t) throws RecognitionException { AST record_fields_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FIELDS: { AST __t1850 = _t; AST tmp2232_AST_in = (AST)_t; match(_t,FIELDS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST tmp2233_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { _loop1855: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WHEN: { AST __t1854 = _t; AST tmp2234_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1854; _t = _t.getNextSibling(); break; } case RIGHTPAREN: case Field_ref: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop1855; } } while (true); } AST tmp2235_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1850; _t = _t.getNextSibling(); break; } case EXCEPT: { AST __t1856 = _t; AST tmp2236_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST tmp2237_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { _loop1861: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WHEN: { AST __t1860 = _t; AST tmp2238_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1860; _t = _t.getNextSibling(); break; } case RIGHTPAREN: case Field_ref: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop1861; } } while (true); } AST tmp2239_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1856; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/JPTreeParser.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1409,
67,
2821,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1409,
67,
2821,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1409,
67,
2821,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1409,
67,
2821,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... |
public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram(); | public quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { quickfix.field.UnderlyingCPProgram value = new quickfix.field.UnderlyingCPProgram(); | public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassCancelRequest.java/clean/src/java/src/quickfix/fix44/OrderMassCancelRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
10833,
765,
6291,
4258,
9459,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
10833,
765,
6291,
4258,
9459,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9... |
MylarUiPlugin.getDefault().setFilterCompleteMode(isChecked()); | String bugIdString = getBugIdFromUser(); int bugId = -1; try { if (bugIdString != null) { bugId = Integer.parseInt(bugIdString); } else { return; } } catch (NumberFormatException nfe) { showMessage("Please enter a valid report number"); return; } boolean doesIdExistAlready = false; List<ITask> tasks = MylarTasksPlugin.getTaskListManager().getTaskList().getRootTasks(); for (Iterator<ITask> iter = tasks.iterator(); iter.hasNext() && !doesIdExistAlready;) { ITask task = iter.next(); doesIdExistAlready = lookForId(task, "Bugzilla-" + bugId); } if (doesIdExistAlready) { showMessage("A Bugzilla task with ID Bugzilla-" + bugId + " already exists."); return; } ITask newTask = new BugzillaTask("Bugzilla-"+bugId, "<bugzilla info>"); Object selectedObject = ((IStructuredSelection)viewer.getSelection()).getFirstElement(); if (selectedObject instanceof Task){ ((Task)selectedObject).addSubtask(newTask); } else { MylarTasksPlugin.getTaskListManager().getTaskList().addRootTask(newTask); } | public void run() { MylarUiPlugin.getDefault().setFilterCompleteMode(isChecked()); viewer.refresh(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/04e28e82233b51ec5dbc77caf8f19bd94749d98b/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
540,
202,
202,
780,
7934,
548,
780,
273,
2882,
637,
548,
1265,
1299,
5621,
509,
7934,
548,
273,
300,
21,
31,
775,
288,
309,
261,
925,
548,
780,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
540,
202,
202,
780,
7934,
548,
780,
273,
2882,
637,
548,
1265,
1299,
5621,
509,
7934,
548,
273,
300,
21,
31,
775,
288,
309,
261,
925,
548,
780,
480,
446,
... |
} try { String value = System.getProperty("javax.xml.parsers.SAXParserFactory"); if (value != null && value.startsWith("weblogic")) { System.setProperty("javax.xml.parsers.SAXParserFactory", "org.apache.xerces.jaxp.SAXParserFactoryImpl"); System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"); } } catch (Exception e) { System.out.println("CocoonServlet: Could not check system properties, got: " + e); | public void init(ServletConfig conf) throws ServletException { this.servletContext = conf.getServletContext(); this.servletContext.log("Initializing Apache Cocoon " + Constants.VERSION); super.init(conf); this.servletContextPath = this.servletContext.getRealPath("/"); String path = this.servletContextPath; // these two variables are just for debugging. We can't log at this point // as the logger isn't initialized yet. String debugPathOne = null, debugPathTwo = null; if (path == null) { // Try to figure out the path of the root from that of WEB-INF try { path = this.servletContext.getResource("/WEB-INF").toString(); } catch (MalformedURLException me) { throw new ServletException("Unable to get resource 'WEB-INF'.", me); } debugPathOne = path; path = path.substring(0, path.length() - "WEB-INF".length()); debugPathTwo = path; } try { if (path.indexOf(':') > 1) { this.servletContextURL = path; } else { this.servletContextURL = new File(path).toURL().toExternalForm(); } } catch (MalformedURLException me) { // VG: Novell has absolute file names starting with the // volume name which is easily more then one letter. // Examples: sys:/apache/cocoon or sys:\apache\cocoon try { this.servletContextURL = new File(path).toURL().toExternalForm(); } catch (MalformedURLException ignored) { throw new ServletException("Unable to determine servlet context URL.", me); } } // initialize settings Core.BootstrapEnvironment env = new ServletBootstrapEnvironment(conf, this.classLoader, this.servletContextPath, this.servletContextURL); this.settings = Core.createSettings(env); this.appContext.put(Core.CONTEXT_SETTINGS, this.settings); if (this.settings.isInitClassloader()) { // Force context classloader so that JAXP can work correctly // (see javax.xml.parsers.FactoryFinder.findClassLoader()) try { Thread.currentThread().setContextClassLoader(this.classLoader); } catch (Exception e) { // ignore this } } try { // FIXME (VG): We shouldn't have to specify these. Need to override // jaxp implementation of weblogic before initializing logger. // This piece of code is also required in the Cocoon class. String value = System.getProperty("javax.xml.parsers.SAXParserFactory"); if (value != null && value.startsWith("weblogic")) { System.setProperty("javax.xml.parsers.SAXParserFactory", "org.apache.xerces.jaxp.SAXParserFactoryImpl"); System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"); } } catch (Exception e) { // Ignore security exception System.out.println("CocoonServlet: Could not check system properties, got: " + e); } this.appContext.put(Constants.CONTEXT_ENVIRONMENT_CONTEXT, new HttpContext(this.servletContext)); // first init the work-directory for the logger. // this is required if we are running inside a war file! final String workDirParam = this.settings.getWorkDirectory(); File workDir; if (workDirParam != null) { if (this.servletContextPath == null) { // No context path : consider work-directory as absolute workDir = new File(workDirParam); } else { // Context path exists : is work-directory absolute ? File workDirParamFile = new File(workDirParam); if (workDirParamFile.isAbsolute()) { // Yes : keep it as is workDir = workDirParamFile; } else { // No : consider it relative to context path workDir = new File(servletContextPath, workDirParam); } } } else { workDir = (File) this.servletContext.getAttribute("javax.servlet.context.tempdir"); workDir = new File(workDir, "cocoon-files"); } workDir.mkdirs(); this.appContext.put(Constants.CONTEXT_WORK_DIR, workDir); this.settings.setWorkDirectory(workDir.getAbsolutePath()); try { this.appContext.put(ContextHelper.CONTEXT_ROOT_URL, new URL(this.servletContextURL)); } catch (MalformedURLException ignore) { // we simply ignore this } // Init logger initLogger(); if (getLogger().isDebugEnabled()) { getLogger().debug(this.settings.toString()); getLogger().debug("getRealPath for /: " + this.servletContextPath); if (this.servletContextPath == null) { getLogger().debug("getResource for /WEB-INF: " + debugPathOne); getLogger().debug("Path for Root: " + debugPathTwo); } } // Output some debug info if (getLogger().isDebugEnabled()) { getLogger().debug("Servlet Context URL: " + this.servletContextURL); if (workDirParam != null) { getLogger().debug("Using work-directory " + workDir); } else { getLogger().debug("Using default work-directory " + workDir); } } final String uploadDirParam = this.settings.getUploadDirectory(); File uploadDir; if (uploadDirParam != null) { if (this.servletContextPath == null) { uploadDir = new File(uploadDirParam); } else { // Context path exists : is upload-directory absolute ? File uploadDirParamFile = new File(uploadDirParam); if (uploadDirParamFile.isAbsolute()) { // Yes : keep it as is uploadDir = uploadDirParamFile; } else { // No : consider it relative to context path uploadDir = new File(servletContextPath, uploadDirParam); } } if (getLogger().isDebugEnabled()) { getLogger().debug("Using upload-directory " + uploadDir); } } else { uploadDir = new File(workDir, "upload-dir" + File.separator); if (getLogger().isDebugEnabled()) { getLogger().debug("Using default upload-directory " + uploadDir); } } uploadDir.mkdirs(); this.appContext.put(Constants.CONTEXT_UPLOAD_DIR, uploadDir); this.settings.setUploadDirectory(uploadDir.getAbsolutePath()); String cacheDirParam = this.settings.getCacheDirectory(); File cacheDir; if (cacheDirParam != null) { if (this.servletContextPath == null) { cacheDir = new File(cacheDirParam); } else { // Context path exists : is cache-directory absolute ? File cacheDirParamFile = new File(cacheDirParam); if (cacheDirParamFile.isAbsolute()) { // Yes : keep it as is cacheDir = cacheDirParamFile; } else { // No : consider it relative to context path cacheDir = new File(servletContextPath, cacheDirParam); } } if (getLogger().isDebugEnabled()) { getLogger().debug("Using cache-directory " + cacheDir); } } else { cacheDir = IOUtils.createFile(workDir, "cache-dir" + File.separator); if (getLogger().isDebugEnabled()) { getLogger().debug("cache-directory was not set - defaulting to " + cacheDir); } } cacheDir.mkdirs(); this.appContext.put(Constants.CONTEXT_CACHE_DIR, cacheDir); this.settings.setCacheDirectory(cacheDir.getAbsolutePath()); // update settings try { final URL u = env.getConfigFile(this.log, this.settings.getConfiguration()); this.settings.setConfiguration(u.toExternalForm()); this.appContext.put(Constants.CONTEXT_CONFIG_URL, u); } catch (Exception e) { if ( e instanceof ServletException ) { throw (ServletException)e; } throw new ServletException(e); } parentServiceManagerClass = this.settings.getParentServiceManagerClassName(); if (parentServiceManagerClass != null) { int dividerPos = parentServiceManagerClass.indexOf('/'); if (dividerPos != -1) { parentServiceManagerInitParam = parentServiceManagerInitParam.substring(dividerPos + 1); parentServiceManagerClass = parentServiceManagerClass.substring(0, dividerPos); } } this.containerEncoding = getInitParameter("container-encoding", "ISO-8859-1"); this.appContext.put(Constants.CONTEXT_DEFAULT_ENCODING, settings.getFormEncoding()); this.requestFactory = new RequestFactory(settings.isAutosaveUploads(), new File(settings.getUploadDirectory()), settings.isAllowOverwrite(), settings.isSilentlyRename(), settings.getMaxUploadSize(), this.containerEncoding); // Add the servlet configuration this.appContext.put(CONTEXT_SERVLET_CONFIG, conf); createCocoon(); if (this.exception == null) { this.servletContext.log("Apache Cocoon " + Constants.VERSION + " is up and ready."); } else { this.servletContext.log("Errors during initializing Apache Cocoon " + Constants.VERSION + " : " + this.exception.getMessage()); } } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/4898917f55fc8d6ccd06b94aaf06b0c4a16cd913/CocoonServlet.java/buggy/src/java/org/apache/cocoon/servlet/CocoonServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
4745,
809,
2195,
13,
565,
1216,
16517,
288,
3639,
333,
18,
23231,
1042,
273,
2195,
18,
588,
4745,
1042,
5621,
3639,
333,
18,
23231,
1042,
18,
1330,
2932,
29782,
24840... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
4745,
809,
2195,
13,
565,
1216,
16517,
288,
3639,
333,
18,
23231,
1042,
273,
2195,
18,
588,
4745,
1042,
5621,
3639,
333,
18,
23231,
1042,
18,
1330,
2932,
29782,
24840... | |
else if ( byte[].class.isAssignableFrom( clazz)) | else if ( byte[].class.isAssignableFrom( clazz ) ) | public static int toApiDataType( Class clazz ) { if ( clazz == null ) return DataType.UNKNOWN_TYPE; if ( clazz == DataType.AnyType.class ) return DataType.ANY_TYPE; else if ( Integer.class.isAssignableFrom(clazz) ) return DataType.INTEGER_TYPE; else if ( Double.class.isAssignableFrom( clazz )) return DataType.DOUBLE_TYPE; else if ( String.class.isAssignableFrom( clazz )) return DataType.STRING_TYPE; else if ( BigDecimal.class.isAssignableFrom( clazz )) return DataType.DECIMAL_TYPE; else if (Date.class.isAssignableFrom( clazz )) return DataType.DATE_TYPE; else if ( byte[].class.isAssignableFrom( clazz)) return DataType.BINARY_TYPE; else if ( Clob.class.isAssignableFrom( clazz ) || clazz.getName().equals( "org.eclipse.datatools.connectivity.oda.IClob" ) ) return DataType.STRING_TYPE; else if ( Blob.class.isAssignableFrom( clazz ) || clazz.getName( ).equals( "org.eclipse.datatools.connectivity.oda.IBlob" ) ) return DataType.BINARY_TYPE; // any other types are not recognized nor supported; return DataType.UNKNOWN_TYPE; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7424ab5770d7a1045316c1610de414550e371f79/DataTypeUtil.java/clean/core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
358,
3064,
6273,
12,
1659,
4003,
262,
202,
95,
202,
202,
430,
261,
4003,
422,
446,
262,
1082,
202,
2463,
14828,
18,
14737,
67,
2399,
31,
202,
202,
430,
261,
4003,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
358,
3064,
6273,
12,
1659,
4003,
262,
202,
95,
202,
202,
430,
261,
4003,
422,
446,
262,
1082,
202,
2463,
14828,
18,
14737,
67,
2399,
31,
202,
202,
430,
261,
4003,
... |
protected void addAppClientIfNecessary(XMLResource aResource) { | protected void addAppClientIfNecessary(XMLResource aResource, Integer version) { | protected void addAppClientIfNecessary(XMLResource aResource) { if (aResource != null && aResource.getContents().isEmpty()) { ApplicationClient appClient = ClientFactory.eINSTANCE.createApplicationClient(); aResource.getContents().add(appClient); URI moduleURI = getArtifactEditModel().getModuleURI(); try { appClient.setDisplayName(ModuleCore.getDeployedName(moduleURI)); } catch (UnresolveableURIException e) { } aResource.setID(appClient, J2EEConstants.APP_CLIENT_ID); //TODO add more mandatory elements } } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/0f1fc79e5aa4c8262dfce2d31445445c05e73f17/AppClientArtifactEdit.java/buggy/plugins/org.eclipse.jst.j2ee/appclientcreation/org/eclipse/jst/j2ee/applicationclient/internal/modulecore/util/AppClientArtifactEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
3371,
1227,
26034,
12,
4201,
1420,
279,
1420,
13,
288,
202,
202,
430,
261,
69,
1420,
480,
446,
597,
279,
1420,
18,
588,
6323,
7675,
291,
1921,
10756,
288,
1082,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
3371,
1227,
26034,
12,
4201,
1420,
279,
1420,
13,
288,
202,
202,
430,
261,
69,
1420,
480,
446,
597,
279,
1420,
18,
588,
6323,
7675,
291,
1921,
10756,
288,
1082,
202... |
System.out.println("CmdRunner.makeConnectString: connectString="+connectString); | CmdRunner.debug("CmdRunner.makeConnectString: connectString="+connectString); | public String makeConnectString() { String connectString = CmdRunner.getConnectStringProperty(); // TODO replace all of these 'println' calls with LoggerSystem.out.println("CmdRunner.makeConnectString: connectString="+connectString); Util.PropertyList connectProperties = null; if (connectString == null || connectString.equals("")) { connectProperties = new Util.PropertyList(); connectProperties.put("Provider","mondrian"); } else { connectProperties = Util.parseConnectString(connectString); } // override jdbc url String jdbcURL = CmdRunner.getJdbcURLProperty();System.out.println("CmdRunner.makeConnectString: jdbcURL="+jdbcURL); if (jdbcURL != null) { connectProperties.put("Jdbc", jdbcURL); } // override jdbc drivers String jdbcDrivers = CmdRunner.getJdbcDriversProperty();System.out.println("CmdRunner.makeConnectString: jdbcDrivers="+jdbcDrivers); if (jdbcURL != null) { connectProperties.put("JdbcDrivers", jdbcDrivers); } // override catalog url String catalogURL = CmdRunner.getCatalogURLProperty();System.out.println("CmdRunner.makeConnectString: catalogURL="+catalogURL); if (catalogURL != null) { connectProperties.put("catalog", catalogURL); }System.out.println("CmdRunner.makeConnectString: connectProperties="+connectProperties); return connectProperties.toString(); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/829999bd5d0b66b826a808b7c58358f398b081b5/CmdRunner.java/clean/src/main/mondrian/tui/CmdRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1221,
5215,
780,
1435,
288,
3639,
514,
3077,
780,
273,
13328,
9709,
18,
588,
5215,
780,
1396,
5621,
3639,
368,
2660,
1453,
777,
434,
4259,
296,
8222,
11,
4097,
598,
4242,
3163,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
5215,
780,
1435,
288,
3639,
514,
3077,
780,
273,
13328,
9709,
18,
588,
5215,
780,
1396,
5621,
3639,
368,
2660,
1453,
777,
434,
4259,
296,
8222,
11,
4097,
598,
4242,
3163,... |
public void writePrefs () { | public void writePrefs() { /* | public void writePrefs () { prefs.putInt("server.count",size()); for (int i=0; i<size(); i++) { prefs.putString ("server."+i+".description" ,get(i).getDescription()); prefs.putString ("server."+i+".host" ,get(i).getHost()); prefs.putInt ("server."+i+".port" ,get(i).getPort()); prefs.putString ("server."+i+".type" ,get(i).getType()); prefs.putString ("server."+i+".username" ,get(i).getUsername()); prefs.putString ("server."+i+".password" ,get(i).getPassword()); prefs.putInt ("server."+i+".default_identity" ,get(i).getDefaultIdentity()); prefs.putString ("server."+i+".berkeley.directory" ,get(i).getBerkeleyDirectory()); prefs.putBoolean("server."+i+".pop3.showasimap" ,get(i).getPOP3ShowAsImap()); prefs.putBoolean("server."+i+".pop3.leavemailonserver",get(i).getPOP3LeaveMailOnServer()); } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/197bb74e084fe41a1eb953921d753b275c595a3d/ServerArray.java/clean/grendel/sources/grendel/prefs/base/ServerArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
1386,
2556,
1435,
288,
1748,
4202,
15503,
18,
458,
1702,
2932,
3567,
18,
1883,
3113,
1467,
10663,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
5621,
277,
27245,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
1386,
2556,
1435,
288,
1748,
4202,
15503,
18,
458,
1702,
2932,
3567,
18,
1883,
3113,
1467,
10663,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
5621,
277,
27245,
... |
"x\\iftrue a\\fi x", | "x\\iftrue a\\fi x\\end", | public void test2() throws Exception { assertSuccess(//--- input code --- "x\\iftrue a\\fi x", //--- output channel --- "xax" + TERM); } | 9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/214164c9ed1775ade6f72d74fe7722c0fd3e682b/IftrueTest.java/clean/ExTeX/src/test/de/dante/extex/interpreter/primitives/conditional/IftrueTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
22,
1435,
1216,
1185,
288,
3639,
1815,
4510,
12,
759,
6062,
810,
981,
9948,
7734,
315,
92,
1695,
430,
3767,
279,
1695,
22056,
619,
1695,
409,
3113,
7734,
368,
6062,
876,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
22,
1435,
1216,
1185,
288,
3639,
1815,
4510,
12,
759,
6062,
810,
981,
9948,
7734,
315,
92,
1695,
430,
3767,
279,
1695,
22056,
619,
1695,
409,
3113,
7734,
368,
6062,
876,
... |
boolean loadFSImage(File fsdir, File edits) throws IOException { | boolean loadFSImage( File fsdir, File edits, Configuration conf ) throws IOException { | boolean loadFSImage(File fsdir, File edits) throws IOException { // // Atomic move sequence, to recover from interrupted save // File curFile = new File(fsdir, FS_IMAGE); File newFile = new File(fsdir, NEW_FS_IMAGE); File oldFile = new File(fsdir, OLD_FS_IMAGE); // Maybe we were interrupted between 2 and 4 if (oldFile.exists() && curFile.exists()) { oldFile.delete(); if (edits.exists()) { edits.delete(); } } else if (oldFile.exists() && newFile.exists()) { // Or maybe between 1 and 2 newFile.renameTo(curFile); oldFile.delete(); } else if (curFile.exists() && newFile.exists()) { // Or else before stage 1, in which case we lose the edits newFile.delete(); } // // Load in bits // if (curFile.exists()) { DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInputStream(curFile))); try { int numFiles = in.readInt(); for (int i = 0; i < numFiles; i++) { UTF8 name = new UTF8(); name.readFields(in); int numBlocks = in.readInt(); if (numBlocks == 0) { unprotectedAddFile(name, null); } else { Block blocks[] = new Block[numBlocks]; for (int j = 0; j < numBlocks; j++) { blocks[j] = new Block(); blocks[j].readFields(in); } unprotectedAddFile(name, blocks); } } } finally { in.close(); } } if (edits.exists() && loadFSEdits(edits) > 0) { return true; } else { return false; } } | 50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/ba0ca973d8fbf49c1b7c2d29e7763226576364e8/FSDirectory.java/buggy/src/java/org/apache/hadoop/dfs/FSDirectory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
1262,
4931,
2040,
12,
1387,
2662,
1214,
16,
1387,
24450,
16,
4659,
2195,
262,
1216,
1860,
288,
3639,
368,
3639,
368,
11553,
3635,
3102,
16,
358,
5910,
628,
15711,
1923,
3639,
368,
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,
1250,
1262,
4931,
2040,
12,
1387,
2662,
1214,
16,
1387,
24450,
16,
4659,
2195,
262,
1216,
1860,
288,
3639,
368,
3639,
368,
11553,
3635,
3102,
16,
358,
5910,
628,
15711,
1923,
3639,
368,
3... |
BufferedImage dest; dest = new BufferedImage(bi.getColorModel(), wr.createWritableTranslatedChild(0,0), bi.getColorModel().isAlphaPremultiplied(), null); java.awt.Graphics2D g2d = dest.createGraphics(); g2d.drawImage(bi, null, getMinX()-wr.getMinX(), getMinY()-wr.getMinY()); g2d.dispose(); | WritableRaster wr2 = wr.createWritableTranslatedChild (wr.getMinX()-getMinX(), wr.getMinY()-getMinY()); GraphicsUtil.copyData(bi.getRaster(), wr2); /* This was the original code. This is _bad_ since it causes a * multiply and divide of the alpha channel to do the draw * operation. I believe that at some point I switched to * drawImage in order to avoid some issues with * BufferedImage's copyData implementation but I can't * reproduce them now. Anyway I'm now using GraphicsUtil which * should generally be as fast if not faster... */ /* BufferedImage dest; dest = new BufferedImage(bi.getColorModel(), wr.createWritableTranslatedChild(0,0), bi.getColorModel().isAlphaPremultiplied(), null); java.awt.Graphics2D g2d = dest.createGraphics(); g2d.drawImage(bi, null, getMinX()-wr.getMinX(), getMinY()-wr.getMinY()); g2d.dispose(); */ | public WritableRaster copyData(WritableRaster wr) { BufferedImage dest; dest = new BufferedImage(bi.getColorModel(), wr.createWritableTranslatedChild(0,0), bi.getColorModel().isAlphaPremultiplied(), null); java.awt.Graphics2D g2d = dest.createGraphics(); g2d.drawImage(bi, null, getMinX()-wr.getMinX(), getMinY()-wr.getMinY()); g2d.dispose(); return wr; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/dc27dc059ad1f52f55dd6cd5923eef7671a40cb7/ConcreteBufferedImageCachableRed.java/clean/sources/org/apache/batik/refimpl/gvt/filter/ConcreteBufferedImageCachableRed.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14505,
18637,
1610,
751,
12,
12061,
18637,
12408,
13,
288,
3639,
12362,
1570,
31,
3639,
1570,
273,
394,
12362,
12,
13266,
18,
588,
2957,
1488,
9334,
21394,
12408,
18,
2640,
12061,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14505,
18637,
1610,
751,
12,
12061,
18637,
12408,
13,
288,
3639,
12362,
1570,
31,
3639,
1570,
273,
394,
12362,
12,
13266,
18,
588,
2957,
1488,
9334,
21394,
12408,
18,
2640,
12061,
204... |
for (Iterator<VertexType> i = vertexSet.iterator(); i.hasNext(); ) { | for (Iterator<VertexType> i = vertexSet.iterator(); i.hasNext();) { | public void mergeVertices(Set<VertexType> vertexSet, GraphType g, VertexCombinator<VertexType> combinator, GraphToolkit<GraphType, EdgeType, VertexType> toolkit) { // Special case: if the vertex set contains a single vertex // or is empty, there is nothing to do if (vertexSet.size() <= 1) return; // Get all vertices to which we have outgoing edges // or from which we have incoming edges, since they'll need // to be fixed TreeSet<EdgeType> edgeSet = new TreeSet<EdgeType>(); for (Iterator<EdgeType> i = g.edgeIterator(); i.hasNext(); ) { EdgeType e = i.next(); if (vertexSet.contains(e.getSource()) || vertexSet.contains(e.getTarget())) edgeSet.add(e); } // Combine all of the vertices into a single composite vertex VertexType compositeVertex = combinator.combineVertices(vertexSet); // For each original edge into or out of the vertex set, // create an equivalent edge referencing the composite // vertex for (Iterator<EdgeType> i = edgeSet.iterator(); i.hasNext(); ) { EdgeType e = i.next(); VertexType source = vertexSet.contains(e.getSource()) ? compositeVertex : e.getSource(); VertexType target = vertexSet.contains(e.getTarget()) ? compositeVertex : e.getTarget();// if (source != compositeVertex && target != compositeVertex)// System.out.println("BIG OOPS!"); // Don't create a self edge for the composite vertex // unless one of the vertices in the vertex set // had a self edge if (source == compositeVertex && target == compositeVertex && e.getSource() != e.getTarget()) continue; // Don't create duplicate edges. if (g.lookupEdge(source, target) != null) continue; EdgeType compositeEdge = g.createEdge(source, target); // FIXME: we really should have an EdgeCombinator here toolkit.copyEdge(e, compositeEdge); } // Remove all of the vertices in the vertex set; this will // automatically remove the edges into and out of those // vertices for (Iterator<VertexType> i = vertexSet.iterator(); i.hasNext(); ) { g.removeVertex(i.next()); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/MergeVertices.java/clean/findbugs/src/java/edu/umd/cs/findbugs/graph/MergeVertices.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2691,
13371,
12,
694,
32,
6475,
559,
34,
5253,
694,
16,
5601,
559,
314,
16,
12541,
11328,
4240,
32,
6475,
559,
34,
3894,
4240,
16,
202,
202,
4137,
6364,
8691,
32,
4137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2691,
13371,
12,
694,
32,
6475,
559,
34,
5253,
694,
16,
5601,
559,
314,
16,
12541,
11328,
4240,
32,
6475,
559,
34,
3894,
4240,
16,
202,
202,
4137,
6364,
8691,
32,
4137,
... |
printError(args[0], e); | printError(args[pos], e); | public static void main(String[] args) { MibLoader loader = new MibLoader(); Mib mib = null; File file; URL url; Iterator iter; // Check command-line arguments if (args.length < 1) { printHelp("No MIB file or URL specified"); System.exit(1); } else if (args.length > 1) { printHelp("Only one MIB file or URL may be specified"); System.exit(1); } // Parse MIB file try { try { url = new URL(args[0]); } catch (MalformedURLException e) { url = null; } if (url == null) { file = new File(args[0]); loader.addDir(file.getParentFile()); mib = loader.load(file); } else { mib = loader.load(url); } if (mib.getLog().warningCount() > 0) { mib.getLog().printTo(System.err); } } catch (FileNotFoundException e) { printError(args[0], e); System.exit(1); } catch (IOException e) { printError(args[0], e); System.exit(1); } catch (MibLoaderException e) { e.getLog().printTo(System.err); System.exit(1); } catch (RuntimeException e) { printInternalError(e); System.exit(1); } // Print MIB file iter = mib.getAllSymbols().iterator(); while (iter.hasNext()) { System.out.println(iter.next()); System.out.println(); } } | 48557 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48557/a370b262551b141ff0ab967a6bf108ca77d81439/MibblePrinter.java/buggy/src/java/net/percederberg/mibble/MibblePrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
490,
495,
2886,
225,
4088,
273,
394,
490,
495,
2886,
5621,
3639,
490,
495,
3639,
312,
495,
273,
446,
31,
3639,
1387,
4202,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
3639,
490,
495,
2886,
225,
4088,
273,
394,
490,
495,
2886,
5621,
3639,
490,
495,
3639,
312,
495,
273,
446,
31,
3639,
1387,
4202,
585,
... |
setAutoinc(); | setAutoincUse(); | public void modifyText(ModifyEvent e) { // We have new content: change ci connection: ci = transMeta.findDatabase(wConnection.getText()); setAutoinc(); setSequence(); } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/8752f3f5e66d59d9e3a97e797cef7bc045d25df6/CombinationLookupDialog.java/clean/src/be/ibridge/kettle/trans/step/combinationlookup/CombinationLookupDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
9506,
202,
95,
6862,
202,
759,
1660,
1240,
394,
913,
30,
2549,
9039,
1459,
30,
6862,
202,
8450,
273,
906,
2781,
18,
4720,
4254,
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,
4697,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
9506,
202,
95,
6862,
202,
759,
1660,
1240,
394,
913,
30,
2549,
9039,
1459,
30,
6862,
202,
8450,
273,
906,
2781,
18,
4720,
4254,
12,... |
node != tree) | node != tree && ((FunctionNode) node.getProp(Node.FUNCTION_PROP)).getFunctionType() == FunctionNode.FUNCTION_EXPRESSION_STATEMENT) | protected void addVariables(Node tree, VariableTable vars) { // OPT: a whole pass to collect variables seems expensive. // Could special case to go into statements only. boolean inFunction = tree.getType() == TokenStream.FUNCTION; PreorderNodeIterator iterator = tree.getPreorderIterator(); Hashtable ht = null; Node node; while ((node = iterator.nextNode()) != null) { int nodeType = node.getType(); if (inFunction && nodeType == TokenStream.FUNCTION && node != tree) { // In a function with both "var x" and "function x", // disregard the var statement, independent of order. String name = node.getString(); if (name == null) continue; vars.removeLocal(name); if (ht == null) ht = new Hashtable(); ht.put(name, Boolean.TRUE); } if (nodeType != TokenStream.VAR) continue; ShallowNodeIterator i = node.getChildIterator(); while (i.hasMoreElements()) { Node n = i.nextNode(); if (ht == null || ht.get(n.getString()) == null) vars.addLocal(n.getString()); } } } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/3eb542db2c80d7521ea272c802d999a32072bfb6/NodeTransformer.java/clean/src/org/mozilla/javascript/NodeTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
6158,
12,
907,
2151,
16,
7110,
1388,
4153,
13,
288,
3639,
368,
16456,
30,
279,
7339,
1342,
358,
3274,
3152,
12001,
19326,
18,
3639,
368,
14312,
4582,
648,
358,
1960,
1368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
6158,
12,
907,
2151,
16,
7110,
1388,
4153,
13,
288,
3639,
368,
16456,
30,
279,
7339,
1342,
358,
3274,
3152,
12001,
19326,
18,
3639,
368,
14312,
4582,
648,
358,
1960,
1368,... |
public void testNonTestCaseError() throws Exception { if (printMessages) System.out.println("----testNonTestCaseError-----"); final OpenDefinitionsDocument doc = setupDocument(NON_TESTCASE_TEXT); final File file = new File(_tempDir, "NonTestCase.java"); doc.saveFile(new FileSelector(file)); JUnitTestListener listener = new JUnitNonTestListener(); _model.addListener(listener); if (printMessages) System.out.println("before compile"); // Doesn't reset interactions because interpreter is not used doc.startCompile(); if (printMessages) System.out.println("after compile"); synchronized(listener) { doc.startJUnit(); listener.assertJUnitStartCount(1); if (printMessages) System.out.println("waiting for test"); listener.wait(); } if (printMessages) System.out.println("after test"); // Check events fired listener.assertJUnitEndCount(1); listener.assertNonTestCaseCount(1); listener.assertJUnitSuiteStartedCount(0); listener.assertJUnitTestStartedCount(0); listener.assertJUnitTestEndedCount(0); _model.removeListener(listener); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/070ce5905e33fc289f79bfc0035862d6493d03f5/GlobalModelJUnitTest.java/clean/drjava/src/edu/rice/cs/drjava/model/GlobalModelJUnitTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
3989,
4709,
2449,
668,
1435,
15069,
503,
95,
430,
12,
1188,
5058,
13,
3163,
18,
659,
18,
8222,
2932,
553,
3813,
3989,
4709,
2449,
668,
13465,
8863,
6385,
3678,
7130,
2519,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
3989,
4709,
2449,
668,
1435,
15069,
503,
95,
430,
12,
1188,
5058,
13,
3163,
18,
659,
18,
8222,
2932,
553,
3813,
3989,
4709,
2449,
668,
13465,
8863,
6385,
3678,
7130,
2519,
24... | ||
throw new MobyException(newline + "Unknown error occured while creating String[]." | throw new MobyException(newline + "Unknown error occured while creating String[]." | public static String[] getWrappedSimplesFromCollection(String name, String xml) throws MobyException { Element[] elements = getWrappedSimplesFromCollection(name, getDOMDocument(xml) .getRootElement()); String[] strings = new String[elements.length]; XMLOutputter output = new XMLOutputter(Format.getPrettyFormat()); for (int i = 0; i < elements.length; i++) { try { strings[i] = output.outputString(elements[i]); } catch (Exception e) { throw new MobyException(newline + "Unknown error occured while creating String[]." + newline + Utils.format(e.getLocalizedMessage(), 3)); } } return strings; } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/bd67d7d50fb035c546da89a7a2782c52b33c9b88/XMLUtilities.java/clean/trunk/taverna1.0/taverna-biomoby/src/main/java/org/biomoby/client/taverna/plugin/XMLUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
8526,
336,
17665,
7993,
6089,
1265,
2532,
12,
780,
508,
16,
514,
2025,
13,
1082,
202,
15069,
490,
947,
93,
503,
288,
202,
202,
1046,
8526,
2186,
273,
336,
17665,
799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
8526,
336,
17665,
7993,
6089,
1265,
2532,
12,
780,
508,
16,
514,
2025,
13,
1082,
202,
15069,
490,
947,
93,
503,
288,
202,
202,
1046,
8526,
2186,
273,
336,
17665,
799... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.