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
break _loop1108;
break _loop1109;
public final void definetemptablestate(AST _t) throws RecognitionException { AST definetemptablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1089 = _t; AST tmp735_AST_in = (AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case PRIVATE: case PUBLIC: case TEMPTABLE: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case TEMPTABLE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp736_AST_in = (AST)_t; match(_t,TEMPTABLE); _t = _t.getNextSibling(); AST tmp737_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNDO: { AST tmp738_AST_in = (AST)_t; match(_t,UNDO); _t = _t.getNextSibling(); break; } case NOUNDO: { AST tmp739_AST_in = (AST)_t; match(_t,NOUNDO); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: case NAMESPACEPREFIX: case NAMESPACEURI: case REFERENCEONLY: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NAMESPACEURI: { namespace_uri(_t); _t = _retTree; break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: case NAMESPACEPREFIX: case REFERENCEONLY: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NAMESPACEPREFIX: { namespace_prefix(_t); _t = _retTree; break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: case REFERENCEONLY: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case REFERENCEONLY: { AST tmp740_AST_in = (AST)_t; match(_t,REFERENCEONLY); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LIKE: { def_table_like(_t); _t = _retTree; break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case RCODEINFORMATION: case BEFORETABLE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case EOF: case PERIOD: case FIELD: case INDEX: case RCODEINFORMATION: case BEFORETABLE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BEFORETABLE: { AST __t1099 = _t; AST tmp741_AST_in = (AST)_t; match(_t,BEFORETABLE); _t = _t.getFirstChild(); AST tmp742_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); _t = __t1099; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case FIELD: case INDEX: case RCODEINFORMATION: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RCODEINFORMATION: { AST tmp743_AST_in = (AST)_t; match(_t,RCODEINFORMATION); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case FIELD: case INDEX: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1102: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==FIELD)) { def_table_field(_t); _t = _retTree; } else { break _loop1102; } } while (true); } { _loop1113: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==INDEX)) { AST __t1104 = _t; AST tmp744_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); AST tmp745_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop1108: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_12.member(_t.getType()))) { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AS: { AST tmp746_AST_in = (AST)_t; match(_t,AS); _t = _t.getNextSibling(); break; } case IS: { AST tmp747_AST_in = (AST)_t; match(_t,IS); _t = _t.getNextSibling(); break; } case PRIMARY: case UNIQUE: case WORDINDEX: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUE: { AST tmp748_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getNextSibling(); break; } case PRIMARY: { AST tmp749_AST_in = (AST)_t; match(_t,PRIMARY); _t = _t.getNextSibling(); break; } case WORDINDEX: { AST tmp750_AST_in = (AST)_t; match(_t,WORDINDEX); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop1108; } } while (true); } { int _cnt1112=0; _loop1112: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ID)) { AST tmp751_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop1111: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASCENDING: { AST tmp752_AST_in = (AST)_t; match(_t,ASCENDING); _t = _t.getNextSibling(); break; } case DESCENDING: { AST tmp753_AST_in = (AST)_t; match(_t,DESCENDING); _t = _t.getNextSibling(); break; } case CASESENSITIVE: { AST tmp754_AST_in = (AST)_t; match(_t,CASESENSITIVE); _t = _t.getNextSibling(); break; } default: { break _loop1111; } } } while (true); } } else { if ( _cnt1112>=1 ) { break _loop1112; } else {throw new NoViableAltException(_t);} } _cnt1112++; } while (true); } _t = __t1104; _t = _t.getNextSibling(); } else { break _loop1113; } } while (true); } state_end(_t); _t = _retTree; _t = __t1089; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2217, 278, 5744, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2217, 278, 5744, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2217, 278, 5744, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2217, 278, 5744, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422...
private void moveCaretTo(final PsiElement newCaretPosition) {
private static void moveCaretTo(final PsiElement newCaretPosition) {
private void moveCaretTo(final PsiElement newCaretPosition) { Project project = newCaretPosition.getProject(); final PsiFile psiFile = newCaretPosition.getContainingFile(); final Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor(); if (editor != null && IJSwingUtilities.hasFocus(editor.getComponent())) { final PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument()); if (file == psiFile) { editor.getCaretModel().moveToOffset(newCaretPosition.getTextRange().getEndOffset()); editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE); } } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/0975c4db4a60aef8a1ae423267ef8f7fc2874e96/JavaDocLocalInspection.java/clean/inspections/impl/com/intellij/codeInspection/javaDoc/JavaDocLocalInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 3635, 39, 20731, 774, 12, 6385, 453, 7722, 1046, 394, 39, 20731, 2555, 13, 288, 1377, 5420, 1984, 273, 394, 39, 20731, 2555, 18, 588, 4109, 5621, 1377, 727, 453, 7722, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3635, 39, 20731, 774, 12, 6385, 453, 7722, 1046, 394, 39, 20731, 2555, 13, 288, 1377, 5420, 1984, 273, 394, 39, 20731, 2555, 18, 588, 4109, 5621, 1377, 727, 453, 7722, 8...
PostProcessUtil.findRelations(osw.getObjectStore(),
PostProcessUtil.findConnectingClasses(osw.getObjectStore(),
protected void insertCollectionField(Class firstClass, String firstClassFieldName, Class connectingClass, String connectingClassFieldName, Class secondClass, String createFieldName, boolean createInFirstClass) throws Exception { InterMineObject lastDestObject = null; Set newCollection = new HashSet(); LOG.info("Beginning insertReferences(" + firstClass.getName() + ", " + firstClassFieldName + ", " + connectingClass.getName() + ", " + connectingClassFieldName + "," + secondClass.getName() + ", " + createFieldName + ", " + createInFirstClass + ")"); Iterator resIter = PostProcessUtil.findRelations(osw.getObjectStore(), firstClass, firstClassFieldName, connectingClass, connectingClassFieldName, secondClass, createInFirstClass); // results will be firstClass ; destClass (ordered by firstClass) osw.beginTransaction(); int count = 0; while (resIter.hasNext()) { ResultsRow rr = (ResultsRow) resIter.next(); InterMineObject thisSourceObject; InterMineObject thisDestObject; if (createInFirstClass) { thisDestObject = (InterMineObject) rr.get(0); thisSourceObject = (InterMineObject) rr.get(1); } else { thisDestObject = (InterMineObject) rr.get(1); thisSourceObject = (InterMineObject) rr.get(0);; } if (lastDestObject == null || !thisDestObject.getId().equals(lastDestObject.getId())) { if (lastDestObject != null) { try { InterMineObject tempObject = PostProcessUtil.cloneInterMineObject(lastDestObject); Set oldCollection = (Set) TypeUtil.getFieldValue(tempObject, createFieldName); newCollection.addAll(oldCollection); TypeUtil.setFieldValue(tempObject, createFieldName, newCollection); count += newCollection.size(); osw.store(tempObject); } catch (IllegalAccessException e) { LOG.error("Object with ID: " + thisDestObject.getId() + " has no " + createFieldName + " field"); } } newCollection = new HashSet(); } newCollection.add(thisSourceObject); lastDestObject = thisDestObject; } if (lastDestObject != null) { // clone so we don't change the ObjectStore cache InterMineObject tempObject = PostProcessUtil.cloneInterMineObject(lastDestObject); TypeUtil.setFieldValue(tempObject, createFieldName, newCollection); count += newCollection.size(); osw.store(tempObject); } LOG.info("Created " + count + " references in " + secondClass.getName() + " to " + firstClass.getName() + " via " + connectingClass.getName()); osw.commitTransaction(); // now ANALYSE tables relation to class that has been altered - may be rows added // to indirection tables if (osw instanceof ObjectStoreWriterInterMineImpl) { ClassDescriptor cld = model.getClassDescriptorByName(secondClass.getName()); DatabaseUtil.analyse(((ObjectStoreWriterInterMineImpl) osw).getDatabase(), cld, false); } }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/f26068b71d54128a90f920a8876cce13b42dae48/CreateReferences.java/buggy/flymine/model/genomic/src/java/org/flymine/postprocess/CreateReferences.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 2243, 2532, 974, 12, 797, 1122, 797, 16, 514, 1122, 797, 7287, 16, 29159, 1659, 14244, 797, 16, 514, 14244, 797, 7287, 16, 29159, 1659, 2205, 797, 16, 514, 752, 7287, 16, 291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2243, 2532, 974, 12, 797, 1122, 797, 16, 514, 1122, 797, 7287, 16, 29159, 1659, 14244, 797, 16, 514, 14244, 797, 7287, 16, 29159, 1659, 2205, 797, 16, 514, 752, 7287, 16, 291...
ACC_PUBLIC + ACC_FINAL + ACC_SYNTHETIC,
ACC_PUBLIC + ACC_SYNTHETIC,
private void addMixinMethods(final MixinFieldInfo fieldInfo, final MixinDefinition mixinDef) { for (Iterator it3 = mixinDef.getMethodsToIntroduce().iterator(); it3.hasNext();) { MethodInfo methodInfo = (MethodInfo) it3.next(); final String methodName = methodInfo.getName(); final String methodSignature = methodInfo.getSignature(); if (m_addedMethods.contains(AlreadyAddedMethodVisitor.getMethodKey(methodName, methodSignature))) { continue; } CodeVisitor mv = cv.visitMethod( ACC_PUBLIC + ACC_FINAL + ACC_SYNTHETIC, methodName, methodSignature, null, null ); if (fieldInfo.isStatic) { mv.visitFieldInsn( GETSTATIC, m_declaringTypeName, fieldInfo.fieldName, fieldInfo.mixinClassInfo.getSignature() ); } else { mv.visitVarInsn(ALOAD, 0); mv.visitFieldInsn( GETFIELD, m_declaringTypeName, fieldInfo.fieldName, fieldInfo.mixinClassInfo.getSignature() ); } AsmHelper.loadArgumentTypes(mv, Type.getArgumentTypes(methodSignature), false); mv.visitMethodInsn( INVOKEVIRTUAL, fieldInfo.mixinClassInfo.getName().replace('.', '/'), methodName, methodSignature ); AsmHelper.addReturnStatement(mv, Type.getReturnType(methodSignature)); mv.visitMaxs(0, 0); } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/660ededc99db4809c4e2a5dcae2820d529be093b/AddMixinMethodsVisitor.java/clean/aspectwerkz4/src/main/org/codehaus/aspectwerkz/transform/inlining/weaver/AddMixinMethodsVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 14439, 4712, 12, 6385, 490, 10131, 974, 966, 22518, 16, 727, 490, 10131, 1852, 11682, 3262, 13, 288, 3639, 364, 261, 3198, 518, 23, 273, 11682, 3262, 18, 588, 4712, 17864,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 14439, 4712, 12, 6385, 490, 10131, 974, 966, 22518, 16, 727, 490, 10131, 1852, 11682, 3262, 13, 288, 3639, 364, 261, 3198, 518, 23, 273, 11682, 3262, 18, 588, 4712, 17864,...
Tree[] vargs = gen.mkRefs(pos, forward.nextValueParams());
Tree[] vargs = gen.mkLocalRefs(pos, forward.nextValueParams());
private Tree[] genSuperMethods() { if (context.supers.size() == 0) return Tree.EMPTY_ARRAY; Tree[] trees = new Tree[context.supers.size()]; Iterator entries = context.supers.entrySet().iterator(); for (int i = 0; i < trees.length; i++) { Map.Entry entry = (Map.Entry)entries.next(); Symbol method = (Symbol)entry.getKey(); Symbol forward = (Symbol)entry.getValue(); int pos = forward.pos; Tree[] targs = gen.mkTypeRefs(pos, forward.nextTypeParams()); Tree[] vargs = gen.mkRefs(pos, forward.nextValueParams()); Tree fun = gen.Select(gen.Super(pos, context.clasz), method); trees[i] = gen.DefDef(forward, gen.mkApplyTV(fun,targs,vargs)); } return trees; }
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/ec2cf46df2a18f9bcc56e8ac63f27d7fed5c12a6/ExplicitOuterClassesPhase.java/buggy/sources/scalac/transformer/ExplicitOuterClassesPhase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 4902, 8526, 3157, 8051, 4712, 1435, 288, 5411, 309, 261, 2472, 18, 2859, 414, 18, 1467, 1435, 422, 374, 13, 327, 4902, 18, 13625, 67, 8552, 31, 5411, 4902, 8526, 11491, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 4902, 8526, 3157, 8051, 4712, 1435, 288, 5411, 309, 261, 2472, 18, 2859, 414, 18, 1467, 1435, 422, 374, 13, 327, 4902, 18, 13625, 67, 8552, 31, 5411, 4902, 8526, 11491, 273, 394, ...
public ICDIExpressionManager getExpressionManager() {
public ExpressionManager getExpressionManager() {
public ICDIExpressionManager getExpressionManager() { return expressionManager; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1c05c517d039842b343004ffe8bceb4adcc93b6c/Session.java/buggy/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/Session.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 26899, 2565, 2300, 1318, 16183, 1318, 1435, 288, 202, 202, 2463, 2652, 1318, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26899, 2565, 2300, 1318, 16183, 1318, 1435, 288, 202, 202, 2463, 2652, 1318, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
final String rootTagName = getRootTagName(); if (myLastResult != null && myFileDescription.getRootTagName().equals(rootTagName) && myFileDescription.isMyFile(myXmlFile, module)) {
final NullableLazyValue<String> rootTagName = new NullableLazyValue<String>() { protected String compute() { return getRootTagName(); } }; if (myLastResult != null && myFileDescription.getRootTagName().equals(rootTagName.getValue()) && myFileDescription.isMyFile(myXmlFile, module)) {
public final List<DomEvent> computeFileElement(boolean fireEvents, @Nullable DomFileElement changedRoot) { if (myComputing || myDomManager.getProject().isDisposed()) return Collections.emptyList(); myComputing = true; try { if (!myXmlFile.isValid()) { if (fireEvents && myLastResult != null) { return Arrays.<DomEvent>asList(new ElementUndefinedEvent(myLastResult)); } return Collections.emptyList(); } final Module module = ModuleUtil.findModuleForPsiElement(myXmlFile); final String rootTagName = getRootTagName(); if (myLastResult != null && myFileDescription.getRootTagName().equals(rootTagName) && myFileDescription.isMyFile(myXmlFile, module)) { List<DomEvent> list = new SmartList<DomEvent>(); setInModel(changedRoot, list, myLastResult, fireEvents); return list; } myModCount++; final XmlFile originalFile = (XmlFile)myXmlFile.getOriginalFile(); final DomFileDescription<T> description = originalFile != null ? myDomManager.getOrCreateCachedValueProvider(originalFile).getFileDescription() : findFileDescription(rootTagName, module); return saveResult(description, fireEvents, changedRoot); } finally { myComputing = false; } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/d9776399c742c712d5285d513df6dd3557dacb55/FileDescriptionCachedValueProvider.java/clean/dom/impl/src/com/intellij/util/xml/impl/FileDescriptionCachedValueProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 987, 32, 8832, 1133, 34, 3671, 812, 1046, 12, 6494, 4452, 3783, 16, 632, 13349, 12965, 812, 1046, 3550, 2375, 13, 288, 565, 309, 261, 4811, 7703, 310, 747, 3399, 8832, 1318, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 987, 32, 8832, 1133, 34, 3671, 812, 1046, 12, 6494, 4452, 3783, 16, 632, 13349, 12965, 812, 1046, 3550, 2375, 13, 288, 565, 309, 261, 4811, 7703, 310, 747, 3399, 8832, 1318, ...
assertEquals("wrong selection", "fIterator", preview.substring(selection.x, selection.x + selection.y));
assertEquals("wrong selection", "iterator", preview.substring(selection.x, selection.x + selection.y));
public void testAssignToLocal2() throws Exception { IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null); StringBuffer buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("import java.util.Vector;\n"); buf.append("public class E {\n"); buf.append(" public Vector goo() {\n"); buf.append(" return null;\n"); buf.append(" }\n"); buf.append(" public void foo() {\n"); buf.append(" goo().iterator();\n"); buf.append(" }\n"); buf.append("}\n"); ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null); int offset= buf.toString().indexOf("goo().iterator()"); CorrectionContext context= getCorrectionContext(cu, offset, 0); assertCorrectContext(context); ArrayList proposals= new ArrayList(); JavaCorrectionProcessor.collectCorrections(context, proposals); assertNumberOf("proposals", proposals.size(), 3); assertCorrectLabels(proposals); boolean doField= true, doLocal= true; for (int i= 0; i < proposals.size(); i++) { Object curr= proposals.get(i); if (!(curr instanceof AssignToVariableAssistProposal)) { continue; } AssignToVariableAssistProposal proposal= (AssignToVariableAssistProposal) curr; if (proposal.getVariableKind() == AssignToVariableAssistProposal.FIELD) { assertTrue("same proposal kind", doField); doField= false; String preview= proposal.getCompilationUnitChange().getPreviewContent(); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("import java.util.Iterator;\n"); buf.append("import java.util.Vector;\n"); buf.append("public class E {\n"); buf.append(" private Iterator fIterator;\n"); buf.append(" public Vector goo() {\n"); buf.append(" return null;\n"); buf.append(" }\n"); buf.append(" public void foo() {\n"); buf.append(" fIterator = goo().iterator();\n"); buf.append(" }\n"); buf.append("}\n"); assertEqualString(preview, buf.toString()); Point selection= proposal.getSelection(new Document(preview)); assertEquals("wrong selection", "fIterator", preview.substring(selection.x, selection.x + selection.y)); } else if (proposal.getVariableKind() == AssignToVariableAssistProposal.LOCAL) { assertTrue("same proposal kind", doLocal); doLocal= false; String preview= proposal.getCompilationUnitChange().getPreviewContent(); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("import java.util.Iterator;\n"); buf.append("import java.util.Vector;\n"); buf.append("public class E {\n"); buf.append(" public Vector goo() {\n"); buf.append(" return null;\n"); buf.append(" }\n"); buf.append(" public void foo() {\n"); buf.append(" Iterator iterator = goo().iterator();\n"); buf.append(" }\n"); buf.append("}\n"); assertEqualString(preview, buf.toString()); Point selection= proposal.getSelection(new Document(preview)); assertEquals("wrong selection", "iterator", preview.substring(selection.x, selection.x + selection.y)); } } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/728607172762cb4308ae4662cea607a0035d6e5b/AssistQuickFixTest.java/clean/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4910, 774, 2042, 22, 1435, 1216, 1185, 288, 202, 202, 45, 2261, 7456, 2298, 21, 33, 284, 1830, 3899, 18, 2640, 2261, 7456, 2932, 3813, 21, 3113, 629, 16, 446, 1769,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4910, 774, 2042, 22, 1435, 1216, 1185, 288, 202, 202, 45, 2261, 7456, 2298, 21, 33, 284, 1830, 3899, 18, 2640, 2261, 7456, 2932, 3813, 21, 3113, 629, 16, 446, 1769,...
result = "<img src=\""+imageUrl+"red.gif\" border=\"0\">&nbsp;"+result+"<a href=\"ChangeText?meta_id="+meta_id+"&txt="+noStr+"&type=1\"><img src=\""+imageUrl+"txt.gif\" border=\"0\"></a>" ; } else {
result = "<img src=\""+imageUrl+"red.gif\" border=\"0\">&nbsp;"+result+"<a href=\"ChangeText?meta_id="+meta_id+"&txt="+noStr+"\"><img src=\""+imageUrl+"txt.gif\" border=\"0\"></a>" ; } else if (!"".equals(result)) {
public String tagText (Properties attributes, PatternMatcher patMat) { String mode = attributes.getProperty("mode") ; if ( ( mode != null && !"".equals(mode) ) && ( ( textMode && "read".startsWith(mode) ) // With mode="read", we don't want anything in textMode. || ( !textMode && "write".startsWith(mode) ) // With mode="write", we don't want anything it not in textMode. ) ) { return "" ; } // Get the 'no'-attribute of the <?imcms:text no="..."?>-tag String noStr = attributes.getProperty("no") ; String result = null != noStr ? (String)textMap.get(noStr) : (String)textMap.get(noStr = String.valueOf(implicitTextNumber++)) ; if (result == null) { result = "" ; } if (textMode) { result = "<img src=\""+imageUrl+"red.gif\" border=\"0\">&nbsp;"+result+"<a href=\"ChangeText?meta_id="+meta_id+"&txt="+noStr+"&type=1\"><img src=\""+imageUrl+"txt.gif\" border=\"0\"></a>" ; } else { String tempAtt = null ; if ((tempAtt = attributes.getProperty("pre")) != null) { result = tempAtt + result ; } if ((tempAtt = attributes.getProperty("post")) != null) { result = result + tempAtt ; } } return result ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/7da5c0d895cc091fbe46472b524faef9a9894818/ImcmsTagSubstitution.java/buggy/server/src/imcode/server/parser/ImcmsTagSubstitution.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1047, 1528, 261, 2297, 1677, 16, 6830, 6286, 9670, 15947, 13, 288, 202, 780, 1965, 273, 225, 1677, 18, 588, 1396, 2932, 3188, 7923, 274, 202, 430, 261, 261, 1965, 480, 446, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1047, 1528, 261, 2297, 1677, 16, 6830, 6286, 9670, 15947, 13, 288, 202, 780, 1965, 273, 225, 1677, 18, 588, 1396, 2932, 3188, 7923, 274, 202, 430, 261, 261, 1965, 480, 446, 5...
if (isEnabled()==false) return false; Iterator selection = getStructuredSelection().iterator(); if (!selection.hasNext()) { return false; } Object object = selection.next(); if (selection.hasNext()) { return false; } return hasPropertyPagesFor(object);
if (!isEnabled()) return false; return isApplicableForSelection(getStructuredSelection());
public boolean isApplicableForSelection() { if (isEnabled()==false) return false; Iterator selection = getStructuredSelection().iterator(); if (!selection.hasNext()) { return false; } Object object = selection.next(); if (selection.hasNext()) { return false; } return hasPropertyPagesFor(object);}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ae9406ca544b856fdac3df1b4951b06410fdcf52/PropertyDialogAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/dialogs/PropertyDialogAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 353, 27873, 1290, 6233, 1435, 288, 202, 430, 261, 291, 1526, 1435, 631, 5743, 13, 327, 629, 31, 202, 3198, 4421, 273, 1322, 8813, 2862, 6233, 7675, 9838, 5621, 202, 430, 16051, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 353, 27873, 1290, 6233, 1435, 288, 202, 430, 261, 291, 1526, 1435, 631, 5743, 13, 327, 629, 31, 202, 3198, 4421, 273, 1322, 8813, 2862, 6233, 7675, 9838, 5621, 202, 430, 16051, 107...
public static DSASignature sign(DSAGroup g, DSAPrivateKey x, BigInteger m, Random r) { BigInteger k; do { k=new NativeBigInteger(256, r); } while ((k.compareTo(g.getQ())>-1) || (k.compareTo(BigInteger.ZERO)==0)); return sign(g, x, k, m);
public static DSASignature sign(DSAGroup g, DSAPrivateKey x, BigInteger k, BigInteger m) { BigInteger r=g.getG().modPow(k, g.getP()).mod(g.getQ()); BigInteger kInv=k.modInverse(g.getQ()); return sign(g, x, r, kInv, m);
public static DSASignature sign(DSAGroup g, DSAPrivateKey x, BigInteger m, Random r) { BigInteger k; do { k=new NativeBigInteger(256, r); } while ((k.compareTo(g.getQ())>-1) || (k.compareTo(BigInteger.ZERO)==0)); return sign(g, x, k, m); }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/463e1c2814ef80eab9cbef79e58a1594fa8ec102/DSA.java/buggy/src/freenet/crypt/DSA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 463, 5233, 5374, 1573, 12, 19748, 1114, 314, 16, 463, 5233, 10824, 619, 16, 10246, 312, 16, 6862, 565, 8072, 436, 13, 288, 202, 24198, 417, 31, 202, 2896, 288, 202, 565, 417,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 463, 5233, 5374, 1573, 12, 19748, 1114, 314, 16, 463, 5233, 10824, 619, 16, 10246, 312, 16, 6862, 565, 8072, 436, 13, 288, 202, 24198, 417, 31, 202, 2896, 288, 202, 565, 417,...
public void onEncode(ClientKey key, ClientPutState state) {
public void onEncode(BaseClientKey key, ClientPutState state) {
public void onEncode(ClientKey key, ClientPutState state) { this.uri = key.getURI(); client.onGeneratedURI(uri, this); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/c6aa82ac420d1cc2277bea0c09c5c8fcbaf51ad0/ClientPutter.java/buggy/src/freenet/client/async/ClientPutter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 603, 5509, 12, 1227, 653, 498, 16, 2445, 6426, 1119, 919, 13, 288, 202, 202, 2211, 18, 1650, 273, 498, 18, 588, 3098, 5621, 202, 202, 2625, 18, 265, 7823, 3098, 12, 165...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 603, 5509, 12, 1227, 653, 498, 16, 2445, 6426, 1119, 919, 13, 288, 202, 202, 2211, 18, 1650, 273, 498, 18, 588, 3098, 5621, 202, 202, 2625, 18, 265, 7823, 3098, 12, 165...
private void insertBefore(Handler handler) throws PhaseException { String beforename = handler.getHandlerDesc().getRules().getBefore(); //we keep going foward, till the before handler is found, if we do not find him just add the handler //once we found the before handler int beforeHandlerIndex = -1; for (int i = 0; i < handlers.size(); i++) { Handler temphandler = (Handler) handlers.get(i); if (temphandler.getName().getLocalPart().equals(beforename)) { if (i == 0) { if (phasefirstset) { throw new PhaseException("Can't insert handler before handler '" + temphandler.getName() + "', which is marked phaseFirst"); } } beforeHandlerIndex = i; break; } } if(beforeHandlerIndex >= 0){ //java arraylist does the shift for us handlers.add(beforeHandlerIndex,handler); }else{ handlers.add(handler); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/de15cf345d64b03258598f2fb545b05204d2bdcd/Phase.java/clean/modules/core/src/org/apache/axis2/engine/Phase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 18004, 12, 1503, 1838, 13, 1216, 19459, 503, 288, 3639, 514, 1865, 529, 273, 1838, 18, 588, 1503, 4217, 7675, 588, 4478, 7675, 588, 4649, 5621, 13491, 368, 1814, 3455, 8554, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18004, 12, 1503, 1838, 13, 1216, 19459, 503, 288, 3639, 514, 1865, 529, 273, 1838, 18, 588, 1503, 4217, 7675, 588, 4478, 7675, 588, 4649, 5621, 13491, 368, 1814, 3455, 8554, 28...
log.debug("Suspect is " + address + ",completed " + flushOkCompleted
if(log.isDebugEnabled()) log.debug("Suspect is " + address + ",completed " + flushOkCompleted
private void onSuspect(Address address) { boolean flushOkCompleted = false; Message m = null; long viewID = 0; synchronized (sharedLock) { suspected.add(address); flushMembers.removeAll(suspected); viewID = currentViewId(); flushOkCompleted = flushOkSet.size() > 0 && flushOkSet.containsAll(flushMembers); if (flushOkCompleted) { m = new Message(flushCaller, localAddress, null); } } if (flushOkCompleted) { m.putHeader(getName(), new FlushHeader(FlushHeader.FLUSH_COMPLETED, viewID)); passDown(new Event(Event.MSG, m)); log.debug(localAddress + " sent FLUSH_COMPLETED message to " + flushCaller); } log.debug("Suspect is " + address + ",completed " + flushOkCompleted + ", flushOkSet " + flushOkSet + " flushMembers " + flushMembers); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/c6c36d6735dc44ea63c9889b4269856d34bd5108/FLUSH.java/buggy/src/org/jgroups/protocols/pbcast/FLUSH.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 603, 55, 407, 1181, 12, 1887, 1758, 13, 288, 202, 202, 6494, 3663, 8809, 9556, 273, 629, 31, 202, 202, 1079, 312, 273, 446, 31, 202, 202, 5748, 1476, 734, 273, 374, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 603, 55, 407, 1181, 12, 1887, 1758, 13, 288, 202, 202, 6494, 3663, 8809, 9556, 273, 629, 31, 202, 202, 1079, 312, 273, 446, 31, 202, 202, 5748, 1476, 734, 273, 374, 31...
if (myLexer.getTokenType() == TokenType.COLON) {
if (myLexer.getTokenType() == TokenTypeEx.COLON) {
private PackageSet parsePattern() throws ParsingException { String scope = parseScope(); String modulePattern = parseModulePattern(); if (myLexer.getTokenType() == TokenType.COLON) { if (scope == PatternPackageSet.SCOPE_ANY && modulePattern == null) { error("(test|lib|src)[modulename] expected before :"); } myLexer.advance(); } String pattern = parseAspectJPattern(); return new PatternPackageSet(pattern, scope, modulePattern); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/7cc49f57fd75f032b80560ecde54c4a99bda9ac7/PackageSetFactoryImpl.java/clean/source/com/intellij/packageDependencies/packageSet/PackageSetFactoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 7508, 694, 1109, 3234, 1435, 1216, 19761, 503, 288, 1377, 514, 2146, 273, 1109, 3876, 5621, 1377, 514, 1605, 3234, 273, 1109, 3120, 3234, 5621, 1377, 309, 261, 4811, 13356, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 7508, 694, 1109, 3234, 1435, 1216, 19761, 503, 288, 1377, 514, 2146, 273, 1109, 3876, 5621, 1377, 514, 1605, 3234, 273, 1109, 3120, 3234, 5621, 1377, 309, 261, 4811, 13356, 18, 588, ...
if(logMINOR) Logger.minor(this, "Registering retry count "+retryCount+" with prioclass "+priorityClass);
if(logMINOR) Logger.minor(this, "Registering retry count "+rc+" with prioclass "+priorityClass);
private synchronized void addToGrabArray(short priorityClass, int retryCount, Object client, ClientRequester cr, SendableRequest req) { if((priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS) || (priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS)) throw new IllegalStateException("Invalid priority: "+priorityClass+" - range is "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" (most important) to "+RequestStarter.MINIMUM_PRIORITY_CLASS+" (least important)"); // Priority SortedVectorByNumber prio = priorities[priorityClass]; if(prio == null) { prio = new SortedVectorByNumber(); priorities[priorityClass] = prio; } // Client SectoredRandomGrabArrayWithInt clientGrabber = (SectoredRandomGrabArrayWithInt) prio.get(retryCount); if(clientGrabber == null) { clientGrabber = new SectoredRandomGrabArrayWithInt(random, retryCount); prio.add(clientGrabber); if(logMINOR) Logger.minor(this, "Registering retry count "+retryCount+" with prioclass "+priorityClass); } // Request SectoredRandomGrabArrayWithClient requestGrabber = (SectoredRandomGrabArrayWithClient) clientGrabber.getGrabber(client); if(requestGrabber == null) { requestGrabber = new SectoredRandomGrabArrayWithClient(client, random); clientGrabber.addGrabber(client, requestGrabber); } clientGrabber.add(cr, req); }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/fdaec8394c29d857afa2fe31e696f7a483c5ad99/ClientRequestScheduler.java/clean/src/freenet/client/async/ClientRequestScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 9604, 14571, 70, 1076, 12, 6620, 4394, 797, 16, 509, 30084, 16, 1033, 1004, 16, 2445, 30260, 4422, 16, 2479, 429, 691, 1111, 13, 288, 202, 202, 430, 12443, 8457, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 9604, 14571, 70, 1076, 12, 6620, 4394, 797, 16, 509, 30084, 16, 1033, 1004, 16, 2445, 30260, 4422, 16, 2479, 429, 691, 1111, 13, 288, 202, 202, 430, 12443, 8457, 7...
void handleValueChange(IObservableValue source, ValueDiff diff);
void handleValueChange(ValueChangeEvent event);
void handleValueChange(IObservableValue source, ValueDiff diff);
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6aecdb31231a8602dbf72944625703c440949c78/IValueChangeListener.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/value/IValueChangeListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1640, 620, 3043, 12, 4294, 3745, 620, 1084, 16, 1445, 5938, 3122, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1640, 620, 3043, 12, 4294, 3745, 620, 1084, 16, 1445, 5938, 3122, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
OpenCms.getStaticExportManager().export(req, res, cms, exportData);
res.setStatus(OpenCms.getStaticExportManager().export(req, res, cms, exportData));
public void handle(HttpServletRequest req, HttpServletResponse res, String name) throws IOException, ServletException { int errorCode; try { errorCode = Integer.valueOf(name).intValue(); } catch (NumberFormatException nf) { res.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); return; } switch (errorCode) { case 404: String path = req.getPathInfo(); CmsObject cms = null; CmsStaticExportData exportData = null; try { cms = OpenCmsCore.getInstance().initCmsObject(req, res, OpenCms.getDefaultUsers().getUserExport(), null); exportData = OpenCms.getStaticExportManager().getExportData(req, cms); } catch (CmsException e) { // unlikley to happen if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Error initializing CmsObject in " + name + " handler for '" + path + "'", e); } } if (exportData != null) { synchronized (this) { try { OpenCms.getStaticExportManager().export(req, res, cms, exportData); } catch (Throwable t) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Error exporting " + exportData, t); } openErrorHandler(req, res, errorCode); } } } else { openErrorHandler(req, res, errorCode); } break; default: openErrorHandler(req, res, errorCode); } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0b9e093fb5b2c85534e37349cf5f34aece2186de/OpenCmsServlet.java/buggy/src/org/opencms/main/OpenCmsServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 12, 2940, 18572, 1111, 16, 12446, 400, 16, 514, 508, 13, 1216, 1860, 16, 16517, 288, 3639, 509, 12079, 31, 3639, 775, 288, 5411, 12079, 273, 2144, 18, 1132, 951, 12, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 12, 2940, 18572, 1111, 16, 12446, 400, 16, 514, 508, 13, 1216, 1860, 16, 16517, 288, 3639, 509, 12079, 31, 3639, 775, 288, 5411, 12079, 273, 2144, 18, 1132, 951, 12, 52...
public org.quickfix.field.Side getSide() throws FieldNotFound { org.quickfix.field.Side value = new org.quickfix.field.Side();
public quickfix.field.Side getSide() throws FieldNotFound { quickfix.field.Side value = new quickfix.field.Side();
public org.quickfix.field.Side getSide() throws FieldNotFound { org.quickfix.field.Side value = new org.quickfix.field.Side(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/buggy/src/java/src/quickfix/fix40/NewOrderList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8895, 1322, 831, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8895, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8895, 1322, 831, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8895, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18,...
return true;
if (ldap.executeSupprimer(login)) { return true; } else { return false; }
public static boolean deleteByLogin(String login) throws NamingException { //On supprime l'utilisateur de l'annuaire, en partant d'un login Ldap ldap = Ldap.getInstance(); ldap.executeSupprimer(login); //On retourne le resultat de l'opration (succs/chec) return true; }
55998 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55998/b7531eabce9c7fd4b52c0c9ea4089597edd90fd0/Utilisateur.java/buggy/NetJukeBox/src/proto/serveur/Utilisateur.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 1430, 858, 5358, 12, 780, 3925, 13, 1216, 26890, 288, 9506, 202, 759, 1398, 1169, 16382, 328, 11, 1367, 24954, 443, 328, 11, 1072, 11886, 577, 16, 570, 1087, 970, 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, 225, 202, 482, 760, 1250, 1430, 858, 5358, 12, 780, 3925, 13, 1216, 26890, 288, 9506, 202, 759, 1398, 1169, 16382, 328, 11, 1367, 24954, 443, 328, 11, 1072, 11886, 577, 16, 570, 1087, 970, 3...
}
}
public void deleteUser(String name) throws CmsException { Connection con = null; PreparedStatement statement = null; try { con = DriverManager.getConnection(m_poolName); statement = con.prepareStatement(m_cq.C_USERS_DELETE); statement.setString(1,name); statement.executeUpdate(); } catch (SQLException e){ throw new CmsException("["+this.getClass().getName()+"]"+e.getMessage(),CmsException.C_SQL_ERROR, e); } finally { if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/1e8abfda468006f21c4fc99ba170cd27c76451ab/CmsDbAccess.java/buggy/src/com/opencms/file/genericSql/CmsDbAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1430, 1299, 12, 780, 508, 13, 202, 202, 15069, 11228, 288, 202, 202, 1952, 356, 273, 446, 31, 202, 202, 29325, 3021, 273, 446, 31, 202, 202, 698, 202, 95, 1082, 202, 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, 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, 1430, 1299, 12, 780, 508, 13, 202, 202, 15069, 11228, 288, 202, 202, 1952, 356, 273, 446, 31, 202, 202, 29325, 3021, 273, 446, 31, 202, 202, 698, 202, 95, 1082, 202, 59...
public void addPanelClass(String classFilename, InputStream input) throws Exception
public void addPanelClass(String classFilename, InputStream input) throws Exception
public void addPanelClass(String classFilename, InputStream input) throws Exception { sendMsg("Adding the (sub)classes for " + classFilename + " ..."); outJar.putNextEntry(new ZipEntry("com/izforge/izpack/panels/" + classFilename)); copyStream(input, outJar); outJar.closeEntry(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/WebPackager.java/clean/src/lib/com/izforge/izpack/compiler/WebPackager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 5537, 797, 12, 780, 667, 5359, 16, 5037, 810, 13, 1216, 1185, 225, 288, 565, 1366, 3332, 2932, 13962, 326, 261, 1717, 13, 4701, 364, 315, 397, 667, 5359, 397, 315, 1372,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 5537, 797, 12, 780, 667, 5359, 16, 5037, 810, 13, 1216, 1185, 225, 288, 565, 1366, 3332, 2932, 13962, 326, 261, 1717, 13, 4701, 364, 315, 397, 667, 5359, 397, 315, 1372,...
notifyObservers(editTypeArray);
notifyObservers(editTypeArray); setInfoFinishedTask(true);
public Object task() throws DBLayerException, RemoteException { try { database.executeUpdate(metadataRecord); metadataList.set(idRecord, metadataRecord); }catch (RemoteException e) { logger.error("Process update metadata failed. Remote exception caught in MetadataManager. Details: "+e.getMessage()); database.rollbackTransaction(); RemoteException remex = new RemoteException(ERROR_EDIT + e.getMessage()); remex.setStackTrace(e.getStackTrace()); throw remex; } catch (DBLayerException e) { logger.error("Process update metadata failed. DBLayer exception caught in MetadataManager. Details: "+e.getMessage()); database.rollbackTransaction(); DBLayerException dbex = new DBLayerException(ERROR_EDIT + e.getMessage()); dbex.setStackTrace(e.getStackTrace()); throw dbex; } //Tell AppCore observerber setChanged(); notifyObservers(editTypeArray); return null; }
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/1d5ae42aeb11ae7c5b21d77d7542e50f605b1475/MetadataManager.java/clean/trunk/src/net/sf/plantlore/client/metadata/MetadataManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 202, 482, 1033, 1562, 1435, 1216, 2383, 4576, 503, 16, 18361, 288, 377, 1082, 202, 698, 288, 1082, 540, 202, 6231, 18, 8837, 1891, 12, 4165, 2115, 1769, 1082, 540, 202, 4165, 682, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1377, 202, 202, 482, 1033, 1562, 1435, 1216, 2383, 4576, 503, 16, 18361, 288, 377, 1082, 202, 698, 288, 1082, 540, 202, 6231, 18, 8837, 1891, 12, 4165, 2115, 1769, 1082, 540, 202, 4165, 682, ...
Report report = process("OverrideBothEqualsAndHashcode2.java", new OverrideBothEqualsAndHashcodeRule()); assertEquals(1, report.size());
runTest("OverrideBothEqualsAndHashcode2.java", 1, new OverrideBothEqualsAndHashcodeRule());
public void test2() throws Throwable{ Report report = process("OverrideBothEqualsAndHashcode2.java", new OverrideBothEqualsAndHashcodeRule()); assertEquals(1, report.size()); }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/f11e5b096f915b93b77faac1b095322d3b7e1d8c/OverrideBothEqualsAndHashcodeRuleTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/OverrideBothEqualsAndHashcodeRuleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 22, 1435, 1216, 4206, 95, 3639, 8706, 2605, 273, 1207, 2932, 6618, 20240, 8867, 1876, 2310, 710, 22, 18, 6290, 3113, 394, 1439, 20240, 8867, 1876, 2310, 710, 2175, 10663, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 22, 1435, 1216, 4206, 95, 3639, 8706, 2605, 273, 1207, 2932, 6618, 20240, 8867, 1876, 2310, 710, 22, 18, 6290, 3113, 394, 1439, 20240, 8867, 1876, 2310, 710, 2175, 10663, ...
public IWorkbenchPage showPerspective(String perspectiveId, IWorkbenchWindow window) throws WorkbenchException {
public IWorkbenchPage showPerspective(String perspectiveId, IWorkbenchWindow window) throws WorkbenchException {
public IWorkbenchPage showPerspective(String perspectiveId, IWorkbenchWindow window) throws WorkbenchException { Assert.isNotNull(perspectiveId); // If the specified window has the requested perspective open, then the window // is given focus and the perspective is shown. The page's input is ignored. WorkbenchWindow win = (WorkbenchWindow) window; if (win != null) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { IPerspectiveDescriptor perspectives[] = page.getOpenedPerspectives(); for (int i = 0; i < perspectives.length; i++) { IPerspectiveDescriptor persp = perspectives[i]; if (perspectiveId.equals(persp.getId())) { win.getShell().open(); page.setPerspective(persp); return page; } } } } // If another window that has the workspace root as input and the requested // perpective open and active, then the window is given focus. IAdaptable input = WorkbenchPlugin.getPluginWorkspace().getRoot(); IWorkbenchWindow[] windows = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { win = (WorkbenchWindow) windows[i]; if (window != win) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { boolean inputSame = false; if (input == null) inputSame = (page.getInput() == null); else inputSame = input.equals(page.getInput()); if (inputSame) { Perspective persp = page.getActivePerspective(); if (perspectiveId.equals(persp.getDesc().getId())) { win.getShell().open(); return page; } } } } } // Otherwise the requested perspective is opened and shown in the specified // window or in a new window depending on the current user preference for opening // perspectives, and that window is given focus. win = (WorkbenchWindow) window; if (win != null) { IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); int mode = store.getInt(IPreferenceConstants.OPEN_PERSP_MODE); IWorkbenchPage page = win.getActiveWorkbenchPage(); IPerspectiveDescriptor persp = null; if (page != null) persp = page.getPerspective(); // Only open a new window if user preference is set and the window // has an active perspective. if (IPreferenceConstants.OPM_NEW_WINDOW == mode && persp != null) { IWorkbenchWindow newWindow = openWorkbenchWindow(perspectiveId, input); return newWindow.getActivePage(); } else { IPerspectiveDescriptor desc = getPerspectiveRegistry().findPerspectiveWithId(perspectiveId); if (desc == null) throw new WorkbenchException(WorkbenchMessages.getString("WorkbenchPage.ErrorRecreatingPerspective")); //$NON-NLS-1$ win.getShell().open(); if (page == null) page = win.openPage(perspectiveId, input); else page.setPerspective(desc); return page; } } // Just throw an exception.... throw new WorkbenchException(WorkbenchMessages.format("Workbench.showPerspectiveError", new Object[] { perspectiveId })); //$NON-NLS-1$ }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/25425fe3505bc6f62e9021f3f79e33d77a752241/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 2421, 22144, 1964, 2405, 14781, 16772, 12, 780, 26651, 548, 16, 467, 2421, 22144, 3829, 2742, 13, 202, 202, 15069, 4147, 22144, 503, 202, 95, 202, 202, 8213, 18, 291, 5962,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2421, 22144, 1964, 2405, 14781, 16772, 12, 780, 26651, 548, 16, 467, 2421, 22144, 3829, 2742, 13, 202, 202, 15069, 4147, 22144, 503, 202, 95, 202, 202, 8213, 18, 291, 5962,...
getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
public DataMapTree(TreeModel model, SoarWorkingMemoryModel _swmm) { super(model); swmm = _swmm; s_DataMapTree = this; getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); DragSource.getDefaultDragSource().createDefaultDragGestureRecognizer(this,DnDConstants.ACTION_LINK | DnDConstants.ACTION_COPY_OR_MOVE,dgListener); setAutoscrolls(true); registerKeyboardAction(new ActionListener() { public void actionPerformed(ActionEvent e) { removeEdge(); } }, KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); registerKeyboardAction(new ActionListener() { public void actionPerformed(ActionEvent e) { removeEdge(); } }, KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); registerKeyboardAction(new ActionListener() { public void actionPerformed(ActionEvent e) { SoarVertex theVertex = ((FakeTreeNode)getSelectionPath().getLastPathComponent()).getEnumeratingVertex(); if (theVertex.isEditable()) { editValue(); } } }, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); addMouseListener(new MouseAdapter() { // Open the rules associated with invalid generated node public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { FakeTreeNode ftn = (FakeTreeNode)getSelectionPath().getLastPathComponent(); NamedEdge ne = ftn.getEdge(); if(ne.isGenerated() && (ne.getNode() != null)) { (ne.getNode()).openRules(MainFrame.getMainFrame(), ne.getLine()); } } } public void mousePressed(MouseEvent e) { if (e.isPopupTrigger()) { suggestShowContextMenu(e.getX(),e.getY()); } } public void mouseReleased(MouseEvent e) { if(e.isPopupTrigger()) { suggestShowContextMenu(e.getX(),e.getY()); } } }); } // end of DataMapTree constructor
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/d9311230f82f4404a6caf7a2cb902c26b0b86646/DataMapTree.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/DataMapTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1910, 863, 2471, 12, 2471, 1488, 938, 16, 6155, 297, 14836, 6031, 1488, 389, 5328, 7020, 13, 288, 202, 202, 9565, 12, 2284, 1769, 202, 202, 5328, 7020, 273, 389, 5328, 7020, 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, 225, 202, 482, 1910, 863, 2471, 12, 2471, 1488, 938, 16, 6155, 297, 14836, 6031, 1488, 389, 5328, 7020, 13, 288, 202, 202, 9565, 12, 2284, 1769, 202, 202, 5328, 7020, 273, 389, 5328, 7020, 3...
case 2:
case TYPE_RUNTIME:
protected void updateInfo(boolean textOnly) { StatisticsManager sm = null; boolean rangeEnabled = true; switch(typeCombo.getSelectedIndex()) { case 0: rangeEnabled = false; sm = guiManager; break; case 1: rangeEnabled = true; sm = grammarManager; break; case 2: rangeEnabled = true; sm = runtimeManager; break; } if(!textOnly) setRangeEnabled(rangeEnabled, sm); setText(sm); }
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/4373ac48d4e6ad61aa9aca8f5147a3faf0373572/DialogReports.java/clean/src/org/antlr/works/dialog/DialogReports.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1089, 966, 12, 6494, 977, 3386, 13, 288, 3639, 22964, 1318, 3029, 273, 446, 31, 3639, 1250, 1048, 1526, 273, 638, 31, 3639, 1620, 12, 723, 16156, 18, 588, 7416, 1016, 10756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 966, 12, 6494, 977, 3386, 13, 288, 3639, 22964, 1318, 3029, 273, 446, 31, 3639, 1250, 1048, 1526, 273, 638, 31, 3639, 1620, 12, 723, 16156, 18, 588, 7416, 1016, 10756, ...
public org.quickfix.field.LegSecurityAltID getLegSecurityAltID() throws FieldNotFound { org.quickfix.field.LegSecurityAltID value = new org.quickfix.field.LegSecurityAltID();
public quickfix.field.LegSecurityAltID getLegSecurityAltID() throws FieldNotFound { quickfix.field.LegSecurityAltID value = new quickfix.field.LegSecurityAltID();
public org.quickfix.field.LegSecurityAltID getLegSecurityAltID() throws FieldNotFound { org.quickfix.field.LegSecurityAltID value = new org.quickfix.field.LegSecurityAltID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequest.java/clean/src/java/src/quickfix/fix44/QuoteRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 10655, 734, 336, 8329, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 10655, 734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8329, 4368, 10655, 734, 336, 8329, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 10655, 734...
if (termination.conjunctions.contains(gn))
if (termination.conjunctions.contains(gn)) { System.out.println("Cycle through conjunction "+gn.getTextLabel() +" which can't be removed.");
public Set doAnalysis() { HashSet cantremove=new HashSet(); HashSet mustremove=new HashSet(); HashSet optionalabstractrepair=new HashSet(); for (Iterator it=termination.abstractrepair.iterator();it.hasNext();) { GraphNode gn=(GraphNode)it.next(); TermNode tn=(TermNode)gn.getOwner(); AbstractRepair ar=tn.getAbstract(); DNFPredicate dpred=ar.getPredicate(); Set repairnodes=(Set)termination.predtoabstractmap.get(dpred); if ((repairnodes.size()>1)&& containsmodify(repairnodes)) { optionalabstractrepair.add(gn); } } cantremove.addAll(termination.scopenodes); cantremove.addAll(termination.abstractrepair); cantremove.removeAll(optionalabstractrepair); while(true) { boolean change=false; HashSet nodes=new HashSet(); nodes.addAll(termination.conjunctions); nodes.removeAll(mustremove); GraphNode.computeclosure(nodes,mustremove); Set cycles=GraphNode.findcycles(nodes); Set couldremove=new HashSet(); couldremove.addAll(termination.conjunctions); couldremove.addAll(termination.updatenodes); couldremove.addAll(termination.consequencenodes); couldremove.addAll(optionalabstractrepair); couldremove.retainAll(cycles); /* Look for constraints which can only be satisfied one way */ Vector constraints=termination.state.vConstraints; for(int i=0;i<constraints.size();i++) { Constraint c=(Constraint)constraints.get(i); Set conjunctionset=(Set)termination.conjunctionmap.get(c); HashSet tmpset=new HashSet(); tmpset.addAll(conjunctionset); tmpset.removeAll(mustremove); if (tmpset.size()==1) { int oldsize=cantremove.size(); cantremove.addAll(tmpset); if (cantremove.size()!=oldsize) change=true; } } /* Search through conjunction which must be satisfied, and attempt to generate appropriate repair actions. */ HashSet newset=new HashSet(); for(Iterator cit=cantremove.iterator();cit.hasNext();) { GraphNode gn=(GraphNode)cit.next(); boolean nomodify=true; HashSet toremove=new HashSet(); if (termination.conjunctions.contains(gn)) { for(Iterator edgeit=gn.edges();edgeit.hasNext();) { GraphNode.Edge e=(GraphNode.Edge)edgeit.next(); GraphNode gn2=e.getTarget(); TermNode tn2=(TermNode)gn2.getOwner(); if (nodes.contains(gn2)&&!mustremove.contains(gn2)&& tn2.getType()==TermNode.ABSTRACT) { HashSet updateset=new HashSet(); for(Iterator upit=gn2.edges();upit.hasNext();) { GraphNode.Edge e2=(GraphNode.Edge)upit.next(); GraphNode gn3=e2.getTarget(); TermNode tn3=(TermNode)gn3.getOwner(); if (tn3.getType()==TermNode.UPDATE) updateset.add(gn3); } updateset.removeAll(mustremove); AbstractRepair ar=tn2.getAbstract(); DNFPredicate dpred=ar.getPredicate(); Set repairnodes=(Set)termination.predtoabstractmap.get(dpred); if (repairnodes.size()>1&& containsmodify(repairnodes)) { /* We are modifying a relation */ HashSet retainednodes=new HashSet(); retainednodes.addAll(repairnodes); retainednodes.retainAll(nodes); if (ar.getType()==AbstractRepair.MODIFYRELATION) { if (updateset.size()==0) { if (retainednodes.size()>1) { mustremove.add(gn); change=true; } else return null; /* Out of luck */ } if (updateset.size()==1&&retainednodes.size()==1) toremove.addAll(updateset); /* Required update */ } else { /* Addition or removal to relation */ assert (ar.getType()==AbstractRepair.ADDTORELATION)||(ar.getType()==AbstractRepair.REMOVEFROMRELATION); if (updateset.size()==0) { if (containsmodify(retainednodes)) { /* Both ADD & REMOVE are no good */ for(Iterator it=retainednodes.iterator();it.hasNext();) { GraphNode gnit=(GraphNode)it.next(); TermNode tnit=(TermNode)gnit.getOwner(); AbstractRepair arit=tnit.getAbstract(); if (arit.getType()!=AbstractRepair.MODIFYRELATION) { mustremove.add(gnit); change=true; } } } else return null; /* Out of luck */ } if (updateset.size()==1&&retainednodes.size()==2) toremove.addAll(updateset); /* Required update */ } } else if (updateset.size()==1) toremove.addAll(updateset); } } newset.addAll(toremove); } } { int oldsize=cantremove.size(); cantremove.addAll(newset); if (cantremove.size()!=oldsize) change=true; } /* Look for required actions for scope nodes */ for(Iterator scopeit=termination.scopenodes.iterator();scopeit.hasNext();) { GraphNode gn=(GraphNode)scopeit.next(); HashSet tmpset=new HashSet(); for(Iterator edgeit=gn.edges();edgeit.hasNext();) { GraphNode.Edge e=(GraphNode.Edge)edgeit.next(); tmpset.add(e.getTarget()); } tmpset.removeAll(mustremove); if (tmpset.size()==1) { int oldsize=cantremove.size(); cantremove.addAll(tmpset); if (cantremove.size()!=oldsize) change=true; } } Set cycles2=GraphNode.findcycles(cantremove); for(Iterator it=cycles2.iterator();it.hasNext();) { GraphNode gn=(GraphNode)it.next(); if (termination.conjunctions.contains(gn)) return null; // Out of luck } /* Search through abstract repair actions & correspond data structure updates */ for(Iterator it=termination.abstractrepairadd.iterator();it.hasNext();) { GraphNode gn=(GraphNode)it.next(); TermNode tn=(TermNode)gn.getOwner(); for (Iterator edgeit=gn.edges();edgeit.hasNext();) { GraphNode.Edge e=(GraphNode.Edge)edgeit.next(); GraphNode gn2=e.getTarget(); TermNode tn2=(TermNode)gn2.getOwner(); if (tn2.getType()!=TermNode.UPDATE) continue; boolean containsgn=cantremove.contains(gn); boolean containsgn2=cantremove.contains(gn2); cantremove.add(gn); cantremove.add(gn2); Set cycle=GraphNode.findcycles(cantremove); if (cycle.contains(gn2)) { if (!mustremove.contains(gn2)) { change=true; mustremove.add(gn2); } } if (!containsgn) cantremove.remove(gn); if (!containsgn2) cantremove.remove(gn2); } } /* Searches individual conjunctions + abstract action +updates for cycles */ for(Iterator it=termination.conjunctions.iterator();it.hasNext();) { GraphNode gn=(GraphNode)it.next(); boolean foundnocycle=false; for (Iterator edgeit=gn.edges();edgeit.hasNext();) { GraphNode.Edge e=(GraphNode.Edge)edgeit.next(); GraphNode gn2=e.getTarget(); TermNode tn2=(TermNode)gn2.getOwner(); if (tn2.getType()!=TermNode.ABSTRACT) continue; for (Iterator edgeit2=gn2.edges();edgeit2.hasNext();) { GraphNode.Edge e2=(GraphNode.Edge)edgeit2.next(); GraphNode gn3=e2.getTarget(); TermNode tn3=(TermNode)gn3.getOwner(); if (tn3.getType()!=TermNode.UPDATE) continue; boolean containsgn=cantremove.contains(gn); boolean containsgn2=cantremove.contains(gn2); boolean containsgn3=cantremove.contains(gn3); cantremove.add(gn); cantremove.add(gn2); cantremove.add(gn3); Set cycle=GraphNode.findcycles(cantremove); if (cycle.contains(gn3)) { if (!mustremove.contains(gn3)) { change=true; mustremove.add(gn3); } } if (!mustremove.contains(gn3)&&!cycle.contains(gn)) { foundnocycle=true; } if (!containsgn) cantremove.remove(gn); if (!containsgn2) cantremove.remove(gn2); if (!containsgn3) cantremove.remove(gn3); } } if(!foundnocycle) { if (!mustremove.contains(gn)) { change=true; mustremove.add(gn); } } } /* Searches scope nodes + compensation nodes */ for(Iterator it=termination.scopenodes.iterator();it.hasNext();) { GraphNode gn=(GraphNode)it.next(); boolean foundcompensation=false; if (nodes.contains(gn)) { for (Iterator edgeit=gn.edges();edgeit.hasNext();) { GraphNode.Edge e=(GraphNode.Edge)edgeit.next(); GraphNode gn2=e.getTarget(); TermNode tn2=(TermNode)gn2.getOwner(); if (tn2.getType()!=TermNode.UPDATE) continue; /* We have a compensation node */ boolean containsgn=cantremove.contains(gn); boolean containsgn2=cantremove.contains(gn2); cantremove.add(gn); cantremove.add(gn2); Set cycle=GraphNode.findcycles(cantremove); if (cycle.contains(gn2)) { if (!mustremove.contains(gn2)) { change=true; mustremove.add(gn2); } } else { if (!mustremove.contains(gn2)) foundcompensation=true; } if (!containsgn) cantremove.remove(gn); if (!containsgn2) cantremove.remove(gn2); } } if (!foundcompensation) { for (Iterator edgeit=gn.edges();edgeit.hasNext();) { GraphNode.Edge e=(GraphNode.Edge)edgeit.next(); GraphNode gn2=e.getTarget(); TermNode tn2=(TermNode)gn2.getOwner(); if (tn2.getType()==TermNode.UPDATE) { cantremove.add(gn2); break; } } } } couldremove.removeAll(mustremove); couldremove.removeAll(cantremove); Vector couldremovevector=new Vector(); couldremovevector.addAll(couldremove); Vector combination=new Vector(); if(change) continue; //recalculate try { GraphNode.DOTVisitor.visit(new FileOutputStream("graphsearch.dot"),nodes); } catch (Exception e) { e.printStackTrace(); System.exit(-1); } System.out.println("Searching set of "+couldremove.size()+" nodes."); System.out.println("Eliminated must "+mustremove.size()+" nodes"); System.out.println("Eliminated cant "+cantremove.size()+" nodes"); System.out.println("Searching following set:"); for(Iterator it=couldremove.iterator();it.hasNext();) { GraphNode gn=(GraphNode)it.next(); System.out.println(gn.getTextLabel()); } while(true) { if (illegal(combination,couldremovevector)) break; Set combinationset=buildset(combination,couldremovevector); checkmodify(combinationset); combinationset.addAll(mustremove); if (combinationset!=null) { System.out.println("Checkabstract="+checkAbstract(combinationset)); System.out.println("Checkrepairs="+checkRepairs(combinationset)); System.out.println("Checkall="+checkAll(combinationset)); if (checkAbstract(combinationset)==0&& checkRepairs(combinationset)==0&& checkAll(combinationset)==0) { return combinationset; } } increment(combination,couldremovevector); } return null; } }
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/69680c5a09e54b12b72620d4ac4cd125c581dca8/GraphAnalysis.java/buggy/RepairCompiler/MCC/IR/GraphAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 741, 9418, 1435, 288, 202, 13482, 848, 88, 4479, 33, 2704, 6847, 5621, 202, 13482, 1297, 4479, 33, 2704, 6847, 5621, 202, 13482, 3129, 17801, 266, 6017, 33, 2704, 6847, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 741, 9418, 1435, 288, 202, 13482, 848, 88, 4479, 33, 2704, 6847, 5621, 202, 13482, 1297, 4479, 33, 2704, 6847, 5621, 202, 13482, 3129, 17801, 266, 6017, 33, 2704, 6847, 5621, ...
setPageCount(1); createOptions();
this(null);
public NewWizardTemplate() { setPageCount(1); createOptions(); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/3584f25f22d710cc01312db195ab233165de927b/NewWizardTemplate.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/templates/NewWizardTemplate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1166, 27130, 2283, 1435, 288, 202, 202, 542, 1964, 1380, 12, 21, 1769, 202, 202, 2640, 1320, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1166, 27130, 2283, 1435, 288, 202, 202, 542, 1964, 1380, 12, 21, 1769, 202, 202, 2640, 1320, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (DEBUG) System.out.println("Removing " + used[i]);
if (DEBUG) System.out.println(id + ": Removing " + used[i]);
public static void main(String[] args) { if (DEBUG) FormatReader.debug = true; Vector files = new Vector(); if (args == null || args.length == 0) { System.out.println( "Please specify root folder to search for data files."); System.exit(1); } System.out.print("Building file list..."); if (DEBUG) System.out.println(); getFiles(args[0], files); System.out.println(files.size() + " found."); FileStitcher stitcher = new FileStitcher(); while (files.size() > 0) { String id = (String) files.get(0); try { FilePattern fp = stitcher.getFilePattern(id); System.out.println("Testing " + fp.getPattern()); } catch (FormatException exc) { exc.printStackTrace(); } catch (IOException exc) { exc.printStackTrace(); } TestResult result = new TestResult(); TestSuite suite = suite(id); suite.run(result); int total = result.runCount(); int failed = result.failureCount(); float failPercent = (float) (100 * ((double) failed / (double) total)); System.out.println(id + " - " + failed + " failures in " + total + " tests (" + failPercent + "% failed)"); // remove files part of the just-tested dataset from the list ReaderTest test = (ReaderTest) suite.testAt(0); String[] used = test.getUsedFiles(); for (int i=0; i<used.length; i++) { if (DEBUG) System.out.println("Removing " + used[i]); files.removeElement(used[i]); } } }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/9c6760acf747e156bb08d7230dd0def690518a93/ReaderTest.java/buggy/loci/formats/test/ReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 309, 261, 9394, 13, 4077, 2514, 18, 4148, 273, 638, 31, 565, 5589, 1390, 273, 394, 5589, 5621, 1377, 309, 261, 1968, 422, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 309, 261, 9394, 13, 4077, 2514, 18, 4148, 273, 638, 31, 565, 5589, 1390, 273, 394, 5589, 5621, 1377, 309, 261, 1968, 422, 446, ...
if(action != null) actionWrapper = GUIUtilities.createActionWrapper(action);
public MenuItemModel(String name) { this.name = name; int index = name.indexOf('@'); if(index != -1) { arg = name.substring(index+1); action = jEdit.getAction(name.substring(0,index)); } else { arg = null; action = jEdit.getAction(name); } if(action != null) actionWrapper = GUIUtilities.createActionWrapper(action); label = jEdit.getProperty(name.concat(".label")); shortcut = jEdit.getProperty(name.concat(".shortcut")); if(label == null) label = name; index = label.indexOf('$'); if(index != -1 && label.length() - index > 1) { mnemonic = Character.toLowerCase(label.charAt(index + 1)); label = label.substring(0,index).concat(label.substring(++index)); } else mnemonic = '\0'; // stuff for createButton(); String iconName = jEdit.getProperty(name + ".icon"); if(iconName != null) { URL url = getClass().getResource("/org/gjt/sp/jedit/toolbar/" + iconName); if(url != null) { icon = GUIUtilities.loadImageIcon(url); toolTip = GUIUtilities.prettifyMenuLabel(label); if(shortcut != null) toolTip = toolTip + " (" + shortcut + ")"; } } }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/e726ffa5e015c7095db2ad64eaf14ade39fea9ac/MenuItemModel.java/buggy/org/gjt/sp/jedit/gui/MenuItemModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 25085, 1488, 12, 780, 508, 13, 202, 95, 202, 202, 2211, 18, 529, 273, 508, 31, 202, 202, 474, 770, 273, 508, 18, 31806, 2668, 36, 8284, 202, 202, 430, 12, 1615, 480, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25085, 1488, 12, 780, 508, 13, 202, 95, 202, 202, 2211, 18, 529, 273, 508, 31, 202, 202, 474, 770, 273, 508, 18, 31806, 2668, 36, 8284, 202, 202, 430, 12, 1615, 480, 300, ...
if (blackboard != null) { serviceBroker.releaseService( this, BlackboardService.class, blackboard);
if (servlet != null) { if (log != null) { serviceBroker.releaseService( servlet, LoggingService.class, log); log = null; } if (ns != null) { serviceBroker.releaseService( servlet, NamingService.class, ns); ns = null; } if (blackboard != null) { serviceBroker.releaseService( servlet, BlackboardService.class, blackboard); blackboard = null; } servlet = null;
public void unload() { // release all services super.unload(); if (ns != null) { serviceBroker.releaseService( this, NamingService.class, ns); } if (blackboard != null) { serviceBroker.releaseService( this, BlackboardService.class, blackboard); } }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/f19de576712a328c9a12a79e3bb89fab902fb020/SimpleServletComponent.java/clean/core/src/org/cougaar/core/servlet/SimpleServletComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 27060, 1435, 288, 565, 368, 3992, 777, 4028, 565, 2240, 18, 318, 945, 5621, 565, 309, 261, 2387, 480, 446, 13, 288, 1377, 1156, 11194, 18, 9340, 1179, 12, 1850, 333, 16, 1888...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27060, 1435, 288, 565, 368, 3992, 777, 4028, 565, 2240, 18, 318, 945, 5621, 565, 309, 261, 2387, 480, 446, 13, 288, 1377, 1156, 11194, 18, 9340, 1179, 12, 1850, 333, 16, 1888...
long start = System.currentTimeMillis();
ByteArrayOutputStream errStrm = new ByteArrayOutputStream(); systemError = new PrintStream(errStrm);
public void run() { res = new TestResult(); res.addListener(this); for (int i = 0; i < formatters.size(); i++) { res.addListener((TestListener) formatters.elementAt(i)); } long start = System.currentTimeMillis(); fireStartTestSuite(); if (exception != null) { // had an exception in the constructor for (int i = 0; i < formatters.size(); i++) { ((TestListener) formatters.elementAt(i)).addError(null, exception); } junitTest.setCounts(1, 0, 1); junitTest.setRunTime(0); } else { ByteArrayOutputStream errStrm = new ByteArrayOutputStream(); systemError = new PrintStream(errStrm); ByteArrayOutputStream outStrm = new ByteArrayOutputStream(); systemOut = new PrintStream(outStrm); PrintStream savedOut = null; PrintStream savedErr = null; if (forked) { savedOut = System.out; savedErr = System.err; if (!showOutput) { System.setOut(systemOut); System.setErr(systemError); } else { System.setOut(new PrintStream( new TeeOutputStream(savedOut, systemOut) ) ); System.setErr(new PrintStream( new TeeOutputStream(savedErr, systemError) ) ); } perm = null; } else { if (perm != null) { perm.setSecurityManager(); } } try { suite.run(res); } finally { if (perm != null) { perm.restoreSecurityManager(); } if (savedOut != null) { System.setOut(savedOut); } if (savedErr != null) { System.setErr(savedErr); } systemError.close(); systemError = null; systemOut.close(); systemOut = null; sendOutAndErr(new String(outStrm.toByteArray()), new String(errStrm.toByteArray())); junitTest.setCounts(res.runCount(), res.failureCount(), res.errorCount()); junitTest.setRunTime(System.currentTimeMillis() - start); } } fireEndTestSuite(); if (retCode != SUCCESS || res.errorCount() != 0) { retCode = ERRORS; } else if (res.failureCount() != 0) { retCode = FAILURES; } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/aaf762d681484fd4dd44f98a9af7df85a1bcc703/JUnitTestRunner.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 400, 273, 394, 7766, 1253, 5621, 3639, 400, 18, 1289, 2223, 12, 2211, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 19151, 18, 1467, 5621, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 400, 273, 394, 7766, 1253, 5621, 3639, 400, 18, 1289, 2223, 12, 2211, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 19151, 18, 1467, 5621, 27...
private PsiStatement getFirstStatement(PsiStatement body) { if (body instanceof PsiBlockStatement) {
private PsiStatement getFirstStatement(PsiStatement body){ if(body instanceof PsiBlockStatement){
private PsiStatement getFirstStatement(PsiStatement body) { if (body instanceof PsiBlockStatement) { final PsiBlockStatement block = (PsiBlockStatement) body; return block.getCodeBlock().getStatements()[0]; } else { return body; } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/ForCanBeForeachInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 453, 7722, 3406, 7521, 3406, 12, 52, 7722, 3406, 1417, 13, 288, 5411, 309, 261, 3432, 1276, 453, 7722, 1768, 3406, 13, 288, 7734, 727, 453, 7722, 1768, 3406, 1203, 273, 261, 52, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 453, 7722, 3406, 7521, 3406, 12, 52, 7722, 3406, 1417, 13, 288, 5411, 309, 261, 3432, 1276, 453, 7722, 1768, 3406, 13, 288, 7734, 727, 453, 7722, 1768, 3406, 1203, 273, 261, 52, 7...
progressMonitor.beginTask( Util.bind("engine.searching"), 100 );
progressMonitor.beginTask( Util.bind("engine.searching"), 100 );
public void search(IWorkspace workspace, ICSearchPattern pattern, ICSearchScope scope, ICSearchResultCollector collector, boolean excludeLocalDeclarations) throws InterruptedException { if( VERBOSE ) { System.out.println("Searching for " + pattern + " in " + scope); //$NON-NLS-1$//$NON-NLS-2$ } if( pattern == null ){ return; } /* search is starting */ collector.aboutToStart(); ArrayList matches = new ArrayList(); try{ //initialize progress monitor IProgressMonitor progressMonitor = collector.getProgressMonitor(); if( progressMonitor != null ){ progressMonitor.beginTask( Util.bind("engine.searching"), 100 ); //$NON_NLS-1$ } /* index search */ PathCollector pathCollector = new PathCollector(); CModelManager modelManager = CModelManager.getDefault(); IndexManager indexManager = modelManager.getIndexManager(); SubProgressMonitor subMonitor = (progressMonitor == null ) ? null : new SubProgressMonitor( progressMonitor, 5 ); indexManager.performConcurrentJob( new PatternSearchJob( (CSearchPattern) pattern, scope, pathCollector, indexManager ), ICSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, subMonitor, null ); subMonitor = (progressMonitor == null ) ? null : new SubProgressMonitor( progressMonitor, 95 ); MatchLocator matchLocator = new MatchLocator( pattern, collector, scope, subMonitor ); matchLocator.setShouldExcludeLocalDeclarations( excludeLocalDeclarations ); if( progressMonitor != null && progressMonitor.isCanceled() ) throw new InterruptedException(); //TODO: BOG Filter Working Copies... matchLocator.locateMatches( pathCollector.getPaths(), workspace, this.workingCopies, matches); } finally { AcceptMatchOperation acceptMatchOp = new AcceptMatchOperation(collector, matches); try { CCorePlugin.getWorkspace().run(acceptMatchOp,null); } catch (CoreException e) {} } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/95f42aeb9e7f38db093795981bd7c7300a3eeeb6/SearchEngine.java/buggy/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/SearchEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1623, 12, 45, 8241, 6003, 16, 26899, 2979, 3234, 1936, 16, 26899, 2979, 3876, 2146, 16, 26899, 24916, 7134, 8543, 16, 1250, 4433, 2042, 21408, 13, 1216, 7558, 288, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1623, 12, 45, 8241, 6003, 16, 26899, 2979, 3234, 1936, 16, 26899, 2979, 3876, 2146, 16, 26899, 24916, 7134, 8543, 16, 1250, 4433, 2042, 21408, 13, 1216, 7558, 288, 202, 202...
String sourceTaskListPath = MylarPlugin.getDefault().getMylarDataDirectory() + File.separator + MylarTaskListPlugin.DEFAULT_TASK_LIST_FILE;
String sourceTaskListPath = MylarPlugin.getDefault().getDataDirectory() + File.separator + MylarTaskListPlugin.DEFAULT_TASK_LIST_FILE;
public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { List<ITask> tasks = getAllTasks(); monitor.beginTask(JOB_LABEL, tasks.size() + 2); // List of files to add to the zip archive List<File> filesToZip = new ArrayList<File>(); // Map of file paths used to avoid duplicates Map<String, String> filesToZipMap = new HashMap<String, String>(); if (exportTaskList) { MylarTaskListPlugin.getTaskListManager().saveTaskList(); String sourceTaskListPath = MylarPlugin.getDefault().getMylarDataDirectory() + File.separator + MylarTaskListPlugin.DEFAULT_TASK_LIST_FILE; File sourceTaskListFile = new File(sourceTaskListPath); if (zip) { filesToZip.add(sourceTaskListFile); } else { if (!copy(sourceTaskListFile, destTaskListFile)) { MylarPlugin.fail(new Exception("Export Exception"), "Could not export task list file.", false); } monitor.worked(1); } } if (exportActivationHistory) { try { File sourceActivationHistoryFile = new File(MylarPlugin.getDefault().getMylarDataDirectory() + File.separator + MylarContextManager.CONTEXT_HISTORY_FILE_NAME + MylarContextManager.FILE_EXTENSION); MylarPlugin.getContextManager().saveActivityHistoryContext(); if (zip) { filesToZip.add(sourceActivationHistoryFile); } else { copy(sourceActivationHistoryFile, destActivationHistoryFile); monitor.worked(1); } } catch (RuntimeException e) { MylarPlugin.fail(e, "Could not export activity history context file", true); } } if (exportTaskContexts) { boolean errorDisplayed = false; // Prevent many repeated error // messages for (ITask task : tasks) { if (!MylarPlugin.getContextManager().hasContext(task.getContextPath())) { continue; // Tasks without a context have no file to // copy } File destTaskFile = new File(destinationDirectory + File.separator + task.getContextPath() + MylarContextManager.FILE_EXTENSION); File sourceTaskFile = new File(MylarPlugin.getDefault().getMylarDataDirectory() + File.separator + task.getContextPath() + MylarContextManager.FILE_EXTENSION); if (zip) { if (!filesToZipMap.containsKey(task.getContextPath())) { filesToZip.add(sourceTaskFile); filesToZipMap.put(task.getContextPath(), null); } } else { if (!copy(sourceTaskFile, destTaskFile) && !errorDisplayed) { MylarPlugin.fail(new Exception("Export Exception: " + sourceTaskFile.getPath() + " -> " + destTaskFile.getPath()), "Could not export one or more task context files.", true); errorDisplayed = true; } monitor.worked(1); } } } if (zip) { try { if (destZipFile.exists()) { destZipFile.delete(); } ZipFileUtil.createZipFile(destZipFile, filesToZip, monitor); } catch (Exception e) { MylarPlugin.fail(e, "Could not create zip file.", true); } } monitor.done(); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/604989236e0919d9c4822651e1379c55b43d341a/TaskDataExportWizard.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/wizards/TaskDataExportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 12, 6385, 467, 5491, 7187, 6438, 13, 1216, 15342, 16, 7558, 288, 1082, 202, 682, 32, 1285, 835, 34, 4592, 273, 5514, 6685, 5621, 1082, 202, 10259, 18, 10086, 2174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 6385, 467, 5491, 7187, 6438, 13, 1216, 15342, 16, 7558, 288, 1082, 202, 682, 32, 1285, 835, 34, 4592, 273, 5514, 6685, 5621, 1082, 202, 10259, 18, 10086, 2174, ...
setChildItem(Fraction.NUMERATOR, num1.multiplyWith((Integer) f.getChildItem(Fraction.DENOMINATOR))); setChildItem(Fraction.DENOMINATOR, den1.multiplyWith((Integer) f.getChildItem(Fraction.NUMERATOR)));
setChild(Fraction.NUMERATOR, num1.multiplyWith((Integer) f.getChild(Fraction.DENOMINATOR))); setChild(Fraction.DENOMINATOR, den1.multiplyWith((Integer) f.getChild(Fraction.NUMERATOR)));
public void divideBy(Fraction f) throws Exception {/*?? if (f != null) { Integer num1 = (Integer) getChildItem(Fraction.NUMERATOR); if (num1 != null) { Integer den1 = (Integer) getChildItem(Fraction.DENOMINATOR); if (den1 != null) { setChildItem(Fraction.NUMERATOR, num1.multiplyWith((Integer) f.getChildItem(Fraction.DENOMINATOR))); setChildItem(Fraction.DENOMINATOR, den1.multiplyWith((Integer) f.getChildItem(Fraction.NUMERATOR))); reduct(); } else { throw new Exception("Could not divide fraction. The denominator 1 is null."); } } else { throw new Exception("Could not divide fraction. The numerator 1 is null."); } } else { throw new Exception("Could not divide fraction. The fraction is null."); }*/ }
11597 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11597/9ea22ccfd933137bb2df841c826a929612a47b55/Fraction.java/buggy/trunk/src/healthcare/cybop/healthcare/model/Fraction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12326, 858, 12, 13724, 284, 13, 1216, 1185, 288, 20308, 14646, 3639, 309, 261, 74, 480, 446, 13, 288, 5411, 2144, 818, 21, 273, 261, 4522, 13, 8154, 1180, 12, 13724, 18, 6069...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12326, 858, 12, 13724, 284, 13, 1216, 1185, 288, 20308, 14646, 3639, 309, 261, 74, 480, 446, 13, 288, 5411, 2144, 818, 21, 273, 261, 4522, 13, 8154, 1180, 12, 13724, 18, 6069...
maxRanks = SkillUtilities.maxClassSkillForLevel(levelForSkillPurposes, this);
maxRanks = SkillUtilities.maxClassSkillForLevel( levelForSkillPurposes, this);
public Float getMaxRank(final String skillKey, final PCClass aClass) { int levelForSkillPurposes = getTotalLevels(); final BigDecimal maxRanks; if (SettingsHandler.isMonsterDefault()) { levelForSkillPurposes += totalHitDice(); } final Skill aSkill = Globals.getSkillKeyed(skillKey); if ( aSkill == null ) { return 0.0f; } if (aSkill.isExclusive()) { // Exclusive skills only count levels in classes which give access to the skill levelForSkillPurposes = 0; for ( PCClass bClass : classList ) { if (aSkill.isClassSkill(bClass, this)) { levelForSkillPurposes += bClass.getLevel(); } } if (SettingsHandler.isMonsterDefault()) { levelForSkillPurposes += totalHitDice(); } if (levelForSkillPurposes == 0) { // No classes qualify for this exclusive skill, so treat it as a cross-class skill // This does not seem right to me! JD if (SettingsHandler.isMonsterDefault()) { levelForSkillPurposes = (getTotalLevels() + totalHitDice()); } else { levelForSkillPurposes = (getTotalLevels()); } maxRanks = SkillUtilities.maxCrossClassSkillForLevel(levelForSkillPurposes,this); } else { maxRanks = SkillUtilities.maxClassSkillForLevel(levelForSkillPurposes, this); } } else if (!aSkill.isClassSkill(classList, this) && (aSkill.costForPCClass(aClass, this) == Globals.getGameModeSkillCost_Class())) { // Cross class skill - but as cost is 1 only return a whole number maxRanks = new BigDecimal(SkillUtilities.maxCrossClassSkillForLevel(levelForSkillPurposes,this).intValue()); // This was (int) (i/2.0) previously } else if (!aSkill.isClassSkill(classList, this)) { // Cross class skill maxRanks = SkillUtilities.maxCrossClassSkillForLevel(levelForSkillPurposes,this); } else { // Class skill maxRanks = SkillUtilities.maxClassSkillForLevel(levelForSkillPurposes, this); } return new Float(maxRanks.floatValue()); }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5450, 7288, 12925, 12, 6385, 514, 15667, 653, 16, 727, 26300, 797, 20148, 13, 202, 95, 202, 202, 474, 1801, 1290, 9030, 10262, 10522, 273, 12831, 12240, 5621, 202, 202, 6385, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5450, 7288, 12925, 12, 6385, 514, 15667, 653, 16, 727, 26300, 797, 20148, 13, 202, 95, 202, 202, 474, 1801, 1290, 9030, 10262, 10522, 273, 12831, 12240, 5621, 202, 202, 6385, 81...
reportException(e);
Throwable t = e.getCause(); if (t == null) { reportException(e); } else { reportException(t); }
public final void run() { if (isInvalid()) { return; } Shell parent = getWorkbenchWindow().getShell(); progressDialog = new TimeTriggeredProgressMonitorDialog(parent, getWorkbenchWindow().getWorkbench().getProgressService() .getLongOperationTime()); IRunnableWithProgress runnable = new IRunnableWithProgress() { public void run(IProgressMonitor pm) throws InvocationTargetException { try { runCommand(pm); } catch (ExecutionException e) { if (pruning) { flush(); } throw new InvocationTargetException(e); } } }; try { progressDialog.run(false, true, runnable); } catch (InvocationTargetException e) { reportException(e); } catch (InterruptedException e) { // Operation was cancelled and acknowledged by runnable with this // exception. // Do nothing. } catch (OperationCanceledException e) { // the operation was cancelled. Do nothing. } finally { progressDialog = null; } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/479139303ad969ec637ff02da23e9cb3f63b6930/OperationHistoryActionHandler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/OperationHistoryActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1086, 1435, 288, 202, 202, 430, 261, 291, 1941, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 13220, 982, 273, 29026, 22144, 3829, 7675, 588, 13220, 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, 225, 202, 482, 727, 918, 1086, 1435, 288, 202, 202, 430, 261, 291, 1941, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 13220, 982, 273, 29026, 22144, 3829, 7675, 588, 13220, 5621, ...
if (under == getRuby().getClasses().getObjectClass()) { value = RubyString.m_newString(getRuby(), name); } else { value = (RubyString) under.getClassPath().m_dup(); value.m_cat("::"); value.m_cat(name); }
if (under == getRuby().getClasses().getObjectClass()) { value = RubyString.m_newString(getRuby(), name); } else { value = (RubyString) under.getClassPath().m_dup(); value.m_cat("::"); value.m_cat(name); }
public void setClassPath(RubyModule under, String name) { RubyString value = null; if (under == getRuby().getClasses().getObjectClass()) { value = RubyString.m_newString(getRuby(), name); } else { value = (RubyString) under.getClassPath().m_dup(); value.m_cat("::"); value.m_cat(name); } getInstanceVariables().put(getRuby().intern("__classpath__"), value); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 22158, 12, 54, 10340, 3120, 3613, 16, 514, 508, 13, 288, 202, 202, 54, 10340, 780, 460, 273, 446, 31, 202, 202, 430, 261, 9341, 422, 4170, 10340, 7675, 588, 4818, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 22158, 12, 54, 10340, 3120, 3613, 16, 514, 508, 13, 288, 202, 202, 54, 10340, 780, 460, 273, 446, 31, 202, 202, 430, 261, 9341, 422, 4170, 10340, 7675, 588, 4818, ...
field.setFlags(field.FLAGS_PRINT | field.FLAGS_NOVIEW);
field.setFlags(PdfAnnotation.FLAGS_PRINT | PdfAnnotation.FLAGS_NOVIEW);
public PdfFormField getTextField() throws IOException, DocumentException { PdfFormField field = PdfFormField.createTextField(writer, false, false, maxCharacterLength); field.setWidget(box, PdfAnnotation.HIGHLIGHT_INVERT); field.setFieldName(fieldName); switch (alignment) { case Element.ALIGN_CENTER: field.setQuadding(PdfFormField.Q_CENTER); break; case Element.ALIGN_RIGHT: field.setQuadding(PdfFormField.Q_RIGHT); break; } if (rotation != 0) field.setMKRotation(rotation); field.setValueAsString(text); if (defaultText != null) field.setDefaultValueAsString(defaultText); field.setBorderStyle(new PdfBorderDictionary(borderWidth, borderStyle, new PdfDashPattern(3))); PdfAppearance tp = getAppearance(); field.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, tp); PdfAppearance da = (PdfAppearance)tp.getDuplicate(); da.setFontAndSize(getRealFont(), fontSize); if (textColor == null) da.setGrayFill(0); else da.setColorFill(textColor); field.setDefaultAppearanceString(da); if (borderColor != null) field.setMKBorderColor(borderColor); if (backgroundColor != null) field.setMKBackgroundColor(backgroundColor); switch (visibility) { case HIDDEN: field.setFlags(field.FLAGS_PRINT | field.FLAGS_HIDDEN); break; case VISIBLE_BUT_DOES_NOT_PRINT: break; case HIDDEN_BUT_PRINTABLE: field.setFlags(field.FLAGS_PRINT | field.FLAGS_NOVIEW); break; default: field.setFlags(field.FLAGS_PRINT); break; } if ((options & READ_ONLY) != 0) field.setFieldFlags(field.FF_READ_ONLY); if ((options & REQUIRED) != 0) field.setFieldFlags(field.FF_REQUIRED); if ((options & MULTILINE) != 0) field.setFieldFlags(field.FF_MULTILINE); if ((options & DO_NOT_SCROLL) != 0) field.setFieldFlags(field.FF_DONOTSCROLL); if ((options & PASSWORD) != 0) field.setFieldFlags(field.FF_PASSWORD); if ((options & FILE_SELECTION) != 0) field.setFieldFlags(field.FF_FILESELECT); if ((options & DO_NOT_SPELL_CHECK) != 0) field.setFieldFlags(field.FF_DONOTSPELLCHECK); return field; }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/611191854f19ee0e0c7dd1aab39e997c96600efd/TextField.java/buggy/src/com/lowagie/text/pdf/TextField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9989, 27317, 6701, 974, 1435, 1216, 1860, 16, 4319, 503, 288, 3639, 9989, 27317, 652, 273, 9989, 27317, 18, 2640, 16157, 12, 6299, 16, 629, 16, 629, 16, 943, 7069, 1782, 1769, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9989, 27317, 6701, 974, 1435, 1216, 1860, 16, 4319, 503, 288, 3639, 9989, 27317, 652, 273, 9989, 27317, 18, 2640, 16157, 12, 6299, 16, 629, 16, 629, 16, 943, 7069, 1782, 1769, 3639,...
public boolean removeChildren() { boolean deletedSome = false; if (content != null) { Iterator i = content.iterator(); while (i.hasNext()) { Object obj = i.next(); if (obj instanceof Element) { Element element = (Element)obj; i.remove(); element.setParent(null); deletedSome = true; } } } return deletedSome;
public boolean removeChildren(String name) { return removeChildren(name, Namespace.NO_NAMESPACE);
public boolean removeChildren() { boolean deletedSome = false; if (content != null) { Iterator i = content.iterator(); while (i.hasNext()) { Object obj = i.next(); if (obj instanceof Element) { Element element = (Element)obj; i.remove(); element.setParent(null); deletedSome = true; } } } return deletedSome; }
49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/0a431bbb50e8af0fe49545a5575fb2ff104a96c2/Element.java/clean/core/src/java/org/jdom/Element.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1206, 4212, 1435, 288, 3639, 1250, 4282, 17358, 273, 629, 31, 3639, 309, 261, 1745, 480, 446, 13, 288, 5411, 4498, 277, 273, 913, 18, 9838, 5621, 5411, 1323, 261, 77, 18, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 4212, 1435, 288, 3639, 1250, 4282, 17358, 273, 629, 31, 3639, 309, 261, 1745, 480, 446, 13, 288, 5411, 4498, 277, 273, 913, 18, 9838, 5621, 5411, 1323, 261, 77, 18, 53...
protected void recordRefusalToInlineHotEdge(int cmid, VM_Method caller, int bcX, VM_Method callee) {
protected void recordRefusalToInlineHotEdge(VM_CompiledMethod cm, VM_Method caller, int bcX, VM_Method callee) {
protected void recordRefusalToInlineHotEdge(int cmid, VM_Method caller, int bcX, VM_Method callee) { // by default; nothing to do }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/8eccd357cbc5e56039b677c6615fa81668c2b790/OPT_ProfileDirectedInlineOracle.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/ipa/inlining/OPT_ProfileDirectedInlineOracle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1409, 1957, 407, 287, 774, 10870, 25270, 6098, 12, 7397, 67, 20733, 1305, 5003, 16, 8251, 67, 1305, 4894, 16, 509, 6533, 60, 16, 8251, 67, 1305, 14425, 13, 288, 565, 368, 635...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1409, 1957, 407, 287, 774, 10870, 25270, 6098, 12, 7397, 67, 20733, 1305, 5003, 16, 8251, 67, 1305, 4894, 16, 509, 6533, 60, 16, 8251, 67, 1305, 14425, 13, 288, 565, 368, 635...
SystemException exception = ObjectCreator.createSystemException(idl, minor, status);
try { exception = (SystemException) createObject(idl, null); exception.minor = minor; exception.completed = completed; } catch (Exception ex) { UNKNOWN u = new UNKNOWN("Unsupported system exception " + idl, minor, completed); u.initCause(ex); throw u; } try { ServiceContext uEx = ServiceContext.find( ServiceContext.UnknownExceptionInfo, contexts); if (uEx != null) { cdrBufInput in = new cdrBufInput(uEx.context_data); in.setOrb(in.orb()); if (input instanceof cdrInput) { ((cdrInput) input).cloneSettings(in); } Throwable t = UnknownExceptionCtxHandler.read(in, contexts); exception.initCause(t); } } catch (Exception ex) { }
public static SystemException readSystemException(InputStream input) { String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus status = CompletionStatusHelper.read(input); SystemException exception = ObjectCreator.createSystemException(idl, minor, status); return exception; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/44e3ea509d80974dab547c4d1cf8c070d32bac86/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 26731, 855, 3163, 503, 12, 4348, 810, 13, 225, 288, 565, 514, 612, 80, 273, 810, 18, 896, 67, 1080, 5621, 565, 509, 8439, 273, 810, 18, 896, 67, 332, 932, 5621, 565, 20735,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 26731, 855, 3163, 503, 12, 4348, 810, 13, 225, 288, 565, 514, 612, 80, 273, 810, 18, 896, 67, 1080, 5621, 565, 509, 8439, 273, 810, 18, 896, 67, 332, 932, 5621, 565, 20735,...
WorkflowManager.start(context, (WorkspaceItem) subInfo.submission);
private void processLicense(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException { String buttonPressed = UIUtil.getSubmitButton(request, "submit_cancel"); if (buttonPressed.equals("submit_grant")) { // License granted log.info(LogManager.getHeader(context, "accept_license", getSubmissionLogInfo(subInfo))); // Add the license to the item Item item = subInfo.submission.getItem(); EPerson submitter = context.getCurrentUser(); // FIXME: Probably need to take this from the form at some point String license = subInfo.submission.getCollection().getLicense(); item.licenseGranted(license, submitter); // Start the workflow //WorkflowManager.start(context, (WorkspaceItem) subInfo.submission); // FIXME: pass in more information about what happens next? //JSPManager.showJSP(request, response, "/submit/complete.jsp"); // are we using Creative Commons? int next_step = CC.isEnabled() ? CC_LICENSE : SUBMISSION_COMPLETE; if (next_step == SUBMISSION_COMPLETE) { // Start the workflow WorkflowManager.start(context, (WorkspaceItem) subInfo.submission); } userHasReached(subInfo, next_step); doStep(context, request, response, subInfo, next_step); context.complete(); } else if (request.getParameter("submit_reject") != null) { // User has rejected license. log.info(LogManager.getHeader(context, "reject_license", getSubmissionLogInfo(subInfo))); // Show information page. JSPManager.showJSP(request, response, "/submit/license-rejected.jsp"); } else { doStepJump(context, request, response, subInfo); } }
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/ff2d6332ab8a7caaa8f9f2a5dbcc2deecad999a9/SubmitServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/SubmitServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 11363, 1318, 18, 1937, 12, 2472, 16, 261, 8241, 1180, 13, 720, 966, 18, 12684, 1769, 11363, 1318, 18, 1937, 12, 2472, 16, 261, 8241, 1180, 13, 720, 966, 18, 12684, 1769, 11363, 1318, 18, 193...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11363, 1318, 18, 1937, 12, 2472, 16, 261, 8241, 1180, 13, 720, 966, 18, 12684, 1769, 11363, 1318, 18, 1937, 12, 2472, 16, 261, 8241, 1180, 13, 720, 966, 18, 12684, 1769, 11363, 1318, 18, 193...
return new MuleEndpointURI("xmpp:
return new MuleEndpointURI("xmpp:
protected UMOEndpointURI getOutDest() { try { return new MuleEndpointURI("xmpp://mule2:mule@jabber.org.au"); } catch (MalformedEndpointException e) { fail(e.getMessage()); return null; } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/98f54e0e62d0d927872da793bbc22d09a9a9e2c5/XmppFunctionalTestCase.java/clean/tests/integration/src/test/java/org/mule/test/integration/providers/xmpp/XmppFunctionalTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 587, 5980, 3293, 3098, 23141, 9378, 1435, 565, 288, 3639, 775, 288, 5411, 327, 394, 490, 725, 3293, 3098, 2932, 92, 24109, 2207, 81, 725, 22, 30, 81, 725, 36, 78, 378, 744, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 587, 5980, 3293, 3098, 23141, 9378, 1435, 565, 288, 3639, 775, 288, 5411, 327, 394, 490, 725, 3293, 3098, 2932, 92, 24109, 2207, 81, 725, 22, 30, 81, 725, 36, 78, 378, 744, 18, ...
if (result != null)
if (result != null) { if (result instanceof NativeJavaMethod) return ((NativeJavaMethod) result).getDefaultValue(null);
public Object get(String name, Scriptable start) { if (fieldAndMethods != null) { Object result = fieldAndMethods.get(name); if (result != null) return result; } // TODO: passing 'this' as the scope is bogus since it has // no parent scope return members.get(this, name, javaObject, false); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/d51c86ce41d18ae0fb0b3b8271845674d5ce2728/NativeJavaObject.java/clean/js/rhino/org/mozilla/javascript/NativeJavaObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 12, 780, 508, 16, 22780, 787, 13, 288, 3639, 309, 261, 1518, 1876, 4712, 480, 446, 13, 288, 5411, 1033, 563, 273, 652, 1876, 4712, 18, 588, 12, 529, 1769, 5411, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 780, 508, 16, 22780, 787, 13, 288, 3639, 309, 261, 1518, 1876, 4712, 480, 446, 13, 288, 5411, 1033, 563, 273, 652, 1876, 4712, 18, 588, 12, 529, 1769, 5411, 309, ...
addMibObject("ifInOctets", ".1.3.6.1.2.1.2.2.1.10", "ifIndex", "counter");
addAttribute("ifInOctets", ".1.3.6.1.2.1.2.2.1.10", "ifIndex", "counter");
protected void addIfInOctets() { addMibObject("ifInOctets", ".1.3.6.1.2.1.2.2.1.10", "ifIndex", "counter"); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/7d3dd9c5c505cae507a7524a6d4504bb28f24852/SnmpCollectorTestCase.java/buggy/src/services/org/opennms/netmgt/snmp/SnmpCollectorTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 2047, 382, 19320, 2413, 1435, 288, 3639, 10759, 2932, 430, 382, 19320, 2413, 3113, 3552, 21, 18, 23, 18, 26, 18, 21, 18, 22, 18, 21, 18, 22, 18, 22, 18, 21, 18, 2163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 918, 527, 2047, 382, 19320, 2413, 1435, 288, 3639, 10759, 2932, 430, 382, 19320, 2413, 3113, 3552, 21, 18, 23, 18, 26, 18, 21, 18, 22, 18, 21, 18, 22, 18, 22, 18, 21, 18, 2163...
return RubyArray.newArray(runtime, runtime.getLoadService().getLoadedFeatures());
return runtime.newArray(runtime.getLoadService().getLoadedFeatures());
public IRubyObject get() { return RubyArray.newArray(runtime, runtime.getLoadService().getLoadedFeatures()); }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyGlobal.java/clean/src/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 15908, 10340, 921, 336, 1435, 288, 5411, 327, 3099, 18, 2704, 1076, 12, 9448, 18, 588, 2563, 1179, 7675, 588, 8835, 8696, 10663, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 15908, 10340, 921, 336, 1435, 288, 5411, 327, 3099, 18, 2704, 1076, 12, 9448, 18, 588, 2563, 1179, 7675, 588, 8835, 8696, 10663, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -1...
String str = System.getProperty("java.vm.info"); return str; }
return System.getProperty(s); }
public Object run() { String str = System.getProperty("java.vm.info"); return str; }
8698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8698/c9ec799fe1b5afddc3c4a3d6d78eabcf21ba3811/MasterControl.java/buggy/src/classes/share/javax/media/j3d/MasterControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 21821, 1071, 1033, 1086, 1435, 288, 9506, 1377, 514, 609, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 3489, 18, 1376, 8863, 9506, 202, 2463, 609, 31, 9506, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 21821, 1071, 1033, 1086, 1435, 288, 9506, 1377, 514, 609, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 3489, 18, 1376, 8863, 9506, 202, 2463, 609, 31, 9506, 225, 289, 2, -100, -100, -100, -100, ...
final DateCalculator<LocalDate> cal1 = DefaultDateCalculatorFactory.getDefaultInstance().getDateCalculator("bla", null);
final DateCalculator<LocalDate> cal1 = DefaultLocalDateCalculatorFactory.getDefaultInstance().getDateCalculator("bla", null);
public void testGetCalendarsNoHolidayButSomeRegistered() { final Set<LocalDate> uk = createUKHolidays(); DefaultDateCalculatorFactory.getDefaultInstance().registerHolidays("UK", uk); final DateCalculator<LocalDate> cal1 = DefaultDateCalculatorFactory.getDefaultInstance().getDateCalculator("bla", null); Assert.assertNotNull("cal1", cal1); Assert.assertEquals("name", "bla", cal1.getName()); Assert.assertTrue("no holiday", cal1.getNonWorkingDays().isEmpty()); final DateCalculator<LocalDate> cal2 = DefaultDateCalculatorFactory.getDefaultInstance().getDateCalculator("UK", null); Assert.assertNotNull("cal2", cal2); Assert.assertEquals("name cal2", "UK", cal2.getName()); Assert.assertEquals("UK holidays", 4, cal2.getNonWorkingDays().size()); Assert.assertNotSame(cal1, cal2); }
53121 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53121/9e34e0a213006417903b391d3aa734c2d848e360/DateCalculatorFactoryTest.java/buggy/datecalc-joda/src/test/java/net/objectlab/kit/datecalc/joda/DateCalculatorFactoryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 7335, 87, 2279, 44, 17559, 31167, 17358, 10868, 1435, 288, 3639, 727, 1000, 32, 2042, 1626, 34, 27178, 273, 752, 57, 47, 44, 22999, 5621, 3639, 2989, 1626, 19278, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 7335, 87, 2279, 44, 17559, 31167, 17358, 10868, 1435, 288, 3639, 727, 1000, 32, 2042, 1626, 34, 27178, 273, 752, 57, 47, 44, 22999, 5621, 3639, 2989, 1626, 19278, 17...
return RubyFixnum.newFixnum(recv.getRuntime(), 0);
return recv.getRuntime().newFixnum(0);
public static IRubyObject chdir(IRubyObject recv, RubyString path) { File dir = getDir(recv.getRuntime(), path.toString()); String realPath = null; // We get canonical path to try and flatten the path out. // a dir '/subdir/..' should return as '/' try { realPath = dir.getCanonicalPath(); } catch (IOException e) { realPath = dir.getAbsolutePath(); } System.setProperty("user.dir", realPath); return RubyFixnum.newFixnum(recv.getRuntime(), 0); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 14029, 12, 7937, 10340, 921, 10665, 16, 19817, 780, 589, 13, 288, 3639, 1387, 1577, 273, 26505, 12, 18334, 18, 588, 5576, 9334, 589, 18, 10492, 10663, 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, 760, 15908, 10340, 921, 14029, 12, 7937, 10340, 921, 10665, 16, 19817, 780, 589, 13, 288, 3639, 1387, 1577, 273, 26505, 12, 18334, 18, 588, 5576, 9334, 589, 18, 10492, 10663, 3639, ...
writer().println(); writer().println("Time: "+elapsedTimeAsString(runTime));
getWriter().println(); getWriter().println("Time: "+elapsedTimeAsString(runTime));
public TestResult doRun(Test suite, boolean wait) { TestResult result= createTestResult(); result.addListener(this); long startTime= System.currentTimeMillis(); suite.run(result); long endTime= System.currentTimeMillis(); long runTime= endTime-startTime; writer().println(); writer().println("Time: "+elapsedTimeAsString(runTime)); print(result); writer().println(); pause(wait); return result; }
46809 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46809/0807a8cd01b6d63d54f9a3580540fa35b7fb292e/TestRunner.java/clean/junit/textui/TestRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7766, 1253, 741, 1997, 12, 4709, 11371, 16, 1250, 2529, 13, 288, 202, 202, 4709, 1253, 563, 33, 752, 4709, 1253, 5621, 202, 202, 2088, 18, 1289, 2223, 12, 2211, 1769, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7766, 1253, 741, 1997, 12, 4709, 11371, 16, 1250, 2529, 13, 288, 202, 202, 4709, 1253, 563, 33, 752, 4709, 1253, 5621, 202, 202, 2088, 18, 1289, 2223, 12, 2211, 1769, 202, 202...
FBFileChooser jfc= new FBFileChooser(); jfc.setFileSelectionMode(JFileChooser.FILES_ONLY); jfc.setFileFilter(new FindBugsAnalysisFileFilter()); boolean importing = true; while(importing){ int returnValue=jfc.showOpenDialog(new JFrame()); if (returnValue==JFileChooser.APPROVE_OPTION) { File file=jfc.getSelectedFile(); if(!file.exists()){ JOptionPane.showMessageDialog(jfc, "That file does not exist"); importing = true; continue; } else importing = false; setCursor(new Cursor(Cursor.WAIT_CURSOR)); final File extraFinalReferenceToXmlFile=file; new Thread(new Runnable(){ public void run() { BugTreeModel model=(BugTreeModel)tree.getModel(); MainFrame.this.setRebuilding(true); BugSet bs=BugLoader.loadBugs(extraFinalReferenceToXmlFile); MainFrame.this.setRebuilding(false); if (bs!=null) { ProjectSettings.newInstance(); model.getOffListenerList(); updateDesignation(); model.changeSet(bs); curProject=BugLoader.getLoadedProject(); MainFrame.this.updateStatusBar(); } } }).start(); setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); setProjectChanged(false); } else return; }
PreferencesFrame.getInstance().setVisible(true);
public void actionPerformed(ActionEvent evt){ saveCommentsToBug(currentSelectedBugLeaf); FBFileChooser jfc= new FBFileChooser(); jfc.setFileSelectionMode(JFileChooser.FILES_ONLY); jfc.setFileFilter(new FindBugsAnalysisFileFilter()); // jfc.setCurrentDirectory(GUISaveState.getInstance().getStarterDirectoryForLoadBugs()); this is done by FBFileChooser now. boolean importing = true; while(importing){ int returnValue=jfc.showOpenDialog(new JFrame()); if (returnValue==JFileChooser.APPROVE_OPTION) { File file=jfc.getSelectedFile(); if(!file.exists()){ JOptionPane.showMessageDialog(jfc, "That file does not exist"); importing = true; continue; } else importing = false; setCursor(new Cursor(Cursor.WAIT_CURSOR)); final File extraFinalReferenceToXmlFile=file; new Thread(new Runnable(){ public void run() { BugTreeModel model=(BugTreeModel)tree.getModel();// BugTreeModel.pleaseWait(); MainFrame.this.setRebuilding(true); BugSet bs=BugLoader.loadBugs(extraFinalReferenceToXmlFile); MainFrame.this.setRebuilding(false); if (bs!=null) { ProjectSettings.newInstance(); model.getOffListenerList(); updateDesignation(); model.changeSet(bs); curProject=BugLoader.getLoadedProject(); MainFrame.this.updateStatusBar(); } } }).start(); setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); setProjectChanged(false); } else return;// GUISaveState.getInstance().setStarterDirectoryForLoadBugs(jfc.getCurrentDirectory()); This is done by FBFileChooser } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/656f9d72014637d1d40aabcd1f0fbe082a23eccc/MainFrame.java/buggy/findbugs/src/java5/edu/umd/cs/findbugs/gui2/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 15329, 9506, 202, 5688, 9051, 774, 19865, 12, 2972, 7416, 19865, 9858, 1769, 6862, 9506, 202, 22201, 812, 17324, 525, 7142, 33, 394, 478, 38, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 26100, 12, 1803, 1133, 6324, 15329, 9506, 202, 5688, 9051, 774, 19865, 12, 2972, 7416, 19865, 9858, 1769, 6862, 9506, 202, 22201, 812, 17324, 525, 7142, 33, 394, 478, 38, ...
public FontDefinition getFontDefinition() { return this.fdCurrent; }
public FontDefinition getFontDefinition( ) { return this.fdCurrent; }
public FontDefinition getFontDefinition() { return this.fdCurrent; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/6618c22738cb830a4ebf9a96efc9f66a82fd43a3/FontDefinitionComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10063, 1852, 18776, 1852, 1435, 565, 288, 3639, 327, 333, 18, 8313, 3935, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10063, 1852, 18776, 1852, 1435, 565, 288, 3639, 327, 333, 18, 8313, 3935, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
hadChanges |= ensureProperty( "hpAutoRecoverTarget", "1.0" );
hadChanges |= ensureProperty( "hpAutoRecoverTarget", "-0.1" );
private synchronized boolean ensureDefaults() { boolean hadChanges = false; // The remaining settings are not related to choice // adventures and require no special handling. hadChanges |= ensureProperty( "alwaysGetBreakfast", "true" ); hadChanges |= ensureProperty( "autoLogin", "" ); hadChanges |= ensureProperty( "autoRepairBoxes", "false" ); hadChanges |= ensureProperty( "autoSatisfyChecks", "false" ); hadChanges |= ensureProperty( "autoLogChat", "false" ); hadChanges |= ensureProperty( "battleAction", "attack" ); hadChanges |= ensureProperty( "battleStop", "0.0" ); hadChanges |= ensureProperty( "betweenBattleScript", "" ); hadChanges |= ensureProperty( "breakfast.softcore", "Summon Snowcone,Summon Hilarious Objects,Advanced Saucecrafting,Pastamastery,Advanced Cocktailcrafting" ); hadChanges |= ensureProperty( "breakfast.hardcore", "Summon Snowcone,Advanced Saucecrafting,Pastamastery,Advanced Cocktailcrafting" ); hadChanges |= ensureProperty( "browserBookmarks", "" ); hadChanges |= ensureProperty( "buffBotCasting", "" ); hadChanges |= ensureProperty( "buffBotMessageDisposal", "0" ); hadChanges |= ensureProperty( "chatStyle", "0" ); hadChanges |= ensureProperty( "clanRosterHeader", ClanSnapshotTable.getDefaultHeader() ); hadChanges |= ensureProperty( "cloverProtectActive", "false" ); hadChanges |= ensureProperty( "createWithoutBoxServants", "false" ); hadChanges |= ensureProperty( "defaultDropdown1", "0" ); hadChanges |= ensureProperty( "defaultDropdown2", "1" ); hadChanges |= ensureProperty( "defaultLimit", "13" ); hadChanges |= ensureProperty( "defaultToRelayBrowser", "true" ); hadChanges |= ensureProperty( "eSoluScriptType", "0" ); hadChanges |= ensureProperty( "fontSize", "3" ); hadChanges |= ensureProperty( "forceReconnect", "false" ); hadChanges |= ensureProperty( "hpAutoRecover", "-0.1" ); hadChanges |= ensureProperty( "hpAutoRecoverTarget", "1.0" ); hadChanges |= ensureProperty( "hpRecoveryScript", "" ); hadChanges |= ensureProperty( "hpRestores", "" ); hadChanges |= ensureProperty( "highlightList", "" ); hadChanges |= ensureProperty( "http.proxyHost", "" ); hadChanges |= ensureProperty( "http.proxyPort", "" ); hadChanges |= ensureProperty( "http.proxyUser", "" ); hadChanges |= ensureProperty( "http.proxyPassword", "" ); hadChanges |= ensureProperty( "initialDesktop", "AdventureFrame,MallSearchFrame,SkillBuffFrame,RestoreOptionsFrame" ); hadChanges |= ensureProperty( "initialFrames", "EventsFrame,MailboxFrame" ); hadChanges |= ensureProperty( "invalidBuffMessage", "You sent an amount which was not a valid buff amount." ); hadChanges |= ensureProperty( "keepSessionLogs", "false" ); hadChanges |= ensureProperty( "lastFaucetLocation", "-1" ); hadChanges |= ensureProperty( "lastFaucetUse", "0: " ); hadChanges |= ensureProperty( "lastAdventure", "" ); hadChanges |= ensureProperty( "lastMessageID", "" ); hadChanges |= ensureProperty( "lastUsername", "" ); hadChanges |= ensureProperty( "loginServer", "0" ); hadChanges |= ensureProperty( "luckySewerAdventure", "stolen accordion" ); hadChanges |= ensureProperty( "mpAutoRecover", "-0.1" ); hadChanges |= ensureProperty( "mpAutoRecoverTarget", "1.0" ); hadChanges |= ensureProperty( "mpRecoveryScript", "" ); hadChanges |= ensureProperty( "mpRestores", "" ); hadChanges |= ensureProperty( "proxySet", "false" ); hadChanges |= ensureProperty( "relayAddsCommandLineLinks", "true" ); hadChanges |= ensureProperty( "relayAddsSimulatorLinks", "true" ); hadChanges |= ensureProperty( "relayAddsUseLinks", "true" ); hadChanges |= ensureProperty( "relayMovesManeuver", "true" ); hadChanges |= ensureProperty( "saveState", "" ); hadChanges |= ensureProperty( "scriptList", "win game" ); hadChanges |= ensureProperty( "serverFriendly", "false" ); hadChanges |= ensureProperty( "showAdventureZone", "true" ); hadChanges |= ensureProperty( "showAllRequests", "false" ); hadChanges |= ensureProperty( "showClosetDrivenCreations", "true" ); hadChanges |= ensureProperty( "sortAdventures", "false" ); hadChanges |= ensureProperty( "thanksMessage", "Thank you for the donation. It is greatly appreciated." ); hadChanges |= ensureProperty( "toolbarPosition", "1" ); hadChanges |= ensureProperty( "useSystemTrayIcon", "false" ); hadChanges |= ensureProperty( "usePopupContacts", "1" ); hadChanges |= ensureProperty( "useTabbedChat", "1" ); hadChanges |= ensureProperty( "useTextHeavySidepane", "true" ); hadChanges |= ensureProperty( "useToolbars", "true" ); hadChanges |= ensureProperty( "whiteList", "" ); hadChanges |= ensureProperty( "zoneExcludeList", "Removed" ); hadChanges |= ensureProperty( "guiUsesOneWindow", "false" ); // These are settings related to choice adventures. // Ensure that they exist, and if they do not, load // them to their default settings. // KoL no longer allows you to "ignore" a choice adventure, // although some of them have a setting that is the equivalent // of "ignore". // Choices that have an "ignore" setting: use ensureProperty // Choices that have no "ignore" setting: use ensureNonZeroProperty hadChanges |= ensureProperty( "choiceAdventure2", "2" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure3", "1" ); hadChanges |= ensureProperty( "choiceAdventure4", "3" ); hadChanges |= ensureProperty( "choiceAdventure5", "2" ); hadChanges |= ensureProperty( "choiceAdventure7", "2" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure8", "3" ); hadChanges |= ensureProperty( "choiceAdventure9", "1" ); hadChanges |= ensureProperty( "choiceAdventure10", "1" ); hadChanges |= ensureProperty( "choiceAdventure11", "3" ); hadChanges |= ensureProperty( "choiceAdventure12", "2" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure14", "4" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure15", "4" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure16", "4" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure17", "4" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure18", "4" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure19", "4" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure20", "4" ); hadChanges |= ensureProperty( "choiceAdventure21", "2" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure22", "4" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure23", "4" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure24", "4" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure25", "2" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure26", "3" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure27", "2" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure28", "2" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure29", "2" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure40", "3" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure41", "3" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure42", "3" ); hadChanges |= ensureProperty( "choiceAdventure45", "0" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure46", "3" ); hadChanges |= ensureNonZeroProperty( "choiceAdventure47", "2" ); // Wheel choice adventures need special handling. // This is where everything is validated for that. // KoL no longer allows you to "ignore" a choice adventure. // Fortunately, the wheel choices all provide a "leave the wheel alone" option // which does exactly that - and doesn't use an adventure to take it. int [] wheelChoices = new int[4]; for ( int i = 0; i < 4; ++i ) wheelChoices[i] = Integer.parseInt( getProperty( "choiceAdventure" + (9+i) ) ); int clockwiseCount = 0, counterClockwiseCount = 0; for ( int i = 0; i < 4; ++i ) { switch ( wheelChoices[i] ) { case 0: wheelChoices[i] = 3; break; case 1: ++clockwiseCount; break; case 2: ++counterClockwiseCount; break; } } // Check for valid settings: // 1) Two clockwise, one counterclockwise, one leave alone // 2) Two counterclockwise, one clockwise, one leave alone // 3) Four clockwise // 4) Four counterclockwise // 5) All leave alone if ( !( (clockwiseCount == 1 && counterClockwiseCount == 2) || (clockwiseCount == 2 && counterClockwiseCount == 1) || (clockwiseCount == 4) || (counterClockwiseCount == 4) || (clockwiseCount == 0 && counterClockwiseCount == 0) ) ) { wheelChoices[0] = 1; wheelChoices[1] = 1; wheelChoices[2] = 3; wheelChoices[3] = 2; } String wheelChoice = null; String wheelDecision = null; for ( int i = 0; i < 4; ++i ) { wheelChoice = "choiceAdventure" + (9+i); wheelDecision = String.valueOf( wheelChoices[i] ); if ( !getProperty( wheelChoice ).equals( wheelDecision ) ) { super.setProperty( wheelChoice, wheelDecision ); hadChanges = true; } } // Return whether or not any changes were detected // in the settings files. return hadChanges; }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/6b389a4a30a0bf6cdceacf732fb01bdfb54ea3aa/KoLSettings.java/buggy/src/net/sourceforge/kolmafia/KoLSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 1250, 3387, 7019, 1435, 202, 95, 202, 202, 6494, 9323, 7173, 273, 629, 31, 202, 202, 759, 1021, 4463, 1947, 854, 486, 3746, 358, 6023, 202, 202, 759, 1261, 616, 1823, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 1250, 3387, 7019, 1435, 202, 95, 202, 202, 6494, 9323, 7173, 273, 629, 31, 202, 202, 759, 1021, 4463, 1947, 854, 486, 3746, 358, 6023, 202, 202, 759, 1261, 616, 1823, 4...
T.require(Ref.EVENTUAL == state, "unrecognized state: ", state);
T.require(Ref.EVENTUAL == state, "unrecognized state: ", state);
private Object packageArg(Object arg, Vat src, Vat dest, Vat currentVat) { arg = Ref.resolution(arg); String state = Ref.state(arg); arg = Ref.resolution(arg); if (src == dest) { return arg; } if (Ref.BROKEN == state) { return arg; } else if (Ref.NEAR == state) { if (Ref.isDeepPassByCopy(arg)) { return arg; } if (Ref.isPassByProxy(arg)) { BootRefHandler handler = new BootRefHandler(src, arg); return handler.myResolver.getProxy(); } if (arg instanceof ConstList) { //XXX Must handle cycles //XXX Should handle other PassByCopy types //XXX Perhaps we should abstract out arrays as a separate case? ConstList argList = (ConstList)arg; Object[] result = new Object[argList.size()]; for (int i = 0, len = result.length; i < len; i++) { result[i] = packageArg(argList.get(i), src, dest, currentVat); } return ConstList.fromArray(result); } if (arg instanceof ConstMap) { //XXX Must handle cycles //XXX Should handle other PassByCopy types //XXX Perhaps we should abstract out arrays as a separate case? ConstMap argMap = (ConstMap)arg; ConstList keys = ConstList.fromArray(argMap.getKeys()); keys = (ConstList)packageArg(keys, src, dest, currentVat); ConstList vals = ConstList.fromArray(argMap.getValues()); vals = (ConstList)packageArg(vals, src, dest, currentVat); try { return ConstMap.fromColumns(keys, vals); } catch (ArityMismatchException e) { throw ExceptionMgr.asSafe(e); } } //XXX For now, if it isn't passable over boot comm, treat it as // if it was PassByProxy.// T.fail("Not passable over boot-comm: " +// ClassDesc.simpleSig(arg.getClass()));// return null; //make compiler happy BootRefHandler handler = new BootRefHandler(src, arg); return handler.myResolver.getProxy(); } else { T.require(Ref.EVENTUAL == state, "unrecognized state: ", state); BootRefHandler optHandler = getOptBootRefHandler(arg); if (null != optHandler) { // arg is a boot-ref (a ref handled by a BootRefHandler). if (dest == optHandler.myTargetsVat) { return optHandler.myTarget; } //XXX I think the following rejection could be innocently //caused by a race condition, and should therefore be handled //rather than rejected. T.require(src != optHandler.myTargetsVat, "Unshortened boot-ref: ", arg); return packageArg(optHandler.myTarget, optHandler.myTargetsVat, dest, currentVat); } //arg is EVENTUAL (or was at the time of the test), and is not //handled by a BootRefHandler, so we treat it as a promise in the //src vat. BootRefHandler handler = new BootRefHandler(src, arg); DelayedRedirector rdr = new DelayedRedirector(handler.myResolver); //handler and rdr are in the dest vat Object[] args = {packageArg(rdr, dest, src, currentVat)}; src.qSendAllOnly(arg, false, "__whenMoreResolved", args); //Is it ok to ignore the E.sendOnly return result here? return handler.myResolver.getProxy(); } }
48789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48789/48595234ae9f57bdc6adadb3045aac726a2cd8bf/BootRefHandler.java/clean/src/jsrc/org/erights/e/elib/vat/BootRefHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 2181, 4117, 12, 921, 1501, 16, 25299, 1705, 16, 25299, 1570, 16, 25299, 783, 15706, 13, 288, 3639, 1501, 273, 3941, 18, 19182, 12, 3175, 1769, 3639, 514, 919, 273, 3941, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 2181, 4117, 12, 921, 1501, 16, 25299, 1705, 16, 25299, 1570, 16, 25299, 783, 15706, 13, 288, 3639, 1501, 273, 3941, 18, 19182, 12, 3175, 1769, 3639, 514, 919, 273, 3941, 18, ...
super(iNode.getExt2FileSystem()); this.iNode=iNode; log.setLevel(Level.DEBUG); }
super(iNode.getExt2FileSystem()); this.iNode = iNode; log.setLevel(Level.DEBUG); }
public Ext2File(INode iNode) { super(iNode.getExt2FileSystem()); this.iNode=iNode; log.setLevel(Level.DEBUG); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2File.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2File.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6419, 22, 812, 12, 23184, 277, 907, 13, 288, 202, 202, 9565, 12, 77, 907, 18, 588, 2482, 22, 11785, 10663, 202, 202, 2211, 18, 77, 907, 33, 77, 907, 31, 9506, 202, 1330, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6419, 22, 812, 12, 23184, 277, 907, 13, 288, 202, 202, 9565, 12, 77, 907, 18, 588, 2482, 22, 11785, 10663, 202, 202, 2211, 18, 77, 907, 33, 77, 907, 31, 9506, 202, 1330, 1...
if (m_komi != null) sendIfSupported("komi", "komi " + m_komi.floatValue());
sendIfSupported("komi", "komi " + m_komi);
private boolean newGame(int size, StringBuffer response) { m_cpuTimeBlack = getCpuTime(m_black); m_cpuTimeWhite = getCpuTime(m_white); try { m_black.sendCommandBoardsize(size); m_black.sendCommandClearBoard(size); } catch (Gtp.Error e) { response.append("B: " + e.getMessage()); return false; } try { m_white.sendCommandBoardsize(size); m_white.sendCommandClearBoard(size); } catch (Gtp.Error e) { response.append("W: " + e.getMessage()); m_inconsistentState = true; return false; } if (m_referee != null) { String commandBoardsize = m_referee.getCommandBoardsize(size); if (commandBoardsize != null) sendToReferee(commandBoardsize); sendToReferee(m_referee.getCommandClearBoard(size)); m_refereeIsDisabled = false; } m_inconsistentState = false; initGame(size); m_gameSaved = false; if (m_komi != null) sendIfSupported("komi", "komi " + m_komi.floatValue()); return true; }
48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/a73fd1ab14549cfac358c3091697d98459c7c055/TwoGtp.java/clean/src/twogtp/TwoGtp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 394, 12496, 12, 474, 963, 16, 6674, 766, 13, 565, 288, 3639, 312, 67, 11447, 950, 13155, 273, 1927, 11938, 950, 12, 81, 67, 11223, 1769, 3639, 312, 67, 11447, 950, 13407, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 394, 12496, 12, 474, 963, 16, 6674, 766, 13, 565, 288, 3639, 312, 67, 11447, 950, 13155, 273, 1927, 11938, 950, 12, 81, 67, 11223, 1769, 3639, 312, 67, 11447, 950, 13407, 27...
(debuggerInstance, null);
(debuggerInstance, (Object[]) null);
public void clearAllBreakpoints() { try { debuggerMethods[CLEAR_ALL_BREAKPOINTS_METHOD].invoke (debuggerInstance, null); } catch (InvocationTargetException ite) { throw new RuntimeException(ite); } catch (IllegalAccessException iae) { throw new RuntimeException(iae); } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/89c71b0930fb59d440d69de859083d0989b8f15e/JSVGViewerFrame.java/clean/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 29453, 7634, 4139, 1435, 288, 5411, 775, 288, 7734, 19977, 4712, 63, 23181, 985, 67, 4685, 67, 27960, 8941, 55, 67, 5327, 8009, 14407, 10792, 261, 4148, 693, 1442, 16, 261, 921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29453, 7634, 4139, 1435, 288, 5411, 775, 288, 7734, 19977, 4712, 63, 23181, 985, 67, 4685, 67, 27960, 8941, 55, 67, 5327, 8009, 14407, 10792, 261, 4148, 693, 1442, 16, 261, 921...
case '&': case '`': case '\'': case '+':
case '&': case '`': case '\'': case '+':
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\004': // ^D case '\032': // ^Z case -1: //end of script. return 0; // white spaces case ' ': case '\t': case '\f': case '\r': case '\013': // '\v' space_seen = true; continue retry; case '#': // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n': switch (ph.getLexState()) { case LexState.EXPR_BEG: case LexState.EXPR_FNAME: case LexState.EXPR_DOT: continue retry; default: break; } ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*': if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=': if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (; ; ) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<': c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"': return parse_string(c, c, c); case '`': if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'': return parse_qstring(c, 0); case '?': if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.m_newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&': if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return start_num(c); case ']': case '}': ph.setLexState(LexState.EXPR_END); return c; case ')': if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':': c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/': if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',': case ';': // ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return c; case '~': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(': if (cond_nest > 0) { cond_stack = (cond_stack << 1 ) | 0; } // ph.setCommandStart(true); if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (space_seen) { if (ph.getLexState() == LexState.EXPR_CMDARG) { c = Token.tLPAREN_ARG; } else if (ph.getLexState() == LexState.EXPR_ARG) { ph.rb_warning(tok() + " (...) interpreted as method call"); c = Token.tLPAREN_ARG; } } ph.setLexState(LexState.EXPR_BEG); return c; case '[': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{': if (!IS_ARG()) { if (space_seen && ph.getLexState() == LexState.EXPR_ENDARG) { c = Token.tLBRACE_ARG; } if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG) { c = Token.tLBRACE; } } ph.setLexState(LexState.EXPR_BEG); return c; case '\\': c = nextc(); if (c == '\n') { space_seen = true; continue retry; // skip \\n } pushback(c); return '\\'; case '%': quotation : for (; ; ) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q': return parse_string('"', term, paren); case 'q': return parse_qstring(term, paren); case 'w': return parse_quotedwords(term, paren); case 'x': return parse_string('`', term, paren); case 'r': return parse_regx(term, paren); default: yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$': ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_': // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~': // $~: match-data ph.local_cnt(c); // fall through case '*': // $*: argv case '$': // $$: pid case '?': // $?: last status case '!': // $!: error string case '@': // $@: error position case '/': // $/: input record separator case '\\':// $\: output record separator case ';': // $;: field separator case ',': // $,: output field separator case '.': // $.: last read line number case '=': // $=: ignorecase case ':': // $:: load path case '<': // $<: reading filename case '>': // $>: default output handle case '\"':// $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); return Token.tGVAR; case '-': tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); /* * xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&': // $&: last match case '`': // $`: string before last match case '\'':// $': string after last match case '+': // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default: if (!is_identchar(c)) { pushback(c); return '$'; } case '0': tokadd('$'); } break; case '@': c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default: if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * c = nextc(); * tokadd(c); * } * } */ c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$': ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@': ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default: if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P() && state != LexState.EXPR_CMDARG) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG || ph.getLexState() == LexState.EXPR_CMDARG) { if (cmd_state) { ph.setLexState(LexState.EXPR_CMDARG); } else { ph.setLexState(LexState.EXPR_ARG); } } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = /* last_id = */ ruby.intern(tok()); //XXX really overwrite last_id? return result; } }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 1250, 3476, 67, 15156, 273, 629, 31, 3639, 1250, 1797, 67, 2019, 31, 3639, 5323, 2121, 5323, 31, 3639, 1797, 67, 2019, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 1250, 3476, 67, 15156, 273, 629, 31, 3639, 1250, 1797, 67, 2019, 31, 3639, 5323, 2121, 5323, 31, 3639, 1797, 67, 2019, 273...
/*return nf.Cast(position(), nf.CanonicalTypeNode(position(), param).type(param), (Expr) nf.Call(position(), array, "get", args).typeCheck(tc)).typeCheck(tc);*/
public Node typeCheck(TypeChecker tc) throws SemanticException { X10TypeSystem ts = (X10TypeSystem) tc.typeSystem(); X10NodeFactory nf = (X10NodeFactory) tc.nodeFactory(); Type type = array.type(); if (!type.isArray()) { X10Type target = (X10Type) type; if (!target.isX10Array()) throw new SemanticException( "Subscript can only follow an array type.", position()); } //System.out.println("X10ArrayAccess1_c: Checking if |" + this + "| should be an ArrayAccess."); // [IP] TODO: Huh? Didn't we just check for this? if (type instanceof NullableType_c) { type = ((NullableType_c)type).base(); } if (type.isArray()) { // System.out.println("X10ArrayAccess1_c: yes, |" + this + "| should."); return nf.ArrayAccess(position(), array, index).typeCheck(tc); } //System.out.println("X10ArrayAccess1_c: no, |" + this + "| isn't."); if (!ts.isImplicitCastValid(index.type(), ts.point()) && (!index.type().isInt())) { throw new SemanticException( "Array subscript |" + toString() + "| must be an integer or a point.", position()); } List args = new LinkedList(); args.add(index); X10Type pt = (X10Type) type; if (pt.isParametric()) { List params = pt.typeParameters(); Type param = (Type) params.get(0); return type(param); /*return nf.Cast(position(), nf.CanonicalTypeNode(position(), param).type(param), (Expr) nf.Call(position(), array, "get", args).typeCheck(tc)).typeCheck(tc);*/ } // find the return type by finding the return type of the get(index) method on type. X10ClassType refType = (X10ClassType) type; String name = "get"; List argTypes = new LinkedList(); argTypes.add(index.type()); // fake this since you know the method is public. ClassType currType= refType; // May throw a semantic exception. Should prolly be caught and rethrown // as an InternalError. MethodInstance m = ts.findMethod(refType, name, argTypes, currType); Type retType = m.returnType(); return type(retType); }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/9dc438510a699ec4fd360ef54ff3f020c4486448/X10ArrayAccess1_c.java/buggy/x10.compiler/src/polyglot/ext/x10/ast/X10ArrayAccess1_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 618, 1564, 12, 559, 8847, 1715, 13, 1216, 24747, 503, 288, 202, 202, 60, 2163, 559, 3163, 3742, 273, 261, 60, 2163, 559, 3163, 13, 1715, 18, 723, 3163, 5621, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 618, 1564, 12, 559, 8847, 1715, 13, 1216, 24747, 503, 288, 202, 202, 60, 2163, 559, 3163, 3742, 273, 261, 60, 2163, 559, 3163, 13, 1715, 18, 723, 3163, 5621, 202, 202, ...
Debug.println(Debug.HIGH, this + ": downlink error");
Debug.println(Debug.HIGH, "ClientServant: downlink error");
public final void downlinkError() { Debug.println(Debug.HIGH, this + ": downlink error"); this.stopClientServant(); }
12294 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12294/09f5a1ec2cf08d7d316b5ff84ecc9510d799c182/ClientServant.java/clean/implementation/Server/ClientServant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 2588, 1232, 668, 1435, 288, 565, 4015, 18, 8222, 12, 2829, 18, 29996, 16, 315, 1227, 827, 7445, 30, 2588, 1232, 555, 8863, 565, 333, 18, 5681, 1227, 827, 7445, 5621, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 2588, 1232, 668, 1435, 288, 565, 4015, 18, 8222, 12, 2829, 18, 29996, 16, 315, 1227, 827, 7445, 30, 2588, 1232, 555, 8863, 565, 333, 18, 5681, 1227, 827, 7445, 5621, 225...
label_12:
label_16:
final public void ConstructorDeclaration(int modifiers) throws ParseException { /*@bgen(jjtree) ConstructorDeclaration */ ASTConstructorDeclaration jjtn000 = new ASTConstructorDeclaration(this, JJTCONSTRUCTORDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);jjtn000.setModifiers(modifiers); try { jj_consume_token(IDENTIFIER); FormalParameters(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case THROWS: jj_consume_token(THROWS); NameList(); break; default: jj_la1[34] = jj_gen; ; } jj_consume_token(LBRACE); if (jj_2_16(2147483647)) { ExplicitConstructorInvocation(); } else { ; } label_12: while (true) { if (jj_2_17(1)) { ; } else { break label_12; } BlockStatement(); } jj_consume_token(RBRACE); } 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/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 11417, 6094, 12, 474, 10429, 13, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 11417, 6094, 1195, 9183, 6293, 6094, 10684, 5088, 3784, 273, 394, 9183, 6293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11417, 6094, 12, 474, 10429, 13, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 11417, 6094, 1195, 9183, 6293, 6094, 10684, 5088, 3784, 273, 394, 9183, 6293, ...
installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new TreeConnectionBendpointEditPolicy());
private void installBendpointEditPolicy() { EditPartUtil.synchronizeRunnableToMainThread(this, new Runnable() { public void run() { if (getConnectionFigure().getConnectionRouter() instanceof ForestRouter) { installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new TreeConnectionBendpointEditPolicy()); getConnectionFigure().setCursor(Cursors.CURSOR_SEG_MOVE); } else if (getConnectionFigure().getConnectionRouter() instanceof OrthogonalRouter) { installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new ConnectionLineSegEditPolicy()); getConnectionFigure().setCursor(Cursors.CURSOR_SEG_MOVE); } else { installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new ConnectionBendpointEditPolicy()); getConnectionFigure().setCursor(Cursors.CURSOR_SEG_ADD); } }; }); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/c0cec9e308502fb9ba9a298d72cb4aaecdf9a91f/ConnectionEditPart.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/editparts/ConnectionEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3799, 38, 8003, 4666, 2582, 1435, 288, 202, 202, 4666, 1988, 1304, 18, 87, 2600, 554, 20013, 774, 6376, 3830, 12, 2211, 16, 394, 10254, 1435, 288, 1082, 202, 482, 918, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3799, 38, 8003, 4666, 2582, 1435, 288, 202, 202, 4666, 1988, 1304, 18, 87, 2600, 554, 20013, 774, 6376, 3830, 12, 2211, 16, 394, 10254, 1435, 288, 1082, 202, 482, 918, 1...
step.setAttribute("offset", ""+record.pos); step.setAttribute("r", ""+record.col.r); step.setAttribute("g", ""+record.col.g); step.setAttribute("b", ""+record.col.b);
step.setAttribute("offset", "" + record.pos); step.setAttribute("r", "" + record.col.r); step.setAttribute("g", "" + record.col.g); step.setAttribute("b", "" + record.col.b);
private static Element emitterToElement(Document document, ConfigurableEmitter emitter) { Element root = document.createElement("emitter"); root.setAttribute("name", emitter.name); root.setAttribute("imageName", emitter.imageName == null ? "" : emitter.imageName); if (emitter.usePoints == Particle.INHERIT_POINTS) { root.setAttribute("renderType","inherit"); } if (emitter.usePoints == Particle.USE_POINTS) { root.setAttribute("renderType","points"); } if (emitter.usePoints == Particle.USE_QUADS) { root.setAttribute("renderType","quads"); } root.appendChild(createRangeElement(document, "spawnInterval", emitter.spawnInterval)); root.appendChild(createRangeElement(document, "spawnCount", emitter.spawnCount)); root.appendChild(createRangeElement(document, "initialLife", emitter.initialLife)); root.appendChild(createRangeElement(document, "initialSize", emitter.initialSize)); root.appendChild(createRangeElement(document, "xOffset", emitter.xOffset)); root.appendChild(createRangeElement(document, "yOffset", emitter.yOffset)); root.appendChild(createRangeElement(document, "initialDistance", emitter.initialDistance)); root.appendChild(createRangeElement(document, "speed", emitter.speed)); root.appendChild(createRangeElement(document, "length", emitter.length)); root.appendChild(createRangeElement(document, "emitCount", emitter.emitCount)); root.appendChild(createValueElement(document, "spread", emitter.spread)); root.appendChild(createValueElement(document, "angularOffset", emitter.angularOffset)); root.appendChild(createValueElement(document, "growthFactor", emitter.growthFactor)); root.appendChild(createValueElement(document, "gravityFactor", emitter.gravityFactor)); root.appendChild(createValueElement(document, "windFactor", emitter.windFactor)); root.appendChild(createValueElement(document, "startAlpha", emitter.startAlpha)); root.appendChild(createValueElement(document, "endAlpha", emitter.endAlpha)); Element color = document.createElement("color"); ArrayList list = emitter.colors; for (int i=0;i<list.size();i++) { ColorRecord record = (ColorRecord) list.get(i); Element step = document.createElement("step"); step.setAttribute("offset", ""+record.pos); step.setAttribute("r", ""+record.col.r); step.setAttribute("g", ""+record.col.g); step.setAttribute("b", ""+record.col.b); color.appendChild(step); } root.appendChild(color); return root; }
47738 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47738/fd5622a1c8a5bc2cfa76230098b43927bb07a77f/ParticleIO.java/clean/src/org/newdawn/slick/particles/ParticleIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 3010, 11520, 774, 1046, 12, 2519, 1668, 16, 29312, 13476, 11520, 13, 288, 202, 202, 1046, 1365, 273, 1668, 18, 2640, 1046, 2932, 27529, 8863, 202, 202, 3085, 18, 542, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 11520, 774, 1046, 12, 2519, 1668, 16, 29312, 13476, 11520, 13, 288, 202, 202, 1046, 1365, 273, 1668, 18, 2640, 1046, 2932, 27529, 8863, 202, 202, 3085, 18, 542, 1499...
installerDb.setStoredProcedureDirectory(
m_installerDb.setStoredProcedureDirectory(
protected void initializeDatabase() throws Exception { if (!isEnabled()) { return; } installerDb = new InstallerDb(); // Create a ByteArrayOutputSteam to effectively throw away output. resetOutputStream(); installerDb.setDatabaseName(getTestDatabase()); installerDb.setDataSource(getDataSource()); installerDb.setCreateSqlLocation( "../opennms-daemon/src/main/filtered/etc/create.sql"); installerDb.setStoredProcedureDirectory( "../opennms-daemon/src/main/filtered/etc"); //installerDb.setDebug(true); installerDb.readTables(); installerDb.createSequences(); installerDb.updatePlPgsql(); installerDb.addStoredProcedures(); installerDb.createTables(); installerDb.closeConnection(); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/05a468f49ffdfa4f9596a66a15dbc1699e5026fd/PopulatedTemporaryDatabaseTestCase.java/buggy/opennms-dao/src/test/java/org/opennms/netmgt/dao/db/PopulatedTemporaryDatabaseTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4046, 4254, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 7734, 16050, 4331, 273, 394, 10284, 264, 4331, 5621, 3639, 368, 1788, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 4254, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 7734, 16050, 4331, 273, 394, 10284, 264, 4331, 5621, 3639, 368, 1788, 279, ...
pauseLock.wait(100L); } catch (InterruptedException ignore) { } } if (halted) { break; } } Trigger trigger = null; long now = System.currentTimeMillis(); try { trigger = qsRsrcs.getJobStore().acquireNextTrigger( ctxt, now + idleWaitTime); lastAcquireFailed = false; } catch (JobPersistenceException jpe) { if(!lastAcquireFailed) qs.notifySchedulerListenersError( "An error occured while scanning for the next trigger to fire.", jpe); lastAcquireFailed = true; } catch (RuntimeException e) { if(!lastAcquireFailed) getLog().error("quartzSchedulerThreadLoop: RuntimeException " +e.getMessage(), e); lastAcquireFailed = true; } if (trigger != null) { now = System.currentTimeMillis(); long triggerTime = trigger.getNextFireTime().getTime(); long timeUntilTrigger = triggerTime - now; long spinInterval = 10; int numPauses = (int) (timeUntilTrigger / spinInterval); while (numPauses >= 0 && !signaled) { try { Thread.sleep(spinInterval); } catch (InterruptedException ignore) { } now = System.currentTimeMillis(); timeUntilTrigger = triggerTime - now; numPauses = (int) (timeUntilTrigger / spinInterval); } if (signaled) { try { qsRsrcs.getJobStore().releaseAcquiredTrigger( ctxt, trigger); } catch (JobPersistenceException jpe) {
bndle = qsRsrcs.getJobStore().triggerFired(ctxt, trigger); } catch (SchedulerException se) {
public void run() { boolean lastAcquireFailed = false; while (!halted) { signaled = false; try { // check if we're supposed to pause... synchronized (pauseLock) { while (paused && !halted) { try { // wait until togglePause(false) is called... pauseLock.wait(100L); } catch (InterruptedException ignore) { } } if (halted) { break; } } Trigger trigger = null; long now = System.currentTimeMillis(); try { trigger = qsRsrcs.getJobStore().acquireNextTrigger( ctxt, now + idleWaitTime); lastAcquireFailed = false; } catch (JobPersistenceException jpe) { if(!lastAcquireFailed) qs.notifySchedulerListenersError( "An error occured while scanning for the next trigger to fire.", jpe); lastAcquireFailed = true; } catch (RuntimeException e) { if(!lastAcquireFailed) getLog().error("quartzSchedulerThreadLoop: RuntimeException " +e.getMessage(), e); lastAcquireFailed = true; } if (trigger != null) { now = System.currentTimeMillis(); long triggerTime = trigger.getNextFireTime().getTime(); long timeUntilTrigger = triggerTime - now; long spinInterval = 10; // this looping may seem a bit silly, but it's the // current work-around // for a dead-lock that can occur if the Thread.sleep() // is replaced with // a obj.wait() that gets notified when the signal is // set... // so to be able to detect the signal change without // sleeping the entire // timeUntilTrigger, we spin here... don't worry // though, this spinning // doesn't even register 0.2% cpu usage on a pentium 4. int numPauses = (int) (timeUntilTrigger / spinInterval); while (numPauses >= 0 && !signaled) { try { Thread.sleep(spinInterval); } catch (InterruptedException ignore) { } now = System.currentTimeMillis(); timeUntilTrigger = triggerTime - now; numPauses = (int) (timeUntilTrigger / spinInterval); } if (signaled) { try { qsRsrcs.getJobStore().releaseAcquiredTrigger( ctxt, trigger); } catch (JobPersistenceException jpe) { qs.notifySchedulerListenersError( "An error occured while releasing trigger '" + trigger.getFullName() + "'", jpe); // db connection must have failed... keep // retrying until it's up... releaseTriggerRetryLoop(trigger); } catch (RuntimeException e) { getLog().error( "releaseTriggerRetryLoop: RuntimeException " +e.getMessage(), e); // db connection must have failed... keep // retrying until it's up... releaseTriggerRetryLoop(trigger); } signaled = false; continue; } // set trigger to 'executing' TriggerFiredBundle bndle = null; try { bndle = qsRsrcs.getJobStore().triggerFired(ctxt, trigger); } catch (SchedulerException se) { qs.notifySchedulerListenersError( "An error occured while firing trigger '" + trigger.getFullName() + "'", se); } catch (RuntimeException e) { getLog().error( "RuntimeException while firing trigger " + trigger.getFullName(), e); // db connection must have failed... keep // retrying until it's up... releaseTriggerRetryLoop(trigger); } // it's possible to get 'null' if the trigger was paused, // blocked, or other similar occurances that prevent it being // fired at this time... if (bndle == null) { try { qsRsrcs.getJobStore().releaseAcquiredTrigger(ctxt, trigger); } catch (SchedulerException se) { qs.notifySchedulerListenersError( "An error occured while releasing trigger '" + trigger.getFullName() + "'", se); // db connection must have failed... keep retrying // until it's up... releaseTriggerRetryLoop(trigger); } continue; } // TODO: improvements: // // 1- get thread from pool before firing trigger. // 2- make sure we can get a job runshell first as well, or // don't let that throw an exception (right now it never does, // bugthe signature says it can). // 3- acquire more triggers at a time (based on num threads?) JobRunShell shell = null; try { shell = qsRsrcs.getJobRunShellFactory().borrowJobRunShell(); shell.initialize(qs, bndle); } catch (SchedulerException se) { try { qsRsrcs.getJobStore().triggeredJobComplete(ctxt, trigger, bndle.getJobDetail(), Trigger.INSTRUCTION_SET_ALL_JOB_TRIGGERS_ERROR); } catch (SchedulerException se2) { qs.notifySchedulerListenersError( "An error occured while releasing trigger '" + trigger.getFullName() + "'", se2); // db connection must have failed... keep retrying // until it's up... errorTriggerRetryLoop(bndle); } continue; } qsRsrcs.getThreadPool().runInThread(shell); continue; } // this looping may seem a bit silly, but it's the current // work-around // for a dead-lock that can occur if the Thread.sleep() is replaced // with // a obj.wait() that gets notified when the signal is set... // so to be able to detect the signal change without sleeping the // entier // getRandomizedIdleWaitTime(), we spin here... don't worry though, // the // CPU usage of this spinning can't even be measured on a pentium // 4. now = System.currentTimeMillis(); long waitTime = now + getRandomizedIdleWaitTime(); long timeUntilContinue = waitTime - now; long spinInterval = 10; int numPauses = (int) (timeUntilContinue / spinInterval); while (numPauses > 0 && !signaled) { try { Thread.sleep(10L); } catch (InterruptedException ignore) { } now = System.currentTimeMillis(); timeUntilContinue = waitTime - now; numPauses = (int) (timeUntilContinue / spinInterval); } } catch(RuntimeException re) { getLog().error("Runtime error occured in main trigger firing loop.", re); } } // loop... // drop references to scheduler stuff to aid garbage collection... qs = null; qsRsrcs = null; }
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/QuartzSchedulerThread.java/clean/src/java/org/quartz/core/QuartzSchedulerThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1250, 1142, 27761, 2925, 273, 629, 31, 7734, 1323, 16051, 22314, 2344, 13, 288, 8227, 4277, 329, 273, 629, 31, 10792, 775, 288, 5411, 368, 866, 309, 732,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1250, 1142, 27761, 2925, 273, 629, 31, 7734, 1323, 16051, 22314, 2344, 13, 288, 8227, 4277, 329, 273, 629, 31, 10792, 775, 288, 5411, 368, 866, 309, 732,...
e.result = PreferencesMessages.getString("TemplatePreferencePage.preview");
e.result = PreferencesMessages.TemplatePreferencePage_Viewer_preview;
public void getName(AccessibleEvent e) { e.result = PreferencesMessages.getString("TemplatePreferencePage.preview"); //$NON-NLS-1$ }});
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f234a522db00e1071063f0885f1670c3e1eb4c39/CTemplatePreferencePage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CTemplatePreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1723, 12, 10451, 1133, 425, 13, 288, 9506, 202, 73, 18, 2088, 273, 28310, 5058, 18, 2283, 9624, 1964, 67, 18415, 67, 12102, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1723, 12, 10451, 1133, 425, 13, 288, 9506, 202, 73, 18, 2088, 273, 28310, 5058, 18, 2283, 9624, 1964, 67, 18415, 67, 12102, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 2...
Field.XPath fxpath = new Field.XPath(ftext, fStringPool,
Field.XPath fXpath = new Field.XPath(fText, fStringPool,
private void traverseIdentityConstraint(IdentityConstraint ic, Element icelem) throws Exception { // get selector Element selem = XUtil.getFirstChildElementNS(icelem, SchemaSymbols.URI_SCHEMAFORSCHEMA, SchemaSymbols.ELT_SELECTOR); String stext = CR_IMPL ? selem.getAttribute(SchemaSymbols.ATT_XPATH) : XUtil.getChildText(selem); stext = stext.trim(); Selector.XPath sxpath = null; try { // REVISIT: Must get ruling from XML Schema working group // regarding whether steps in the XPath must be // fully qualified if the grammar has a target // namespace. -Ac // RESOLUTION: Yes. sxpath = new Selector.XPath(stext, fStringPool, fNamespacesScope); Selector selector = new Selector(sxpath, ic); if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: selector: "+selector); } ic.setSelector(selector); } catch (XPathException e) { // REVISIT: Add error message. reportGenericSchemaError(e.getMessage()); return; } // get fields Element parent = (Element)icelem.getParentNode(); Element felem = XUtil.getNextSiblingElementNS(selem, SchemaSymbols.URI_SCHEMAFORSCHEMA, SchemaSymbols.ELT_FIELD); while (felem != null) { String ftext = CR_IMPL ? felem.getAttribute(SchemaSymbols.ATT_XPATH) : XUtil.getChildText(felem); ftext = ftext.trim(); try { // REVISIT: Must get ruling from XML Schema working group // regarding whether steps in the XPath must be // fully qualified if the grammar has a target // namespace. -Ac // RESOLUTION: Yes. Field.XPath fxpath = new Field.XPath(ftext, fStringPool, fNamespacesScope); // REVISIT: Get datatype validator. -Ac DatatypeValidator validator = getDatatypeValidatorFor(parent, sxpath, fxpath); if (DEBUG_IC_DATATYPES) { System.out.println("<ICD>: datatype validator: "+validator); } Field field = new Field(fxpath, validator, ic); if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: field: "+field); } ic.addField(field); } catch (XPathException e) { // REVISIT: Add error message. reportGenericSchemaError(e.getMessage()); return; } felem = XUtil.getNextSiblingElement(felem, SchemaSymbols.ELT_FIELD); } } // traverseIdentityConstraint(IdentityConstraint,Element)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/138bcb8bd8a04cf3507644b1f9aef790a99e1525/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10080, 4334, 5806, 12, 4334, 5806, 13579, 16, 4766, 2398, 3010, 277, 2183, 351, 13, 1216, 1185, 288, 7734, 368, 336, 3451, 3639, 3010, 357, 351, 273, 1139, 1304, 18, 588, 3759,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10080, 4334, 5806, 12, 4334, 5806, 13579, 16, 4766, 2398, 3010, 277, 2183, 351, 13, 1216, 1185, 288, 7734, 368, 336, 3451, 3639, 3010, 357, 351, 273, 1139, 1304, 18, 588, 3759,...
case 541 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); }
case 542 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); }
protected void consumeRule(int act) { switch ( act ) { case 26 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 40 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 44 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 45 : if (DEBUG) { System.out.println("ClassOrInterface ::= ClassOrInterface TypeArguments DOT"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 46 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= ClassOrInterface..."); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 47 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 48 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 49 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 50 : if (DEBUG) { System.out.println("ArrayType ::= ClassOrInterface TypeArguments Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 55 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 56 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 57 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 58 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 59 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 60 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 65 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 66 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 77 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 79 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 81 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 82 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 83 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 84 : if (DEBUG) { System.out.println("PackageDeclarationName ::= package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 89 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 90 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 91 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 92 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 95 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 99 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 112 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 113 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 114 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 116 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 117 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 118 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 120 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 121 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 124 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 128 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 129 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 130 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 136 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 139 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 141 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 144 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 145 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 146 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 147 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 148 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 153 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 154 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 155 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 156 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(); break; case 157 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(); break; case 158 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 159 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 160 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 161 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 162 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 163 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 165 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 166 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 167 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 169 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 170 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 171 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 172 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 173 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 174 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 175 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 176 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 177 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,ExplicitConstructorCall.This); break; case 178 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,ExplicitConstructorCall.This); break; case 179 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,ExplicitConstructorCall.Super); break; case 180 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,ExplicitConstructorCall.Super); break; case 181 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, ExplicitConstructorCall.Super); break; case 182 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, ExplicitConstructorCall.Super); break; case 183 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, ExplicitConstructorCall.Super); break; case 184 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, ExplicitConstructorCall.Super); break; case 185 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, ExplicitConstructorCall.This); break; case 186 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, ExplicitConstructorCall.This); break; case 187 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, ExplicitConstructorCall.This); break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, ExplicitConstructorCall.This); break; case 189 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 190 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 191 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 193 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 195 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 198 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 199 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 202 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); } //$NON-NLS-1$ ignoreMethodBody(); break; case 203 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(true); break; case 204 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(false); break; case 210 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 211 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 212 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 213 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 215 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 216 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 217 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 219 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 223 : if (DEBUG) { System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); } //$NON-NLS-1$ ignoreInterfaceDeclaration(); break; case 224 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 225 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 226 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 227 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 228 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 254 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 255 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 256 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 257 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 266 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 267 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 268 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 269 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 270 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 273 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 275 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 276 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 278 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 279 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 280 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 281 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 282 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 283 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 284 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 285 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 286 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 290 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 291 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 292 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 293 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 294 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 295 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 296 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 297 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 298 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 299 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 300 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 301 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 302 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 304 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 306 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 307 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 309 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 310 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 315 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 316 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 317 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 320 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 321 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 322 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 323 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 324 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 325 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 328 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 329 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 330 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 331 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 332 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 333 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 334 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 335 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 336 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 338 : if (DEBUG) { System.out.println("ClassBodySimpleNameopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 340 : if (DEBUG) { System.out.println("EnterAnonymousClassBodySimpleName ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBodySimpleName(); break; case 341 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 343 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 344 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 345 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 346 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 347 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 348 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 349 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 351 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 353 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 354 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 357 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 358 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 359 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 360 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 361 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 362 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 363 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 364 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 365 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 366 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 367 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 368 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 370 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 373 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 374 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 375 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 378 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 379 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 381 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 382 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 384 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 385 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 387 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 388 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 389 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 390 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 391 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 392 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 393 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 394 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 395 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 397 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 398 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 399 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 401 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 402 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 404 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 405 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 406 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 408 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 409 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 410 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 411 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 413 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 415 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 416 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 418 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 420 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 422 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 424 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 426 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 428 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 431 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 433 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 434 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 435 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 436 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 437 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 438 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 439 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 440 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 441 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 442 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 443 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 444 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 445 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 449 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 454 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 455 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 456 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 457 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 458 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 460 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 462 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 466 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 470 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 471 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 472 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 473 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 475 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 479 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 481 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 482 : if (DEBUG) { System.out.println("EnumHeader ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 483 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 484 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 485 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 486 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 488 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 489 : if (DEBUG) { System.out.println("EnumConstantHeader ::= Identifier Argumentsopt"); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 490 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ClassBody"); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 491 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 492 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 493 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 496 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 498 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 499 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 500 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(false); break; case 501 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Modifiers Type"); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(true); break; case 502 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 503 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 504 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 505 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 506 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 507 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 509 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 511 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 512 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 516 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 517 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 519 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 522 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 523 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 525 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 528 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 529 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 530 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 531 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 532 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 533 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 534 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 535 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 536 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 537 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 538 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 539 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 540 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 541 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 542 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 543 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 544 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 545 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 546 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 548 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 550 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 551 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 553 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 554 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 556 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 557 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 558 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 559 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 561 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 562 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 568 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 569 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 572 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 573 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 576 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 577 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 578 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 579 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 580 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 581 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 583 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 584 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 585 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 586 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 588 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 589 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 590 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 591 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 592 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 593 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 595 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 596 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 597 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 598 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 599 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 600 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 601 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 602 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 604 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); break; case 605 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 607 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 608 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 609 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 610 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 612 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 613 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 615 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 616 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 618 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 619 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 621 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 622 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 624 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 625 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 627 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 628 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 632 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 633 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= AT PushModifiers..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 634 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 636 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 639 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 640 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationHeader ::= Modifiersopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationHeader() ; break; case 641 : if (DEBUG) { System.out.println("AnnotationTypeMemberHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberHeaderExtendedDims() ; break; case 642 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 645 : if (DEBUG) { System.out.println("DefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyDefaultValue() ; break; case 651 : if (DEBUG) { System.out.println("NormalAnnotation ::= AT Name LPAREN MemberValuePairsopt"); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 652 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 655 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 656 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL MemberValue"); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 660 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 661 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 662 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 663 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 665 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 666 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AT Name"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 667 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AT Name LPAREN MemberValue..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/dbf6159f53c99cb12512816667012e5ec1fdc250/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 7865, 2175, 12, 474, 1328, 13, 288, 225, 1620, 261, 1328, 262, 288, 565, 648, 10659, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 559, 493, 33, 14488, 559, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2175, 12, 474, 1328, 13, 288, 225, 1620, 261, 1328, 262, 288, 565, 648, 10659, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 559, 493, 33, 14488, 559, 8863, ...
public RubyBignum op_rshift(RubyNumeric other) { long shift = other.getLongValue();
public IRubyObject op_rshift(IRubyObject other) { long shift = ((RubyNumeric ) other).getLongValue();
public RubyBignum op_rshift(RubyNumeric other) { long shift = other.getLongValue(); if (shift > Integer.MAX_VALUE || shift < Integer.MIN_VALUE) { throw new RangeError(getRuntime(), "bignum too big to convert into `int'"); } return new RubyBignum(getRuntime(), value.shiftRight((int) shift)); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyBignum.java/clean/src/org/jruby/RubyBignum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 38, 724, 379, 1061, 67, 86, 4012, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 1525, 4654, 273, 1308, 18, 588, 3708, 620, 5621, 3639, 309, 261, 4012, 405, 2144, 18, 6694, 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, 19817, 38, 724, 379, 1061, 67, 86, 4012, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 1525, 4654, 273, 1308, 18, 588, 3708, 620, 5621, 3639, 309, 261, 4012, 405, 2144, 18, 6694, 67, ...
JobConf job = new JobConf(config);
JobConf job = new NutchJob(config);
public void processStatJob(String crawlDb, Configuration config) throws IOException { LOG.info("CrawlDb statistics start: " + crawlDb); File tmpFolder = new File(crawlDb, "stat_tmp" + System.currentTimeMillis()); JobConf job = new JobConf(config); job.addInputDir(new File(crawlDb, CrawlDatum.DB_DIR_NAME)); job.setInputFormat(SequenceFileInputFormat.class); job.setInputKeyClass(UTF8.class); job.setInputValueClass(CrawlDatum.class); job.setMapperClass(CrawlDbStatMapper.class); job.setReducerClass(CrawlDbStatReducer.class); job.setOutputDir(tmpFolder); job.setOutputFormat(SequenceFileOutputFormat.class); job.setOutputKeyClass(UTF8.class); job.setOutputValueClass(LongWritable.class); JobClient.runJob(job); // reading the result FileSystem fileSystem = FileSystem.get(config); SequenceFile.Reader[] readers = SequenceFileOutputFormat.getReaders(config, tmpFolder); UTF8 key = new UTF8(); LongWritable value = new LongWritable(); TreeMap stats = new TreeMap(); int avg = 0, min = 0, max = 0; for (int i = 0; i < readers.length; i++) { SequenceFile.Reader reader = readers[i]; while (reader.next(key, value)) { String k = key.toString(); LongWritable val = (LongWritable) stats.get(k); if (val == null) { val = new LongWritable(); stats.put(k, val); } val.set(val.get() + value.get()); if (k.startsWith("max")) max++; else if (k.startsWith("min")) min++; else if (k.startsWith("avg")) avg++; } } LOG.info("Statistics for CrawlDb: " + crawlDb); Iterator it = stats.keySet().iterator(); while (it.hasNext()) { String k = (String) it.next(); LongWritable val = (LongWritable) stats.get(k); if (k.indexOf("score") != -1) { if (k.startsWith("min")) { LOG.info(k + ":\t" + (float) ((float) (val.get() / min) / 1000.0f)); } else if (k.startsWith("max")) { LOG.info(k + ":\t" + (float) ((float) (val.get() / max) / 1000.0f)); } else if (k.startsWith("avg")) { LOG.info(k + ":\t" + (float) ((float) (val.get() / avg) / 1000.0f)); } } else if (k.startsWith("status")) { int code = Integer.parseInt(k.substring(k.indexOf(' ') + 1)); LOG.info(k + " (" + CrawlDatum.statNames[code] + "):\t" + val); } else LOG.info(k + ":\t" + val); } // removing the tmp folder fileSystem.delete(tmpFolder); LOG.info("CrawlDb statistics: done"); }
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/d6b9755fa599b0036210b38d4a36fe97c7fb106c/CrawlDbReader.java/clean/src/java/org/apache/nutch/crawl/CrawlDbReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 5000, 2278, 12, 780, 23182, 4331, 16, 4659, 642, 13, 1216, 1860, 288, 565, 2018, 18, 1376, 2932, 39, 15161, 4331, 7691, 787, 30, 315, 397, 23182, 4331, 1769, 565, 1387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 5000, 2278, 12, 780, 23182, 4331, 16, 4659, 642, 13, 1216, 1860, 288, 565, 2018, 18, 1376, 2932, 39, 15161, 4331, 7691, 787, 30, 315, 397, 23182, 4331, 1769, 565, 1387, ...
return Locale.ENGLISH; }
return Locale.ENGLISH; }
public Locale getCoreLocale() { return Locale.ENGLISH; }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/cb860f7233cedc5cf73274117359509a0825ff06/IWMainApplication.java/clean/src/java/com/idega/idegaweb/IWMainApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6458, 23677, 3916, 1435, 288, 282, 202, 2463, 6458, 18, 16324, 13462, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6458, 23677, 3916, 1435, 288, 282, 202, 2463, 6458, 18, 16324, 13462, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Patch p2 = new Patch(sysex);
IPatch p2 = new Patch(sysex);
public void playPatch(Patch p) { byte sysex[] = new byte[patchSize]; System.arraycopy(p.sysex, 0, sysex, 0, patchSize); sysex[BANK_NUM_OFFSET] = 30; // edit buffer sysex[PATCH_NUM_OFFSET] = 0; Patch p2 = new Patch(sysex); super.playPatch(p2); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/NLPerfSingleDriver.java/clean/JSynthLib/synthdrivers/NordLead/NLPerfSingleDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 6599, 7332, 12, 7332, 293, 13, 288, 565, 1160, 1393, 20909, 8526, 273, 394, 1160, 63, 2272, 1225, 15533, 565, 2332, 18, 1126, 3530, 12, 84, 18, 9009, 20909, 16, 374, 16, 1393...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6599, 7332, 12, 7332, 293, 13, 288, 565, 1160, 1393, 20909, 8526, 273, 394, 1160, 63, 2272, 1225, 15533, 565, 2332, 18, 1126, 3530, 12, 84, 18, 9009, 20909, 16, 374, 16, 1393...
+ "new Array(\"test\",\"test2\",\"test3\") );";
+ "[ \"test\", \"test2\", \"test3\" ] );"; assertEquals( expected, Fixture.getAllMarkup() ); Fixture.fakeResponseWriter(); args = new Object[] { shell, new String[ 0 ] }; writer.call( shell, "doSomething", args ); expected = "var t = wm.findWidgetById( \"w1\" );" + "t.doSomething( wm.findWidgetById( \"w1\" ), " + "[] );";
public void testTargetedCallForWidget() throws IOException { Display display = new Display(); TestShell shell = new TestShell( display ); JSWriter writer = JSWriter.getWriterFor( shell.button ); Object[] args = new Object[]{ shell }; writer.call( shell, "doSomethingWithShell", args ); String expected = "var wm = org.eclipse.rap.rwt.WidgetManager.getInstance();" + "var t = wm.findWidgetById( \"w1\" );" + "t.doSomethingWithShell( wm.findWidgetById( \"w1\" ) );"; assertEquals( expected, Fixture.getAllMarkup() ); Fixture.fakeResponseWriter(); writer.call( shell, "doSomething", new Object[ 0 ] ); expected = "var t = wm.findWidgetById( \"w1\" );t.doSomething();"; assertEquals( expected, Fixture.getAllMarkup() ); Fixture.fakeResponseWriter(); writer.call( shell, "doSomething", new Object[]{ new Integer( 123 ) } ); expected = "var t = wm.findWidgetById( \"w1\" );t.doSomething( 123 );"; assertEquals( expected, Fixture.getAllMarkup() ); Fixture.fakeResponseWriter(); args = new Object[] { "abc", new Integer( 123 ) }; writer.call( shell, "doSomething", args ); expected = "var t = wm.findWidgetById( \"w1\" );" + "t.doSomething( \"abc\", 123 );"; assertEquals( expected, Fixture.getAllMarkup() ); Fixture.fakeResponseWriter(); args = new Object[] { shell, shell.combo.getItems() }; writer.call( shell, "doSomething", args ); expected = "var t = wm.findWidgetById( \"w1\" );" + "t.doSomething( wm.findWidgetById( \"w1\" ), " + "new Array(\"test\",\"test2\",\"test3\") );"; assertEquals( expected, Fixture.getAllMarkup() ); Fixture.fakeResponseWriter(); writer.call( shell, "doSomething", null ); expected = "var t = wm.findWidgetById( \"w1\" );t.doSomething();"; assertEquals( expected, Fixture.getAllMarkup() ); Fixture.fakeResponseWriter(); args = new Object[] { null }; writer.call( shell, "doSomething", args ); expected = "var t = wm.findWidgetById( \"w1\" );" + "t.doSomething( null );"; assertEquals( expected, Fixture.getAllMarkup() ); Fixture.fakeResponseWriter(); writer.call( shell.button, "buttonFunction", null ); expected = "var w = wm.findWidgetById( \"w2\" );w.buttonFunction();"; assertEquals( expected, Fixture.getAllMarkup() ); }
54897 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54897/da935ecd3425126f87da3697207a48cc4e3076e5/JSWriter_Test.java/buggy/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rap/rwt/lifecycle/JSWriter_Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 2326, 329, 1477, 1290, 4609, 1435, 1216, 1860, 288, 565, 9311, 2562, 273, 394, 9311, 5621, 565, 7766, 13220, 5972, 273, 394, 7766, 13220, 12, 2562, 11272, 565, 6756, 2289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 2326, 329, 1477, 1290, 4609, 1435, 1216, 1860, 288, 565, 9311, 2562, 273, 394, 9311, 5621, 565, 7766, 13220, 5972, 273, 394, 7766, 13220, 12, 2562, 11272, 565, 6756, 2289, ...
public OnmsIpInterface addInterface(String ipAddr) {
public InterfaceBuilder addInterface(String ipAddr) {
public OnmsIpInterface addInterface(String ipAddr) { m_currentIf = new OnmsIpInterface(ipAddr, m_currentNode); return m_currentIf; }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/043766589de751b5994e5d03293a95431a07fc00/NetworkBuilder.java/buggy/opennms-model/src/main/java/org/opennms/netmgt/model/NetworkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2755, 959, 5273, 1358, 527, 1358, 12, 780, 2359, 3178, 13, 288, 202, 202, 81, 67, 2972, 2047, 273, 394, 2755, 959, 5273, 1358, 12, 625, 3178, 16, 312, 67, 2972, 907, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2755, 959, 5273, 1358, 527, 1358, 12, 780, 2359, 3178, 13, 288, 202, 202, 81, 67, 2972, 2047, 273, 394, 2755, 959, 5273, 1358, 12, 625, 3178, 16, 312, 67, 2972, 907, 1769, 3639, ...
int cnt = 0;
private void readTriMesh(int bytesToRead, ObjectBlock data) throws IOException { if(data.meshes.length == data.numMeshes) { TriangleMesh[] tmp = new TriangleMesh[data.numMeshes + 8]; System.arraycopy(data.meshes, 0, tmp, 0, data.numMeshes); data.meshes = tmp; } TriangleMesh mesh = new TriangleMesh(); data.meshes[data.numMeshes] = mesh; data.numMeshes++; int bytes_read = 0; while(bytes_read < bytesToRead) { int type = readUnsignedShort(); int size = readInt(); int cnt = 0; switch(type) { case MaxConstants.VERTEX_LIST: mesh.numVertices = readUnsignedShort(); mesh.vertices = new float[mesh.numVertices * 3]; for(int i = 0; i < mesh.numVertices; i++) { readPoint(mesh.vertices, cnt); cnt += 3; } break; case MaxConstants.TEXCOORD_LIST: mesh.numTexCoords = readUnsignedShort(); mesh.texCoords = new float[mesh.numTexCoords * 2]; for(int i = 0; i < mesh.numTexCoords; i++) { mesh.texCoords[cnt++] = readFloat(); mesh.texCoords[cnt++] = readFloat(); } break; case MaxConstants.MESH_MATRIX: mesh.localCoords = new float[12]; for(int i = 0; i < 12; i++) mesh.localCoords[i] = readFloat(); break; case MaxConstants.FACE_LIST: readFaceList(size - 6, mesh); break; case MaxConstants.BOX_MAP: mesh.boxMapMaterials = new String[6]; mesh.boxMapMaterials[0] = readString(); mesh.boxMapMaterials[1] = readString(); mesh.boxMapMaterials[2] = readString(); mesh.boxMapMaterials[3] = readString(); mesh.boxMapMaterials[4] = readString(); mesh.boxMapMaterials[5] = readString(); break; // These are deliberately ignored as they are useless. case MaxConstants.VERTEX_FLAG: case MaxConstants.MESH_COLOR: case MaxConstants.MESH_TEXTURE_INFO: skipBytes(size - 6); break; default: System.out.println("Unknown trimesh chunk ID 0x" + Integer.toHexString(type)); skipBytes(size - 6); } bytes_read += size; } if(bytes_read != bytesToRead) System.out.println("Incorrect bytes read from file for triangle mesh. " + "Read: " + bytes_read + " required " + bytesToRead); }
46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/8f65e134c2d5655008cc915a65ebde979b86aa46/MaxParser.java/buggy/src/java/org/j3d/loaders/discreet/MaxParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 855, 6251, 16748, 12, 474, 1731, 23321, 16, 1033, 1768, 501, 13, 3639, 1216, 1860, 565, 288, 3639, 309, 12, 892, 18, 15557, 281, 18, 2469, 422, 501, 18, 2107, 16748, 281, 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, 3238, 918, 855, 6251, 16748, 12, 474, 1731, 23321, 16, 1033, 1768, 501, 13, 3639, 1216, 1860, 565, 288, 3639, 309, 12, 892, 18, 15557, 281, 18, 2469, 422, 501, 18, 2107, 16748, 281, 13,...
return getFieldTypeEnum(field).getOrdinal(); }
return getFieldTypeEnum(field).getOrdinal(); }
public int getFieldType(int field) { return getFieldTypeEnum(field).getOrdinal(); }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/bc5f21c5a32614ef5c419366046d5f643c6e93ff/DataDictionary.java/clean/src/quickfix/DataDictionary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 5031, 559, 12, 474, 652, 13, 288, 3639, 327, 5031, 10549, 12, 1518, 2934, 588, 22830, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 5031, 559, 12, 474, 652, 13, 288, 3639, 327, 5031, 10549, 12, 1518, 2934, 588, 22830, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
List validActions = null;
protected void addTagNameProposals(ContentAssistRequest contentAssistRequest, int childPosition) { List cmnodes = null; Node parent = contentAssistRequest.getParent(); IDOMNode node = (IDOMNode) contentAssistRequest.getNode(); List validActions = null; String error = null; String matchString = contentAssistRequest.getMatchString(); if (parent.getNodeType() == Node.ELEMENT_NODE) { // retrieve the list of children validActions = getAvailableChildrenAtIndex((Element) parent, childPosition); cmnodes = getValidCMNodes(childPosition, ModelQueryAction.INSERT, validActions); Iterator nodeIterator = cmnodes.iterator(); // chop off any leading <'s and whitespace from the matchstring while ((matchString.length() > 0) && (Character.isWhitespace(matchString.charAt(0)) || beginsWith(matchString, "<"))) //$NON-NLS-1$ //$NON-NLS-1$ matchString = matchString.substring(1); if (!nodeIterator.hasNext()) error = NLS.bind(XMLUIMessages.__Has_no_known_child, (new Object[]{parent.getNodeName()})); while (nodeIterator.hasNext()) { CMNode elementDecl = (CMNode) nodeIterator.next(); if (elementDecl != null) { // only add proposals for the child element's that begin // with the matchstring String proposedText = null; int cursorAdjustment = 0; // do a check to see if partial attributes of partial tag // names are in list if ((node != null && node.getAttributes() != null && node.getAttributes().getLength() > 0 && attributeInList(node, parent, elementDecl)) || ((node.getNodeType() != Node.TEXT_NODE) && node.getFirstStructuredDocumentRegion().isEnded())) { proposedText = getRequiredName(parent, elementDecl); cursorAdjustment = proposedText.length(); } else { proposedText = getRequiredName(parent, elementDecl); cursorAdjustment = proposedText.length(); if (elementDecl instanceof CMElementDeclaration) { CMElementDeclaration ed = (CMElementDeclaration) elementDecl; if (ed.getContentType() == CMElementDeclaration.EMPTY) { proposedText += getContentGenerator().getStartTagClose(parent, ed); cursorAdjustment = proposedText.length(); } else { cursorAdjustment = proposedText.length() + 1; proposedText += "></" + getRequiredName(parent, elementDecl) + ">"; //$NON-NLS-2$//$NON-NLS-1$ } } } if (beginsWith(proposedText, matchString)) { Image image = CMImageUtil.getImage(elementDecl); if (image == null) { image = XMLEditorPluginImageHelper.getInstance().getImage(XMLEditorPluginImages.IMG_OBJ_TAG_GENERIC); } String proposedInfo = getAdditionalInfo(getCMElementDeclaration(parent), elementDecl); CustomCompletionProposal proposal = new CustomCompletionProposal(proposedText, contentAssistRequest.getReplacementBeginPosition(), contentAssistRequest.getReplacementLength(), cursorAdjustment, image, getRequiredName(parent, elementDecl), null, proposedInfo, XMLRelevanceConstants.R_TAG_NAME); contentAssistRequest.addProposal(proposal); } } } if (contentAssistRequest.getProposals().size() == 0) { if (error != null) setErrorMessage(error); else if (contentAssistRequest.getMatchString() != null && contentAssistRequest.getMatchString().length() > 0) setErrorMessage(NLS.bind(XMLUIMessages.No_known_child_tag_names, (new Object[]{parent.getNodeName(), contentAssistRequest.getMatchString()}))); //$NON-NLS-1$ = "No known child tag names of <{0}> begin with \"{1}\"" else setErrorMessage(NLS.bind(XMLUIMessages.__Has_no_known_child, (new Object[]{parent.getNodeName()}))); } } else if (parent.getNodeType() == Node.DOCUMENT_NODE) { List childElements = getAvailableRootChildren((Document) parent, childPosition); for (int i = 0; i < childElements.size(); i++) { CMNode ed = (CMNode) childElements.get(i); if (ed == null) continue; String proposedText = null; int cursorAdjustment = 0; proposedText = getRequiredName(parent, ed); if (!beginsWith(proposedText, matchString)) continue; if ((node != null && node.getAttributes() != null && node.getAttributes().getLength() > 0) || ((node.getNodeType() != Node.TEXT_NODE) && node.getFirstStructuredDocumentRegion().isEnded())) { cursorAdjustment = proposedText.length(); } else { cursorAdjustment = proposedText.length(); if (ed instanceof CMElementDeclaration) { CMElementDeclaration elementDecl = (CMElementDeclaration) ed; if (elementDecl.getContentType() == CMElementDeclaration.EMPTY) { proposedText += getContentGenerator().getStartTagClose(parent, elementDecl); cursorAdjustment = proposedText.length(); } else { cursorAdjustment = proposedText.length() + 1; proposedText += "></" + getRequiredName(parent, elementDecl) + ">"; //$NON-NLS-2$//$NON-NLS-1$ } } } String proposedInfo = getAdditionalInfo(null, ed); Image image = CMImageUtil.getImage(ed); if (image == null) { image = XMLEditorPluginImageHelper.getInstance().getImage(XMLEditorPluginImages.IMG_OBJ_TAG_GENERIC); } CustomCompletionProposal proposal = new CustomCompletionProposal(proposedText, contentAssistRequest.getReplacementBeginPosition(), contentAssistRequest.getReplacementLength(), cursorAdjustment, image, getRequiredName(parent, ed), null, proposedInfo, XMLRelevanceConstants.R_TAG_NAME); contentAssistRequest.addProposal(proposal); } } }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/f89840b1b086a12da535f62a4b75b76ed087791e/AbstractContentAssistProcessor.java/buggy/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/contentassist/AbstractContentAssistProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 8520, 626, 22536, 12, 1350, 2610, 376, 691, 913, 2610, 376, 691, 16, 509, 1151, 2555, 13, 288, 202, 202, 682, 5003, 4690, 273, 446, 31, 202, 202, 907, 982, 273, 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, 225, 202, 1117, 918, 527, 8520, 626, 22536, 12, 1350, 2610, 376, 691, 913, 2610, 376, 691, 16, 509, 1151, 2555, 13, 288, 202, 202, 682, 5003, 4690, 273, 446, 31, 202, 202, 907, 982, 273, 9...
else if ( adventureID.equals( "2" ) )
else if ( adventureId.equals( "2" ) )
protected void processResults() { // Sometimes, there's no response from the server. // In this case, skip and continue onto the next one. if ( responseText == null || responseText.trim().length() == 0 ) { KoLmafia.updateDisplay( ERROR_STATE, "You can't get to that area yet." ); return; } // The hedge maze should always result in you getting // a fight redirect. If this is not the case, then // if the hedge maze is not complete, use up all their // pieces first, then go adventuring. if ( formSource.equals( "lair3.php" ) ) { if ( KoLCharacter.hasItem( SorceressLair.HEDGE_KEY ) && KoLCharacter.hasItem( SorceressLair.PUZZLE_PIECE ) ) { SorceressLair.completeHedgeMaze(); KoLmafia.forceContinue(); super.run(); } else KoLmafia.updateDisplay( PENDING_STATE, "Hedge maze already completed." ); return; } // The sorceress fight should always result in you getting // a fight redirect. if ( formSource.equals( "lair6.php" ) ) { KoLmafia.updateDisplay( PENDING_STATE, "The sorceress has already been defeated." ); return; } // If you haven't unlocked the orc chasm yet, // try doing so now. if ( adventureID.equals( "80" ) && responseText.indexOf( "You shouldn't be here." ) != -1 ) { ArrayList temporary = new ArrayList(); temporary.addAll( conditions ); conditions.clear(); DEFAULT_SHELL.executeLine( "adventure 1 Bridge the Orc Chasm" ); conditions.addAll( temporary ); if ( KoLmafia.permitsContinue() ) this.run(); return; } // We're missing an item, haven't been given a quest yet, or otherwise // trying to go somewhere not allowed. if ( responseText.indexOf( "You shouldn't be here." ) != -1 || responseText.indexOf( "not yet be accessible" ) != -1 || responseText.indexOf( "You can't get there." ) != -1 || responseText.indexOf( "Seriously. It's locked." ) != -1 ) { KoLmafia.updateDisplay( ERROR_STATE, "You can't get to that area yet." ); return; } if ( responseText.indexOf( "in the regular dimension now" ) != -1 ) { // "You're in the regular dimension now, and don't // remember how to get back there." KoLmafia.updateDisplay( PENDING_STATE, "You are no longer Half-Astral." ); return; } if ( responseText.indexOf( "into the spectral mists" ) != -1 ) { KoLmafia.updateDisplay( ERROR_STATE, "No one may know of its coming or going." ); return; } if ( responseText.indexOf( "temporal rift in the plains has closed" ) != -1 ) { KoLmafia.updateDisplay( PENDING_STATE, "The temporal rift has closed." ); return; } // Cold protection is required for the area. This only happens at // the peak. Abort and notify. if ( responseText.indexOf( "need some sort of protection" ) != -1 ) { KoLmafia.updateDisplay( ERROR_STATE, "You need cold protection." ); return; } // Stench protection is required for the area. This only // happens at the Guano Junction. Abort and notify. if ( responseText.indexOf( "need stench protection to adventure here" ) != -1 ) { KoLmafia.updateDisplay( ERROR_STATE, "You need stench protection." ); return; } // This is a server error. Hope for the // best and repeat the request. if ( responseText.indexOf( "No adventure data exists for this location" ) != -1 ) { KoLmafia.updateDisplay( "Server error. Repeating request..." ); this.run(); return; } // Nothing more to do in this area if ( responseText.indexOf( "This part of the cyrpt is already undefiled" ) != -1 || responseText.indexOf( "You've already found the Citadel." ) != -1 || responseText.indexOf( "You can't repeat an adventure here." ) != -1 ) { KoLmafia.updateDisplay( PENDING_STATE, "Nothing more to do here." ); return; } if ( responseText.indexOf( "You must have at least" ) != -1 ) { KoLmafia.updateDisplay( ERROR_STATE, "Your stats are too low for this location." ); return; } // Cobb's Knob King's Chamber: if you've already // defeated the goblin king, go into pending state. if ( formSource.equals( "knob.php" ) && responseText.indexOf( "You've already slain the Goblin King" ) != -1 ) { KoLmafia.updateDisplay( PENDING_STATE, "You already defeated the Goblin King." ); return; } // The Haert of the Cyrpt: if you've already defeated // the bonerdagon, go into pending state. if ( formSource.equals( "cyrpt.php" ) && responseText.indexOf( "Bonerdagon has been defeated" ) != -1 ) { KoLmafia.updateDisplay( PENDING_STATE, "You already defeated the Bonerdagon." ); return; } if ( responseText.indexOf( "already undefiled" ) != -1 ) { KoLmafia.updateDisplay( PENDING_STATE, "Cyrpt area cleared." ); return; } // The Orc Chasm (pre-bridge) if ( formSource.equals( "mountains.php" ) ) { // If there's no link to the valley beyond, put down a // bridge if ( responseText.indexOf( "value=80" ) == -1 ) { // If you have an unabridged dictionary in your // inventory, visit the untinkerer // automatically and repeat the request. if ( KoLCharacter.hasItem( ABRIDGED ) ) { (new UntinkerRequest( ABRIDGED.getItemID() )).run(); this.run(); return; } // Otherwise, the player is unable to cross the // orc chasm at this time. KoLmafia.updateDisplay( ERROR_STATE, "You can't cross the Orc Chasm." ); return; } if ( responseText.indexOf( "the path to the Valley is clear" ) != -1 ) { KoLmafia.updateDisplay( PENDING_STATE, "You have bridged the Orc Chasm." ); StaticEntity.getClient().processResult( BRIDGE ); } return; } // The Deep Fat Friars' Ceremony Location if ( formSource.equals( "friars.php" ) ) { // "The infernal creatures who have tainted the Friar's // copse stream back into the gate, hooting and // shrieking." if ( responseText.indexOf( "hooting and shrieking" ) != -1 ) { StaticEntity.getClient().processResult( DODECAGRAM ); StaticEntity.getClient().processResult( CANDLES ); StaticEntity.getClient().processResult( BUTTERKNIFE ); Matcher learnedMatcher = STEEL_PATTERN.matcher( responseText ); if ( learnedMatcher.find() ) KoLCharacter.addAvailableSkill( UseSkillRequest.getInstance( learnedMatcher.group(1) + " of Steel" ) ); KoLmafia.updateDisplay( PENDING_STATE, "Taint cleansed." ); return; } // Even after you've performed the ritual: // "You don't appear to have all of the elements // necessary to perform the ritual." KoLmafia.updateDisplay( ERROR_STATE, "You can't perform the ritual." ); return; } // If you're at the casino, each of the different slot // machines deducts meat from your tally if ( formSource.equals( "casino.php" ) ) { if ( adventureID.equals( "1" ) ) StaticEntity.getClient().processResult( new AdventureResult( AdventureResult.MEAT, -5 ) ); else if ( adventureID.equals( "2" ) ) StaticEntity.getClient().processResult( new AdventureResult( AdventureResult.MEAT, -10 ) ); else if ( adventureID.equals( "11" ) ) StaticEntity.getClient().processResult( new AdventureResult( AdventureResult.MEAT, -10 ) ); } if ( adventureID.equals( "70" ) ) StaticEntity.getClient().processResult( new AdventureResult( AdventureResult.MEAT, -10 ) ); else if ( adventureID.equals( "71" ) ) StaticEntity.getClient().processResult( new AdventureResult( AdventureResult.MEAT, -30 ) ); // Shore Trips cost 500 meat each; handle // the processing here. if ( formSource.equals( "shore.php" ) ) StaticEntity.getClient().processResult( new AdventureResult( AdventureResult.MEAT, -500 ) ); // Trick-or-treating requires a costume; // notify the user of this error. if ( formSource.equals( "trickortreat.php" ) && responseText.indexOf( "without a costume" ) != -1 ) { KoLmafia.updateDisplay( ERROR_STATE, "You must wear a costume." ); return; } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/AdventureRequest.java/clean/src/net/sourceforge/kolmafia/AdventureRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 3447, 1435, 202, 95, 202, 202, 759, 348, 25976, 16, 1915, 1807, 1158, 766, 628, 326, 1438, 18, 202, 202, 759, 657, 333, 648, 16, 2488, 471, 1324, 10170, 326, 1024,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 3447, 1435, 202, 95, 202, 202, 759, 348, 25976, 16, 1915, 1807, 1158, 766, 628, 326, 1438, 18, 202, 202, 759, 657, 333, 648, 16, 2488, 471, 1324, 10170, 326, 1024,...
series = getConvertedSeries( series );
private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); if ( ( currentChart instanceof ChartWithAxes ) ) // Chart is // ChartWithAxes { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { ( (Axis) axes.get( i ) ).setPercent( false ); EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series.setStacked( false ); } } } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( false ); if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } return currentChart; } else if ( currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) || currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) || currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( BubbleChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( DifferenceChart.TYPE_LITERAL ) ) { if ( !currentChart.getType( ).equals( TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ) ) ); } currentChart.setType( TYPE_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( false ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getScale( ) .setStep( 10.0 ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getMajorGrid( ) .getLineAttributes( ) .setVisible( true ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { ( (Axis) axes.get( i ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) axes.get( i ) ).setType( AxisType.DATE_TIME_LITERAL ); ( (Axis) axes.get( i ) ).setPercent( false ); EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); series.setStacked( false ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } } else { return null; } } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.DATE_TIME_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( getConvertedSampleData( helperModel.getSampleData( ) ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); series.setStacked( false ); // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } // return currentChart; return null; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/51342f37efb819d66eb6bfa56ebaba4fb7f4fa8b/GanttChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/GanttChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, ...
(IS_ARG() && space_seen)) {
(IS_ARG() && space_seen != 0)) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\004': // ^D case '\032': // ^Z case -1: //end of script. return 0; // white spaces case ' ': case '\t': case '\f': case '\r': case '\013': // '\v' space_seen = true; continue retry; case '#': // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n': switch (ph.getLexState()) { case LexState.EXPR_BEG: case LexState.EXPR_FNAME: case LexState.EXPR_DOT: continue retry; default: break; } ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*': if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=': if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (; ; ) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<': c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"': return parse_string(c, c, c); case '`': if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'': return parse_qstring(c, 0); case '?': if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.m_newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&': if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return start_num(c); case ']': case '}': ph.setLexState(LexState.EXPR_END); return c; case ')': if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':': c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/': if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',': case ';': // ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return c; case '~': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(': if (cond_nest > 0) { cond_stack = (cond_stack << 1 ) | 0; } // ph.setCommandStart(true); if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (space_seen) { if (ph.getLexState() == LexState.EXPR_CMDARG) { c = Token.tLPAREN_ARG; } else if (ph.getLexState() == LexState.EXPR_ARG) { ph.rb_warning(tok() + " (...) interpreted as method call"); c = Token.tLPAREN_ARG; } } ph.setLexState(LexState.EXPR_BEG); return c; case '[': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{': if (!IS_ARG()) { if (space_seen && ph.getLexState() == LexState.EXPR_ENDARG) { c = Token.tLBRACE_ARG; } if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG) { c = Token.tLBRACE; } } ph.setLexState(LexState.EXPR_BEG); return c; case '\\': c = nextc(); if (c == '\n') { space_seen = true; continue retry; // skip \\n } pushback(c); return '\\'; case '%': quotation : for (; ; ) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q': return parse_string('"', term, paren); case 'q': return parse_qstring(term, paren); case 'w': return parse_quotedwords(term, paren); case 'x': return parse_string('`', term, paren); case 'r': return parse_regx(term, paren); default: yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$': ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_': // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~': // $~: match-data ph.local_cnt(c); // fall through case '*': // $*: argv case '$': // $$: pid case '?': // $?: last status case '!': // $!: error string case '@': // $@: error position case '/': // $/: input record separator case '\\':// $\: output record separator case ';': // $;: field separator case ',': // $,: output field separator case '.': // $.: last read line number case '=': // $=: ignorecase case ':': // $:: load path case '<': // $<: reading filename case '>': // $>: default output handle case '\"':// $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); return Token.tGVAR; case '-': tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); /* * xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&': // $&: last match case '`': // $`: string before last match case '\'':// $': string after last match case '+': // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default: if (!is_identchar(c)) { pushback(c); return '$'; } case '0': tokadd('$'); } break; case '@': c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default: if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * c = nextc(); * tokadd(c); * } * } */ c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$': ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@': ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default: if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P() && state != LexState.EXPR_CMDARG) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG || ph.getLexState() == LexState.EXPR_CMDARG) { if (cmd_state) { ph.setLexState(LexState.EXPR_CMDARG); } else { ph.setLexState(LexState.EXPR_ARG); } } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = /* last_id = */ ruby.intern(tok()); //XXX really overwrite last_id? return result; } }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 1250, 3476, 67, 15156, 273, 629, 31, 3639, 1250, 1797, 67, 2019, 31, 3639, 5323, 2121, 5323, 31, 3639, 1797, 67, 2019, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 1250, 3476, 67, 15156, 273, 629, 31, 3639, 1250, 1797, 67, 2019, 31, 3639, 5323, 2121, 5323, 31, 3639, 1797, 67, 2019, 273...
ctx = new InserterContext(handler.defaultInsertContext);
ctx = new InserterContext(handler.defaultInsertContext, new SimpleEventProducer()); ctx.eventProducer.addEventListener(this);
public ClientPut(FCPConnectionHandler handler, ClientPutMessage message) { this.handler = handler; this.identifier = message.identifier; this.getCHKOnly = message.getCHKOnly; this.priorityClass = 0; ctx = new InserterContext(handler.defaultInsertContext); ctx.maxInsertRetries = message.maxRetries; // Now go through the fields one at a time uri = message.uri; String mimeType = message.contentType; block = new InsertBlock(message.bucket, new ClientMetadata(mimeType), uri); inserter = new ClientPutter(this, message.bucket, uri, new ClientMetadata(mimeType), ctx, handler.node.putScheduler, priorityClass, getCHKOnly, false); try { inserter.start(); } catch (InserterException e) { onFailure(e, null); } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/9c514d14b203e8119e76eb0ed41907d8ccfcea57/ClientPut.java/clean/src/freenet/node/fcp/ClientPut.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 12, 42, 4258, 1952, 1503, 1838, 16, 2445, 6426, 1079, 883, 13, 288, 202, 202, 2211, 18, 4176, 273, 1838, 31, 202, 202, 2211, 18, 5644, 273, 883, 18, 5644, 31, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 12, 42, 4258, 1952, 1503, 1838, 16, 2445, 6426, 1079, 883, 13, 288, 202, 202, 2211, 18, 4176, 273, 1838, 31, 202, 202, 2211, 18, 5644, 273, 883, 18, 5644, 31, 20...
public Scriptable newArray(Scriptable scope, int length) {
public final Scriptable newArray(Scriptable scope, int length) {
public Scriptable newArray(Scriptable scope, int length) { Scriptable result = new NativeArray(length); newArrayHelper(scope, result); return result; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/5586a284813f024a7d52061d1ea71ae99876066e/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 22780, 11653, 12, 3651, 429, 2146, 16, 509, 769, 13, 288, 3639, 22780, 563, 273, 394, 16717, 1076, 12, 2469, 1769, 3639, 11653, 2276, 12, 4887, 16, 563, 1769, 3639, 327, 563, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 22780, 11653, 12, 3651, 429, 2146, 16, 509, 769, 13, 288, 3639, 22780, 563, 273, 394, 16717, 1076, 12, 2469, 1769, 3639, 11653, 2276, 12, 4887, 16, 563, 1769, 3639, 327, 563, ...
265, 235, 417, 518, 234, 403, 79, 388, 617, 802,
265, 235, 417, 518, 234, 388, 79, 380, 617, 802,
private static final short[] yyTable1() { return new short[] { 234, 234, 391, 229, 234, 203, 419, 239, 239, 189, 580, 239, 237, 237, 248, 564, 237, 300, 190, 190, 591, 281, 252, 240, 240, 203, 519, 240, 257, 259, 216, 95, 601, 552, 234, 234, 216, 283, 284, 190, 732, 617, 274, 356, 249, 342, 461, 652, 265, 782, 466, 109, 109, 551, 442, 673, 675, 291, 275, 696, 698, 109, 253, 492, 362, 442, 190, 660, 661, 337, 62, 588, 221, 215, 218, 617, 762, 435, 783, 217, 786, 766, 492, 469, 382, 217, 606, 353, 441, 244, 60, 363, 247, 248, 216, 337, 308, 253, 109, 444, 256, 285, 79, 79, 110, 110, 353, 216, 79, 210, 210, 210, 492, 89, 225, 210, 210, 354, 387, 210, 235, 235, 295, 492, 235, 261, 210, 455, 487, 70, 492, 492, 221, 492, 492, 492, 455, 109, 649, 363, 363, 463, 71, 217, 470, 308, 253, 79, 210, 210, 338, 279, 87, 210, 269, 598, 217, 247, 442, 61, 487, 89, 89, 535, 392, 343, 492, 656, 393, 366, 394, 492, 344, 230, 264, 492, 338, 82, 492, 387, 262, 533, 492, 492, 494, 782, 456, 457, 458, 360, 279, 297, 447, 361, 273, 456, 457, 84, 657, 564, 87, 87, 441, 291, 230, 210, 492, 79, 684, 438, 576, 440, 190, 55, 856, 494, 234, 234, 284, 492, 492, 653, 716, 335, 492, 82, 82, 345, 691, 234, 69, 234, 234, 278, 264, 40, 239, 441, 239, 420, 492, 237, 771, 237, 237, 84, 84, 64, 352, 372, 69, 441, 240, 439, 240, 240, 373, 369, 423, 579, 67, 394, 65, 814, 265, 346, 40, 64, 441, 217, 673, 675, 828, 830, 348, 831, 363, 347, 472, 221, 67, 376, 65, 492, 340, 397, 398, 387, 481, 492, 481, 341, 377, 381, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 536, 379, 210, 210, 380, 455, 550, 234, 389, 471, 524, 527, 492, 234, 476, 396, 406, 538, 531, 492, 531, 402, 307, 308, 210, 872, 210, 210, 363, 235, 265, 235, 417, 518, 234, 403, 79, 388, 617, 802, 626, 629, 234, 79, 617, 472, 473, 474, 475, 531, 89, 387, 234, 524, 589, 538, 364, 61, 597, 234, 518, 642, 721, 429, 456, 457, 594, 234, 492, 741, 264, 234, 234, 525, 528, 234, 532, 109, 518, 620, 539, 79, 210, 210, 210, 210, 79, 210, 210, 87, 390, 622, 634, 518, 399, 614, 564, 637, 638, 639, 632, 363, 624, 203, 543, 406, 234, 841, 492, 234, 426, 839, 234, 273, 82, 825, 454, 190, 835, 234, 273, 407, 210, 518, 410, 210, 210, 269, 210, 79, 279, 482, 210, 482, 84, 492, 61, 428, 600, 600, 511, 516, 492, 522, 523, 518, 627, 472, 69, 210, 79, 210, 278, 628, 269, 309, 264, 432, 79, 278, 617, 433, 492, 79, 473, 64, 434, 210, 549, 855, 792, 79, 269, 79, 492, 687, 367, 423, 67, 492, 65, 492, 210, 368, 423, 511, 516, 269, 617, 670, 582, 234, 307, 308, 210, 40, 40, 472, 590, 861, 592, 549, 356, 436, 472, 278, 385, 445, 79, 472, 437, 492, 63, 386, 666, 71, 492, 492, 445, 671, 448, 449, 670, 260, 261, 674, 676, 69, 472, 307, 308, 549, 61, 446, 210, 635, 450, 688, 445, 269, 422, 445, 464, 459, 64, 217, 190, 423, 424, 701, 356, 356, 203, 549, 411, 537, 445, 67, 234, 65, 400, 837, 362, 362, 94, 94, 190, 401, 362, 451, 94, 94, 94, 94, 459, 468, 234, 94, 94, 455, 234, 94, 454, 682, 234, 357, 358, 683, 94, 540, 430, 242, 459, 579, 243, 234, 583, 431, 596, 76, 608, 78, 76, 492, 78, 709, 579, 692, 744, 94, 94, 94, 778, 454, 394, 94, 454, 618, 614, 76, 752, 78, 562, 563, 210, 79, 229, 758, 760, 492, 492, 454, 630, 763, 765, 631, 81, 636, 456, 457, 460, 309, 640, 768, 234, 79, 293, 294, 641, 472, 725, 473, 492, 654, 234, 452, 662, 833, 663, 79, 668, 672, 453, 813, 834, 669, 815, 94, 679, 94, 324, 680, 685, 160, 326, 327, 686, 758, 760, 763, 689, 693, 695, 273, 109, 234, 705, 210, 74, 697, 759, 761, 234, 87, 455, 699, 764, 234, 234, 700, 83, 83, 111, 111, 810, 702, 83, 706, 712, 809, 210, 713, 226, 210, 714, 740, 492, 717, 609, 715, 811, 492, 160, 492, 773, 492, 720, 737, 738, 109, 79, 80, 821, 455, 234, 423, 718, 225, 79, 232, 79, 79, 210, 210, 278, 83, 724, 727, 210, 280, 86, 278, 794, 456, 457, 462, 473, 746, 153, 356, 733, 821, 735, 234, 736, 755, 600, 756, 757, 845, 739, 745, 87, 234, 492, 84, 84, 234, 279, 743, 767, 84, 788, 774, 94, 94, 79, 228, 280, 210, 775, 779, 456, 457, 465, 822, 85, 796, 86, 86, 234, 79, 79, 79, 795, 83, 94, 153, 94, 94, 88, 797, 234, 793, 234, 807, 816, 817, 94, 413, 84, 415, 418, 818, 820, 94, 518, 819, 799, 800, 801, 473, 234, 827, 234, 868, 832, 76, 472, 78, 473, 829, 234, 847, 85, 85, 234, 210, 842, 843, 849, 79, 79, 852, 873, 492, 492, 492, 88, 88, 853, 854, 492, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 871, 875, 877, 163, 476, 824, 493, 84, 91, 91, 112, 112, 112, 492, 91, 472, 481, 473, 279, 483, 230, 493, 472, 483, 473, 483, 836, 472, 485, 473, 485, 94, 75, 79, 94, 94, 254, 94, 94, 487, 487, 94, 210, 76, 79, 78, 472, 269, 473, 273, 82, 79, 163, 91, 494, 728, 273, 282, 94, 94, 94, 549, 492, 299, 115, 734, 302, 303, 304, 305, 306, 863, 94, 826, 83, 188, 94, 89, 864, 280, 94, 83, 94, 92, 92, 874, 148, 690, 83, 92, 754, 94, 339, 88, 160, 351, 282, 160, 160, 160, 862, 423, 421, 94, 481, 784, 492, 785, 423, 301, 492, 492, 0, 91, 780, 0, 0, 94, 0, 0, 418, 0, 83, 83, 0, 0, 83, 418, 92, 82, 391, 83, 160, 0, 86, 148, 0, 160, 160, 160, 160, 0, 0, 94, 279, 481, 0, 473, 208, 208, 208, 279, 0, 0, 381, 280, 84, 560, 561, 562, 563, 0, 0, 84, 0, 250, 0, 803, 0, 482, 805, 806, 88, 76, 83, 280, 270, 0, 0, 153, 85, 0, 153, 153, 153, 0, 6, 267, 92, 391, 391, 391, 0, 476, 88, 83, 6, 473, 0, 0, 0, 84, 0, 0, 473, 417, 84, 0, 83, 473, 482, 0, 417, 381, 381, 381, 83, 153, 83, 0, 472, 0, 153, 153, 153, 153, 0, 6, 473, 481, 0, 0, 555, 94, 94, 556, 557, 558, 0, 77, 0, 0, 77, 476, 359, 6, 0, 0, 0, 84, 476, 848, 850, 83, 94, 472, 0, 279, 0, 77, 0, 0, 91, 0, 279, 0, 0, 83, 94, 91, 84, 0, 0, 0, 476, 560, 561, 562, 563, 0, 0, 0, 0, 84, 0, 0, 865, 866, 0, 476, 0, 84, 870, 84, 482, 0, 94, 163, 0, 0, 163, 163, 163, 0, 0, 0, 0, 91, 0, 878, 0, 6, 91, 0, 0, 131, 0, 880, 280, 94, 882, 0, 94, 419, 884, 280, 747, 748, 84, 749, 419, 83, 0, 41, 42, 163, 0, 92, 0, 94, 163, 163, 163, 163, 92, 0, 83, 94, 0, 94, 94, 94, 94, 0, 0, 91, 282, 94, 0, 0, 0, 208, 208, 0, 131, 0, 481, 481, 481, 0, 83, 0, 481, 481, 0, 481, 91, 0, 0, 0, 148, 0, 92, 148, 148, 148, 309, 92, 0, 91, 83, 404, 405, 0, 280, 94, 0, 91, 94, 91, 0, 280, 322, 323, 83, 78, 420, 0, 84, 472, 94, 94, 94, 420, 0, 324, 0, 325, 148, 326, 327, 328, 329, 148, 148, 148, 148, 0, 0, 0, 92, 482, 482, 482, 91, 0, 0, 482, 482, 0, 482, 208, 208, 208, 208, 84, 477, 478, 6, 6, 6, 92, 473, 0, 6, 6, 94, 6, 0, 472, 94, 94, 0, 0, 92, 84, 472, 0, 0, 270, 0, 472, 92, 0, 92, 83, 751, 77, 476, 84, 0, 94, 226, 83, 309, 83, 83, 84, 0, 0, 472, 0, 79, 0, 0, 79, 270, 0, 77, 0, 322, 323, 0, 0, 575, 581, 530, 0, 534, 92, 553, 0, 79, 324, 270, 94, 0, 326, 327, 328, 329, 0, 0, 0, 94, 0, 94, 789, 476, 270, 0, 83, 0, 94, 0, 476, 0, 577, 0, 0, 472, 0, 278, 0, 0, 476, 83, 83, 83, 0, 84, 91, 0, 267, 530, 309, 77, 228, 84, 476, 84, 84, 0, 0, 0, 0, 610, 613, 0, 0, 616, 91, 0, 0, 623, 0, 0, 0, 0, 81, 74, 270, 81, 74, 324, 91, 0, 0, 326, 327, 328, 329, 0, 0, 0, 80, 83, 83, 80, 81, 74, 644, 790, 0, 616, 0, 84, 644, 0, 131, 0, 0, 131, 131, 131, 80, 132, 83, 0, 0, 0, 84, 84, 84, 0, 0, 92, 0, 75, 273, 423, 75, 659, 659, 659, 422, 0, 0, 667, 0, 86, 473, 422, 0, 0, 279, 92, 131, 75, 667, 667, 83, 131, 131, 131, 131, 91, 0, 0, 0, 92, 0, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 0, 0, 0, 280, 0, 0, 0, 0, 208, 0, 0, 677, 0, 0, 0, 0, 473, 84, 0, 95, 0, 0, 0, 473, 0, 0, 0, 0, 473, 0, 704, 0, 708, 791, 581, 0, 0, 91, 0, 0, 0, 0, 581, 0, 86, 0, 0, 473, 0, 0, 0, 84, 91, 91, 91, 79, 92, 0, 85, 476, 0, 0, 84, 0, 92, 0, 92, 92, 95, 84, 0, 208, 0, 0, 0, 0, 0, 0, 719, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 726, 742, 0, 0, 729, 0, 91, 91, 730, 0, 278, 0, 0, 476, 0, 0, 92, 278, 0, 613, 476, 0, 473, 0, 34, 472, 412, 91, 0, 0, 0, 92, 92, 92, 0, 0, 412, 659, 79, 0, 0, 85, 34, 0, 476, 0, 81, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 80, 0, 0, 0, 0, 412, 770, 0, 412, 0, 91, 0, 0, 0, 0, 208, 777, 91, 0, 92, 92, 0, 412, 412, 0, 412, 0, 412, 0, 0, 0, 667, 667, 75, 0, 273, 423, 0, 0, 0, 92, 0, 273, 423, 0, 0, 34, 644, 0, 0, 0, 279, 0, 0, 616, 412, 0, 412, 279, 0, 616, 0, 555, 81, 74, 556, 557, 558, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 80, 132, 132, 132, 0, 280, 92, 0, 415, 0, 412, 0, 280, 92, 581, 0, 0, 823, 415, 0, 0, 559, 0, 0, 421, 0, 560, 561, 562, 563, 0, 421, 0, 75, 0, 0, 132, 0, 0, 0, 0, 132, 132, 132, 132, 0, 838, 0, 0, 415, 270, 0, 415, 0, 0, 0, 846, 309, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 0, 415, 0, 415, 0, 322, 323, 253, 95, 0, 581, 95, 95, 95, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 613, 332, 616, 333, 415, 0, 415, 412, 0, 34, 34, 34, 0, 0, 412, 34, 34, 0, 34, 95, 876, 0, 879, 0, 95, 95, 95, 95, 0, 0, 616, 0, 0, 334, 883, 0, 0, 0, 415, 0, 34, 34, 34, 34, 34, 0, 0, 469, 469, 469, 0, 469, 412, 412, 412, 469, 469, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 412, 469, 412, 412, 469, 469, 469, 469, 469, 469, 469, 412, 412, 0, 412, 412, 412, 412, 412, 334, 469, 0, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 469, 469, 469, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 96, 412, 412, 412, 469, 412, 412, 469, 469, 469, 469, 469, 412, 469, 412, 469, 412, 469, 412, 412, 412, 412, 412, 412, 412, 469, 412, 469, 0, 469, 469, 469, 469, 469, 469, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 470, 470, 470, 96, 470, 415, 415, 415, 470, 470, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 415, 470, 415, 415, 470, 470, 470, 470, 470, 470, 470, 415, 415, 0, 415, 415, 415, 415, 415, 0, 470, 0, 0, 470, 470, 470, 470, 470, 470, 470, 470, 0, 470, 470, 470, 470, 0, 470, 470, 470, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 0, 0, 415, 415, 415, 470, 415, 415, 470, 470, 470, 470, 470, 415, 470, 415, 470, 415, 470, 415, 415, 415, 415, 415, 415, 415, 470, 415, 470, 472, 470, 470, 470, 470, 470, 470, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 472, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 472, 472, 0, 84, 0, 472, 0, 0, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 472, 0, 472, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 0, 0, 96, 96, 96, 0, 0, 0, 0, 473, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 473, 473, 0, 86, 0, 473, 415, 0, 0, 0, 0, 96, 0, 0, 0, 0, 96, 96, 96, 96, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 473, 0, 473, 322, 323, 0, 0, 0, 0, 0, 608, 0, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 334, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 655, 472, 472, 472, 472, 334, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 334, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 476, 473, 473, 473, 473, 473, 473, 0, 0, 0, 476, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 324, 476, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 476, 476, 0, 85, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 476, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 274, 322, 323, 0, 0, 0, 0, 0, 0, 0, 274, 0, 0, 476, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 508, 509, 0, 0, 510, 274, 0, 0, 274, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 274, 274, 168, 0, 0, 274, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 678, 0, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 274, 185, 274, 186, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 476, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 476, 476, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 472, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 476, 472, 472, 472, 472, 472, 476, 472, 476, 472, 476, 472, 476, 476, 476, 476, 476, 476, 476, 472, 476, 476, 0, 472, 472, 472, 472, 472, 472, 471, 471, 471, 0, 471, 274, 274, 274, 471, 471, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 0, 471, 274, 274, 471, 471, 471, 471, 471, 471, 471, 274, 274, 0, 274, 274, 274, 274, 274, 0, 471, 0, 0, 471, 471, 471, 471, 471, 471, 471, 471, 0, 471, 471, 471, 471, 0, 471, 471, 471, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 0, 0, 274, 274, 274, 471, 0, 274, 471, 471, 471, 471, 471, 274, 471, 274, 471, 274, 471, 274, 274, 274, 274, 274, 274, 274, 471, 274, 471, 477, 471, 471, 471, 471, 471, 471, 0, 0, 0, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 0, 477, 0, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 477, 477, 0, 9, 10, 477, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 477, 0, 477, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 478, 0, 104, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 477, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 478, 753, 0, 478, 0, 0, 54, 55, 56, 57, 58, 59, 513, 514, 0, 0, 515, 478, 478, 0, 0, 0, 478, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 478, 0, 478, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 474, 474, 474, 0, 474, 477, 477, 477, 474, 474, 477, 477, 477, 474, 477, 474, 474, 474, 474, 474, 474, 474, 0, 477, 477, 477, 474, 474, 474, 474, 474, 474, 474, 477, 477, 0, 477, 477, 477, 477, 477, 0, 474, 0, 0, 474, 474, 474, 474, 474, 474, 474, 474, 0, 474, 474, 474, 474, 0, 474, 474, 474, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 0, 0, 477, 477, 477, 474, 0, 477, 474, 474, 474, 474, 474, 477, 474, 477, 474, 477, 474, 477, 477, 477, 477, 477, 477, 477, 474, 477, 477, 0, 474, 474, 474, 474, 474, 474, 475, 475, 475, 0, 475, 478, 478, 478, 475, 475, 478, 478, 478, 475, 478, 475, 475, 475, 475, 475, 475, 475, 0, 478, 478, 478, 475, 475, 475, 475, 475, 475, 475, 478, 478, 0, 478, 478, 478, 478, 478, 0, 475, 0, 0, 475, 475, 475, 475, 475, 475, 475, 475, 0, 475, 475, 475, 475, 0, 475, 475, 475, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 0, 0, 478, 478, 478, 475, 0, 478, 475, 475, 475, 475, 475, 478, 475, 478, 475, 478, 475, 478, 478, 478, 478, 478, 478, 478, 475, 478, 478, 350, 475, 475, 475, 475, 475, 475, 0, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 0, 350, 350, 9, 10, 0, 350, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 350, 0, 350, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 492, 104, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 350, 0, 0, 0, 0, 105, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 492, 0, 54, 55, 56, 57, 58, 59, 520, 509, 0, 0, 521, 0, 492, 492, 0, 0, 0, 492, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 492, 0, 492, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 251, 251, 0, 251, 350, 350, 350, 251, 251, 350, 350, 350, 251, 350, 251, 251, 251, 251, 251, 251, 251, 0, 350, 350, 350, 251, 251, 251, 251, 251, 251, 251, 350, 350, 0, 350, 350, 350, 350, 350, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 251, 251, 251, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 251, 0, 350, 251, 0, 251, 251, 251, 350, 251, 350, 251, 350, 251, 350, 350, 350, 350, 350, 350, 350, 251, 350, 350, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 492, 492, 492, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 251, 251, 251, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 251, 0, 492, 251, 0, 251, 251, 251, 492, 251, 492, 251, 492, 251, 492, 492, 492, 492, 492, 492, 492, 251, 492, 492, 278, 251, 251, 251, 251, 251, 251, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 547, 514, 0, 0, 548, 0, 0, 0, 0, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 278, 166, 167, 278, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 278, 278, 0, 87, 0, 278, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 0, 0, 0, 584, 509, 0, 0, 585, 0, 0, 278, 0, 278, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 286, 169, 170, 171, 172, 0, 0, 0, 0, 0, 286, 0, 0, 278, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 0, 0, 0, 0, 0, 586, 514, 0, 0, 587, 286, 0, 0, 286, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 286, 286, 168, 0, 0, 286, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 286, 185, 286, 186, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 286, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 278, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 278, 278, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 473, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 278, 473, 473, 473, 473, 473, 278, 473, 278, 473, 278, 473, 278, 278, 278, 278, 278, 278, 278, 473, 278, 0, 0, 473, 473, 473, 473, 473, 473, 251, 251, 251, 0, 251, 286, 286, 286, 251, 251, 286, 286, 286, 251, 286, 251, 251, 251, 251, 251, 251, 251, 0, 0, 286, 286, 251, 251, 251, 251, 251, 251, 251, 286, 286, 0, 286, 286, 286, 286, 286, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, }; }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/b1293eda8454686e846e2a9837b348e2983bb423/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 576, 5026, 16, 225, 576, 5026, 16, 225, 890, 12416, 16, 225, 576, 5540, 16, 225, 576, 5026,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1388, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 576, 5026, 16, 225, 576, 5026, 16, 225, 890, 12416, 16, 225, 576, 5540, 16, 225, 576, 5026,...
Constructor c = (Constructor) getFromCache(methodKey, null, methodArgs);
Constructor c = null; if (methodKey != null) c = (Constructor) getFromCache(methodKey, null, methodArgs);
public Object callFunction (String funcName, Vector args, Object methodKey, ExpressionContext exprContext) throws TransformerException { Object[] methodArgs; Object[][] convertedArgs; Class[] paramTypes; try { TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject(); if (funcName.equals("new")) { // Handle constructor call methodArgs = new Object[args.size()]; convertedArgs = new Object[1][]; for (int i = 0; i < methodArgs.length; i++) { methodArgs[i] = args.elementAt(i); } Constructor c = (Constructor) getFromCache(methodKey, null, methodArgs); if (c != null && !trans.getDebug()) { try { paramTypes = c.getParameterTypes(); MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext); return c.newInstance(convertedArgs[0]); } catch (InvocationTargetException ite) { throw ite; } catch(Exception e) { // Must not have been the right one } } c = MethodResolver.getConstructor(m_classObj, methodArgs, convertedArgs, exprContext); putToCache(methodKey, null, methodArgs, c); if (trans.getDebug()) { trans.getTraceManager().fireExtensionEvent(new ExtensionEvent(trans, c, convertedArgs[0])); Object result; try { result = c.newInstance(convertedArgs[0]); } catch (Exception e) { throw e; } finally { trans.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(trans, c, convertedArgs[0])); } return result; } else return c.newInstance(convertedArgs[0]); } else { int resolveType; Object targetObject = null; methodArgs = new Object[args.size()]; convertedArgs = new Object[1][]; for (int i = 0; i < methodArgs.length; i++) { methodArgs[i] = args.elementAt(i); } Method m = (Method) getFromCache(methodKey, null, methodArgs); if (m != null && !trans.getDebug()) { try { paramTypes = m.getParameterTypes(); MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext); if (Modifier.isStatic(m.getModifiers())) return m.invoke(null, convertedArgs[0]); else { // This is tricky. We get the actual number of target arguments (excluding any // ExpressionContext). If we passed in the same number, we need the implied object. int nTargetArgs = convertedArgs[0].length; if (ExpressionContext.class.isAssignableFrom(paramTypes[0])) nTargetArgs--; if (methodArgs.length <= nTargetArgs) return m.invoke(m_defaultInstance, convertedArgs[0]); else { targetObject = methodArgs[0]; if (targetObject instanceof XObject) targetObject = ((XObject) targetObject).object(); return m.invoke(targetObject, convertedArgs[0]); } } } catch (InvocationTargetException ite) { throw ite; } catch(Exception e) { // Must not have been the right one } } if (args.size() > 0) { targetObject = methodArgs[0]; if (targetObject instanceof XObject) targetObject = ((XObject) targetObject).object(); if (m_classObj.isAssignableFrom(targetObject.getClass())) resolveType = MethodResolver.DYNAMIC; else resolveType = MethodResolver.STATIC_AND_INSTANCE; } else { targetObject = null; resolveType = MethodResolver.STATIC_AND_INSTANCE; } m = MethodResolver.getMethod(m_classObj, funcName, methodArgs, convertedArgs, exprContext, resolveType); putToCache(methodKey, null, methodArgs, m); if (MethodResolver.DYNAMIC == resolveType) { // First argument was object type if (trans.getDebug()) { trans.getTraceManager().fireExtensionEvent(m, targetObject, convertedArgs[0]); Object result; try { result = m.invoke(targetObject, convertedArgs[0]); } catch (Exception e) { throw e; } finally { trans.getTraceManager().fireExtensionEndEvent(m, targetObject, convertedArgs[0]); } return result; } else return m.invoke(targetObject, convertedArgs[0]); } else // First arg was not object. See if we need the implied object. { if (Modifier.isStatic(m.getModifiers())) { if (trans.getDebug()) { trans.getTraceManager().fireExtensionEvent(m, null, convertedArgs[0]); Object result; try { result = m.invoke(null, convertedArgs[0]); } catch (Exception e) { throw e; } finally { trans.getTraceManager().fireExtensionEndEvent(m, null, convertedArgs[0]); } return result; } else return m.invoke(null, convertedArgs[0]); } else { if (null == m_defaultInstance) { if (trans.getDebug()) { trans.getTraceManager().fireExtensionEvent(new ExtensionEvent(trans, m_classObj)); try { m_defaultInstance = m_classObj.newInstance(); } catch (Exception e) { throw e; } finally { trans.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(trans, m_classObj)); } } else m_defaultInstance = m_classObj.newInstance(); } if (trans.getDebug()) { trans.getTraceManager().fireExtensionEvent(m, m_defaultInstance, convertedArgs[0]); Object result; try { result = m.invoke(m_defaultInstance, convertedArgs[0]); } catch (Exception e) { throw e; } finally { trans.getTraceManager().fireExtensionEndEvent(m, m_defaultInstance, convertedArgs[0]); } return result; } else return m.invoke(m_defaultInstance, convertedArgs[0]); } } } } catch (InvocationTargetException ite) { Throwable resultException = ite; Throwable targetException = ite.getTargetException(); if (targetException instanceof TransformerException) throw ((TransformerException)targetException); else if (targetException != null) resultException = targetException; throw new TransformerException(resultException); } catch (Exception e) { // e.printStackTrace(); throw new TransformerException(e); } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/f4e310ee6b4efea1eed5f4dc78ac673aa9fbf5df/ExtensionHandlerJavaClass.java/buggy/src/org/apache/xalan/extensions/ExtensionHandlerJavaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 745, 2083, 261, 780, 20810, 16, 1171, 9079, 5589, 833, 16, 1171, 9079, 1033, 707, 653, 16, 17311, 5371, 1042, 3065, 1042, 13, 565, 1216, 21684, 282, 288, 565, 1033, 8526, 707,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 745, 2083, 261, 780, 20810, 16, 1171, 9079, 5589, 833, 16, 1171, 9079, 1033, 707, 653, 16, 17311, 5371, 1042, 3065, 1042, 13, 565, 1216, 21684, 282, 288, 565, 1033, 8526, 707,...
return false; }
return false; }
boolean isNumeric() { return false; }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/Format.java/clean/src/main/mondrian/util/Format.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 6494, 26434, 1435, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6494, 26434, 1435, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
logger.debug("ScreenLasso.y = ", screenLassoCoords[i * 2 + 1]);
logger.debug("ScreenLasso.y = ", screenLassoCoords[i * 2 + 1]);
public void mouseReleased(MouseEvent event) { isUndoableChange = false; logger.debug("MouseReleased Event Props: mode=", c2dm.getDrawModeString()); if (logger.isDebugEnabled()) { logger.debug(" trigger=" + event.isPopupTrigger(), ", Click count: " + event.getClickCount()); } if ((event.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) { int[] screenCoords = {event.getX(), event.getY()}; int[] mouseCoords = getWorldCoordinates(screenCoords); int mouseX = mouseCoords[0]; int mouseY = mouseCoords[1]; if (c2dm.getDrawMode() == c2dm.SYMBOL) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { if(currentCommonElement.get(atomInRange)==null) currentCommonElement.put(atomInRange, new Integer(1)); int oldCommonElement=((Integer)currentCommonElement.get(atomInRange)).intValue(); String symbol = (String)commonElements.elementAt(oldCommonElement); if (!(atomInRange.getSymbol().equals(symbol))) { // only change symbol if needed atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } oldCommonElement++; if (oldCommonElement == commonElements.size()) oldCommonElement = 0; currentCommonElement.put(atomInRange, new Integer(oldCommonElement)); } } if (c2dm.getDrawMode() == c2dm.ELEMENT) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { String symbol = c2dm.getDrawElement(); if (!(atomInRange.getSymbol().equals(symbol))) { // only change symbol if needed atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } } if (c2dm.getDrawMode() == c2dm.INCCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() + 1); // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom charge */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.DECCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() - 1); // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.MAPATOMATOM) { logger.debug("Should make new mapping..."); if (wasDragged) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; Atom mappedToAtom = getAtomInRange(endX, endY); if (mappedToAtom != null) { int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Atom mappedFromAtom = getAtomInRange(startX, startY); if (mappedFromAtom != null) { Mapping mapping = new Mapping(mappedFromAtom, mappedToAtom); logger.debug("Created mapping: ", mapping); logger.debug(" between ", mappedFromAtom); logger.debug(" and ", mappedToAtom); // ok, now figure out if they are in one reaction Reaction reaction1 = ChemModelManipulator.getRelevantReaction(chemModel, mappedFromAtom); Reaction reaction2 = ChemModelManipulator.getRelevantReaction(chemModel, mappedToAtom); if (reaction1 != null && reaction2 != null && reaction1 == reaction2) { logger.debug("Adding mapping to reaction: ", reaction1.getID()); reaction1.addMapping(mapping); } else { logger.warn("Reactions do not match, or one or both are reactions are null"); } } else { logger.debug("Dragging did not start in atom..."); } } else { logger.debug("Dragging did not end in atom..."); } } else { logger.debug("Not dragged in mapping mode"); } } if (c2dm.getDrawMode() == c2dm.DRAWBOND) { Atom atomInRange; Atom newAtom1; Atom newAtom2; Bond newBond; int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Bond bondInRange = r2dm.getHighlightedBond(); atomInRange = r2dm.getHighlightedAtom(); if (bondInRange != null) { // increase Bond order double order = bondInRange.getOrder(); if (order >= CDKConstants.BONDORDER_TRIPLE) { bondInRange.setOrder(CDKConstants.BONDORDER_SINGLE); } else { bondInRange.setOrder(order + 1.0); // this is tricky as it depends on the fact that the // constants are unidistant, i.e. {1.0, 2.0, 3.0}. } ; // update atoms Atom[] atoms = bondInRange.getAtoms(); AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(container, atoms); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { if (atomInRange != null) { newAtom1 = atomInRange; } else { // create a new molecule newAtom1 = new Atom(c2dm.getDrawElement(), new Point2d(startX, startY)); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.addAtom(newAtom1); // update atoms updateAtom(atomCon, newAtom1); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } if (wasDragged) { if (dragMode == DRAG_DRAWING_PROPOSED_BOND) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; atomInRange = getAtomInRange(endX, endY); AtomContainer atomCon = null; if (atomInRange != null) { newAtom2 = atomInRange; atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom2); } else { newAtom2 = new Atom(c2dm.getDrawElement(), new Point2d(endX, endY)); atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom1); atomCon.addAtom(newAtom2); } newBond = new Bond(newAtom1, newAtom2, 1); atomCon.addBond(newBond); // update atoms updateAtom(atomCon, newAtom2); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } } else if (atomInRange != null) { // add a new atom to the current atom in some random // direction AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); newAtom2 = new Atom(c2dm.getDrawElement(), atomInRange.getPoint2d()); // now create 2D coords for new atom double bondLength = r2dm.getBondLength(); Atom[] connectedAtoms = atomCon.getConnectedAtoms(atomInRange); AtomContainer placedAtoms = new AtomContainer(); placedAtoms.addAtom(atomInRange); for (int i = 0; i < connectedAtoms.length; i++) { placedAtoms.addAtom(connectedAtoms[i]); } AtomContainer unplacedAtoms = new AtomContainer(); unplacedAtoms.addAtom(newAtom2); AtomPlacer atomPlacer = new AtomPlacer(); atomPlacer.setMolecule(new Molecule(atomCon)); Point2d center2D = GeometryTools.get2DCenter(placedAtoms); atomPlacer.distributePartners(atomInRange, placedAtoms, center2D, unplacedAtoms, bondLength); // now add the new atom atomCon.addAtom(newAtom2); atomCon.addBond(new Bond(atomInRange, newAtom2, 1.0)); // update atoms updateAtom(atomCon, atomInRange); updateAtom(atomCon, newAtom2); } } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.UP_BOND) { Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_UP) { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP_INV); } else if (stereo == CDKConstants.STEREO_BOND_UP_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP); } ; /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.DOWN_BOND) { logger.info("Toggling stereo bond down"); Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_DOWN) { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN_INV); } else if (stereo == CDKConstants.STEREO_BOND_DOWN_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN); } ; /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.SELECT && wasDragged) { logger.info("User asks to selected atoms"); AtomContainer selectedPart = new AtomContainer(); r2dm.setSelectedPart(selectedPart); r2dm.setSelectedPart(getContainedAtoms(r2dm.getSelectRect())); r2dm.setSelectRect(null); logger.debug("selected stuff ", selectedPart); } if (c2dm.getDrawMode() == c2dm.ERASER) { Atom highlightedAtom = r2dm.getHighlightedAtom(); Bond highlightedBond = r2dm.getHighlightedBond(); if (highlightedAtom != null) { logger.info("User asks to delete an Atom"); AtomContainer container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: ", container.getAtomCount()); ChemModelManipulator.removeAtomAndConnectedElectronContainers(chemModel, highlightedAtom); container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: ", container.getAtomCount()); // update atoms Atom[] atoms = container.getConnectedAtoms(highlightedAtom); if (atoms.length > 0) { AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(atomCon, atoms); } } else if (highlightedBond != null) { logger.info("User asks to delete a Bond"); ChemModelManipulator.removeElectronContainer(chemModel, highlightedBond); // update atoms Atom[] atoms = highlightedBond.getAtoms(); AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(container, atoms); } else { logger.warn("Cannot deleted if nothing is highlighted"); return; } /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.RING || c2dm.getDrawMode() == c2dm.BENZENERING) { Ring newRing; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX; int pointerMarkY; double ringRadius; double angle; double xDiff; double yDiff; double distance1 = 0; double distance2 = 0; Atom firstAtom; Atom secondAtom; Atom spiroAtom; Point2d conAtomsCenter = null; Point2d newPoint1; Point2d newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDrawElement(); AtomContainer sharedAtoms = getHighlighted(); if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new AtomContainer(); newRing = new Ring(ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) / Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2d(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.add(newRing); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2d())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed atom from the ring to add only the new placed // atoms to the AtomContainer. try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, spiroAtom); atomCon.add(newRing); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); // calculate two points that are perpendicular to the highlighted bond // and have a certain distance from the bondcenter firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2d() - firstAtom.getX2d(); yDiff = secondAtom.getY2d() - firstAtom.getY2d(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { // check which one of the two points is nearest to the endpoint of the pointer // vector that was dragged to make the ringCenterVector point into the right direction. pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { // check which one of the two points is nearest to the center of the // connected atoms to make the ringCenterVector point into the right direction. conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); // no ring is attached if the two ditances are equal if (distance1 == distance2) { logger.warn("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, firstAtom); // construct a new Ring that contains the highlighted bond an its two atoms newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond existingBond = atomCon.getBond(firstAtom, secondAtom); Bond[] bonds = newRing.getBonds(); if (existingBond.getOrder() == 1.0) { if (existingBond.getFlag(CDKConstants.ISAROMATIC)) { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } else { bonds[1].setOrder(2.0); bonds[3].setOrder(2.0); bonds[5].setOrder(2.0); } } else { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } makeRingAromatic(newRing); } // place the new atoms of the new ring to the right position ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed bond and its atoms from the ring to add only // the new placed atoms to the AtomContainer. try { newRing.remove(sharedAtoms); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } atomCon.add(newRing); } /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.LASSO) { // first deselect all atoms r2dm.setSelectedPart(new AtomContainer()); // now select new atoms if (wasDragged) { Vector lassoPoints = r2dm.getLassoPoints(); r2dm.addLassoPoint(new Point((Point) lassoPoints.elementAt(0))); int number = lassoPoints.size(); logger.debug("# lasso points: ", number); int[] screenLassoCoords = new int[number * 2]; Point currentPoint; for (int i = 0; i < number; i++) { currentPoint = (Point) lassoPoints.elementAt(i); screenLassoCoords[i * 2] = currentPoint.x; screenLassoCoords[i * 2 + 1] = currentPoint.y; logger.debug("ScreenLasso.x = ", screenLassoCoords[i * 2]); logger.debug("ScreenLasso.y = ", screenLassoCoords[i * 2 + 1]); } /* * Convert points to world coordinates as they are * in screen coordinates in the vector */ int[] worldCoords = getWorldCoordinates(screenLassoCoords); logger.debug("Returned coords: ", worldCoords.length); logger.debug(" # points: ", number); int[] xPoints = new int[number]; int[] yPoints = new int[number]; for (int i = 0; i < number; i++) { xPoints[i] = worldCoords[i * 2]; yPoints[i] = worldCoords[i * 2 + 1]; logger.debug("WorldCoords.x = ", worldCoords[i * 2]); logger.debug("WorldCoords.y = ", worldCoords[i * 2 + 1]); logger.debug("Polygon.x = ", xPoints[i]); logger.debug("Polygon.y = ", yPoints[i]); } Polygon polygon = new Polygon(xPoints, yPoints, number); r2dm.setSelectedPart(getContainedAtoms(polygon)); r2dm.getLassoPoints().removeAllElements(); r2dm.fireChange(); } else { // one atom clicked or one bond clicked ChemObject chemObj = getChemObjectInRange(mouseX, mouseY); AtomContainer container = new AtomContainer(); if (chemObj instanceof Atom) { container.addAtom((Atom) chemObj); logger.debug("selected one atom in lasso mode"); r2dm.setSelectedPart(container); } else if (chemObj instanceof Bond) { Bond bond = (Bond) chemObj; container.addBond(bond); logger.debug("selected one bond in lasso mode"); Atom[] atoms = bond.getAtoms(); for (int i = 0; i < atoms.length; i++) { container.addAtom(atoms[i]); } r2dm.setSelectedPart(container); } } fireChange(); } if (c2dm.getDrawMode() == c2dm.MOVE) { if (draggingSelected == false) { // then it was dragging nearest Bond or Atom r2dm.setSelectedPart(new AtomContainer()); } } if (wasDragged) { prevDragCoordX = 0; prevDragCoordY = 0; wasDragged = false; } dragMode = DRAG_UNSET; r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/81f64c41697e064b62e064b62677261a78168623/Controller2D.java/clean/src/org/openscience/cdk/controller/Controller2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7644, 26363, 12, 9186, 1133, 871, 13, 202, 95, 565, 20488, 2896, 429, 3043, 273, 629, 31, 202, 202, 4901, 18, 4148, 2932, 9186, 26363, 2587, 1186, 1121, 30, 1965, 1546, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7644, 26363, 12, 9186, 1133, 871, 13, 202, 95, 565, 20488, 2896, 429, 3043, 273, 629, 31, 202, 202, 4901, 18, 4148, 2932, 9186, 26363, 2587, 1186, 1121, 30, 1965, 1546, 1...
return LockableListModel.this.get( currentIndex++ );
Object nextObject = LockableListModel.this.get( nextIndex ); ++nextIndex; ++previousIndex; return nextObject;
public Object next() { isIncrementing = true; return LockableListModel.this.get( currentIndex++ ); }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/e0b99d73c7e70faae9ad430a8f4928a1d0b5dafa/LockableListModel.java/clean/src/net/java/dev/spellcast/utilities/LockableListModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 1024, 1435, 202, 202, 95, 1082, 202, 291, 10798, 310, 273, 638, 31, 1082, 202, 2463, 3488, 429, 682, 1488, 18, 2211, 18, 588, 12, 17032, 9904, 11272, 202, 202, 97, 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, 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, 1033, 1024, 1435, 202, 202, 95, 1082, 202, 291, 10798, 310, 273, 638, 31, 1082, 202, 2463, 3488, 429, 682, 1488, 18, 2211, 18, 588, 12, 17032, 9904, 11272, 202, 202, 97, 2, ...
DOMConfiguration config = parser.getConfig();
DOMConfiguration config = parser.getDomConfig();
public static void main(String argv[]) { // too fee parameters if (argv.length < 2) { printUsage(); System.exit(1); } // get DOM implementation DOMImplementationAS domImpl = (DOMImplementationAS)ASDOMImplementationImpl.getDOMImplementation(); // create a new parser, and set the error handler DOMASBuilder parser = domImpl.createDOMASBuilder(); DOMConfiguration config = parser.getConfig(); config.setParameter("error-handler", new ASBuilder()); boolean schemaFullChecking = DEFAULT_SCHEMA_FULL_CHECKING; String arg = null; int i = 0; // process -f/F arg = argv[i]; if (arg.equals("-f")) { schemaFullChecking = true; arg = argv[++i]; } else if (arg.equals("-F")) { schemaFullChecking = false; arg = argv[++i]; } // set the features. since we only deal with schema, some features have // to be true config.setParameter(NAMESPACES_FEATURE_ID, Boolean.TRUE); config.setParameter(VALIDATION_FEATURE_ID, Boolean.TRUE); config.setParameter(SCHEMA_VALIDATION_FEATURE_ID, Boolean.TRUE); config.setParameter(SCHEMA_FULL_CHECKING_FEATURE_ID, (schemaFullChecking)?Boolean.TRUE:Boolean.FALSE); // process -a: as model files if (!arg.equals("-a")) { printUsage(); System.exit(1); } i++; Vector asfiles = new Vector(); while (i < argv.length && !(arg = argv[i]).startsWith("-")) { asfiles.addElement(arg); i++; } // has to be at least one as file, and there has to be other parameters if (asfiles.size() == 0) { printUsage(); System.exit(1); } // process -i: instance files, if any Vector ifiles = null; if (i < argv.length) { if (!arg.equals("-i")) { printUsage(); System.exit(1); } i++; ifiles = new Vector(); while (i < argv.length && !(arg = argv[i]).startsWith("-")) { ifiles.addElement(arg); i++; } // has to be at least one instance file, and there has to be no more // parameters if (ifiles.size() == 0 || i != argv.length) { printUsage(); System.exit(1); } } // // PARSING XML SCHEMAS // try { ASModel asmodel = null; for (i = 0; i < asfiles.size(); i++) { asmodel = parser.parseASURI((String)asfiles.elementAt(i)); parser.setAbstractSchema(asmodel); } } catch (Exception e) { e.printStackTrace(); System.exit(1); } // then for each instance file, try to validate it if (ifiles != null) { try { for (i = 0; i < ifiles.size(); i++) { parser.parseURI((String)ifiles.elementAt(i)); } } catch (Exception e) { e.printStackTrace(); System.exit(1); } } } // main(String[])
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/31754fe1a24a724ea78442a7bc092765b00a9503/ASBuilder.java/clean/samples/dom/ASBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5261, 63, 5717, 288, 3639, 368, 4885, 14036, 1472, 3639, 309, 261, 19485, 18, 2469, 411, 576, 13, 288, 5411, 1172, 5357, 5621, 5411, 2332, 18, 8593, 12, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5261, 63, 5717, 288, 3639, 368, 4885, 14036, 1472, 3639, 309, 261, 19485, 18, 2469, 411, 576, 13, 288, 5411, 1172, 5357, 5621, 5411, 2332, 18, 8593, 12, 2...
if( (lt == null) || (lt == ct) ) {
if( ct.isMatchingType(lt) ) {
public void firePostChangeEvent(ChangeEvent ce) { boolean needToReap = false; ChangeType ct = ce.getType(); for(int i = 0; i < listenerCount; i++) { ChangeType lt = types[i]; if( (lt == null) || (lt == ct) ) { ChangeListener cl = (ChangeListener) listeners[i].get(); if (cl != null) { cl.postChange(ce); } else { needToReap = true; } } } if (needToReap) reapGarbageListeners(); }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/ca3c9ff28c8bc8a4e00b8ec61e5960a13facd802/ChangeSupport.java/buggy/src/org/biojava/utils/ChangeSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4452, 3349, 20930, 12, 20930, 5898, 13, 288, 1377, 1250, 1608, 774, 426, 438, 273, 629, 31, 565, 7576, 559, 5691, 273, 5898, 18, 588, 559, 5621, 565, 364, 12, 474, 277, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4452, 3349, 20930, 12, 20930, 5898, 13, 288, 1377, 1250, 1608, 774, 426, 438, 273, 629, 31, 565, 7576, 559, 5691, 273, 5898, 18, 588, 559, 5621, 565, 364, 12, 474, 277, 273, ...
iCodeTop = addByte(Icode_DUP, iCodeTop);
iCodeTop = addIcode(Icode_DUP, iCodeTop);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.itsFunctionType != FunctionNode.FUNCTION_STATEMENT) { // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addByte(Token.CLOSURE, iCodeTop); iCodeTop = addIndex(fnIndex, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNext(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.VOID : case Token.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.COMMA : iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(Token.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.SHEQ, iCodeTop); itsStackDepth--; Node target = new Node(Token.TARGET); thisCase.addChildAfter(target, first); iCodeTop = addGoto(target, Token.IFEQ, iCodeTop); } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(Token.TARGET); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : { markTargetLabel(node, iCodeTop); break; } case Token.EQOP : case Token.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int op = node.getOperation(); if (version == Context.VERSION_1_2) { if (op == Token.EQ) { op = Token.SHEQ; } else if (op == Token.NE) { op = Token.SHNE; } } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; break; } case Token.NEW : case Token.CALL : { int childCount = 0; String functionName = null; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (functionName == null) { int childType = child.getType(); if (childType == Token.NAME || childType == Token.GETPROP) { functionName = lastAddString; } } child = child.getNext(); childCount++; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addByte(Icode_CALLSPECIAL, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(functionName, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == Token.NEW) { childCount -= 1; } else { childCount -= 2; } iCodeTop = addIndex(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; break; } case Token.NEWLOCAL : case Token.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); break; } case Token.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) { iCodeTop = addByte(Icode_RETSUB, iCodeTop); } else { iCodeTop = addByte(Token.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); break; } case Token.USETEMP : { iCodeTop = addByte(Token.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(falseJumpStart, iCodeTop); break; } case Token.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); break; } case Token.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_GETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_GETSCOPEPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } break; } case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) { iCodeTop = addByte(Token.POS, iCodeTop); } else { badTree(node); } break; } case Token.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getOperation()) { case Token.VOID : iCodeTop = addByte(Token.POP, iCodeTop); iCodeTop = addByte(Token.UNDEFINED, iCodeTop); break; case Token.NOT : { int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.TRUE, iCodeTop); int beyondJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); iCodeTop = addByte(Token.FALSE, iCodeTop); resolveForwardGoto(beyondJumpStart, iCodeTop); break; } case Token.BITNOT : iCodeTop = addByte(Token.BITNOT, iCodeTop); break; case Token.TYPEOF : iCodeTop = addByte(Token.TYPEOF, iCodeTop); break; case Token.SUB : iCodeTop = addByte(Token.NEG, iCodeTop); break; case Token.ADD : iCodeTop = addByte(Token.POS, iCodeTop); break; default: badTree(node); break; } break; case Token.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_SETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_SETPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addByte(Token.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(Token.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_GETPARENT, iCodeTop); break; case Token.GETBASE : case Token.BINDNAME : case Token.NAME : case Token.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.INC : case Token.DEC : { int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(type == Token.INC ? Token.VARINC : Token.VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == Token.GETPROP) { iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); } else { iCodeTop = addByte(type == Token.INC ? Token.ELEMINC : Token.ELEMDEC, iCodeTop); } itsStackDepth--; break; } default : { iCodeTop = addByte(type == Token.INC ? Token.NAMEINC : Token.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(Token.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(Token.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.POP : case Token.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case Token.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case Token.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case Token.TRY : { Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd >= 0) Context.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Catch code has exception object on the stack itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } else if (child == finallyTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Adjust stack for finally code: on the top of the // stack it has either a PC value when called from // GOSUB or exception object to rethrow when called // from exception handler itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) { itsData.itsMaxStack = itsStackDepth; } } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } itsStackDepth = 0; // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth); break; } case Token.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.THROW, iCodeTop); itsStackDepth--; break; case Token.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(Icode_RETUNDEF, iCodeTop); } break; case Token.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.PRIMARY: iCodeTop = addByte(node.getOperation(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case Token.ENUMNEXT : { iCodeTop = addByte(Token.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.ENUMDONE : // could release the local here?? break; case Token.REGEXP : { int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(Token.REGEXP, iCodeTop); iCodeTop = addIndex(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } default : badTree(node); break; } return iCodeTop; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/faf2a30c39fc508f2635416a94f9662c4ae41ad3/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, ...
} else
} else
private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') state = 1; else result.append(s.charAt(i)); break; case 1: if (s.charAt(i) == '{') state = 2; else { state = 0; result.append('$').append(s.charAt(i)); } break; case 2: if (s.charAt(i) == '}') { String p = prop.toString(); if (p.equals("/")) p = "file.separator"; p = System.getProperty(p); if (p == null) p = ""; result.append(p); prop.setLength(0); state = 0; } else prop.append(s.charAt(i)); break; } } if (state != 0) result.append('$').append('{').append(prop); return result.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/PolicyFile.java/buggy/core/src/classpath/gnu/gnu/java/security/PolicyFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 4542, 12, 6385, 514, 272, 13, 288, 3639, 727, 6674, 563, 273, 394, 6674, 5621, 3639, 727, 6674, 2270, 273, 394, 6674, 5621, 3639, 509, 919, 273, 374, 31, 3639, 364, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 4542, 12, 6385, 514, 272, 13, 288, 3639, 727, 6674, 563, 273, 394, 6674, 5621, 3639, 727, 6674, 2270, 273, 394, 6674, 5621, 3639, 509, 919, 273, 374, 31, 3639, 364, 261,...
dc = application.addDomainClass(new GrailsHibernateDomainClass(persistentClass, sf,cmd));
GrailsHibernateDomainClass ghdc = new GrailsHibernateDomainClass(persistentClass, sf,cmd); hibernateDomainClassMap.put(persistentClass .getClass() .getName(), ghdc); dc = application.addDomainClass(ghdc);
public static void configureDynamicMethods(SessionFactory sf, GrailsApplication application) { Collection classMetaData = sf.getAllClassMetadata().values(); for (Iterator i = classMetaData.iterator(); i.hasNext();) { ClassMetadata cmd = (ClassMetadata) i.next(); Class persistentClass = cmd.getMappedClass(EntityMode.POJO); // if its not a grails domain class and one written in java then add it // to grails if(application != null && persistentClass != null) { GrailsDomainClass dc = application.getGrailsDomainClass(persistentClass.getName()); if( dc == null) { dc = application.addDomainClass(new GrailsHibernateDomainClass(persistentClass, sf,cmd)); } LOG.info("[GrailsDomainConfiguration] Registering dynamic methods on class ["+persistentClass+"]"); try { DynamicMethods dm = new DomainClassMethods(application,persistentClass,sf,application.getClassLoader()); for (int j = 0; j < dc.getPersistantProperties().length; j++) { GrailsDomainClassProperty p = dc.getPersistantProperties()[j]; if(p.isOneToMany() || p.isManyToMany()) { dm.addDynamicMethodInvocation(new AddRelatedDynamicMethod(p)); } } } catch (IntrospectionException e) { LOG.warn("[GrailsDomainConfiguration] Introspection exception registering dynamic methods for ["+persistentClass+"]:" + e.getMessage(), e); } } } }
50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/2d587a38f1c23d21f6d7d6fd8dc0b2f053f83ff9/GrailsDomainConfigurationUtil.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainConfigurationUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 5068, 9791, 4712, 12, 2157, 1733, 9033, 16, 10812, 14573, 3208, 2521, 13, 288, 3639, 2200, 667, 6998, 273, 9033, 18, 588, 1595, 29543, 7675, 2372, 5621, 3639, 364, 261, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 5068, 9791, 4712, 12, 2157, 1733, 9033, 16, 10812, 14573, 3208, 2521, 13, 288, 3639, 2200, 667, 6998, 273, 9033, 18, 588, 1595, 29543, 7675, 2372, 5621, 3639, 364, 261, 31...
private static WorkspaceItem returnToWorkspace(Context c, WorkflowItem wfi)
private static WorkspaceItem returnToWorkspace(Context c, WorkflowItem wfi)
private static WorkspaceItem returnToWorkspace(Context c, WorkflowItem wfi) throws SQLException, AuthorizeException { Item myitem = wfi.getItem(); Collection mycollection = wfi.getCollection(); // FIXME: How should this interact with the workflow system? // FIXME: Remove license // FIXME: Provenance statement? // Remove accession date myitem.clearDC("date", "accessioned", Item.ANY); myitem.update(); // Create the new workspace item row TableRow row = DatabaseManager.create(c, "workspaceitem"); row.setColumn("item_id", myitem.getID()); row.setColumn("collection_id", mycollection.getID()); DatabaseManager.update(c, row); int wsi_id = row.getIntColumn("workspace_item_id"); WorkspaceItem wi = WorkspaceItem.find(c, wsi_id); wi.setMultipleFiles(wfi.hasMultipleFiles()); wi.setMultipleTitles(wfi.hasMultipleTitles()); wi.setPublishedBefore(wfi.isPublishedBefore()); wi.update(); log.info(LogManager.getHeader(c, "return_to_workspace", "workflow_item_id=" + wfi.getID() + "workspace_item_id=" + wi.getID())); // Now remove the workflow object manually from the database DatabaseManager.updateQuery(c, "DELETE FROM WorkflowItem WHERE workflow_id=" + wfi.getID() ); //DatabaseManager.delete(c, wfRow); return wi; }
51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/fd403dfe7904f27b1621876ef0d32faefc6175ab/WorkflowManager.java/buggy/dspace/src/org/dspace/workflow/WorkflowManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 14396, 1180, 327, 774, 8241, 12, 1042, 276, 16, 11363, 1180, 11578, 77, 13, 3639, 1216, 6483, 16, 23859, 503, 565, 288, 3639, 4342, 3399, 1726, 273, 11578, 77, 18, 588, 1180, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14396, 1180, 327, 774, 8241, 12, 1042, 276, 16, 11363, 1180, 11578, 77, 13, 3639, 1216, 6483, 16, 23859, 503, 565, 288, 3639, 4342, 3399, 1726, 273, 11578, 77, 18, 588, 1180, ...
shape[ ndim - 1 ] = ( maxElements[ icol ] + nel - 1 ) / nel;
shape[ ndim - 1 ] = Math.max( 1, ( maxElements[ icol ] + nel - 1 ) / nel );
public void writeStarTable( StarTable startab, String location ) throws IOException { /* Get table dimensions (though we may need to calculate the row * count directly later). */ int ncol = startab.getColumnCount(); long nrow = startab.getRowCount(); /* Store column infos. */ ColumnInfo colinfos[] = Tables.getColumnInfos( startab ); /* Work out column shapes. For FITS output a String is a * character array. */ int[][] shapes = new int[ ncol ][]; boolean[] useCols = new boolean[ ncol ]; Arrays.fill( useCols, true ); boolean hasVarShapes = false; for ( int icol = 0; icol < ncol; icol++ ) { ColumnInfo colinfo = colinfos[ icol ]; int[] shape; Class clazz = colinfo.getContentClass(); int[] cshape = colinfo.getShape(); if ( clazz.equals( String[].class ) ) { shape = new int[ cshape.length + 1 ]; shape[ 0 ] = -1; System.arraycopy( cshape, 0, shape, 1, cshape.length ); hasVarShapes = true; } else if ( clazz.getComponentType() != null ) { if ( clazz.getComponentType().getComponentType() == null ) { shape = colinfo.getShape(); if ( shape[ shape.length - 1 ] < 0 ) { hasVarShapes = true; } } else { useCols[ icol ] = false; shape = null; logger.warning( "Can't write column " + icol + " of type " + clazz ); } } else if ( clazz.equals( String.class ) ) { shape = new int[] { -1 }; hasVarShapes = true; } else { shape = new int[] { 1 }; } shapes[ icol ] = shape; } /* First pass through table data to find out the size of variable * length fields and the length of the table if necessary. */ if ( hasVarShapes || nrow < 0 ) { nrow = 0L; /* Get the maximum dimensions. */ int[] maxElements = new int[ ncol ]; int[] maxChars = new int[ ncol ]; for ( RowSequence rseq = startab.getRowSequence(); rseq.hasNext(); ) { rseq.next(); nrow++; Object[] row = rseq.getRow(); for ( int icol = 0; icol < ncol; icol++ ) { if ( useCols[ icol ] ) { Object cell = row[ icol ]; if ( cell != null ) { Class clazz = cell.getClass(); if ( clazz == String.class ) { maxChars[ icol ] = Math.max( maxChars[ icol ], ((String) cell).length() ); } else { Class eclazz = clazz.getComponentType(); if ( eclazz != null ) { int nel = Array.getLength( cell ); maxElements[ icol ] = Math.max( maxElements[ icol ], nel ); if ( eclazz == String.class ) { String[] els = (String[]) cell; for ( int i = 0; i < nel; i++ ) { maxChars[ icol ] = Math.max( maxChars[ icol ], els[ i ].length() ); } } } } } } } } /* Work out the actual shapes for columns which have variable * ones, based on the shapes that we encountered in the rows. */ if ( hasVarShapes ) { for ( int icol = 0; icol < ncol; icol++ ) { if ( useCols[ icol ] ) { ColumnInfo colinfo = colinfos[ icol ]; Class clazz = colinfo.getContentClass(); int[] shape = shapes[ icol ]; int ndim = shape == null ? -1 : shape.length; if ( clazz.equals( String[].class ) ) { shape[ 0 ] = maxChars[ icol ]; if ( shape[ ndim - 1 ] < 0 ) { int nel = 1; for ( int i = 0; i < ndim - 1; i++ ) { nel *= shape[ i ]; } shape[ ndim - 1 ] = ( maxElements[ icol ] + nel - 1 ) / nel; } } else if ( clazz.getComponentType() != null ) { if ( shape[ ndim - 1 ] < 0 ) { int nel = 1; for ( int i = 0; i < ndim - 1; i++ ) { nel *= shape[ i ]; } shape[ ndim - 1 ] = ( maxElements[ icol ] + nel - 1 ) / nel; } } else if ( clazz.equals( String.class ) ) { shape[ 0 ] = maxChars[ icol ]; } } } } } /* Work out the number of elements, format string and value translator * for each column. */ int[] nElements = new int[ ncol ]; String[] tforms = new String[ ncol ]; String[] tdims = new String[ ncol ]; boolean[] isBytes = new boolean[ ncol ]; ValueTranslator[] translators = new ValueTranslator[ ncol ]; int byteCount = 0; for ( int icol = 0; icol < ncol; icol++ ) { if ( useCols[ icol ] ) { int[] shape = shapes[ icol ]; /* Construct the TDIM header string for multidimensional * arrays. */ if ( shape.length >= 2 ) { StringBuffer sbuf = new StringBuffer(); for ( int i = 0; i < shape.length; i++ ) { sbuf.append( i == 0 ? '(' : ',' ); sbuf.append( shape[ i ] ); } sbuf.append( ')' ); tdims[ icol ] = sbuf.toString(); } /* Get the number of elements */ int nel = 1; for ( int i = 0; i < shape.length; i++ ) { assert shape[ i ] >= 0; nel *= shape[ i ]; } nElements[ icol ] = nel; /* Work out its format descriptor and * number of bytes per element, and construct a * ValueTranslator object to deal with turning it from * the object we get out of the column into an object * which can get written down an ArrayDataOutput. */ Class clazz = colinfos[ icol ].getContentClass(); ValueTranslator trans; char fchar; int nbyte; if ( clazz == Boolean.class ) { fchar = 'L'; nbyte = 1; trans = new ValueTranslator() { byte[] cell = new byte[ 1 ]; byte[] blank = new byte[] { (byte) 'F' }; public Object translate( Object base ) { if ( base == null ) { return blank; } cell[ 0 ] = ((Boolean) base).booleanValue() ? (byte) 'T' : (byte) 'F'; return cell; } }; } else if ( clazz == boolean[].class ) { fchar = 'L'; nbyte = 1; trans = new ArrayValueTranslator( new boolean[ nel ] ); } else if ( clazz == Character.class ) { fchar = 'A'; nbyte = 1; trans = new ValueTranslator() { char[] chars = new char[ 1 ]; char[] blank = new char[] { (char) 0 }; String[] cell = new String[ 1 ]; public Object translate( Object base ) { if ( base == null ) { return blank; } chars[ 0 ] = ((Character) base).charValue(); cell[ 0 ] = new String( chars ); return cell; } }; } else if ( clazz == char[].class ) { fchar = 'A'; nbyte = 1; final byte[] blank = new byte[ nel ]; Arrays.fill( blank, (byte) ' ' ); trans = new StringValueTranslator( new byte[ nel ] ) { public Object translate( Object base ) { if ( base == null ) { return blank; } return super .translate( new String( (char[]) base ) ); } }; } else if ( clazz == String.class ) { fchar = 'A'; nbyte = 1; trans = new StringValueTranslator( new byte[ nel ] ); } else if ( clazz == String[].class ) { fchar = 'A'; nbyte = 1; final int sleng = shape[ 0 ]; int mstr = 1; for ( int i = 1; i < shape.length; i++ ) { mstr *= shape[ i ]; } final int maxstr = mstr; final int fnel = nel; trans = new ValueTranslator() { ValueTranslator auxTrans = new StringValueTranslator( new byte[ sleng ] ); byte[] cell = new byte[ fnel ]; public Object translate( Object base ) { String[] strings = (String[]) base; int nstr = ( strings == null ) ? 0 : Math.min( strings.length, maxstr ); for ( int i = 0; i < nstr; i++ ) { byte[] buf = (byte[]) auxTrans.translate( strings[ i ] ); System.arraycopy( buf, 0, cell, i * sleng, sleng ); } Arrays.fill( cell, nstr * sleng, fnel, (byte) ' ' ); return cell; } }; } else if ( clazz == Byte.class ) { fchar = 'B'; nbyte = 1; trans = new ValueTranslator() { byte[] cell = new byte[ 1 ]; byte[] blank = new byte[] { (byte) 0 }; public Object translate( Object base ) { if ( base == null ) { return blank; } cell[ 0 ] = prepareByte( ((Byte) base).byteValue() ); return cell; } }; } else if ( clazz == byte[].class ) { fchar = 'B'; nbyte = 1; trans = new ArrayValueTranslator( new byte[ nel ] ) { public Object translate( Object base ) { byte[] cell = (byte[]) super.translate( base ); for ( int i = 0; i < cell.length; i++ ) { cell[ i ] = prepareByte( cell[ i ] ); } return cell; } }; } else if ( clazz == Short.class ) { fchar = 'I'; nbyte = 2; trans = new ValueTranslator() { short[] cell = new short[ 1 ]; short[] blank = new short[] { (short) 0 }; public Object translate( Object base ) { if ( base == null ) { return blank; } cell[ 0 ] = ((Short) base).shortValue(); return cell; } }; } else if ( clazz == short[].class ) { fchar = 'I'; nbyte = 2; trans = new ArrayValueTranslator( new short[ nel ] ); } else if ( clazz == Integer.class ) { fchar = 'J'; nbyte = 4; trans = new ValueTranslator() { int[] cell = new int[ 1 ]; int[] blank = new int[] { 0 }; public Object translate( Object base ) { if ( base == null ) { return blank; } cell[ 0 ] = ((Integer) base).intValue(); return cell; } }; } else if ( clazz == int[].class ) { fchar = 'J'; nbyte = 4; trans = new ArrayValueTranslator( new int[ nel ] ); } else if ( clazz == Float.class ) { fchar = 'E'; nbyte = 4; trans = new ValueTranslator() { float[] cell = new float[ 1 ]; float[] blank = new float[] { Float.NaN }; public Object translate( Object base ) { if ( base == null ) { return blank; } cell[ 0 ] = ((Float) base).floatValue(); return cell; } }; } else if ( clazz == float[].class ) { fchar = 'E'; nbyte = 4; trans = new ArrayValueTranslator( new float[ nel ], new float[] { Float.NaN } ); } else if ( clazz == Double.class ) { fchar = 'D'; nbyte = 8; trans = new ValueTranslator() { double[] cell = new double[ 1 ]; double[] blank = new double[] { Double.NaN }; public Object translate( Object base ) { if ( base == null ) { return blank; } cell[ 0 ] = ((Double) base).doubleValue(); return cell; } }; } else if ( clazz == double[].class ) { fchar = 'D'; nbyte = 8; trans = new ArrayValueTranslator( new double[ nel ], new double[] { Double.NaN } ); } else { useCols[ icol ] = false; logger.warning( "Can't write column of type " + clazz ); fchar = '*'; nbyte = 0; trans = null; } translators[ icol ] = trans; /* Work out the format string. */ byteCount += nElements[ icol ] * nbyte; tforms[ icol ] = fchar + Integer.toString( nel ); } } /* See how many columns we are really going to write. */ int nUseCol = 0; for ( int icol = 0; icol < ncol; icol++ ) { if ( useCols[ icol ] ) { nUseCol++; } } /* Check that we have some rows to write. */ if ( nUseCol == 0 ) { throw new IOException( "No columns to write in this table" ); } /* Obtain a stream for output. */ ArrayDataOutput strm = getOutputStream( location ); /* Construct a header for the table HDU. We could use the * BinaryHDU.manufactureHeader method for this, but we get more * control doing it by hand. */ Header hdr = new Header(); try { hdr.addValue( "XTENSION", "BINTABLE", "binary table extension" ); hdr.addValue( "BITPIX", 8, "8-bit bytes" ); hdr.addValue( "NAXIS", 2, "2-dimensional table" ); hdr.addValue( "NAXIS1", byteCount, "width of table in bytes" ); hdr.addValue( "NAXIS2", nrow, "number of rows in table" ); hdr.addValue( "PCOUNT", 0, "size of special data area" ); hdr.addValue( "GCOUNT", 1, "one data group" ); hdr.addValue( "TFIELDS", nUseCol, "number of columns" ); int jcol = 0; for ( int icol = 0; icol < ncol; icol++ ) { if ( useCols[ icol ] ) { jcol++; String forcol = " for column " + jcol; ColumnInfo colinfo = colinfos[ icol ]; String name = colinfo.getName(); String unit = colinfo.getUnitString(); String tform = tforms[ icol ]; String tdim = tdims[ icol ]; if ( name != null && name.trim().length() > 0 ) { hdr.addValue( "TTYPE" + jcol, name, "label" + forcol ); } if ( unit != null && unit.trim().length() > 0 ) { hdr.addValue( "TUNIT" + jcol, unit, "units" + forcol ); } hdr.addValue( "TFORM" + jcol, tform, "format" + forcol ); if ( tdim != null ) { hdr.addValue( "TDIM" + jcol, tdim, "dimensions" + forcol ); } if ( isBytes[ icol ] ) { hdr.addValue( "TZERO" + jcol, -128, "base" + forcol ); hdr.addValue( "TSCAL" + jcol, 1, "factor" + forcol ); } } } /* Write the table header out. */ hdr.write( strm ); } catch ( FitsException e ) { throw (IOException) new IOException( e.toString() ) .initCause( e ); } /* Iterate over the table rows writing each one. */ for ( RowSequence rseq = startab.getRowSequence(); rseq.hasNext(); ) { rseq.next(); for ( int icol = 0; icol < ncol; icol++ ) { if ( useCols[ icol ] ) { strm.writeArray( translators[ icol ] .translate( rseq.getCell( icol ) ) ); } } } /* Write padding to the end of the block. */ long nbyte = nrow * hdr.getIntValue( "NAXIS1" ); int extra = (int) ( nbyte % (long) 2880 ); if ( extra > 0 ) { strm.write( new byte[ 2880 - extra ] ); } /* Terminate the output. */ strm.close(); }
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/8f31457868d1b86fa741973f172480179eadbf0e/FitsTableWriter.java/buggy/fits/src/main/uk/ac/starlink/fits/FitsTableWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 18379, 1388, 12, 934, 297, 1388, 787, 378, 16, 514, 2117, 262, 2398, 1216, 1860, 288, 3639, 1748, 968, 1014, 5769, 261, 18897, 732, 2026, 1608, 358, 4604, 326, 1027, 540,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 18379, 1388, 12, 934, 297, 1388, 787, 378, 16, 514, 2117, 262, 2398, 1216, 1860, 288, 3639, 1748, 968, 1014, 5769, 261, 18897, 732, 2026, 1608, 358, 4604, 326, 1027, 540,...
CommandLineOption repositoryPathOption = loadOption(WSDL2JavaConstants.REPOSITORY_PATH_OPTION, WSDL2JavaConstants.REPOSITORY_PATH_OPTION_LONG, optionMap); config.setRepositoryPath(repositoryPathOption != null ? repositoryPathOption.getOptionValue(): null);
public static void loadConfig(CodeGenConfiguration config, Map optionMap){ String outputLocation = "."; //default output directory is the current working directory CommandLineOption outputLocationOption = loadOption(WSDL2JavaConstants.OUTPUT_LOCATION_OPTION, WSDL2JavaConstants.OUTPUT_LOCATION_OPTION_LONG,optionMap); if (outputLocationOption != null) { outputLocation = outputLocationOption.getOptionValue(); } File outputLocationFile = new File(outputLocation); config.setOutputLocation(outputLocationFile); //check and create the directories if (outputLocationFile.exists()) { if (outputLocationFile.isFile()) { throw new RuntimeException(CodegenMessages.getMessage("options.notADirectoryException")); } } else { outputLocationFile.mkdirs(); } config.setServerSide(loadOption(WSDL2JavaConstants.SERVER_SIDE_CODE_OPTION, WSDL2JavaConstants.SERVER_SIDE_CODE_OPTION_LONG,optionMap) != null); config.setGenerateDeployementDescriptor(loadOption(WSDL2JavaConstants.GENERATE_SERVICE_DESCRIPTION_OPTION, WSDL2JavaConstants.GENERATE_SERVICE_DESCRIPTION_OPTION_LONG,optionMap) != null); config.setWriteTestCase(loadOption(WSDL2JavaConstants.GENERATE_TEST_CASE_OPTION, WSDL2JavaConstants.GENERATE_TEST_CASE_OPTION,optionMap) != null); boolean asyncFlagPresent = (loadOption(WSDL2JavaConstants.CODEGEN_ASYNC_ONLY_OPTION, WSDL2JavaConstants.CODEGEN_ASYNC_ONLY_OPTION_LONG,optionMap) != null); boolean syncFlagPresent = (loadOption(WSDL2JavaConstants.CODEGEN_SYNC_ONLY_OPTION, WSDL2JavaConstants.CODEGEN_SYNC_ONLY_OPTION_LONG,optionMap) != null); if (asyncFlagPresent) { config.setAsyncOn(true); config.setSyncOn(false); } if (syncFlagPresent) { config.setAsyncOn(false); config.setSyncOn(true); } CommandLineOption packageOption = loadOption(WSDL2JavaConstants.PACKAGE_OPTION, WSDL2JavaConstants.PACKAGE_OPTION_LONG,optionMap); if (packageOption != null) { config.setPackageName(packageOption.getOptionValue()); } CommandLineOption langOption = loadOption(WSDL2JavaConstants.STUB_LANGUAGE_OPTION, WSDL2JavaConstants.STUB_LANGUAGE_OPTION_LONG,optionMap); //The language here if (langOption != null) { config.setOutputLanguage(langOption.getOptionValue()); } CommandLineOption dataBindingOption = loadOption(WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION, WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION_LONG,optionMap); if (dataBindingOption != null) { config.setDatabindingType(dataBindingOption.getOptionValue()); } CommandLineOption unwrapClassesOption = loadOption(WSDL2JavaConstants.UNPACK_CLASSES_OPTION, WSDL2JavaConstants.UNPACK_CLASSES_OPTION_LONG,optionMap); if (unwrapClassesOption != null) { config.setPackClasses(false); } CommandLineOption portNameOption = loadOption(WSDL2JavaConstants.PORT_NAME_OPTION, WSDL2JavaConstants.PORT_NAME_OPTION_LONG,optionMap); config.setPortName(portNameOption!=null?portNameOption.getOptionValue():null); CommandLineOption serviceNameOption = loadOption(WSDL2JavaConstants.SERVICE_NAME_OPTION, WSDL2JavaConstants.SERVICE_NAME_OPTION_LONG,optionMap); config.setServiceName(serviceNameOption!=null?serviceNameOption.getOptionValue():null); CommandLineOption generateAllOption = loadOption(WSDL2JavaConstants.GENERATE_ALL_OPTION, WSDL2JavaConstants.GENERATE_ALL_OPTION_LONG,optionMap); if (generateAllOption != null) { config.setGenerateAll(true); } //loop through the map and find parameters having the extra prefix. //put them in the property map Iterator keyIterator = optionMap.keySet().iterator(); while (keyIterator.hasNext()) { Object key = keyIterator.next(); CommandLineOption option = (CommandLineOption) optionMap.get(key); if (key.toString().startsWith(WSDL2JavaConstants.EXTRA_OPTIONTYPE_PREFIX)) { //add this to the property map config.getProperties().put(key.toString().replaceFirst(WSDL2JavaConstants.EXTRA_OPTIONTYPE_PREFIX, ""), option.getOptionValue()); } } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6445875e18a154008a4d89a88c69d009c5d07676/CodegenConfigLoader.java/buggy/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodegenConfigLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 15893, 1895, 3352, 743, 1895, 273, 1262, 1895, 12, 2651, 8914, 22, 5852, 2918, 18, 862, 30986, 67, 4211, 67, 7425, 16, 30567, 22, 5852, 2918, 18, 862, 30986, 67, 4211, 67, 7425, 67, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15893, 1895, 3352, 743, 1895, 273, 1262, 1895, 12, 2651, 8914, 22, 5852, 2918, 18, 862, 30986, 67, 4211, 67, 7425, 16, 30567, 22, 5852, 2918, 18, 862, 30986, 67, 4211, 67, 7425, 67, 146...
IWBundle iwb = iwma.getBundle(bundleIdentifier);
IWBundle iwb = iwma.getBundle(bundleIdentifier);
public void main(IWContext iwc){ add(IWDeveloper.getTitleTable(this.getClass())); getParentPage().setBackgroundColor("#FFFFFF"); IWMainApplication iwma = iwc.getApplication(); DropdownMenu bundles = BundlePropertySetter.getRegisteredBundlesDropdown(iwma,BUNDLE_PARAMETER); bundles.keepStatusOnAction(); bundles.setToSubmit(); Form form = new Form(); form.maintainParameter(IWDeveloper.actionParameter); add(form); Table table = new Table(); table.setCellpadding(5); Table selectTable = new Table(3,1); form.add(selectTable); form.add(Text.getBreak()); form.add(Text.getBreak()); form.add(table); selectTable.add(IWDeveloper.getText("Bundle:"),1,1); selectTable.add(bundles,2,1); SubmitButton button1 = new SubmitButton("Go"); selectTable.add(button1,3,1); String bundleIdentifier = iwc.getParameter(BUNDLE_PARAMETER); if(bundleIdentifier!=null){ IWBundle iwb = iwma.getBundle(bundleIdentifier); try{ doBusiness(iwc,iwb); } catch(Exception e){ add("Error: "+e.getClass().getName()+" "+e.getMessage()); e.printStackTrace(); } DropdownMenu typesDrop = new DropdownMenu(this.TYPE_INPUT_NAME); List componentTypes = com.idega.core.data.ICObjectBMPBean.getAvailableComponentTypes(); Iterator iter = componentTypes.iterator(); CheckBox deleteBox = new CheckBox(DELETE_CHECKBOX_NAME); while (iter.hasNext()) { String type = (String)iter.next(); typesDrop.addMenuElement(type); } TextInput classesInput = new TextInput(CLASS_INPUT_NAME); classesInput.setLength(40); int index = 2; table.add(IWDeveloper.getText("ClassName: "),1,1); table.add(IWDeveloper.getText("Type: "),2,1); table.add(IWDeveloper.getText("Remove?"),3,1); List compList = iwb.getComponentKeys(); Iterator compIter = compList.iterator(); while (compIter.hasNext()) { String className = (String)compIter.next(); String type = iwb.getComponentType(className); table.add(getSmallText(className),1,index); table.add(getSmallText(type),2,index); CheckBox rowBox = (CheckBox)deleteBox.clone(); rowBox.setContent(className); table.add(rowBox,3,index); index++; } table.add(classesInput,1,index); table.add(typesDrop,2,index); table.setColumnAlignment(3,"center"); table.add(new SubmitButton("Save","save"),3,index+1); } }
11362 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11362/3ca1d274c003725a3259e54bc06f6d9925e3fd23/BundleComponentManager.java/clean/src/java/com/idega/development/presentation/BundleComponentManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2774, 12, 45, 59, 1042, 25522, 71, 15329, 1377, 527, 12, 45, 59, 28145, 18, 588, 4247, 1388, 12, 2211, 18, 588, 797, 1435, 10019, 1377, 5089, 1964, 7675, 542, 21699, 2932, 7,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2774, 12, 45, 59, 1042, 25522, 71, 15329, 1377, 527, 12, 45, 59, 28145, 18, 588, 4247, 1388, 12, 2211, 18, 588, 797, 1435, 10019, 1377, 5089, 1964, 7675, 542, 21699, 2932, 7,...