rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
List shifts = sp.getITurnoPersistente().readAvailableShiftsForClass(schoolClass); | List shifts = sp.getITurnoPersistente().readAvailableShiftsForClass(schoolClass); | public Object run(InfoClass infoClass) throws FenixServiceException { List infoShifts = null; try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); ISchoolClass schoolClass = (ISchoolClass) sp.getITurmaPersistente().readByOID(SchoolClass.class, infoClass.getIdInternal()); List shifts = sp.getITurnoPersistente().readAvailableShiftsForClass(schoolClass); infoShifts = (List) CollectionUtils.collect(shifts, new Transformer() { public Object transform(Object arg0) { IShift shift = (IShift) arg0; final InfoShift infoShift = InfoShift.newInfoFromDomain(shift); final IExecutionCourse executionCourse = shift.getDisciplinaExecucao(); final InfoExecutionCourse infoExecutionCourse = InfoExecutionCourse.newInfoFromDomain(executionCourse); infoShift.setInfoDisciplinaExecucao(infoExecutionCourse); final Collection lessons = shift.getAssociatedLessons(); final List infoLessons = new ArrayList(lessons.size()); infoShift.setInfoLessons(infoLessons); for (final Iterator iterator2 = lessons.iterator(); iterator2.hasNext(); ) { final ILesson lesson = (ILesson) iterator2.next(); final InfoLesson infoLesson = InfoLesson.newInfoFromDomain(lesson); final IRoomOccupation roomOccupation = lesson.getRoomOccupation(); final InfoRoomOccupation infoRoomOccupation = InfoRoomOccupation.newInfoFromDomain(roomOccupation); infoLesson.setInfoRoomOccupation(infoRoomOccupation); final IRoom room = roomOccupation.getRoom(); final InfoRoom infoRoom = InfoRoom.newInfoFromDomain(room); infoRoomOccupation.setInfoRoom(infoRoom); infoLesson.setInfoSala(infoRoom); final IPeriod period = roomOccupation.getPeriod(); final InfoPeriod infoPeriod = InfoPeriod.newInfoFromDomain(period); infoRoomOccupation.setInfoPeriod(infoPeriod); infoLessons.add(infoLesson); } return infoShift; } }); } catch (ExcepcaoPersistencia ex) { throw new FenixServiceException(ex); } return infoShifts; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/3c26a0aa054ac5b5efee22e16445a0ca8b2d5b2c/ReadAvailableShiftsForClass.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/sop/ReadAvailableShiftsForClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1086,
12,
966,
797,
1123,
797,
13,
1216,
478,
275,
697,
15133,
288,
3639,
987,
1123,
10544,
87,
273,
446,
31,
3639,
775,
288,
5411,
467,
3088,
499,
73,
11906,
73,
1694,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1086,
12,
966,
797,
1123,
797,
13,
1216,
478,
275,
697,
15133,
288,
3639,
987,
1123,
10544,
87,
273,
446,
31,
3639,
775,
288,
5411,
467,
3088,
499,
73,
11906,
73,
1694,
273,... |
} | } | public void refreshJobInfo(JobInfo info) { checkTasks(info); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/80ce01835aadbcfe3f6af16d36f3de62e702d25c/FinishedJobs.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/FinishedJobs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
4460,
2278,
966,
12,
2278,
966,
1123,
13,
288,
7734,
866,
6685,
12,
1376,
1769,
2398,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
4460,
2278,
966,
12,
2278,
966,
1123,
13,
288,
7734,
866,
6685,
12,
1376,
1769,
2398,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
subscriber.receive(message); } | subscriber.receive(message); } | public void publish( Message message ) { subscriber.receive(message); } | 54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/Publisher.java/clean/jmock/examples/publisher/src/org/jmock/examples/website/Publisher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3808,
12,
2350,
883,
262,
288,
202,
202,
26410,
18,
18149,
12,
2150,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3808,
12,
2350,
883,
262,
288,
202,
202,
26410,
18,
18149,
12,
2150,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return tagify("FONT SIZE", "FONT", value); | return tagify("font size", "font", value); | private String jsFunction_fontsize(String value) { return tagify("FONT SIZE", "FONT", value); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/77eca44eb8b8f75e93ca13657944d936869210de/NativeString.java/clean/src/org/mozilla/javascript/NativeString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3828,
2083,
67,
23055,
12,
780,
460,
13,
288,
3639,
327,
1047,
1164,
2932,
5776,
963,
3113,
315,
5776,
3113,
460,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
514,
3828,
2083,
67,
23055,
12,
780,
460,
13,
288,
3639,
327,
1047,
1164,
2932,
5776,
963,
3113,
315,
5776,
3113,
460,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void pickUpTypeFromTypeNode(TypeChecker tc) { X10Type newType = (X10Type) type.type(); if ( li.flags().isFinal()) { Constraint c = Constraint_c.addSelfBinding(C_Local_c.makeSelfVar(li),newType.depClause()); newType = newType.makeVariant(c,newType.typeParameters()); //nli = nli.type(newType); } li.setType(newType); // X10LocalDecl_c result = (X10LocalDecl_c) localInstance(nli); } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/8aeb9b4cf89cdb0b34a0500c1ed743aa4ef8eee3/X10LocalDecl_c.java/clean/x10.compiler/src/polyglot/ext/x10/ast/X10LocalDecl_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6002,
1211,
559,
1265,
559,
907,
12,
559,
8847,
1715,
13,
288,
6862,
202,
60,
2163,
559,
23319,
273,
261,
60,
2163,
559,
13,
618,
18,
723,
5621,
25083,
202,
430,
261,
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,
482,
918,
6002,
1211,
559,
1265,
559,
907,
12,
559,
8847,
1715,
13,
288,
6862,
202,
60,
2163,
559,
23319,
273,
261,
60,
2163,
559,
13,
618,
18,
723,
5621,
25083,
202,
430,
261,
4... | ||
earlier.getNumPoints(), | earlier.getNumPoints() - 1, | public Object merge(Object one, Object two) { LocalSeismogramImpl seis = (LocalSeismogramImpl)one; LocalSeismogramImpl seis2 = (LocalSeismogramImpl)two; MicroSecondTimeRange fullRange = new MicroSecondTimeRange(toMSTR(seis), toMSTR(seis2)); logger.debug("Merging " + toMSTR(seis) + " and " + toMSTR(seis2)+ " into " + fullRange); if(fullRange.equals(toMSTR(seis))) { return seis; } LocalSeismogramImpl earlier = seis; LocalSeismogramImpl later = seis2; if(seis2.getBeginTime().before(seis.getBeginTime())) { earlier = seis2; later = seis; } try { if(seis.is_encoded()) { EncodedData[] earlierED = earlier.get_as_encoded(); EncodedData[] laterED = later.get_as_encoded(); EncodedData[] outED = new EncodedData[earlierED.length + laterED.length]; System.arraycopy(earlierED, 0, outED, 0, earlierED.length); System.arraycopy(laterED, 0, outED, earlierED.length, outED.length); TimeSeriesDataSel td = new TimeSeriesDataSel(); td.encoded_values(outED); return new LocalSeismogramImpl(earlier, td); } int numPoints = seis.getNumPoints() + seis2.getNumPoints(); if(seis.can_convert_to_short()) { short[] outS = new short[numPoints]; System.arraycopy(earlier.get_as_shorts(), 0, outS, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_shorts(), 0, outS, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outS); } else if(seis.can_convert_to_long()) { int[] outI = new int[numPoints]; System.arraycopy(earlier.get_as_longs(), 0, outI, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_longs(), 0, outI, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outI); } else if(seis.can_convert_to_float()) { float[] outF = new float[numPoints]; System.arraycopy(earlier.get_as_floats(), 0, outF, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_floats(), 0, outF, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outF); } else { double[] outD = new double[numPoints]; System.arraycopy(earlier.get_as_doubles(), 0, outD, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_doubles(), 0, outD, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outD); } } catch(FissuresException e) { throw new RuntimeException(e); } } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/d0ef4d5059cfd9b5a66169c1980f5b0abd388445/ReduceTool.java/clean/src/edu/sc/seis/fissuresUtil/time/ReduceTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2691,
12,
921,
1245,
16,
1033,
2795,
13,
288,
5411,
3566,
1761,
6228,
5553,
2828,
695,
291,
273,
261,
2042,
1761,
6228,
5553,
2828,
13,
476,
31,
5411,
3566,
1761,
6228,
5553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
2691,
12,
921,
1245,
16,
1033,
2795,
13,
288,
5411,
3566,
1761,
6228,
5553,
2828,
695,
291,
273,
261,
2042,
1761,
6228,
5553,
2828,
13,
476,
31,
5411,
3566,
1761,
6228,
5553,
... |
System.err.println("[Error] Jarfile + \"" + jarFile.getAbsolutePath() + "\"not found."); | ruby.getRuntime().getErrorStream().println("[Error] Jarfile + \"" + jarFile.getAbsolutePath() + "\"not found."); | public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".jar")) { File jarFile = new File(arg1.getValue()); if (!jarFile.exists()) { jarFile = new File(new File(ruby.getSourceFile()).getParentFile(), arg1.getValue()); if (!jarFile.exists()) { System.err.println("[Error] Jarfile + \"" + jarFile.getAbsolutePath() + "\"not found."); } } if (jarFile.exists()) { try { ClassLoader javaClassLoader = new URLClassLoader(new URL[] { jarFile.toURL() }, ruby.getJavaClassLoader()); ruby.setJavaClassLoader(javaClassLoader); } catch (MalformedURLException murlExcptn) { } } } else { if (!arg1.getValue().endsWith(".rb")) { arg1 = RubyString.m_newString(ruby, arg1.getValue() + ".rb"); } ruby.getRuntime().loadFile(arg1, false); } return ruby.getNil(); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/buggy/org/jruby/core/RbKernel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
921,
312,
67,
6528,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
780,
1501,
21,
13,
288,
3639,
309,
261,
3175,
21,
18,
24805,
7675,
5839,
1190,
2932,
18,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
921,
312,
67,
6528,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
780,
1501,
21,
13,
288,
3639,
309,
261,
3175,
21,
18,
24805,
7675,
5839,
1190,
2932,
18,
11... |
ShortBuffer a = (ShortBuffer) obj; | ShortBuffer other = (ShortBuffer) obj; | public int compareTo (Object obj) { ShortBuffer a = (ShortBuffer) obj; if (a.remaining () != remaining ()) return 1; if (! hasArray () || ! a.hasArray ()) { return 1; } int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) { int t = (int) (get (i1) - a.get (i2)); if (t != 0) { return (int) t; } } return 0; } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/a221385cec60e1ba526d292898aeb99953891407/ShortBuffer.java/buggy/libjava/java/nio/ShortBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9292,
261,
921,
1081,
13,
225,
288,
565,
7925,
1892,
1308,
273,
261,
4897,
1892,
13,
1081,
31,
565,
309,
261,
69,
18,
17956,
1832,
480,
4463,
1832,
13,
1377,
327,
404,
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,
282,
1071,
509,
9292,
261,
921,
1081,
13,
225,
288,
565,
7925,
1892,
1308,
273,
261,
4897,
1892,
13,
1081,
31,
565,
309,
261,
69,
18,
17956,
1832,
480,
4463,
1832,
13,
1377,
327,
404,
31,
... |
WorkflowConfig config = new WorkflowConfig("file", null); | WorkflowConfig config = new WorkflowConfig(null, "file", null); | public void createWorkflow(String name) { WorkflowConfig config = new WorkflowConfig("file", null); config.descriptor = DescriptorFactory.getFactory().createWorkflowDescriptor(); config.descriptor.setName(name); ActionDescriptor initialAction = DescriptorFactory.getFactory().createActionDescriptor(); initialAction.setName(ResourceManager.getString("action.initial.start")); config.descriptor.getInitialActions().add(initialAction); config.descriptor.getMetaAttributes().put("created", (new Date()).toString()); workflows.put(name, config); } | 7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/a6f92c681e0554f65011b731ac571e559f822bcc/Workspace.java/buggy/src/designer/com/opensymphony/workflow/loader/Workspace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
752,
8484,
12,
780,
508,
13,
225,
288,
565,
11363,
809,
642,
273,
394,
11363,
809,
12,
2011,
16,
315,
768,
3113,
446,
1769,
565,
642,
18,
12628,
273,
12823,
1733,
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,
282,
1071,
918,
752,
8484,
12,
780,
508,
13,
225,
288,
565,
11363,
809,
642,
273,
394,
11363,
809,
12,
2011,
16,
315,
768,
3113,
446,
1769,
565,
642,
18,
12628,
273,
12823,
1733,
18,
588,
... |
throw new WrappedException(e); | throw new WrappedException(e.getTargetException()); | Object get(Scriptable scope, String name, Object javaObject, boolean isStatic) { Hashtable ht = isStatic ? staticMembers : members; Object member = ht.get(name); if (!isStatic && member == null) { // Try to get static member from instance (LC3) member = staticMembers.get(name); } if (member == null) { member = this.getExplicitFunction(scope, name, javaObject, isStatic); if (member == null) return Scriptable.NOT_FOUND; } if (member instanceof Scriptable) return member; // why is this here? Object rval; Class type; try { if (member instanceof BeanProperty) { BeanProperty bp = (BeanProperty) member; rval = bp.getter.invoke(javaObject, ScriptRuntime.emptyArgs); type = bp.getter.getReturnType(); } else { Field field = (Field) member; rval = field.get(isStatic ? null : javaObject); type = field.getType(); } } catch (IllegalAccessException accEx) { throw new RuntimeException("unexpected IllegalAccessException "+ "accessing Java field"); } catch (InvocationTargetException e) { throw new WrappedException(e); } // Need to wrap the object before we return it. scope = ScriptableObject.getTopLevelScope(scope); return NativeJavaObject.wrap(scope, rval, type); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/c4a75c372765c9797914b2e2afc14171063ee7ac/JavaMembers.java/clean/js/rhino/src/org/mozilla/javascript/JavaMembers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
336,
12,
3651,
429,
2146,
16,
514,
508,
16,
1033,
2252,
921,
16,
9079,
1250,
16116,
13,
565,
288,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
1033,
3140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
336,
12,
3651,
429,
2146,
16,
514,
508,
16,
1033,
2252,
921,
16,
9079,
1250,
16116,
13,
565,
288,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
1033,
3140,
... |
private void best_first() throws Exception { | private void best_first() throws Exception { | private void best_first() throws Exception { int i,j,classI,count=0,fc,tree_count=0; int evals=0; BitSet best_group, temp_group; int [] stale; double [] best_merit; double merit; boolean z; boolean added; Link2 tl; Hashtable lookup = new Hashtable((int)(200.0*m_numAttributes*1.5)); LinkedList2 bfList = new LinkedList2(); best_merit = new double[1]; best_merit[0] = 0.0; stale = new int[1]; stale[0] = 0; best_group = new BitSet(m_numAttributes); // Add class to initial subset classI = m_theInstances.classIndex(); best_group.set(classI); best_merit[0] = estimateAccuracy(best_group, 1); if (m_debug) System.out.println("Accuracy of initial subset: "+best_merit[0]); // add the initial group to the list bfList.addToList(best_group,best_merit[0]); // add initial subset to the hashtable lookup.put(best_group,""); while (stale[0] < m_maxStale) { added = false; // finished search? if (bfList.size()==0) { stale[0] = m_maxStale; break; } // copy the feature set at the head of the list tl = bfList.getLinkAt(0); temp_group = (BitSet)(tl.getGroup().clone()); // remove the head of the list bfList.removeLinkAt(0); for (i=0;i<m_numAttributes;i++) { // if (search_direction == 1) z = ((i != classI) && (!temp_group.get(i))); if (z) { // set the bit (feature to add/delete) */ temp_group.set(i); /* if this subset has been seen before, then it is already in the list (or has been fully expanded) */ BitSet tt = (BitSet)temp_group.clone(); if (lookup.containsKey(tt) == false) { fc = 0; for (int jj=0;jj<m_numAttributes;jj++) if (tt.get(jj)) fc++; merit = estimateAccuracy(tt, fc); if (m_debug) System.out.println("evaluating: "+printSub(tt)+" "+merit); // is this better than the best? // if (search_direction == 1) z = ((merit - best_merit[0]) > 0.00001); // else // z = ((best_merit[0] - merit) > 0.00001); if (z) { if (m_debug) System.out.println("new best feature set: "+printSub(tt)+ " "+merit); added = true; stale[0] = 0; best_merit[0] = merit; best_group = (BitSet)(temp_group.clone()); } // insert this one in the list and the hash table bfList.addToList(tt, merit); lookup.put(tt,""); count++; } // unset this addition(deletion) temp_group.clear(i); } } /* if we haven't added a new feature subset then full expansion of this node hasn't resulted in anything better */ if (!added) stale[0]++; } // set selected features for (i=0,j=0;i<m_numAttributes;i++) if (best_group.get(i)) j++; m_decisionFeatures = new int[j]; for (i=0,j=0;i<m_numAttributes;i++) if (best_group.get(i)) m_decisionFeatures[j++] = i; } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/f6f62667723170f4030ae82f079e537cd6065be3/DecisionTable.java/clean/classifiers/DecisionTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3796,
67,
3645,
1435,
1216,
1185,
225,
288,
565,
509,
277,
16,
78,
16,
1106,
45,
16,
1883,
33,
20,
16,
7142,
16,
3413,
67,
1883,
33,
20,
31,
565,
509,
22654,
33,
20,
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,
282,
3238,
918,
3796,
67,
3645,
1435,
1216,
1185,
225,
288,
565,
509,
277,
16,
78,
16,
1106,
45,
16,
1883,
33,
20,
16,
7142,
16,
3413,
67,
1883,
33,
20,
31,
565,
509,
22654,
33,
20,
31,
... |
assertEquals("a" + SEP + "f", FilenameUtils.concat("a/", "f/")); | assertEquals("a" + SEP + "f" + SEP, FilenameUtils.concat("a/", "f/")); | public void testConcat() { assertEquals(null, FilenameUtils.concat("", null)); assertEquals(null, FilenameUtils.concat(null, null)); assertEquals(null, FilenameUtils.concat(null, "")); assertEquals(null, FilenameUtils.concat(null, "a")); assertEquals(SEP + "a", FilenameUtils.concat(null, "/a")); assertEquals(null, FilenameUtils.concat("", ":")); // invalid prefix assertEquals(null, FilenameUtils.concat(":", "")); // invalid prefix assertEquals("f", FilenameUtils.concat("", "f/")); assertEquals("f", FilenameUtils.concat("", "f")); assertEquals("a" + SEP + "f", FilenameUtils.concat("a/", "f/")); assertEquals("a" + SEP + "f", FilenameUtils.concat("a", "f")); assertEquals("a" + SEP + "b" + SEP + "f", FilenameUtils.concat("a/b/", "f/")); assertEquals("a" + SEP + "b" + SEP + "f", FilenameUtils.concat("a/b", "f")); assertEquals("a" + SEP + "f", FilenameUtils.concat("a/b/", "../f/")); assertEquals("a" + SEP + "f", FilenameUtils.concat("a/b", "../f")); assertEquals("a" + SEP + "c" + SEP + "g", FilenameUtils.concat("a/b/../c/", "f/../g/")); assertEquals("a" + SEP + "c" + SEP + "g", FilenameUtils.concat("a/b/../c", "f/../g")); assertEquals("a" + SEP + "c.txt" + SEP + "f", FilenameUtils.concat("a/c.txt", "f")); assertEquals(SEP + "f", FilenameUtils.concat("", "/f/")); assertEquals(SEP + "f", FilenameUtils.concat("", "/f")); assertEquals(SEP + "f", FilenameUtils.concat("a/", "/f/")); assertEquals(SEP + "f", FilenameUtils.concat("a", "/f")); } | 49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/b39e430b27a666ec6195d9f77b09b3ae2c21f011/FilenameUtilsTestCase.java/buggy/src/test/org/apache/commons/io/FilenameUtilsTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15113,
1435,
288,
3639,
1815,
8867,
12,
2011,
16,
16671,
1989,
18,
16426,
2932,
3113,
446,
10019,
3639,
1815,
8867,
12,
2011,
16,
16671,
1989,
18,
16426,
12,
2011,
16,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15113,
1435,
288,
3639,
1815,
8867,
12,
2011,
16,
16671,
1989,
18,
16426,
2932,
3113,
446,
10019,
3639,
1815,
8867,
12,
2011,
16,
16671,
1989,
18,
16426,
12,
2011,
16,
44... |
public void testBug714707(FoodMartTestCase test) { // Same issue as bug 715177 -- "children" returns immutable // list, which set operator must make mutable. test.assertAxisReturns("{[Store].[USA].[CA].children, [Store].[USA]}", "[Store].[All Stores].[USA].[CA].[Alameda]" + nl + "[Store].[All Stores].[USA].[CA].[Beverly Hills]" + nl + "[Store].[All Stores].[USA].[CA].[Los Angeles]" + nl + "[Store].[All Stores].[USA].[CA].[San Diego]" + nl + "[Store].[All Stores].[USA].[CA].[San Francisco]" + nl + "[Store].[All Stores].[USA]"); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/21f62ba03046a30a15981d9d7e976a02cca0e50e/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1842,
19865,
27,
3461,
7301,
27,
12,
42,
4773,
49,
485,
4709,
2449,
1842,
13,
288,
9506,
202,
759,
17795,
5672,
487,
7934,
2371,
3600,
29882,
1493,
315,
5906,
6,
1135,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
19865,
27,
3461,
7301,
27,
12,
42,
4773,
49,
485,
4709,
2449,
1842,
13,
288,
9506,
202,
759,
17795,
5672,
487,
7934,
2371,
3600,
29882,
1493,
315,
5906,
6,
1135,
1... | ||
if (name.equals(recordName) && namespace.equals(recordNamespace)) { handleRecordStart(); } | if (name.equals(recordName) && namespace.equals(recordNamespace)) { handleRecordStart(); } | private void processStartElement(boolean copyNamespaceDeclarations) throws IOException, XmlPullParserException { String name = xpp.getName(); String namespace = xpp.getNamespace(); logger.finest("name = " + name); String text = xpp.getText(); if (name.equals(recordName) && namespace.equals(recordNamespace)) { handleRecordStart(); } // allow for repeated idName elements: use the first one we see, for // each recordName // NOTE: idName is namespace-ignorant if (currentId == null && name.equals(idName)) { // pick out the contents and use it for the uri if (xpp.next() != XmlPullParser.TEXT) { throw new XmlPullParserException( "badly formed xml: missing id at " + xpp.getPositionDescription()); } String newId = xpp.getText(); logger.fine("found id " + idName + " = " + newId); // now we can set currentId setCurrentId(newId); // now we know that we'll use this content and id write(text); write(currentId); // advance xpp to the END_ELEMENT - brittle? if (xpp.next() != XmlPullParser.END_TAG) { throw new XmlPullParserException( "badly formed xml: no END_TAG after id text" + xpp.getPositionDescription()); } text = xpp.getText(); logger.finest("END_TAG = " + text); write(text); return; } // if the startId is still defined, and the uri has been found, // we should skip as much of this work as possible // this avoids OutOfMemory errors, too if (skippingRecord) { logger.finest("skipping record"); return; } // this seems to be the only way to handle empty elements: // write it as a end-element, only. // note that attributes are still ok in this case boolean isEmpty = xpp.isEmptyElementTag(); if (isEmpty) { logger.finest("empty element"); return; } if (copyNamespaceDeclarations) { // preserve namespace declarations into this element int stop = xpp.getNamespaceCount(xpp.getDepth()); if (stop > 0) { StringBuffer decl = null; String nsDeclPrefix, nsDeclUri; logger.finer("checking namespace declarations"); for (int i = 0; i < stop; i++) { if (decl == null) { decl = new StringBuffer(); } else { decl.append(" "); } nsDeclPrefix = xpp.getNamespacePrefix(i); nsDeclUri = xpp.getNamespaceUri(i); logger.finest("found namespace declaration " + nsDeclPrefix + " = " + nsDeclUri); decl .append("xmlns" + (nsDeclPrefix == null ? "" : (":" + nsDeclPrefix)) + "=\"" + nsDeclUri + "\""); } // copy the namespace decls to the end of the tag if (decl != null) { logger.finer("copying namespace declarations"); text = text.replaceFirst(">$", decl.toString() + (isEmpty ? "/" : "") + ">"); } } else { logger.finer("no namespace declarations to copy"); } } logger.finer("writing text"); write(text); return; } | 53536 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53536/5c15240adbc7b9288382cd29c6c1930604fed557/Producer.java/clean/src/java/com/marklogic/recordloader/Producer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1207,
1685,
1046,
12,
6494,
1610,
3402,
21408,
13,
1082,
202,
15069,
1860,
16,
5714,
9629,
25746,
288,
202,
202,
780,
508,
273,
619,
11858,
18,
17994,
5621,
202,
202,
780,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1207,
1685,
1046,
12,
6494,
1610,
3402,
21408,
13,
1082,
202,
15069,
1860,
16,
5714,
9629,
25746,
288,
202,
202,
780,
508,
273,
619,
11858,
18,
17994,
5621,
202,
202,
780,... |
this.contentType = "text/css; charset=UTF-8"; | this.contentType = "text/css"; | protected void pseudoResponse( String status, String fullResponse ) { this.fullResponse = StaticEntity.globalStringReplace( fullResponse, "<!--MAFIA_HOST_PORT-->", "127.0.0.1:" + LocalRelayServer.getPort() ); if ( fullResponse.length() == 0 ) this.fullResponse = " "; headers.clear(); headers.add( status ); headers.add( "Date: " + ( new Date() ) ); headers.add( "Server: " + VERSION_NAME ); if ( status.indexOf( "302" ) != -1 ) { headers.add( "Location: " + fullResponse ); this.fullResponse = ""; } else if ( status.indexOf( "200" ) != -1 ) { headers.add( "Content-Length: " + (this.rawByteBuffer == null ? this.fullResponse.length() : this.rawByteBuffer.length) ); this.contentType = null; if ( formURLString.endsWith( ".css" ) ) this.contentType = "text/css; charset=UTF-8"; else if ( formURLString.endsWith( ".js" ) ) this.contentType = "text/javascript; charset=UTF-8"; else if ( formURLString.endsWith( ".php" ) || formURLString.endsWith( ".htm" ) || formURLString.endsWith( ".html" ) ) this.contentType = "text/html; charset=UTF-8"; else if ( formURLString.endsWith( ".txt" ) ) this.contentType = "text/plain; charset=UTF-8"; else if ( formURLString.endsWith( ".gif" ) ) this.contentType = "image/gif"; else if ( formURLString.endsWith( ".png" ) ) this.contentType = "image/png"; else if ( formURLString.endsWith( ".jpg" ) || formURLString.endsWith( ".jpeg" ) ) this.contentType = "image/jpeg"; else if ( formURLString.endsWith( ".ico" ) ) this.contentType = "image/x-icon"; } } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/1716912aa818b8b4917161375267815da5375c76/LocalRelayRequest.java/buggy/src/net/sourceforge/kolmafia/LocalRelayRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
12454,
1064,
12,
514,
1267,
16,
514,
1983,
1064,
262,
202,
95,
202,
202,
2211,
18,
2854,
1064,
273,
10901,
1943,
18,
6347,
780,
5729,
12,
1983,
1064,
16,
3532,
22772,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12454,
1064,
12,
514,
1267,
16,
514,
1983,
1064,
262,
202,
95,
202,
202,
2211,
18,
2854,
1064,
273,
10901,
1943,
18,
6347,
780,
5729,
12,
1983,
1064,
16,
3532,
22772,
55... |
final Ability aFeat = (Ability) e1.next(); if ((aFeat.getVisible() == Ability.VISIBILITY_DEFAULT) || (aFeat.getVisible() == Ability.VISIBILITY_OUTPUT_ONLY)) | if ((feat.getVisible() == Ability.VISIBILITY_DEFAULT) || (feat.getVisible() == Ability.VISIBILITY_OUTPUT_ONLY)) | public List aggregateVisibleFeatList() { final List tempFeatList = new ArrayList(); for (Iterator e1 = aggregateFeatList().iterator(); e1.hasNext();) { final Ability aFeat = (Ability) e1.next(); if ((aFeat.getVisible() == Ability.VISIBILITY_DEFAULT) || (aFeat.getVisible() == Ability.VISIBILITY_OUTPUT_ONLY)) { tempFeatList.add(aFeat); } } return tempFeatList; } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/eb5f93299afbba8e2b27cdc67dfddc016c5d86a9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
7047,
6207,
11667,
682,
1435,
202,
95,
202,
202,
6385,
987,
1906,
11667,
682,
273,
394,
2407,
5621,
202,
202,
1884,
261,
3198,
425,
21,
273,
7047,
11667,
682,
7675,
9838,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
7047,
6207,
11667,
682,
1435,
202,
95,
202,
202,
6385,
987,
1906,
11667,
682,
273,
394,
2407,
5621,
202,
202,
1884,
261,
3198,
425,
21,
273,
7047,
11667,
682,
7675,
9838,
... |
if(code == KeyEvent.VK_ESCAPE) { | if (code == KeyEvent.VK_ESCAPE) { | FindFunction(Main db, Hashtable functionMap, String title, String labelText) { super(db, title, true); this.functionMap = functionMap; this.db = db; cancelButton = new JButton("Cancel"); setButton = new JButton("Select"); cancelButton.addActionListener(this); setButton.addActionListener(this); getRootPane().setDefaultButton(setButton); list = new JList(new DefaultListModel()); DefaultListModel model = (DefaultListModel)list.getModel(); model.clear(); Enumeration e = functionMap.keys(); String[] a = new String[functionMap.size()]; int i = 0; while(e.hasMoreElements()) { a[i++] = e.nextElement().toString(); } java.util.Arrays.sort(a); for(i = 0; i < a.length; i++) { model.addElement(a[i]); } list.setSelectedIndex(0); setButton.setEnabled(a.length > 0); list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); list.addMouseListener(new MouseHandler()); JScrollPane listScroller = new JScrollPane(list); listScroller.setPreferredSize(new Dimension(320, 240)); listScroller.setMinimumSize(new Dimension(250, 80)); listScroller.setAlignmentX(LEFT_ALIGNMENT); //Create a container so that we can add a title around //the scroll pane. Can't add a title directly to the //scroll pane because its background would be white. //Lay out the label and scroll pane from top to button. JPanel listPane = new JPanel(); listPane.setLayout(new BoxLayout(listPane, BoxLayout.Y_AXIS)); JLabel label = new JLabel(labelText); label.setLabelFor(list); listPane.add(label); listPane.add(Box.createRigidArea(new Dimension(0,5))); listPane.add(listScroller); listPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //Lay out the buttons from left to right. JPanel buttonPane = new JPanel(); buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.X_AXIS)); buttonPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10)); buttonPane.add(Box.createHorizontalGlue()); buttonPane.add(cancelButton); buttonPane.add(Box.createRigidArea(new Dimension(10, 0))); buttonPane.add(setButton); //Put everything together, using the content pane's BorderLayout. Container contentPane = getContentPane(); contentPane.add(listPane, BorderLayout.CENTER); contentPane.add(buttonPane, BorderLayout.SOUTH); pack(); addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent ke) { int code = ke.getKeyCode(); if(code == KeyEvent.VK_ESCAPE) { ke.consume(); value = null; setVisible(false); } } }); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4163,
2083,
12,
6376,
1319,
16,
18559,
445,
863,
16,
1171,
514,
2077,
16,
1171,
514,
1433,
1528,
13,
288,
3639,
2240,
12,
1966,
16,
2077,
16,
638,
1769,
3639,
333,
18,
915,
863,
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,
4163,
2083,
12,
6376,
1319,
16,
18559,
445,
863,
16,
1171,
514,
2077,
16,
1171,
514,
1433,
1528,
13,
288,
3639,
2240,
12,
1966,
16,
2077,
16,
638,
1769,
3639,
333,
18,
915,
863,
273,
... |
if(file.inProject(cms.getRequestContext().currentProject())) { | if (cms.isInsideCurrentProject(file)) { | private String getState(CmsObject cms, CmsResource file, CmsXmlLanguageFile lang) throws CmsException { if(file.inProject(cms.getRequestContext().currentProject())) { int state = file.getState(); return lang.getLanguageValue("explorer.state" + state); } return lang.getLanguageValue("explorer.statenip"); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/acc42e5170bf6d7cb434a91d2c4d26e7be8194b1/CmsChown.java/clean/src/com/opencms/workplace/CmsChown.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8997,
12,
4747,
921,
6166,
16,
7630,
585,
16,
16084,
3779,
812,
3303,
13,
202,
15069,
11228,
288,
202,
202,
430,
12,
768,
18,
267,
4109,
12,
6851,
18,
588,
21426,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8997,
12,
4747,
921,
6166,
16,
7630,
585,
16,
16084,
3779,
812,
3303,
13,
202,
15069,
11228,
288,
202,
202,
430,
12,
768,
18,
267,
4109,
12,
6851,
18,
588,
21426,
7675,
... |
public static RubyArray glob(IRubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedError(); }*/ String[] files = new Glob(pattern).getNames(); // new File(".").list(new GlobFilenameFilter(pattern)); return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/8c092e5bd528424763aecdc0db8bb50133807907/RubyDir.java/clean/org/jruby/RubyDir.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
19817,
1076,
4715,
12,
7937,
10340,
921,
10665,
16,
19817,
780,
9670,
13,
288,
759,
9852,
333,
353,
1338,
279,
5264,
7931,
434,
326,
445,
454,
560,
434,
333,
445,
780,
1936,
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,
1071,
760,
19817,
1076,
4715,
12,
7937,
10340,
921,
10665,
16,
19817,
780,
9670,
13,
288,
759,
9852,
333,
353,
1338,
279,
5264,
7931,
434,
326,
445,
454,
560,
434,
333,
445,
780,
1936,
273,
... | ||
if(codeBlock == null){ return; } | public void visitBlockStatement(PsiBlockStatement blockStatement){ super.visitBlockStatement(blockStatement); final PsiElement parent = blockStatement.getParent(); if(!(parent instanceof PsiCodeBlock)){ return; } final PsiCodeBlock codeBlock = blockStatement.getCodeBlock(); if(codeBlock == null){ return; } final PsiJavaToken brace = codeBlock.getLBrace(); if(brace == null){ return; } final PsiCodeBlock parentBlock = (PsiCodeBlock) parent; if(parentBlock.getStatements().length > 1 && containsConflictingDeclarations(codeBlock, parentBlock)){ return; } registerError(brace); final PsiJavaToken rbrace = codeBlock.getRBrace(); if(rbrace != null){ registerError(rbrace); } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/10dfc0821a579a6a0ff949a64d378572f57a4625/UnnecessaryBlockStatementInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/UnnecessaryBlockStatementInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
1768,
3406,
12,
52,
7722,
1768,
3406,
1203,
3406,
15329,
5411,
2240,
18,
11658,
1768,
3406,
12,
2629,
3406,
1769,
5411,
727,
453,
7722,
1046,
982,
273,
1203,
3406,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
1768,
3406,
12,
52,
7722,
1768,
3406,
1203,
3406,
15329,
5411,
2240,
18,
11658,
1768,
3406,
12,
2629,
3406,
1769,
5411,
727,
453,
7722,
1046,
982,
273,
1203,
3406,
18,
58... | |
Debug.output(Debug.IMR | Debug.INFORMATION, _e); | Debug.output(4, _e); | public void run() { Thread.currentThread().setPriority(Thread.MAX_PRIORITY); while( run ) { try { Socket socket = server_socket.accept(); socket.setSoTimeout( timeout ); org.omg.ETF.Connection transport = new ServerIIOPConnection (socket, false); // no SSL GIOPConnection connection = new ServerGIOPConnection( transport.get_server_profile(), transport, request_listener, reply_listener, null, null); receptor_pool.connectionCreated( connection ); } catch (Exception _e) { // when finishing, we do a close() on // server_socket from "outside" and that causes an // exception here. But since we wanted it this // way, we don't display the Exception to avoid // confusing users. if (run) Debug.output(Debug.IMR | Debug.INFORMATION, _e); } } // doing the actual shutdown of the implementation // repository here orb.shutdown(wait); } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/18367b9c8638a766302195ae097901c5637ea11f/ImplementationRepositoryImpl.java/clean/src/org/jacorb/imr/ImplementationRepositoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
3639,
288,
5411,
4884,
18,
2972,
3830,
7675,
542,
8183,
12,
3830,
18,
6694,
67,
19804,
1769,
5411,
1323,
12,
1086,
262,
5411,
288,
7734,
775,
7734,
288,
10792,
8758... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
3639,
288,
5411,
4884,
18,
2972,
3830,
7675,
542,
8183,
12,
3830,
18,
6694,
67,
19804,
1769,
5411,
1323,
12,
1086,
262,
5411,
288,
7734,
775,
7734,
288,
10792,
8758... |
joiner.ConnectGraph (); | joiner.SetupOperator (); | public void ConnectGraph () { // connect the SplitJoin with the Split and the Join if (splitter != null) { ASSERT (splitter != null); splitter.ConnectGraph (); input = splitter.GetIOField ("input", 0); } if (joiner != null) { ASSERT (joiner != null); joiner.ConnectGraph (); Channel outputs [] = joiner.GetIOFields ("output"); ASSERT (outputs != null && outputs.length == 1); output = outputs [0]; ASSERT (output != null); } } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/924ce63d752d04cfc418d7add5f04a16d1e8dcdf/SplitJoin.java/clean/streams/src/streamit/library/SplitJoin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8289,
4137,
1832,
565,
288,
3639,
368,
3077,
326,
5385,
4572,
598,
326,
5385,
471,
326,
4214,
3639,
309,
261,
4939,
387,
480,
446,
13,
3639,
288,
5411,
17289,
11539,
261,
4939,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8289,
4137,
1832,
565,
288,
3639,
368,
3077,
326,
5385,
4572,
598,
326,
5385,
471,
326,
4214,
3639,
309,
261,
4939,
387,
480,
446,
13,
3639,
288,
5411,
17289,
11539,
261,
4939,... |
throws IllegalArgumentException | throws IllegalArgumentException | public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || title.charAt(index) != mnemonicKey) index = -1; underlinedChar = index; } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/90cbdf368c7f78dd1ae107e9c4649d6ff63ac0d6/JTabbedPane.java/clean/libraries/javalib/javax/swing/JTabbedPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23512,
329,
29668,
20918,
1016,
12,
474,
770,
13,
4766,
282,
1216,
2754,
565,
288,
1377,
309,
261,
1615,
411,
300,
21,
747,
2077,
480,
446,
597,
770,
1545,
2077,
18,
2469,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23512,
329,
29668,
20918,
1016,
12,
474,
770,
13,
4766,
282,
1216,
2754,
565,
288,
1377,
309,
261,
1615,
411,
300,
21,
747,
2077,
480,
446,
597,
770,
1545,
2077,
18,
2469,
10... |
controller.updateDateLastModified(f.lastModified()); | controller.updateDates(f.lastModified(), CmsResource.DATE_EXPIRED_DEFAULT); | private synchronized String updateJsp(CmsResource resource, CmsFlexController controller, Set updates) throws IOException, ServletException { CmsObject cms = controller.getCmsObject(); // can not use save/restore methods since this is called more then once by recursion String oldSiteRoot = cms.getRequestContext().getSiteRoot(); try { // all JSP must be exported with full "root path" site root information cms.getRequestContext().setSiteRoot(""); String jspVfsName = cms.readAbsolutePath(resource); String extension; boolean isHardInclude; if ((resource.getLoaderId() == CmsJspLoader.C_RESOURCE_LOADER_ID) && (! jspVfsName.endsWith(C_JSP_EXTENSION))) { // this is a true JSP resource that does not end with ".jsp" extension = C_JSP_EXTENSION; isHardInclude = false; } else { // not a JSP resource or already ends with ".jsp" extension = ""; // if this is a JSP we don't treat it as hard include isHardInclude = (resource.getLoaderId() != CmsJspLoader.C_RESOURCE_LOADER_ID); } String jspTargetName = getJspUri(m_jspWebAppRepository, jspVfsName + extension, controller.getCurrentRequest().isOnline()); // check if page was already updated if (updates.contains(jspTargetName)) { // no need to write the already included file to the real FS more then once return jspTargetName; } updates.add(jspTargetName); String jspPath = getJspUri(m_jspRepository, jspVfsName + extension, controller.getCurrentRequest().isOnline()); File d = new File(jspPath).getParentFile(); if ((d == null) || (d.exists() && !(d.isDirectory() && d.canRead()))) { if (OpenCms.getLog(this).isErrorEnabled()) { OpenCms.getLog(this).error("Could not access directory for " + jspPath); } throw new ServletException("JspLoader: Could not access directory for " + jspPath); } if (!d.exists()) { // create directory structure d.mkdirs(); } // check if the JSP muse be updated boolean mustUpdate = false; File f = new File(jspPath); if (!f.exists()) { // file does not exist in real FS mustUpdate = true; } else if (f.lastModified() <= resource.getDateLastModified()) { // file in real FS is older then file in VFS mustUpdate = true; } else if (controller.getCurrentRequest().isDoRecompile()) { // recompile is forced with parameter mustUpdate = true; } if (mustUpdate) { if (OpenCms.getLog(this).isDebugEnabled()) { OpenCms.getLog(this).debug("JspLoader: Writing JSP file '" + jspTargetName + "'"); } byte[] contents; String encoding; try { contents = CmsFile.upgrade(resource, cms).getContents(); // check the "content-encoding" property for the JSP encoding = cms.readPropertyObject( jspVfsName, I_CmsConstants.C_PROPERTY_CONTENT_ENCODING, false).getValue(C_DEFAULT_JSP_ENCODING); encoding = encoding.trim().toUpperCase(); } catch (CmsException e) { controller.setThrowable(e, jspVfsName); throw new ServletException("JspLoader: Could not access JSP file '" + jspVfsName + "'", e); } try { // parse the JSP and modify OpenCms critical directives contents = parseJsp(contents, encoding, controller, updates, isHardInclude); // write the parsed JSP content to the real FS FileOutputStream fs = new FileOutputStream(f); fs.write(contents); fs.close(); contents = null; if (OpenCms.getLog(this).isInfoEnabled()) { OpenCms.getLog(this).info( "Updated JSP file \"" + jspTargetName + "\" for resource \"" + cms.readAbsolutePath(resource) + "\""); } } catch (FileNotFoundException e) { throw new ServletException("JspLoader: Could not write to file '" + f.getName() + "'\n" + e, e); } } // update "last modified" date on controller controller.updateDateLastModified(f.lastModified()); return jspTargetName; } finally { // restore the site root of the request context cms.getRequestContext().setSiteRoot(oldSiteRoot); } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a5712925b431d3f9ac63f38c0d2f438140749c08/CmsJspLoader.java/buggy/src/org/opencms/loader/CmsJspLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
514,
1089,
21796,
12,
4747,
1420,
1058,
16,
2149,
19667,
2933,
2596,
16,
1000,
4533,
13,
565,
1216,
1860,
16,
16517,
288,
3639,
14371,
6166,
273,
2596,
18,
588,
4747,
921,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
514,
1089,
21796,
12,
4747,
1420,
1058,
16,
2149,
19667,
2933,
2596,
16,
1000,
4533,
13,
565,
1216,
1860,
16,
16517,
288,
3639,
14371,
6166,
273,
2596,
18,
588,
4747,
921,
562... |
if (mDelegate != null) { dest.setIsEnumType(mDelegate.isEnum(src)); } | if (mDelegate != null) dest.setIsEnumType(mDelegate.isEnum(src)); | public void populate(MClass dest) { if (dest == null) throw new IllegalArgumentException("null dest"); assertInitialized(); ClassDoc src = (ClassDoc)dest.getArtifact(); if (src == null) throw new IllegalStateException("null artifact"); dest.setModifiers(src.modifierSpecifier()); dest.setIsInterface(src.isInterface()); if (mDelegate != null) { dest.setIsEnumType(mDelegate.isEnum(src)); } // set the superclass ClassDoc s = src.superclass(); if (s != null) dest.setSuperclass(getFdFor(s)); // set the interfaces ClassDoc[] ints = src.interfaces(); for(int i=0; i<ints.length; i++) { dest.addInterface(getFdFor(ints[i])); } // add the fields FieldDoc[] fields = src.fields(); for(int i=0; i<fields.length; i++) populate(dest.addNewField(),fields[i]); // add the constructors ConstructorDoc[] ctors = src.constructors(); for(int i=0; i<ctors.length; i++) populate(dest.addNewConstructor(),ctors[i]); // add the methods MethodDoc[] methods = src.methods(); for(int i=0; i<methods.length; i++) populate(dest.addNewMethod(),methods[i]); // add the annotations addAnnotations(dest, src); // add the source position addSourcePosition(dest,src); // add any inner classes ClassDoc[] inners = src.innerClasses(); if (inners != null) { for(int i=0; i<inners.length; i++) { MClass inner = dest.addNewInnerClass(inners[i].typeName()); inner.setArtifact(inners[i]); populate(inner); } } } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/9a5b713770efaeb0cfa993f301a29ab50620bbd2/JavadocClassBuilder.java/clean/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/javadoc/JavadocClassBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
6490,
12,
49,
797,
1570,
13,
288,
565,
309,
261,
10488,
422,
446,
13,
604,
394,
2754,
2932,
2011,
1570,
8863,
565,
1815,
11459,
5621,
565,
27785,
1705,
273,
261,
797,
1759,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
12,
49,
797,
1570,
13,
288,
565,
309,
261,
10488,
422,
446,
13,
604,
394,
2754,
2932,
2011,
1570,
8863,
565,
1815,
11459,
5621,
565,
27785,
1705,
273,
261,
797,
1759,
1... |
public org.quickfix.field.LegIssueDate getLegIssueDate() throws FieldNotFound { org.quickfix.field.LegIssueDate value = new org.quickfix.field.LegIssueDate(); | public quickfix.field.LegIssueDate getLegIssueDate() throws FieldNotFound { quickfix.field.LegIssueDate value = new quickfix.field.LegIssueDate(); | public org.quickfix.field.LegIssueDate getLegIssueDate() throws FieldNotFound { org.quickfix.field.LegIssueDate value = new org.quickfix.field.LegIssueDate(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix44/ExecutionReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
12956,
1626,
336,
8329,
12956,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
12956,
1626,
460,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
12956,
1626,
336,
8329,
12956,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
12956,
1626,
460,
273,
394... |
return getViewSize(); | return Integer.MAX_VALUE; | protected IModel initModel() { return new DetachableModel() { protected void onAttach() { setObject(new AbstractList() { public Object get(final int index) { return new Integer(index); } public int size() { return getViewSize(); } }); } protected void onDetach() { setObject(null); } }; } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/f6b608c74e2e14b1b5d6444dc0c541dc33818b67/PageableListViewNavigation.java/clean/wicket/src/java/wicket/markup/html/list/PageableListViewNavigation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
1488,
1208,
1488,
1435,
202,
95,
202,
202,
2463,
394,
17867,
429,
1488,
1435,
202,
202,
95,
1082,
202,
1117,
918,
603,
4761,
1435,
1082,
202,
95,
9506,
202,
542,
921,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
1488,
1208,
1488,
1435,
202,
95,
202,
202,
2463,
394,
17867,
429,
1488,
1435,
202,
202,
95,
1082,
202,
1117,
918,
603,
4761,
1435,
1082,
202,
95,
9506,
202,
542,
921,
12... |
data.setCommand(SampleRawActuatorData.SET_VALUES_OFFERED); data.setValuesOffered(hs); blackboard.publishChange(data); valuesOfferedUpdated = true; if (log.isDebugEnabled()) log.debug(data + " changed."); | if (!hs.equals(data.getValuesOffered())) { data.setCommand(SampleRawActuatorData.SET_VALUES_OFFERED); data.setValuesOffered(hs); blackboard.publishChange(data); valuesOfferedUpdated = true; if (log.isDebugEnabled()) log.debug(data + " changed."); } | public void doGet(HttpServletRequest request, HttpServletResponse response) { int refreshRate = 10000; String refreshError = null; boolean sensorDataUpdated = false; boolean valuesOfferedUpdated = false; boolean actionValueUpdated = false; boolean completionCodeUpdated = false; int command = -1; if (request != null) { String parm = request.getParameter("REFRESH"); if (parm != null) { try { int r = Integer.parseInt(parm); if (r < 1000) { refreshRate = 1000; } else { refreshRate = r; } } catch (NumberFormatException e) { refreshError = "Could not set refresh rate to " + parm + ". NumberFormatException occurred."; } } String val = request.getParameter("NEWVALUE"); if (val != null) { //the user updated the value blackboard.openTransaction(); Iterator iter = rawSensorDataSub.getCollection().iterator(); while (iter.hasNext()) { SampleRawSensorData data = (SampleRawSensorData)iter.next(); if (data != null) { data.setValue(val); blackboard.publishChange(data); sensorDataUpdated = true; if (log.isDebugEnabled()) log.debug(sensorData + " changed."); break; // there's only one SampleRawSensorData object } } blackboard.closeTransaction(); } String[] valuesOffered = request.getParameterValues("VALUESOFFERED"); if (valuesOffered != null && valuesOffered.length > 0) { //the user updated valuesOffered HashSet hs = new HashSet(); for (int i=0; i<valuesOffered.length; i++) { hs.add(valuesOffered[i]); } blackboard.openTransaction(); Iterator iter = rawActuatorDataSub.getCollection().iterator(); while (iter.hasNext()) { SampleRawActuatorData data = (SampleRawActuatorData)iter.next(); if (data != null) { data.setCommand(SampleRawActuatorData.SET_VALUES_OFFERED); data.setValuesOffered(hs); blackboard.publishChange(data); valuesOfferedUpdated = true; if (log.isDebugEnabled()) log.debug(data + " changed."); break; // there's only one SampleRawActuatorData object } } blackboard.closeTransaction(); } String actionValue = request.getParameter("START"); if (actionValue != null) { //the user updated the value blackboard.openTransaction(); Iterator iter = rawActuatorDataSub.getCollection().iterator(); while (iter.hasNext()) { SampleRawActuatorData data = (SampleRawActuatorData)iter.next(); if (data != null) { data.setCommand(SampleRawActuatorData.START); data.setActionValue(actionValue); blackboard.publishChange(data); actionValueUpdated = true; if (log.isDebugEnabled()) log.debug(data + " changed."); break; // there's only one SampleRawActuatorData object } } blackboard.closeTransaction(); } String code = request.getParameter("STOP"); if (code != null) { //the user updated the value blackboard.openTransaction(); Iterator iter = rawActuatorDataSub.getCollection().iterator(); while (iter.hasNext()) { SampleRawActuatorData data = (SampleRawActuatorData)iter.next(); if (data != null) { data.setCommand(SampleRawActuatorData.STOP); data.setCompletionCode(code); blackboard.publishChange(data); completionCodeUpdated = true; if (log.isDebugEnabled()) log.debug(data + " changed."); break; // there's only one SampleRawActuatorData object } } blackboard.closeTransaction(); } } response.setContentType("text/html"); try { PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<META HTTP-EQUIV=\"PRAGMA\" CONTENT=\"NO-CACHE\">"); out.println("<script type=\"text/javascript\">"); out.println("function refreshPage(){"); out.println(" var szURL = \"?REFRESH="+refreshRate+" \";"); out.println(" self.location.replace(szURL);"); out.println("}</script>"); out.println("<head></head><body onload=\"setTimeout('refreshPage()', " +refreshRate+");\">"); out.println("<h2>Sample Defense Servlet</h2>"); out.println("<p>Will refresh every " + (refreshRate/1000) + " seconds. "); out.println("You can change this rate here: (in milliseconds)"); out.print("<form clsname=\"myForm\" method=\"get\" >" ); out.println("Refresh Rate: <input type=text name=REFRESH value=\""+refreshRate+"\" size=7 >"); out.println("<input type=submit name=\"Submit\" value=\"Change\" size=10 >"); out.println("</form>"); if (refreshError != null) { out.print("<b><font color=\"Red\">"+ refreshError + "</font></b>"); } out.println("<hr>"); out.println("<h3>Sample Diagnosis</h3>"); Iterator iter = rawSensorDataSub.getCollection().iterator(); while (iter.hasNext()) { SampleRawSensorData data = (SampleRawSensorData)iter.next(); if (data != null) { out.println("<p><b>AssetName: </b>"+data.getAssetName()); String[] vals = (String[])data.getPossibleValues().toArray(new String[0]); out.print("<form clsname=\"SENSOR\" method=\"get\" >" ); out.print("<b>Possible Values: </b><select name=\"NEWVALUE\" size=3>"); out.print("Value: <input type=text name=NEWVALUE value=\""+data.getValue()+"\" size=10 >"); out.print("<p><b>Value: </b>"); for (int i=0; i < vals.length; i++) { String str = vals[i]; out.println("<option value=\"" + str +"\" UNSELECTED />" + str); } out.print("</select>"); out.print("<input type=submit name=\"Submit\" value=\"Set Sensor Value\" size=16 "); if (sensorDataUpdated) { out.println("<b><font color=\"Blue\"> Sensor Value updated.</font></b>"); sensorDataUpdated = false; } out.println("<input type=hidden name=\"REFRESH\" value=\""+refreshRate+"\" >"); out.println("</form>"); out.println("<p><b>Current Sensor Value: </b>"+data.getValue()); break; // there should be at most one SampleRawSensorData object } } out.println("<hr>"); out.println("<h3>Sample Action</h3>"); iter = rawActuatorDataSub.getCollection().iterator(); while (iter.hasNext()) { SampleRawActuatorData data = (SampleRawActuatorData)iter.next(); if (data != null) { out.println("<p><b>AssetName: </b>"+data.getAssetName()); // display possibleValues, select valuesOffered out.print("<form clsname=\"SETVALUESOFFERED\" method=\"get\" >" ); String[] vals = (String[])data.getPossibleValues().toArray(new String[0]); out.print("<b>Possible Values: </b><select multiple name=\"VALUESOFFERED\" size=3>"); for (int i=0; i < vals.length; i++) { String str = vals[i]; out.println("<option value=\"" + str +"\" UNSELECTED />" + str); } out.print("</select>"); out.print("<input type=submit name=\"Submit\" value=\"Set Values Offered\" size=17 >"); out.println("<input type=hidden name=\"REFRESH\" value=\""+refreshRate+"\" >"); out.println("</form>"); // display valuesOffered out.print("<form clsname=\"VALUESOFFERED\" method=\"get\" >" ); vals = (String[])data.getValuesOffered().toArray(new String[0]); out.print("<b>ValuesOffered: </b><select name=\"VALUESOFFERED\" size=3>"); for (int i=0; i < vals.length; i++) { String str = vals[i]; out.println("<option value=\"" + str +"\" UNSELECTED />" + str); } out.print("</select>"); if (valuesOfferedUpdated) { out.println("<b><font color=\"Blue\">Values Offered updated.</font></b>"); valuesOfferedUpdated = false; } out.println("</form>"); // display permittedValues, select actionValue and start out.print("<form clsname=\"START\" method=\"get\" >" ); vals = (String[])data.getPermittedValues().toArray(new String[0]); out.print("<b>Permitted Values: </b><select name=\"START\" size=3>"); for (int i=0; i < vals.length; i++) { String str = vals[i]; out.println("<option value=\"" + str +"\" UNSELECTED />" + str); } out.print("</select>"); out.print("<input type=submit name=\"Submit\" value=\"Start\" size=17>"); out.println("<input type=hidden name=\"REFRESH\" value=\""+refreshRate+"\" >"); if (actionValueUpdated) { out.println("<b><font color=\"Blue\">Action "+data.getActionValue()+" Started.</font></b>"); actionValueUpdated = false; } out.println("</form>"); // display completionCodes, select completionCode and stop out.print("<form clsname=\"STOP\" method=\"get\" >" ); out.print("<b>Completion Codes: </b><select name=\"STOP\" size=3>"); Enumeration codes = codeTbl.keys(); while (codes.hasMoreElements()) { String code = (String)codes.nextElement(); out.println("<option value=\"" + code + "\" UNSELECTED />" + code); } out.print("</select>"); out.print("<input type=submit name=\"Submit\" value=\"Stop\" size=17>"); out.println("<input type=hidden name=\"REFRESH\" value=\""+refreshRate+"\" >"); if (completionCodeUpdated) { out.println("<b><font color=\"Blue\">Action "+data.getCompletionCode()+".</font></b>"); completionCodeUpdated = false; } out.println("</form>"); out.println("<p><b>Current Action: </b>"+data.getActionValue()); out.println("<p><b>Current CompletionCode: </b>"+data.getCompletionCode()); break; // there should be at most one SampleRawActuatorData object } } out.println("<hr>"); out.println("</html>"); out.close(); } catch (IOException e) { log.error("Exception writing servlet response",e); } } | 11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/3d9d01593dde676f3ad613abb3ce7518fbcab598/SampleServlet.java/clean/Coordinator/src/org/cougaar/coordinator/examples/SampleDefense/SampleServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
23611,
12,
2940,
18572,
590,
16,
12446,
766,
13,
288,
2398,
202,
565,
509,
4460,
4727,
273,
12619,
31,
202,
565,
514,
4460,
668,
273,
446,
31,
202,
565,
1250,
10583,
751,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23611,
12,
2940,
18572,
590,
16,
12446,
766,
13,
288,
2398,
202,
565,
509,
4460,
4727,
273,
12619,
31,
202,
565,
514,
4460,
668,
273,
446,
31,
202,
565,
1250,
10583,
751,... |
private static void createEquivMap() { EQUIV_MAP = new TreeMap(); // try leaving all ids as valid // Set valid = getValidIDs(); ArrayList list = new ArrayList(); // reuse this below for (int i=0; i<ZoneMetaData.EQUIV.length; ++i) { String[] z = ZoneMetaData.EQUIV[i]; list.clear(); for (int j=0; j<z.length; ++j) {// if (valid.contains(z[j])) { list.add(z[j]);// } } if (list.size() > 1) { String[] a = (String[]) list.toArray(EMPTY); for (int j=0; j<a.length; ++j) { EQUIV_MAP.put(a[j], a); } } } } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/f64d2aa86c7e6c660f4950de6b9c0917ab3ee387/ZoneMeta.java/buggy/icu4j/src/com/ibm/icu/impl/ZoneMeta.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
752,
13142,
427,
863,
1435,
288,
3639,
512,
3500,
8188,
67,
8352,
273,
394,
16381,
5621,
3639,
368,
775,
15086,
777,
3258,
487,
923,
3639,
368,
1000,
923,
273,
22574,
5103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
13142,
427,
863,
1435,
288,
3639,
512,
3500,
8188,
67,
8352,
273,
394,
16381,
5621,
3639,
368,
775,
15086,
777,
3258,
487,
923,
3639,
368,
1000,
923,
273,
22574,
5103... | ||
String str = cu.getSource(); String completeBehind = "foo"; int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); cu.codeComplete(cursorLocation, requestor); assertEquals( "element:foo0 completion:public void foo0() relevance:" + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_STATIC_OVERIDE+ R_NON_RESTRICTED), | assertResults( "foo[POTENTIAL_METHOD_DECLARATION]{foo, LCompletionStaticMethodDeclaration2$Inner1;, ()V, foo, null, " + (R_DEFAULT + R_INTERESTING + R_NON_RESTRICTED) + "}\n" + "foo0[METHOD_DECLARATION]{public void foo0(), LTypeWithAMethodAndAStaticMethod;, ()V, foo0, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_STATIC_OVERIDE+ R_NON_RESTRICTED) + "}", | public void testCompletionStaticMethodDeclaration2() throws JavaModelException { CompletionTestsRequestor requestor = new CompletionTestsRequestor(); ICompilationUnit cu= getCompilationUnit("Completion", "src", "", "CompletionStaticMethodDeclaration2.java"); String str = cu.getSource(); String completeBehind = "foo"; int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); cu.codeComplete(cursorLocation, requestor); assertEquals( "element:foo0 completion:public void foo0() relevance:" + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_STATIC_OVERIDE+ R_NON_RESTRICTED), requestor.getResults());} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/f13a740e3b814a194962fd0ef85df91efde745be/CompletionTests.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/CompletionTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
11238,
5788,
1305,
6094,
22,
1435,
1216,
5110,
1488,
503,
288,
202,
11238,
4709,
8943,
280,
590,
280,
273,
394,
20735,
4709,
8943,
280,
5621,
202,
45,
19184,
2802,
15985,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
11238,
5788,
1305,
6094,
22,
1435,
1216,
5110,
1488,
503,
288,
202,
11238,
4709,
8943,
280,
590,
280,
273,
394,
20735,
4709,
8943,
280,
5621,
202,
45,
19184,
2802,
15985,
33,
... |
assertEquals(pp.toLong(),-37); | assertEquals(pp.toLong(),-35); | public void testLongValues() throws Exception { Perms pp = new Perms(); assertEquals(pp.toLong(),-1); pp.revoke(GROUP, WRITE); pp.revoke(WORLD, WRITE); assertEquals(pp.toLong(),-37); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ceddf537b0e23903b744a7152b96e277348680c1/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3708,
1972,
1435,
1216,
1185,
288,
202,
202,
27256,
8228,
273,
394,
453,
5044,
5621,
202,
202,
11231,
8867,
12,
11858,
18,
869,
3708,
9334,
17,
21,
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,
918,
1842,
3708,
1972,
1435,
1216,
1185,
288,
202,
202,
27256,
8228,
273,
394,
453,
5044,
5621,
202,
202,
11231,
8867,
12,
11858,
18,
869,
3708,
9334,
17,
21,
1769,
202,
202,
... |
MylarTasklistPlugin.getTaskListManager().activateTask(task); | run(TaskListView.getDefault().getSelectedTask()); | public void run() { MylarPlugin.getContextManager().actionObserved(this, Boolean.TRUE.toString()); MylarTasklistPlugin.getTaskListManager().activateTask(task); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3de551576cd45b220ad7744a1ad0804a812b93d4/TaskActivateAction.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/TaskActivateAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
1082,
202,
12062,
7901,
3773,
18,
29120,
1318,
7675,
1128,
9013,
2155,
12,
2211,
16,
3411,
18,
18724,
18,
10492,
10663,
202,
202,
12062,
7901,
2174,
1098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
1082,
202,
12062,
7901,
3773,
18,
29120,
1318,
7675,
1128,
9013,
2155,
12,
2211,
16,
3411,
18,
18724,
18,
10492,
10663,
202,
202,
12062,
7901,
2174,
1098,
... |
++numberOfErrors; System.out.println("Error : " + test); System.out.println("\tReason : " + t); System.out.println("\tStack trace : "); t.printStackTrace(System.out); | public void addError(Test test, Throwable t) { ++numberOfErrors; System.out.println("Error : " + test); System.out.println("\tReason : " + t); System.out.println("\tStack trace : "); t.printStackTrace(System.out); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d45de32ff5fcec052d8908b93f9c7324897b3185/AutomatedIntegrationSuite.java/buggy/core/org.eclipse.cdt.ui.tests/suite/org/eclipse/cdt/core/suite/AutomatedIntegrationSuite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9501,
12,
4709,
1842,
16,
4206,
268,
13,
288,
202,
202,
9904,
2696,
951,
4229,
31,
202,
202,
3163,
18,
659,
18,
8222,
2932,
668,
294,
315,
397,
1842,
1769,
202,
202,
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,
482,
918,
9501,
12,
4709,
1842,
16,
4206,
268,
13,
288,
202,
202,
9904,
2696,
951,
4229,
31,
202,
202,
3163,
18,
659,
18,
8222,
2932,
668,
294,
315,
397,
1842,
1769,
202,
202,
31... | |
throw new EJBException("Cannot lookup Bid: " +e+"<br>"); | throw new RemoteException("Cannot lookup Bid: " +e+"<br>"); | public String listBids(Integer userId, String username, String password, ItemHome iHome, QueryHome qHome) { Enumeration bidList=null; Query q; BidHome bidHome; Bid bid; Item item; float price; String name; String html; // Get the list of the user's last bids try { q = qHome.create(); bidList = q.getUserBids(userId).elements(); } catch (Exception e) { throw new EJBException("Exception getting bids list: " +e+"<br>"); } if ((bidList == null) || (!bidList.hasMoreElements())) { html = printHTMLHighlighted("<h3>You didn't put any bid.</h3>"); return html; } // Lookup bid home interface try { bidHome = (BidHome)PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/Bid"), BidHome.class); } catch (Exception e) { throw new EJBException("Cannot lookup Bid: " +e+"<br>"); } html = printUserBidsHeader(); while (bidList.hasMoreElements()) { // Get the amount of the last bids try { bid = bidHome.findByPrimaryKey((BidPK)bidList.nextElement()); } catch (Exception e) { throw new EJBException("Exception getting bid: " + e +"<br>"); } // Get the name of the items try { item = iHome.findByPrimaryKey(new ItemPK(bid.getItemId())); html = html.concat(printItemUserHasBidOn(bid, item, username, password)); } catch (Exception e) { throw new EJBException("Exception getting item: " + e +"<br>"); } // display information about user's bids } html = html.concat(printItemFooter()); return html; } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/69c37257a1581e015b5a8a01582a0f0d4a10936c/SB_AboutMeBean.java/buggy/EJB_Session_facade/edu/rice/rubis/beans/SB_AboutMeBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
666,
38,
2232,
12,
4522,
6249,
16,
514,
2718,
16,
514,
2201,
16,
4342,
8684,
277,
8684,
16,
2770,
8684,
1043,
8684,
13,
282,
288,
565,
13864,
9949,
682,
33,
2011,
31,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
666,
38,
2232,
12,
4522,
6249,
16,
514,
2718,
16,
514,
2201,
16,
4342,
8684,
277,
8684,
16,
2770,
8684,
1043,
8684,
13,
282,
288,
565,
13864,
9949,
682,
33,
2011,
31,
565,
... |
if (file.endsWith(".source") || file.endsWith(".SOURCE")) { | if (file.endsWith(".java") || file.endsWith(".JAVA")) { | protected void scan( File dir, String[] files, Vector classes, Vector sources, Vector resources) { for (int i = 0; i < files.length; i++) { String file = (new File(dir, files[i])).getAbsolutePath(); if (file.endsWith(".source") || file.endsWith(".SOURCE")) { sources.addElement(file); } else if (file.endsWith(".class") || file.endsWith(".CLASS")) { classes.addElement(file); } else { resources.addElement(file); } } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/590ea894dd688b963e1284c597ed1a8c0a0c9b0e/VAJImport.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJImport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4135,
12,
202,
202,
812,
1577,
16,
3196,
202,
780,
8526,
1390,
16,
3196,
202,
5018,
3318,
16,
3196,
202,
5018,
5550,
16,
3196,
202,
5018,
2703,
13,
288,
202,
202,
1884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4135,
12,
202,
202,
812,
1577,
16,
3196,
202,
780,
8526,
1390,
16,
3196,
202,
5018,
3318,
16,
3196,
202,
5018,
5550,
16,
3196,
202,
5018,
2703,
13,
288,
202,
202,
1884,
... |
ArrayList link = new ArrayList(); | LinkedHashSet link = new LinkedHashSet(); | public void buildAdjacency(Vertex [] vertices, double minAngle) { // 1. For each vertex, build the list of triangles // connected to this vertex. logger.debug("Build the list of triangles connected to each vertex"); HashMap tVertList = new HashMap(vertices.length); for (int i = 0; i < vertices.length; i++) tVertList.put(vertices[i], new ArrayList(10)); for (Iterator it = triangleList.iterator(); it.hasNext(); ) { Triangle t = (Triangle) it.next(); for (int i = 0; i < 3; i++) { ArrayList list = (ArrayList) tVertList.get(t.vertex[i]); list.add(t); } } // 2. For each pair of vertices, count adjacent triangles. // If there is only one adjacent triangle, this edge // is tagged as a boundary. // If there are 2 adjacent triangles, they are connected // together. If there are more than 2 adjacent triangles, // this edge is non manifold. logger.debug("Connect triangles"); for (int i = 0; i < vertices.length; i++) checkNeighbours(vertices[i], tVertList); OTriangle ot = new OTriangle(); OTriangle sym = new OTriangle(); ArrayList newTri = new ArrayList(); for (Iterator it = triangleList.iterator(); it.hasNext(); ) { Triangle t = (Triangle) it.next(); ot.bind(t); for (int i = 0; i < 3; i++) { ot.nextOTri(); if (ot.getAdj() == null) { ot.setAttributes(OTriangle.BOUNDARY); Triangle adj = new Triangle(Vertex.outer, ot.destination(), ot.origin()); newTri.add(adj); adj.setOuter(); sym.bind(adj); sym.setAttributes(OTriangle.BOUNDARY); ot.glue(sym); } } } // 3. Find the list of vertices which are on mesh boundary logger.debug("Build the list of boundary nodes"); HashSet bndNodes = new HashSet(); maxLabel = 0; boolean [] found = new boolean[4]; for (Iterator it = triangleList.iterator(); it.hasNext(); ) { Triangle t = (Triangle) it.next(); ot.bind(t); for (int i = 0; i < found.length; i++) found[i] = false; for (int i = 0; i < 3; i++) { ot.nextOTri(); if (ot.hasAttributes(OTriangle.BOUNDARY)) { found[i] = true; found[i+1] = true; } } found[0] |= found[3]; for (int i = 0; i < 3; i++) { ot.nextOTri(); if (found[i]) { bndNodes.add(ot.origin()); maxLabel = Math.max(maxLabel, ot.origin().getRef()); } } } // 4. Build links for non-manifold vertices logger.debug("Compute links for non-manifold vertices"); Vertex [] v = new Vertex[2]; for (Iterator it = triangleList.iterator(); it.hasNext(); ) { Triangle t = (Triangle) it.next(); ot.bind(t); for (int i = 0; i < 3; i++) { ot.nextOTri(); if (ot.hasAttributes(OTriangle.NONMANIFOLD)) { v[0] = ot.origin(); v[1] = ot.destination(); for (int j = 0; j < 2; j++) { if (v[j].getLink() instanceof Triangle) { ArrayList link = new ArrayList(); link.add(v[j].getLink()); v[j].setLink(link); } } Triangle first = ot.tri; do { ot.symOTri(); assert ot.hasAttributes(OTriangle.NONMANIFOLD); for (int j = 0; j < 2; j++) { ArrayList link = (ArrayList) v[j].getLink(); link.add(ot.tri); } } while (ot.tri != first); } } found[0] |= found[3]; for (int i = 0; i < 3; i++) { ot.nextOTri(); if (found[i]) { bndNodes.add(ot.origin()); maxLabel = Math.max(maxLabel, ot.origin().getRef()); } } } // Replace ArrayList by Triangle[] int nrNM = 0; int nrFE = 0; for (Iterator it = triangleList.iterator(); it.hasNext(); ) { Triangle t = (Triangle) it.next(); ot.bind(t); for (int i = 0; i < 3; i++) { if (t.vertex[i].getLink() instanceof ArrayList) { nrNM++; ArrayList link = (ArrayList) t.vertex[i].getLink(); Triangle [] list = new Triangle[link.size()]; int ind = 0; for (Iterator it2 = link.iterator(); it2.hasNext(); ) { list[ind] = (Triangle) it2.next(); ind++; } t.vertex[i].setLink(list); } ot.nextOTri(); if (ot.hasAttributes(OTriangle.BOUNDARY)) nrFE++; } } if (nrNM > 0) logger.debug("Found "+nrNM+" non manifold edges"); if (nrFE > 0) logger.debug("Found "+nrFE+" free edges"); // 5. If vertices are on inner boundaries and there is // no ridge, change their label. logger.debug("Set interior nodes mutable"); int nrJunctionPoints = 0; double cosMinAngle = Math.cos(Math.PI*minAngle/180.0); if (minAngle < 0.0) cosMinAngle = -2.0; for (int i = 0; i < vertices.length; i++) { if (bndNodes.contains(vertices[i])) continue; int label = vertices[i].getRef(); int nrVertNeigh = vertices[i].getNeighboursNodes().size(); int nrTriNeigh = ((ArrayList) tVertList.get(vertices[i])).size(); if (nrVertNeigh != nrTriNeigh) { nrJunctionPoints++; if (label == 0) { maxLabel++; vertices[i].setRef(maxLabel); } continue; } if (0 != label) { // Check for ridges ot.bind((Triangle) vertices[i].getLink()); if (checkRidges(vertices[i], cosMinAngle, ot)) vertices[i].setRef(-label); } } if (nrJunctionPoints > 0) logger.info("Found "+nrJunctionPoints+" non-manifold vertices"); // Add outer triangles triangleList.addAll(newTri); } | 46701 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46701/1204803e41d9f0455d760e943e188ca4e850c9d1/Mesh.java/clean/amibe/src/org/jcae/mesh/amibe/ds/Mesh.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
17886,
1077,
2075,
12,
6475,
5378,
6928,
16,
1645,
1131,
8467,
13,
202,
95,
202,
202,
759,
225,
404,
18,
2457,
1517,
5253,
16,
1361,
326,
666,
434,
19959,
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,
1361,
17886,
1077,
2075,
12,
6475,
5378,
6928,
16,
1645,
1131,
8467,
13,
202,
95,
202,
202,
759,
225,
404,
18,
2457,
1517,
5253,
16,
1361,
326,
666,
434,
19959,
202,
202,... |
return null; | return super.getData(dataId); | public Object getData(String dataId) { VcsFileRevision firstSelectedRevision = getFirstSelectedRevision(); if (DataConstants.NAVIGATABLE.equals(dataId)) { List selectedItems = getSelection(); if (selectedItems.size() != 1) return null; VcsFileRevision revision = firstSelectedRevision; VirtualFile virtualFileForRevision = createVirtualFileForRevision(revision); if (virtualFileForRevision != null) { return new OpenFileDescriptor(myProject, virtualFileForRevision); } else { return null; } } else if (DataConstants.PROJECT.equals(dataId)) { return myProject; } else if (VcsDataConstants.VCS_FILE_REVISION.equals(dataId)) { return firstSelectedRevision; } else if (VcsDataConstants.VCS_VIRTUAL_FILE.equals(dataId)) { if (firstSelectedRevision == null) return null; return createVirtualFileForRevision(firstSelectedRevision); } else if (VcsDataConstants.FILE_PATH.equals(dataId)) { return myFilePath; } else if (VcsDataConstants.IO_FILE.equals(dataId)) { return myFilePath.getIOFile(); } else if (DataConstants.VIRTUAL_FILE.equals(dataId)) { if (getVirtualFile() == null) return null; if (getVirtualFile().isValid()) { return getVirtualFile(); } else { return null; } } else if (VcsDataConstants.FILE_HISTORY_PANEL.equals(dataId)) { return this; } else { return null; } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/32e8d6305fedc651d0ec616b8194f5883518676d/FileHistoryPanelImpl.java/buggy/source/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
4303,
12,
780,
501,
548,
13,
288,
565,
776,
2143,
812,
7939,
1122,
7416,
7939,
273,
7521,
7416,
7939,
5621,
565,
309,
261,
751,
2918,
18,
50,
5856,
3047,
789,
2782,
18,
1496... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
4303,
12,
780,
501,
548,
13,
288,
565,
776,
2143,
812,
7939,
1122,
7416,
7939,
273,
7521,
7416,
7939,
5621,
565,
309,
261,
751,
2918,
18,
50,
5856,
3047,
789,
2782,
18,
1496... |
public String toString() { return "[(DefaultNumberExpr): " + getNumber() + "]"; } | 47970 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47970/a606244b1948c4585839126f02bfc0d4958ec2f1/DefaultNumberExpr.java/buggy/src/java/main/org/jaxen/expr/DefaultNumberExpr.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
10492,
1435,
95,
2463,
6,
63,
12,
1868,
1854,
4742,
13,
2773,
15,
588,
1854,
1435,
9078,
4279,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
10492,
1435,
95,
2463,
6,
63,
12,
1868,
1854,
4742,
13,
2773,
15,
588,
1854,
1435,
9078,
4279,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | ||
NodeTypeUtil.locatePropertyDef(session, PropertyType.REFERENCE, false, false, true, false); | NodeTypeUtil.locatePropertyDef(superuser, PropertyType.REFERENCE, false, false, true, false); | public void testReferenceProperty() throws NotExecutableException, RepositoryException { // locate a PropertyDefinition with ValueConstraints Session session = helper.getReadWriteSession(); PropertyDefinition propDef = NodeTypeUtil.locatePropertyDef(session, PropertyType.REFERENCE, false, false, true, false); if (propDef == null) { throw new NotExecutableException("No reference property def with " + "testable value constraints has been found"); } String constraints[] = propDef.getValueConstraints(); String nodeTypeNotSatisfied = null; NodeTypeManager manager = session.getWorkspace().getNodeTypeManager(); NodeTypeIterator types = manager.getAllNodeTypes(); // find a NodeType which is not satisfying the constraints findNodeTypeNotSatisfied: while (types.hasNext()) { NodeType type = types.nextNodeType(); String name = type.getName(); for (int i = 0; i < constraints.length; i++) { if (name.equals(constraints[i])) { continue findNodeTypeNotSatisfied; } nodeTypeNotSatisfied = name; break findNodeTypeNotSatisfied; } } if (nodeTypeNotSatisfied == null) { throw new NotExecutableException("No reference property def with " + "testable value constraints has been found"); } // create a sub node of testRootNode of type propDef.getDeclaringNodeType() Node node; Node nodeNotSatisfied; try { String nodeType = propDef.getDeclaringNodeType().getName(); node = testRootNode.addNode(nodeName2, nodeType); // create a referenceable node not satisfying the constraint nodeNotSatisfied = testRootNode.addNode(nodeName4, nodeTypeNotSatisfied); nodeNotSatisfied.addMixin(mixReferenceable); testRootNode.save(); } catch (ConstraintViolationException e) { // implementation specific constraints do not allow to set up test environment throw new NotExecutableException("Not able to create required test items."); } // test of signature setProperty(String name, Node value) try { node.setProperty(propDef.getName(), nodeNotSatisfied); node.save(); fail("setProperty(String name, Node value) must throw a " + "ConstraintViolationException if the change would violate a " + "node type constraint either immediately or on save"); } catch (ConstraintViolationException e) { // success } // test of signature setProperty(String name, Value value) try { node.setProperty(propDef.getName(), new ReferenceValue(nodeNotSatisfied)); node.save(); fail("setProperty(String name, Value value) must throw a " + "ConstraintViolationException if the change would violate a " + "node type constraint either immediately or on save"); } catch (ConstraintViolationException e) { // success } } | 49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/5ccda17da27a5f4b68cd1402b8d936c724c7aa46/SetPropertyConstraintViolationExceptionTest.java/clean/src/test/org/apache/jackrabbit/test/api/SetPropertyConstraintViolationExceptionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2404,
1396,
1435,
5411,
1216,
2288,
17709,
503,
16,
13367,
288,
3639,
368,
10627,
279,
4276,
1852,
598,
1445,
4878,
3639,
3877,
1339,
273,
4222,
18,
588,
1994,
3067,
2157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2404,
1396,
1435,
5411,
1216,
2288,
17709,
503,
16,
13367,
288,
3639,
368,
10627,
279,
4276,
1852,
598,
1445,
4878,
3639,
3877,
1339,
273,
4222,
18,
588,
1994,
3067,
2157,
... |
return suiteBuffer; } | return suiteBuffer; } | protected XMLStringBuffer createContentBuffer() { XMLStringBuffer suiteBuffer= new XMLStringBuffer(""); //$NON-NLS-1$ suiteBuffer.setDocType("suite SYSTEM \"" + Parser.TESTNG_DTD_URL + "\""); Properties attrs= new Properties(); attrs.setProperty("name", m_suiteName); suiteBuffer.push("suite", attrs); if(m_parameters != null) { for(Iterator it= m_parameters.entrySet().iterator(); it.hasNext(); ) { Map.Entry entry= (Map.Entry) it.next(); Properties paramAttrs= new Properties(); paramAttrs.setProperty("name", (String) entry.getKey()); paramAttrs.setProperty("value", (String) entry.getValue()); suiteBuffer.push("parameter", paramAttrs); suiteBuffer.pop("parameter"); } } initContentBuffer(suiteBuffer); suiteBuffer.pop("suite"); return suiteBuffer; } | 52545 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52545/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3167,
780,
1892,
752,
1350,
1892,
1435,
288,
1377,
3167,
780,
1892,
11371,
1892,
33,
394,
3167,
780,
1892,
2932,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
11371,
1892,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3167,
780,
1892,
752,
1350,
1892,
1435,
288,
1377,
3167,
780,
1892,
11371,
1892,
33,
394,
3167,
780,
1892,
2932,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
11371,
1892,
18,
542,
... |
includeModule(getRuntime().getClasses().getComparableModule()); | includeModule(getRuntime().getModule("Comparable")); | protected void initializeClass() { includeModule(getRuntime().getClasses().getComparableModule()); defineMethod("+@", Arity.noArguments(), "op_uplus"); defineMethod("-@", Arity.noArguments(), "op_uminus"); defineMethod("<=>", Arity.singleArgument(), "cmp"); defineMethod("==", Arity.singleArgument(), "equal"); defineMethod("equal?", Arity.singleArgument(), "veryEqual"); defineMethod("===", Arity.singleArgument(), "equal"); defineMethod("abs", Arity.noArguments()); defineMethod("ceil", Arity.noArguments()); defineMethod("coerce", Arity.singleArgument()); defineMethod("clone", Arity.noArguments(), "rbClone"); defineMethod("divmod", Arity.singleArgument(), "divmod"); defineMethod("eql?", Arity.singleArgument(), "eql"); defineMethod("floor", Arity.noArguments()); defineMethod("integer?", Arity.noArguments(), "int_p"); defineMethod("modulo", Arity.singleArgument()); defineMethod("nonzero?", Arity.noArguments(), "nonzero_p"); defineMethod("remainder", Arity.singleArgument()); defineMethod("round", Arity.noArguments()); defineMethod("truncate", Arity.noArguments()); defineMethod("zero?", Arity.noArguments(), "zero_p"); defineSingletonMethod("new", Arity.optional(), "newInstance"); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/ca6b16e996ea9af83ce593594b9c69b9364a9924/NumericMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/NumericMetaClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4046,
797,
1435,
288,
3639,
2341,
3120,
12,
588,
5576,
7675,
588,
3120,
2932,
799,
10207,
7923,
1769,
3639,
4426,
1305,
2932,
15,
36,
3113,
1201,
560,
18,
2135,
4628,
9334,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4046,
797,
1435,
288,
3639,
2341,
3120,
12,
588,
5576,
7675,
588,
3120,
2932,
799,
10207,
7923,
1769,
3639,
4426,
1305,
2932,
15,
36,
3113,
1201,
560,
18,
2135,
4628,
9334,
315... |
} if (viewerContext.get(WizardUI.TASK_KEY).equals(WizardUI.TEXT_CAT_TASK)) | String task = (String)viewerContext.get(WizardUI.TASK_KEY); if (task.equals(WizardUI.TEXT_CAT_TASK) || task.equals(WizardUI.BINARY_TASK)) | public void run() { try { log.setLevel(Level.DEBUG);// log.debug("viewer context: " + viewerContext.toString()); Dataset trainDataset; File testDataFile = (File)viewerContext.get("testDataFile"); //Feature settings targetClass = (String)viewerContext.get("targetClass"); SpanFeatureExtractor fe = (SpanFeatureExtractor)viewerContext.get("fe"); //Learner setting splitter = (Splitter)viewerContext.get("splitter"); //Data should be loaded already here if (viewerContext.get("Loader") instanceof DatasetLoader) { trainDataset = (Dataset)viewerContext.get("trainDataset"); } else { labels = (TextLabels)viewerContext.get("trainLabels");// if (viewerContext.get("Loader") instanceof SimpleTextLoader)// {// SimpleTextLoader loader = (SimpleTextLoader)viewerContext.get("Loader");// labels = loader.load((File)viewerContext.get("trainDataFile"));// } } if (viewerContext.get(WizardUI.TASK_KEY).equals(WizardUI.TEXT_CAT_TASK)) { cLearner = (ClassifierLearner)viewerContext.get("learner"); trainDataset = loadDataset(labels, targetClass, fe, "creating train dataset"); if (splitter == null) { TextLabels testLabels = (TextLabels)viewerContext.get("testLabels"); log.debug("got test labels"); Dataset testDataset = loadDataset(testLabels, targetClass, fe, "creating test dataset"); splitter = new FixedTestSetSplitter(testDataset.iterator()); } runClassificationExperiment(trainDataset); } else if (viewerContext.get(WizardUI.TASK_KEY).equals(WizardUI.TEXT_EXTRACT_TASK)) { aLearner = (AnnotatorLearner)viewerContext.get("learner"); String outputLabel = (String)viewerContext.get("outputLabel"); runExtractionExperiment(targetClass, outputLabel); //NB: a panel to gather output label would be good } resultButton.setEnabled(true); } catch (Throwable e) { log.fatal(e, e); } } | 51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/f42475b3a78e243049ed07d43ae9acb73f948933/ExperimentWizard.java/clean/src/edu/cmu/minorthird/ui/ExperimentWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
565,
288,
1377,
775,
1377,
288,
3639,
613,
18,
542,
2355,
12,
2355,
18,
9394,
1769,
759,
3639,
613,
18,
4148,
2932,
25256,
819,
30,
315,
397,
14157,
1042,
18,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
288,
1377,
775,
1377,
288,
3639,
613,
18,
542,
2355,
12,
2355,
18,
9394,
1769,
759,
3639,
613,
18,
4148,
2932,
25256,
819,
30,
315,
397,
14157,
1042,
18,
104... |
if (notYetImplemented()) { return; } | public void testOptionsDelegateToSelect() throws Exception { if (notYetImplemented()) { return; } final String content = "<html><head>" + "<script>" + "function doTest() {" + " var s = document.getElementById('select1');" + " alert(s.childNodes.length);" + " alert(s.options.childNodes.length);" + " alert(s.selectedIndex);" + " alert(s.options.selectedIndex);" + "}" + "</script>" + "</head>" + "<body onload='doTest()'>" + "<form name='test'>" + "<select id='select1'>" + "<option>a</option>" + "<option selected='selected'>b</option>" + "</select></form>" + "</body></html>"; final List expectedAlerts = Arrays.asList( new String[]{"2", "2", "1", "1"} ); createTestPageForRealBrowserIfNeeded(content, expectedAlerts); final List collectedAlerts = new ArrayList(); loadPage(BrowserVersion.INTERNET_EXPLORER_6_0, content, collectedAlerts); assertEquals( expectedAlerts, collectedAlerts ); try { loadPage(BrowserVersion.MOZILLA_1_0, content, collectedAlerts); fail("Should have thrown a JS error"); } catch (final ScriptException e) { // that's ok } } | 3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/19e71091f1ee53f3e84885c38b0676c40e20a01a/SelectTest.java/buggy/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/SelectTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1320,
9586,
774,
3391,
1435,
1216,
1185,
288,
3639,
309,
261,
902,
61,
278,
8644,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
727,
514,
913,
5411,
273,
3532,
2620,
4438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1320,
9586,
774,
3391,
1435,
1216,
1185,
288,
3639,
309,
261,
902,
61,
278,
8644,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
727,
514,
913,
5411,
273,
3532,
2620,
4438,
... | |
private CodeGenerator createBRecursion( boolean isInit, MarkovModel model, State[] states, AlphabetIndex stateIndex, CodeField stateF, CodeField [] transitionFields, AlphabetIndex[] transitionIndexers, GeneratedCodeMethod method ) throws NoSuchMethodException, NoSuchFieldException, IllegalSymbolException, CodeException { CodeClass _Cell = IntrospectedCodeClass.forClass(Cell.class); CodeField _Cell_score = _Cell.getFieldByName("scores"); CodeField _Cell_backpointer = _Cell.getFieldByName("backPointers"); CodeField _Cell_emissions = _Cell.getFieldByName("emissions"); CodeClass _State = IntrospectedCodeClass.forClass(State.class); CodeClass _double_A = IntrospectedCodeClass.forClass(double [].class); CodeClass _Math = IntrospectedCodeClass.forClass(Math.class); CodeMethod _Math_exp = _Math.getMethod("exp", new CodeClass[] { CodeUtils.TYPE_DOUBLE }); CodeMethod _Math_log = _Math.getMethod("log", new CodeClass[] { CodeUtils.TYPE_DOUBLE }); InstructionVector ccV = new InstructionVector(); ccV.add( debug(message("Retrieving local variables"))); // if(isInit && state instanceof emission) { // cell[0][0] = (state == Magical) ? 0.0 : NaN; // } else { // cell[0][0].score[i] = cell[0][0].emissions[i] + // sum_j(cell[adv_i_0][adv_i_1] + t_j[i]) // } // cell_00 = cell[0][0]; // cell_01 = cell[0][1]; // cell_10 = cell[1][0]; // cell_11 = cell[1][1]; LocalVariable[][] cell = new LocalVariable[2][2]; cell[0][0] = new LocalVariable(_Cell, "cell_00"); cell[0][1] = new LocalVariable(_Cell, "cell_01"); cell[1][0] = new LocalVariable(_Cell, "cell_10"); cell[1][1] = new LocalVariable(_Cell, "cell_11"); ccV.add( ByteCode.make_aload (method.getVariable("cells"))); ccV.add( ByteCode.make_dup ()); ccV.add( ByteCode.make_iconst (0)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_dup ()); ccV.add( ByteCode.make_iconst (0)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_astore (cell[0][0])); ccV.add( ByteCode.make_iconst (1)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_astore (cell[0][1])); ccV.add( ByteCode.make_iconst (1)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_dup ()); ccV.add( ByteCode.make_iconst (0)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_astore (cell[1][0])); ccV.add( ByteCode.make_iconst (1)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_astore (cell[1][1])); // score_00 = cell[0][0].score; // score_01 = cell[0][1].score; // score_10 = cell[1][0].score; // score_11 = cell[1][1].score; LocalVariable[][] score = new LocalVariable[2][2]; score[0][0] = new LocalVariable(_double_A, "score_00"); score[0][1] = new LocalVariable(_double_A, "score_01"); score[1][0] = new LocalVariable(_double_A, "score_10"); score[1][1] = new LocalVariable(_double_A, "score_11"); ccV.add( ByteCode.make_aload (cell[0][0])); ccV.add( ByteCode.make_getfield ( _Cell_score)); ccV.add( ByteCode.make_astore (score[0][0])); ccV.add( ByteCode.make_aload (cell[0][1])); ccV.add( ByteCode.make_getfield ( _Cell_score)); ccV.add( ByteCode.make_astore (score[0][1])); ccV.add( ByteCode.make_aload (cell[1][0])); ccV.add( ByteCode.make_getfield ( _Cell_score)); ccV.add( ByteCode.make_astore (score[1][0])); ccV.add( ByteCode.make_aload (cell[1][1])); ccV.add( ByteCode.make_getfield ( _Cell_score)); ccV.add( ByteCode.make_astore (score[1][1])); LocalVariable[][] emission = new LocalVariable[2][2]; emission[0][1] = new LocalVariable(_double_A, "emission_01"); emission[1][0] = new LocalVariable(_double_A, "emission_10"); emission[1][1] = new LocalVariable(_double_A, "emission_11"); ccV.add( ByteCode.make_aload (cell[0][1] )); ccV.add( ByteCode.make_getfield (_Cell_emissions)); ccV.add( ByteCode.make_astore (emission[0][1])); ccV.add( ByteCode.make_aload (cell[1][0] )); ccV.add( ByteCode.make_getfield (_Cell_emissions)); ccV.add( ByteCode.make_astore (emission[1][0])); ccV.add( ByteCode.make_aload (cell[1][1] )); ccV.add( ByteCode.make_getfield (_Cell_emissions)); ccV.add( ByteCode.make_astore (emission[1][1])); LocalVariable max = new LocalVariable(CodeUtils.TYPE_DOUBLE, "max"); for(int i = states.length-1; i >= 0 ; i--) { State state = states[i]; ccV.add( debug(message("Calculating for state " + i + " " + state.getName()))); InstructionVector stateV = new InstructionVector(); // we need to push score & i onto the stack so that after finding the sum // we can just push it back into the array stateV.add( ByteCode.make_aload (score[0][0])); stateV.add( ByteCode.make_iconst (i)); if(isInit && state instanceof EmissionState) { stateV.add( debug(message("initalizing"))); if(state instanceof MagicalState) { stateV.add( debug(message("magical"))); stateV.add( ByteCode.make_dconst (0.0)); } else { stateV.add( debug(message("mundane"))); stateV.add( ByteCode.make_dconst (Double.NaN)); } } else { FiniteAlphabet trans = model.transitionsFrom(state); if(trans.size() == 1) { stateV.add( debug(message("single-source optimization"))); State state_j = (State) trans.iterator().next(); int state_jIndx = stateIndex.indexForSymbol(state_j); // work out advance // only one source. B[i] = trans_j[i] + B[j] + e[j] // only add e[j] if emitting state int [] advance = getAdvance(state_j); stateV.add( ByteCode.make_aload (method.getThis())); stateV.add( ByteCode.make_getfield (transitionFields[i])); stateV.add( ByteCode.make_iconst (transitionIndexers[i].indexForSymbol(state_j))); stateV.add( ByteCode.make_daload ()); stateV.add( ByteCode.make_aload (getAdvanced(score, advance))); stateV.add( ByteCode.make_iconst (state_jIndx)); stateV.add( ByteCode.make_daload ()); stateV.add( ByteCode.make_dadd ()); if(state_j instanceof EmissionState) { stateV.add( ByteCode.make_aload (getAdvanced(emission, advance))); stateV.add( ByteCode.make_iconst (i)); stateV.add( ByteCode.make_daload ()); stateV.add( ByteCode.make_dadd ()); } LocalVariable tmp = new LocalVariable(CodeUtils.TYPE_DOUBLE, "tmp"); InstructionVector dbi = new InstructionVector(); dbi.add( ByteCode.make_dup2()); dbi.add( ByteCode.make_dstore(tmp)); dbi.add( message("got sum of ", tmp)); stateV.add( debug(dbi)); } else { // B[i] = log( sum_j [ // exp( (j_scores[j] - max_j_score) + t_j[i] + e[j]) // ]) + max_j_score stateV.add( debug(message("full recursion"))); // find max j_scores stateV.add( ByteCode.make_dconst (Double.NEGATIVE_INFINITY)); stateV.add( ByteCode.make_dstore (max)); Iterator each_j = trans.iterator(); while(each_j.hasNext()) { State state_j = (State) each_j.next(); int state_jIndx = stateIndex.indexForSymbol(state_j); int[] advance = getAdvance(state_j); stateV.add( ByteCode.make_aload (getAdvanced(score, advance))); stateV.add( ByteCode.make_iconst (state_jIndx)); stateV.add( ByteCode.make_daload ()); stateV.add( ByteCode.make_dup2 ()); stateV.add( ByteCode.make_dload (max)); stateV.add( ByteCode.make_dcmpl ()); // puts -1 if max > this one InstructionVector ifLargerThanMax = new InstructionVector(); ifLargerThanMax.add( debug(message("Larger"))); ifLargerThanMax.add( debug(message(" max: ", max))); ifLargerThanMax.add( ByteCode.make_dstore (max)); InstructionVector ifSmallerThanMax = new InstructionVector(); ifSmallerThanMax.add( debug(message("Smaller"))); ifSmallerThanMax.add( debug(message(" max: ", max))); ifSmallerThanMax.add( ByteCode.make_pop2 ()); stateV.add( new IfExpression( ByteCode.op_ifge, // branch if int on stack >= 0 ifLargerThanMax, ifSmallerThanMax )); } stateV.add( debug(message("Taking out factor ", max))); // sum logs of exponents - prime sum with zero stateV.add( ByteCode.make_dconst (0.0)); each_j = trans.iterator(); while(each_j.hasNext()) { State state_j = (State) each_j.next(); int state_jIndx = stateIndex.indexForSymbol(state_j); int[] advance = getAdvance(state_j); // score stateV.add( ByteCode.make_aload (getAdvanced(score, advance))); stateV.add( ByteCode.make_iconst (state_jIndx)); stateV.add( ByteCode.make_daload ()); // is score NaN? stateV.add( ByteCode.make_dup2()); stateV.add( ByteCode.make_dup2()); stateV.add( ByteCode.make_dcmpl()); // stack now looks like sum, score_j, score_j isNaN // - boolean popped off during conditional branch leaving // sum, score_j InstructionVector scoreNotNaN = new InstructionVector(); // load max & subtract it from score scoreNotNaN.add( ByteCode.make_dload (max)); scoreNotNaN.add( ByteCode.make_dsub ()); // sum, score_j - max // (j_score - max) + transition + emission[j]) // only add emission if emiting state scoreNotNaN.add( ByteCode.make_aload (method.getThis())); scoreNotNaN.add( ByteCode.make_getfield (transitionFields[i])); scoreNotNaN.add( ByteCode.make_iconst (transitionIndexers[i].indexForSymbol(state_j))); scoreNotNaN.add( ByteCode.make_daload ()); scoreNotNaN.add( ByteCode.make_dadd ()); if(state_j instanceof EmissionState) { scoreNotNaN.add( ByteCode.make_aload (getAdvanced(score, advance))); scoreNotNaN.add( ByteCode.make_iconst (state_jIndx)); scoreNotNaN.add( ByteCode.make_daload ()); scoreNotNaN.add( ByteCode.make_dadd ()); } scoreNotNaN.add( ByteCode.make_invokestatic (_Math_exp)); // sum this and current sum scoreNotNaN.add( ByteCode.make_dadd()); InstructionVector scoreIsNaN = new InstructionVector(); scoreIsNaN.add( ByteCode.make_pop2()); stateV.add( new IfExpression( ByteCode.op_ifge, scoreNotNaN, scoreIsNaN )); } // log sum stateV.add( ByteCode.make_invokestatic (_Math_log)); // lastly add on a factor of max - added here for maximum numerical stability stateV.add( ByteCode.make_dload (max)); stateV.add( ByteCode.make_dadd ()); } } // store score on stack into scores array stateV.add( ByteCode.make_dastore ()); ccV.add( stateV ); } // dump out state scores LocalVariable sc = new LocalVariable(CodeUtils.TYPE_DOUBLE, "score_i"); InstructionVector dbi = new InstructionVector(); for(int i = 0; i < states.length; i++) { dbi.add( ByteCode.make_aload (score[0][0])); dbi.add( ByteCode.make_iconst (i)); dbi.add( ByteCode.make_daload ()); dbi.add( ByteCode.make_dstore (sc)); dbi.add( message("Score " + i + " = ", sc)); } ccV.add( debug(dbi)); ccV.add( ByteCode.make_return ()); return ccV; } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/16e211b30f2de853621b0c083c1e7d659c54cfd1/DPCompiler.java/buggy/src/org/biojava/bio/dp/twohead/DPCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
225,
3356,
3908,
225,
752,
38,
426,
10919,
12,
3639,
1250,
225,
353,
2570,
16,
3639,
6622,
1527,
1488,
225,
938,
16,
3639,
3287,
8526,
225,
5493,
16,
3639,
2262,
8907,
1016,
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,
1,
1,
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,
225,
3356,
3908,
225,
752,
38,
426,
10919,
12,
3639,
1250,
225,
353,
2570,
16,
3639,
6622,
1527,
1488,
225,
938,
16,
3639,
3287,
8526,
225,
5493,
16,
3639,
2262,
8907,
1016,
225,
... | ||
break; | private List<DiffChunk<SQLObject>> generateColumnDiffs( SQLTable sourceTable, SQLTable targetTable) throws ArchitectException { TreeSet<SQLColumn> sourceColumnList; TreeSet<SQLColumn> targetColumnList; Iterator<SQLColumn> sourceColIter; Iterator<SQLColumn> targetColIter; SQLColumn sourceColumn; SQLColumn targetColumn; boolean sourceColContinue; boolean targetColContinue; sourceColumnList = new TreeSet<SQLColumn>(comparator); targetColumnList = new TreeSet<SQLColumn>(comparator); sourceColContinue = false; targetColContinue = false; sourceColIter = null; targetColIter = null; sourceColumn = null; targetColumn = null; // We store the diffs in here, then return this listS List<DiffChunk<SQLObject>> diffs = new ArrayList<DiffChunk<SQLObject>>(); if (sourceTable != null) { sourceColumnList.addAll(sourceTable.getColumns()); } if (targetTable != null) { targetColumnList.addAll(targetTable.getColumns()); } if (sourceColumnList.size() == 0) { sourceColumnList = null; sourceColContinue = false; } else { sourceColIter = sourceColumnList.iterator(); sourceColumn = sourceColIter.next(); sourceColContinue = true; } if (targetColumnList.size() == 0) { targetColumnList = null; targetColContinue = false; } else { targetColIter = targetColumnList.iterator(); targetColumn = targetColIter.next(); targetColContinue = true; } while (sourceColContinue && targetColContinue) { // Comparing Columns while (comparator.compare(sourceColumn, targetColumn) < 0) { diffs.add(new DiffChunk<SQLObject>(sourceColumn, DiffType.LEFTONLY)); if (sourceColIter.hasNext()) { sourceColumn = sourceColIter.next(); } else { sourceColContinue = false; break; } } // Comparing Columns while (comparator.compare(sourceColumn, targetColumn) > 0) { diffs.add(new DiffChunk<SQLObject>(targetColumn, DiffType.RIGHTONLY)); if (targetColIter.hasNext()) { targetColumn = targetColIter.next(); } else { targetColContinue = false; break; } } // Comparing Columns while (comparator.compare(sourceColumn, targetColumn) == 0) { if (targetColumn.getType() != sourceColumn.getType() || (targetColumn.getPrecision() != sourceColumn.getPrecision()) || (targetColumn.getScale() != sourceColumn.getScale()) || (targetColumn.getNullable() != sourceColumn.getNullable()) ) { diffs.add(new DiffChunk<SQLObject>(targetColumn, DiffType.MODIFIED)); } else { diffs.add(new DiffChunk<SQLObject>(sourceColumn, DiffType.SAME)); } if (targetColIter.hasNext()) { targetColumn = targetColIter.next(); } else { targetColContinue = false; } if (sourceColIter.hasNext()) { sourceColumn = sourceColIter.next(); } else { sourceColContinue = false; } if (!sourceColContinue || !targetColContinue) { break; } } } while (sourceColContinue) { diffs.add(new DiffChunk<SQLObject>(sourceColumn, DiffType.LEFTONLY)); if (sourceColIter.hasNext()) { sourceColumn = sourceColIter.next(); } else { sourceColContinue = false; } } while (targetColContinue) { diffs.add(new DiffChunk<SQLObject>(targetColumn, DiffType.RIGHTONLY)); if (targetColIter.hasNext()) { targetColumn = targetColIter.next(); } else { targetColContinue = false; } } return diffs; } | 53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/561a8da5f06185bff5888ce0a4e1985fcee845da/CompareSQL.java/buggy/src/ca/sqlpower/architect/diff/CompareSQL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
32,
5938,
5579,
32,
3997,
921,
9778,
2103,
1494,
10428,
2556,
12,
1082,
202,
3997,
1388,
1084,
1388,
16,
1082,
202,
3997,
1388,
1018,
1388,
13,
1216,
16959,
15004,
503,
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,
225,
202,
1152,
987,
32,
5938,
5579,
32,
3997,
921,
9778,
2103,
1494,
10428,
2556,
12,
1082,
202,
3997,
1388,
1084,
1388,
16,
1082,
202,
3997,
1388,
1018,
1388,
13,
1216,
16959,
15004,
503,
28... | |
String ext = resource.getFileExtension(); | String ext = resource.getFileExtension(); | public boolean visit(IResourceProxy proxy) throws CoreException { // No point in proceeding, is there if (generator == null) { return false; } // Is this a resource we should even consider if (proxy.getType() == IResource.FILE) { // Check extension to see if build model should build this file IResource resource = proxy.requestResource(); String ext = resource.getFileExtension(); if (info.buildsFileType(ext)) { if (!generator.isGeneratedResource(resource)) { generator.appendBuildSubdirectory(resource); } } return false; } // Recurse into subdirectories return true; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3950ab52aec3e3a967e2a41980a809afdef253ab/GnuMakefileGenerator.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
3757,
12,
45,
1420,
3886,
2889,
13,
1216,
30015,
288,
1082,
202,
759,
2631,
1634,
316,
11247,
310,
16,
353,
1915,
1875,
202,
430,
261,
8812,
422,
446,
13,
288,
9506,
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,
3196,
202,
482,
1250,
3757,
12,
45,
1420,
3886,
2889,
13,
1216,
30015,
288,
1082,
202,
759,
2631,
1634,
316,
11247,
310,
16,
353,
1915,
1875,
202,
430,
261,
8812,
422,
446,
13,
288,
9506,
20... |
int functionSourceOffset = decompiler.startFunction(name, functionIndex); | int functionSourceOffset = decompiler.startFunction(functionIndex); | private Object function(TokenStream ts, int functionType) throws IOException, ParserException { int baseLineno = ts.getLineno(); // line number where source starts String name; Object memberExprNode = null; if (ts.matchToken(Token.NAME)) { name = ts.getString(); if (!ts.matchToken(Token.LP)) { if (allowMemberExprAsFunctionName) { // Extension to ECMA: if 'function <name>' does not follow // by '(', assume <name> starts memberExpr decompiler.addName(name); Object memberExprHead = nf.createName(name); name = ""; memberExprNode = memberExprTail(ts, false, memberExprHead); } mustMatchToken(ts, Token.LP, "msg.no.paren.parms"); } } else if (ts.matchToken(Token.LP)) { // Anonymous function name = ""; } else { name = ""; if (allowMemberExprAsFunctionName) { // Note that memberExpr can not start with '(' like // in function (1+2).toString(), because 'function (' already // processed as anonymous function memberExprNode = memberExpr(ts, false); } mustMatchToken(ts, Token.LP, "msg.no.paren.parms"); } if (memberExprNode != null) { // transform 'function' <memberExpr> to <memberExpr> = function // even in the decompilated source decompiler.addOp(Token.ASSIGN, Token.NOP); } FunctionNode fnNode = nf.createFunction(name); int functionIndex = currentScriptOrFn.addFunction(fnNode); int functionSourceOffset = decompiler.startFunction(name, functionIndex); ScriptOrFnNode savedScriptOrFn = currentScriptOrFn; currentScriptOrFn = fnNode; Object body; String source; try { decompiler.addToken(Token.LP); if (!ts.matchToken(Token.RP)) { boolean first = true; do { if (!first) decompiler.addToken(Token.COMMA); first = false; mustMatchToken(ts, Token.NAME, "msg.no.parm"); String s = ts.getString(); if (fnNode.hasParamOrVar(s)) { Object[] msgArgs = { s }; ts.reportCurrentLineWarning("msg.dup.parms", msgArgs); } fnNode.addParam(s); decompiler.addName(s); } while (ts.matchToken(Token.COMMA)); mustMatchToken(ts, Token.RP, "msg.no.paren.after.parms"); } decompiler.addToken(Token.RP); mustMatchToken(ts, Token.LC, "msg.no.brace.body"); decompiler.addEOL(Token.LC); body = parseFunctionBody(ts); mustMatchToken(ts, Token.RC, "msg.no.brace.after.body"); decompiler.addToken(Token.RC); // skip the last EOL so nested functions work... // name might be null; } finally { source = decompiler.stopFunction(functionSourceOffset); currentScriptOrFn = savedScriptOrFn; } Object pn; if (memberExprNode == null) { pn = nf.initFunction(fnNode, functionIndex, body, ts.getSourceName(), baseLineno, ts.getLineno(), source, functionType); if (functionType == FunctionNode.FUNCTION_EXPRESSION_STATEMENT) { // The following can be removed but then code generators should // be modified not to push on the stack function expression // statements pn = nf.createExprStatementNoReturn(pn, baseLineno); } // Add EOL but only if function is not part of expression, in which // case it gets SEMI + EOL from Statement. if (functionType != FunctionNode.FUNCTION_EXPRESSION) { decompiler.addToken(Token.EOL); checkWellTerminatedFunction(ts); } } else { pn = nf.initFunction(fnNode, functionIndex, body, ts.getSourceName(), baseLineno, ts.getLineno(), source, FunctionNode.FUNCTION_EXPRESSION); pn = nf.createBinary(Token.ASSIGN, Token.NOP, memberExprNode, pn); if (functionType != FunctionNode.FUNCTION_EXPRESSION) { pn = nf.createExprStatement(pn, baseLineno); // Add ';' to make 'function x.f(){}' and 'x.f = function(){}' // to print the same strings when decompiling decompiler.addEOL(Token.SEMI); checkWellTerminatedFunction(ts); } } return pn; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/5997aaa966c8979f429588d1e5099f085d98eed1/Parser.java/buggy/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
445,
12,
1345,
1228,
3742,
16,
509,
445,
559,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
445,
12,
1345,
1228,
3742,
16,
509,
445,
559,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,
368,
... |
return specification.period_type(); | return data_manager.current_period_type(); | public String current_period_type() { return specification.period_type(); } | 13245 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13245/b391edecc87899db4a9099fc02028eb0e819ce15/Chart.java/buggy/src/clients/mas_gui/Chart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
783,
67,
6908,
67,
723,
1435,
288,
202,
202,
2463,
7490,
18,
6908,
67,
723,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
783,
67,
6908,
67,
723,
1435,
288,
202,
202,
2463,
7490,
18,
6908,
67,
723,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
eventPacket = new WellFormedEventPacket(0, | eventPacket = new WellFormedEventPacket( | public final WellFormedEventPacket createECGEventPacket( final MicroSensorDataType type) { WellFormedEventPacket eventPacket = null; String[] args = null; String activity = null; switch (type) { case TESTRUNSTARTED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprjectname" + "</projectname></commonData><testrun><activity>started</activity><elapsedtime>0</elapsedtime><testcount>" + 15 + "</testcount></testrun></microActivity>"; args = new String[] {"add", "msdt.testrun.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case TESTRUNENDED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprjectname" + "</projectname></commonData><testrun><activity>ended</activity><elapsedtime>" + 100 + "</elapsedtime><testcount>" + 15 + "</testcount></testrun></microActivity>"; args = new String[] {"add", "msdt.testrun.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case TESTRUNSTOPPED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprjectname" + "</projectname></commonData><testrun><activity>stopped</activity><elapsedtime>" + 100 + "</elapsedtime><testcount>" + 15 + "</testcount></testrun></microActivity>"; args = new String[] {"add", "msdt.testrun.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case TESTRUNTERMINATED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprjectname" + "</projectname></commonData><testrun><activity>terminated</activity><elapsedtime>0</elapsedtime><testcount>" + 15 + "</testcount></testrun></microActivity>"; args = new String[] {"add", "msdt.testrun.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case TESTRUNACTIVITYUNKNOWN: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprjectname" + "</projectname></commonData><testrun><activity>unknownTestActivity</activity><elapsedtime>0</elapsedtime><testcount>" + 15 + "</testcount></testrun></microActivity>"; args = new String[] {"add", "msdt.testrun.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case TESTSTARTED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprojectname" + "</projectname></commonData><test><activity>started</activity><name>" + "testName" + "</name><id>" + "testId" + "</id><status>ok</status></test></microActivity>"; args = new String[] {"add", "msdt.test.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case TESTACTIVITYUNKNOWN: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprojectname" + "</projectname></commonData><test><activity>unknownTestActivity</activity><name>" + "testName" + "</name><id>" + "testId" + "</id><status>ok</status></test></microActivity>"; args = new String[] {"add", "msdt.test.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case TESTENDED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprojectname" + "</projectname></commonData><test><activity>ended</activity><name>" + "testName" + "</name><id>" + "testId" + "</id><status>ok</status></test></microActivity>"; args = new String[] {"add", "msdt.test.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case TESTFAILED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprojectname" + "</projectname></commonData><test><activity>failed</activity><name>" + "testName" + "</name><id>" + "testId" + "</id><status>" + "error" + "</status></test></microActivity>"; args = new String[] {"add", "msdt.test.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case TESTRERAN: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>" + "testusername" + "</username><projectname>" + "testprojectname" + "</projectname></commonData><test><activity>reran</activity><name>" + "testName" + "</name><id>" + "testId" + "</id><status>ok</status></test></microActivity>"; args = new String[] {"add", "msdt.test.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case RESOURCEADDED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><resource><activity>added</activity><resourcename>testResourceName</resourcename><resourcetype>testResourceType</resourcetype></resource></microActivity>"; args = new String[] {"add", "msdt.resource.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case RESOURCEREMOVED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><resource><activity>removed</activity><resourcename>testResourceName</resourcename><resourcetype>testResourceType</resourcetype></resource></microActivity>"; args = new String[] {"add", "msdt.resource.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case RESOURCECHANGED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><resource><activity>changed</activity><resourcename>testResourceName</resourcename><resourcetype>testResourceType</resourcetype></resource></microActivity>"; args = new String[] {"add", "msdt.resource.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case RESOURCEACTIVITYUNKNOWN: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><resource><activity>unknownTestActivity</activity><resourcename>testResourceName</resourcename><resourcetype>testResourceType</resourcetype></resource></microActivity>"; args = new String[] {"add", "msdt.resource.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case CODECHANGE: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><codechange><document>testDocument</document><documentname>testDocumentName</documentname></codechange></microActivity>"; args = new String[] {"add", "msdt.codechange.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case EDITOROPENED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><editor><activity>opened</activity><editorname>testEditorName</editorname></editor></microActivity>"; args = new String[] {"add", "msdt.editor.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case EDITORCLOSED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><editor><activity>closed</activity><editorname>testEditorName</editorname></editor></microActivity>"; args = new String[] {"add", "msdt.editor.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case EDITORACTIVATED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><editor><activity>activated</activity><editorname>testEditorName</editorname></editor></microActivity>"; args = new String[] {"add", "msdt.editor.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case EDITORDEACTIVATED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><editor><activity>deactivated</activity><editorname>testEditorName</editorname></editor></microActivity>"; args = new String[] {"add", "msdt.editor.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case EDITORACTIVITYUNKNOWN: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><editor><activity>unknownTestActivity</activity><editorname>testEditorName</editorname></editor></microActivity>"; args = new String[] {"add", "msdt.editor.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case PARTOPENED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><part><activity>opened</activity><partname>testPartName</partname></part></microActivity>"; args = new String[] {"add", "msdt.part.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case PARTCLOSED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><part><activity>closed</activity><partname>testPartName</partname></part></microActivity>"; args = new String[] {"add", "msdt.part.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case PARTACTIVATED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><part><activity>activated</activity><partname>testPartName</partname></part></microActivity>"; args = new String[] {"add", "msdt.part.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case PARTDEACTIVATED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><part><activity>deactivated</activity><partname>testPartName</partname></part></microActivity>"; args = new String[] {"add", "msdt.part.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case PARTACTIVITYUNKNOWN: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><part><activity>unknownTestActivity</activity><partname>testPartName</partname></part></microActivity>"; args = new String[] {"add", "msdt.part.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case RUNDEBUGNODEBUG: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><run debug=\"false\"></run></microActivity>"; args = new String[] {"add", "msdt.rundebug.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case RUNDEBUGWITHDEBUG: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><run debug=\"true\"></run></microActivity>"; args = new String[] {"add", "msdt.rundebug.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case RUNDEBUGWITHILLEGALDEBUG: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><run debug=\"illegalTestValue\"></run></microActivity>"; args = new String[] {"add", "msdt.rundebug.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case WINDOWOPENED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><window><activity>opened</activity><windowname>testWindowName</windowname></window></microActivity>"; args = new String[] {"add", "msdt.window.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case WINDOWCLOSED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><window><activity>closed</activity><windowname>testWindowName</windowname></window></microActivity>"; args = new String[] {"add", "msdt.window.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case WINDOWACTIVATED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><window><activity>activated</activity><windowname>testWindowName</windowname></window></microActivity>"; args = new String[] {"add", "msdt.window.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case WINDOWDEACTIVATED: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><window><activity>deactivated</activity><windowname>testWindowName</windowname></window></microActivity>"; args = new String[] {"add", "msdt.window.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; case WINDOWACTIVITYUNKNOWN: activity = "<?xml version=\"1.0\"?><microActivity><commonData><username>testUserName</username><projectname>testProjectName</projectname></commonData><window><activity>unknownTestActivity</activity><windowname>testWindowName</windowname></window></microActivity>"; args = new String[] {"add", "msdt.window.xsd", activity}; try { eventPacket = new WellFormedEventPacket(0, createDate(true), "Activity", Arrays.asList(args)); } catch (IllegalEventParameterException e) { e.printStackTrace(); } break; default: break; } return eventPacket; } | 239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/239/3b631d5590ce064c916846eafca661ba8d40ef52/EventGenerator.java/buggy/all/ECG_TestHelper/src/org/electrocodeogram/test/EventGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
678,
1165,
1204,
329,
1133,
6667,
752,
7228,
43,
1133,
6667,
12,
3639,
727,
18284,
22294,
6273,
618,
13,
288,
3639,
678,
1165,
1204,
329,
1133,
6667,
871,
6667,
273,
446,
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,
727,
678,
1165,
1204,
329,
1133,
6667,
752,
7228,
43,
1133,
6667,
12,
3639,
727,
18284,
22294,
6273,
618,
13,
288,
3639,
678,
1165,
1204,
329,
1133,
6667,
871,
6667,
273,
446,
31,
... |
response.trim(); | response = response.trim(); | public int getResponseCode() throws IOException { // Response Code Sample : " HTTP/1.0 200 OK " // Call getInputStream() first since getHeaderField() doesn't return // exceptions getInputStream(); String response = getHeaderField(0); if (response == null) { return -1; } response.trim(); int mark = response.indexOf(" ") + 1; if (mark == 0) { return -1; } int last = mark + 3; if (last > response.length()) { last = response.length(); } responseCode = Integer.parseInt(response.substring(mark, last)); if (last + 1 <= response.length()) { responseMessage = response.substring(last + 1); } return responseCode; } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3c7137c92016b43d50f071aafe8d2eba7bff44f5/HttpURLConnection.java/buggy/modules/luni/src/main/java/java/net/HttpURLConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
6476,
1085,
1435,
1216,
1860,
288,
202,
202,
759,
2306,
3356,
11474,
294,
315,
2239,
19,
21,
18,
20,
4044,
7791,
315,
202,
202,
759,
3049,
14424,
1435,
1122,
3241,
7911,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
6476,
1085,
1435,
1216,
1860,
288,
202,
202,
759,
2306,
3356,
11474,
294,
315,
2239,
19,
21,
18,
20,
4044,
7791,
315,
202,
202,
759,
3049,
14424,
1435,
1122,
3241,
7911,
... |
public String getGendate() { | public String getGendate() { | public String getGendate() { return this.gendate; } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/d627f99335efee2e4dca344faa3b13bb3aa73ca3/JChemPaintModel.java/buggy/src/org/openscience/cdk/applications/jchempaint/JChemPaintModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
7162,
409,
340,
1435,
202,
95,
202,
202,
2463,
333,
18,
75,
409,
340,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
7162,
409,
340,
1435,
202,
95,
202,
202,
2463,
333,
18,
75,
409,
340,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if(body != null) { | if (body != null) { | public void characters(char[] ch, int start, int length) { String body = new String(ch, start, length); List applicableActionList = (List) actionListStack.peek(); if(body != null) { body = body.trim(); } if(body.length() > 0) { //System.out.println("calling body method with ["+body+ "]"); callBodyAction(applicableActionList, body); } } | 51675 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51675/7177ff8f31734f293185997e0a81156f64bc26a6/Interpreter.java/buggy/logback-core/src/main/java/ch/qos/logback/core/joran/spi/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3949,
12,
3001,
8526,
462,
16,
509,
787,
16,
509,
769,
13,
288,
3639,
514,
1417,
273,
394,
514,
12,
343,
16,
787,
16,
769,
1769,
3639,
987,
12008,
1803,
682,
273,
261,
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,
282,
1071,
918,
3949,
12,
3001,
8526,
462,
16,
509,
787,
16,
509,
769,
13,
288,
3639,
514,
1417,
273,
394,
514,
12,
343,
16,
787,
16,
769,
1769,
3639,
987,
12008,
1803,
682,
273,
261,
682,... |
public static void generateGlueCodeForJNIMethod(VM_Assembler asm, VM_Method mth) { int offset; asm.emitSTAddrU(FP,-JNI_GLUE_FRAME_SIZE,FP); // buy the glue frame // we may need to save CR in the previous frame also if CR will be used // CR is to be saved at FP+4 in the previous frame // Here we check if this is a JNI function that takes the vararg in the ... style // This includes CallStatic<type>Method, Call<type>Method, CallNonVirtual<type>Method // For these calls, the vararg starts at the 4th or 5th argument (GPR 6 or 7) // So, we save the GPR 6-10 and FPR 1-3 in a volatile register save area // in the glue stack frame so that the JNI function can later repackage the arguments // based on the parameter types of target method to be invoked. // (For long argument lists, the additional arguments, have been saved in // the spill area of the AIX caller, and will be retrieved from there.) // // If we are compiling such a JNI Function, then emit the code to store // GPR 4-10 and FPR 1-6 into the volatile save area. String mthName = mth.getName().toString(); if ((mthName.startsWith("Call") && mthName.endsWith("Method")) || mthName.equals("NewObject")) { //-#if RVM_FOR_AIX offset = STACKFRAME_HEADER_SIZE + 3*BYTES_IN_STACKSLOT; // skip over slots for GPR 3-5 for (int i = 6; i <= 10; i++ ) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // store FPRs 1-3 in first 3 slots of volatile FPR save area for (int i = 1; i <= 3; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } //-#elif RVM_FOR_LINUX || RVM_FOR_OSX // save all parameter registers offset = STACKFRAME_HEADER_SIZE + 0; for (int i=FIRST_OS_PARAMETER_GPR; i<=LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } for (int i =FIRST_OS_PARAMETER_FPR; i<=LAST_OS_PARAMETER_FPR; i++) { asm.emitSTFD(i, offset, FP); offset += BYTES_IN_DOUBLE; } //-#endif } else { //-#if RVM_FOR_LINUX || RVM_FOR_OSX // adjust register contents (following SVR4 ABI) for normal JNI functions // especially dealing with long, spills // number of parameters of normal JNI functions should fix in // r3 - r12, f1 - f15, + 24 words, convertParameterFromSVR4ToJava(asm, mth); //-#endif } // Save AIX non-volatile GRPs and FPRs that will not be saved and restored // by RVM. These are GPR 13-16 & FPR 14-15. // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_OS_NONVOLATILE_GPR; i < FIRST_NONVOLATILE_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } for (int i = FIRST_OS_NONVOLATILE_FPR; i < FIRST_NONVOLATILE_FPR; i++) { asm.emitSTFD (i, offset, FP); offset +=BYTES_IN_DOUBLE; } // set the method ID for the glue frame // and save the return address in the previous frame // asm.emitLVAL(S0, INVISIBLE_METHOD_ID); asm.emitMFLR(0); asm.emitSTW (S0, STACKFRAME_METHOD_ID_OFFSET, FP); asm.emitSTAddr (0, JNI_GLUE_FRAME_SIZE + STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // Attempt to change the vpStatus of the current Processor to IN_JAVA // // on entry T0 = JNIEnv* which is an interior pointer to this thread's VM_JNIEnvironment. // We first adjust this in place to be a pointer to a VM_JNIEnvironment and then use // it to acquire PROCESSOR_REGISTER (and JTOC on OSX/Linux). // // AIX non volatile gprs 13-16 have been saved & are available (also gprs 11-13 can be used). // S0=13, S1=14, TI=15, PROCESSOR_REGISTER=16 are available (&have labels) for changing state. // we leave the passed arguments untouched, unless we are blocked and have to call sysVirtualProcessorYield // Map from JNIEnv* to VM_JNIEnvironment. // Must do this outside the loop as we need to do it exactly once. asm.emitADDI (T0, -VM_Entrypoints.JNIExternalFunctionsField.getOffset(), T0); int retryLoop = asm.getMachineCodeIndex(); // acquire Jikes RVM PROCESSOR_REGISTER (and JTOC OSX/Linux only). asm.emitLAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), T0); //-#if RVM_FOR_LINUX || RVM_FOR_OSX // on AIX JTOC is part of AIX Linkage triplet and this already set by our caller. // Thus, we only need this load on non-AIX platforms asm.emitLAddr(JTOC, VM_Entrypoints.JNIEnvSavedJTOCField.getOffset(), T0); //-#endif asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffset()); asm.emitLWARX (S0, S1, PROCESSOR_REGISTER); // get status for processor asm.emitCMPI (S0, VM_Processor.BLOCKED_IN_NATIVE); // check if GC in progress, blocked in native mode VM_ForwardReference frBlocked = asm.emitForwardBC(EQ); asm.emitLVAL (S0, VM_Processor.IN_JAVA); // S0 <- new state value asm.emitSTWCXr(S0, S1, PROCESSOR_REGISTER); // attempt to change state to IN_JAVA asm.emitBC (NE, retryLoop); // br if failure -retry lwarx by jumping to label0 VM_ForwardReference frInJava = asm.emitForwardB(); // branch around code to call sysYield // branch to here if blocked in native, call sysVirtulaProcessorYield (AIX pthread yield) // must save volatile gprs & fprs before the call and restore after // frBlocked.resolve(asm); offset = STACKFRAME_HEADER_SIZE; // save volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // save volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitLAddr(S1, VM_Entrypoints.the_boot_recordField.getOffset(), JTOC); // get boot record address asm.emitMR (PROCESSOR_REGISTER, JTOC); // save JTOC so we can restore below asm.emitLAddr(JTOC, VM_Entrypoints.sysTOCField.getOffset(), S1); // load TOC for syscalls from bootrecord asm.emitLAddr(KLUDGE_TI_REG, VM_Entrypoints.sysVirtualProcessorYieldIPField.getOffset(), S1); // load addr of function asm.emitMTLR (KLUDGE_TI_REG); asm.emitBCLRL(); // call sysVirtualProcessorYield in sys.C asm.emitMR (JTOC, PROCESSOR_REGISTER); // restore JTOC // restore the saved volatile GPRs 3-10 and FPRs 1-6 offset = STACKFRAME_HEADER_SIZE; // restore volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitLAddr (i, offset, FP); offset+=BYTES_IN_ADDRESS; } // restore volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitLFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitB (retryLoop); // br back to label0 to try lwarx again // NOW_IN_JAVA: // JTOC, and PR are all as Jikes RVM expects them; // params are where the Jikes RVM calling conventions expects them. // frInJava.resolve(asm); // get pointer to top java frame from JNIEnv, compute offset from current // frame pointer (offset to avoid more interior pointers) and save offset // in this glue frame // asm.emitLAddr (S0, VM_Entrypoints.JNITopJavaFPField.getOffset(), T0); // get addr of top java frame from JNIEnv asm.emitSUBFC (S0, FP, S0); // S0 <- offset from current FP // AIX -4, LINUX - 8 asm.emitSTW(S0, JNI_GLUE_FRAME_SIZE + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // store offset at end of glue frame // BRANCH TO THE PROLOG FOR THE JNI FUNCTION VM_ForwardReference frNormalPrologue = asm.emitForwardBL(); // relative branch and link past the following epilog, to the normal prolog of the method // the normal epilog of the method will return to the epilog here to pop the glue stack frame // RETURN TO HERE FROM EPILOG OF JNI FUNCTION // CAUTION: START OF EPILOG OF GLUE CODE // The section of code from here to "END OF EPILOG OF GLUE CODE" is nestled between // the glue code prolog and the real body of the JNI method. // T0 & T1 (R3 & R4) or F1 contain the return value from the function - DO NOT USE // assume: JTOC and PROCESSOR_REG are valid, and all RVM non-volatile // GPRs and FPRs have been restored. Our processor state will be IN_JAVA. // establish T2 -> current thread's VM_JNIEnvironment, from activeThread field // of current processor asm.emitLAddr(T2, VM_Entrypoints.activeThreadField.getOffset(), PROCESSOR_REGISTER); // T2 <- activeThread of PR asm.emitLAddr(T2, VM_Entrypoints.jniEnvField.getOffset(), T2); // T2 <- JNIEnvironment // before returning to C, set pointer to top java frame in JNIEnv, using offset // saved in this glue frame during transition from C to Java. GC will use this saved // frame pointer if it is necessary to do GC with a processors active thread // stuck (and blocked) in native C, ie. GC starts scanning the threads stack at that frame. // AIX -4, LINUX -8 asm.emitLInt (T3, JNI_GLUE_FRAME_SIZE + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // load offset from FP to top java frame asm.emitADD (T3, FP, T3); // T3 <- address of top java frame asm.emitSTAddr(T3, VM_Entrypoints.JNITopJavaFPField.getOffset(), T2); // store TopJavaFP back into JNIEnv // check to see if this frame address is the sentinel since there may be no further Java frame below asm.emitCMPAddr(T3, VM_Constants.STACKFRAME_SENTINEL_FP.toInt()); VM_ForwardReference fr4 = asm.emitForwardBC(EQ); asm.emitLAddr(S0, 0, T3); // get fp for caller of prev J to C transition frame fr4.resolve(asm); // store current PR into VM_JNIEnvironment; we may have switched PRs while in Java mode. asm.emitSTAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), T2); // change the state of the VP to IN_NATIVE. // asm.emitLVAL (S0, VM_Processor.IN_NATIVE); asm.emitSTW (S0, VM_Entrypoints.vpStatusField.getOffset(), PROCESSOR_REGISTER); // Restore those AIX nonvolatile registers saved in the prolog above // Here we only save & restore ONLY those registers not restored by RVM // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_OS_NONVOLATILE_GPR; i < FIRST_NONVOLATILE_GPR; i++) { asm.emitLAddr (i, offset, FP); // 4 instructions offset += BYTES_IN_ADDRESS; } for (int i = FIRST_OS_NONVOLATILE_FPR; i < FIRST_NONVOLATILE_FPR; i++) { asm.emitLFD (i, offset, FP); // 2 instructions offset +=BYTES_IN_DOUBLE; } // pop frame asm.emitADDI(FP, JNI_GLUE_FRAME_SIZE, FP); // load return address & return to caller // T0 & T1 (or F1) should still contain the return value // asm.emitLAddr(T2, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); asm.emitMTLR(T2); asm.emitBCLR (); // branch always, through link register // END OF EPILOG OF GLUE CODE; rest of method generated by VM_Compiler from bytecodes of method in VM_JNIFunctions frNormalPrologue.resolve(asm); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/8ecfb20f603ce748fb0f904bc9e642e3eff76b6b/VM_JNICompiler.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2103,
21308,
344,
1085,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
312,
451,
13,
288,
565,
509,
1384,
31,
565,
20415,
18,
18356,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
21308,
344,
1085,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
312,
451,
13,
288,
565,
509,
1384,
31,
565,
20415,
18,
18356,
... | ||
layout.draw(currentNode,outlineLayoutManager.TEXT); | layout.draw(currentNode,OutlineLayoutManager.TEXT); | private void moveLeft(TreeContext tree, outlineLayoutManager layout) { Node currentNode = textArea.node; // Update Preferred Caret Position tree.doc.setPreferredCaretPosition(textArea.getCaretPosition() - 1); // Record the CursorPosition only since the EditingNode should not have changed tree.setCursorPosition(textArea.getCaretPosition() - 1); // Redraw and Set Focus if this node is currently offscreen if (!currentNode.isVisible()) { layout.draw(currentNode,outlineLayoutManager.TEXT); } } | 49473 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49473/2361eab2eca8fbf91d8b2ce4fb68e843e088736a/TextKeyListener.java/clean/outliner/src/com/organic/maynard/outliner/TextKeyListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3635,
3910,
12,
2471,
1042,
2151,
16,
16363,
3744,
1318,
3511,
13,
288,
202,
202,
907,
13425,
273,
977,
5484,
18,
2159,
31,
202,
202,
759,
2315,
2962,
4193,
385,
20731,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3635,
3910,
12,
2471,
1042,
2151,
16,
16363,
3744,
1318,
3511,
13,
288,
202,
202,
907,
13425,
273,
977,
5484,
18,
2159,
31,
202,
202,
759,
2315,
2962,
4193,
385,
20731,
... |
if (log.isInfoEnabled()) { log.info(writeDebug()); | if (log.isFatalEnabled()) { log.fatal(writeDebug()); | public CSMART() { setTitle("CSMART"); createLog(); // Write initial CSMART info to the log file if (log.isInfoEnabled()) { log.info(writeDebug()); } resultDir = initResultDir(); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); // set-up file menu which includes entries based on workspace selection fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Create new workspace or quit."); fileMenu.addMenuListener(myMenuListener); JMenuItem newMenuItem = new JMenuItem(NEW_MENU_ITEM); newMenuItem.addActionListener(this); newMenuItem.setToolTipText("Create a new workspace."); fileMenu.add(newMenuItem); JMenuItem newResultsMenuItem = new JMenuItem(NEW_RESULTS_MENU_ITEM); newResultsMenuItem.addActionListener(this); newResultsMenuItem.setToolTipText("Select a directory for saving results"); fileMenu.add(newResultsMenuItem); newExperimentMenu = new JMenu(ActionUtil.NEW_EXPERIMENT_ACTION); for (int i = 0; i < newExperimentActions.length; i++) newExperimentMenu.add(newExperimentActions[i]); fileMenu.add(newExperimentMenu); newRecipeMenu = new JMenu(ActionUtil.NEW_RECIPE_ACTION); for (int i = 0; i < newRecipeActions.length; i++) newRecipeMenu.add(newRecipeActions[i]); fileMenu.add(newRecipeMenu); newSocietyMenuItem = new JMenuItem("New Society"); newSocietyMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.newSociety(); } }); newSocietyMenuItem.setEnabled(false); // disable creating built-in societies fileMenu.add(newSocietyMenuItem); newFolderMenuItem = new JMenuItem(ActionUtil.NEW_FOLDER_ACTION); newFolderMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.newFolder(); } }); fileMenu.add(newFolderMenuItem); fileMenu.addSeparator(); configureMenuItem = new JMenuItem(ActionUtil.CONFIGURE_ACTION); configureMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.startBuilder(); } }); fileMenu.add(configureMenuItem); buildMenuItem = new JMenuItem(ActionUtil.BUILD_ACTION); buildMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.startExperimentBuilder(); } }); fileMenu.add(buildMenuItem); runMenuItem = new JMenuItem(ActionUtil.RUN_ACTION); runMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.startConsole(); } }); fileMenu.add(runMenuItem); duplicateMenuItem = new JMenuItem(ActionUtil.DUPLICATE_ACTION); duplicateMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.duplicate(); } }); fileMenu.add(duplicateMenuItem); deleteMenuItem = new JMenuItem(ActionUtil.DELETE_ACTION); deleteMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.delete(); } }); fileMenu.add(deleteMenuItem); deleteExperimentFromDatabaseMenuItem = new JMenuItem(ActionUtil.DELETE_EXPERIMENT_FROM_DATABASE_ACTION); deleteExperimentFromDatabaseMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.deleteExperimentFromDatabase(); } }); fileMenu.add(deleteExperimentFromDatabaseMenuItem); deleteRecipeFromDatabaseMenuItem = new JMenuItem(ActionUtil.DELETE_RECIPE_FROM_DATABASE_ACTION); deleteRecipeFromDatabaseMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.deleteRecipeFromDatabase(); } }); fileMenu.add(deleteRecipeFromDatabaseMenuItem); renameMenuItem = new JMenuItem(ActionUtil.RENAME_ACTION); renameMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.rename(); } }); fileMenu.add(renameMenuItem); saveToDatabaseMenuItem = new JMenuItem(ActionUtil.SAVE_TO_DATABASE_ACTION); saveToDatabaseMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.saveRecipe(); } }); fileMenu.add(saveToDatabaseMenuItem); fileMenu.addSeparator(); JMenuItem exitMenuItem = new JMenuItem(EXIT_MENU_ITEM); exitMenuItem.addActionListener(this); exitMenuItem.setToolTipText("Exit"); fileMenu.add(exitMenuItem); windowMenu = new JMenu(WINDOW_MENU); windowMenu.setToolTipText("Display selected window."); JMenu helpMenu = new JMenu(HELP_MENU); for (int i = 0; i < helpMenuItems.length; i++) { JMenuItem mItem = new JMenuItem(helpMenuItems[i]); mItem.addActionListener(this); helpMenu.add(mItem); } menuBar.add(fileMenu); menuBar.add(windowMenu); menuBar.add(helpMenu); toolBar = new JToolBar(); toolBar.setLayout(new GridLayout(1, 5, 2, 2)); getContentPane().add("North", toolBar); organizer = new Organizer(this); organizer.addTreeSelectionListener(this); getContentPane().add("Center", organizer); for (int i = 0; i < views.length; i++) { JButton button = makeButton(views[i], iconFilenames[i]); button.setHorizontalTextPosition(JButton.CENTER); button.setVerticalTextPosition(JButton.BOTTOM); button.setActionCommand(views[i]); button.addActionListener(this); button.setToolTipText(tooltips[i]); toolBar.add(button); } enableCSMARTTools(); // if user closes this window, quit addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { exit(); } }); NamedFrame.getNamedFrame().addObserver(this); pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int w = getWidth(); int h = getHeight(); setSize(w, h); setLocation((screenSize.width - w)/2, (screenSize.height - h)/2); setVisible(true); } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/dcd79c6725c97d33bf8748edc006100e7841feb5/CSMART.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/viewer/CSMART.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6761,
49,
4928,
1435,
288,
565,
14109,
2932,
4596,
49,
4928,
8863,
565,
752,
1343,
5621,
565,
368,
2598,
2172,
6761,
49,
4928,
1123,
358,
326,
613,
585,
565,
309,
261,
1330,
18,
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,
282,
1071,
6761,
49,
4928,
1435,
288,
565,
14109,
2932,
4596,
49,
4928,
8863,
565,
752,
1343,
5621,
565,
368,
2598,
2172,
6761,
49,
4928,
1123,
358,
326,
613,
585,
565,
309,
261,
1330,
18,
2... |
return more; | return true; | public synchronized boolean next(Writable key, Writable val) throws IOException { if (val.getClass() != valClass) throw new IOException("wrong value class: "+val+" is not "+valClass); boolean more = next(key); if (more) { getCurrentValue(val); } return more; } | 49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/05b2606a90f0171398cd8721aab629b675ff243f/SequenceFile.java/buggy/src/java/org/apache/hadoop/io/SequenceFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
1024,
12,
12061,
498,
16,
14505,
1244,
13,
1377,
1216,
1860,
288,
1377,
309,
261,
1125,
18,
588,
797,
1435,
480,
1244,
797,
13,
3639,
604,
394,
1860,
2932,
21530,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
1024,
12,
12061,
498,
16,
14505,
1244,
13,
1377,
1216,
1860,
288,
1377,
309,
261,
1125,
18,
588,
797,
1435,
480,
1244,
797,
13,
3639,
604,
394,
1860,
2932,
21530,
460,
... |
public OMGraphicList loadFile() throws IOException, MIFException { float[] ptarray = null; //Used by region to do the polygon calculation float[] latpts = null; float[] lonpts = null; //Specifies the expected next action in the loop int action = PROCESS_HEADER; int number = 0; int count = 0; int multiple = 0; int multicnt = 0; //setting to true means we don't read the same line again boolean pushback; String empty = ""; StringTokenizer st = null; String tok = null; pushback = false; int idx; OMPoly omp = null; OMLine oml = null; MIFPoint ompoint = null; OMText omtext = null; boolean ismultiple = false; OMGraphicList aList = new OMGraphicList(); // a vector of omgraphics for regions that allows adding and // deleting Vector omgs = new Vector(); MAIN_LOOP: while (true) { if (!pushback) { //if it's null then there's no more if ((st = getTokens(br)) == null) break MAIN_LOOP; tok = st.nextToken(); } else { pushback = false; //pushback was true so make it // false so it doesn't happen twice } SWITCH: switch (action) { case PROCESS_HEADER: if (isSame(tok, DATA_WORD)) { action = PROCESS_DATA; } else if (isSame(tok, VERSION_WORD)) { } else if (isSame(tok, DELIMITER_WORD)) { } else if (isSame(tok, COORDSYS_WORD)) { //check the CoordSys header, OpenMap only // directly //supports LatLong type of coordsys String coordSysLine = COORDSYS_WORD; while (st.hasMoreElements()) { coordSysLine += " " + st.nextElement(); } String goodCoordSys = COORDSYS_WORD + " " + LATLONG_COORDSYS_DEF; if (goodCoordSys.length() < coordSysLine.length()) { coordSysLine = coordSysLine.substring(0, goodCoordSys.length()); } else { goodCoordSys = goodCoordSys.substring(0, coordSysLine.length()); } //check that the CoordSys header matches the MIF //specification for LatLong type if (!isSame(coordSysLine, goodCoordSys)) { Debug.error("MIFLoader file has coordinate system: " + coordSysLine + ", requires " + goodCoordSys); //raise error, as the coordsys header was // invalid throw new MIFException("File appears to contain objects with an incompatible coordinate system (Must be Lat/Lon)."); } } break SWITCH; case PROCESS_DATA: omgs.clear(); if (isSame(tok, PLINE_WORD)) { tok = st.nextToken(); if (isSame(tok, MULTIPLE_WORD)) { multiple = Integer.parseInt(st.nextToken()); multicnt = 0; action = PROCESS_MULTIPLE; ismultiple = true; } else { number = Integer.parseInt(tok); ptarray = new float[number + number]; count = 0; action = PROCESS_PLINE; } } else if (isSame(tok, REGION_WORD)) { multiple = Integer.parseInt(st.nextToken()); multicnt = 0; action = PROCESS_REGION_HEADER; } else if (isSame(tok, LINE_WORD)) { float lon1 = Float.parseFloat(st.nextToken()); float lat1 = Float.parseFloat(st.nextToken()); float lon2 = Float.parseFloat(st.nextToken()); float lat2 = Float.parseFloat(st.nextToken()); oml = new OMLine(lat1, lon1, lat2, lon2, OMGraphicConstants.LINETYPE_STRAIGHT); action = PROCESS_POST_LINE; } else if (isSame(tok, POINT_WORD)) //handle a MIF // POINT primitive { //get the coordinates float lon1 = Float.parseFloat(st.nextToken()); float lat1 = Float.parseFloat(st.nextToken()); //construct the OM graphic ompoint = new MIFPoint(lat1, lon1, pointVisible); st = getTokens(br); //set the graphics attributes this.processSymbolWord(st, ompoint); //add to the graphic list for this layer aList.add(ompoint); action = PROCESS_DATA; } else if (isSame(tok, TEXT_WORD)) //handle a MIF // TEXT primitive { String textString = ""; //if the actual text is not on the same line as // the primitive declaration if (st.countTokens() < 1) { //get the next line st = getTokens(br); } //build up the display text string, while (st.hasMoreTokens()) { textString += st.nextToken(); } if (textString.length() >= 1) { //remove any surrounding " characters textString = textString.substring(1, textString.length() - 1); } //get the next line, it contains the coordinates st = getTokens(br); float lon1 = Float.parseFloat(st.nextToken()); float lat1 = Float.parseFloat(st.nextToken()); float lon2 = Float.parseFloat(st.nextToken()); float lat2 = Float.parseFloat(st.nextToken()); //create the OMGraphic for the text object omtext = new MIFText(lat1, lon1, textString, OMText.JUSTIFY_CENTER, textVisible); //the next line contains the text attributes st = getTokens(br); //set the attributes agains the omgraphic this.processFontWord(st, omtext); //add to the layers graphic list aList.add(omtext); action = PROCESS_DATA; } break SWITCH; //We have a line, tok is the first coord and the next //token is the second case PROCESS_PLINE: idx = count + count; ptarray[idx + 1] = Float.parseFloat(tok); ptarray[idx] = Float.parseFloat(st.nextToken()); count++; if (count == number) { omp = new OMPoly(ptarray, OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_STRAIGHT); aList.add(omp); if (!ismultiple) { action = PROCESS_POST_PLINE; } else { omgs.add(omp); action = PROCESS_MULTIPLE; } } break SWITCH; case PROCESS_MULTIPLE: multicnt++; if (multicnt > multiple) { //No more multiples so we // can pushback pushback = true; multiple = 0; action = PROCESS_POST_PLINE; break SWITCH; } number = Integer.parseInt(tok); count = 0; ptarray = new float[number + number]; action = PROCESS_PLINE; break SWITCH; case PROCESS_POST_PLINE: if (isSame(tok, PEN_WORD)) { if (ismultiple) { processPenWord(st, omgs); } else { processPenWord(st, omp); } } else if (isSame(tok, SMOOTH_WORD)) { //Smooth unimplemented } else { ismultiple = false; pushback = true; action = PROCESS_DATA; } break SWITCH; // SCN to support lines case PROCESS_POST_LINE: if (isSame(tok, PEN_WORD)) { processPenWord(st, oml); aList.add(oml); } else { ismultiple = false; pushback = true; action = PROCESS_DATA; } break SWITCH; case PROCESS_REGION_HEADER: //This processes the number // at the top of each region // sub-block multicnt++; if (multicnt > multiple) { multiple = 0; action = PROCESS_POST_REGION; //Add this point the region is finished so add // the //vector contents to list int len = omgs.size(); for (int i = 0; i < len; i++) { aList.add((OMGraphic) omgs.elementAt(i)); } break SWITCH; } number = Integer.parseInt(tok); count = 0; ptarray = new float[number + number]; latpts = new float[number]; lonpts = new float[number]; action = PROCESS_REGION; break SWITCH; case PROCESS_REGION: idx = count + count; lonpts[count] = ptarray[idx + 1] = Float.parseFloat(tok); latpts[count] = ptarray[idx] = Float.parseFloat(st.nextToken()); count++; if (count == number) { // This polygon is complete so add it and process // the next //Use this code if we just want polygons which is // much //faster if (accurate) { omgs.add(new OMSubtraction(latpts, lonpts)); } else { // Produces accurate MapInfo type rendering // but very // slow with complex regions like streets int end = latpts.length - 1; for (int i = 0; i < end; i++) { omgs.add(new OMLine(latpts[i], lonpts[i], latpts[i + 1], lonpts[i + 1], OMGraphic.LINETYPE_STRAIGHT)); } omgs.add(new OMLine(latpts[end], lonpts[end], latpts[0], lonpts[0], OMGraphic.LINETYPE_STRAIGHT)); } action = PROCESS_REGION_HEADER; } break SWITCH; // There is one pen,brush,center block at the end of a // region case PROCESS_POST_REGION: if (isSame(tok, PEN_WORD)) { processPenWord(st, omgs); } else if (isSame(tok, BRUSH_WORD)) { processBrushWord(st, omgs); } else if (isSame(tok, CENTER_WORD)) { } else { pushback = true; action = PROCESS_DATA; } break SWITCH; } // end of switch } //end of while loop br.close(); return aList; } | 3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/5be2809e80f4e82eea332963d111c7258f1dd7bc/MIFLoader.java/clean/src/openmap/com/bbn/openmap/layer/mif/MIFLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28839,
29459,
682,
26953,
1435,
1216,
1860,
16,
490,
5501,
503,
288,
3639,
1431,
8526,
5818,
1126,
273,
446,
31,
3639,
368,
6668,
635,
3020,
358,
741,
326,
7154,
11096,
3639,
1431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28839,
29459,
682,
26953,
1435,
1216,
1860,
16,
490,
5501,
503,
288,
3639,
1431,
8526,
5818,
1126,
273,
446,
31,
3639,
368,
6668,
635,
3020,
358,
741,
326,
7154,
11096,
3639,
1431,
... | ||
for(int i = 0; i < fileItems.length; ++i) { if(fileItems[i].length() == 0) { | for (int i = 0; i < fileItems.length; ++i) { if (fileItems[i].length() == 0) { | Menubar(Main db) { super(); this.db = db; String[] fileItems = {"Open...", "Run...", "", "Exit"}; String[] fileCmds = {"Open", "Load", "", "Exit"}; char[] fileShortCuts = {'0', 'N', '\0', 'X'}; int[] fileAccelerators = {KeyEvent.VK_O, KeyEvent.VK_N, 0, KeyEvent.VK_Q}; String[] editItems = {"Cut", "Copy", "Paste", "Go to function..."}; char[] editShortCuts = {'T', 'C', 'P', 'F'}; String[] debugItems = {"Break", "Go", "Step Into", "Step Over", "Step Out"}; char[] debugShortCuts = {'B', 'G', 'I', 'O', 'T'}; String[] plafItems = {"Metal", "Windows", "Motif"}; char [] plafShortCuts = {'M', 'W', 'F'}; int[] debugAccelerators = {KeyEvent.VK_PAUSE, KeyEvent.VK_F5, KeyEvent.VK_F11, KeyEvent.VK_F7, KeyEvent.VK_F8, 0, 0}; JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic('F'); JMenu editMenu = new JMenu("Edit"); editMenu.setMnemonic('E'); JMenu plafMenu = new JMenu("Platform"); plafMenu.setMnemonic('P'); JMenu debugMenu = new JMenu("Debug"); debugMenu.setMnemonic('D'); windowMenu = new JMenu("Window"); windowMenu.setMnemonic('W'); for(int i = 0; i < fileItems.length; ++i) { if(fileItems[i].length() == 0) { fileMenu.addSeparator(); } else { JMenuItem item = new JMenuItem(fileItems[i], fileShortCuts[i]); item.setActionCommand(fileCmds[i]); item.addActionListener(this); fileMenu.add(item); if(fileAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(fileAccelerators[i], Event.CTRL_MASK); item.setAccelerator(k); } } } for(int i = 0; i < editItems.length; ++i) { JMenuItem item = new JMenuItem(editItems[i], editShortCuts[i]); item.addActionListener(this); editMenu.add(item); } for(int i = 0; i < plafItems.length; ++i) { JMenuItem item = new JMenuItem(plafItems[i], plafShortCuts[i]); item.addActionListener(this); plafMenu.add(item); } for(int i = 0; i < debugItems.length; ++i) { JMenuItem item = new JMenuItem(debugItems[i], debugShortCuts[i]); item.addActionListener(this); if(debugAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(debugAccelerators[i], 0); item.setAccelerator(k); } if(i != 0) { item.setEnabled(false); } debugMenu.add(item); } breakOnExceptions = new JCheckBoxMenuItem("Break on Exceptions"); breakOnExceptions.setMnemonic('X'); breakOnExceptions.addActionListener(this); breakOnExceptions.setSelected(false); debugMenu.add(breakOnExceptions); add(fileMenu); add(editMenu); //add(plafMenu); add(debugMenu); JMenuItem item; windowMenu.add(item = new JMenuItem("Cascade", 'A')); item.addActionListener(this); windowMenu.add(item = new JMenuItem("Tile", 'T')); item.addActionListener(this); windowMenu.addSeparator(); windowMenu.add(item = new JMenuItem("Console", 'C')); item.addActionListener(this); add(windowMenu); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
490,
275,
373,
297,
12,
6376,
1319,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
1966,
273,
1319,
31,
3639,
514,
8526,
585,
3126,
225,
273,
12528,
3678,
7070,
16,
315,
1997,
7070,
16,
2345... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
490,
275,
373,
297,
12,
6376,
1319,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
1966,
273,
1319,
31,
3639,
514,
8526,
585,
3126,
225,
273,
12528,
3678,
7070,
16,
315,
1997,
7070,
16,
2345... |
Graphics g = getGraphics(); | Graphics g = PlotPanel.this.getGraphics(); | public PlotPanel() { setBackground(Color.black); m_InstanceInfoText.setFont(new Font("Monospaced", Font.PLAIN,12)); m_InstanceInfoText.setEditable(false); m_createShape = false; m_shapes = null;//// m_shapePoints = null; m_newMousePos = new Dimension(); m_drawnPoints = new int[getWidth()][getHeight()]; addMouseListener(new MouseAdapter() { /////// public void mousePressed(MouseEvent e) { if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK) { // if (m_sIndex == 0) { //do nothing it will get dealt to in the clicked method } else if (m_sIndex == 1) { m_createShape = true; m_shapePoints = new FastVector(5); m_shapePoints.addElement(new Double(m_sIndex)); m_shapePoints.addElement(new Double(e.getX())); m_shapePoints.addElement(new Double(e.getY())); m_shapePoints.addElement(new Double(e.getX())); m_shapePoints.addElement(new Double(e.getY())); Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawRect(((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(2)).intValue(), ((Double)m_shapePoints.elementAt(3)).intValue() - ((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(4)).intValue() - ((Double)m_shapePoints.elementAt(2)).intValue()); g.dispose(); } //System.out.println("clicked"); } //System.out.println("clicked"); } ////// public void mouseClicked(MouseEvent e) { if ((m_sIndex == 2 || m_sIndex == 3) && (m_createShape || (e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK)) { if (m_createShape) { //then it has been started already. Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK) { m_shapePoints.addElement(new Double(convertToAttribX(e.getX()))); m_shapePoints.addElement(new Double(convertToAttribY(e.getY()))); m_newMousePos.width = e.getX(); m_newMousePos.height = e.getY(); g.drawLine((int)Math.ceil (convertToPanelX (((Double)m_shapePoints. elementAt(m_shapePoints.size() - 2)). doubleValue())), (int)Math.ceil (convertToPanelY (((Double)m_shapePoints. elementAt(m_shapePoints.size() - 1)). doubleValue())), m_newMousePos.width, m_newMousePos.height); } else if (m_sIndex == 3) { //then extend the lines to infinity //(100000 or so should be enough). //the area is selected by where the user right clicks //the mouse button m_createShape = false; if (m_shapePoints.size() >= 5) { double cx = Math.ceil (convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 4)).doubleValue())); double cx2 = Math.ceil (convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)).doubleValue())) - cx; cx2 *= 50000; double cy = Math.ceil (convertToPanelY(((Double)m_shapePoints.elementAt (m_shapePoints.size() - 3)). doubleValue())); double cy2 = Math.ceil (convertToPanelY(((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)). doubleValue())) - cy; cy2 *= 50000; double cxa = Math.ceil(convertToPanelX (((Double)m_shapePoints. elementAt(3)). doubleValue())); double cxa2 = Math.ceil(convertToPanelX (((Double)m_shapePoints. elementAt(1)). doubleValue())) - cxa; cxa2 *= 50000; double cya = Math.ceil (convertToPanelY (((Double)m_shapePoints.elementAt(4)). doubleValue())); double cya2 = Math.ceil (convertToPanelY (((Double)m_shapePoints.elementAt(2)). doubleValue())) - cya; cya2 *= 50000; m_shapePoints.setElementAt (new Double(convertToAttribX(cxa2 + cxa)), 1); m_shapePoints.setElementAt (new Double(convertToAttribY(cy2 + cy)), m_shapePoints.size() - 1); m_shapePoints.setElementAt (new Double(convertToAttribX(cx2 + cx)), m_shapePoints.size() - 2); m_shapePoints.setElementAt (new Double(convertToAttribY(cya2 + cya)), 2); //determine how infinity line should be built cy = Double.POSITIVE_INFINITY; cy2 = Double.NEGATIVE_INFINITY; if (((Double)m_shapePoints.elementAt(1)). doubleValue() > ((Double)m_shapePoints.elementAt(3)). doubleValue()) { if (((Double)m_shapePoints.elementAt(2)). doubleValue() == ((Double)m_shapePoints.elementAt(4)). doubleValue()) { cy = ((Double)m_shapePoints.elementAt(2)). doubleValue(); } } if (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)).doubleValue() > ((Double)m_shapePoints.elementAt (m_shapePoints.size() - 4)).doubleValue()) { if (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 3)). doubleValue() == ((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)).doubleValue()) { cy2 = ((Double)m_shapePoints.lastElement()). doubleValue(); } } m_shapePoints.addElement(new Double(cy)); m_shapePoints.addElement(new Double(cy2)); if (!inPolyline(m_shapePoints, convertToAttribX (e.getX()), convertToAttribY(e.getY()))) { Double tmp = (Double)m_shapePoints. elementAt(m_shapePoints.size() - 2); m_shapePoints.setElementAt (m_shapePoints.lastElement(), m_shapePoints.size() - 2); m_shapePoints.setElementAt (tmp, m_shapePoints.size() - 1); } if (m_shapes == null) { m_shapes = new FastVector(4); } m_shapes.addElement(m_shapePoints); m_submit.setText("Submit"); m_submit.setActionCommand("Submit"); m_submit.setEnabled(true); } m_shapePoints = null; repaint(); } else { //then close the shape m_createShape = false; if (m_shapePoints.size() >= 7) { m_shapePoints.addElement(m_shapePoints.elementAt(1)); m_shapePoints.addElement(m_shapePoints.elementAt(2)); if (m_shapes == null) { m_shapes = new FastVector(4); } m_shapes.addElement(m_shapePoints); m_submit.setText("Submit"); m_submit.setActionCommand("Submit"); m_submit.setEnabled(true); } m_shapePoints = null; repaint(); } g.dispose(); //repaint(); } else if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK) { //then this is the first point m_createShape = true; m_shapePoints = new FastVector(17); m_shapePoints.addElement(new Double(m_sIndex)); m_shapePoints.addElement(new Double(convertToAttribX(e.getX()))); //the new point m_shapePoints.addElement(new Double(convertToAttribY(e.getY()))); m_newMousePos.width = e.getX(); //the temp mouse point m_newMousePos.height = e.getY(); Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawLine((int)Math.ceil (convertToPanelX(((Double)m_shapePoints. elementAt(1)).doubleValue())), (int)Math.ceil (convertToPanelY(((Double)m_shapePoints. elementAt(2)).doubleValue())), m_newMousePos.width, m_newMousePos.height); g.dispose(); } } else { if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { searchPoints(e.getX(),e.getY(), false); } else { searchPoints(e.getX(), e.getY(), true); } } } ///////// public void mouseReleased(MouseEvent e) { //System.out.println("rel"); if (m_createShape) { if (((Double)m_shapePoints.elementAt(0)).intValue() == 1) { m_createShape = false; Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawRect(((Double)m_shapePoints.elementAt(1)). intValue(), ((Double)m_shapePoints.elementAt(2)).intValue(), ((Double)m_shapePoints.elementAt(3)).intValue() - ((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(4)).intValue() - ((Double)m_shapePoints.elementAt(2)).intValue()); g.dispose(); if (checkPoints(((Double)m_shapePoints.elementAt(1)). doubleValue(), ((Double)m_shapePoints.elementAt(2)). doubleValue()) && checkPoints(((Double)m_shapePoints.elementAt(3)). doubleValue(), ((Double)m_shapePoints.elementAt(4)). doubleValue())) { //then the points all land on the screen //now do special check for the rectangle if (((Double)m_shapePoints.elementAt(1)).doubleValue() < ((Double)m_shapePoints.elementAt(3)).doubleValue() && ((Double)m_shapePoints.elementAt(2)).doubleValue() < ((Double)m_shapePoints.elementAt(4)).doubleValue()) { //then the rectangle is valid if (m_shapes == null) { m_shapes = new FastVector(2); } m_shapePoints.setElementAt(new Double(convertToAttribX(((Double)m_shapePoints. elementAt(1)). doubleValue())), 1); m_shapePoints.setElementAt(new Double(convertToAttribY(((Double)m_shapePoints. elementAt(2)). doubleValue())), 2); m_shapePoints.setElementAt(new Double(convertToAttribX(((Double)m_shapePoints. elementAt(3)). doubleValue())), 3); m_shapePoints.setElementAt(new Double(convertToAttribY(((Double)m_shapePoints. elementAt(4)). doubleValue())), 4); m_shapes.addElement(m_shapePoints); m_submit.setText("Submit"); m_submit.setActionCommand("Submit"); m_submit.setEnabled(true); repaint(); } } m_shapePoints = null; } } } }); addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(MouseEvent e) { //check if the user is dragging a box if (m_createShape) { if (((Double)m_shapePoints.elementAt(0)).intValue() == 1) { Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawRect(((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(2)).intValue(), ((Double)m_shapePoints.elementAt(3)).intValue() - ((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(4)).intValue() - ((Double)m_shapePoints.elementAt(2)).intValue()); m_shapePoints.setElementAt(new Double(e.getX()), 3); m_shapePoints.setElementAt(new Double(e.getY()), 4); g.drawRect(((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(2)).intValue(), ((Double)m_shapePoints.elementAt(3)).intValue() - ((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(4)).intValue() - ((Double)m_shapePoints.elementAt(2)).intValue()); g.dispose(); } } } public void mouseMoved(MouseEvent e) { if (m_createShape) { if (((Double)m_shapePoints.elementAt(0)).intValue() == 2 || ((Double)m_shapePoints.elementAt(0)).intValue() == 3) { Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawLine((int)Math.ceil(convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)). doubleValue())), (int)Math.ceil(convertToPanelY (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)). doubleValue())), m_newMousePos.width, m_newMousePos.height); m_newMousePos.width = e.getX(); m_newMousePos.height = e.getY(); g.drawLine((int)Math.ceil(convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)). doubleValue())), (int)Math.ceil(convertToPanelY (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)). doubleValue())), m_newMousePos.width, m_newMousePos.height); g.dispose(); } } } }); m_submit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("Submit")) { if (m_splitListener != null && m_shapes != null) { //then send the split to the listener Instances sub_set1 = new Instances(m_plotInstances, 500); Instances sub_set2 = new Instances(m_plotInstances, 500); if (m_plotInstances != null) { for (int noa = 0 ; noa < m_plotInstances.numInstances(); noa++) { if (!m_plotInstances.instance(noa).isMissing(m_xIndex) && !m_plotInstances.instance(noa).isMissing(m_yIndex)){ if (inSplit(m_plotInstances.instance(noa))) { sub_set1.add(m_plotInstances.instance(noa)); } else { sub_set2.add(m_plotInstances.instance(noa)); } } } FastVector tmp = m_shapes; cancelShapes(); m_splitListener.userDataEvent(new VisualizePanelEvent(tmp, sub_set1, sub_set2, m_xIndex, m_yIndex)); } } else if (m_shapes != null && m_plotInstances != null) { Instances sub_set1 = new Instances(m_plotInstances, 500); int count = 0; for (int noa = 0 ; noa < m_plotInstances.numInstances(); noa++) { if (inSplit(m_plotInstances.instance(noa))) { sub_set1.add(m_plotInstances.instance(noa)); count++; } } double [] nPreds = null; int x = m_xIndex; int y = m_yIndex; //boolean p = m_predsNumeric; if (m_origInstances == null) { //this sets these instances as the instances //to go back to. m_origInstances = m_plotInstances; } if (m_origPreds == null && m_preds != null) { m_origPreds = m_preds; } if (m_preds != null && count > 0) { nPreds = new double[m_origInstances.numInstances()]; count = 0; for (int noa = 0; noa < m_plotInstances.numInstances(); noa++) { if (inSplit(m_plotInstances.instance(noa))) { //System.out.println(m_preds[noa]); nPreds[count] = m_preds[noa]; count++; } } } cancelShapes(); VisualizePanel.this.setInstances(sub_set1); if (m_preds != null) { VisualizePanel.this.setPredictions(nPreds); //VisualizePanel.this.setPredictionsNumeric(p); } try { VisualizePanel.this.setXIndex(x); VisualizePanel.this.setYIndex(y); } catch(Exception er) { System.out.println("Error : " + er); // System.out.println("Part of user input so had to" + // " catch here"); } } } else if (e.getActionCommand().equals("Reset")) { int x = m_xIndex; int y = m_yIndex; //boolean p = m_predsNumeric; VisualizePanel.this.setInstances(m_origInstances); if (m_origPreds != null) { VisualizePanel.this.setPredictions(m_origPreds); //VisualizePanel.this.setPredictionsNumeric(p); } try { VisualizePanel.this.setXIndex(x); VisualizePanel.this.setYIndex(y); } catch(Exception er) { System.out.println("Error : " + er); } } } }); m_cancel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { cancelShapes(); repaint(); } }); //////////// } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/dab572c119692e2deb0fa2d817b347c7cfe42ded/VisualizePanel.java/buggy/gui/explorer/VisualizePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15211,
5537,
1435,
288,
1377,
31217,
12,
2957,
18,
11223,
1769,
1377,
312,
67,
1442,
966,
1528,
18,
542,
5711,
12,
2704,
10063,
2932,
11415,
538,
909,
72,
3113,
10063,
18,
26549,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15211,
5537,
1435,
288,
1377,
31217,
12,
2957,
18,
11223,
1769,
1377,
312,
67,
1442,
966,
1528,
18,
542,
5711,
12,
2704,
10063,
2932,
11415,
538,
909,
72,
3113,
10063,
18,
26549,
16... |
if ("jonathan".equalsIgnoreCase(username) && "password".equalsIgnoreCase(password)) | if ("wicket".equalsIgnoreCase(username) && "wicket".equalsIgnoreCase(password)) | public final boolean authenticate(final String username, final String password) { if (user == null) { // Trivial password "db" if ("jonathan".equalsIgnoreCase(username) && "password".equalsIgnoreCase(password)) { user = username; } } return user != null; } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/e5b6ea7264df5ca6c3fdf6fdaea57c346b17286d/SignIn2Session.java/buggy/wicket-examples/src/java/wicket/examples/signin2/SignIn2Session.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
8929,
12,
6385,
514,
2718,
16,
727,
514,
2201,
13,
202,
95,
202,
202,
430,
261,
1355,
422,
446,
13,
202,
202,
95,
1082,
202,
759,
840,
20109,
2201,
315,
1966,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
8929,
12,
6385,
514,
2718,
16,
727,
514,
2201,
13,
202,
95,
202,
202,
430,
261,
1355,
422,
446,
13,
202,
202,
95,
1082,
202,
759,
840,
20109,
2201,
315,
1966,
6,
... |
model.getLineText(currentLineIndex,currentLine); | if(count != 0) { currentLineIndex++; model.getLineText(currentLineIndex,currentLine); } | protected int paintLine(TextAreaModel model, Graphics gfx, int x, int y) { TokenMarker tokenMarker = model.getTokenMarker(); Font defaultFont = getFont(); Color defaultColor = getForeground(); /* Clear the line's bounding rectangle */ FontMetrics fm = getFontMetrics(); int gap = fm.getMaxDescent() + fm.getLeading(); gfx.setColor(getBackground()); gfx.fillRect(0,y + gap,offImg.getWidth(this),fm.getHeight()); gfx.setFont(defaultFont); if(currentLineIndex < 0 || currentLineIndex >= model.getLineCount()) { gfx.setColor(defaultColor); gfx.drawString("~",0,y + model.getLineHeight()); return 1; } // Get the text model.getLineText(currentLineIndex,currentLine); // draw the highlights if(currentLineIndex >= model.getSelectionStartLine() && currentLineIndex <= model.getSelectionEndLine()) paintLineHighlight(model,gfx,y); if(bracketHighlight && currentLineIndex == model.getBracketLine()) paintBracketHighlight(model,gfx,y); gfx.setColor(defaultColor); if(tokenMarker == null) { paintPlainLine(model,gfx,defaultFont,defaultColor, x,y + model.getLineHeight()); return 1; } else { int count = 0; int lastVisibleLine = textArea.getFirstLine() + textArea.getVisibleLines(); do { model.getLineText(currentLineIndex,currentLine); currentLineTokens = tokenMarker.markTokens( currentLine,currentLineIndex); currentLineIndex++; if(currentLineIndex <= lastVisibleLine) { y += model.getLineHeight(); paintSyntaxLine(model,gfx,defaultFont, defaultColor,x,y); } count++; } while(tokenMarker.isNextLineRequested()); return count; } } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/88d53e8796c174dd5c1aa895cc2331dfab553744/TextAreaPainter.java/clean/org/gjt/sp/jedit/textarea/TextAreaPainter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
12574,
1670,
12,
1528,
5484,
1488,
938,
16,
16830,
30940,
16,
202,
202,
474,
619,
16,
509,
677,
13,
202,
95,
202,
202,
1345,
7078,
1147,
7078,
273,
938,
18,
588,
1345,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
12574,
1670,
12,
1528,
5484,
1488,
938,
16,
16830,
30940,
16,
202,
202,
474,
619,
16,
509,
677,
13,
202,
95,
202,
202,
1345,
7078,
1147,
7078,
273,
938,
18,
588,
1345,
... |
newRubyClass.defineSingletonMethod("new", new RubyCallbackMethod() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { try { Object value = c.newInstance(); RubyJavaObject javaObject = new RubyJavaObject(ruby, (RubyModule)recv, value); javaObject.callInit(args); return javaObject; } catch (Exception excptn) { } return ruby.getNil(); } }); | RubyClass newRubyClass = ruby.defineClass(rubyName, (RubyClass)ruby.getRubyClass("JavaObject")); newRubyClass.defineSingletonMethod("new", new JavaConstructor(c.getConstructors())); Iterator iter = methodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); methods = (Method[])((List)entry.getValue()).toArray(new Method[((List)entry.getValue()).size()]); newRubyClass.defineMethod((String)entry.getKey(), new JavaMethod(methods)); } iter = singletonMethodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); methods = (Method[])((List)entry.getValue()).toArray(new Method[((List)entry.getValue()).size()]); newRubyClass.defineSingletonMethod((String)entry.getKey(), new JavaMethod(methods, true)); } | public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getString(); } try { final Class c = Class.forName(javaName); final RubyClass newRubyClass = ruby.defineClass(rubyName, (RubyClass)ruby.getRubyClass("JavaObject")); Method[] methods = c.getMethods(); for (int i = 0; i < methods.length; i++) { String methodName = methods[i].getName(); if (methods[i].getDeclaringClass() != Object.class) { newRubyClass.defineMethod(methodName, new JavaReflectionMethod(methods[i])); } } newRubyClass.defineSingletonMethod("new", new RubyCallbackMethod() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { try { Object value = c.newInstance(); RubyJavaObject javaObject = new RubyJavaObject(ruby, (RubyModule)recv, value); javaObject.callInit(args); return javaObject; } catch (Exception excptn) { } return ruby.getNil(); } }); return newRubyClass; } catch (ClassNotFoundException cnfExcptn) { throw new RubyNameException("cannot found Java class: " + javaName); } catch (SecurityException sExcptn) { } return ruby.getNil(); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/241a0fe060c8d239aa9e5d2519e98cf44d69a201/RubyJavaObject.java/buggy/org/jruby/RubyJavaObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
921,
312,
67,
945,
67,
1106,
12,
54,
10340,
22155,
16,
19817,
3120,
22155,
797,
16,
19817,
780,
2658,
16,
19817,
921,
8526,
833,
13,
288,
3639,
514,
2252,
461,
273,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
921,
312,
67,
945,
67,
1106,
12,
54,
10340,
22155,
16,
19817,
3120,
22155,
797,
16,
19817,
780,
2658,
16,
19817,
921,
8526,
833,
13,
288,
3639,
514,
2252,
461,
273,
26... |
readInputAsSAX(pipelineContext, INPUT_CONFIG, new XIncludeContentHandler(pipelineContext, contentHandler, uriReferences, uriResolver)); | readInputAsSAX(pipelineContext, INPUT_CONFIG, new XIncludeContentHandler(pipelineContext, debugContentHandler, uriReferences, uriResolver)); | public ProcessorOutput createOutput(final String name) { final ProcessorOutput output = new URIProcessorOutputImpl(getClass(), name, INPUT_CONFIG) { public void readImpl(final PipelineContext pipelineContext, final ContentHandler contentHandler) {// final ContentHandler debugContentHandler = new SAXDebuggerProcessor.DebugContentHandler(contentHandler); final TransformerURIResolver uriResolver = new TransformerURIResolver(XIncludeProcessor.this, pipelineContext, INPUT_CONFIG, false); // Try to cache URI references final boolean[] wasRead = { false }; readCacheInputAsObject(pipelineContext, getInputByName(INPUT_CONFIG), new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { final URIReferences uriReferences = new URIReferences(); readInputAsSAX(pipelineContext, INPUT_CONFIG, new XIncludeContentHandler(pipelineContext, contentHandler, uriReferences, uriResolver)); wasRead[0] = true; return uriReferences; } }); // Read if not already read if (!wasRead[0]) { readInputAsSAX(pipelineContext, INPUT_CONFIG, new XIncludeContentHandler(pipelineContext, contentHandler, null, uriResolver)); } } }; addOutput(name, output); return output; } | 10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/967e0250deb0a048a5e360c810ce72c3a3e888fd/XIncludeProcessor.java/buggy/src/java/org/orbeon/oxf/processor/xinclude/XIncludeProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15476,
1447,
752,
1447,
12,
6385,
514,
508,
13,
288,
3639,
727,
15476,
1447,
876,
273,
394,
3699,
5164,
1447,
2828,
12,
588,
797,
9334,
508,
16,
12943,
67,
7203,
13,
288,
5411,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15476,
1447,
752,
1447,
12,
6385,
514,
508,
13,
288,
3639,
727,
15476,
1447,
876,
273,
394,
3699,
5164,
1447,
2828,
12,
588,
797,
9334,
508,
16,
12943,
67,
7203,
13,
288,
5411,
10... |
return progressRegion; } | return progressRegion; } | public ProgressRegion getProgressRegion() { return progressRegion; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10980,
5165,
3570,
2329,
5165,
1435,
288,
3639,
327,
4007,
5165,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10980,
5165,
3570,
2329,
5165,
1435,
288,
3639,
327,
4007,
5165,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
} else if (type==ClassHelper.double_TYPE) { | } else if (elementType==ClassHelper.double_TYPE) { | public void visitArrayExpression(ArrayExpression expression) { ClassNode type = expression.getElementType(); String typeName = BytecodeHelper.getClassInternalName(type); List sizeExpression = expression.getSizeExpression(); int size=0; int dimensions=0; if (sizeExpression!=null) { for (Iterator iter = sizeExpression.iterator(); iter.hasNext();) { Expression element = (Expression) iter.next(); if (element==ConstantExpression.EMTPY_EXPRESSION) break; dimensions++; // lets convert to an int visitAndAutoboxBoolean(element); asIntMethod.call(cv); } } else { size = expression.getExpressions().size(); helper.pushConstant(size); } int storeIns=AASTORE; if (sizeExpression!=null) { if (!ClassHelper.isPrimitiveType(type)) typeName = "L"+typeName+";"; for (int i=0; i<dimensions; i++) typeName = "["+typeName; cv.visitMultiANewArrayInsn(typeName, dimensions); } else if (ClassHelper.isPrimitiveType(type)) { int primType=0; if (type==ClassHelper.boolean_TYPE) { primType = T_BOOLEAN; storeIns = BASTORE; } else if (type==ClassHelper.char_TYPE) { primType = T_CHAR; storeIns = CASTORE; } else if (type==ClassHelper.float_TYPE) { primType = T_FLOAT; storeIns = FASTORE; } else if (type==ClassHelper.double_TYPE) { primType = T_DOUBLE; storeIns = DASTORE; } else if (type==ClassHelper.byte_TYPE) { primType = T_BYTE; storeIns = BASTORE; } else if (type==ClassHelper.short_TYPE) { primType = T_SHORT; storeIns = SASTORE; } else if (type==ClassHelper.int_TYPE) { primType = T_INT; storeIns=IASTORE; } else if (type==ClassHelper.long_TYPE) { primType = T_LONG; storeIns = LASTORE; } cv.visitIntInsn(NEWARRAY, primType); } else { cv.visitTypeInsn(ANEWARRAY, typeName); } for (int i = 0; i < size; i++) { cv.visitInsn(DUP); helper.pushConstant(i); Expression elementExpression = expression.getExpression(i); if (elementExpression == null) { ConstantExpression.NULL.visit(this); } else { if (!type.equals(elementExpression.getType())) { visitCastExpression(new CastExpression(type, elementExpression, true)); } else { visitAndAutoboxBoolean(elementExpression); } } cv.visitInsn(storeIns); } if (sizeExpression==null && ClassHelper.isPrimitiveType(type)) { int par = compileStack.defineTemporaryVariable("par",true); cv.visitVarInsn(ALOAD, par); } } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/c448a79d80bd30c089fd5bb7b2d7bf586671348e/AsmClassGenerator.java/buggy/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1076,
2300,
12,
1076,
2300,
2652,
13,
288,
3639,
19769,
618,
273,
2652,
18,
588,
17481,
5621,
3639,
514,
8173,
273,
2525,
16651,
2276,
18,
588,
797,
3061,
461,
12,
723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
1076,
2300,
12,
1076,
2300,
2652,
13,
288,
3639,
19769,
618,
273,
2652,
18,
588,
17481,
5621,
3639,
514,
8173,
273,
2525,
16651,
2276,
18,
588,
797,
3061,
461,
12,
723,
... |
public AbstractWizardListPage(String pageName, String title, String description, IWorkbench workbench) { | public AbstractWizardListPage(String pageName, String title, String description, IWorkbench workbench) { | public AbstractWizardListPage(String pageName, String title, String description, IWorkbench workbench) { super(pageName); setTitle(title); setDescription(description); this.workbench = workbench; // set the status for the page listStatus = new Status(IStatus.OK, "not_used", 0, "", null); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f1213ea5e2cf811886d1cddc204b0d844e76584d/AbstractWizardListPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractWizardListPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
27130,
682,
1964,
12,
780,
30398,
16,
514,
2077,
16,
1082,
202,
780,
2477,
16,
467,
2421,
22144,
1440,
22144,
13,
288,
202,
202,
9565,
12,
2433,
461,
1769,
202,
202,
542... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
27130,
682,
1964,
12,
780,
30398,
16,
514,
2077,
16,
1082,
202,
780,
2477,
16,
467,
2421,
22144,
1440,
22144,
13,
288,
202,
202,
9565,
12,
2433,
461,
1769,
202,
202,
542... |
entryType = IIndexEncodingConstants.UNION; | indexer.getOutput().addUnionDecl(getFileNumber(), fullName, lineNumber, 1, ICIndexStorageConstants.LINE); | private void encodeTag(CTagEntry tempTag) { EntryType entryType = null; String kind = (String)tempTag.tagExtensionField.get(KIND); if (kind == null) return; char[][] fullName = getQualifiedName(tempTag); ICSearchConstants.LimitTo type = ICSearchConstants.DECLARATIONS; if (kind.equals(CLASS)){ entryType = IIndexEncodingConstants.CLASS; } else if (kind.equals(MACRO)){ entryType = IIndexEncodingConstants.MACRO; } else if (kind.equals(ENUMERATOR)){ entryType = IIndexEncodingConstants.ENUMERATOR; } else if (kind.equals(FUNCTION)){ entryType = IIndexEncodingConstants.FUNCTION; } else if (kind.equals(ENUM)){ entryType = IIndexEncodingConstants.ENUM; } else if (kind.equals(MEMBER)){ entryType = IIndexEncodingConstants.FIELD; } else if (kind.equals(NAMESPACE)){ entryType = IIndexEncodingConstants.NAMESPACE; } else if (kind.equals(PROTOTYPE)){ entryType = IIndexEncodingConstants.FUNCTION; //type = ICSearchConstants.DEFINITIONS; } else if (kind.equals(STRUCT)){ entryType = IIndexEncodingConstants.STRUCT; } else if (kind.equals(TYPEDEF)){ entryType = IIndexEncodingConstants.TYPEDEF; } else if (kind.equals(UNION)){ entryType = IIndexEncodingConstants.UNION; } else if (kind.equals(VARIABLE)){ entryType = IIndexEncodingConstants.VAR; } else if (kind.equals(EXTERNALVAR)){ } String lineNumber = (String)tempTag.tagExtensionField.get(LINE); if (entryType != null) indexer.getOutput().addRef(getFileNumber(),IndexEncoderUtil.encodeEntry(fullName,entryType,type), Integer.parseInt(lineNumber), 1, ICIndexStorageConstants.LINE); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/cf1d5bf0d12520585deffeb5e217fc8ff5159112/CTagsConsoleParser.java/buggy/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagsConsoleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2017,
1805,
12,
1268,
346,
1622,
1906,
1805,
13,
288,
3639,
3841,
559,
1241,
559,
273,
446,
31,
377,
202,
780,
3846,
273,
261,
780,
13,
5814,
1805,
18,
2692,
3625,
974,
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,
918,
2017,
1805,
12,
1268,
346,
1622,
1906,
1805,
13,
288,
3639,
3841,
559,
1241,
559,
273,
446,
31,
377,
202,
780,
3846,
273,
261,
780,
13,
5814,
1805,
18,
2692,
3625,
974,
18,
... |
if (point == null) | if (point == null) { | public void readRegistry() { if (isInitialized) return; synchronized (this) { if (!isInitialized) { IExtensionPoint point = registry.getExtensionPoint(pluginId, extensionPointId); if (point == null) return; IExtension[] extensions = point.getExtensions(); extensions = orderExtensions(extensions); for (int i = 0; i < extensions.length; i++) readExtension(extensions[i]); isInitialized = true; } } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/RegistryReader.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/RegistryReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
855,
4243,
1435,
288,
202,
202,
430,
261,
291,
11459,
13,
1082,
202,
2463,
31,
202,
202,
22043,
261,
2211,
13,
288,
1082,
202,
430,
16051,
291,
11459,
13,
288,
9506,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
855,
4243,
1435,
288,
202,
202,
430,
261,
291,
11459,
13,
1082,
202,
2463,
31,
202,
202,
22043,
261,
2211,
13,
288,
1082,
202,
430,
16051,
291,
11459,
13,
288,
9506,
202,... |
} else { throw new IllegalArgumentException("illegal character literal"); } } else { | break; } nextChar = (char) scanner.getNextChar(); if (nextChar == -1) { | public char charValue() { String s = getEscapedValue(); int len = s.length(); if (len < 2 || s.charAt(0) != '\'' || s.charAt(len-1) != '\'' ) { throw new IllegalArgumentException(); } char c = s.charAt(1); if (c == '\'') { throw new IllegalArgumentException(); } if (c == '\\') { if (len == 4) { char nextChar = s.charAt(2); switch(nextChar) { case 'b' : return '\b'; case 't' : return '\t'; case 'n' : return '\n'; case 'f' : return '\f'; case 'r' : return '\r'; case '\"': return '\"'; case '\'': return '\''; case '\\': return '\\'; case '0' : return '\0'; case '1' : return '\1'; case '2' : return '\2'; case '3' : return '\3'; case '4' : return '\4'; case '5' : return '\5'; case '6' : return '\6'; case '7' : return '\7'; default: throw new IllegalArgumentException("illegal character literal");//$NON-NLS-1$ } } else if (len == 8) { //handle the case of unicode. int currentPosition = 2; int c1 = 0, c2 = 0, c3 = 0, c4 = 0; if (s.charAt(currentPosition++) == 'u') { if ((c1 = Character.getNumericValue(s.charAt(currentPosition++))) > 15 || c1 < 0 || (c2 = Character.getNumericValue(s.charAt(currentPosition++))) > 15 || c2 < 0 || (c3 = Character.getNumericValue(s.charAt(currentPosition++))) > 15 || c3 < 0 || (c4 = Character.getNumericValue(s.charAt(currentPosition++))) > 15 || c4 < 0){ throw new IllegalArgumentException("illegal character literal");//$NON-NLS-1$ } else { return (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); } } else { throw new IllegalArgumentException("illegal character literal");//$NON-NLS-1$ } } else { throw new IllegalArgumentException("illegal character literal");//$NON-NLS-1$ } } return c; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/521aa9edc795bda5aa1a4708f3c2bdc417b307c1/CharacterLiteral.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CharacterLiteral.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1149,
1149,
620,
1435,
288,
202,
202,
780,
272,
273,
4774,
1017,
5994,
620,
5621,
202,
202,
474,
562,
273,
272,
18,
2469,
5621,
202,
202,
430,
261,
1897,
411,
576,
747,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1149,
1149,
620,
1435,
288,
202,
202,
780,
272,
273,
4774,
1017,
5994,
620,
5621,
202,
202,
474,
562,
273,
272,
18,
2469,
5621,
202,
202,
430,
261,
1897,
411,
576,
747,
272,
... |
if(body instanceof PsiBlockStatement){ final PsiBlockStatement block = (PsiBlockStatement) body; final PsiCodeBlock codeBlock = block.getCodeBlock(); final PsiStatement[] statements = codeBlock.getStatements(); if(statements.length > 0){ return statements[0]; } else{ return null; } } else{ | if (!(body instanceof PsiBlockStatement)) { | private static PsiStatement getFirstStatement(PsiStatement body){ if(body instanceof PsiBlockStatement){ final PsiBlockStatement block = (PsiBlockStatement) body; final PsiCodeBlock codeBlock = block.getCodeBlock(); final PsiStatement[] statements = codeBlock.getStatements(); if(statements.length > 0){ return statements[0]; } else{ return null; } } else{ return body; } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8629082a2f885120180c8da4e7204776468af6a2/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
453,
7722,
3406,
7521,
3406,
12,
52,
7722,
3406,
1417,
15329,
5411,
309,
12,
3432,
1276,
453,
7722,
1768,
3406,
15329,
7734,
727,
453,
7722,
1768,
3406,
1203,
273,
261,
52,
772... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
453,
7722,
3406,
7521,
3406,
12,
52,
7722,
3406,
1417,
15329,
5411,
309,
12,
3432,
1276,
453,
7722,
1768,
3406,
15329,
7734,
727,
453,
7722,
1768,
3406,
1203,
273,
261,
52,
772... |
return ("<parent><child>" + Thread.currentThread() + | return ("<parent><child>" + Thread.currentThread() + | private static String createMessage() { return ("<parent><child>" + Thread.currentThread() + "</child></parent>"); } | 11074 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11074/3cd4e596302501d51e87a446d6154be4c6b165e4/PerfTestPipelineChainImpl.java/buggy/branches/0.3/src/test/java/org/iterx/miru/pipeline/PerfTestPipelineChainImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
514,
23836,
1435,
288,
13491,
327,
225,
7566,
32,
2938,
4438,
3624,
2984,
397,
8227,
4884,
18,
2972,
3830,
1435,
397,
8227,
6823,
3624,
4695,
2938,
2984,
1769,
3639,
289,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
760,
514,
23836,
1435,
288,
13491,
327,
225,
7566,
32,
2938,
4438,
3624,
2984,
397,
8227,
4884,
18,
2972,
3830,
1435,
397,
8227,
6823,
3624,
4695,
2938,
2984,
1769,
3639,
289,
2,
-1... |
result = methodCall.execute( (Interface) ((ComponentBodyImpl) targetBody).getProActiveComponent()); | result = methodCall.execute((Interface) ((ComponentBodyImpl) targetBody).getProActiveComponent()); | protected Object serveInternal(Body targetBody) throws ServeException { if (logger.isDebugEnabled()) { //logger.debug("ComponentRequestImpl.serveInternal : redirecting the call to the component metaobject"); } try { Object result = null; Class target_class = methodCall.getReifiedMethod().getDeclaringClass(); if (target_class.equals(BindingController.class)) { result = methodCall.execute( ((ComponentBodyImpl) targetBody).getProActiveComponent().getFcInterface( Constants.BINDING_CONTROLLER)); } else if (target_class.equals(ContentController.class)) { result = methodCall.execute( ((ComponentBodyImpl) targetBody).getProActiveComponent().getFcInterface( Constants.CONTENT_CONTROLLER)); } else if (target_class.equals(LifeCycleController.class)) { result = methodCall.execute( ((ComponentBodyImpl) targetBody).getProActiveComponent().getFcInterface( Constants.LIFECYCLE_CONTROLLER)); } else if (target_class.equals(ComponentParametersController.class)) { result = methodCall.execute( ((ComponentBodyImpl) targetBody).getProActiveComponent().getFcInterface( Constants.COMPONENT_PARAMETERS_CONTROLLER)); } else if (target_class.equals(AttributeController.class)) { // directly invoke on reified object, as AttributeController is only defined on primitive components result = methodCall.execute(targetBody.getReifiedObject()); } else if (target_class.equals(Interface.class)) { result = methodCall.execute( (Interface) ((ComponentBodyImpl) targetBody).getProActiveComponent()); } else if (target_class.equals(Component.class)) { result = methodCall.execute( ((ComponentBodyImpl) targetBody).getProActiveComponent().getFcInterface( Constants.COMPONENT)); } else { // if the component is a composite OR A PARALLEL , forward to functional interface if (((ComponentBodyImpl) targetBody).getProActiveComponent() != null) {// if (((ComponentBodyImpl) targetBody)// .getProActiveComponentIdentity()// .getHierarchicalType()// .equals(ComponentParameters.COMPOSITE)// || ((ComponentBodyImpl) targetBody).getProActiveComponentIdentity().getHierarchicalType().equals(// ComponentParameters.PARALLEL)) {// // result =// // methodCall.execute(// // ((ComponentBodyImpl) targetBody).getProActiveComponentIdentity().getFcInterface(// // methodCall.getReifiedMethod().getName()));// // forward to functional interface whose name is given as a parameter in the method call if (logger.isDebugEnabled()) { logger.debug( " forwarding the call : " + methodCall.getFcFunctionalInterfaceName() + " to : " + ((ComponentParametersController) ((ComponentBodyImpl) targetBody) .getProActiveComponent() .getFcInterface(Constants.COMPONENT_PARAMETERS_CONTROLLER)) .getComponentParameters().getName()); } try { result = methodCall.execute( ((ComponentBodyImpl) targetBody).getProActiveComponent().getFcInterface( methodCall.getFcFunctionalInterfaceName())); } catch (Exception e) { e.printStackTrace(); } } else { // directly execute the method on the active object // if (logger.isDebugEnabled()) { // logger.debug("primitive component forwarding the call : " + // methodCall.getFcFunctionalInterfaceName()); // } if (logger.isDebugEnabled()) { logger.debug(" directly executing the call : " + methodCall.getFcFunctionalInterfaceName()); } result = methodCall.execute(targetBody.getReifiedObject()); } } return result; } catch (NoSuchInterfaceException nsie) { nsie.printStackTrace(); throw new ServeException("cannot serve request : problem accessing a component controller", nsie); } catch (MethodCallExecutionFailedException e) { e.printStackTrace(); throw new ServeException("serve method " + methodCall.getReifiedMethod().toString() + " failed", e); } catch (java.lang.reflect.InvocationTargetException e) { Throwable t = e.getTargetException(); // t.printStackTrace(); if (isOneWay) { throw new ServeException("serve method " + methodCall.getReifiedMethod().toString() + " failed", t); } else { return t; } } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/a1bccf73673342a9897c35cd23861031695d9f37/ComponentRequestImpl.java/buggy/src/org/objectweb/proactive/core/component/request/ComponentRequestImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
12175,
3061,
12,
2250,
1018,
2250,
13,
1216,
11115,
503,
288,
202,
202,
430,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
1082,
202,
759,
4901,
18,
4148,
2932,
1841,
691,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
12175,
3061,
12,
2250,
1018,
2250,
13,
1216,
11115,
503,
288,
202,
202,
430,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
1082,
202,
759,
4901,
18,
4148,
2932,
1841,
691,
... |
continue; | } else { Class parent = cl.getSuperclass(); if (parent == null) { if (cl.isInterface()) { parent = ScriptRuntime.ObjectClass; } else { throw e; } } cl = parent; | static JavaMembers lookupClass(Scriptable scope, Class dynamicType, Class staticType) { Hashtable ct = classTable; // use local reference to avoid synchronize JavaMembers members = (JavaMembers) ct.get(dynamicType); if (members != null) return members; if (staticType == dynamicType) { staticType = null; } Class cl = dynamicType; if (!Modifier.isPublic(dynamicType.getModifiers())) { if (staticType == null || !Modifier.isPublic(staticType.getModifiers())) { cl = getPublicSuperclass(dynamicType); if (cl == null) { // Can happen if dynamicType is interface cl = dynamicType; } } else if (staticType.isInterface()) { // If the static type is an interface, use it cl = staticType; } else { // We can use the static type, and that is OK, but we'll trace // back the java class chain here to look for public superclass // comming before staticType cl = getPublicSuperclass(dynamicType); if (cl == null) { // Can happen if dynamicType is interface cl = dynamicType; } } } for (;;) { try { members = new JavaMembers(scope, cl); break; } catch (SecurityException e) { // Reflection may fail for objects that are in a restricted // access package (e.g. sun.*). If we get a security // exception, try again with the static type if it is interface. // Otherwise, try public superclass if (staticType != null && staticType.isInterface()) { cl = staticType; staticType = null; // try staticType only once continue; } Class parent = getPublicSuperclass(cl); if (parent == null) { if (cl.isInterface()) { // last resort parent = ScriptRuntime.ObjectClass; } else { throw e; } } cl = parent; } } if (Context.isCachingEnabled) ct.put(cl, members); return members; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/9d44b5410ee73a96e98b00aa767eb0b7acd190dc/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
5110,
6918,
3689,
797,
12,
3651,
429,
2146,
16,
1659,
5976,
559,
16,
4766,
282,
1659,
760,
559,
13,
565,
288,
3639,
18559,
5691,
273,
667,
1388,
31,
225,
368,
999,
1191,
2114,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
5110,
6918,
3689,
797,
12,
3651,
429,
2146,
16,
1659,
5976,
559,
16,
4766,
282,
1659,
760,
559,
13,
565,
288,
3639,
18559,
5691,
273,
667,
1388,
31,
225,
368,
999,
1191,
2114,
358,... |
Set<Guide> guides = new HashSet(); boolean toInsert = false; | List<Guide> result = new ArrayList<Guide>(); | public static List<Guide> readByYearAndState(Integer guideYear, GuideState situationOfGuide) { Set<Guide> guides = new HashSet(); boolean toInsert = false; for (Guide guide : RootDomainObject.getInstance().getGuides()) { if (guideYear != null && guide.getYear().equals(guideYear)) { toInsert = true; } for (GuideSituation guideSituation : guide.getGuideSituations()) { if (guideSituation.getState().equals(State.ACTIVE) && guideSituation.getSituation().equals(situationOfGuide)) { toInsert = true; } } if (toInsert) { guides.add(guide); toInsert = false; } } return new ArrayList(guides); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/2a245e1d90e40efae193dcfc0bbda2f75ccf91de/Guide.java/clean/src/net/sourceforge/fenixedu/domain/Guide.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
32,
17424,
34,
855,
858,
5593,
1876,
1119,
12,
4522,
7343,
5593,
16,
13018,
1119,
20886,
951,
17424,
13,
288,
3639,
1000,
32,
17424,
34,
9875,
281,
273,
394,
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,
760,
987,
32,
17424,
34,
855,
858,
5593,
1876,
1119,
12,
4522,
7343,
5593,
16,
13018,
1119,
20886,
951,
17424,
13,
288,
3639,
1000,
32,
17424,
34,
9875,
281,
273,
394,
6847,
5621,
... |
MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.BACKUP_SCHEDULE, 1); MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.BACKUP_LAST, 0f); assertEquals(0, MylarTaskListPlugin.getMylarCorePrefs().getLong(TaskListPreferenceConstants.BACKUP_LAST)); | MylarTaskListPlugin.getDefault().getPreferenceStore().setValue(TaskListPreferenceConstants.BACKUP_SCHEDULE, 1); MylarTaskListPlugin.getDefault().getPreferenceStore().setValue(TaskListPreferenceConstants.BACKUP_LAST, 0f); assertEquals(0, MylarTaskListPlugin.getDefault().getPreferenceStore().getLong(TaskListPreferenceConstants.BACKUP_LAST)); | public void testAutoBackupDisabled() throws InterruptedException { TaskListBackupManager backupManager = MylarTaskListPlugin.getDefault().getBackupManager();// MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.BACKUP_AUTOMATICALLY, false); MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.BACKUP_SCHEDULE, 1); MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.BACKUP_LAST, 0f); assertEquals(0, MylarTaskListPlugin.getMylarCorePrefs().getLong(TaskListPreferenceConstants.BACKUP_LAST)); backupManager.start(5); Thread.sleep(3000); assertEquals(0, MylarTaskListPlugin.getMylarCorePrefs().getLong(TaskListPreferenceConstants.BACKUP_LAST)); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/42ccf4da9457897d8441802439e71116889b11bd/TaskListBackupManagerTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskListBackupManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4965,
6248,
8853,
1435,
1216,
7558,
288,
202,
202,
2174,
682,
6248,
1318,
5114,
1318,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
6248,
1318,
5621,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4965,
6248,
8853,
1435,
1216,
7558,
288,
202,
202,
2174,
682,
6248,
1318,
5114,
1318,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
6248,
1318,
5621,
75... |
options[current++] = "-B"; | options[current++] = "-W"; | public String [] getOptions() { String [] options = new String [7]; int current = 0; if (getDebug()) { options[current++] = "-D"; } options[current++] = "-B"; options[current++] = "" + getClassifierSpec(); options[current++] = "-S"; options[current++] = ""+getShrinkage(); options[current++] = "-M"; options[current++] = ""+getMaxModels(); while (current < options.length) { options[current++] = ""; } return options; } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/b1a4a371e026e5ee796e9c54fdc94034a6d4ed25/AdditiveRegression.java/clean/weka/classifiers/meta/AdditiveRegression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
5378,
9849,
1435,
288,
3639,
514,
5378,
702,
273,
394,
514,
306,
27,
15533,
565,
509,
783,
273,
374,
31,
565,
309,
261,
588,
2829,
10756,
288,
1377,
702,
63,
2972,
9904,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
5378,
9849,
1435,
288,
3639,
514,
5378,
702,
273,
394,
514,
306,
27,
15533,
565,
509,
783,
273,
374,
31,
565,
309,
261,
588,
2829,
10756,
288,
1377,
702,
63,
2972,
9904,
65,
... |
AST tmp1857_AST_in = (AST)_t; | AST tmp1859_AST_in = (AST)_t; | public final void compilestate(AST _t) throws RecognitionException { AST compilestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1723 = _t; AST tmp1839_AST_in = (AST)_t; match(_t,COMPILE); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop1772: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRSPACE: { AST __t1725 = _t; AST tmp1840_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1727 = _t; AST tmp1841_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1727; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1725; _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp1842_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case SAVE: { AST __t1728 = _t; AST tmp1843_AST_in = (AST)_t; match(_t,SAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1730 = _t; AST tmp1844_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1730; _t = _t.getNextSibling(); break; } case 3: case INTO: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INTO: { AST __t1732 = _t; AST tmp1845_AST_in = (AST)_t; match(_t,INTO); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1732; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1728; _t = _t.getNextSibling(); break; } case LISTING: { AST __t1733 = _t; AST tmp1846_AST_in = (AST)_t; match(_t,LISTING); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop1737: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case PAGESIZE_KW: { AST __t1735 = _t; AST tmp1847_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1735; _t = _t.getNextSibling(); break; } case PAGEWIDTH: { AST __t1736 = _t; AST tmp1848_AST_in = (AST)_t; match(_t,PAGEWIDTH); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1736; _t = _t.getNextSibling(); break; } default: { break _loop1737; } } } while (true); } _t = __t1733; _t = _t.getNextSibling(); break; } case XCODE: { AST __t1738 = _t; AST tmp1849_AST_in = (AST)_t; match(_t,XCODE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1738; _t = _t.getNextSibling(); break; } case XREF: { AST __t1739 = _t; AST tmp1850_AST_in = (AST)_t; match(_t,XREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1739; _t = _t.getNextSibling(); break; } case STRINGXREF: { AST __t1741 = _t; AST tmp1851_AST_in = (AST)_t; match(_t,STRINGXREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1741; _t = _t.getNextSibling(); break; } case STREAMIO: { AST __t1743 = _t; AST tmp1852_AST_in = (AST)_t; match(_t,STREAMIO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1745 = _t; AST tmp1853_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1745; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1743; _t = _t.getNextSibling(); break; } case MINSIZE: { AST __t1746 = _t; AST tmp1854_AST_in = (AST)_t; match(_t,MINSIZE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1748 = _t; AST tmp1855_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1748; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1746; _t = _t.getNextSibling(); break; } case LANGUAGES: { AST __t1749 = _t; AST tmp1856_AST_in = (AST)_t; match(_t,LANGUAGES); _t = _t.getFirstChild(); AST tmp1857_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: case TYPELESS_TOKEN: { compile_lang(_t); _t = _retTree; { _loop1752: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1858_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); compile_lang(_t); _t = _retTree; } else { break _loop1752; } } while (true); } break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1859_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1749; _t = _t.getNextSibling(); break; } case TEXTSEGGROW: { AST __t1753 = _t; AST tmp1860_AST_in = (AST)_t; match(_t,TEXTSEGGROW); _t = _t.getFirstChild(); AST __t1754 = _t; AST tmp1861_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1754; _t = _t.getNextSibling(); _t = __t1753; _t = _t.getNextSibling(); break; } case DEBUGLIST: { AST __t1755 = _t; AST tmp1862_AST_in = (AST)_t; match(_t,DEBUGLIST); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1755; _t = _t.getNextSibling(); break; } case DEFAULTNOXLATE: { AST __t1756 = _t; AST tmp1863_AST_in = (AST)_t; match(_t,DEFAULTNOXLATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1758 = _t; AST tmp1864_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1758; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1756; _t = _t.getNextSibling(); break; } case GENERATEMD5: { AST __t1759 = _t; AST tmp1865_AST_in = (AST)_t; match(_t,GENERATEMD5); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1761 = _t; AST tmp1866_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1761; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1759; _t = _t.getNextSibling(); break; } case PREPROCESS: { AST __t1762 = _t; AST tmp1867_AST_in = (AST)_t; match(_t,PREPROCESS); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1762; _t = _t.getNextSibling(); break; } case USEREVVIDEO: { AST __t1763 = _t; AST tmp1868_AST_in = (AST)_t; match(_t,USEREVVIDEO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1765 = _t; AST tmp1869_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1765; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1763; _t = _t.getNextSibling(); break; } case USEUNDERLINE: { AST __t1766 = _t; AST tmp1870_AST_in = (AST)_t; match(_t,USEUNDERLINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1768 = _t; AST tmp1871_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1768; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1766; _t = _t.getNextSibling(); break; } case V6FRAME: { AST __t1769 = _t; AST tmp1872_AST_in = (AST)_t; match(_t,V6FRAME); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1771 = _t; AST tmp1873_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1771; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1769; _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp1874_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } default: { break _loop1772; } } } while (true); } state_end(_t); _t = _retTree; _t = __t1723; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1161,
14849,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1161,
14849,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1161,
14849,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1161,
14849,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
public void close() | void close() | public void close() { try { if (_in != null) _in.close(); } catch (IOException e) {} } | 3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/036f13eddb5e0235e57e86983fdf1d720ce2811b/MOFileParser.java/buggy/quercus/src/main/java/com/caucho/quercus/lib/gettext/MOFileParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1746,
1435,
225,
288,
565,
775,
288,
1377,
309,
261,
67,
267,
480,
446,
13,
3639,
389,
267,
18,
4412,
5621,
565,
289,
1044,
261,
14106,
425,
13,
2618,
225,
289,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1746,
1435,
225,
288,
565,
775,
288,
1377,
309,
261,
67,
267,
480,
446,
13,
3639,
389,
267,
18,
4412,
5621,
565,
289,
1044,
261,
14106,
425,
13,
2618,
225,
289,
2,
-100,
-100,
-1... |
deleteSociety(popupNode); | copySocietyInNode(popupNode); | public void actionPerformed(ActionEvent e) { deleteSociety(popupNode); } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/1ec96a75b0cd71536314f20c8689e8251c203a41/Organizer.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/Organizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
225,
1430,
55,
1882,
14369,
12,
16086,
907,
1769,
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,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
225,
1430,
55,
1882,
14369,
12,
16086,
907,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void init(I_CmsResourceBroker broker) throws CmsException { | public void init(I_CmsResourceBroker broker, I_CmsRequest req, I_CmsResponse resp, String user, String currentGroup, int currentProjectId) throws CmsException { | public void init(I_CmsResourceBroker broker) throws CmsException { m_rb = broker;} | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/849628ac81c242285ae7c82e00c3135b9d214fc2/CmsObject.java/clean/src/com/opencms/file/CmsObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1208,
12,
45,
67,
4747,
1420,
11194,
8625,
13,
1216,
11228,
288,
202,
81,
67,
6731,
273,
8625,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1208,
12,
45,
67,
4747,
1420,
11194,
8625,
13,
1216,
11228,
288,
202,
81,
67,
6731,
273,
8625,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if (membership_listener != null) { | if(membership_listener != null) { | public void suspect(Address suspected_mbr) { if (corr != null) { corr.receiveSuspect(suspected_mbr); } if (membership_listener != null) { membership_listener.suspect(suspected_mbr); } } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/595c1743692efa6e4226a77afcc832561ea81eb9/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
11375,
1181,
12,
1887,
11375,
1789,
67,
1627,
86,
13,
288,
5411,
309,
261,
17515,
480,
446,
13,
288,
7734,
19480,
18,
18149,
55,
407,
1181,
12,
87,
407,
1789,
67,
1627,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11375,
1181,
12,
1887,
11375,
1789,
67,
1627,
86,
13,
288,
5411,
309,
261,
17515,
480,
446,
13,
288,
7734,
19480,
18,
18149,
55,
407,
1181,
12,
87,
407,
1789,
67,
1627,
86,
... |
this.mode=mode; } | this.mode=mode; } | SleeperThread(int mode) { this.mode=mode; } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/dd6282cd73f50a476093653aab3a8de52fc1c5c4/InterruptTest.java/clean/tests/junit/org/jgroups/tests/InterruptTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
55,
11182,
457,
3830,
12,
474,
1965,
13,
288,
202,
565,
333,
18,
3188,
33,
3188,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
55,
11182,
457,
3830,
12,
474,
1965,
13,
288,
202,
565,
333,
18,
3188,
33,
3188,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
}catch(Exception e){ | }catch(Throwable e){ | private static final void loadNative() { try{ String wantedProp = System.getProperty("jbigi.enable", "true"); boolean wantNative = "true".equalsIgnoreCase(wantedProp); if (wantNative) { boolean loaded = loadFromResource(true); if (loaded) { _nativeOk = true; if (_doLog) System.err.println("INFO: Optimized native BigInteger library '"+getResourceName(true)+"' loaded from resource"); } else { loaded = loadGeneric(true); if (loaded) { _nativeOk = true; if (_doLog) System.err.println("INFO: Optimized native BigInteger library '"+getMiddleName(true)+"' loaded from somewhere in the path"); } else { loaded = loadFromResource(false); if (loaded) { _nativeOk = true; if (_doLog) System.err.println("INFO: Non-optimized native BigInteger library '"+getResourceName(false)+"' loaded from resource"); } else { loaded = loadGeneric(false); if (loaded) { _nativeOk = true; if (_doLog) System.err.println("INFO: Non-optimized native BigInteger library '"+getMiddleName(false)+"' loaded from somewhere in the path"); } else { _nativeOk = false; } } } } } if (_doLog && !_nativeOk) System.err.println("INFO: Native BigInteger library jbigi not loaded - using pure java"); }catch(Exception e){ if (_doLog) System.err.println("INFO: Native BigInteger library jbigi not loaded, reason: '"+e.getMessage()+"' - using pure java"); } } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/0032e8f7dbe2e43e9dda3997de0d04dadb4ac002/NativeBigInteger.java/buggy/src/net/i2p/util/NativeBigInteger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
918,
1262,
9220,
1435,
288,
377,
202,
698,
95,
3639,
514,
15504,
4658,
273,
2332,
18,
588,
1396,
2932,
10649,
360,
77,
18,
7589,
3113,
315,
3767,
8863,
3639,
1250,
2545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
1262,
9220,
1435,
288,
377,
202,
698,
95,
3639,
514,
15504,
4658,
273,
2332,
18,
588,
1396,
2932,
10649,
360,
77,
18,
7589,
3113,
315,
3767,
8863,
3639,
1250,
2545,
... |
exceptionTypes = list; } return (Class[])exceptionTypes.toArray(new Class[exceptionTypes.size()]); } | exceptionTypes = list; } return (Class[])exceptionTypes.toArray(new Class[exceptionTypes.size()]); } | public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { try { list.add(exceptions.getException(i).getResolvedVmClass().asClass()); } catch (Exception e) { // there is some missing getException(i).getResolvedVmClass() // if one makes a system.out on the methods it fails, looks "java.lang.Exception" is missing // I think I'll look into it, if I can. // 10/03/2005 Martin Husted Hartvig } } exceptionTypes = list; } return (Class[])exceptionTypes.toArray(new Class[exceptionTypes.size()]); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ba5684c8e20b5a25e0067d369b07af8854499835/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1659,
8526,
17669,
2016,
1435,
288,
202,
202,
430,
261,
4064,
2016,
422,
446,
13,
288,
1082,
202,
6385,
776,
81,
11416,
4798,
273,
4268,
1305,
18,
588,
11416,
5621,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1659,
8526,
17669,
2016,
1435,
288,
202,
202,
430,
261,
4064,
2016,
422,
446,
13,
288,
1082,
202,
6385,
776,
81,
11416,
4798,
273,
4268,
1305,
18,
588,
11416,
5621,
1082,
202,
... |
public String apply(Context ctxt, String text) throws ServiceException { | public String apply(Context ctxt) throws ServiceException { | public String apply(Context ctxt, String text) throws ServiceException { Document doc = (Document) ctxt.item; return doc.getRevision(1).getCreator(); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0628647890f31e3e68f79c4187701b227c4a1ff5/WikiTemplate.java/buggy/ZimbraServer/src/java/com/zimbra/cs/wiki/WikiTemplate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
2230,
12,
1042,
14286,
16,
514,
977,
13,
1216,
16489,
288,
1082,
202,
2519,
997,
273,
261,
2519,
13,
14286,
18,
1726,
31,
1082,
202,
2463,
997,
18,
588,
7939,
12,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
2230,
12,
1042,
14286,
16,
514,
977,
13,
1216,
16489,
288,
1082,
202,
2519,
997,
273,
261,
2519,
13,
14286,
18,
1726,
31,
1082,
202,
2463,
997,
18,
588,
7939,
12,
21,
... |
return completed; | return info; | public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, posOnCurrentLine)); if(info.getCompleted() != null) { setContent(info.getCompleted() + ending); posOnCurrentLine = currentLine.length() - ending.length(); completed = true; } } else { info = shell.complete(currentLine.toString()); if(info.getCompleted() != null) { setContent(info.getCompleted()); posOnCurrentLine = currentLine.length(); completed = true; } } return completed; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cc393cb91dd15bdbbfdf066c5d5b60d97ff90b52/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
3912,
12,
6806,
429,
13220,
10215,
2983,
16,
3498,
13220,
5972,
13,
565,
288,
377,
202,
11238,
966,
1123,
31,
202,
202,
6494,
5951,
273,
629,
31,
3639,
309,
261,
917,
1398,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3912,
12,
6806,
429,
13220,
10215,
2983,
16,
3498,
13220,
5972,
13,
565,
288,
377,
202,
11238,
966,
1123,
31,
202,
202,
6494,
5951,
273,
629,
31,
3639,
309,
261,
917,
1398,
... |
final ButtonModel ignoreEmptyMethodsModel = ignoreEmptyMethodsCheckBox.getModel(); ignoreEmptyMethodsModel.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { | final ButtonModel ignoreEmptyMethodsModel = ignoreEmptyMethodsCheckBox .getModel(); ignoreEmptyMethodsModel.addChangeListener(new ChangeListener(){ public void stateChanged(ChangeEvent e){ | public JComponent createOptionsPanel() { final JPanel panel = new JPanel(new GridBagLayout()); final JCheckBox ignoreFieldAccessesCheckBox = new JCheckBox("Only check private or final methods", m_onlyPrivateOrFinal); final ButtonModel ignoreFieldAccessesModel = ignoreFieldAccessesCheckBox.getModel(); ignoreFieldAccessesModel.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { m_onlyPrivateOrFinal = ignoreFieldAccessesModel.isSelected(); } }); final JCheckBox ignoreEmptyMethodsCheckBox = new JCheckBox("Ignore empty methods", m_ignoreEmptyMethods); final ButtonModel ignoreEmptyMethodsModel = ignoreEmptyMethodsCheckBox.getModel(); ignoreEmptyMethodsModel.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { m_ignoreEmptyMethods = ignoreEmptyMethodsModel.isSelected(); } }); final GridBagConstraints constraints = new GridBagConstraints(); constraints.gridx = 0; constraints.gridy = 0; constraints.weightx = 1.0; constraints.anchor = GridBagConstraints.CENTER; constraints.fill = GridBagConstraints.HORIZONTAL; panel.add(ignoreFieldAccessesCheckBox, constraints); constraints.gridy = 1; panel.add(ignoreEmptyMethodsCheckBox, constraints); return panel; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/bd57f07c33c419f20715b114b71a7e93425b34c9/MethodMayBeStaticInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/performance/MethodMayBeStaticInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29058,
752,
1320,
5537,
1435,
288,
3639,
727,
24048,
6594,
273,
394,
24048,
12,
2704,
7145,
5013,
3744,
10663,
3639,
727,
804,
19174,
2305,
974,
1862,
281,
19174,
273,
394,
804,
19174... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29058,
752,
1320,
5537,
1435,
288,
3639,
727,
24048,
6594,
273,
394,
24048,
12,
2704,
7145,
5013,
3744,
10663,
3639,
727,
804,
19174,
2305,
974,
1862,
281,
19174,
273,
394,
804,
19174... |
protected void setPreferenceTransfers() { super.setPreferenceTransfers(); if(validFromFile()&&(transfersTable.getItemCount()== 0)){ text.setText(PreferencesMessages.WizardPreferences_noSpecificPreferenceDescription); } else text.setText(""); //$NON-NLS-1$ } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/348e099a94abc0003af8bb50ab4c0ea0a8e5f422/WizardPreferencesImportPage1.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesImportPage1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
542,
9624,
1429,
18881,
1435,
95,
202,
202,
9565,
18,
542,
9624,
1429,
18881,
5621,
9506,
202,
430,
12,
877,
13087,
1435,
10,
10,
12,
2338,
18881,
1388,
18,
588,
30687,
1435,
631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
542,
9624,
1429,
18881,
1435,
95,
202,
202,
9565,
18,
542,
9624,
1429,
18881,
5621,
9506,
202,
430,
12,
877,
13087,
1435,
10,
10,
12,
2338,
18881,
1388,
18,
588,
30687,
1435,
631,
... | ||
this.globalLast = (ordering & Phase.GLOBAL_LAST_MASK) != 0; this.perCollector = (ordering & Phase.COLLECTOR_MASK) != 0; this.perMutator = (ordering & Phase.MUTATOR_MASK) != 0; | this.globalLast = (ordering & Phase.GLOBAL_LAST_MASK) != 0; this.perCollector = (ordering & Phase.COLLECTOR_MASK) != 0; this.perMutator = (ordering & Phase.MUTATOR_MASK) != 0; | public SimplePhase(String name, Timer timer, int ordering) { super(name, timer); this.globalFirst = (ordering & Phase.GLOBAL_FIRST_MASK) != 0; this.globalLast = (ordering & Phase.GLOBAL_LAST_MASK) != 0; this.perCollector = (ordering & Phase.COLLECTOR_MASK) != 0; this.perMutator = (ordering & Phase.MUTATOR_MASK) != 0; this.placeholder = (ordering == Phase.PLACEHOLDER); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/SimplePhase.java/buggy/MMTk/src/org/mmtk/plan/SimplePhase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4477,
11406,
12,
780,
508,
16,
12290,
5441,
16,
509,
9543,
13,
288,
565,
2240,
12,
529,
16,
5441,
1769,
565,
333,
18,
6347,
3759,
273,
261,
22598,
473,
19459,
18,
20402,
67,
15354... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4477,
11406,
12,
780,
508,
16,
12290,
5441,
16,
509,
9543,
13,
288,
565,
2240,
12,
529,
16,
5441,
1769,
565,
333,
18,
6347,
3759,
273,
261,
22598,
473,
19459,
18,
20402,
67,
15354... |
oldFile.renameTo(new NormalizedFile(newNameString.getValue())); | oldFile.renameTo(new NormalizedFile(newNameString.toString())); | public IRubyObject rename(IRubyObject oldName, IRubyObject newName) { RubyString oldNameString = RubyString.stringValue(oldName); RubyString newNameString = RubyString.stringValue(newName); oldNameString.checkSafeString(); newNameString.checkSafeString(); NormalizedFile oldFile = new NormalizedFile(oldNameString.getValue()); if (!oldFile.exists()) { throw getRuntime().newErrnoENOENTError("No such file: " + oldNameString.getValue()); } oldFile.renameTo(new NormalizedFile(newNameString.getValue())); return RubyFixnum.zero(getRuntime()); } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/FileMetaClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
6472,
12,
7937,
10340,
921,
22916,
16,
15908,
10340,
921,
13253,
13,
288,
377,
202,
54,
10340,
780,
22916,
780,
273,
19817,
780,
18,
1080,
620,
12,
1673,
461,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
6472,
12,
7937,
10340,
921,
22916,
16,
15908,
10340,
921,
13253,
13,
288,
377,
202,
54,
10340,
780,
22916,
780,
273,
19817,
780,
18,
1080,
620,
12,
1673,
461,
176... |
ExecSQL("rollback; " + getIsolationLevelSQL()); | execSQL("rollback; " + getIsolationLevelSQL()); | public void rollback() throws SQLException { if (autoCommit) return ; if (haveMinimumServerVersion("7.3")) { //we don't automatically start a transaction //but let the server functionality automatically start //one when the first statement is executed ExecSQL("rollback; " + getIsolationLevelSQL()); } else if (haveMinimumServerVersion("7.1")) { ExecSQL("rollback; begin;" + getIsolationLevelSQL()); } else { ExecSQL("rollback"); ExecSQL("begin"); ExecSQL(getIsolationLevelSQL()); } } | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/16a30346c86590fbdcd83cacd2a0a9dbd2cd00dc/AbstractJdbc1Connection.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8006,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
6079,
5580,
13,
1082,
202,
2463,
274,
202,
202,
430,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
23,
6,
3719,
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,
8006,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
6079,
5580,
13,
1082,
202,
2463,
274,
202,
202,
430,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
23,
6,
3719,
202,
... |
public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //Uu.p("stripWhitespace: text = -" + text + "-"); //Uu.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || whitespace.equals("nowrap") || whitespace.equals("pre-line")) { text = linefeed_space_collapse.matcher(text).replaceAll(SPACE); } //Uu.p("step 1 = \"" + text + "\""); // do step 2 // pull out pre's for breaking // still not sure here // do step 3 // convert line feeds to spaces if (whitespace.equals("normal") || whitespace.equals("nowrap")) { text = linefeed_to_space.matcher(text).replaceAll(SPACE); } //Uu.p("step 3 = \"" + text +"\""); // do step 4 if (whitespace.equals("normal") || whitespace.equals("nowrap") || whitespace.equals("pre-line")) { text = tab_to_space.matcher(text).replaceAll(SPACE); //Uu.p("step 4.1 = \"" + text + "\""); text = space_collapse.matcher(text).replaceAll(SPACE); //Uu.p("step 4.2 = \"" + text + "\""); // collapse first space against prev inline if (text.startsWith(SPACE) && (prev != null) && (prev.whitespace.equals("normal") || prev.whitespace.equals("nowrap") || prev.whitespace.equals("pre-line")) && (prev.getSubstring().endsWith(SPACE))) { text = text.substring(1, text.length()); } //Uu.p("step 4.3 = \"" + text + "\""); } //Uu.p("final text = \"" + text + "\""); return text; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/b23ce4cc73ce39dc11856cf4e63572b7a86f795c/WhitespaceStripper.java/buggy/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
780,
6406,
9431,
12,
4844,
690,
24273,
80,
19706,
16,
10870,
3514,
10001,
16,
780,
955,
15329,
780,
18777,
33,
588,
9431,
12,
4060,
1769,
759,
57,
89,
18,
84,
2932,
6406,
9431,
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,
1071,
3845,
780,
6406,
9431,
12,
4844,
690,
24273,
80,
19706,
16,
10870,
3514,
10001,
16,
780,
955,
15329,
780,
18777,
33,
588,
9431,
12,
4060,
1769,
759,
57,
89,
18,
84,
2932,
6406,
9431,
3... | ||
public Map getResponseParameters() | public Map<String, String> getResponseParameters() | public Map getResponseParameters() throws IOException { String name = null; Map params = new HashMap(); while ((name = getNextResponseParameter()) != null) { String value = getNextResponseValue(); params.put(name, value); } return params; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/445abb62e2112dba87c62c8d48d4ae66b96ff631/RemoteServerRequest.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/util/RemoteServerRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
32,
780,
16,
514,
34,
6476,
2402,
1435,
565,
1216,
1860,
288,
3639,
514,
508,
273,
446,
31,
3639,
1635,
859,
273,
394,
4317,
5621,
3639,
1323,
14015,
529,
273,
6927,
1064,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1635,
32,
780,
16,
514,
34,
6476,
2402,
1435,
565,
1216,
1860,
288,
3639,
514,
508,
273,
446,
31,
3639,
1635,
859,
273,
394,
4317,
5621,
3639,
1323,
14015,
529,
273,
6927,
1064,
1... |
-1, 297, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, | -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 59, 60, 262, 263, 264, -1, -1, 10, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, 41, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, | private static final short[] yyCheck2() { return new short[] { 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 126, -1, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, 58, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 63, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 124, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, 33, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, 297, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, 59, 60, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, 91, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 123, -1, -1, 126, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 41, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, 59, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, 125, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 59, 60, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, 91, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 33, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 59, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 10, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 33, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, 59, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 0, 346, 347, 348, 349, 350, 351, -1, -1, -1, 10, 356, -1, -1, -1, 126, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 93, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 33, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, 264, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 10, 313, 314, -1, 316, 317, 125, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 0, 281, 91, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 91, -1, 93, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 91, 271, 93, 94, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 0, -1, 123, 124, 125, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 41, -1, 343, 44, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 59, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 125, 337, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, 91, -1, 93, 94, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 60, -1, 62, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 94, -1, 96, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 124, 338, 126, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 37, 38, -1, 281, 282, 42, 43, 44, 45, -1, 47, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 94, -1, -1, 338, -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 124, -1, -1, 37, 38, 281, 282, 41, 42, 43, 44, 45, -1, 47, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 93, 94, -1, 338, }; } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
... |
/* * Fixes bug 224848 * 03/01/3001 David Freels * The height variable is adjusted just before the PDFLine is created * allowing the text to be rendered accordingly. The ALIGN_MIDDLE calculation * will be a little off for single row cells. */ | public PdfCell(Cell cell, int rownumber, float left, float right, float top, float cellspacing, float cellpadding) { // initialisation of the Rectangle super(left, top, right, top); setBorder(cell.border()); setBorderWidth(cell.borderWidth()); setBorderColor(cell.borderColor()); setBackgroundColor(cell.backgroundColor()); setGrayFill(cell.grayFill()); // initialisation of the lines PdfChunk chunk; Element element; PdfChunk overflow; lines = new ArrayList(); leading = cell.leading(); int alignment = cell.horizontalAlignment(); left += cellspacing + cellpadding; right -= cellspacing + cellpadding; /* * Fixes bug 224848 * 03/01/3001 David Freels * The height variable is adjusted just before the PDFLine is created * allowing the text to be rendered accordingly. The ALIGN_MIDDLE calculation * will be a little off for single row cells. */ float height = leading + cellpadding; float rowSpan = (float)cell.rowspan(); switch(cell.verticalAlignment()) { case Element.ALIGN_BOTTOM: height *= rowSpan; break; case Element.ALIGN_MIDDLE: height *= (rowSpan / 1.5); break; default: height -= cellpadding * 0.4f; } PdfLine line = new PdfLine(left, right, alignment, height); ArrayList allActions; int aCounter; // we loop over all the elements of the cell for (Iterator i = cell.getElements(); i.hasNext(); ) { element = (Element) i.next(); switch(element.type()) { // if the element is a list case Element.LIST: if (line.size() > 0) { line.resetAlignment(); lines.add(line); } allActions = new ArrayList(); processActions(element, null, allActions); aCounter = 0; ListItem item; // we loop over all the listitems for (Iterator items = ((List)element).getItems().iterator(); items.hasNext(); ) { item = (ListItem) items.next(); line = new PdfLine(left + item.indentationLeft(), right, alignment, leading); line.setListItem(item); for (Iterator j = item.getChunks().iterator(); j.hasNext(); ) { chunk = new PdfChunk((Chunk) j.next(), (PdfAction)(allActions.get(aCounter++))); while ((overflow = line.add(chunk)) != null) { lines.add(line); line = new PdfLine(left + item.indentationLeft(), right, alignment, leading); chunk = overflow; } line.resetAlignment(); lines.add(line); line = new PdfLine(left + item.indentationLeft(), right, alignment, leading); } } line = new PdfLine(left, right, alignment, leading); break; // if the element is something else default: allActions = new ArrayList(); processActions(element, null, allActions); aCounter = 0; // we loop over the chunks for (Iterator j = element.getChunks().iterator(); j.hasNext(); ) { Chunk c = (Chunk) j.next(); chunk = new PdfChunk(c, (PdfAction)(allActions.get(aCounter++))); while ((overflow = line.add(chunk)) != null) { lines.add(line); line = new PdfLine(left, right, alignment, leading); chunk = overflow; } } // if the element is a paragraph, section or chapter, we reset the alignment and add the line switch (element.type()) { case Element.PARAGRAPH: case Element.SECTION: case Element.CHAPTER: line.resetAlignment(); lines.add(line); line = new PdfLine(left, right, alignment, leading); } } } if (line.size() > 0) { lines.add(line); } // we set some additional parameters setBottom(top - leading * lines.size() - 2 * cellpadding); this.cellpadding = cellpadding; this.cellspacing = cellspacing; rowspan = cell.rowspan(); this.rownumber = rownumber; } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/dba59572aac0a7b0789f932bde02f1878845e6ea/PdfCell.java/clean/itext/src/com/lowagie/text/pdf/PdfCell.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9989,
4020,
12,
4020,
2484,
16,
509,
1027,
2696,
16,
1431,
2002,
16,
1431,
2145,
16,
1431,
1760,
16,
1431,
2484,
14080,
16,
1431,
2484,
9598,
13,
288,
3639,
368,
2172,
10742,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4020,
12,
4020,
2484,
16,
509,
1027,
2696,
16,
1431,
2002,
16,
1431,
2145,
16,
1431,
1760,
16,
1431,
2484,
14080,
16,
1431,
2484,
9598,
13,
288,
3639,
368,
2172,
10742,
434,
... | |
assertEquals( callback.getReferences().size(), 3 ); Iterator references =callback.getReferences().iterator(); assertEquals( ((IASTReference)references.next()).getReferencedElement(), a ); assertEquals( ((IASTReference)references.next()).getReferencedElement(), b ); assertEquals( ((IASTReference)references.next()).getReferencedElement(), foo2 ); assertFalse( references.hasNext() ); | assertAllReferences( 3, createTaskList( new Task( a ), new Task(b), new Task( foo2 ) ) ); | public void testAndExpression() throws Exception { Iterator i = parse( "int foo(); int foo( int ); int a = 3; int b= 5; int x = foo( a & b );").getDeclarations(); IASTFunction foo = (IASTFunction)i.next(); IASTFunction foo2 = (IASTFunction)i.next(); IASTVariable a = (IASTVariable)i.next(); IASTVariable b = (IASTVariable)i.next(); IASTVariable x = (IASTVariable)i.next(); assertFalse( i.hasNext() ); assertEquals( callback.getReferences().size(), 3 ); Iterator references =callback.getReferences().iterator(); assertEquals( ((IASTReference)references.next()).getReferencedElement(), a ); assertEquals( ((IASTReference)references.next()).getReferencedElement(), b ); assertEquals( ((IASTReference)references.next()).getReferencedElement(), foo2 ); assertFalse( references.hasNext() ); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/02c194aaf46b86d6f7a904d6f531e535d47002ba/CompleteParseASTExpressionTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTExpressionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1876,
2300,
1435,
1216,
1185,
288,
3196,
202,
3198,
277,
273,
1109,
12,
315,
474,
8431,
5621,
509,
8431,
12,
509,
11272,
509,
279,
273,
890,
31,
509,
324,
33,
1381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1876,
2300,
1435,
1216,
1185,
288,
3196,
202,
3198,
277,
273,
1109,
12,
315,
474,
8431,
5621,
509,
8431,
12,
509,
11272,
509,
279,
273,
890,
31,
509,
324,
33,
1381,... |
Field f[]=new Field[14]; f[0]=new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1]=new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2]=new Field(connection, "PKTABLE_NAME", iVarcharOid, 32); f[3]=new Field(connection, "PKCOLUMN_NAME", iVarcharOid, 32); f[4]=new Field(connection, "FKTABLE_CAT", iVarcharOid, 32); f[5]=new Field(connection, "FKTABLE_SCHEM", iVarcharOid, 32); f[6]=new Field(connection, "FKTABLE_NAME", iVarcharOid, 32); f[7]=new Field(connection, "FKCOLUMN_NAME", iVarcharOid, 32); f[8]=new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9]=new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10]=new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11]=new Field(connection, "FK_NAME", iVarcharOid, 32); f[12]=new Field(connection, "PK_NAME", iVarcharOid, 32); f[13]=new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL("SELECT a.tgargs," + "substring(a.proname from 9 for (char_length(a.proname)-12))," + "substring(b.proname from 9 for (char_length(b.proname)-12))," + "a.tgdeferrable," + "a.tginitdeferred " + "FROM " + "(SELECT t.tgargs, t.tgconstrname, p.proname, t.tgdeferrable," + "t.tginitdeferred " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " + "WHERE c.relfilenode=t.tgrelid AND t.tgfoid = p.oid " + "AND p.proname LIKE 'RI_FKey_%_upd') as a," + "(SELECT t.tgconstrname, p.proname " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " + "WHERE c.relfilenode=t.tgrelid AND t.tgfoid = p.oid " + "AND p.proname LIKE 'RI_FKey_%_del') as b," + "(SELECT t.tgconstrname FROM pg_class as c, pg_trigger as t " + "WHERE c.relname like '"+table+"' AND c.relfilenode=t.tgrelid) as c " + "WHERE a.tgconstrname=b.tgconstrname AND a.tgconstrname=c.tgconstrname" ); Vector tuples = new Vector(); while (rs.next()) { tuples.add(parseConstraint(rs)); } return new ResultSet(connection, f, tuples, "OK", 1); | return getImportedExportedKeys(catalog, schema, null, table); | public java.sql.ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException { Field f[]=new Field[14]; f[0]=new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1]=new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2]=new Field(connection, "PKTABLE_NAME", iVarcharOid, 32); f[3]=new Field(connection, "PKCOLUMN_NAME", iVarcharOid, 32); f[4]=new Field(connection, "FKTABLE_CAT", iVarcharOid, 32); f[5]=new Field(connection, "FKTABLE_SCHEM", iVarcharOid, 32); f[6]=new Field(connection, "FKTABLE_NAME", iVarcharOid, 32); f[7]=new Field(connection, "FKCOLUMN_NAME", iVarcharOid, 32); f[8]=new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9]=new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10]=new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11]=new Field(connection, "FK_NAME", iVarcharOid, 32); f[12]=new Field(connection, "PK_NAME", iVarcharOid, 32); f[13]=new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL("SELECT a.tgargs," + "substring(a.proname from 9 for (char_length(a.proname)-12))," + "substring(b.proname from 9 for (char_length(b.proname)-12))," + "a.tgdeferrable," + "a.tginitdeferred " + "FROM " + "(SELECT t.tgargs, t.tgconstrname, p.proname, t.tgdeferrable," + "t.tginitdeferred " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " + "WHERE c.relfilenode=t.tgrelid AND t.tgfoid = p.oid " + "AND p.proname LIKE 'RI_FKey_%_upd') as a," + "(SELECT t.tgconstrname, p.proname " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " + "WHERE c.relfilenode=t.tgrelid AND t.tgfoid = p.oid " + "AND p.proname LIKE 'RI_FKey_%_del') as b," + "(SELECT t.tgconstrname FROM pg_class as c, pg_trigger as t " + "WHERE c.relname like '"+table+"' AND c.relfilenode=t.tgrelid) as c " + "WHERE a.tgconstrname=b.tgconstrname AND a.tgconstrname=c.tgconstrname" ); Vector tuples = new Vector(); while (rs.next()) { tuples.add(parseConstraint(rs)); } return new ResultSet(connection, f, tuples, "OK", 1); } | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/be4e5059a25d8f988a0874b936f5d4d8c05fafbe/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
336,
24934,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
13,
1216,
6483,
202,
95,
7734,
2286,
284,
8526,
33,
2704,
2286,
63,
3461,
15533,
7734... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
336,
24934,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
13,
1216,
6483,
202,
95,
7734,
2286,
284,
8526,
33,
2704,
2286,
63,
3461,
15533,
7734... |
(columnIndex, (field.mod==-1)?-1:((field.mod-4) & 0xffff)); | (columnIndex, (field.getMod()==-1)?-1:((field.getMod()-4) & 0xffff)); | public Object getObject(int columnIndex) throws SQLException { Field field; if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); wasNullFlag = (this_row[columnIndex - 1] == null); if(wasNullFlag) return null; field = fields[columnIndex - 1]; // some fields can be null, mainly from those returned by MetaData methods if(field==null) { wasNullFlag=true; return null; } switch (field.getSQLType()) { case Types.BIT: return new Boolean(getBoolean(columnIndex)); case Types.SMALLINT: return new Integer(getInt(columnIndex)); case Types.INTEGER: return new Integer(getInt(columnIndex)); case Types.BIGINT: return new Long(getLong(columnIndex)); case Types.NUMERIC: return getBigDecimal (columnIndex, (field.mod==-1)?-1:((field.mod-4) & 0xffff)); case Types.REAL: return new Float(getFloat(columnIndex)); case Types.DOUBLE: return new Double(getDouble(columnIndex)); case Types.CHAR: case Types.VARCHAR: return getString(columnIndex); case Types.DATE: return getDate(columnIndex); case Types.TIME: return getTime(columnIndex); case Types.TIMESTAMP: return getTimestamp(columnIndex); case Types.BINARY: case Types.VARBINARY: return getBytes(columnIndex); default: return connection.getObject(field.getTypeName(), getString(columnIndex)); } } | 11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/76a6da8a1b01e23091da65f5e167d67f5274d740/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
6455,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
2286,
652,
31,
565,
309,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1377,
604,
394,
453,
23116,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6455,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
2286,
652,
31,
565,
309,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1377,
604,
394,
453,
23116,
293... |
serverLog.setDescription(stackName); serverLog.setStackIpAddress(stackAddress); | public void setStackName(String stackName) { this.stackName = stackName; serverLog.setDescription(stackName); serverLog.setStackIpAddress(stackAddress); } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/7a1cfa2f92599f5defcac5c4835b7988fd82d9f3/SIPStack.java/clean/src/gov/nist/javax/sip/stack/SIPStack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
2624,
461,
12,
780,
2110,
461,
13,
288,
202,
202,
2211,
18,
3772,
461,
273,
2110,
461,
31,
202,
202,
3567,
1343,
18,
542,
3291,
12,
3772,
461,
1769,
202,
202,
3567... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
2624,
461,
12,
780,
2110,
461,
13,
288,
202,
202,
2211,
18,
3772,
461,
273,
2110,
461,
31,
202,
202,
3567,
1343,
18,
542,
3291,
12,
3772,
461,
1769,
202,
202,
3567... | |
this.handle = handle; this.useCache = useCache; | this( handle, false ); | public ChartReportStyleProcessor( DesignElementHandle handle, boolean useCache ) { this.handle = handle; this.useCache = useCache; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1afc1bd11b6e06b273b86fba94ff7ef3fdc3b764/ChartReportStyleProcessor.java/buggy/chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportStyleProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14804,
4820,
2885,
5164,
12,
29703,
1046,
3259,
1640,
16,
1082,
202,
6494,
999,
1649,
262,
202,
95,
202,
202,
2211,
18,
4110,
273,
1640,
31,
202,
202,
2211,
18,
1202,
1649,
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,
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,
14804,
4820,
2885,
5164,
12,
29703,
1046,
3259,
1640,
16,
1082,
202,
6494,
999,
1649,
262,
202,
95,
202,
202,
2211,
18,
4110,
273,
1640,
31,
202,
202,
2211,
18,
1202,
1649,
27... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.