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
dumpElement (name + "; UID=");
public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeserializing = true;// DEBUG ("MARKER "); byte marker = this.realInputStream.readByte (); switch (marker) { case TC_BLOCKDATA: case TC_BLOCKDATALONG: readNextBlock (marker); throw new BlockDataException (this.blockDataBytes); case TC_NULL: ret_val = null; break; case TC_REFERENCE: {// DEBUG ("REFERENCE "); Integer oid = new Integer (this.realInputStream.readInt ()); ret_val = ((ObjectIdentityWrapper) this.objectLookupTable.get (oid)).object; break; } case TC_CLASS: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); assignNewHandle (clazz); ret_val = clazz; break; } case TC_CLASSDESC: {// DEBUG ("CLASSDESC NAME "); String name = this.realInputStream.readUTF ();// DEBUG ("UID "); long uid = this.realInputStream.readLong ();// DEBUG ("FLAGS "); byte flags = this.realInputStream.readByte ();// DEBUG ("FIELD COUNT "); short field_count = this.realInputStream.readShort (); ObjectStreamField[] fields = new ObjectStreamField[field_count]; ObjectStreamClass osc = new ObjectStreamClass (name, uid, flags, fields); assignNewHandle (osc); for (int i=0; i < field_count; i++) {// DEBUG ("TYPE CODE "); char type_code = (char)this.realInputStream.readByte ();// DEBUG ("FIELD NAME "); String field_name = this.realInputStream.readUTF (); String class_name; if (type_code == 'L' || type_code == '[') class_name = (String)readObject (); else class_name = String.valueOf (type_code); fields[i] = new ObjectStreamField (field_name, TypeSignature.getClassForEncoding (class_name)); } setBlockDataMode (true); osc.setClass (resolveClass (osc)); setBlockDataMode (false);// DEBUG ("ENDBLOCKDATA "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("Data annotated to class was not consumed."); osc.setSuperclass ((ObjectStreamClass)readObject ()); ret_val = osc; break; } case TC_STRING: {// DEBUG ("STRING "); String s = this.realInputStream.readUTF (); ret_val = processResolution (s, assignNewHandle (s)); break; } case TC_ARRAY: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class componenetType = osc.forClass ().getComponentType ();// DEBUG ("ARRAY LENGTH "); int length = this.realInputStream.readInt (); Object array = Array.newInstance (componenetType, length); int handle = assignNewHandle (array); readArrayElements (array, componenetType); ret_val = processResolution (array, handle); break; } case TC_OBJECT: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); if (!Serializable.class.isAssignableFrom (clazz)) throw new NotSerializableException (clazz + " is not Serializable, and thus cannot be deserialized."); if (Externalizable.class.isAssignableFrom (clazz)) { Externalizable obj = null; try { obj = (Externalizable)clazz.newInstance (); } catch (InstantiationException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); } catch (IllegalAccessException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because class or zero-argument constructor is not accessible"); } catch (NoSuchMethodError e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because zero-argument constructor is not defined"); } int handle = assignNewHandle (obj); boolean read_from_blocks = ((osc.getFlags () & SC_BLOCK_DATA) != 0); if (read_from_blocks) setBlockDataMode (true); obj.readExternal (this); if (read_from_blocks) setBlockDataMode (false); ret_val = processResolution (obj, handle); break; } // end if (Externalizable.class.isAssignableFrom (clazz)) // find the first non-serializable, non-abstract // class in clazz's inheritance hierarchy Class first_nonserial = clazz.getSuperclass (); while (Serializable.class.isAssignableFrom (first_nonserial) || Modifier.isAbstract (first_nonserial.getModifiers ())) first_nonserial = first_nonserial.getSuperclass ();// DEBUGln ("Using " + first_nonserial// + " as starting point for constructing " + clazz); Object obj = null; obj = newObject (clazz, first_nonserial); if (obj == null) throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); int handle = assignNewHandle (obj); this.currentObject = obj; ObjectStreamClass[] hierarchy = ObjectStreamClass.getObjectStreamClasses (clazz);// DEBUGln ("Got class hierarchy of depth " + hierarchy.length); boolean has_read; for (int i=0; i < hierarchy.length; i++) { this.currentObjectStreamClass = hierarchy[i];// DEBUGln ("Reading fields of "// + this.currentObjectStreamClass.getName ()); has_read = true; try { this.currentObjectStreamClass.forClass (). getDeclaredMethod ("readObject", readObjectParams); } catch (NoSuchMethodException e) { has_read = false; } // XXX: should initialize fields in classes in the hierarchy // that aren't in the stream // should skip over classes in the stream that aren't in the // real classes hierarchy readFields (obj, this.currentObjectStreamClass.fields, has_read, this.currentObjectStreamClass); if (has_read) {// DEBUG ("ENDBLOCKDATA? "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); } } this.currentObject = null; this.currentObjectStreamClass = null; ret_val = processResolution (obj, handle); break; } case TC_RESET: clearHandles (); ret_val = readObject (); break; case TC_EXCEPTION: { Exception e = (Exception)readObject (); clearHandles (); throw new WriteAbortedException ("Exception thrown during writing of stream", e); } default: throw new IOException ("Unknown marker on stream"); } this.isDeserializing = was_deserializing; if (! was_deserializing) { setBlockDataMode (true); if (validators.size () > 0) invokeValidators (); } return ret_val; }
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/fc168340950fe24246924819019e0b004bdb5365/ObjectInputStream.java/clean/libjava/java/io/ObjectInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4657, 1046, 261, 529, 397, 13636, 10034, 1546, 1769, 4657, 1046, 261, 529, 397, 13636, 10034, 1546, 1769, 1071, 8481, 1046, 261, 529, 397, 13636, 10034, 1546, 1769, 727, 8481, 1046, 261, 529, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4657, 1046, 261, 529, 397, 13636, 10034, 1546, 1769, 4657, 1046, 261, 529, 397, 13636, 10034, 1546, 1769, 1071, 8481, 1046, 261, 529, 397, 13636, 10034, 1546, 1769, 727, 8481, 1046, 261, 529, 39...
m_sourceDirPath = srcDir;
m_sourceDirPath= srcDir;
public void setSourcedir(Path srcDir) { if(m_sourceDirPath == null) { m_sourceDirPath = srcDir; } else { m_sourceDirPath.append(srcDir); } }
46463 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46463/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/TestNGAntTask.java/clean/src/main/org/testng/TestNGAntTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18913, 1214, 12, 743, 30585, 13, 288, 565, 309, 12, 81, 67, 3168, 20129, 422, 446, 13, 288, 1377, 312, 67, 3168, 20129, 33, 30585, 31, 565, 289, 565, 469, 288, 1377, 312, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18913, 1214, 12, 743, 30585, 13, 288, 565, 309, 12, 81, 67, 3168, 20129, 422, 446, 13, 288, 1377, 312, 67, 3168, 20129, 33, 30585, 31, 565, 289, 565, 469, 288, 1377, 312, 6...
if (isLinkingEnabled()) {
if (isLinkingEnabled() && !linkScheduled) { linkScheduled = true;
protected void handleSelectionChanged(SelectionChangedEvent event) { final IStructuredSelection sel = (IStructuredSelection) event .getSelection(); updateStatusLine(sel); updateActionBars(sel); dragDetected = false; if (isLinkingEnabled()) { getShell().getDisplay().asyncExec(new Runnable() { public void run() { if (dragDetected == false) { // only synchronize with editor when the selection is not the result // of a drag. Fixes bug 22274. linkToEditor(sel); } } }); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b45b3e8450d3c533a9bdd6b5f3a99a00c1063fc6/ResourceNavigator.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 6233, 5033, 12, 6233, 27553, 871, 13, 288, 3639, 727, 467, 30733, 6233, 357, 273, 261, 45, 30733, 6233, 13, 871, 7734, 263, 588, 6233, 5621, 3639, 1089, 1482, 1670, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 6233, 5033, 12, 6233, 27553, 871, 13, 288, 3639, 727, 467, 30733, 6233, 357, 273, 261, 45, 30733, 6233, 13, 871, 7734, 263, 588, 6233, 5621, 3639, 1089, 1482, 1670, 12, ...
oldController.updateDateLastModified(controller.getDateLastModified());
oldController.updateDates(controller.getDateLastModified(), controller.getDateExpires());
public byte[] dump( CmsObject cms, CmsResource file, String element, Locale locale, HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // get the current Flex controller CmsFlexController controller = (CmsFlexController)req.getAttribute(CmsFlexController.ATTRIBUTE_NAME); CmsFlexController oldController = null; if (controller != null) { // for dumping we must create an new "top level" controller, save the old one to be restored later oldController = controller; } byte[] result = null; try { // now create a new, temporary Flex controller controller = getController(cms, file, req, res, false, false); // dispatch to the JSP result = dispatchJsp(controller); // remove temporary controller req.removeAttribute(CmsFlexController.ATTRIBUTE_NAME); } finally { if (oldController != null) { // update "date last modified" oldController.updateDateLastModified(controller.getDateLastModified()); // reset saved controller req.setAttribute(CmsFlexController.ATTRIBUTE_NAME, oldController); } } return result; }
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, 1071, 1160, 8526, 4657, 12, 3639, 14371, 6166, 16, 3639, 7630, 585, 16, 3639, 514, 930, 16, 3639, 6458, 2573, 16, 3639, 9984, 1111, 16, 3639, 12446, 400, 565, 262, 1216, 16517, 16, 1860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 4657, 12, 3639, 14371, 6166, 16, 3639, 7630, 585, 16, 3639, 514, 930, 16, 3639, 6458, 2573, 16, 3639, 9984, 1111, 16, 3639, 12446, 400, 565, 262, 1216, 16517, 16, 1860, ...
if(logMINOR) Logger.minor(this, "No requests, adjusted retrycount "+rga.getNumber()+" ("+rga+")");
if(logMINOR) Logger.minor(this, "No requests, adjusted retrycount "+rga.getNumber()+" ("+rga+ ')');
public SendableRequest removeFirst() { // Priorities start at 0 if(logMINOR) Logger.minor(this, "removeFirst()"); int choosenPriorityClass = Integer.MAX_VALUE; choosenPriorityClass = removeFirstAccordingToPriorities(choosenPriorityClass); if(choosenPriorityClass == -1) return null; SortedVectorByNumber s = priorities[choosenPriorityClass]; if(s != null){ while(true) { SectoredRandomGrabArrayWithInt rga = (SectoredRandomGrabArrayWithInt) s.getFirst(); if(rga == null) { if(logMINOR) Logger.minor(this, "No retrycount's left"); break; } SendableRequest req = (SendableRequest) rga.removeRandom(); if(rga.isEmpty()) { if(logMINOR) Logger.minor(this, "Removing retrycount "+rga.getNumber()); s.remove(rga.getNumber()); if(s.isEmpty()) { if(logMINOR) Logger.minor(this, "Should remove priority "); } } if(req == null) { if(logMINOR) Logger.minor(this, "No requests, adjusted retrycount "+rga.getNumber()+" ("+rga+")"); break; } else if(req.getPriorityClass() != choosenPriorityClass) { // Reinsert it : shouldn't happen if we are calling reregisterAll, // maybe we should ask people to report that error if seen if(logMINOR) Logger.minor(this, "In wrong priority class: "+req+" (req.prio="+req.getPriorityClass()+" but chosen="+choosenPriorityClass+")"); innerRegister(req); continue; } if(logMINOR) Logger.minor(this, "removeFirst() returning "+req+" ("+rga.getNumber()+", prio "+ req.getPriorityClass()+", retries "+req.getRetryCount()+", client "+req.getClient()+", client-req "+req.getClientRequest()+")"); ClientRequester cr = req.getClientRequest(); HashSet v = (HashSet) allRequestsByClientRequest.get(cr); v.remove(req); if(v.isEmpty()) allRequestsByClientRequest.remove(cr); return req; } } if(logMINOR) Logger.minor(this, "No requests to run"); return null; }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/62fd59041864b4ed1f43adc676de6bfb5ea977f3/ClientRequestScheduler.java/clean/src/freenet/client/async/ClientRequestScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2479, 429, 691, 1206, 3759, 1435, 288, 202, 202, 759, 30326, 1961, 787, 622, 374, 202, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 4479, 3759, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2479, 429, 691, 1206, 3759, 1435, 288, 202, 202, 759, 30326, 1961, 787, 622, 374, 202, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 4479, 3759, 1435,...
adapter = new StreamMessageAdapter(request.getBody(), conn.getOutputStream());
adapter = connector.getStreamMessageAdapter(request.getBody(), conn.getOutputStream());
public void run() { try { do { conn.setKeepAlive(false); HttpRequest request = conn.readRequest(); if (request == null) { break; } Map headers = new HashMap(); for (Iterator rhi = request.getHeaderIterator(); rhi.hasNext();) { Header header = (Header)rhi.next(); String headerName = header.getName(); Object headerValue = header.getValue(); // fix Mule headers? if (headerName.startsWith("X-MULE")) { headerName = headerName.substring(2); } // Parse cookies? else if (headerName.equals(HttpConnector.HTTP_COOKIES_PROPERTY)) { if (enableCookies) { Cookie[] cookies = CookieHelper.parseCookies(header, cookieSpec); if (cookies.length > 0) { // yum! headerValue = cookies; } else { // bad cookies?! continue; } } else { // no cookies for you! continue; } } // accept header & value headers.put(headerName, headerValue); } RequestLine reqLine = request.getRequestLine(); headers.put(HttpConnector.HTTP_METHOD_PROPERTY, reqLine.getMethod()); headers.put(HttpConnector.HTTP_REQUEST_PROPERTY, reqLine.getUri()); headers.put(HttpConnector.HTTP_VERSION_PROPERTY, reqLine.getHttpVersion().toString()); headers.put(HttpConnector.HTTP_COOKIE_SPEC_PROPERTY, cookieSpec); // TODO Mule 2.0 generic way to set stream message adapter UMOMessageAdapter adapter; Object body; if (endpoint.isStreaming() && request.getBody() != null) { adapter = new StreamMessageAdapter(request.getBody(), conn.getOutputStream()); for (Iterator iterator = headers.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry)iterator.next(); adapter.setProperty((String)entry.getKey(), entry.getValue()); } } else { // respond with status code 100, for Expect handshake according to rfc 2616 and http 1.1 // the processing will continue and the request will be fully read immediately after if (headers.get(HttpConnector.HTTP_VERSION_PROPERTY).equals(HttpConstants.HTTP11)) { // just in case we have something other than String in the headers map String expectHeaderValue = ObjectUtils.toString(headers.get(HttpConstants.HEADER_EXPECT)).toLowerCase(); if (HttpConstants.HEADER_EXPECT_CONTINUE_REQUEST_VALUE.equals(expectHeaderValue)) { HttpResponse expected = new HttpResponse(); expected.setStatusLine(reqLine.getHttpVersion(), HttpConstants.SC_CONTINUE); final MuleEvent event = new MuleEvent(new MuleMessage(expected), endpoint, new MuleSession(component), true); RequestContext.setEvent(event); expected = (HttpResponse) connector.getDefaultResponseTransformer().transform(expected); conn.writeResponse(expected); } } body = request.getBodyBytes(); if (body == null) { body = reqLine.getUri(); } adapter = connector.getMessageAdapter(new Object[]{body, headers}); } UMOMessage message = new MuleMessage(adapter); if (logger.isDebugEnabled()) { logger.debug(message.getProperty(HttpConnector.HTTP_REQUEST_PROPERTY)); } // determine if the request path on this request denotes a // different receiver AbstractMessageReceiver receiver = getTargetReceiver(message, endpoint); // the respone only needs to be transformed explicitly if // A) the request was not served or B) a null result was returned HttpResponse response; if (receiver != null) { UMOMessage returnMessage = receiver.routeMessage(message, endpoint.isSynchronous(), /* TODO streaming */ null); Object tempResponse; if (returnMessage != null) { tempResponse = returnMessage.getPayload(); } else { tempResponse = new NullPayload(); } // This removes the need for users to explicitly adding // the response transformer ObjectToHttpResponse in // their config if (tempResponse instanceof HttpResponse) { response = (HttpResponse)tempResponse; } else { response = (HttpResponse)connector.getDefaultResponseTransformer() .transform(tempResponse); } response.disableKeepAlive(!((HttpConnector)connector).isKeepAlive()); } else { UMOEndpointURI uri = endpoint.getEndpointURI(); String failedPath = uri.getScheme() + "://" + uri.getHost() + ":" + uri.getPort() + getRequestPath(message); if (logger.isDebugEnabled()) { logger.debug("Failed to bind to " + failedPath); } response = new HttpResponse(); response.setStatusLine(reqLine.getHttpVersion(), HttpConstants.SC_NOT_FOUND); response.setBodyString(new Message(Messages.CANNOT_BIND_TO_ADDRESS_X, failedPath).toString()); RequestContext.setEvent(new MuleEvent(new MuleMessage(response), endpoint, new MuleSession(component), true)); // The DefaultResponse Transformer will set the necessary Headers response = (HttpResponse)connector.getDefaultResponseTransformer().transform( response); } conn.writeResponse(response); } while (conn.isKeepAlive()); } catch (Exception e) { handleException(e); } finally { conn.close(); conn = null; } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/ac61a4c8fd733ad8da69574e3acbf85511d4472f/HttpMessageReceiver.java/clean/providers/http/src/main/java/org/mule/providers/http/HttpMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 3639, 288, 5411, 775, 288, 7734, 741, 288, 10792, 1487, 18, 542, 24456, 12, 5743, 1769, 10792, 14069, 590, 273, 1487, 18, 896, 691, 5621, 10792, 309, 261, 2293, 422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 3639, 288, 5411, 775, 288, 7734, 741, 288, 10792, 1487, 18, 542, 24456, 12, 5743, 1769, 10792, 14069, 590, 273, 1487, 18, 896, 691, 5621, 10792, 309, 261, 2293, 422...
Local result = curLGen.generateLocal(type, name + "$local"); SootFieldRef fieldRef = Scene.v().makeFieldRef(cl, name, type, true); curUnits.addLast(Jimple.v().newAssignStmt(result, Jimple.v().newStaticFieldRef(fieldRef))); return result; }
Local result = curLGen.generateLocal(type, name + "$local"); SootFieldRef fieldRef = Scene.v().makeFieldRef(cl, name, type, true); curUnits.addLast(Jimple.v().newAssignStmt(result, Jimple.v().newStaticFieldRef(fieldRef))); return result; }
protected Local getStaticFieldLocal(SootClass cl, String name, Type type) { Local result = curLGen.generateLocal(type, name + "$local"); SootFieldRef fieldRef = Scene.v().makeFieldRef(cl, name, type, true); curUnits.addLast(Jimple.v().newAssignStmt(result, Jimple.v().newStaticFieldRef(fieldRef))); return result; }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/6bfdd4698fa4edb661b1e45946e7d37b991d8275/ClassGenHelper.java/buggy/aop/abc/src/abc/tm/weaving/weaver/ClassGenHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 3566, 23414, 974, 2042, 12, 55, 1632, 797, 927, 16, 514, 508, 16, 1412, 618, 13, 288, 202, 202, 2042, 563, 273, 662, 48, 7642, 18, 7163, 2042, 12, 723, 16, 508, 397, 4662, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3566, 23414, 974, 2042, 12, 55, 1632, 797, 927, 16, 514, 508, 16, 1412, 618, 13, 288, 202, 202, 2042, 563, 273, 662, 48, 7642, 18, 7163, 2042, 12, 723, 16, 508, 397, 4662, ...
public void writeAbstractObject(OutputStream out, Object obj)
public void writeAbstractObject(OutputStream output, Object object)
public void writeAbstractObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/1ae69e4e117f16a6f054d25da0de26f83fe5b43e/UtilDelegateImpl.java/buggy/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 7469, 921, 12, 4632, 876, 16, 1033, 733, 13, 225, 288, 565, 604, 394, 1068, 2932, 1248, 8249, 364, 3564, 9586, 8863, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 7469, 921, 12, 4632, 876, 16, 1033, 733, 13, 225, 288, 565, 604, 394, 1068, 2932, 1248, 8249, 364, 3564, 9586, 8863, 225, 289, 2, -100, -100, -100, -100, -100, -100, -1...
boolean opened = _definitionsPane.open(); if (opened) { _resetInteractions(); _errorPanel.resetErrors(new CompilerError[0]); _saveButton.setEnabled(false); _compileButton.setEnabled(true); }
final String message = "DrJava, brought to you by the Java PLT " + "research group at Rice University.\n" + "http: + "Version: " + Version.BUILD_TIME; JOptionPane.showMessageDialog(MainFrame.this, message);
public void actionPerformed(ActionEvent ae) { boolean opened = _definitionsPane.open(); if (opened) { _resetInteractions(); _errorPanel.resetErrors(new CompilerError[0]); _saveButton.setEnabled(false); _compileButton.setEnabled(true); } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/a937ccbbfe3e2271b14c781e19a341556df45efe/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 1377, 1250, 10191, 273, 389, 13314, 8485, 18, 3190, 5621, 1377, 309, 261, 25304, 13, 288, 3639, 389, 6208, 2465, 4905, 5621, 3639, 389, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 1377, 1250, 10191, 273, 389, 13314, 8485, 18, 3190, 5621, 1377, 309, 261, 25304, 13, 288, 3639, 389, 6208, 2465, 4905, 5621, 3639, 389, 1...
setVisibleEditor(ref, true);
setVisibleEditor(ref, false);
public void openEditor( IEditorReference ref, IEditorReference[] innerEditors, boolean setVisible) { EditorPane pane = new MultiEditorOuterPane(ref, page, editorArea.getActiveWorkbook()); initPane(pane, ref); for (int i = 0; i < innerEditors.length; i++) { EditorPane innerPane = new MultiEditorInnerPane( pane, innerEditors[i], page, editorArea.getActiveWorkbook()); initPane(innerPane, innerEditors[i]); } // Show the editor. editorArea.addEditor(pane); if (setVisible) setVisibleEditor(ref, true); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/118342c3a177c242520e061a654b73535a9bd5dc/EditorAreaHelper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorAreaHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1696, 6946, 12, 202, 202, 45, 6946, 2404, 1278, 16, 202, 202, 45, 6946, 2404, 8526, 3443, 4666, 1383, 16, 202, 202, 6494, 16697, 13, 288, 202, 202, 6946, 8485, 13618, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1696, 6946, 12, 202, 202, 45, 6946, 2404, 1278, 16, 202, 202, 45, 6946, 2404, 8526, 3443, 4666, 1383, 16, 202, 202, 6494, 16697, 13, 288, 202, 202, 6946, 8485, 13618, 273...
rewind(_m223);
rewind(_m233);
public final String qName() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST qName_AST = null; org.exist.xquery.parser.XQueryAST nc1_AST = null; name= null; String name2; boolean synPredMatched223 = false; if (((_tokenSet_2.member(LA(1))))) { int _m223 = mark(); synPredMatched223 = true; inputState.guessing++; try { { ncnameOrKeyword(); match(COLON); ncnameOrKeyword(); } } catch (RecognitionException pe) { synPredMatched223 = false; } rewind(_m223); inputState.guessing--; } if ( synPredMatched223 ) { name=ncnameOrKeyword(); nc1_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); org.exist.xquery.parser.XQueryAST tmp165_AST = null; tmp165_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp165_AST); match(COLON); name2=ncnameOrKeyword(); astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) { qName_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; name= name + ':' + name2; qName_AST.copyLexInfo(nc1_AST); } qName_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else if ((_tokenSet_2.member(LA(1)))) { name=ncnameOrKeyword(); astFactory.addASTChild(currentAST, returnAST); qName_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } returnAST = qName_AST; return name; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 22914, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 22914, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183,...
assertEquals(" 100.5", vs7.toString(true));
assertEquals(" 100"+Const.DEFAULT_DECIMAL_SEPARATOR+"5", vs7.toString(true));
public void testToStringNumber() { Value vs1 = new Value("Name", Value.VALUE_TYPE_NUMBER); assertEquals(" 0.0", vs1.toString(true)); Value vs2 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs2.setNull(); assertEquals("", vs2.toString(true)); Value vs3 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs3.setValue(100.0D); vs3.setLength(6); vs3.setNull(); assertEquals(" ", vs3.toString(true)); Value vs4 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs4.setValue(100.0D); vs4.setLength(6); assertEquals(" 000100.00", vs4.toString(true)); Value vs5 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs5.setValue(100.5D); vs5.setLength(-1); vs5.setPrecision(-1); assertEquals(" 100.5", vs5.toString(true)); Value vs6 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs6.setValue(100.5D); vs6.setLength(8); vs6.setPrecision(-1); assertEquals(" 00000100.50", vs6.toString(true)); Value vs7 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs7.setValue(100.5D); vs7.setLength(0); vs7.setPrecision(3); assertEquals(" 100.5", vs7.toString(true)); Value vs8 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs8.setValue(100.5D); vs8.setLength(5); vs8.setPrecision(3); assertEquals("100.5", vs8.toString(false)); Value vs9 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs9.setValue(100.0D); vs9.setLength(6); assertEquals("100.0", vs9.toString(false)); Value vs10 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs10.setValue(100.5D); vs10.setLength(-1); vs10.setPrecision(-1); assertEquals("100.5", vs10.toString(false)); Value vs11 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs11.setValue(100.5D); vs11.setLength(8); vs11.setPrecision(-1); assertEquals("100.5", vs11.toString(false)); Value vs12 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs12.setValue(100.5D); vs12.setLength(0); vs12.setPrecision(3); assertEquals("100.5", vs12.toString(false)); Value vs13 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs13.setValue(100.5D); vs13.setLength(5); vs13.setPrecision(3); assertEquals("100.5", vs13.toString(false)); Value vs14 = new Value("Name", Value.VALUE_TYPE_NUMBER); vs14.setValue(100.5D); vs14.setLength(5); vs14.setPrecision(3); assertEquals(" 100.500", vs14.toString(true)); }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/27d7d886b40978b4e5a32209ea1cba842c34bf27/ValueTest.java/clean/test/java/be/ibridge/kettle/core/values/ValueTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5808, 1854, 1435, 202, 95, 1082, 565, 1445, 6195, 21, 273, 394, 1445, 2932, 461, 3113, 1445, 18, 4051, 67, 2399, 67, 9931, 1769, 202, 565, 1815, 8867, 2932, 374, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5808, 1854, 1435, 202, 95, 1082, 565, 1445, 6195, 21, 273, 394, 1445, 2932, 461, 3113, 1445, 18, 4051, 67, 2399, 67, 9931, 1769, 202, 565, 1815, 8867, 2932, 374, 18...
return getMethod().getParamTypes(); }
return getMethod().getParamTypes(); }
public jq_Type[] getArgumentTypes() { return getMethod().getParamTypes(); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/d7c792e0a316dd3ac20a9fe9f758abdde9bd79fe/Bytecodes.java/buggy/joeq_core/joeq/Compiler/BytecodeAnalysis/Bytecodes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 20656, 67, 559, 8526, 11950, 2016, 1435, 288, 5411, 327, 6272, 7675, 588, 786, 2016, 5621, 3639, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 20656, 67, 559, 8526, 11950, 2016, 1435, 288, 5411, 327, 6272, 7675, 588, 786, 2016, 5621, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if( points == null ) points = null;
if( points == null ){ this.points = null; return; }
public void setPoints(Float points) throws IllegalArgumentException { if( points == null ) points = null; if( points < 0 ) throw new IllegalArgumentException( "Invalid points value (<0)." ); this.points = points; }
51025 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51025/3c113a3bac1e7279233a65c8a4cc61cf2a11f946/TaskletCorrectionImpl.java/buggy/taskmodel/taskmodel-core/src/de/thorstenberger/taskmodel/impl/TaskletCorrectionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5636, 12, 4723, 3143, 13, 1216, 2754, 288, 202, 202, 430, 12, 3143, 422, 446, 262, 1082, 202, 4139, 273, 446, 31, 9506, 202, 430, 12, 3143, 411, 374, 262, 1082, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5636, 12, 4723, 3143, 13, 1216, 2754, 288, 202, 202, 430, 12, 3143, 422, 446, 262, 1082, 202, 4139, 273, 446, 31, 9506, 202, 430, 12, 3143, 411, 374, 262, 1082, 20...
layoutContainer(scrollbar);
public void stateChanged(ChangeEvent e) { // System.err.println(this + ".stateChanged()"); calculatePreferredSize(); layoutContainer(scrollbar); getThumbBounds(); scrollbar.repaint(); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 919, 5033, 12, 20930, 425, 13, 565, 288, 1377, 368, 4202, 2332, 18, 370, 18, 8222, 12, 2211, 397, 3552, 2019, 5033, 1435, 8863, 1377, 4604, 16028, 1225, 5621, 1377, 3511, 2170,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 919, 5033, 12, 20930, 425, 13, 565, 288, 1377, 368, 4202, 2332, 18, 370, 18, 8222, 12, 2211, 397, 3552, 2019, 5033, 1435, 8863, 1377, 4604, 16028, 1225, 5621, 1377, 3511, 2170,...
stmt.close(); conn.close();
stmt.close(); conn.close();
public void ejbStore() throws RemoteException { PreparedStatement stmt= null; Connection conn = null; if (isDirty) { isDirty = false; try { conn = getConnection(); stmt = conn.prepareStatement("UPDATE users SET firstname=?, lastname=?, nickname=?, password=?, email=?, rating=?, balance=?, creation_date=?, region=? WHERE id=?"); stmt.setString(1,firstName); stmt.setString(2,lastName); stmt.setString(3, nickName); stmt.setString(4, password); stmt.setString(5, email); stmt.setInt(6, rating); stmt.setFloat(7, balance); stmt.setString(8, creationDate); stmt.setInt(9, regionId.intValue()); stmt.setInt(10, id.intValue()); stmt.executeUpdate(); stmt.close(); conn.close(); } catch (Exception e) { try { if(stmt != null) stmt.close(); if(conn != null) conn.close(); } catch (Exception ignore){} throw new RemoteException("Failed to update the record for user: " +e); } } }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/UserBean.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/UserBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18024, 2257, 1435, 1216, 18361, 225, 288, 565, 16913, 3480, 33, 446, 31, 565, 4050, 1487, 273, 446, 31, 565, 309, 261, 291, 10785, 13, 565, 288, 1377, 25206, 273, 629, 31, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18024, 2257, 1435, 1216, 18361, 225, 288, 565, 16913, 3480, 33, 446, 31, 565, 4050, 1487, 273, 446, 31, 565, 309, 261, 291, 10785, 13, 565, 288, 1377, 25206, 273, 629, 31, 13...
return eDynamicGet( eFeature, resolve );
return super.eGet( featureID, resolve, coreType );
public Object eGet( EStructuralFeature eFeature, boolean resolve ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.SERIES_VALUE__NAME : return getName( ); } return eDynamicGet( eFeature, resolve ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/SeriesValueImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/SeriesValueImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 15952, 12, 512, 14372, 4595, 425, 4595, 16, 1250, 2245, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 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, 1033, 15952, 12, 512, 14372, 4595, 425, 4595, 16, 1250, 2245, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202...
case ( LineStyle.DASH_DOTTED ) :
case ( LineStyle.DASH_DOTTED ) :
public void drawLine( LineRenderEvent lre ) throws ChartException { // CHECK IF THE LINE ATTRIBUTES ARE CORRECTLY DEFINED final LineAttributes lia = lre.getLineAttributes( ); if ( !validateLineAttributes( lre.getSource( ), lia ) || lia.getColor( ) == null ) { return; } // DRAW THE LINE final int iOldLineStyle = _gc.getLineStyle( ); final int iOldLineWidth = _gc.getLineWidth( ); final Color cFG = (Color) _ids.getColor( lia.getColor( ) ); int iLineStyle = SWT.LINE_SOLID; switch ( lia.getStyle( ).getValue( ) ) { case ( LineStyle.DOTTED ) : iLineStyle = SWT.LINE_DOT; break; case ( LineStyle.DASH_DOTTED ) : iLineStyle = SWT.LINE_DASHDOT; break; case ( LineStyle.DASHED ) : iLineStyle = SWT.LINE_DASH; break; } _gc.setLineStyle( iLineStyle ); _gc.setLineWidth( lia.getThickness( ) ); final Location lo1 = lre.getStart( ); final Location lo2 = lre.getEnd( ); _gc.setForeground( cFG ); R31Enhance.setAlpha( _gc, lia.getColor( ) ); _gc.drawLine( (int) ( ( lo1.getX( ) + dTranslateX ) * dScale ), (int) ( ( lo1.getY( ) + dTranslateY ) * dScale ), (int) ( ( lo2.getX( ) + dTranslateX ) * dScale ), (int) ( ( lo2.getY( ) + dTranslateY ) * dScale ) ); _gc.setLineStyle( iOldLineStyle ); _gc.setLineWidth( iOldLineWidth ); cFG.dispose( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/20bb7679d106e8105100c095c900612d5a37a46d/SwtRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 30732, 12, 5377, 3420, 1133, 328, 266, 262, 1216, 14804, 503, 202, 95, 202, 202, 759, 14565, 11083, 12786, 14340, 14043, 18744, 432, 862, 28359, 4512, 7076, 2030, 7263, 2056,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30732, 12, 5377, 3420, 1133, 328, 266, 262, 1216, 14804, 503, 202, 95, 202, 202, 759, 14565, 11083, 12786, 14340, 14043, 18744, 432, 862, 28359, 4512, 7076, 2030, 7263, 2056,...
super(missingObjectQuestionKey, isRequired);
this(missingObjectQuestionKey, isRequired, null);
public NamedObjectParameter(String missingObjectQuestionKey, boolean isRequired) { super(missingObjectQuestionKey, isRequired); }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/33224cd9347c201ad54b4574fba3473e60e38dd3/NamedObjectParameter.java/buggy/kom/java/nu/rydin/kom/frontend/text/parser/NamedObjectParameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9796, 921, 1662, 12, 780, 3315, 921, 11665, 653, 16, 5411, 1250, 14967, 13, 565, 288, 3639, 333, 12, 7337, 921, 11665, 653, 16, 14967, 16, 446, 1769, 565, 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, 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, 9796, 921, 1662, 12, 780, 3315, 921, 11665, 653, 16, 5411, 1250, 14967, 13, 565, 288, 3639, 333, 12, 7337, 921, 11665, 653, 16, 14967, 16, 446, 1769, 565, 289, 2, -100, -100, -100...
hmc = null;
public void testDynamicMethods() { HibernateMappedClass hmc = new HibernateMappedClass(); hmc.setMyProp("somevalue"); InvokerHelper.invokeMethod(hmc, "save", new Object[0]); String className = hmc.getClass().getName(); hmc = null; hmc = (HibernateMappedClass)InvokerHelper.invokeStaticMethod(hmc.getClass(), "get", new Object[] { new Integer(1) }); assertEquals("somevalue", hmc.getMyProp()); }
53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/a113f8428945f1c3a2a52ac8a13a0f4cb06dc2e6/HibernateMappedClassTests.java/clean/test/persistence/org/codehaus/groovy/grails/orm/hibernate/HibernateMappedClassTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9791, 4712, 1435, 288, 202, 202, 44, 24360, 12868, 797, 366, 13952, 273, 394, 670, 24360, 12868, 797, 5621, 202, 202, 76, 13952, 18, 542, 12062, 4658, 2932, 19068, 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, 225, 202, 482, 918, 1842, 9791, 4712, 1435, 288, 202, 202, 44, 24360, 12868, 797, 366, 13952, 273, 394, 670, 24360, 12868, 797, 5621, 202, 202, 76, 13952, 18, 542, 12062, 4658, 2932, 19068, 11...
if (LT(1) == IToken.t_typename) { typeName = true; consume(IToken.t_typename); }
if (LT(1) == IToken.t_typename) { typeName = true; consume(IToken.t_typename); }
protected IASTDeclaration usingClause() throws EndOfFileException, BacktrackException { IToken firstToken = consume(IToken.t_using); if (LT(1) == IToken.t_namespace) { // using-directive int endOffset = consume(IToken.t_namespace).getEndOffset(); IASTName name = null; if (LT(1) == IToken.tIDENTIFIER || LT(1) == IToken.tCOLONCOLON) name = createName(name()); else throwBacktrack(firstToken.getOffset(), endOffset - firstToken.getOffset()); endOffset = consume(IToken.tSEMI).getEndOffset(); ICPPASTUsingDirective astUD = createUsingDirective(); ((ASTNode) astUD).setOffsetAndLength(firstToken.getOffset(), endOffset - firstToken.getOffset()); astUD.setQualifiedName(name); name.setParent(astUD); name.setPropertyInParent(ICPPASTUsingDirective.QUALIFIED_NAME); return astUD; } boolean typeName = false; if (LT(1) == IToken.t_typename) { typeName = true; consume(IToken.t_typename); } IASTName name = createName(name()); int end = consume(IToken.tSEMI).getEndOffset(); ICPPASTUsingDeclaration result = createUsingDeclaration(); ((ASTNode) result).setOffsetAndLength(firstToken.getOffset(), end - firstToken.getOffset()); result.setIsTypename(typeName); result.setName(name); name.setPropertyInParent(ICPPASTUsingDeclaration.NAME); name.setParent(result); return result; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/8b59056395eb6c26e898030e7e1cd1b78d4db999/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 467, 9053, 6094, 1450, 7044, 1435, 1216, 4403, 951, 812, 503, 16, 540, 4297, 4101, 503, 288, 1377, 467, 1345, 1122, 1345, 273, 7865, 12, 1285, 969, 18, 88, 67, 9940, 1769, 1377, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 467, 9053, 6094, 1450, 7044, 1435, 1216, 4403, 951, 812, 503, 16, 540, 4297, 4101, 503, 288, 1377, 467, 1345, 1122, 1345, 273, 7865, 12, 1285, 969, 18, 88, 67, 9940, 1769, 1377, 3...
protected void addSymbols(MachO.Symbol[] array, int type, CPPFilt cppfilt, List list) {
private void addSymbols(MachO.Symbol[] array, int type, CPPFilt cppfilt, List list) {
protected void addSymbols(MachO.Symbol[] array, int type, CPPFilt cppfilt, List list) { for (int i = 0; i < array.length; i++) { String name = array[i].toString(); if (cppfilt != null) { try { name = cppfilt.getFunction(name); } catch (IOException e1) { cppfilt = null; } } long addr = array[i].n_value; int size = 0; String filename = array[i].getFilename(); IPath filePath = (filename != null) ? new Path(filename) : null; //$NON-NLS-1$ list.add(new Symbol(this, name, type, new Addr32(array[i].n_value), size, filePath, array[i].getLineNumber(addr), array[i].getLineNumber(addr + size - 1))); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/96f8f74ff891fc711574b636826006b328303a0c/MachOBinaryObject.java/buggy/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/macho/parser/MachOBinaryObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 14821, 12, 49, 497, 51, 18, 5335, 8526, 526, 16, 509, 618, 16, 5181, 22026, 4526, 3283, 14241, 4526, 16, 987, 666, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 14821, 12, 49, 497, 51, 18, 5335, 8526, 526, 16, 509, 618, 16, 5181, 22026, 4526, 3283, 14241, 4526, 16, 987, 666, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 37...
UCharacterIterator siter = new UCharacterIterator(source, textoffset, source.length());
StringCharacterIterator siter = new StringCharacterIterator(source, textoffset, source.length(), textoffset);
private final int doPrimaryCompare(boolean doHiragana4, int lowestpvalue, String source, String target, int textoffset, int cebuffer[][], int cebuffersize[]) { // Preparing the context objects for iterating over strings UCharacterIterator siter = new UCharacterIterator(source, textoffset, source.length()); CollationElementIterator scoleiter = new CollationElementIterator( siter, this); UCharacterIterator titer = new UCharacterIterator(target, textoffset, target.length()); CollationElementIterator tcoleiter = new CollationElementIterator( titer, this); // Non shifted primary processing is quite simple if (!m_isAlternateHandlingShifted_) { int hiraganaresult = 0; while (true) { int sorder = 0; // We fetch CEs until we hit a non ignorable primary or end. do { sorder = scoleiter.next(); append(cebuffer, cebuffersize, 0, sorder); sorder &= CE_PRIMARY_MASK_; } while (sorder == CollationElementIterator.IGNORABLE); int torder = 0; do { torder = tcoleiter.next(); append(cebuffer, cebuffersize, 1, torder); torder &= CE_PRIMARY_MASK_; } while (torder == CollationElementIterator.IGNORABLE); // if both primaries are the same if (sorder == torder) { // and there are no more CEs, we advance to the next level if (cebuffer[0][cebuffersize[0] - 1] == CollationElementIterator.NULLORDER) { break; } if (doHiragana4 && hiraganaresult == 0 && scoleiter.m_isCodePointHiragana_ != tcoleiter.m_isCodePointHiragana_) { if (scoleiter.m_isCodePointHiragana_) { hiraganaresult = -1; } else { hiraganaresult = 1; } } } else { // if two primaries are different, we are done return endCompare(sorder, torder, cebuffer, cebuffersize); } } // no primary difference... do the rest from the buffers return hiraganaresult; } else { // shifted - do a slightly more complicated processing :) while (true) { int sorder = getPrimaryShiftedCompareCE(scoleiter, lowestpvalue, cebuffer, cebuffersize, 0); int torder = getPrimaryShiftedCompareCE(tcoleiter, lowestpvalue, cebuffer, cebuffersize, 1); if (sorder == torder) { if (cebuffer[0][cebuffersize[0] - 1] == CollationElementIterator.NULLORDER) { break; } else { continue; } } else { return endCompare(sorder, torder, cebuffer, cebuffersize); } } // no primary difference... do the rest from the buffers } return 0; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/9172f8ef1276d1476ec2c2d2eca8ffef1cfd316f/RuleBasedCollator.java/clean/icu4j/src/com/ibm/icu/text/RuleBasedCollator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 509, 741, 6793, 8583, 12, 6494, 741, 44, 481, 346, 13848, 24, 16, 509, 11981, 84, 1132, 16, 6862, 25083, 202, 780, 1084, 16, 514, 1018, 16, 17322, 202, 202, 474, 977, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 509, 741, 6793, 8583, 12, 6494, 741, 44, 481, 346, 13848, 24, 16, 509, 11981, 84, 1132, 16, 6862, 25083, 202, 780, 1084, 16, 514, 1018, 16, 17322, 202, 202, 474, 977, ...
copy.Ident(tree, name.toTypeName()),
copy.Ident(tree, name).setSymbol(sym.type().resultType().symbol()),
Tree adapt(Tree tree, int mode, Type pt) { //new TextTreePrinter().print(tree).print(" adapt " + pt).println().end();//DEBUG switch (tree.type) { case OverloadedType(Symbol[] alts, Type[] alttypes): // resolve overloading if ((mode & FUNmode) == 0) { try { infer.exprAlternative(tree, alts, alttypes, pt); } catch (Type.Error ex) { error(tree.pos, ex.msg); } switch (tree.type) { case OverloadedType(_, _): // overload resolution failed bcs no alternative matched prototype. typeError(tree.pos, tree.type, pt); tree.setSymbol(Symbol.ERROR).setType(Type.ErrorType); break; default: return adapt(tree, mode, pt); } } break; case PolyType(Symbol[] tparams, Type restp): // apply parameterless functions // instantiate polymorphic expressions if (tparams.length == 0) { return adapt(tree.setType(restp), mode, pt); } else if ((mode & (FUNmode | POLYmode)) == 0) { try { tree = infer.exprInstance(tree, tparams, restp, pt); } catch (Type.Error ex) { tree = error(tree.pos, ex.msg); } return adapt(tree, mode, pt); } break; case MethodType(_, _): // convert unapplied methods to functions. if ((mode & (EXPRmode | FUNmode)) == EXPRmode && infer.isCompatible(tree.type, pt)) { checkEtaExpandable(tree.pos, tree.type); return transform(desugarize.etaExpand(tree, tree.type), mode, pt); } else if ((mode & (CONSTRmode | FUNmode)) == CONSTRmode) { return error(tree.pos, "missing arguments for class constructor"); } } if ((mode & PATTERNmode) != 0) { if (tree.isType()) { Symbol clazz = tree.type.unalias().symbol(); if (clazz.isCaseClass()) { // set type to instantiated case class constructor tree.type = clazz.constructor().type(); switch (tree.type) { case PolyType(Symbol[] tparams, Type restp): try { infer.constructorInstance(tree, tparams, restp, pt); } catch (Type.Error ex) { if (pt != Type.ErrorType) error(tree.pos, ex.msg); return tree.setType(Type.ErrorType); } if (!(tree.type instanceof Type.MethodType)) tree = make.Apply(tree.pos, tree, Tree.EMPTY_ARRAY) .setType(tree.type); } } else if (clazz.isSubClass(definitions.SEQ_CLASS)) { // set type to instantiated sequence class constructor Type seqtp = dropVarArgs(pt.baseType(clazz)); if (seqtp != Type.NoType) { tree.type = seqConstructorType(seqtp, pt); } else { error(tree.pos, "expected pattern type " + pt + " does not conform to sequence " + clazz); } } else if (tree.type != Type.ErrorType) { error(tree.pos, tree.type.symbol() + " is neither a case class constructor nor a sequence class constructor"); } } if ((mode & FUNmode) != 0) { return tree; } else { Symbol sym = tree.symbol(); // convert nullary case methods to types // check that other idents or selects are stable. switch (tree) { case Ident(Name name): if (sym != null && isNullaryMethod(sym) && (sym.flags & CASE) != 0) return transform( make.Apply( tree.pos, copy.Ident(tree, name.toTypeName()), Tree.EMPTY_ARRAY), mode, pt); else checkStable(tree); break; case Select(Tree qual, Name name): if (sym != null && isNullaryMethod(sym) && (sym.flags & CASE) != 0) return transform( make.Apply( tree.pos, copy.Select(tree, qual, name.toTypeName()), Tree.EMPTY_ARRAY), mode, pt); else checkStable(tree); } } } else if ((mode & EXPRmode) != 0) { if ((mode & FUNmode) != 0) { if (tree.type.isObjectType()) { // insert apply method Symbol applyMeth = tree.type.lookup(Names.apply); if (applyMeth != Symbol.NONE && isAccessible(applyMeth, tree)) { applyMeth.flags |= (ACCESSED | SELECTOR); tree = make.Select(tree.pos, tree, Names.apply) .setSymbol(applyMeth) .setType(tree.type.memberType(applyMeth)); return adapt(tree, mode, pt); } } } else if ((mode & QUALmode) == 0) { // check that packages and static modules are not used as values Symbol sym = tree.symbol(); if (sym != null && sym.kind != ERROR && !sym.isValue() && tree.isTerm()) { error(tree.pos, tree.symbol() + " is not a value"); } } } Type owntype = tree.type; if ((mode & (CONSTRmode | FUNmode)) == (CONSTRmode)) owntype = owntype.instanceType(); if (!(owntype instanceof Type.PolyType || owntype.isSubType(pt))) { typeError(tree.pos, owntype, pt); explainTypes(owntype, pt); tree.type = Type.ErrorType; } return tree; }
49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/3f3e6accb7494b2a5f9dff9e40a80ce07685cf92/Analyzer.java/clean/sources/scalac/typechecker/Analyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4902, 5855, 12, 2471, 2151, 16, 509, 1965, 16, 1412, 5818, 13, 288, 202, 759, 2704, 3867, 2471, 12149, 7675, 1188, 12, 3413, 2934, 1188, 2932, 5855, 315, 397, 5818, 2934, 8222, 7675, 409,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4902, 5855, 12, 2471, 2151, 16, 509, 1965, 16, 1412, 5818, 13, 288, 202, 759, 2704, 3867, 2471, 12149, 7675, 1188, 12, 3413, 2934, 1188, 2932, 5855, 315, 397, 5818, 2934, 8222, 7675, 409,...
private org.omg.CORBA.portable.InputStream invoke_internal ( org.omg.CORBA.Object self, org.omg.CORBA.portable.OutputStream os, org.omg.Messaging.ReplyHandler replyHandler, boolean async ) throws ApplicationException, RemarshalException { RequestOutputStream ros = ( RequestOutputStream ) os; ReplyReceiver receiver = null; ClientInterceptorHandler interceptors = new ClientInterceptorHandler ( orb, ros, self, this, piorOriginal, connection ); interceptors.handle_send_request(); try { if ( !ros.response_expected() ) // oneway op { invoke_oneway (ros, interceptors); return null; } else // response expected, synchronous or asynchronous { receiver = new ReplyReceiver ( this, ros.operation(), ros.getReplyEndTime(), interceptors, replyHandler ); // Store the receiver in pending_replies, so in the // case of a LocationForward a RemarshalException can // be thrown to *all* waiting threads. synchronized ( pending_replies ) { pending_replies.add ( receiver ); } synchronized ( bind_sync ) { if ( ros.getConnection() == connection ) { //RequestOutputStream has been created for //exactly this connection connection.sendRequest( ros, receiver, ros.requestId(), true ); // response expected } else { if (logger.isDebugEnabled()) logger.debug("invoke: RemarshalException"); // RequestOutputStream has been created for // another connection, so try again throw new RemarshalException(); } } } } catch ( org.omg.CORBA.SystemException cfe ) { if (logger.isDebugEnabled()) logger.debug("invoke: SystemException"); interceptors.handle_receive_exception ( cfe ); if ( cfe instanceof org.omg.CORBA.TRANSIENT ) { // The exception is a TRANSIENT, so try rebinding. if ( try_rebind() ) { throw new RemarshalException(); } } throw cfe; } if ( !async && receiver != null ) { // Synchronous invocation, response expected. // This call blocks until the reply arrives. org.omg.CORBA.portable.InputStream is = receiver.getReply(); return is; } else { return null; } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b9e614c7400c1367aac9cb543b398e9b6ba1628a/Delegate.java/clean/src/org/jacorb/orb/Delegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2358, 18, 362, 75, 18, 9428, 12536, 18, 655, 429, 18, 4348, 4356, 67, 7236, 1171, 9079, 261, 2358, 18, 362, 75, 18, 9428, 12536, 18, 921, 365, 16, 4766, 2358, 18, 362, 75, 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, 2358, 18, 362, 75, 18, 9428, 12536, 18, 655, 429, 18, 4348, 4356, 67, 7236, 1171, 9079, 261, 2358, 18, 362, 75, 18, 9428, 12536, 18, 921, 365, 16, 4766, 2358, 18, 362, 75, 18, ...
this.testInteger = Integer.valueOf(0);
this.testInteger = new Integer(0);
public void testApplyConstraint() { // test validate email // --------------------------------------------------------------------- ConstrainedProperty cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testEmail", String.class); cp.applyConstraint( ConstrainedProperty.EMAIL_CONSTRAINT, new Boolean(true) ); assertTrue(cp.getAppliedConstraints().size() == 1); Errors errors = new BindException(this,"testObject"); Constraint c = null; for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testEmail, errors); } assertTrue(errors.hasErrors()); FieldError error = errors.getFieldError("testEmail"); assertNotNull(error); assertEquals("rubbish_email",error.getRejectedValue()); this.testEmail = "avalidemail@hotmail.com"; errors = new BindException(this,"testObject"); c.validate(this, this.testEmail,errors); assertFalse(errors.hasErrors()); // test validate url // --------------------------------------------------------------------- cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testURL", String.class); cp.applyConstraint( ConstrainedProperty.URL_CONSTRAINT, new Boolean(true) ); assertTrue(cp.getAppliedConstraints().size() == 1); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } // validate that an invalid URL value yields an error assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); assertNotNull(error); assertEquals(this.testURL,error.getRejectedValue()); // validate that a valid URL value does *not* yield an error this.testURL = "http://www.google.com"; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertFalse(errors.hasErrors()); // validate that a null URL value yields an error this.testURL = null; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); assertNotNull(error); // test blank constraint // --------------------------------------------------------------------- cp.applyConstraint( ConstrainedProperty.URL_CONSTRAINT, null ); cp.applyConstraint( ConstrainedProperty.BLANK_CONSTRAINT, new Boolean(false) ); assertTrue(cp.getAppliedConstraints().size() == 1); errors = new BindException(this,"testObject"); this.testURL = ""; for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); System.out.println(error); assertNotNull(error); // test nullable constraint // --------------------------------------------------------------------- cp.applyConstraint( ConstrainedProperty.BLANK_CONSTRAINT, new Boolean(true) ); cp.applyConstraint( ConstrainedProperty.NULLABLE_CONSTRAINT, new Boolean(false) ); errors = new BindException(this,"testObject"); this.testURL = null; for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); System.out.println(error); assertNotNull(error); // test inList constraint // --------------------------------------------------------------------- cp.applyConstraint( ConstrainedProperty.NULLABLE_CONSTRAINT, new Boolean(true) ); List list = new ArrayList(); list.add("one"); list.add("two"); list.add("three"); this.testURL = "something"; cp.applyConstraint( ConstrainedProperty.IN_LIST_CONSTRAINT, list ); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); System.out.println(error); assertNotNull(error); // Validate that the error includes the correct error code assertTrue(Arrays.asList(error.getCodes()).contains("constrainedPropertyTests.testURL.not.inList")); this.testURL = "two"; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertFalse(errors.hasErrors()); // test length constraint // --------------------------------------------------------------------- cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testURL", String.class); cp.applyConstraint( ConstrainedProperty.LENGTH_CONSTRAINT, new IntRange(5,15) ); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); System.out.println(error); assertNotNull(error); this.testURL = "absolutelytotallytoolong"; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertTrue(errors.hasErrors()); // test min constraint // --------------------------------------------------------------------- final Date BEGINNING_OF_TIME = new Date(0); final Date NOW = new Date(); final Date ONE_DAY_FROM_NOW = new Date(System.currentTimeMillis() + 86400000); this.testDate = BEGINNING_OF_TIME; cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testDate", String.class); cp.applyConstraint( ConstrainedProperty.MIN_CONSTRAINT, NOW); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testDate, errors); } // validate that a value *less than* the minimum value yields an error assertTrue(errors.hasErrors()); error = errors.getFieldError("testDate"); System.out.println(error); assertNotNull(error); // validate that a value *equal to* the minimum value does *not* yield an error this.testDate = NOW; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertFalse(errors.hasErrors()); // validate that a value *greater than* the minimum value does *not* yield an error this.testDate = ONE_DAY_FROM_NOW; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertFalse(errors.hasErrors()); // validate that a null value yields an error this.testDate = null; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testDate"); System.out.println(error); assertNotNull(error); // test max constraint // --------------------------------------------------------------------- this.testDate = BEGINNING_OF_TIME; cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testDate", String.class); cp.applyConstraint( ConstrainedProperty.MAX_CONSTRAINT, NOW); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testDate, errors); } // validate that a value *less than* the maximum value does *not* yield an error assertFalse(errors.hasErrors()); // validate that a value *equal to* the maximum value does *not* yield an error this.testDate = NOW; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertFalse(errors.hasErrors()); // validate that a value *greater than* the maximum value yields an error this.testDate = ONE_DAY_FROM_NOW; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testDate"); System.out.println(error); assertNotNull(error); // validate that a null value yields an error this.testDate = null; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testDate"); System.out.println(error); assertNotNull(error); // test maxSize constraint // --------------------------------------------------------------------- this.testInteger = Integer.valueOf(Integer.MIN_VALUE); cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testInteger", String.class); cp.applyConstraint( ConstrainedProperty.MAX_SIZE_CONSTRAINT, Integer.valueOf(0)); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testInteger, errors); } // validate that a value *less than* the maximum value does *not* yield an error assertFalse(errors.hasErrors()); // validate that a value *equal to* the maximum value does *not* yield an error this.testInteger = Integer.valueOf(0); errors = new BindException(this,"testObject"); c.validate(this, this.testInteger,errors); assertFalse(errors.hasErrors()); // validate that a value *greater than* the maximum value yields an error this.testInteger = Integer.valueOf(Integer.MAX_VALUE); errors = new BindException(this,"testObject"); c.validate(this, this.testInteger,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testInteger"); assertNotNull(error); // test minSize constraint // --------------------------------------------------------------------- this.testInteger = Integer.valueOf(Integer.MAX_VALUE); cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testInteger", String.class); cp.applyConstraint( ConstrainedProperty.MIN_SIZE_CONSTRAINT, Integer.valueOf(0)); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testInteger, errors); } // validate that a value *greater than* the minimum value does *not* yield an error assertFalse(errors.hasErrors()); // validate that a value *equal to* the minimum value does *not* yield an error this.testInteger = Integer.valueOf(0); errors = new BindException(this,"testObject"); c.validate(this, this.testInteger,errors); assertFalse(errors.hasErrors()); // validate that a value *less than* the minimum value yields an error this.testInteger = Integer.valueOf(Integer.MIN_VALUE); errors = new BindException(this,"testObject"); c.validate(this, this.testInteger,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testInteger"); assertNotNull(error); // test validate matches (regex) // --------------------------------------------------------------------- cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testURL", String.class); cp.applyConstraint( ConstrainedProperty.MATCHES_CONSTRAINT, "[a-zA-Z]" ); assertTrue(cp.getAppliedConstraints().size() == 1); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } // validate that a value *not* matching the regex yields an error this.testURL = "$"; assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); assertNotNull(error); // validate that a value matching the regex does *not* yield an error this.testURL = "j"; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertFalse(errors.hasErrors()); // validate that a null value yields an error this.testURL = null; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); assertNotNull(error); }
50831 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50831/37ceae746fefa3ebb8dd0ecb363ae64909d00888/ConstrainedPropertyTests.java/buggy/test/commons/org/codehaus/groovy/grails/validation/ConstrainedPropertyTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7001, 5806, 1435, 288, 3639, 368, 1842, 1954, 2699, 3639, 368, 8879, 553, 3639, 735, 31142, 1396, 3283, 273, 394, 735, 31142, 1396, 12, 442, 31142, 1396, 14650, 18, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7001, 5806, 1435, 288, 3639, 368, 1842, 1954, 2699, 3639, 368, 8879, 553, 3639, 735, 31142, 1396, 3283, 273, 394, 735, 31142, 1396, 12, 442, 31142, 1396, 14650, 18, 1106, ...
BeanProperty(Method getter, Method setter)
BeanProperty(MemberBox getter, MemberBox setter)
BeanProperty(Method getter, Method setter) { this.getter = getter; this.setter = setter; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 7704, 1396, 12, 4419, 3514, 7060, 16, 8596, 3514, 7794, 13, 565, 288, 3639, 333, 18, 11990, 273, 7060, 31, 3639, 333, 18, 18062, 273, 7794, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 7704, 1396, 12, 4419, 3514, 7060, 16, 8596, 3514, 7794, 13, 565, 288, 3639, 333, 18, 11990, 273, 7060, 31, 3639, 333, 18, 18062, 273, 7794, 31, 565, 289, 2, -100, -100, -100, -100, -100...
Object iidStr = cl.getField(IID_STRING).get(cl); if (iidStr instanceof String) { IID iid = new IID((String)iidStr);
Object iidTmp = cl.getField(IID_STRING).get(cl); if (iidTmp instanceof IID) { IID iid = (IID)iidTmp;
private static Hashtable registerInterfaces(Class cl) { try { Object iidStr = cl.getField(IID_STRING).get(cl); if (iidStr instanceof String) { IID iid = new IID((String)iidStr); // if this iface hasn't been registered, yet if (interfaces.get(iid) == null) { String[] methodNames = Utilities.getInterfaceMethodNames((String)iidStr); if (methodNames != null) { Method[] rmethods = new Method[methodNames.length]; Class[] ifaces = cl.getInterfaces(); // check for single inheritance (xpcom) if (ifaces.length < 2) { // recursively get all parent interface methods Hashtable mhash = null; Method[] methods = cl.getDeclaredMethods(); // the very super iface if (ifaces.length == 0) { mhash = new Hashtable(methods.length); } else { mhash = new Hashtable(registerInterfaces(ifaces[0])); } for (int i = 0; i < methods.length; i++) { mhash.put(methods[i].getName(), methods[i]); } for (int j = methodNames.length - 1; j >= 0; j--) { rmethods[j] = (Method)mhash.get(subscriptMethodName(methodNames[j])); } interfaces.put(iid, cl); iMethods.put(iid, new MethodArray(rmethods, mhash)); debug(cl.getName() + ": " + iid + " ( " + cl + " )"); printMethods(rmethods); return mhash; } } // simply pass iface methods } else { MethodArray m = (MethodArray)iMethods.get(iid); if (m != null) { return m.names; } } } } catch (NoSuchFieldException e) { // the interface doesn't define IID field debug("no such field..."); } catch (IllegalAccessException e1) { debug("can't access field..."); } return new Hashtable(); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/41fe7095a7d54e02dd8c0bac80b7264fac98049b/InterfaceRegistry.java/clean/java/xpcom/java/classes/org/mozilla/xpcom/InterfaceRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 18559, 1744, 10273, 12, 797, 927, 13, 288, 3639, 775, 288, 5411, 1033, 22819, 1585, 273, 927, 18, 588, 974, 12, 45, 734, 67, 5804, 2934, 588, 12, 830, 1769, 5411, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 18559, 1744, 10273, 12, 797, 927, 13, 288, 3639, 775, 288, 5411, 1033, 22819, 1585, 273, 927, 18, 588, 974, 12, 45, 734, 67, 5804, 2934, 588, 12, 830, 1769, 5411, 309, 261, ...
return contains(r.x, r.y, r.width, r.height);
return (x >= this.x && x <= this.x + this.width && y >= this.y && y <= this.y + this.height);
public boolean contains(Rectangle r) { return contains(r.x, r.y, r.width, r.height); }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/708062224a502c41561e122dcde5accf23f77ad9/Rectangle.java/buggy/libjava/java/awt/Rectangle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1914, 12, 19463, 436, 13, 225, 288, 565, 327, 261, 92, 1545, 333, 18, 92, 597, 619, 1648, 333, 18, 92, 397, 333, 18, 2819, 597, 677, 1545, 333, 18, 93, 597, 677, 1648, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1914, 12, 19463, 436, 13, 225, 288, 565, 327, 261, 92, 1545, 333, 18, 92, 597, 619, 1648, 333, 18, 92, 397, 333, 18, 2819, 597, 677, 1545, 333, 18, 93, 597, 677, 1648, 3...
protected void removeEdge(Object edge) { if (isTreeEdge(edge)) { replaceTreeEdge(edge); } }
protected abstract void removeEdge(Object edge);
protected void removeEdge(Object edge) { if (isTreeEdge(edge)) { replaceTreeEdge(edge); } }
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/5c358c8ed2d5c3d5c3e4ccdd92928173ede89561/GraphSpanningTree.java/buggy/trunk/taverna1.0/src/org/embl/ebi/escience/scuflui/graph/GraphSpanningTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1206, 6098, 12, 921, 3591, 13, 202, 95, 202, 202, 430, 261, 291, 2471, 6098, 12, 7126, 3719, 202, 202, 95, 1082, 202, 2079, 2471, 6098, 12, 7126, 1769, 202, 202, 97, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1206, 6098, 12, 921, 3591, 13, 202, 95, 202, 202, 430, 261, 291, 2471, 6098, 12, 7126, 3719, 202, 202, 95, 1082, 202, 2079, 2471, 6098, 12, 7126, 1769, 202, 202, 97, 2...
if (jj_3R_187()) return true;
if (jj_3R_132()) return true;
final private boolean jj_3R_150() { if (jj_3R_187()) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/b068fe5a79db07a544f081402e946a51a0f553c2/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 23014, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 22152, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 23014, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 22152, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, ...
Properties cldKeys = PropertiesUtil.getPropertiesStartingWith(cldName, keys); cldKeys = PropertiesUtil.stripStart(cldName, cldKeys); List keyNames = new ArrayList(cldKeys.keySet()); Collections.sort(keyNames); Iterator iter = keyNames.iterator(); while (iter.hasNext()) { String keyName = (String) iter.next(); PrimaryKey key = new PrimaryKey((String) cldKeys.get(keyName)); keyMap.put(keyName, key);
String keyList = (String) keys.get(cldName); if (keyList != null) { String[] tokens = keyList.split(","); for (int i = 0; i < tokens.length; i++) { String token = tokens[i].trim(); keySet.add(map.get(token)); }
public static Map getPrimaryKeys(ClassDescriptor cld) { Map keyMap = new LinkedHashMap(); Properties keys = getKeyProperties(cld.getModel()); String cldName = TypeUtil.unqualifiedName(cld.getName()); Properties cldKeys = PropertiesUtil.getPropertiesStartingWith(cldName, keys); cldKeys = PropertiesUtil.stripStart(cldName, cldKeys); List keyNames = new ArrayList(cldKeys.keySet()); Collections.sort(keyNames); Iterator iter = keyNames.iterator(); while (iter.hasNext()) { String keyName = (String) iter.next(); PrimaryKey key = new PrimaryKey((String) cldKeys.get(keyName)); keyMap.put(keyName, key); } return keyMap; }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/ed366c68ac4541a83d574dd180cd17a134bcc795/DataLoaderHelper.java/buggy/intermine/integrate/main/src/org/intermine/dataloader/DataLoaderHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 11398, 2396, 12, 797, 3187, 23451, 13, 288, 3639, 1635, 498, 863, 273, 394, 13589, 5621, 3639, 6183, 1311, 273, 3579, 2297, 12, 830, 72, 18, 588, 1488, 10663, 3639, 514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 11398, 2396, 12, 797, 3187, 23451, 13, 288, 3639, 1635, 498, 863, 273, 394, 13589, 5621, 3639, 6183, 1311, 273, 3579, 2297, 12, 830, 72, 18, 588, 1488, 10663, 3639, 514, ...
return new WWinPluginAction(actionElement, ATT_CLASS, (IWorkbenchWindow)target,definitionId);
return new WWinPluginAction(actionElement, ATT_CLASS, (IWorkbenchWindow)target, defId, actionStyle);
private PluginAction createAction(int targetType, IConfigurationElement actionElement, Object target) { switch (targetType) { case T_VIEW: return new ViewPluginAction(actionElement, ATT_CLASS, (IViewPart)target,definitionId); case T_EDITOR: return new EditorPluginAction(actionElement, ATT_CLASS, (IEditorPart)target,definitionId); case T_WORKBENCH: return new WWinPluginAction(actionElement, ATT_CLASS, (IWorkbenchWindow)target,definitionId); case T_WORKBENCH_PULLDOWN: return new WWinPluginPulldown(actionElement, ATT_CLASS, (IWorkbenchWindow)target,definitionId); case T_POPUP: return new ObjectPluginAction(actionElement, ATT_CLASS,definitionId); default: WorkbenchPlugin.log("Unknown Action Type: " + targetType);//$NON-NLS-1$ return null; }}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/dff9886f34ad3b8dcd475481030dcd03671c04c0/ActionDescriptor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6258, 1803, 752, 1803, 12, 474, 16065, 16, 467, 1750, 1046, 1301, 1046, 16, 1033, 1018, 13, 288, 202, 9610, 261, 3299, 559, 13, 288, 202, 202, 3593, 399, 67, 12145, 30, 1082, 202, 2463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6258, 1803, 752, 1803, 12, 474, 16065, 16, 467, 1750, 1046, 1301, 1046, 16, 1033, 1018, 13, 288, 202, 9610, 261, 3299, 559, 13, 288, 202, 202, 3593, 399, 67, 12145, 30, 1082, 202, 2463...
if (maps[i].hasTask()) {
int realIdx = (i + firstMapToTry) % maps.length; if (maps[realIdx].hasTask()) {
public Task obtainNewMapTask(String taskTracker, TaskTrackerStatus tts) { if (! tasksInited) { LOG.info("Cannot create task split for " + profile.getJobId()); return null; } Task t = null; int cacheTarget = -1; int stdTarget = -1; int specTarget = -1; // // We end up creating two tasks for the same bucket, because // we call obtainNewMapTask() really fast, twice in a row. // There's not enough time for the "recentTasks" // // // Compute avg progress through the map tasks // double avgProgress = status.mapProgress() / maps.length; // // See if there is a split over a block that is stored on // the TaskTracker checking in. That means the block // doesn't have to be transmitted from another node. // for (int i = 0; i < maps.length; i++) { if (maps[i].hasTaskWithCacheHit(taskTracker, tts)) { if (cacheTarget < 0) { cacheTarget = i; break; } } } // // If there's no cached target, see if there's // a std. task to run. // if (cacheTarget < 0) { for (int i = 0; i < maps.length; i++) { if (maps[i].hasTask()) { if (stdTarget < 0) { stdTarget = i; break; } } } } // // If no cached-target and no std target, see if // there's a speculative task to run. // if (cacheTarget < 0 && stdTarget < 0) { for (int i = 0; i < maps.length; i++) { if (maps[i].hasSpeculativeTask(avgProgress)) { if (specTarget < 0) { specTarget = i; break; } } } } // // Run whatever we found // if (cacheTarget >= 0) { t = maps[cacheTarget].getTaskToRun(taskTracker, tts, avgProgress); } else if (stdTarget >= 0) { t = maps[stdTarget].getTaskToRun(taskTracker, tts, avgProgress); } else if (specTarget >= 0) { t = maps[specTarget].getTaskToRun(taskTracker, tts, avgProgress); } return t; }
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/4ee62812940075bac6919b94b6fb0d20137bd78c/JobInProgress.java/clean/src/java/org/apache/hadoop/mapred/JobInProgress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3837, 7161, 1908, 863, 2174, 12, 780, 1562, 8135, 16, 3837, 8135, 1482, 268, 3428, 13, 288, 3639, 309, 16051, 4592, 2570, 329, 13, 288, 5411, 2018, 18, 1376, 2932, 4515, 752, 1562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3837, 7161, 1908, 863, 2174, 12, 780, 1562, 8135, 16, 3837, 8135, 1482, 268, 3428, 13, 288, 3639, 309, 16051, 4592, 2570, 329, 13, 288, 5411, 2018, 18, 1376, 2932, 4515, 752, 1562, ...
public ContentType(String header) { super(header); parseValue(); }
public ContentType(String header) { super(header); }
public ContentType(String header) { super(header); parseValue(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/545a47e80f124ea231945f86e3fb9cb62048b4e8/MimeCompoundHeader.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mime/MimeCompoundHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 11691, 12, 780, 1446, 13, 225, 288, 2240, 12, 3374, 1769, 225, 1109, 620, 5621, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 11691, 12, 780, 1446, 13, 225, 288, 2240, 12, 3374, 1769, 225, 1109, 620, 5621, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
}
}
private void validateDTDattribute(QName element, String attValue, XMLAttributeDecl attributeDecl) throws XNIException { switch (attributeDecl.simpleType.type) { case XMLSimpleType.TYPE_ENTITY: { // NOTE: Save this information because invalidStandaloneAttDef boolean isAlistAttribute = attributeDecl.simpleType.list; try { if (isAlistAttribute) { fValENTITIES.validate(attValue, null); } else { fValENTITY.validate(attValue, null); } } catch (InvalidDatatypeValueException ex) { String key = ex.getKeyIntoReporter(); fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, key, new Object[]{ ex.getMessage()}, XMLErrorReporter.SEVERITY_ERROR ); } break; } case XMLSimpleType.TYPE_NOTATION: case XMLSimpleType.TYPE_ENUMERATION: { boolean found = false; String [] enumVals = attributeDecl.simpleType.enumeration; if (enumVals == null) { found = false; } else for (int i = 0; i < enumVals.length; i++) { if (attValue == enumVals[i] || attValue.equals(enumVals[i])) { found = true; break; } } if (!found) { StringBuffer enumValueString = new StringBuffer(); if (enumVals != null) for (int i = 0; i < enumVals.length; i++) { enumValueString.append(enumVals[i]+" "); } fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "MSG_ATTRIBUTE_VALUE_NOT_IN_LIST", new Object[]{attributeDecl.name.rawname, attValue, enumValueString}, XMLErrorReporter.SEVERITY_ERROR); } break; } case XMLSimpleType.TYPE_ID: { try { fValID.validate(attValue, null); } catch (InvalidDatatypeValueException ex) { String key = ex.getKeyIntoReporter(); fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, key, new Object[] { ex.getMessage() }, XMLErrorReporter.SEVERITY_ERROR ); } break; } case XMLSimpleType.TYPE_IDREF: { boolean isAlistAttribute = attributeDecl.simpleType.list;//Caveat - Save this information because invalidStandaloneAttDef try { if (isAlistAttribute) { //System.out.println("values = >>" + value + "<<" ); fValIDRefs.validate(attValue, null); } else { fValIDRef.validate(attValue, null); } } catch (InvalidDatatypeValueException ex) { String key = ex.getKeyIntoReporter(); if (key == null){ key = "IDREFSInvalid"; } fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, key, new Object[]{ ex.getMessage()}, XMLErrorReporter.SEVERITY_ERROR ); } break; } case XMLSimpleType.TYPE_NMTOKEN: { boolean isAlistAttribute = attributeDecl.simpleType.list;//Caveat - Save this information because invalidStandaloneAttDef //changes fTempAttDef try { if (isAlistAttribute) { fValNMTOKENS.validate(attValue, null); } else { fValNMTOKEN.validate(attValue, null); } } catch (InvalidDatatypeValueException ex) { if (isAlistAttribute){ fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "NMTOKENSInvalid", new Object[] { attValue }, XMLErrorReporter.SEVERITY_ERROR); } else { fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "NMTOKENInvalid", new Object[] { attValue }, XMLErrorReporter.SEVERITY_ERROR); } } break; } } // switch } // validateDTDattribute(QName,String,XMLAttributeDecl)
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/ee3cf4ff9e64a0ae2d3c850b7c9b40e51771781d/XMLDTDValidator.java/clean/src/org/apache/xerces/impl/dtd/XMLDTDValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1954, 25728, 4589, 12, 13688, 930, 16, 514, 2403, 620, 16, 4766, 1377, 3167, 1499, 3456, 1566, 3456, 13, 540, 1216, 1139, 50, 45, 503, 288, 3639, 1620, 261, 4589, 3456, 18, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1954, 25728, 4589, 12, 13688, 930, 16, 514, 2403, 620, 16, 4766, 1377, 3167, 1499, 3456, 1566, 3456, 13, 540, 1216, 1139, 50, 45, 503, 288, 3639, 1620, 261, 4589, 3456, 18, 9...
sbNewRepresentation.append("H");
sbNewRepresentation.append("H");
private String getConvertedOrthogonalSampleDataRepresentation(String sOldRepresentation) { StringTokenizer strtok = new StringTokenizer(sOldRepresentation, ","); NumberFormat nf = NumberFormat.getNumberInstance(); StringBuffer sbNewRepresentation = new StringBuffer(""); int iValueCount = 0; while (strtok.hasMoreTokens()) { String sElement = strtok.nextToken().trim(); try { if (nf.parse(sElement).doubleValue() < 0) { // If the value is negative, use an arbitrary positive value sElement = String.valueOf(4.0 + iValueCount); iValueCount++; } } catch (ParseException e ) { sElement = String.valueOf(4.0 + iValueCount); iValueCount++; } sbNewRepresentation.append("H"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(" "); sbNewRepresentation.append(" L"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(" "); sbNewRepresentation.append(" O"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(" "); sbNewRepresentation.append(" C"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(","); } return sbNewRepresentation.toString().substring(0, sbNewRepresentation.length() - 1); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7793e94b4d7fab5891f226c6c937e37d85bebad8/StockChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 22063, 1162, 451, 28396, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 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, 377, 3238, 514, 336, 22063, 1162, 451, 28396, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 29...
Calendar result = Calendar.getInstance(); result.setTime(this.getEnrollmentTimeEnd()); return result;
if (this.getEnrollmentTimeEnd() != null) { Calendar result = Calendar.getInstance(); result.setTime(this.getEnrollmentTimeEnd()); return result; } return null;
public Calendar getEnrollmentEndTime() { Calendar result = Calendar.getInstance(); result.setTime(this.getEnrollmentTimeEnd()); return result; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/7b56a334569bb51b44e37ff04712f0c2cb817264/Seminary.java/clean/src/net/sourceforge/fenixedu/domain/Seminaries/Seminary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5542, 336, 664, 17118, 25255, 1435, 288, 3639, 5542, 563, 273, 5542, 18, 588, 1442, 5621, 3639, 563, 18, 542, 950, 12, 2211, 18, 588, 664, 17118, 950, 1638, 10663, 3639, 327, 563, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5542, 336, 664, 17118, 25255, 1435, 288, 3639, 5542, 563, 273, 5542, 18, 588, 1442, 5621, 3639, 563, 18, 542, 950, 12, 2211, 18, 588, 664, 17118, 950, 1638, 10663, 3639, 327, 563, ...
if((!dontCompress) || alreadyCompressedCodec >= 0) {
if((!dontCompress) || (alreadyCompressedCodec >= 0)) {
static Compressed compress(Bucket sourceData, boolean dontCompress, short alreadyCompressedCodec, long sourceLength, long MAX_LENGTH_BEFORE_COMPRESSION, long MAX_COMPRESSED_DATA_LENGTH, boolean shortLength) throws KeyEncodeException, IOException { byte[] finalData = null; short compressionAlgorithm = -1; // Try to compress it - even if it fits into the block, // because compressing it improves its entropy. if(sourceData.size() > MAX_LENGTH_BEFORE_COMPRESSION) throw new KeyEncodeException("Too big"); if((!dontCompress) || alreadyCompressedCodec >= 0) { byte[] cbuf = null; if(alreadyCompressedCodec >= 0) { if(sourceData.size() > MAX_COMPRESSED_DATA_LENGTH) throw new KeyEncodeException("Too big (precompressed)"); compressionAlgorithm = alreadyCompressedCodec; cbuf = BucketTools.toByteArray(sourceData); if(sourceLength > MAX_LENGTH_BEFORE_COMPRESSION) throw new CHKEncodeException("Too big"); } else { if (sourceData.size() > NodeCHK.BLOCK_SIZE) { // Determine the best algorithm for (int i = 0; i < Compressor.countCompressAlgorithms(); i++) { Compressor comp = Compressor .getCompressionAlgorithmByDifficulty(i); ArrayBucket compressedData; try { compressedData = (ArrayBucket) comp.compress( sourceData, new ArrayBucketFactory(), NodeCHK.BLOCK_SIZE); } catch (IOException e) { throw new Error(e); } catch (CompressionOutputSizeException e) { continue; } if (compressedData.size() <= MAX_COMPRESSED_DATA_LENGTH) { compressionAlgorithm = comp .codecNumberForMetadata(); sourceLength = sourceData.size(); try { cbuf = BucketTools.toByteArray(compressedData); // FIXME provide a method in ArrayBucket } catch (IOException e) { throw new Error(e); } break; } } } } if(cbuf != null) { // Use it int compressedLength = cbuf.length; finalData = new byte[compressedLength+(shortLength?2:4)]; System.arraycopy(cbuf, 0, finalData, shortLength?2:4, compressedLength); if(!shortLength) { finalData[0] = (byte) ((sourceLength >> 24) & 0xff); finalData[1] = (byte) ((sourceLength >> 16) & 0xff); finalData[2] = (byte) ((sourceLength >> 8) & 0xff); finalData[3] = (byte) ((sourceLength) & 0xff); } else { finalData[0] = (byte) ((sourceLength >> 8) & 0xff); finalData[1] = (byte) ((sourceLength) & 0xff); } } } if(finalData == null) { if(sourceData.size() > NodeCHK.BLOCK_SIZE) { throw new CHKEncodeException("Too big"); } finalData = BucketTools.toByteArray(sourceData); } return new Compressed(finalData, compressionAlgorithm); }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Key.java/buggy/src/freenet/keys/Key.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 5427, 4638, 8099, 12, 4103, 1084, 751, 16, 1250, 14046, 16552, 16, 3025, 1818, 16841, 11008, 16, 1525, 27406, 16, 1525, 4552, 67, 7096, 67, 19152, 67, 4208, 14227, 16, 1525, 4552, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 5427, 4638, 8099, 12, 4103, 1084, 751, 16, 1250, 14046, 16552, 16, 3025, 1818, 16841, 11008, 16, 1525, 27406, 16, 1525, 4552, 67, 7096, 67, 19152, 67, 4208, 14227, 16, 1525, 4552, 67...
int assignmentType = ((Integer) assignmentTypeVector.get(i)).intValue(); List submissions = (List) (assignmentSubmissionVector.get(i)); submissionWithGrade = null; for (int k = 0; k < submissions.size() && submissionWithGrade == null; k++) { AssignmentSubmission s = (AssignmentSubmission) submissions.get(k); submitterIds = (List) s.getSubmitterIds(); for (int submitterIndex = 0; submitterIndex < submitterIds.size(); submitterIndex++) { submitterId = (String) submitterIds.get(submitterIndex); if (submitterId.equals(member.getId()))
Assignment a = (Assignment) assignmentList.get(i); int assignmentType = a.getContent().getTypeOfGrade(); AssignmentSubmission submission = getSubmission(a.getReference(), member); if (submission != null) { if (submission.getGraded() && submission.getGradeReleased()) { if (assignmentType == 3)
public byte[] getGradesSpreadsheet(String ref) throws IdUnusedException, PermissionException { String typeGradesString = new String(REF_TYPE_GRADES + Entity.SEPARATOR); String context = ref.substring(ref.indexOf(typeGradesString) + typeGradesString.length()); // get site title for display purpose String siteTitle = ""; try { Site s = SiteService.getSite(context); siteTitle = s.getTitle(); } catch (Exception e) { // ignore exception } short rowNum = 0; HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet(siteTitle); // Create a row and put some cells in it. Rows are 0 based. HSSFRow row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(rb.getString("download.spreadsheet.title")); // empty line row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(""); // site title row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(rb.getString("download.spreadsheet.site") + siteTitle); // download time row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue( rb.getString("download.spreadsheet.date") + TimeService.newTime().toStringLocalFull()); // empty line row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(""); // the bold font HSSFFont font = wb.createFont(); font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); // the cell style with bold font HSSFCellStyle style = wb.createCellStyle(); style.setFont(font); // set up the header cells row = sheet.createRow(rowNum++); short cellNum = 0; // user enterprise id column HSSFCell cell = row.createCell(cellNum++); cell.setCellStyle(style); cell.setCellValue(rb.getString("download.spreadsheet.column.userid")); // user name column cell = row.createCell(cellNum++); cell.setCellStyle(style); cell.setCellValue(rb.getString("download.spreadsheet.column.name")); Iterator assignments = getAssignmentsForContext(context); Vector assignmentTypeVector = new Vector(); Vector assignmentSubmissionVector = new Vector(); int index = 0; List members = new Vector(); while (assignments.hasNext()) { Assignment a = (Assignment) assignments.next(); // for column header, check allow grade permission based on each assignment if (allowGradeSubmission(a.getReference())) { String deleted = a.getProperties().getProperty(ResourceProperties.PROP_ASSIGNMENT_DELETED); if ((deleted == null || deleted.equals("")) && (!a.getDraft()) && (a.getOpenTime().before(TimeService.newTime()))) { if (index == 0) { List allowAddAssignmentUsers = allowAddAssignmentUsers(a.getContext()); List allowAddSubmissionUsers = allowAddSubmissionUsers(a.getReference()); for (int i = 0; i < allowAddSubmissionUsers.size(); i++) { User allowAddSubmissionUser = (User) allowAddSubmissionUsers.get(i); if (!allowAddAssignmentUsers.contains(allowAddSubmissionUser)) { members.add(allowAddSubmissionUser); } } } assignmentTypeVector.add(index, new Integer(a.getContent().getTypeOfGrade())); Iterator submissions = getSubmissions(a); List submissionList = new Vector(); while (submissions.hasNext()) { submissionList.add(submissions.next()); } assignmentSubmissionVector.add(index, submissionList); cell = row.createCell(cellNum++); cell.setCellStyle(style); cell.setCellValue(a.getTitle()); index++; } } } // is there a grade or not AssignmentSubmission submissionWithGrade = null; List submitterIds = null; String submitterId = ""; User member = null; for (Iterator it = members.iterator(); it.hasNext();) { // create one row for each user row = sheet.createRow(rowNum++); cellNum = 0; member = (User) it.next(); // show user's enterprise id row.createCell(cellNum++).setCellValue(member.getDisplayId()); // show user's name row.createCell(cellNum++).setCellValue(member.getSortName()); for (int i = 0; i < assignmentSubmissionVector.size(); i++) { // type for this assignment int assignmentType = ((Integer) assignmentTypeVector.get(i)).intValue(); // submission for this assignment List submissions = (List) (assignmentSubmissionVector.get(i)); // initialize it for every assignment submissionWithGrade = null; for (int k = 0; k < submissions.size() && submissionWithGrade == null; k++) { AssignmentSubmission s = (AssignmentSubmission) submissions.get(k); submitterIds = (List) s.getSubmitterIds(); for (int submitterIndex = 0; submitterIndex < submitterIds.size(); submitterIndex++) { submitterId = (String) submitterIds.get(submitterIndex); if (submitterId.equals(member.getId())) { // found the member's submission to the assignment // show user's grade if ((s != null) && (s.getGraded()) && (s.getGradeReleased())) { submissionWithGrade = s; } } // if } // for } // for if (submissionWithGrade != null) { if (assignmentType == 3) { try { // numeric cell type? String grade = submissionWithGrade.getGradeDisplay(); Float.parseFloat(grade); cell = row.createCell(cellNum++); cell.setCellType(0); cell.setCellValue(Float.parseFloat(grade)); style = wb.createCellStyle(); style.setDataFormat(wb.createDataFormat().getFormat("#,##0.0")); cell.setCellStyle(style); } catch (Exception e) { // if the grade is not numeric, let's make it as String type cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(submissionWithGrade.getGrade()); } } else { // String cell type cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(submissionWithGrade.getGrade()); } } // if else { // no grade to show yet // String cell type // set value to be "" if there is no grade yet cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(""); } // if } // for } // for // output Blob b = new Blob(); try { wb.write(b.outputStream()); } catch (IOException e) { M_log.debug(this + "Can not output the grade spread sheet. "); } return b.getBytes(); } // getGradesSpreadsheet
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/684208bbbee6aa5b39e80022fafe248a4a1adb34/BaseAssignmentService.java/buggy/assignment/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1160, 8526, 7162, 354, 5489, 28719, 8118, 12, 780, 1278, 13, 1216, 3124, 21106, 503, 16, 8509, 503, 202, 95, 202, 202, 780, 618, 14571, 5489, 780, 273, 394, 514, 12, 10771, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1160, 8526, 7162, 354, 5489, 28719, 8118, 12, 780, 1278, 13, 1216, 3124, 21106, 503, 16, 8509, 503, 202, 95, 202, 202, 780, 618, 14571, 5489, 780, 273, 394, 514, 12, 10771, 67...
_log.debug(" communityChanged is called for agent : "+_agent +" in GetCommunityWithUpdates CommunityChangeListener" + this);
_log.debug(" communityChanged is called for agent : " +_agent +" in GetCommunityWithUpdates CommunityChangeListener" + this);
public void communityChanged(CommunityChangeEvent event) { if (_log.isDebugEnabled()) { _log.debug(" communityChanged is called for agent : "+_agent +" in GetCommunityWithUpdates CommunityChangeListener" + this); if(_containsRole){ _log.debug(" where community Type( "+_communityType+" ) and role is ( "+_role+ " )"); } else { _log.debug(" where community Type( "+_communityType+" ) and role is NOT ( "+_role+ " )"); } } if (event.getType() != event.ADD_COMMUNITY && event.getType() != event.ENTITY_ATTRIBUTES_CHANGED && event.getType() != event.COMMUNITY_ATTRIBUTES_CHANGED && event.getType() != event.ADD_ENTITY) { return; // not a change we care about } Community community = event.getCommunity(); if (!isCommunityType(community, _communityType)) { if (_log.isDebugEnabled()) { _log.debug("Agent "+ _agent+ " "+community.getName() + " is not of type " + _communityType); } return; } if (_log.isDebugEnabled()) { _log.debug(" Change Info for Agent "+ _agent+ " GetCommunityWithUpdates community change: " + event.getChangeTypeAsString(event.getType()) + ", " + event.getWhatChanged()); } printCommunityInfo(community); if (hasRole(community, _role, _containsRole)) { // found it! if (_log.isDebugEnabled()) { _log.debug(" Setting response for agent : "+_agent +" in GetCommunityWithUpdates CommunityChangeListener "); if(_containsRole){ _log.debug(" where community Type( "+_communityType+" ) and role is ( "+_role+ " )"); } else { _log.debug(" where community Type( "+_communityType+" ) and role is NOT ( "+_role+ " )"); } _log.debug(" Response in is : "+ community); } _listener.getResponse(Collections.singleton(community)); return; } if (_log.isDebugEnabled()) { _log.debug(_agent + " does not have role (" + _role + ") in community (" + community.getName() + ")"); _log.debug(" Waiting for response for agent : "+_agent +" in GetCommunityWithUpdates CommunityChangeListener "); } }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/4312e97b03e9c55f50f74e64b61ef7cc015ed06d/CommunityServiceUtil.java/buggy/securityservices/src/org/cougaar/core/security/util/CommunityServiceUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19833, 5033, 12, 12136, 13352, 20930, 871, 13, 288, 1377, 309, 261, 67, 1330, 18, 291, 2829, 1526, 10756, 288, 3639, 389, 1330, 18, 4148, 2932, 19833, 5033, 353, 2566, 364, 404...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19833, 5033, 12, 12136, 13352, 20930, 871, 13, 288, 1377, 309, 261, 67, 1330, 18, 291, 2829, 1526, 10756, 288, 3639, 389, 1330, 18, 4148, 2932, 19833, 5033, 353, 2566, 364, 404...
if (myEditor != null && myEntity != null) { EOModel model = myEditor.getModel(); if (model != null) { EORelationship newRelationship = myEntity.addBlankRelationship(Messages.getString("EORelationship.newName")); myEditor.setSelection(new StructuredSelection(newRelationship)); }
if (myEntity != null) { EORelationship newRelationship = myEntity.addBlankRelationship(Messages.getString("EORelationship.newName")); } else { MessageDialog.openError(myWindow.getShell(), Messages.getString("EORelationship.noEntitySelectedTitle"), Messages.getString("EORelationship.noEntitySelectedMessage"));
public void run(IAction _action) { try { if (myEditor != null && myEntity != null) { EOModel model = myEditor.getModel(); if (model != null) { EORelationship newRelationship = myEntity.addBlankRelationship(Messages.getString("EORelationship.newName")); //$NON-NLS-1$ myEditor.setSelection(new StructuredSelection(newRelationship)); } } } catch (DuplicateRelationshipNameException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/d928b49aa0253c6ecb4869ae5c835c8362ad2cc8/NewRelationshipAction.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/actions/NewRelationshipAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1086, 12, 45, 1803, 389, 1128, 13, 288, 565, 775, 288, 1377, 309, 261, 4811, 6946, 480, 446, 597, 3399, 1943, 480, 446, 13, 288, 3639, 512, 51, 1488, 938, 273, 3399, 6946, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1086, 12, 45, 1803, 389, 1128, 13, 288, 565, 775, 288, 1377, 309, 261, 4811, 6946, 480, 446, 597, 3399, 1943, 480, 446, 13, 288, 3639, 512, 51, 1488, 938, 273, 3399, 6946, ...
public PreferenceString(String def, String cur, String command) { this.def = def; this.cur = cur; this.tmp = cur; setCommand(command); }
public PreferenceString() {}
public PreferenceString(String def, String cur, String command) { this.def = def; this.cur = cur; this.tmp = cur; setCommand(command); }
49473 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49473/7c8ad0d548d6bcb00e912f3b105e47b2f5853e98/PreferenceString.java/buggy/outliner/src/com/organic/maynard/outliner/util/preferences/PreferenceString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 29125, 780, 12, 780, 1652, 16, 514, 662, 16, 514, 1296, 13, 288, 202, 202, 2211, 18, 536, 273, 1652, 31, 202, 202, 2211, 18, 1397, 273, 662, 31, 202, 202, 2211, 18, 5645, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 29125, 780, 12, 780, 1652, 16, 514, 662, 16, 514, 1296, 13, 288, 202, 202, 2211, 18, 536, 273, 1652, 31, 202, 202, 2211, 18, 1397, 273, 662, 31, 202, 202, 2211, 18, 5645, ...
temp.addLine("setTreeBlockSource ", treeListSource); return temp;
temp.addLine("setTreeSource ", treeSource); temp.addLine("setConsenser ", consenser); return temp;
public Snapshot getSnapshot(MesquiteFile file) { Snapshot temp = new Snapshot(); temp.addLine("setTreeBlockSource ", treeListSource); return temp; }
56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/3ca32c7abbc9ad3515a795bfc3fbb6b8044fab89/ConsensusTree.java/clean/Source/mesquite/treefarm/ConsensusTree/ConsensusTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 202, 1071, 10030, 1322, 2551, 12, 49, 281, 372, 1137, 812, 585, 13, 288, 377, 202, 225, 202, 4568, 1906, 273, 394, 10030, 5621, 21114, 225, 202, 5814, 18, 1289, 1670, 2932, 542, 2471, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 202, 1071, 10030, 1322, 2551, 12, 49, 281, 372, 1137, 812, 585, 13, 288, 377, 202, 225, 202, 4568, 1906, 273, 394, 10030, 5621, 21114, 225, 202, 5814, 18, 1289, 1670, 2932, 542, 2471, 1...
indent2 = " ";
indent2 = indent + " ";
public void generateCode(PrintStream source, int guardIndex, int guardCount, String context, String mapName, String stateName, String indent) throws ParseException { ListIterator actionIt; SmcAction action; String indent2 = null; String endStateName = ""; // If this guard's end state is not of the form // "map::state", then prepend the map name to the // state name. // DON'T DO THIS IF THIS IS A POP TRANSITION! // The "state is actually a transition name. if (_trans_type != Smc.TRANS_POP && _end_state.length () > 0 && _end_state.compareTo("nil") != 0 && _end_state.indexOf("::") < 0) { _end_state = mapName + "::" + _end_state; } if (stateName.indexOf("::") < 0) { stateName = mapName + "::" + stateName; } // The guard code generation is a bit tricky. The first // question is how many guards are there? If there are // more than one, then we will need to generate the // proper "if-then-else" code. if (guardCount > 1) { // Ok, there are multiple guard statements. Now is // this the first guard among many? if (guardIndex == 0 && _condition != null) { // Yes, this is the first. This means an "if" // should be used for this condition. source.print(" if {["); _condition.generateCode(source, context, ""); source.println("]} {"); } else if (_condition != null) { // No, this is not the first transition but it // does have a condition. Use an "else if" for // the condition. source.print(" elseif {["); _condition.generateCode(source, context, ""); source.println("]} {"); } else { // This is not the first transition and it has // no condition. source.println(" else {"); } indent2 = " "; } else { // There is only one guard. Does this guard have a // condition. if (_condition == null) { // Actually, this is a plain, old, vaniila // transition. indent2 = " "; } else { indent2 = " "; // Yes, there is a condition. source.print(" if ("); _condition.generateCode(source, context, ""); source.println(") {"); } } // Perform the current state's exit action. // v. 1.0, beta 3: Not any more. The exit actions are // executed only if 1) this is a standard, non-loopback // transition or a pop transition. if ((_trans_type == Smc.TRANS_SET && _end_state.compareTo("nil") != 0 && _end_state.compareTo(stateName) != 0) || _trans_type == Smc.TRANS_POP) { source.println(indent2 + "[$context getState] Exit $context;"); } // Now that the necessary conditions are in place, it's // time to dump out the transitions actions. First, do // the proper handling of the state change. If this // transition has no actions, then set the end state // immediately. Otherwise, unset the current state so // that if an action tries to issue a transition, it will // fail. if (_actions.size() == 0 && _end_state.length() != 0) { endStateName = "${" + _end_state + "}"; } else if (_actions.size() > 0) { // Save away the current state if this is a loopback // transition. Storing current state allows the // current to be cleared before any actions are // executed. Remember: actions are not allowed to // issue transitions and clearing the current state // prevents them from doing so. if (_trans_type == Smc.TRANS_SET && (_end_state.compareTo("nil") == 0 || _end_state.compareTo(stateName) == 0)) { endStateName = "${EndStateName}"; source.println(indent2 + "set EndStateName [$context getState];"); } else if (_trans_type == Smc.TRANS_PUSH) { // If this is a push transition, then remember // the current state as well. This will have to // be reset before the push is done otherwise the // push will not work because it won't know what // state to put on the stack. if (_end_state.compareTo("nil") == 0) { endStateName = _end_state; } else { endStateName = "${" + _end_state + "}"; } source.println(indent2 + "set CurrentState [$context getState];"); } else { endStateName = "${" + _end_state + "}"; } // Now that we are in the transition, clear the // current state since we are no longer in a state. source.println(indent2 + "$context clearState;"); } // Dump out this transition's actions. for (actionIt = _actions.listIterator(); actionIt.hasNext() == true; ) { action = (SmcAction) actionIt.next(); action.generateCode(source, context, indent2); source.println(";"); } // Print the setState() call, if necessary. Do NOT // generate the set state if: // 1. The transition has no actions AND is a loopback OR // 2. This is a push or pop transition. if (_trans_type == Smc.TRANS_SET && (_actions.size() > 0 || (_end_state.compareTo("nil") != 0 && _end_state.compareTo(stateName) != 0))) { source.println(indent2 + "$context setState " + endStateName + ";"); } else if (_trans_type == Smc.TRANS_PUSH) { // Reset the current state so that it can be pushed // onto the state stack. But only do so if a clear // state was done. if (_actions.size() > 0) { source.println(indent2 + "$context setState $CurrentState;"); } // If pushing to the "nil" state, then use the // current state. if (endStateName.compareTo("nil") == 0) { source.println(indent2 + "$context pushState $CurrentState;"); } else { source.println(indent2 + "$context pushState " + endStateName + ";"); } } else if (_trans_type == Smc.TRANS_POP) { source.println(indent2 + "$context popState;"); } // Perform the new state's entry actions. // v. 1.0, beta 3: Not any more. The entry actions are // executed only if 1) this is a standard, non-loopback // transition or a push transition. if ((_trans_type == Smc.TRANS_SET && _end_state.compareTo("nil") != 0 && _end_state.compareTo(stateName) != 0) || _trans_type == Smc.TRANS_PUSH) { source.println(indent2 + "[$context getState] Entry $context;"); } // If there is a transition associated with the pop, then // issue that transition here. if (_trans_type == Smc.TRANS_POP && _end_state.compareTo("nil") != 0 && _end_state.length() > 0) { source.println(indent2 + "[$context getState] " + _end_state + " $context;"); } // If this is a guarded transition, it will be necessary // to close off the if body. DON'T PRINT A NEW LINE. Why? // Because an else or elseif may follow and we won't know // until we go back to the transition source generator // whether all clauses have been done. if (guardCount > 1) { source.print(" }"); } return; }
50995 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50995/ffbfa44caa39de8d579429432aa3aca8bd077721/SmcGuardTcl.java/buggy/net/sf/smc/SmcGuardTcl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2103, 1085, 12, 5108, 1228, 1084, 16, 11794, 509, 11026, 1016, 16, 11794, 509, 11026, 1380, 16, 11794, 514, 819, 16, 11794, 514, 852, 461, 16, 11794, 514, 919, 461, 16, 11794, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 1085, 12, 5108, 1228, 1084, 16, 11794, 509, 11026, 1016, 16, 11794, 509, 11026, 1380, 16, 11794, 514, 819, 16, 11794, 514, 852, 461, 16, 11794, 514, 919, 461, 16, 11794, ...
final DataSetTab datasetTab = new DataSetTab(this.martTab, dataset);
final DataSetDiagram datasetDiagram = new DataSetDiagram(this.martTab, dataset);
private void addDataSetTab(final DataSet dataset) { // Create a tab for the dataset. final DataSetTab datasetTab = new DataSetTab(this.martTab, dataset); // Add the tab, and remember the mapping between dataset and tab. this.addTab(dataset.getName(), datasetTab); this.datasetToTab[0].add(dataset); this.datasetToTab[1].add(datasetTab); // Update the overview diagram. this.recalculateOverviewDiagram(); // Fake a click on the new tab. this.setSelectedIndex(this.indexOfComponent(datasetTab)); this.martTab.selectDataSetEditor(); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/c76d481210454f27e1173655b5a81de5e759e689/DataSetTabSet.java/clean/src/java/org/biomart/builder/view/gui/DataSetTabSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 13676, 5661, 12, 6385, 14065, 3709, 13, 288, 202, 202, 759, 1788, 279, 3246, 364, 326, 3709, 18, 202, 202, 6385, 14065, 5661, 3709, 5661, 273, 394, 14065, 5661, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 13676, 5661, 12, 6385, 14065, 3709, 13, 288, 202, 202, 759, 1788, 279, 3246, 364, 326, 3709, 18, 202, 202, 6385, 14065, 5661, 3709, 5661, 273, 394, 14065, 5661, 12, ...
log().debug("poll: SNMPwalk poll succeeded, addr=" + ipaddr.getHostAddress() + " oid=" + snmpLogObjectId + " instance=" + e.getKey() + " value=" + e.getValue());
log().debug("poll: SNMPwalk poll succeeded, addr=" + ipaddr.getHostAddress() + " oid=" + snmpLogObjectId + " instance=" + e.getKey() + " value=" + e.getValue());
public PollStatus poll(MonitoredService svc, Map parameters, org.opennms.netmgt.config.poller.Package pkg) { NetworkInterface iface = svc.getNetInterface(); PollStatus status = PollStatus.unavailable(); InetAddress ipaddr = (InetAddress) iface.getAddress(); // Retrieve this interface's SNMP peer object // SnmpAgentConfig agentConfig = (SnmpAgentConfig) iface.getAttribute(SNMP_AGENTCONFIG_KEY); if (agentConfig == null) throw new RuntimeException("SnmpAgentConfig object not available for interface " + ipaddr); // Get configuration parameters // int timeout = ParameterMap.getKeyedInteger(parameters, "timeout", agentConfig.getTimeout()); int retries = ParameterMap.getKeyedInteger(parameters, "retries", agentConfig.getRetries()); int port = ParameterMap.getKeyedInteger(parameters, "port", DEFAULT_PORT); // set timeout and retries on SNMP peer object // agentConfig.setTimeout(timeout); agentConfig.setRetries(retries); agentConfig.setPort(port); if (log().isDebugEnabled()) log().debug("poll: service= SNMP address= " + agentConfig); // Establish SNMP session with interface // try { if (log().isDebugEnabled()) { log().debug("PercMonitor.poll: SnmpAgentConfig address: " +agentConfig); } SnmpObjId snmpObjectId = new SnmpObjId(PHYSICAL_BASE_OID); // First walk the physical OID Tree and check the returned values Map<SnmpInstId, SnmpValue> results = SnmpUtils.getOidValues(agentConfig, "percPoller", snmpObjectId); if(results.size() == 0) { log().debug("SNMP poll failed: no results, addr=" + ipaddr.getHostAddress() + " oid=" + snmpObjectId); return status; } for (Map.Entry<SnmpInstId, SnmpValue> e : results.entrySet()) { log().debug("poll: SNMPwalk poll succeeded, addr=" + ipaddr.getHostAddress() + " oid=" + snmpObjectId + " instance=" + e.getKey() + " value=" + e.getValue()); // Test each value returned to make sure it doesn't equal 4 // 1=>'ready', // 3=>'online', // 4=>'failed', // 5=>'rebuild', // 6=>'hotspare', // 20=>'nondisk' if (meetsCriteria(e.getValue(), "!=", "4")) { status = PollStatus.available(); } else { status = logDown(Level.DEBUG, "SNMP physical poll failed, addr=" + ipaddr.getHostAddress() + " oid=" + snmpObjectId + " instance=" + e.getKey() + " value=" + e.getValue()); return status; } } // If we get here, that means all of the physical drives returned a value not equal to "4" // Now we need to check logical drives SnmpObjId snmpLogObjectId = new SnmpObjId(LOGICAL_BASE_OID); // Next walk the physical OID Tree and check the returned values Map<SnmpInstId, SnmpValue> lresults = SnmpUtils.getOidValues(agentConfig, "percPoller", snmpLogObjectId); if(lresults.size() == 0) { log().debug("SNMP poll failed: no logical results, addr=" + ipaddr.getHostAddress() + " oid=" + snmpLogObjectId); return status; } for (Map.Entry<SnmpInstId, SnmpValue> e : lresults.entrySet()) { log().debug("poll: SNMPwalk poll succeeded, addr=" + ipaddr.getHostAddress() + " oid=" + snmpLogObjectId + " instance=" + e.getKey() + " value=" + e.getValue()); // Test each value returned to make sure it equals 2 // 0=>'offline', // 1=>'degraded', // 2=>'optimal', // 3=>'initialize', // 4=>'checkconsistency' if (meetsCriteria(e.getValue(), "=", "2")) { status = PollStatus.available(); } else { status = logDown(Level.DEBUG, "SNMP physical poll failed, addr=" + ipaddr.getHostAddress() + " oid=" + snmpLogObjectId + " instance=" + e.getKey() + " value=" + e.getValue()); return status; } } } catch (NumberFormatException e) { status = logDown(Level.ERROR, "Number operator used on a non-number " + e.getMessage()); } catch (IllegalArgumentException e) { status = logDown(Level.ERROR, "Invalid Snmp Criteria: " + e.getMessage()); } catch (Throwable t) { status = logDown(Level.WARN, "Unexpected exception during SNMP poll of interface " + ipaddr.getHostAddress(), t); } return status; }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/197dbe646ed332296ce0438e4180826282aabffb/PercMonitor.java/clean/opennms-services/src/main/java/org/opennms/netmgt/poller/monitors/PercMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19160, 1482, 7672, 12, 11415, 20425, 1179, 7538, 16, 1635, 1472, 16, 2358, 18, 3190, 82, 959, 18, 2758, 81, 4521, 18, 1425, 18, 3915, 749, 18, 2261, 3475, 13, 288, 3639, 21109, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19160, 1482, 7672, 12, 11415, 20425, 1179, 7538, 16, 1635, 1472, 16, 2358, 18, 3190, 82, 959, 18, 2758, 81, 4521, 18, 1425, 18, 3915, 749, 18, 2261, 3475, 13, 288, 3639, 21109, 97...
super(position);
super(position, NodeTypes.COLON2NODE);
public Colon2Node(ISourcePosition position, Node leftNode, String name) { super(position); this.leftNode = leftNode; this.name = name.intern(); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/6e15491217631472c05c6928672f9c7064a978b3/Colon2Node.java/buggy/src/org/jruby/ast/Colon2Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1558, 265, 22, 907, 12, 45, 1830, 2555, 1754, 16, 2029, 2002, 907, 16, 514, 508, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 4935, 673, 22, 8744, 1769, 3639, 333, 18, 448...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1558, 265, 22, 907, 12, 45, 1830, 2555, 1754, 16, 2029, 2002, 907, 16, 514, 508, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 4935, 673, 22, 8744, 1769, 3639, 333, 18, 448...
pg_stream = new PG_Stream(host, port);
pg_stream = new PG_Stream(host, port);
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; if(info.getProperty("compatible")==null) { compatible = d.getMajorVersion() + "." + d.getMinorVersion(); } else { compatible = info.getProperty("compatible"); } // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString(encoding)); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } firstWarning = null; // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. java.sql.ResultSet resultSet = ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, info.getProperty("charSet")); // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/839b9bc0117946afd62ee385a4c8a36c01b3053b/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 22...
String [] fullArgs = new String[args.length+3];
String [] fullArgs = new String[args.length+2];
private void go(String dbName, String [] args) { jdbcProtocol = "jdbc:derby:"; String sourceDBUrl = jdbcProtocol + dbPath + separator + dbName; String [] fullArgs = new String[args.length+3]; fullArgs[0] = "-d"; fullArgs[1] = sourceDBUrl; fullArgs[2] = "-append"; for (int i = 3; i < fullArgs.length; i++) fullArgs[i] = args[i-3]; dblook looker = new dblook(fullArgs); try { looker.go(sourceDBUrl, dbPath + separator + dbName); } catch (Exception e) { System.out.println("FAILED: "); e.printStackTrace(); } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/97cb351eeb1641673e8e0dd5e31915a06ec2e076/dblook_test.java/clean/java/testing/org/apache/derbyTesting/functionTests/tests/tools/dblook_test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1960, 12, 780, 15158, 16, 514, 5378, 833, 13, 288, 202, 202, 24687, 5752, 273, 315, 24687, 30, 765, 1637, 2773, 31, 202, 202, 780, 1084, 2290, 1489, 273, 16579, 5752, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1960, 12, 780, 15158, 16, 514, 5378, 833, 13, 288, 202, 202, 24687, 5752, 273, 315, 24687, 30, 765, 1637, 2773, 31, 202, 202, 780, 1084, 2290, 1489, 273, 16579, 5752, 39...
public CType getOutputType() { // first look for a non-null type (since some of them might // not be feeding into the joiner) for (int i=0; i<size(); i++) { CType type = get(i).getOutputType(); if (type!=CStdType.Null) { return type; } } // otherwise, they're all null, so return null return CStdType.Null; }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/100b350b53809dd2a3ca44ed26f9f451a5c8b1be/SIRSplitJoin.java/buggy/streams/src/at/dms/kjc/sir/SIRSplitJoin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 385, 559, 11062, 559, 1435, 288, 202, 759, 1122, 2324, 364, 279, 1661, 17, 2011, 618, 261, 9256, 2690, 434, 2182, 4825, 202, 759, 486, 506, 4746, 310, 1368, 326, 29620, 13, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 385, 559, 11062, 559, 1435, 288, 202, 759, 1122, 2324, 364, 279, 1661, 17, 2011, 618, 261, 9256, 2690, 434, 2182, 4825, 202, 759, 486, 506, 4746, 310, 1368, 326, 29620, 13, 202, 1...
return jjMoveStringLiteralDfa3_0(active0, 0x10000L);
return jjMoveStringLiteralDfa3_0(active0, 0x80000L);
private final int jjMoveStringLiteralDfa2_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(0, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0); return 2; } switch(curChar) { case 58: if ((active0 & 0x2000L) != 0L) return jjStopAtPos(2, 13); else if ((active0 & 0x4000L) != 0L) return jjStopAtPos(2, 14); else if ((active0 & 0x8000L) != 0L) return jjStopAtPos(2, 15); else if ((active0 & 0x200000L) != 0L) return jjStopAtPos(2, 21); else if ((active0 & 0x1000000000L) != 0L) return jjStopAtPos(2, 36); break; case 65: case 97: return jjMoveStringLiteralDfa3_0(active0, 0x204000000L); case 66: case 98: return jjMoveStringLiteralDfa3_0(active0, 0x800L); case 69: case 101: return jjMoveStringLiteralDfa3_0(active0, 0x1000001000000L); case 70: case 102: return jjMoveStringLiteralDfa3_0(active0, 0x10000000L); case 71: case 103: return jjMoveStringLiteralDfa3_0(active0, 0x400000000L); case 73: case 105: return jjMoveStringLiteralDfa3_0(active0, 0x10000L); case 76: case 108: return jjMoveStringLiteralDfa3_0(active0, 0x40000L); case 77: case 109: return jjMoveStringLiteralDfa3_0(active0, 0x400000000000L); case 78: case 110: return jjMoveStringLiteralDfa3_0(active0, 0x7e002000400L); case 79: case 111: return jjMoveStringLiteralDfa3_0(active0, 0x1000L); case 80: case 112: return jjMoveStringLiteralDfa3_0(active0, 0x80000L); case 82: case 114: return jjMoveStringLiteralDfa3_0(active0, 0x6000000000000L); case 83: case 115: return jjMoveStringLiteralDfa3_0(active0, 0x800020000L); case 84: case 116: return jjMoveStringLiteralDfa3_0(active0, 0x980008500000L); case 89: case 121: return jjMoveStringLiteralDfa3_0(active0, 0x200000800000L); case 90: case 122: return jjMoveStringLiteralDfa3_0(active0, 0x20000000L); default : break; } return jjStartNfa_0(1, active0);}
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/310be8d52869f0ee2c185cb657525fc655f30133/ZimbraQueryParserTokenManager.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/queryparser/ZimbraQueryParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 22, 67, 20, 12, 5748, 1592, 20, 16, 1525, 2695, 20, 15329, 282, 309, 261, 12443, 3535, 20, 12058, 1592, 20, 3719, 422, 374, 48, 13, 1377, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 22, 67, 20, 12, 5748, 1592, 20, 16, 1525, 2695, 20, 15329, 282, 309, 261, 12443, 3535, 20, 12058, 1592, 20, 3719, 422, 374, 48, 13, 1377, 327, ...
return contentService.getViewerId();
return contentService.toString() + " Viewer";
public String toString() { return contentService.getViewerId(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c93d807ed962723d90daba76fc2003e2c1801cbc/CommonViewer.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/CommonViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 2463, 913, 1179, 18, 588, 18415, 548, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 2463, 913, 1179, 18, 588, 18415, 548, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
DataOutputBuffer d = new DataOutputBuffer(); d.writeInt(call.id); call.param.write(d); byte[] data = d.getData(); int dataLength = d.getLength(); out.writeInt(dataLength); out.write(data, 0, dataLength);
out.writeInt(call.id); call.param.write(out);
public void sendParam(Call call) throws IOException { boolean error = true; try { calls.put(new Integer(call.id), call); synchronized (out) { if (LOG.isDebugEnabled()) LOG.debug(getName() + " sending #" + call.id); try { writingCall = call; DataOutputBuffer d = new DataOutputBuffer(); //for serializing the //data to be written d.writeInt(call.id); call.param.write(d); byte[] data = d.getData(); int dataLength = d.getLength(); out.writeInt(dataLength); //first put the data length out.write(data, 0, dataLength);//write the data out.flush(); } finally { writingCall = null; } } error = false; } finally { if (error) close(); // close on error } }
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/c244f1709006c4db4d644eddce36174aa25c8cdd/Client.java/clean/src/java/org/apache/hadoop/ipc/Client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 786, 12, 1477, 745, 13, 1216, 1860, 288, 1377, 1250, 555, 273, 638, 31, 1377, 775, 288, 3639, 4097, 18, 458, 12, 2704, 2144, 12, 1991, 18, 350, 3631, 745, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 786, 12, 1477, 745, 13, 1216, 1860, 288, 1377, 1250, 555, 273, 638, 31, 1377, 775, 288, 3639, 4097, 18, 458, 12, 2704, 2144, 12, 1991, 18, 350, 3631, 745, 1769, 3639, ...
logger.debug("Setting up: " + isotope);
private IsotopeFactory() throws IOException, OptionalDataException, ClassNotFoundException { logger = new org.openscience.cdk.tools.LoggingTool(this.getClass().getName()); InputStream ins = null; ObjIn in = null; String errorMessage = "There was a problem getting org.openscience.cdk." + "config.isotopes.xml as a stream"; try { ins = this.getClass().getClassLoader().getResourceAsStream("org/openscience/cdk/config/isotopes.xml"); } catch (Exception exc) { logger.error(errorMessage); throw new IOException(errorMessage); } if (ins == null) { logger.error(errorMessage); throw new IOException(errorMessage); } in = new ObjIn(ins, new Config().aliasID(false)); isotopes = (Vector) in.readObject(); for (int f = 0; f < isotopes.size(); f++) { Isotope isotope = (Isotope)isotopes.elementAt(f); // logger.debug("Setting up: " + isotope); setup(isotope); } majorIsotopes = new Hashtable(); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/048b23e4f555703bb4e35196ed935bce38e3c89f/IsotopeFactory.java/buggy/src/org/openscience/cdk/tools/IsotopeFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 11365, 270, 12970, 693, 18, 4148, 2932, 5568, 731, 30, 315, 397, 27835, 1769, 2585, 18946, 1733, 1435, 4901, 18, 4148, 2932, 5568, 731, 30, 315, 397, 27835, 1769, 1216, 4901, 18, 414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11365, 270, 12970, 693, 18, 4148, 2932, 5568, 731, 30, 315, 397, 27835, 1769, 2585, 18946, 1733, 1435, 4901, 18, 4148, 2932, 5568, 731, 30, 315, 397, 27835, 1769, 1216, 4901, 18, 414...
rd.addNumericField("T_Begin" + s, tBegin[i] + 1, 0); rd.addNumericField("T_End" + s, tEnd[i] + 1, 0); rd.addNumericField("T_Step" + s, tStep[i], 0);
gd.addNumericField("T_Begin" + s, tBegin[i] + 1, 0); gd.addNumericField("T_End" + s, tEnd[i] + 1, 0); gd.addNumericField("T_Step" + s, tStep[i], 0);
public void run(String arg) { boolean quiet = arg != null && !arg.equals(""); String options = Macro.getOptions(); // -- Step 1: get filename to open -- String id = null; // try to get filename from argument if (quiet) id = arg; if (id == null) { // try to get filename from macro options if (options != null) { String open = Macro.getValue(options, "open", null); if (open != null) id = open; } } // if necessary, prompt the user for the filename OpenDialog od = new OpenDialog("Open", id); String directory = od.getDirectory(); String fileName = od.getFileName(); if (fileName == null) { plugin.canceled = true; return; } id = directory + fileName; // if no valid filename, give up if (id == null || !new File(id).exists()) { if (!quiet) { IJ.error("LOCI Bio-Formats", "The specified file " + (id == null ? "" : ("(" + id + ") ")) + "does not exist."); } return; } // -- Step 2: identify file -- IJ.showStatus("Identifying " + fileName); // determine whether we can handle this file ImageReader reader = new ImageReader(); IFormatReader r = null; try { r = reader.getReader(id); } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.error("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the file" + (msg == null ? "." : (":\n" + msg))); } return; } // -- Step 3: get parameter values -- IJ.showStatus(""); final String mergeString = "Merge channels to RGB"; final String ignoreString = "Ignore color lookup table"; final String colorizeString = "Colorize channels"; final String splitString = "Open each channel in its own window"; final String metadataString = "Display associated metadata"; final String stitchString = "Stitch files with similar names"; final String rangeString = "Specify range for each series"; final String stackString = "View stack with: "; Vector stackTypes = new Vector(); stackTypes.add(VIEW_STANDARD); if (Util.checkClass("loci.plugins.browser.LociDataBrowser")) { stackTypes.add(VIEW_BROWSER); } if (Util.checkClass("i5d.Image5D")) stackTypes.add(VIEW_IMAGE_5D); stackTypes.add(VIEW_VIEW_5D); final String[] stackFormats = new String[stackTypes.size()]; stackTypes.copyInto(stackFormats); // load preferences from IJ_Prefs.txt boolean mergeChannels = Prefs.get("bioformats.mergeChannels", false); boolean ignoreTables = Prefs.get("bioformats.ignoreTable", false); boolean colorize = Prefs.get("bioformats.colorize", false); boolean splitWindows = Prefs.get("bioformats.splitWindows", true); boolean showMetadata = Prefs.get("bioformats.showMetadata", false); boolean stitchFiles = Prefs.get("bioformats.stitchFiles", false); boolean specifyRanges = Prefs.get("bioformats.specifyRanges", false); stackFormat = Prefs.get("bioformats.stackFormat", VIEW_STANDARD); // prompt for parameters, if necessary GenericDialog pd = new GenericDialog("LOCI Bio-Formats Import Options"); pd.addCheckbox(mergeString, mergeChannels); pd.addCheckbox(ignoreString, ignoreTables); pd.addCheckbox(colorizeString, colorize); pd.addCheckbox(splitString, splitWindows); pd.addCheckbox(metadataString, showMetadata); pd.addCheckbox(stitchString, stitchFiles); pd.addCheckbox(rangeString, specifyRanges); pd.addChoice(stackString, stackFormats, stackFormats[0]); pd.showDialog(); if (pd.wasCanceled()) { plugin.canceled = true; return; } mergeChannels = pd.getNextBoolean(); ignoreTables = pd.getNextBoolean(); colorize = pd.getNextBoolean(); splitWindows = pd.getNextBoolean(); showMetadata = pd.getNextBoolean(); stitchFiles = pd.getNextBoolean(); specifyRanges = pd.getNextBoolean(); stackFormat = stackFormats[pd.getNextChoiceIndex()]; // -- Step 4: open file -- IJ.showStatus("Analyzing " + fileName); try { // -- Step 4a: do some preparatory work -- if (stitchFiles) r = new FileStitcher(r); if (mergeChannels) r = new ChannelMerger(r); else r = new ChannelSeparator(r); r.setColorTableIgnored(ignoreTables); // store OME metadata into OME-XML structure, if available OMEXMLMetadataStore store = new OMEXMLMetadataStore(); store.createRoot(); r.setMetadataStore(store); int seriesCount = r.getSeriesCount(id); boolean[] series = new boolean[seriesCount]; series[0] = true; // build descriptive string and range for each series String[] seriesStrings = new String[seriesCount]; int[] num = new int[seriesCount]; int[] sizeC = new int[seriesCount]; int[] sizeZ = new int[seriesCount]; int[] sizeT = new int[seriesCount]; boolean[] certain = new boolean[seriesCount]; int[] cBegin = new int[seriesCount]; int[] cEnd = new int[seriesCount]; int[] cStep = new int[seriesCount]; int[] zBegin = new int[seriesCount]; int[] zEnd = new int[seriesCount]; int[] zStep = new int[seriesCount]; int[] tBegin = new int[seriesCount]; int[] tEnd = new int[seriesCount]; int[] tStep = new int[seriesCount]; for (int i=0; i<seriesCount; i++) { r.setSeries(id, i); num[i] = r.getImageCount(id); sizeC[i] = r.getSizeC(id); if (r.isRGB(id)) sizeC[i] = sizeC[i] < 3 ? 1 : (sizeC[i] / 3); sizeZ[i] = r.getSizeZ(id); sizeT[i] = r.getSizeT(id); certain[i] = r.isOrderCertain(id); cBegin[i] = zBegin[i] = tBegin[i] = 0; if (certain[i]) { cEnd[i] = sizeC[i] - 1; zEnd[i] = sizeZ[i] - 1; tEnd[i] = sizeT[i] - 1; } else cEnd[i] = num[i] - 1; cStep[i] = zStep[i] = tStep[i] = 1; StringBuffer sb = new StringBuffer(); sb.append("Series_"); sb.append(i + 1); sb.append(" - "); String name = store.getImageName(new Integer(i)); if (name != null && name.length() > 0) { sb.append(name); sb.append(": "); } sb.append(r.getSizeX(id)); sb.append(" x "); sb.append(r.getSizeY(id)); sb.append("; "); sb.append(num[i]); sb.append(" planes"); if (certain[i]) { sb.append(" ("); boolean first = true; if (sizeC[i] > 1) { sb.append(sizeC[i]); sb.append("C"); first = false; } if (sizeZ[i] > 1) { if (!first) sb.append(" x "); sb.append(sizeZ[i]); sb.append("Z"); first = false; } if (sizeT[i] > 1) { if (!first) sb.append(" x "); sb.append(sizeT[i]); sb.append("T"); first = false; } sb.append(")"); } seriesStrings[i] = sb.toString(); } // -- Step 4a: prompt for the series to open, if necessary -- if (seriesCount > 1) { IJ.showStatus(""); GenericDialog sd = new GenericDialog("LOCI Bio-Formats Series Options"); for (int i=0; i<seriesCount; i++) { sd.addCheckbox(seriesStrings[i], series[i]); } addScrollBars(sd); sd.showDialog(); if (sd.wasCanceled()) { plugin.canceled = true; return; } for (int i=0; i<seriesCount; i++) series[i] = sd.getNextBoolean(); } // -- Step 4b: prompt for the range of planes to import, if necessary -- if (specifyRanges) { boolean needRange = false; for (int i=0; i<seriesCount; i++) { if (series[i] && num[i] > 1) needRange = true; } if (needRange) { IJ.showStatus(""); GenericDialog rd = new GenericDialog("LOCI Bio-Formats Range Options"); for (int i=0; i<seriesCount; i++) { if (!series[i]) continue; rd.addMessage(seriesStrings[i].replaceAll("_", " ")); String s = "_" + (i + 1); if (certain[i]) { if (sizeC[i] > 1) { rd.addNumericField("C_Begin" + s, cBegin[i] + 1, 0); rd.addNumericField("C_End" + s, cEnd[i] + 1, 0); rd.addNumericField("C_Step" + s, cStep[i], 0); } if (sizeZ[i] > 1) { rd.addNumericField("Z_Begin" + s, zBegin[i] + 1, 0); rd.addNumericField("Z_End" + s, zEnd[i] + 1, 0); rd.addNumericField("Z_Step" + s, zStep[i], 0); } if (sizeT[i] > 1) { rd.addNumericField("T_Begin" + s, tBegin[i] + 1, 0); rd.addNumericField("T_End" + s, tEnd[i] + 1, 0); rd.addNumericField("T_Step" + s, tStep[i], 0); } } else { rd.addNumericField("Begin" + s, cBegin[i] + 1, 0); rd.addNumericField("End" + s, cEnd[i] + 1, 0); rd.addNumericField("Step" + s, cStep[i], 0); } } addScrollBars(rd); rd.showDialog(); if (rd.wasCanceled()) { plugin.canceled = true; return; } for (int i=0; i<seriesCount; i++) { if (!series[i]) continue; if (certain[i]) { if (sizeC[i] > 1) { cBegin[i] = (int) rd.getNextNumber() - 1; cEnd[i] = (int) rd.getNextNumber() - 1; cStep[i] = (int) rd.getNextNumber(); } if (sizeZ[i] > 1) { zBegin[i] = (int) rd.getNextNumber() - 1; zEnd[i] = (int) rd.getNextNumber() - 1; zStep[i] = (int) rd.getNextNumber(); } if (sizeT[i] > 1) { tBegin[i] = (int) rd.getNextNumber() - 1; tEnd[i] = (int) rd.getNextNumber() - 1; tStep[i] = (int) rd.getNextNumber(); } } else { cBegin[i] = (int) rd.getNextNumber() - 1; cEnd[i] = (int) rd.getNextNumber() - 1; cStep[i] = (int) rd.getNextNumber(); } int maxC = certain[i] ? sizeC[i] : num[i]; if (cBegin[i] < 0) cBegin[i] = 0; if (cBegin[i] >= maxC) cBegin[i] = maxC - 1; if (cEnd[i] < cBegin[i]) cEnd[i] = cBegin[i]; if (cEnd[i] >= maxC) cEnd[i] = maxC - 1; if (cStep[i] < 1) cStep[i] = 1; if (zBegin[i] < 0) zBegin[i] = 0; if (zBegin[i] >= sizeZ[i]) zBegin[i] = sizeZ[i] - 1; if (zEnd[i] < zBegin[i]) zEnd[i] = zBegin[i]; if (zEnd[i] >= sizeZ[i]) zEnd[i] = sizeZ[i] - 1; if (zStep[i] < 1) zStep[i] = 1; if (tBegin[i] < 0) tBegin[i] = 0; if (tBegin[i] >= sizeT[i]) tBegin[i] = sizeT[i] - 1; if (tEnd[i] < tBegin[i]) tEnd[i] = tBegin[i]; if (tEnd[i] >= sizeT[i]) tEnd[i] = sizeT[i] - 1; if (tStep[i] < 1) tStep[i] = 1; } } } // -- Step 4c: display metadata, when appropriate -- if (showMetadata) { IJ.showStatus("Populating metadata"); // display standard metadata in a table in its own window Hashtable meta = r.getMetadata(id); meta.put("\tSizeX", new Integer(r.getSizeX(id))); meta.put("\tSizeY", new Integer(r.getSizeY(id))); meta.put("\tSizeZ", new Integer(r.getSizeZ(id))); meta.put("\tSizeT", new Integer(r.getSizeT(id))); meta.put("\tSizeC", new Integer(r.getSizeC(id))); meta.put("\tIsRGB", new Boolean(r.isRGB(id))); meta.put("\tPixelType", FormatReader.getPixelTypeString(r.getPixelType(id))); meta.put("\tLittleEndian", new Boolean(r.isLittleEndian(id))); meta.put("\tDimensionOrder", r.getDimensionOrder(id)); meta.put("\tIsInterleaved", new Boolean(r.isInterleaved(id))); MetadataPane mp = new MetadataPane(meta); JFrame frame = new JFrame(id + " Metadata"); frame.setContentPane(mp); frame.pack(); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); WindowManager.addWindow(frame); } // -- Step 4d: read pixel data -- IJ.showStatus("Reading " + fileName); for (int i=0; i<seriesCount; i++) { if (!series[i]) continue; r.setSeries(id, i); String name = store.getImageName(new Integer(i)); String imageName = fileName; if (name != null && name.length() > 0) imageName += " - " + name; boolean[] load = new boolean[num[i]]; if (certain[i]) { for (int c=cBegin[i]; c<=cEnd[i]; c+=cStep[i]) { for (int z=zBegin[i]; z<=zEnd[i]; z+=zStep[i]) { for (int t=tBegin[i]; t<=tEnd[i]; t+=tStep[i]) { int index = r.getIndex(id, z, c, t); load[index] = true; } } } } else { for (int j=cBegin[i]; j<=cEnd[i]; j+=cStep[i]) load[j] = true; } int total = 0; for (int j=0; j<num[i]; j++) if (load[j]) total++; // dump OME-XML to ImageJ's description field, if available FileInfo fi = new FileInfo(); fi.description = store.dumpXML(); long startTime = System.currentTimeMillis(); long time = startTime; ImageStack stackB = null, stackS = null, stackF = null, stackO = null; int q = 0; for (int j=0; j<num[i]; j++) { if (!load[j]) continue; // limit message update rate long clock = System.currentTimeMillis(); if (clock - time >= 100) { IJ.showStatus("Reading " + (seriesCount > 1 ? ("series " + (i + 1) + ", ") : "") + "plane " + (j + 1) + "/" + num[i]); time = clock; } IJ.showProgress((double) q++ / total); byte[] b = r.openBytes(id, j); int w = r.getSizeX(id); int h = r.getSizeY(id); int c = r.isRGB(id) ? r.getSizeC(id) : 1; int type = r.getPixelType(id); // construct image processor and add to stack ImageProcessor ip = null; int bpp = 0; switch (type) { case FormatReader.INT8: case FormatReader.UINT8: bpp = 1; break; case FormatReader.INT16: case FormatReader.UINT16: bpp = 2; break; case FormatReader.INT32: case FormatReader.UINT32: case FormatReader.FLOAT: bpp = 4; break; case FormatReader.DOUBLE: bpp = 8; break; } if (b.length != w * h * c * bpp) { // HACK - byte array dimensions are incorrect - image is probably // a different size, but we have no way of knowing what size; // so open this plane as a BufferedImage instead BufferedImage bi = r.openImage(id, j); b = ImageTools.padImage(b, r.isInterleaved(id), c, bi.getWidth() * bpp, w, h); } Object pixels = DataTools.makeDataArray(b, bpp, type == FormatReader.FLOAT || type == FormatReader.DOUBLE, r.isLittleEndian(id)); if (pixels instanceof byte[]) { byte[] bytes = (byte[]) pixels; if (bytes.length > w*h*c) { byte[] tmp = bytes; bytes = new byte[w*h*c]; System.arraycopy(tmp, 0, bytes, 0, bytes.length); } if (c == 1) { ip = new ByteProcessor(w, h, bytes, null); if (stackB == null) stackB = new ImageStack(w, h); stackB.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); ip = new ColorProcessor(w, h); byte[][] pix = new byte[c][w*h]; for (int k=0; k<c; k++) { System.arraycopy(bytes, k*pix[k].length, pix[k], 0, pix[k].length); } ((ColorProcessor) ip).setRGB(pix[0], pix[1], pix.length >= 3 ? pix[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } else if (pixels instanceof short[]) { short[] s = (short[]) pixels; if (s.length > w*h*c) { short[] tmp = s; s = new short[w*h*c]; System.arraycopy(tmp, 0, s, 0, s.length); } if (c == 1) { ip = new ShortProcessor(w, h, s, null); if (stackS == null) stackS = new ImageStack(w, h); stackS.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); short[][] pix = new short[c][w*h]; for (int k=0; k<c; k++) { System.arraycopy(s, k*pix[k].length, pix[k], 0, pix[k].length); } byte[][] bytes = new byte[c][w*h]; for (int k=0; k<c; k++) { ip = new ShortProcessor(w, h, pix[k], null); ip = ip.convertToByte(true); bytes[k] = (byte[]) ip.getPixels(); } ip = new ColorProcessor(w, h); ((ColorProcessor) ip).setRGB(bytes[0], bytes[1], pix.length >= 3 ? bytes[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } else if (pixels instanceof int[]) { int[] s = (int[]) pixels; if (s.length > w*h*c) { int[] tmp = s; s = new int[w*h*c]; System.arraycopy(tmp, 0, s, 0, s.length); } if (c == 1) { ip = new FloatProcessor(w, h, s); if (stackF == null) stackF = new ImageStack(w, h); stackF.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); int[][] pix = new int[c][w*h]; for (int k=0; k<c; k++) { System.arraycopy(s, k*pix[k].length, pix[k], 0, pix[k].length); } byte[][] bytes = new byte[c][w*h]; for (int k=0; k<c; k++) { ip = new FloatProcessor(w, h, pix[k]); ip = ip.convertToByte(true); bytes[k] = (byte[]) ip.getPixels(); } ip = new ColorProcessor(w, h); ((ColorProcessor) ip).setRGB(bytes[0], bytes[1], pix.length >= 3 ? bytes[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } else if (pixels instanceof float[]) { float[] f = (float[]) pixels; if (f.length > w*h*c) { float[] tmp = f; f = new float[w*h*c]; System.arraycopy(tmp, 0, f, 0, f.length); } if (c == 1) { ip = new FloatProcessor(w, h, f, null); if (stackF == null) stackF = new ImageStack(w, h); if (stackB != null) { ip = ip.convertToByte(true); stackB.addSlice(imageName + ":" + (j + 1), ip); stackF = null; } else if (stackS != null) { ip = ip.convertToShort(true); stackS.addSlice(imageName + ":" + (j + 1), ip); stackF = null; } else stackF.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); float[][] pix = new float[c][w*h]; if (!r.isInterleaved(id)) { for (int k=0; k<f.length; k+=c) { for (int l=0; l<c; l++) { pix[l][k / 3] = f[k + l]; } } } else { for (int k=0; k<c; k++) { System.arraycopy(f, k*pix[k].length, pix[k], 0, pix[k].length); } } byte[][] bytes = new byte[c][w*h]; for (int k=0; k<c; k++) { ip = new FloatProcessor(w, h, pix[k], null); ip = ip.convertToByte(true); bytes[k] = (byte[]) ip.getPixels(); } ip = new ColorProcessor(w, h); ((ColorProcessor) ip).setRGB(bytes[0], bytes[1], pix.length >= 3 ? bytes[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } else if (pixels instanceof double[]) { double[] d = (double[]) pixels; if (d.length > w*h*c) { double[] tmp = d; d = new double[w*h*c]; System.arraycopy(tmp, 0, d, 0, d.length); } if (c == 1) { ip = new FloatProcessor(w, h, d); if (stackF == null) stackF = new ImageStack(w, h); stackF.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); double[][] pix = new double[c][w*h]; for (int k=0; k<c; k++) { System.arraycopy(d, k*pix[k].length, pix[k], 0, pix[k].length); } byte[][] bytes = new byte[c][w*h]; for (int k=0; k<c; k++) { ip = new FloatProcessor(w, h, pix[k]); ip = ip.convertToByte(true); bytes[k] = (byte[]) ip.getPixels(); } ip = new ColorProcessor(w, h); ((ColorProcessor) ip).setRGB(bytes[0], bytes[1], pix.length >= 3 ? bytes[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } } IJ.showStatus("Creating image"); IJ.showProgress(1); ImagePlus imp = null; if (stackB != null) { if (!mergeChannels && splitWindows) { slice(stackB, id, sizeZ[i], sizeC[i], sizeT[i], fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackB); } if (stackS != null) { if (!mergeChannels && splitWindows) { slice(stackS, id, sizeZ[i], sizeC[i], sizeT[i], fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackS); } if (stackF != null) { if (!mergeChannels && splitWindows) { slice(stackF, id, sizeZ[i], sizeC[i], sizeT[i], fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackF); } if (stackO != null) { if (!mergeChannels && splitWindows) { slice(stackO, id, sizeZ[i], sizeC[i], sizeT[i], fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackO); } if (imp != null) { // retrieve the spatial calibration information, if available applyCalibration(store, imp, i); imp.setFileInfo(fi); int c = r.getSizeC(id); displayStack(imp, r, id); r.close(); } long endTime = System.currentTimeMillis(); double elapsed = (endTime - startTime) / 1000.0; if (num[i] == 1) { IJ.showStatus("LOCI Bio-Formats: " + elapsed + " seconds"); } else { long average = (endTime - startTime) / num[i]; IJ.showStatus("LOCI Bio-Formats: " + elapsed + " seconds (" + average + " ms per plane)"); } } r.close(); plugin.success = true; // save parameter values to IJ_Prefs.txt Prefs.set("bioformats.mergeChannels", mergeChannels); Prefs.set("bioformats.ignoreTables", ignoreTables); Prefs.set("bioformats.colorize", colorize); Prefs.set("bioformats.splitWindows", splitWindows); Prefs.set("bioformats.showMetadata", showMetadata); Prefs.set("bioformats.stitchFiles", stitchFiles); Prefs.set("bioformats.specifyRanges", specifyRanges); Prefs.set("bioformats.stackFormat", stackFormat); } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.error("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the data" + (msg == null ? "." : (":\n" + msg))); } } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/aa8e13dd3b099c042e6177720abecf966d5fc287/Importer.java/clean/loci/plugins/Importer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1086, 12, 780, 1501, 13, 288, 565, 1250, 10902, 273, 1501, 480, 446, 597, 401, 3175, 18, 14963, 2932, 8863, 565, 514, 702, 273, 31203, 18, 588, 1320, 5621, 565, 368, 1493, 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, 282, 1071, 918, 1086, 12, 780, 1501, 13, 288, 565, 1250, 10902, 273, 1501, 480, 446, 597, 401, 3175, 18, 14963, 2932, 8863, 565, 514, 702, 273, 31203, 18, 588, 1320, 5621, 565, 368, 1493, 86...
"Invalid DOCTYPE declaration: " + systemId);
Messages.getString("prefs.1", systemId));
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (systemId.equals(PREFS_DTD_NAME)) { InputSource result = new InputSource(new StringReader( PREFS_DTD)); result.setSystemId(PREFS_DTD_NAME); return result; } throw new SAXException( "Invalid DOCTYPE declaration: " + systemId); //$NON-NLS-1$ }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/399aa824fb39c644041c20b00359a67c91162f55/XMLParser.java/clean/modules/prefs/src/main/java/java/util/prefs/XMLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 23699, 2245, 1943, 12, 780, 1071, 548, 16, 514, 30083, 13, 10792, 1216, 14366, 16, 1860, 288, 7734, 309, 261, 4299, 548, 18, 14963, 12, 3670, 4931, 67, 25728, 67, 1985, 3719, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 23699, 2245, 1943, 12, 780, 1071, 548, 16, 514, 30083, 13, 10792, 1216, 14366, 16, 1860, 288, 7734, 309, 261, 4299, 548, 18, 14963, 12, 3670, 4931, 67, 25728, 67, 1985, 3719, 288, ...
});
}, controlContext);
public Class forName(final String name) throws ClassNotFoundException { if (System.getSecurityManager() == null) return Class.forName(name); try { return (Class) AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Exception { return Class.forName(name); } }); } catch (PrivilegedActionException e) { if (e.getException() instanceof ClassNotFoundException) throw (ClassNotFoundException) e.getException(); throw (RuntimeException) e.getException(); } }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/d8b7d1128beda2c0335c9f8794f4d982b456d0d0/SecureAction.java/buggy/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/util/SecureAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1659, 11595, 12, 6385, 514, 508, 13, 1216, 10403, 288, 202, 202, 430, 261, 3163, 18, 588, 4368, 1318, 1435, 422, 446, 13, 1082, 202, 2463, 1659, 18, 1884, 461, 12, 529, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1659, 11595, 12, 6385, 514, 508, 13, 1216, 10403, 288, 202, 202, 430, 261, 3163, 18, 588, 4368, 1318, 1435, 422, 446, 13, 1082, 202, 2463, 1659, 18, 1884, 461, 12, 529, 1769, ...
return new Item(this,id, index, model);
return new Item(this, id, index, model);
protected Item newRowItem(final String id, int index, final IModel model) { return new Item(this,id, index, model); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/d2c2332d85a273f7cd33ec50b1f27d2b9b116d6b/DataTable.java/buggy/wicket-extensions/src/java/wicket/extensions/markup/html/repeater/data/table/DataTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4342, 27805, 1180, 12, 6385, 514, 612, 16, 509, 770, 16, 727, 467, 1488, 938, 13, 202, 95, 202, 202, 2463, 394, 4342, 12, 2211, 16, 350, 16, 770, 16, 938, 1769, 202, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1117, 4342, 27805, 1180, 12, 6385, 514, 612, 16, 509, 770, 16, 727, 467, 1488, 938, 13, 202, 95, 202, 202, 2463, 394, 4342, 12, 2211, 16, 350, 16, 770, 16, 938, 1769, 202, 97, ...
first = 0;
public void onStartBinding(PlugletStreamInfo streamInfo) { bb = new byte[streamInfo.getLength()]; total = 0; first = 0; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/701adb53ebc028dc703c1074d472d19dec2ab46e/ZipView.java/buggy/java/plugins/examples/zip/ZipView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 1685, 5250, 12, 1749, 637, 1810, 1228, 966, 1407, 966, 13, 288, 202, 9897, 273, 394, 1160, 63, 3256, 966, 18, 588, 1782, 1435, 15533, 202, 4963, 273, 374, 31, 202, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 1685, 5250, 12, 1749, 637, 1810, 1228, 966, 1407, 966, 13, 288, 202, 9897, 273, 394, 1160, 63, 3256, 966, 18, 588, 1782, 1435, 15533, 202, 4963, 273, 374, 31, 202, 225, ...
ErrorAnalizer.analyzeErrors(module, formFile, null, rootContainer);
ErrorAnalyzer.analyzeErrors(module, formFile, null, rootContainer);
public void generate(final VirtualFile formFile) { final Module module = ModuleUtil.getModuleForFile(myProject, formFile); if (module == null) { return; } final PsiPropertiesProvider propertiesProvider = new PsiPropertiesProvider(module); final Document doc = FileDocumentManager.getInstance().getDocument(formFile); final LwRootContainer rootContainer; try { rootContainer = Utils.getRootContainer(doc.getText(), propertiesProvider); } catch (AlienFormFileException ignored) { // ignoring this file return; } catch (Exception e) { myErrors.add("Cannot process form file. Reason: " + e); return; } if (rootContainer.getClassToBind() == null) { // form skipped - no class to bind return; } ErrorAnalizer.analyzeErrors(module, formFile, null, rootContainer); FormEditingUtil.iterate( rootContainer, new FormEditingUtil.ComponentVisitor<LwComponent>() { public boolean visit(final LwComponent iComponent) { final ErrorInfo errorInfo = ErrorAnalizer.getErrorForComponent(iComponent); if (errorInfo != null){ myErrors.add(errorInfo.myDescription); } return true; } } ); if (myErrors.size() != 0) { return; } try { _generate(rootContainer, module); } catch (ClassToBindNotFoundException e) { // ignored return; } catch (CodeGenerationException e) { myErrors.add(e.getMessage()); } catch (IncorrectOperationException e) { myErrors.add(e.getMessage()); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/390c9b70bb9263eb8204227bc0d47a53a6574b2f/FormSourceCodeGenerator.java/buggy/source/com/intellij/uiDesigner/make/FormSourceCodeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2103, 12, 6385, 7269, 812, 646, 812, 13, 288, 565, 727, 5924, 1605, 273, 5924, 1304, 18, 588, 3120, 1290, 812, 12, 4811, 4109, 16, 646, 812, 1769, 565, 309, 261, 2978, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2103, 12, 6385, 7269, 812, 646, 812, 13, 288, 565, 727, 5924, 1605, 273, 5924, 1304, 18, 588, 3120, 1290, 812, 12, 4811, 4109, 16, 646, 812, 1769, 565, 309, 261, 2978, 422, ...
s, m, indexMap, preserve, stripFirst, last && top);
s, m, indexMap, preserve, stripFirst, last && top);
protected List buildAttributedStrings(BridgeContext ctx, Element element, GraphicsNode node, boolean top, LinkedList result) { // !!! return two lists Map m = getAttributeMap(ctx, element, node); String s = XMLSupport.getXMLSpace(element); boolean preserve = s.equals("preserve"); boolean first = true; boolean last; boolean stripFirst = !preserve; boolean stripLast = !preserve; Element nodeElement = element; AttributedString as = null; if (!result.isEmpty()) { as = (AttributedString) result.getLast(); } for (Node n = element.getFirstChild(); n != null; n = n.getNextSibling()) { last = n.getNextSibling() == null; int lastChar = (as != null) ? (as.getIterator().last()) : CharacterIterator.DONE; stripFirst = !preserve && first && (top || (lastChar == ' ') || (lastChar == CharacterIterator.DONE)); switch (n.getNodeType()) { case Node.ELEMENT_NODE: nodeElement = (Element)n; if (n.getLocalName().equals("tspan")) { buildAttributedStrings(ctx, nodeElement, node, false, result); } else if (n.getLocalName().equals("tref")) { try { String uriStr = XLinkSupport.getXLinkHref((Element)n); SVGDocument svgDoc = (SVGDocument)element.getOwnerDocument(); URL baseURL = ((SVGOMDocument)svgDoc).getURLObject(); URL url = new URL(baseURL, uriStr); DocumentLoader loader = ctx.getDocumentLoader(); URIResolver resolver = new URIResolver(svgDoc, loader); Element ref = (Element)resolver.getNode(url.toString()); s = getElementContent(ref); Map map = getAttributeMap(ctx, nodeElement, node); int[] indexMap = new int[s.length()]; as = createAttributedString(s, map, indexMap, preserve, stripFirst, last && top); if (as != null) { addGlyphPositionAttributes( as, true, indexMap, ctx, nodeElement); stripLast = !preserve && (as.getIterator().first() == ' '); if (stripLast) { AttributedString las = (AttributedString) result.removeLast(); if (las != null) { AttributedCharacterIterator iter = las.getIterator(); int endIndex = iter.getEndIndex()-1; if (iter.setIndex(endIndex) == ' ') { las = new AttributedString( las.getIterator(null, iter.getBeginIndex(), endIndex)); } result.add(las); } } result.add(as); } } catch(MalformedURLException ex) { throw new IllegalAttributeValueException( Messages.formatMessage("tref.xlinkHref.badURL", null)); } catch (Exception ex) { /* Nothing to do */ } } break; case Node.TEXT_NODE: s = n.getNodeValue(); int[] indexMap = new int[s.length()]; as = createAttributedString( s, m, indexMap, preserve, stripFirst, last && top); if (as != null) { if (first) { addGlyphPositionAttributes(as, !top, indexMap, ctx, element); } stripLast = !preserve && (as.getIterator().first() == ' '); if (stripLast && !result.isEmpty()) { AttributedString las = (AttributedString) result.removeLast(); if (las != null) { AttributedCharacterIterator iter = las.getIterator(); int endIndex = iter.getEndIndex()-1; if (iter.setIndex(endIndex) == ' ') { las = new AttributedString( las.getIterator(null, iter.getBeginIndex(), endIndex)); } result.add(las); } } result.add(as); } } first = false; } return result; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/53cdbea418666ebb910c6f217e648b1581a19135/SVGTextElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGTextElementBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 987, 1361, 861, 11050, 7957, 12, 13691, 1042, 1103, 16, 4766, 1850, 3010, 930, 16, 4766, 1850, 16830, 907, 756, 16, 4766, 1850, 1250, 1760, 16, 4766, 1850, 10688, 563, 13, 288, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 987, 1361, 861, 11050, 7957, 12, 13691, 1042, 1103, 16, 4766, 1850, 3010, 930, 16, 4766, 1850, 16830, 907, 756, 16, 4766, 1850, 1250, 1760, 16, 4766, 1850, 10688, 563, 13, 288, 3639...
try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); List exams = sp.getIPersistentExam().readBy(day, beginning); List allRooms = sp.getISalaPersistente().readAll(); List occupiedRooms = new ArrayList(); for (int i = 0; i < exams.size(); i++) { List examRooms = ((IExam) exams.get(i)).getAssociatedRooms(); if (examRooms != null && examRooms.size() > 0) { for (int r = 0; r < examRooms.size(); r++) { occupiedRooms.add(examRooms.get(r)); }
List occupiedRooms = new ArrayList(); for (int i = 0; i < exams.size(); i++) { List examRooms = ((IExam) exams.get(i)).getAssociatedRooms(); if (examRooms != null && examRooms.size() > 0) { for (int r = 0; r < examRooms.size(); r++) { occupiedRooms.add(examRooms.get(r));
public List run(Calendar day, Calendar beginning) { List availableRooms = new ArrayList(); List availableInfoRooms = new ArrayList(); try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); List exams = sp.getIPersistentExam().readBy(day, beginning); List allRooms = sp.getISalaPersistente().readAll(); List occupiedRooms = new ArrayList(); for (int i = 0; i < exams.size(); i++) { List examRooms = ((IExam) exams.get(i)).getAssociatedRooms(); if (examRooms != null && examRooms.size() > 0) { for (int r = 0; r < examRooms.size(); r++) { occupiedRooms.add(examRooms.get(r)); } } } availableRooms = (ArrayList) CollectionUtils.subtract(allRooms, occupiedRooms); for (int i = 0; i < availableRooms.size(); i++) { IRoom room = (IRoom) availableRooms.get(i); InfoRoom infoRoom = Cloner.copyRoom2InfoRoom(room); availableInfoRooms.add(infoRoom); } } catch (ExcepcaoPersistencia ex) { ex.printStackTrace(); } return availableInfoRooms; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/d1570a87dd2b404cd64317e0adcdc6d796eb389d/ReadRoomsWithNoExamsInDayAndBeginning.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/sop/ReadRoomsWithNoExamsInDayAndBeginning.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 1086, 12, 7335, 2548, 16, 5542, 8435, 13, 288, 3639, 987, 2319, 13646, 87, 273, 394, 2407, 5621, 3639, 987, 2319, 966, 13646, 87, 273, 394, 2407, 5621, 3639, 775, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 1086, 12, 7335, 2548, 16, 5542, 8435, 13, 288, 3639, 987, 2319, 13646, 87, 273, 394, 2407, 5621, 3639, 987, 2319, 966, 13646, 87, 273, 394, 2407, 5621, 3639, 775, 288, 5411, ...
for (PDOMLinkage linkage = pdom.getFirstLinkage(); linkage != null; linkage = linkage.getNextLinkage())
PDOMLinkage firstLinkage = pdom.getFirstLinkage(); for (PDOMLinkage linkage = firstLinkage; linkage != null; linkage = linkage.getNextLinkage())
public Object[] getChildren(Object parentElement) { try { if (parentElement instanceof ICProject) { PDOM pdom = (PDOM)CCorePlugin.getPDOMManager().getPDOM((ICProject)parentElement); int n = 0; for (PDOMLinkage linkage = pdom.getFirstLinkage(); linkage != null; linkage = linkage.getNextLinkage()) ++n; PDOMLinkage[] linkages = new PDOMLinkage[n]; int i = 0; for (PDOMLinkage linkage = pdom.getFirstLinkage(); linkage != null; linkage = linkage.getNextLinkage()) linkages[i++] = linkage; return linkages; } else if (parentElement instanceof IPDOMNode) { IPDOMNode node = (IPDOMNode)parentElement; Counter counter = new Counter(); node.accept(counter); IPDOMNode[] children = new IPDOMNode[counter.count]; Children childrener = new Children(children); node.accept(childrener); return children; } } catch (CoreException e) { CUIPlugin.getDefault().log(e); } return new Object[0]; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e9eb7ef7e61bb6bbea17ee25aa648a353da6edd7/IndexView.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/indexview/IndexView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 8526, 10268, 12, 921, 30363, 13, 288, 1082, 202, 698, 288, 9506, 202, 430, 261, 2938, 1046, 1276, 26899, 4109, 13, 288, 6862, 202, 52, 8168, 4863, 362, 273, 261, 52, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 8526, 10268, 12, 921, 30363, 13, 288, 1082, 202, 698, 288, 9506, 202, 430, 261, 2938, 1046, 1276, 26899, 4109, 13, 288, 6862, 202, 52, 8168, 4863, 362, 273, 261, 52, 81...
public void setupExternalMessages(Frame parentFrame) {
public void setupExternalMessages() {
public void setupExternalMessages(Frame parentFrame) { final Worker worker = new Worker(); parentFrame.addComponentListener(new ComponentAdapter() { public void componentMoved(ComponentEvent e) { Point where = ((Frame) e.getSource()).getLocation(); System.err.println(PApplet.EXTERNAL_MOVE + " " + where.x + " " + where.y); System.err.flush(); // doesn't seem to help or hurt } }); parentFrame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.err.println(PApplet.EXTERNAL_QUIT); System.err.flush(); // important System.exit(0); } }); }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/52c64c106566e3207af744fc23ddf0947ca005f4/PApplet.java/buggy/core/PApplet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3875, 6841, 5058, 1435, 288, 565, 727, 11016, 4322, 273, 394, 11016, 5621, 565, 982, 3219, 18, 1289, 1841, 2223, 12, 2704, 5435, 4216, 1435, 288, 3639, 1071, 918, 1794, 25317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 6841, 5058, 1435, 288, 565, 727, 11016, 4322, 273, 394, 11016, 5621, 565, 982, 3219, 18, 1289, 1841, 2223, 12, 2704, 5435, 4216, 1435, 288, 3639, 1071, 918, 1794, 25317, ...
if (jj_3R_288()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false;
Token xsp; xsp = jj_scanpos; if (jj_3R_255()) { jj_scanpos = xsp; if (jj_3R_256()) return true;
static final private boolean jj_3R_223() { if (jj_3R_288()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3787, 23, 1435, 288, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 22, 5482, 10756, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3787, 23, 1435, 288, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 22, 5482, 10756, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374,...
actualDH = (DataHandler)binaryNode.getDataHandler();
actualDH = (DataHandler) binaryNode.getDataHandler();
public OMElement mtomSample(OMElement element) throws Exception { OMElement imageEle = element.getFirstElement(); OMElement imageName = (OMElement) imageEle.getNextOMSibling(); OMText binaryNode = (OMText) imageEle.getFirstOMChild(); String fileName = imageName.getText(); //Extracting the data and saving DataHandler actualDH; actualDH = (DataHandler)binaryNode.getDataHandler(); Image actualObject = new ImageIO().loadImage(actualDH.getDataSource() .getInputStream()); FileOutputStream imageOutStream = new FileOutputStream(fileName); new ImageIO().saveImage("image/jpeg", actualObject, imageOutStream); //setting response OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace ns = fac.createOMNamespace("urn://fakenamespace", "ns"); OMElement ele = fac.createOMElement("response", ns); ele.setText("Image Saved"); return ele; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/24e267b85cc91c8ca4f6752fa542b505e8b3706d/MTOMService.java/clean/modules/samples/src/sample/mtom/imagetransfer/service/MTOMService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 531, 12310, 312, 3599, 8504, 12, 51, 12310, 930, 13, 1216, 1185, 288, 377, 202, 3639, 531, 12310, 1316, 17274, 273, 930, 18, 588, 3759, 1046, 5621, 3639, 531, 12310, 29842, 273, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 531, 12310, 312, 3599, 8504, 12, 51, 12310, 930, 13, 1216, 1185, 288, 377, 202, 3639, 531, 12310, 1316, 17274, 273, 930, 18, 588, 3759, 1046, 5621, 3639, 531, 12310, 29842, 273, 261...
public void init(String tag, AttributeList attrs) throws SAXParseException {
public void init(String tag, AttributeList attrs) throws SAXParseException {
public void init(String tag, AttributeList attrs) throws SAXParseException { try { task = project.createTask(tag); } catch (BuildException e) { // swallow here, will be thrown again in // UnknownElement.maybeConfigure if the problem persists. } if (task == null) { task = new UnknownElement(tag); task.setProject(project); } task.setLocation(new Location(buildFile.toString(), locator.getLineNumber(), locator.getColumnNumber())); configureId(task, attrs); // Top level tasks don't have associated targets if (target != null) { task.setOwningTarget(target); target.addTask(task); task.init(); wrapper = task.getRuntimeConfigurableWrapper(); wrapper.setAttributes(attrs); } else { task.init(); configure(task, attrs, project); } }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/adbdf5d6c830f14edbfd28f91c2c7b1a14229291/ProjectHelper.java/buggy/src/main/org/apache/tools/ant/ProjectHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1208, 12, 780, 1047, 16, 3601, 682, 3422, 13, 2398, 1216, 10168, 13047, 288, 5411, 775, 288, 7734, 1562, 273, 1984, 18, 2640, 2174, 12, 2692, 1769, 5411, 289, 1044, 261, 3116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 12, 780, 1047, 16, 3601, 682, 3422, 13, 2398, 1216, 10168, 13047, 288, 5411, 775, 288, 7734, 1562, 273, 1984, 18, 2640, 2174, 12, 2692, 1769, 5411, 289, 1044, 261, 3116, ...
private void generateStatic(List constructors, CallbackGenerator[] generators, List[] methods) throws Exception {
private void generateStatic(List constructors, CallbackGenerator[] generators, CallbackGenerator.Context[] contexts) throws Exception {
private void generateStatic(List constructors, CallbackGenerator[] generators, List[] methods) throws Exception { begin_static(); new_instance(HashMap.class); dup(); invoke_constructor(HashMap.class); dup(); putfield(CONSTRUCTOR_PROXY_MAP); Local map = make_local(); store_local(map); for (int i = 0, size = constructors.size(); i < size; i++) { Constructor constructor = (Constructor)constructors.get(i); Class[] types = constructor.getParameterTypes(); load_local(map); push(types); invoke(NEW_CLASS_KEY); // key load_class_this(); push(types); invoke(MethodConstants.GET_DECLARED_CONSTRUCTOR); invoke(MAKE_CONSTRUCTOR_PROXY); // value invoke(MethodConstants.MAP_PUT); // put(key(agrgTypes[]), proxy) pop(); } for (int i = 0; i <= Callbacks.MAX_VALUE; i++) { if (usedCallbacks.get(i)) { new_instance(ThreadLocal.class); dup(); invoke_constructor(ThreadLocal.class); putfield(getThreadLocal(i)); } } for (int i = 0; i <= Callbacks.MAX_VALUE; i++) { if (generators[i] != null) { generators[i].generateStatic(this, methods[i]); } } return_value(); end_method(); }
836 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/836/2131acff8c6d89d16c19da3c50cf689e6652d87f/EnhancerGenerator.java/buggy/src/proxy/net/sf/cglib/EnhancerGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 5788, 12, 682, 19874, 16, 8444, 3908, 8526, 13327, 16, 8444, 3908, 18, 1042, 8526, 5781, 13, 225, 1216, 1185, 288, 3639, 2376, 67, 3845, 5621, 3639, 394, 67, 1336, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 5788, 12, 682, 19874, 16, 8444, 3908, 8526, 13327, 16, 8444, 3908, 18, 1042, 8526, 5781, 13, 225, 1216, 1185, 288, 3639, 2376, 67, 3845, 5621, 3639, 394, 67, 1336, 12, ...
disposeSession(request);
public void serviceAction(PortletRequest request, PortletResponse response, String namespace, String actionName, Map requestMap, Map parameterMap, Map sessionMap, Map applicationMap) { addSession(request); log.debug("Getting to serviceAction with namespace:" + namespace + " actionName:" + actionName); HashMap extraContext = createContextMap(requestMap, parameterMap, sessionMap, applicationMap, request, response, getPortletConfig()); if (namespace.length() > 0) { namespace = new StringBuffer("/").append(namespace).toString(); } log.debug(sessionMap); log.debug(parameterMap); extraContext.put(PORTLET_DISPATCHER, this); log.debug("Getting to beginning of serviceAction"); log.debug(new StringBuffer().append("Namespace: ").append(namespace).append("\nAction: ").append(actionName).append("\nPortlet Name: ").append(getPortletName()).toString()); try { if (request instanceof RenderRequest) { log.debug("Yes - it was a render request...."); if (request.getPortletSession(true).getAttribute(ACTION_CONTEXT) != null) { log.debug("Getting key for old action"); // String oldActionKey = request.getParameter("com.opensymphony.webwork.portlet.ActionContextKey"); ActionContext oldAction = (ActionContext) request.getPortletSession().getAttribute(ACTION_CONTEXT); extraContext.put(ActionContext.VALUE_STACK, oldAction.getValueStack()); extraContext.put(ActionContext.PARAMETERS, oldAction.getParameters()); request.getPortletSession().removeAttribute(ACTION_CONTEXT); log.debug("Should have removed the key"); } } String actionOverride = (String) request.getParameter("xwork.action"); if (actionOverride != null) { log.debug("Override action is " + actionOverride); actionName = actionOverride; } ActionProxy proxy = ActionProxyFactory.getFactory().createActionProxy(namespace, actionName, extraContext); request.setAttribute("webwork.valueStack", proxy.getInvocation().getStack()); proxy.execute(); //TODO: This code is a B.S. cheat by me. Need to figure out if this is even needed. if (request instanceof ActionRequest) { request.getPortletSession().setAttribute(ACTION_CONTEXT, proxy.getInvocation().getInvocationContext()); } } catch (ConfigurationException e) { log.error("Could not find action", e); // sendError(request, response, HttpServletResponse.SC_NOT_FOUND, // e); } catch (Exception e) { log.error("Could not execute action", e); // sendError(request, response, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e); } }
56353 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56353/ddadd9a78e09b967c5f592f31fa1d80f61de959d/PortletDispatcher.java/buggy/src/com/opensymphony/webwork/portlet/dispatcher/PortletDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 15825, 2157, 12, 2293, 1769, 225, 15825, 2157, 12, 2293, 1769, 1071, 918, 1156, 1803, 12, 18566, 691, 590, 16, 21305, 1064, 766, 16, 15825, 2157, 12, 2293, 1769, 225, 15825, 2157, 12, 229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15825, 2157, 12, 2293, 1769, 225, 15825, 2157, 12, 2293, 1769, 1071, 918, 1156, 1803, 12, 18566, 691, 590, 16, 21305, 1064, 766, 16, 15825, 2157, 12, 2293, 1769, 225, 15825, 2157, 12, 229...
else if ( currentDataSetName.equals( newName ) )
else if ( currentDataSetName == newName || ( currentDataSetName != null && currentDataSetName.equals( newName ) ) )
private int canChangeDataSet( String newName ) { String currentDataSetName = getDataSetName( ); if ( NONE.equals( currentDataSetName ) && !inputElement.columnBindingsIterator( ).hasNext( ) ) { return 0; } else if ( currentDataSetName.equals( newName ) ) { return 2; } MessageDialog prefDialog = new MessageDialog( UIUtil.getDefaultShell( ), Messages.getString( "dataBinding.title.changeDataSet" ),//$NON-NLS-1$ null, Messages.getString( "dataBinding.message.changeDataSet" ),//$NON-NLS-1$ MessageDialog.INFORMATION, new String[]{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL, }, 0 ); return prefDialog.open( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/f85fae8f75d2975e05e2137aa3d4d72a2e2b66b1/ColumnBindingDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 848, 3043, 13676, 12, 514, 13253, 262, 202, 95, 202, 202, 780, 30685, 11924, 273, 4303, 11924, 12, 11272, 202, 202, 430, 261, 11829, 18, 14963, 12, 30685, 11924, 262, 9506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 848, 3043, 13676, 12, 514, 13253, 262, 202, 95, 202, 202, 780, 30685, 11924, 273, 4303, 11924, 12, 11272, 202, 202, 430, 261, 11829, 18, 14963, 12, 30685, 11924, 262, 9506...
IResource resource = markerData[i].getResource(); Map attributes = markerData[i].getAttributes(); IMarker marker = resource .createMarker(IMarker.BOOKMARK); marker.setAttributes(attributes); newMarkers.add(marker); }
newMarkerResources.add(markerData[i].getResource()); newMarkerAttributes.add(markerData[i].getAttributes()); }
public void run() { // Get the markers from the clipboard MarkerTransfer transfer = MarkerTransfer.getInstance(); final IMarker[] markerData = (IMarker[]) view.getClipboard() .getContents(transfer); if (markerData == null) { return; } final ArrayList newMarkers = new ArrayList(); try { view.getWorkspace().run(new IWorkspaceRunnable() { public void run(IProgressMonitor monitor) throws CoreException { for (int i = 0; i < markerData.length; i++) { // Only paste tasks (not problems) if (!markerData[i].getType().equals(IMarker.BOOKMARK)) { continue; } // Paste to the same resource as the original IResource resource = markerData[i].getResource(); Map attributes = markerData[i].getAttributes(); IMarker marker = resource .createMarker(IMarker.BOOKMARK); marker.setAttributes(attributes); newMarkers.add(marker); } } }, null); } catch (CoreException e) { ErrorDialog.openError(view.getShell(), BookmarkMessages.PasteBookmark_errorTitle, null, e.getStatus()); return; } // Need to do this in an asyncExec, even though we're in the UI thread here, // since the bookmark navigator updates itself with the addition in an asyncExec, // which hasn't been processed yet. // Must be done outside IWorkspaceRunnable above since notification for add is // sent after IWorkspaceRunnable is run. if (newMarkers.size() > 0) { view.getShell().getDisplay().asyncExec(new Runnable() { public void run() { view.getViewer().setSelection( new StructuredSelection(newMarkers)); view.updatePasteEnablement(); } }); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1fe5fd7b39eab71b7bac7df6eaec945ee1d5850f/PasteBookmarkAction.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/PasteBookmarkAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 368, 968, 326, 11754, 628, 326, 20304, 3639, 14742, 5912, 7412, 273, 14742, 5912, 18, 588, 1442, 5621, 3639, 727, 467, 7078, 8526, 5373, 751, 273, 261, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 368, 968, 326, 11754, 628, 326, 20304, 3639, 14742, 5912, 7412, 273, 14742, 5912, 18, 588, 1442, 5621, 3639, 727, 467, 7078, 8526, 5373, 751, 273, 261, 3...
public void visitOpAsgn1Node(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitOpAsgn1Node(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitOpAsgn1Node(Node iVisited) { visit(iVisited); leave(iVisited); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/clean/org/jruby/nodes/NodeVisitorAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 3817, 37, 1055, 82, 21, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 1769, 202, 97, 2, 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, 1, 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, 3757, 3817, 37, 1055, 82, 21, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 1769, 202, 97, 2, -100, -100,...
public String toString(HtmlPage htmlPage, Object javaScriptObject) {
public String toString(final HtmlPage htmlPage, final Object javaScriptObject) {
public String toString(HtmlPage htmlPage, Object javaScriptObject) { return delegate_.toString(htmlPage, javaScriptObject); }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/bfbb9e2a2e54bf7040308f5f0b4fd744c80370c8/JavaScriptEngineTest.java/buggy/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngineTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1762, 12, 6385, 5430, 1964, 1729, 1964, 16, 727, 1033, 2252, 3651, 921, 13, 288, 5411, 327, 7152, 27799, 10492, 12, 2620, 1964, 16, 2252, 3651, 921, 1769, 3639, 289, 2, 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, 540, 1071, 514, 1762, 12, 6385, 5430, 1964, 1729, 1964, 16, 727, 1033, 2252, 3651, 921, 13, 288, 5411, 327, 7152, 27799, 10492, 12, 2620, 1964, 16, 2252, 3651, 921, 1769, 3639, 289, 2, -100, ...
throw new PluginConfigurationException( errorMessage.toString() );
throw new PluginConfigurationException( goal.getPluginDescriptor(), errorMessage.toString() );
private void validatePomConfiguration( MojoDescriptor goal, PlexusConfiguration pomConfiguration ) throws PluginConfigurationException { List parameters = goal.getParameters(); if ( parameters == null ) { return; } for ( int i = 0; i < parameters.size(); i++ ) { Parameter parameter = (Parameter) parameters.get( i ); // the key for the configuration map we're building. String key = parameter.getName(); PlexusConfiguration value = pomConfiguration.getChild( key, false ); if ( value == null && StringUtils.isNotEmpty( parameter.getAlias() ) ) { key = parameter.getAlias(); value = pomConfiguration.getChild( key, false ); } if ( value != null ) { // Make sure the parameter is either editable/configurable, or else is NOT specified in the POM if ( !parameter.isEditable() ) { StringBuffer errorMessage = new StringBuffer() .append( "ERROR: Cannot override read-only parameter: " ); errorMessage.append( key ); errorMessage.append( " in goal: " ).append( goal.getFullGoalName() ); throw new PluginConfigurationException( errorMessage.toString() ); } String deprecated = parameter.getDeprecated(); if ( StringUtils.isNotEmpty( deprecated ) ) { getLogger().warn( "DEPRECATED [" + parameter.getName() + "]: " + deprecated ); } } } }
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/63b3f71f6d4ab4ca0093d626eb5551c5c567120a/DefaultPluginManager.java/buggy/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1954, 52, 362, 1750, 12, 15931, 3187, 17683, 16, 453, 4149, 407, 1750, 21400, 1750, 262, 3639, 1216, 6258, 10737, 565, 288, 3639, 987, 1472, 273, 17683, 18, 588, 2402, 5621, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1954, 52, 362, 1750, 12, 15931, 3187, 17683, 16, 453, 4149, 407, 1750, 21400, 1750, 262, 3639, 1216, 6258, 10737, 565, 288, 3639, 987, 1472, 273, 17683, 18, 588, 2402, 5621, 36...
for (int f = 0; f < structures.size(); f++)
for (int f = 0; f < structures.size(); f+=100)
private boolean everythingOk(Vector structures) { StructureDiagramGenerator sdg = null; MoleculeViewer2D mv = null; Molecule mol = null; for (int f = 0; f < structures.size(); f++) { sdg = new StructureDiagramGenerator(); mol = (Molecule)structures.elementAt(f); sdg.setMolecule((Molecule)mol.clone()); try { sdg.generateCoordinates(new Vector2d(0,1)); } catch(Exception exc) { exc.printStackTrace(); fail("*** Exit due to an unexpected error during coordinate generation ***"); } if (standAlone) { mv.setAtomContainer(sdg.getMolecule()); mv = new MoleculeViewer2D(); // Renderer2DModel r2dm = new Renderer2DModel(); // r2dm.setDrawNumbers(true); // mv.setRenderer2DModel(r2dm); moleculeListViewer.addStructure(mv, "RandomGent Result no. " + (f + 1)); } } return true; }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/04defc052c52e4846a8ceef550bf4835e40a865f/RandomStructureGeneratorTest.java/clean/src/org/openscience/cdk/test/structgen/RandomStructureGeneratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 7756, 8809, 12, 5018, 12597, 13, 202, 95, 202, 202, 6999, 14058, 1940, 3908, 8349, 75, 273, 446, 31, 202, 202, 29669, 18415, 22, 40, 7701, 273, 446, 31, 202, 202, 29669...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 7756, 8809, 12, 5018, 12597, 13, 202, 95, 202, 202, 6999, 14058, 1940, 3908, 8349, 75, 273, 446, 31, 202, 202, 29669, 18415, 22, 40, 7701, 273, 446, 31, 202, 202, 29669...
else if(o.indexOf('.') > -1 && o.indexOf('E') == -1 && o.length() > 4)
else if((o.indexOf('.') > -1) && (o.indexOf('E') == -1) && (o.length() > 4))
public static String formatSize(long sz) { // First determine suffix String[] suffixes = {"B", "KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"}; long s = 1; int i; for(i=0;i<suffixes.length;i++) { s *= 1024; if(s > sz) { break; // Smaller than multiplier [i] - use the previous one } } s /= 1024; // we use the previous unit if (s == 1) // Bytes? Then we don't need real numbers with a comma { return sz + " " + suffixes[0]; } else { double mantissa = (double)sz / (double)s; String o = Double.toString(mantissa); if(o.indexOf('.') == 3) o = o.substring(0, 3); else if(o.indexOf('.') > -1 && o.indexOf('E') == -1 && o.length() > 4) o = o.substring(0, 4); o += " " + suffixes[i]; return o; } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SizeUtil.java/buggy/src/freenet/support/SizeUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 1225, 12, 5748, 11262, 13, 288, 202, 202, 759, 5783, 4199, 3758, 9506, 202, 780, 8526, 18333, 273, 12528, 38, 3113, 315, 47, 17632, 15937, 49, 17632, 15937, 43, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 1225, 12, 5748, 11262, 13, 288, 202, 202, 759, 5783, 4199, 3758, 9506, 202, 780, 8526, 18333, 273, 12528, 38, 3113, 315, 47, 17632, 15937, 49, 17632, 15937, 43, ...
if (myCachedIsEnum == null) { final boolean isEnum; if (getTreeElement() != null) { isEnum = ((ClassElement)getTreeElement()).isEnum(); } else { isEnum = getRepositoryManager().getClassView().isEnum(getRepositoryId()); } myCachedIsEnum = Boolean.valueOf(isEnum);
Boolean cachedIsEnum = myCachedIsEnum; if (cachedIsEnum == null) { final boolean isEnum; if (getTreeElement() != null) { isEnum = ((ClassElement)getTreeElement()).isEnum();
public boolean isEnum() { if (myCachedIsEnum == null) { final boolean isEnum; if (getTreeElement() != null) { isEnum = ((ClassElement)getTreeElement()).isEnum(); } else { isEnum = getRepositoryManager().getClassView().isEnum(getRepositoryId()); } myCachedIsEnum = Boolean.valueOf(isEnum); } return myCachedIsEnum.booleanValue(); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/284ddbdbfb5075a2e53d2b81a79a07fbcf319987/PsiClassImpl.java/buggy/source/com/intellij/psi/impl/source/PsiClassImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 3572, 1435, 288, 1377, 309, 261, 4811, 9839, 2520, 3572, 422, 446, 13, 288, 3639, 727, 1250, 353, 3572, 31, 3639, 309, 261, 588, 2471, 1046, 1435, 480, 446, 13, 288, 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, 282, 1071, 1250, 353, 3572, 1435, 288, 1377, 309, 261, 4811, 9839, 2520, 3572, 422, 446, 13, 288, 3639, 727, 1250, 353, 3572, 31, 3639, 309, 261, 588, 2471, 1046, 1435, 480, 446, 13, 288, 18...
public void skippedEntity (String name) { /* ignored */ }
public void skippedEntity(String name) { /* ignored */ }
public void skippedEntity (String name) { /* ignored */ }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/7fb7568e63c3fe14af521de4699cb37898923ca7/SAXDriver.java/clean/libjava/gnu/xml/aelfred2/SAXDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 9700, 1943, 261, 780, 508, 13, 202, 565, 288, 1748, 5455, 1195, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 9700, 1943, 261, 780, 508, 13, 202, 565, 288, 1748, 5455, 1195, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ai.addAttribute(uri,"id","id","CDATA",layoutStore.getNextFragmentId());
String id = layoutStore.getNextFragmentId(); if ( !fragmentIds.containsKey(name) ) fragmentIds.put(name,id); ai.addAttribute(uri,"id","id","CDATA",id);
public void startElement (String uri, String localName, String qName, Attributes atts) throws SAXException { AttributesImpl ai=new AttributesImpl(atts); // Adding the fragment name to the vector if ( qName.equals("fragment") ) { String name = atts.getValue("name"); if ( !fragmentNames.contains(name) ) fragmentNames.add(name); try { ai.addAttribute(uri,"id","id","CDATA",layoutStore.getNextFragmentId()); } catch ( PortalException pe ) { throw new SAXException(pe.getMessage()); } } // Getting the channel ID by the fname else if ( qName.equals("channel") ) { String fname = atts.getValue("fname"); try { ChannelDefinition chanDef = channelStore.getChannelDefinition(fname); ai.addAttribute(uri,"id","id","CDATA",chanDef.getId()+""); } catch ( Exception e ) { throw new SAXException(e.getMessage()); } } if(qName.equals("group")) { // this could be made more robust by adding another mode for "groups" element groupMode=true; groupUri=uri; groupLocalName=localName; groupAtts=new AttributesImpl(atts); } else if(qName.equals("restriction")) { // this can also be made more robust by adding another mode for "restrictions" element // look up restriction name in the DB String restrType; if(ai.getIndex("type")!=-1) { // restriction type was specified if(!rMap.containsValue(ai.getValue("type"))) { System.out.println("ERROR: specified restriction type \""+ai.getValue("type")+"\" does not exist ! Either correct the type value, or consider using match by restriction name (i.e. <restriction name=\"priority\" ...)"); System.exit(1); } else { if(ai.getIndex("name")!=-1 && rMap.containsKey(ai.getValue("name")) && (!ai.getValue("type").equals((String)rMap.get(ai.getValue("name"))))) { System.out.println("ERROR: specified restriction type \""+ai.getValue("type")+"\" does not match the specified name \""+ai.getValue("name")+"\" in the database. name \""+ai.getValue("name")+"\" matches restriction type \""+(String)rMap.get(ai.getValue("name"))+"\""); System.exit(1); } else { super.startElement(uri,localName,qName,ai); } } } else { String restrName=ai.getValue("name"); restrType=(String)rMap.get(restrName); if(restrType!=null) { ai.addAttribute(uri,"type","type","CDATA",restrType); } else { System.out.println("ERROR: config file specifies a restriction name \""+restrName+"\" which is not registered with the database!"); System.exit(1); } super.startElement(uri,localName,qName,ai); } } else { super.startElement(uri,localName,qName,ai); } }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/005d784e831f62efec084cf3c63e3b39aaccc2a1/PushFragmentLoader.java/clean/source/org/jasig/portal/layout/utils/PushFragmentLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 13591, 261, 780, 2003, 16, 514, 11927, 16, 514, 22914, 16, 9055, 15687, 13, 1216, 14366, 288, 5411, 9055, 2828, 14679, 33, 2704, 9055, 2828, 12, 270, 3428, 1769, 2398, 368, 212...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13591, 261, 780, 2003, 16, 514, 11927, 16, 514, 22914, 16, 9055, 15687, 13, 1216, 14366, 288, 5411, 9055, 2828, 14679, 33, 2704, 9055, 2828, 12, 270, 3428, 1769, 2398, 368, 212...
filter.onResource = TasksFilter.ON_SELECTED_RESOURCE_ONLY;
tasksFilter.onResource = TasksFilter.ON_SELECTED_RESOURCE_ONLY;
void updateFilterFromUI(TasksFilter filter) { filter.types = getSelectedTypes(); if (selectedResourceButton.getSelection()) filter.onResource = TasksFilter.ON_SELECTED_RESOURCE_ONLY; else if (selectedResourceAndChildrenButton.getSelection()) filter.onResource = TasksFilter.ON_SELECTED_RESOURCE_AND_CHILDREN; else if (anyResourceInSameProjectButton.getSelection()) // added by cagatayk@acm.org filter.onResource = TasksFilter.ON_ANY_RESOURCE_OF_SAME_PROJECT; else if (workingSetGroup.getSelection()) filter.onResource = TasksFilter.ON_WORKING_SET; else filter.onResource = TasksFilter.ON_ANY_RESOURCE; filter.workingSet = workingSetGroup.getWorkingSet(); filter.descriptionFilterKind = descriptionGroup.combo.getSelectionIndex(); filter.descriptionFilter = descriptionGroup.text.getText(); filter.filterOnDescription = !filter.descriptionFilter.equals("");//$NON-NLS-1$ filter.filterOnSeverity = severityGroup.getSelection(); filter.severityFilter = severityGroup.getValueMask(); filter.filterOnPriority = priorityGroup.getSelection(); filter.priorityFilter = priorityGroup.getValueMask(); filter.filterOnCompletion = completionGroup.getSelection(); filter.completionFilter = completionGroup.getValueMask(); int markerLimit = TasksFilter.DEFAULT_MARKER_LIMIT; try { markerLimit = Integer.parseInt(this.markerLimit.getText()); } catch (NumberFormatException eNumberFormat) { } filter.setMarkerLimit(markerLimit); filter.setFilterOnMarkerLimit(filterOnMarkerLimit.getSelection()); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e365c8c256fc9bd61d9d458bb74ff408ae201fd1/FiltersDialog.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/FiltersDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1089, 1586, 1265, 5370, 12, 6685, 1586, 1034, 13, 288, 1082, 202, 2188, 18, 2352, 273, 16625, 2016, 5621, 9506, 202, 430, 261, 8109, 1420, 3616, 18, 588, 6233, 10756, 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, 6459, 1089, 1586, 1265, 5370, 12, 6685, 1586, 1034, 13, 288, 1082, 202, 2188, 18, 2352, 273, 16625, 2016, 5621, 9506, 202, 430, 261, 8109, 1420, 3616, 18, 588, 6233, 10756, 1082, 202...
LineGraph graph = new LineGraph(scenarioName + ": " + dimensionName,
TimeLineGraph graph = new TimeLineGraph(scenarioName + ": " + dimensionName,
public static LineGraph getLineGraph(Scenario t, String dimensionName, String reference, String current,ArrayList pointsOfInterest) { Display display = Display.getDefault(); Color black = display.getSystemColor(SWT.COLOR_BLACK); Color yellow = display.getSystemColor(SWT.COLOR_DARK_YELLOW); Color magenta = display.getSystemColor(SWT.COLOR_MAGENTA); String scenarioName = t.getScenarioName(); Dim[] dimensions = t.getDimensions(); Dim dim=null; for (int i = 0; i < dimensions.length; i++) { if (dimensions[i].getName().equals(dimensionName)) dim = dimensions[i]; } LineGraph graph = new LineGraph(scenarioName + ": " + dimensionName, dim); TimeSeries ts = null; try { ts = t.getTimeSeries(dim); int n = ts.getLength(); if (n > 0) { for (int j = 0; j < n; j++) { String buildID = ts.getLabel(j); double value = ts.getValue(j); Color c=yellow; if (buildID.equals(reference)||pointsOfInterest.contains(buildID)) c =magenta; else if (buildID.startsWith("I")) c=black; int underscoreIndex = buildID.indexOf('_'); String label = (buildID.indexOf('_') == -1) ? buildID : buildID .substring(0, underscoreIndex); if (buildID.equals(reference) || buildID.equals(current)){ graph.addItem(label, dim.getDisplayValue(value), value, c, true); } else if(buildID.startsWith("I")||pointsOfInterest.contains(buildID)||lastSevenNightlyBuildNames(t.getTimeSeriesLabels(),current).contains(buildID)) graph.addItem(buildID, dim.getDisplayValue(value), value, c); if (buildID.equals(current)) break; } } } catch (AssertionFailedError e) { // System.err.println("Unable to get result for: // "+t.getScenarioName()+" "+ts.toString()); } return graph; }
14684 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14684/876bedbe6ffa2dbb2fb90d526f4b168a2773da5f/Utils.java/clean/bundles/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/Utils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 5377, 4137, 9851, 4137, 12, 21390, 268, 16, 514, 4968, 461, 16, 202, 202, 780, 2114, 16, 514, 783, 16, 19558, 3143, 951, 29281, 13, 288, 202, 202, 4236, 2562, 273, 9311, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 5377, 4137, 9851, 4137, 12, 21390, 268, 16, 514, 4968, 461, 16, 202, 202, 780, 2114, 16, 514, 783, 16, 19558, 3143, 951, 29281, 13, 288, 202, 202, 4236, 2562, 273, 9311, ...
if (resource instanceof IFile)
if (resource instanceof IFile) {
private static IEditorInput getEditorInput(ICElement element) throws CModelException { while (element != null) { if (element instanceof IWorkingCopy && ((IWorkingCopy) element).isWorkingCopy()) element= ((IWorkingCopy) element).getOriginalElement(); if (element instanceof ISourceReference) { ITranslationUnit tu = ((ISourceReference)element).getTranslationUnit(); if (tu != null) { element = tu; } } if (element instanceof ITranslationUnit) { ITranslationUnit unit= (ITranslationUnit) element; IResource resource= unit.getResource(); if (resource instanceof IFile) return new FileEditorInput((IFile) resource); } if (element instanceof IBinary) { //return new InternalClassFileEditorInput((IBinary) element); return new ExternalEditorInput(getStorage((IBinary)element)); } element= element.getParent(); } return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f7ff3c2496e2f3b716249b1f5ad3c2078cfb9111/EditorUtility.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 467, 6946, 1210, 336, 6946, 1210, 12, 2871, 1046, 930, 13, 1216, 385, 1488, 503, 288, 202, 202, 17523, 261, 2956, 480, 446, 13, 288, 1082, 202, 430, 261, 2956, 1276, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 467, 6946, 1210, 336, 6946, 1210, 12, 2871, 1046, 930, 13, 1216, 385, 1488, 503, 288, 202, 202, 17523, 261, 2956, 480, 446, 13, 288, 1082, 202, 430, 261, 2956, 1276, 467...
if (stmt != null) { stmt.executeUpdate("DROP TABLE testbatch"); stmt.close(); } if (con != null) { JDBC2Tests.closeDB(con); }
JDBC2Tests.dropTable(con, "testbatch"); JDBC2Tests.closeDB(con);
protected void tearDown() throws Exception { con.setAutoCommit(true); if (stmt != null) { stmt.executeUpdate("DROP TABLE testbatch"); stmt.close(); } if (con != null) { JDBC2Tests.closeDB(con); } }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/b75814aee320ef2b67ad01ba72c266dbbf94db45/BatchExecuteTest.java/clean/src/interfaces/jdbc/org/postgresql/test/jdbc2/BatchExecuteTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 268, 2091, 4164, 1435, 1216, 1185, 288, 202, 202, 591, 18, 542, 4965, 5580, 12, 3767, 1769, 202, 202, 430, 261, 10589, 480, 446, 13, 288, 1082, 202, 10589, 18, 8837, 189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 268, 2091, 4164, 1435, 1216, 1185, 288, 202, 202, 591, 18, 542, 4965, 5580, 12, 3767, 1769, 202, 202, 430, 261, 10589, 480, 446, 13, 288, 1082, 202, 10589, 18, 8837, 189...
public static final void formatSize(Address buffer, int size) {}
public static final void formatSize(Address buffer, int size) { }
public static final void formatSize(Address buffer, int size) {}
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/Util.java/buggy/MMTk/ext/vm/stub/org/mmtk/vm/gcspy/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 918, 740, 1225, 12, 1887, 1613, 16, 509, 963, 13, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 918, 740, 1225, 12, 1887, 1613, 16, 509, 963, 13, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if (a.isEnabled()) {
if (a.isEnabled()) {
public void processKeyEvent(KeyEvent e) { if (CodeStatus.DEVELOPMENT) { KeyStroke ks = KeyStroke.getKeyStrokeForEvent(e); Action a = _keyBindingManager.get(ks); if (a != null) { if (a.isEnabled()) {// prevents the user from undoing (for example) if it's not enabled a.actionPerformed(null); } e.consume(); } else { if (((ks.getModifiers() & mask) != 0) || ks.getKeyChar() == '\010') // backspace deletes twice without this check e.consume(); } if (!e.isConsumed()) super.processKeyEvent(e); } else super.processKeyEvent(e); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9cb55009db1cb8bd2aab8df62ce303060f475c4b/DefinitionsPane.java/clean/drjava/src/edu/rice/cs/drjava/ui/DefinitionsPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 653, 1133, 12, 653, 1133, 425, 13, 288, 565, 309, 261, 1085, 1482, 18, 31771, 52, 3212, 13, 288, 1377, 1929, 14602, 11654, 273, 1929, 14602, 18, 588, 653, 14602, 1290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 653, 1133, 12, 653, 1133, 425, 13, 288, 565, 309, 261, 1085, 1482, 18, 31771, 52, 3212, 13, 288, 1377, 1929, 14602, 11654, 273, 1929, 14602, 18, 588, 653, 14602, 1290, ...
ruby.getCRef().push(module);
ruby.getCRef().push(module);
public RubyObject setupModule(Ruby ruby, RubyModule module) { // Node node = n; String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); // TMP_PROTECT; RubyFrame frame = ruby.getRubyFrame(); frame.setTmp(ruby.getRubyFrame()); ruby.setRubyFrame(frame); ruby.pushClass(); ruby.setRubyClass(module); ruby.getRubyScope().push(); RubyVarmap.push(ruby); if (getTable() != null) { /*List tmp = Collections.nCopies(idTable[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, this); vars.shift(1);*/ RubyPointer vars = new RubyPointer(ruby.getNil(), getTable().getId(0).intValue() + 1); vars.set(0, this); vars.inc(); ruby.getRubyScope().setLocalVars(vars); ruby.getRubyScope().setLocalTbl(getTable()); } else { ruby.getRubyScope().setLocalVars(null); ruby.getRubyScope().setLocalTbl(null); } // +++ // if (ruby.getCRef() != null) { ruby.getCRef().push(module); // } else { // ruby.setCRef(new CRefNode(module, null)); // } // --- ruby.getRubyFrame().setCbase(ruby.getCRef()); // PUSH_TAG(PROT_NONE); RubyObject result = null; // if (( state = EXEC_TAG()) == 0 ) { // if (trace_func) { // call_trace_func("class", file, line, ruby_class, // ruby_frame->last_func, ruby_frame->last_class ); // } result = getNextNode() != null ? getNextNode().eval(ruby, ruby.getRubyClass()) : ruby.getNil(); // } // POP_TAG(); ruby.getCRef().pop(); RubyVarmap.pop(ruby); ruby.getRubyScope().pop(); ruby.popClass(); ruby.setRubyFrame(frame.getTmp()); // if (trace_func) { // call_trace_func("end", file, line, 0, ruby_frame->last_func, ruby_frame->last_class ); // } // if (state != 0) { // JUMP_TAG(state); // } return result; }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/f629550c5947df9c1dbe414645f3dc76bcb70df4/ScopeNode.java/buggy/org/jruby/nodes/ScopeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 3875, 3120, 12, 54, 10340, 22155, 16, 19817, 3120, 1605, 13, 288, 3639, 368, 2029, 756, 273, 290, 31, 7734, 514, 585, 273, 22155, 18, 588, 31150, 5621, 3639, 509, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 3875, 3120, 12, 54, 10340, 22155, 16, 19817, 3120, 1605, 13, 288, 3639, 368, 2029, 756, 273, 290, 31, 7734, 514, 585, 273, 22155, 18, 588, 31150, 5621, 3639, 509, 980, ...
List argsList = rubyFrame.getArgs();
List argsList = getRubyFrame().getArgs();
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { if (node == null) { return getRuby().getNil(); } switch (node.nd_type()) { case NODE_BLOCK: while (node.nd_next() != null) { eval(self, node.nd_head()); node = node.nd_next(); } node = node.nd_head(); break; case NODE_POSTEXE: // rb_f_END(); node.nd_set_type(NODE_NIL); /* exec just once */ return getRuby().getNil(); /* begin .. end without clauses */ case NODE_BEGIN: node = node.nd_body(); break; /* nodes for speed-up(default match) */ case NODE_MATCH: //return rom.rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: //return rom.rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: //VALUE r = eval(node.nd_recv()); //VALUE l = eval(node.nd_value()); //if (r instanceof RubyString) { // return rom.rb_reg_match(l, r); //} else { // return rom.rb_funcall(r, match, 1, l); //} return getRuby().getNil(); /* node for speed-up(top-level loop for -n/-p) */ case NODE_OPT_N: while (true) { try { // while (!rb_gets().isNil() false) { // HACK +++ if (true) { // HACK --- try { eval(self, node.nd_body()); } catch (RedoException rExcptn) { } } break; } catch (NextException nExcptn) { } catch (BreakException bExcptn) { break; } } return getRuby().getNil(); case NODE_SELF: return self; case NODE_NIL: return getRuby().getNil(); case NODE_TRUE: return getRuby().getTrue(); case NODE_FALSE: return getRuby().getFalse(); case NODE_IF: // ruby_sourceline = node.nd_line(); cond = (RubyBoolean)eval(self, node.nd_cond()); if (cond.isTrue()) { node = node.nd_body(); } else { node = node.nd_else(); } break; case NODE_WHEN: while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); }*/ // ruby_sourcefile = tag.nd_file; // ruby_sourceline = tag.nd_line(); if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj = eval(self, tag.nd_head().nd_head()); if (!(obj instanceof RubyArray)) { obj = RubyArray.m_newArray(getRuby(), obj); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { if (((RubyBoolean)((RubyArray)obj).entry(i)).isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (((RubyBoolean)eval(self, tag.nd_head())).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_CASE: RubyObject obj = eval(self, node.nd_head()); node = node.nd_body(); while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); } ruby_sourcefile = tag->nd_file; ruby_sourceline = nd_line(tag);*/ if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj2 = eval(self, tag.nd_head().nd_head()); if (!(obj2 instanceof RubyArray)) { obj2 = RubyArray.m_newArray(getRuby(), obj2); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { RubyBoolean eqq = (RubyBoolean)((RubyArray)obj2).entry(i).funcall(getRuby().intern("==="), obj); if (eqq.isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (((RubyBoolean)eval(self, tag.nd_head()).funcall(getRuby().intern("==="), obj)).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_WHILE: while (eval(self, node.nd_cond()).isTrue()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_UNTIL: while (eval(self, node.nd_cond()).isFalse()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_BLOCK_PASS: //return block_pass(node); return null; case NODE_ITER: case NODE_FOR: rubyBlock.push(node.nd_var(), node.nd_body(), self); rubyIter.push(Iter.ITER_PRE); while (true) { try { if (node.nd_type() == NODE_ITER) { result = eval(self, node.nd_iter()); } else { // String file = // int line = rubyBlock.flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_iter()); endCallArgs(tmpBlock); // = file; // = line; result = recv.getRubyClass().call(recv, ruby.intern("each"), null, 0); } break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } rubyIter.pop(); rubyBlock.pop(); return result; case NODE_BREAK: throw new BreakException(); case NODE_NEXT: throw new NextException(); case NODE_REDO: throw new RedoException(); case NODE_RETRY: throw new RetryException(); case NODE_RESTARGS: result = eval(self, node.nd_head()); if (!(result instanceof RubyArray)) { result = obj = RubyArray.m_newArray(getRuby(), result); } return result; case NODE_YIELD: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); if (node.nd_stts().nd_type() == NODE_RESTARGS && ((RubyArray)result).length() == 1) { result = ((RubyArray)result).entry(0); } } else { result = ruby.getNil(); } return yield0(result, null, null, false); case NODE_RESCUE:/* retry_entry: { volatile VALUE e_info = ruby_errinfo; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_head); } POP_TAG(); if (state == TAG_RAISE) { NODE * volatile resq = node->nd_resq; ruby_sourceline = nd_line(node); while (resq) { if (handle_rescue(self, resq)) { state = 0; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, resq->nd_body); } POP_TAG(); if (state == TAG_RETRY) { state = 0; ruby_errinfo = Qnil; goto retry_entry; } if (state != TAG_RAISE) { ruby_errinfo = e_info; } break; } resq = resq->nd_head; /* next rescue */ /** } * } * else if (node->nd_else) { /* else clause given *//* if (!state) { /* no exception raised *//* result = rb_eval(self, node->nd_else); } } if (state) JUMP_TAG(state); } break;*/ case NODE_ENSURE:/* PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = eval(node.nd_head()); } POP_TAG(); if (node.nd_ensr()) { VALUE retval = prot_tag->retval; /* save retval *//* VALUE errinfo = ruby_errinfo; rb_eval(self, node->nd_ensr); return_value(retval); ruby_errinfo = errinfo; } if (state) JUMP_TAG(state); break;*/ case NODE_AND: cond = (RubyBoolean)eval(self, node.nd_1st()); if (cond.isFalse()) { return cond; } node = node.nd_2nd(); break; case NODE_OR: cond = (RubyBoolean)eval(self, node.nd_1st()); if (cond.isTrue()) { return cond; } node = node.nd_2nd(); break; case NODE_NOT: return RubyBoolean.m_newBoolean(getRuby(), eval(self, node.nd_1st()).isFalse()); case NODE_DOT2: case NODE_DOT3: result = RubyRange.m_newRange(getRuby(), eval(self, node.nd_beg()), eval(self, node.nd_end()), node.nd_type() == NODE_DOT3); if (node.nd_state() != 0) { return result; } if (node.nd_beg().nd_type() == NODE_LIT && (node.nd_beg().nd_lit() instanceof RubyFixnum) && node.nd_end().nd_type() == NODE_LIT && (node.nd_end().nd_lit() instanceof RubyFixnum)) { node.nd_set_type(NODE_LIT); node.nd_lit(result); } else { node.nd_state(1L); } return result; case NODE_FLIP2: /* like AWK */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.rubyScope.getLocalVars(node.nd_cnt()).isFalse()) { if (eval(self, node.nd_beg()).isTrue()) { ruby.rubyScope.setLocalVars(node.nd_cnt(), eval(self, node.nd_end()).isTrue() ? ruby.getFalse() : ruby.getTrue()); result = ruby.getTrue(); } else { result = ruby.getFalse(); } } else { if (eval(self, node.nd_end()).isTrue()) { ruby.rubyScope.setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_FLIP3: /* like SED */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.rubyScope.getLocalVars(node.nd_cnt()).isFalse()) { result = eval(self, node.nd_beg()).isTrue() ? ruby.getFalse() : ruby.getTrue(); ruby.rubyScope.setLocalVars(node.nd_cnt(), result); } else { if (eval(self, node.nd_end()).isTrue()) { ruby.rubyScope.setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_RETURN: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); } else { result = ruby.getNil(); } throw new ReturnException(result); case NODE_ARGSCAT: return ((RubyArray)eval(self, node.nd_head())).m_concat(eval(self, node.nd_body())); case NODE_ARGSPUSH: return ((RubyArray)eval(self, node.nd_head()).m_dup()).push(eval(self, node.nd_body())); case NODE_CALL: // TMP_PROTECT; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_recv()); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return recv.getRubyClass().call(recv, (RubyId)node.nd_mid(), args, 0); case NODE_FCALL: // TMP_PROTECT; tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return self.getRubyClass().call(self, (RubyId)node.nd_mid(), args, 1); case NODE_VCALL: return self.getRubyClass().call(self, (RubyId)node.nd_mid(), null, 2); case NODE_SUPER: case NODE_ZSUPER: // TMP_PROTECT; if (rubyFrame.getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled"); } if (node.nd_type() == NODE_ZSUPER) { List argsList = rubyFrame.getArgs(); args = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); } else { tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); } rubyIter.push(rubyIter.getIter() != Iter.ITER_NOT ? Iter.ITER_PRE : Iter.ITER_NOT); result = rubyFrame.getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3); rubyIter.pop(); return result; case NODE_SCOPE: NODE saved_cref = null; Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; ruby.rubyScope.push(); if (node.nd_rval() != null) { saved_cref = ruby_cref; ruby_cref = (NODE)node.nd_rval(); rubyFrame.setCbase(node.nd_rval()); } if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().rubyScope.setLocalVars(vars); getRuby().rubyScope.setLocalTbl(node.nd_tbl()); } else { getRuby().rubyScope.setLocalVars(null); getRuby().rubyScope.setLocalTbl(null); } result = eval(self, node.nd_next()); ruby.rubyScope.pop(); rubyFrame = frame.getTmp(); if (saved_cref != null) { ruby_cref = saved_cref; } return result; case NODE_OP_ASGN1: // TMP_PROTECT; recv = eval(self, node.nd_recv()); NODE rval = node.nd_args().nd_head(); args = setupArgs(self, node.nd_args().nd_next()); ArrayList argsList = new ArrayList(Arrays.asList(args)); argsList.remove(args.length - 1); RubyBoolean val = (RubyBoolean)recv.funcall(getRuby().intern("[]"), (RubyObject[])argsList.toArray(new RubyObject[argsList.size()])); switch (node.nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = (RubyBoolean)eval(self, rval); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = (RubyBoolean)eval(self, rval); break; default: val = (RubyBoolean)val.funcall((RubyId)node.nd_mid(), eval(self, rval)); } args[args.length - 1] = val; return recv.funcall(getRuby().intern("[]="), args); case NODE_OP_ASGN2: ID id = node.nd_next().nd_vid(); recv = eval(self, node.nd_recv()); val = (RubyBoolean)recv.funcall((RubyId)id, (RubyObject[])null); switch (node.nd_next().nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = (RubyBoolean)eval(self, node.nd_value()); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = (RubyBoolean)eval(self, node.nd_value()); break; default: val = (RubyBoolean)val.funcall((RubyId)node.nd_mid(), eval(self, node.nd_value())); } // HACK +++ val = (RubyBoolean)recv.funcall((RubyId)node.nd_next().nd_aid(), val); // HACK --- return val; case NODE_OP_ASGN_AND: cond = (RubyBoolean)eval(self, node.nd_head()); if (cond.isFalse()) { return cond; } node = node.nd_value(); break; case NODE_OP_ASGN_OR: cond = (RubyBoolean)eval(self, node.nd_head()); if ((node.nd_aid() != null && !self.isInstanceVarDefined((RubyId)node.nd_aid())) || cond.isFalse()) { node = node.nd_value(); break; } return cond; case NODE_MASGN: return massign(self, node, eval(self, node.nd_value()), false); case NODE_LASGN: // if (ruby.ruby_scope.local_vars == null) { // rb_bug("unexpected local variable assignment"); // } result = eval(self, node.nd_value()); getRuby().rubyScope.setLocalVars(node.nd_cnt(), result); return result; case NODE_DASGN: result = eval(self, node.nd_value()); RubyVarmap.assign(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_DASGN_CURR: result = eval(self, node.nd_value()); RubyVarmap.assignCurrent(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_GASGN: result = eval(self, node.nd_value()); ((RubyGlobalEntry)node.nd_entry()).set(result); return result; case NODE_IASGN: result = eval(self, node.nd_value()); self.setInstanceVar((RubyId)node.nd_vid(), result); return result; case NODE_CDECL: if (ruby_class == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby_class.setConstant((RubyId)node.nd_vid(), result); return result; case NODE_CVDECL: if (ruby_cbase == null) { throw new RubyTypeException("no class/module to define class variable"); } result = eval(self, node.nd_value()); if (ruby_cbase.isSingleton()) { ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().declareClassVar((RubyId)node.nd_vid(), result); return result; } ruby_cbase.declareClassVar((RubyId)node.nd_vid(), result); return result; case NODE_CVASGN: result = eval(self, node.nd_value()); self.getClassVarSingleton().setClassVar((RubyId)node.nd_vid(), result); return result; case NODE_LVAR: //if (getRuby().ruby_scope.local_vars == null) { // rb_bug("unexpected local variable"); // } return (RubyObject)getRuby().rubyScope.getLocalVars(node.nd_cnt()); case NODE_DVAR: return getDynamicVars().getRef((RubyId)node.nd_vid()); case NODE_GVAR: return ((RubyGlobalEntry)node.nd_entry()).get(); case NODE_IVAR: return self.getInstanceVar((RubyId)node.nd_vid()); case NODE_CONST: return getConstant((NODE)rubyFrame.getCbase(), (RubyId)node.nd_vid(), self); case NODE_CVAR: /* normal method */ if (ruby_cbase == null) { return self.getRubyClass().getClassVar((RubyId)node.nd_vid()); } if (!ruby_cbase.isSingleton()) { return ruby_cbase.getClassVar((RubyId)node.nd_vid()); } return ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_CVAR2: /* singleton method */ return self.getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_BLOCK_ARG: if (ruby.rubyScope.getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); // Create Proc object ruby.rubyScope.setLocalVars(node.nd_cnt(), result); return result; } else { return getRuby().getNil(); } case NODE_COLON2: value = eval(self, node.nd_head()); if (value instanceof RubyModule) { return ((RubyModule)value).getConstant((RubyId)node.nd_mid()); } else { return value.funcall((RubyId)node.nd_mid()); } case NODE_COLON3: return getRuby().getObjectClass().getConstant((RubyId)node.nd_mid()); case NODE_NTH_REF: // return rom.rb_reg_nth_match(node.nd_nth(), MATCH_DATA); return null; case NODE_BACK_REF: /*switch ((char)node.nd_nth()) { case '&': return rom.rb_reg_last_match(MATCH_DATA); case '`': return rom.rb_reg_match_pre(MATCH_DATA); case '\'': return rom.rb_reg_match_post(MATCH_DATA); case '+': return rom.rb_reg_match_last(MATCH_DATA); default: rom.rb_bug("unexpected back-ref"); }*/ case NODE_HASH: RubyHash hash = RubyHash.m_newHash(ruby); NODE list = node.nd_head(); while(list != null) { RubyObject key = eval(self, list.nd_head()); list = list.nd_next(); if (list == null) { // HACK +++ throw new RubyArgumentException("odd number list for Hash"); // HACK --- } value = eval(self, list.nd_head()); hash.m_aset(key, value); list = list.nd_next(); } return hash; case NODE_ZARRAY: /* zero length list */ return RubyArray.m_newArray(getRuby()); case NODE_ARRAY: ArrayList ary = new ArrayList(node.nd_alen()); for (; node != null ; node = node.nd_next()) { ary.add(eval(self, node.nd_head())); } return RubyArray.m_newArray(getRuby(), ary); case NODE_STR: return ((RubyObject)node.nd_lit()).m_to_s(); case NODE_DSTR: case NODE_DXSTR: case NODE_DREGX: case NODE_DREGX_ONCE:/* NODE list = node.nd_next(); RubyString str = RubyString.m_newString(getRuby(), (RubyObject)node.nd_lit()); RubyString str2; while (list != null) { if (list.nd_head() != null) { switch (list.nd_head().nd_type()) { case NODE_STR: str2 = (RubyString)list.nd_head().nd_lit(); break; case NODE_EVSTR: result = ruby_errinfo; ruby_errinfo = Qnil; ruby_sourceline = nd_line(node); ruby_in_eval++; list.nd_head(compile(list.nd_head().nd_lit(), ruby_sourcefile,ruby_sourceline)); ruby_eval_tree = 0; ruby_in_eval--; if (ruby_nerrs > 0) { compile_error("string expansion"); } if (!NIL_P(result)) ruby_errinfo = result; /* fall through *//* default: str2 = (RubyString)rom.rb_obj_as_string(eval(list.nd_head())); break; } str.append(str2); str.infectObject(str2); } list = list.nd_next(); } switch (node.nd_type()) { case NODE_DREGX: return rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); case NODE_DREGX_ONCE: /* regexp expand once *//* VALUE result = rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); node.nd_set_type(NODE_LIT); node.nd_lit(result); return result; case NODE_DXSTR: return rom.rb_funcall(this, '`', 1, str); default: return str; }*/ return null; case NODE_XSTR: return self.funcall(getRuby().intern("`"), (RubyObject)node.nd_lit()); case NODE_LIT: return (RubyObject)node.nd_lit(); case NODE_ATTRSET: if (rubyFrame.getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); case NODE_DEFN: if (node.nd_defn() != null) { int noex; if (ruby_class == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // rom.rb_warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // rom.rb_warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); NODE body = ruby_class.searchMethod((RubyId)node.nd_mid()); RubyObject origin = ruby_class.getMethodOrigin((RubyId)node.nd_mid()); if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } } if (isScope(SCOPE_PRIVATE) || node.nd_mid().equals(ruby.intern("initialize"))) { noex = NOEX_PRIVATE; } else if (isScope(SCOPE_PROTECTED)) { noex = NOEX_PROTECTED; } else if (ruby_class == getRuby().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby_class && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby_class.addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (scope_vmode == SCOPE_MODFUNC) { ruby_class.getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby_class.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby_class.isSingleton()) { ruby_class.getInstanceVar("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); } } return getRuby().getNil(); case NODE_DEFS: if (node.nd_defn() != null) { recv = eval(self, node.nd_recv()); if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { throw new RubySecurityException("Insecure; can't define singleton method"); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (recv.isFrozen()) { throw new RubyFrozenException("object"); } rubyClass = recv.getSingletonClass(); NODE body = (NODE)rubyClass.getMethods().get((RubyId)node.nd_mid()); if (body != null) { if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("redefining method prohibited"); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); rubyClass.addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC | (body != null ? body.nd_noex() & NOEX_UNDEF : 0)); // rb_clear_cache_by_id(node.nd_mid()); recv.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } return getRuby().getNil(); case NODE_UNDEF: if (ruby_class == null) { throw new RubyTypeException("no class to undef method"); } ruby_class.undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby_class == null) { throw new RubyTypeException("no class to make alias"); } ruby_class.aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); return getRuby().getNil(); case NODE_VALIAS: RubyGlobalEntry.getGlobalEntry((RubyId)node.nd_old()).alias((RubyId)node.nd_new()); return getRuby().getNil(); case NODE_CLASS: RubyModule superClass; if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } if (node.nd_super() != null) { superClass = getSuperClass(self, node.nd_super()); } else { superClass = null; } rubyClass = null; // if ((ruby_class == getRuby().getObjectClass()) && rb_autoload_defined(node.nd_cname())) { // rb_autoload_load(node.nd_cname()); // } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby_class.getConstant((RubyId)node.nd_cname()); } if (rubyClass != null) { if (!rubyClass.isClass()) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a class"); } if (superClass != null) { RubyModule tmp = rubyClass.getSuperClass(); if (tmp.isSingleton()) { tmp = tmp.getSuperClass(); } while (tmp.isIncluded()) { tmp = tmp.getSuperClass(); } if (tmp != superClass) { superClass = tmp; //goto override_class; if (superClass == null) { superClass = getRuby().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); // end goto } } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending class prohibited"); } // rb_clear_cache(); } else { //override_class: if (superClass == null) { superClass = getRuby().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_MODULE: if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby_class == getRuby().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby_class.getConstant((RubyId)node.nd_cname()); } if (module != null) { if (!(module instanceof RubyModule)) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a module"); } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending module prohibited"); } } else { module = getRuby().defineModuleId((RubyId)node.nd_cname()); ruby_class.setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { module.getSingletonClass().includeModule(ruby_wrapper); module.includeModule(ruby_wrapper); } return setupModule(module, node.nd_body()); case NODE_SCLASS: rubyClass = (RubyClass)eval(self, node.nd_recv()); if (rubyClass.isSpecialConst()) { throw new RubyTypeException("no virtual class for " + rubyClass.getRubyClass().toName()); } if (getRuby().getSecurityLevel() >= 4 && !rubyClass.isTaint()) { throw new RubySecurityException("Insecure: can't extend object"); } if (rubyClass.getRubyClass().isSingleton()) { // rb_clear_cache(); } rubyClass = rubyClass.getSingletonClass(); if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_DEFINED: // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; // } case NODE_NEWLINE: // ruby_sourcefile = node.nd_file; // ruby_sourceline = node.nd_nth(); // if (trace_func) { // call_trace_func("line", ruby_sourcefile, ruby_sourceline, self, // ruby_frame.last_func(), // ruby_frame.last_class()); // } node = node.nd_next(); break; default: // rom.rb_bug("unknown node type %d", nd_type(node)); } } }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/f220dcff8a7e427e32a7f1f1bc78f38876b83620/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 5507, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 5507, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 3...
public Step createNameStep(int axis, String prefix, String localName) throws JaxenException { IterableAxis iter = getIterableAxis( axis ); return new DefaultNameStep( iter, prefix, localName, createPredicateSet()); }
47970 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47970/a606244b1948c4585839126f02bfc0d4958ec2f1/DefaultXPathFactory.java/buggy/src/java/main/org/jaxen/expr/DefaultXPathFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 4160, 2640, 461, 4160, 12, 474, 4890, 16, 780, 3239, 16, 780, 3729, 461, 13, 15069, 46, 651, 275, 503, 95, 13668, 6558, 2165, 33, 588, 13668, 6558, 12, 4890, 1769, 2463, 2704, 1868, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 4160, 2640, 461, 4160, 12, 474, 4890, 16, 780, 3239, 16, 780, 3729, 461, 13, 15069, 46, 651, 275, 503, 95, 13668, 6558, 2165, 33, 588, 13668, 6558, 12, 4890, 1769, 2463, 2704, 1868, 46...
Group grpTicks = new Group( cmpContent, SWT.NONE );
if ( bTicksEnabled )
private void placeComponents( ) { // Layout for entire composite FillLayout flMain = new FillLayout( ); flMain.marginHeight = 4; flMain.marginWidth = 2; // Layout for content composite GridLayout glContent = new GridLayout( ); glContent.verticalSpacing = 5; glContent.horizontalSpacing = 5; glContent.marginHeight = 0; glContent.marginWidth = 0; glContent.numColumns = 2; // Layout for Ticks group GridLayout glTicks = new GridLayout( ); glTicks.marginHeight = 4; glTicks.marginWidth = 4; glTicks.verticalSpacing = 2; glTicks.horizontalSpacing = 5; glTicks.numColumns = 2; this.setLayout( flMain ); // Content Composite cmpContent = new Composite( this, SWT.NONE ); cmpContent.setLayout( glContent ); // Grid Lines group if ( bLineGroupEnabled ) { // Layout for Grid Lines group FillLayout flLines = new FillLayout( ); flLines.marginHeight = 1; flLines.marginWidth = 1; cmpLines = new Composite( cmpContent, SWT.NONE ); GridData gdCMPLines = new GridData( GridData.FILL_BOTH ); gdCMPLines.horizontalSpan = 2; cmpLines.setLayoutData( gdCMPLines ); cmpLines.setLayout( flLines ); // Line Attributes for Grid Lines liacLines = new LineAttributesComposite( cmpLines, SWT.NONE, context, grid.getLineAttributes( ), true, true, true ); liacLines.addListener( this ); } // Ticks group (unsupported in 3D) boolean bTicksEnabled = this.context.getModel( ) .getDimension( ) .getValue( ) != ChartDimension.THREE_DIMENSIONAL; Group grpTicks = new Group( cmpContent, SWT.NONE ); { GridData gdGRPTicks = new GridData( GridData.FILL_BOTH ); gdGRPTicks.horizontalSpan = 2; grpTicks.setLayoutData( gdGRPTicks ); grpTicks.setLayout( glTicks ); grpTicks.setText( Messages.getString( "GridAttributesComposite.Lbl.Ticks" ) ); //$NON-NLS-1$ grpTicks.setEnabled( bTicksEnabled ); } // Line Attributes for Ticks liacTicks = new LineAttributesComposite( grpTicks, SWT.NONE, context, grid.getTickAttributes( ), false, false, true ); { GridData gdLIACTicks = new GridData( GridData.FILL_HORIZONTAL ); gdLIACTicks.horizontalSpan = 2; liacTicks.setLayoutData( gdLIACTicks ); liacTicks.addListener( this ); liacTicks.setEnabled( bTicksEnabled ); } // Tick Styles lblStyle = new Label( grpTicks, SWT.NONE ); { GridData gdLBLStyle = new GridData( ); gdLBLStyle.horizontalIndent = 4; lblStyle.setLayoutData( gdLBLStyle ); lblStyle.setText( Messages.getString( "GridAttributesComposite.Lbl.Style" ) ); //$NON-NLS-1$ lblStyle.setEnabled( bTicksEnabled && grid.getTickAttributes( ).isVisible( ) ); } cmbTickStyle = new Combo( grpTicks, SWT.DROP_DOWN | SWT.READ_ONLY ); { GridData gdCMBTickStyle = new GridData( GridData.FILL_HORIZONTAL ); cmbTickStyle.setLayoutData( gdCMBTickStyle ); cmbTickStyle.addSelectionListener( this ); cmbTickStyle.setEnabled( bTicksEnabled && grid.getTickAttributes( ).isVisible( ) ); } populateLists( ); setDefaultSelections( ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4bcf1aebed92b2c700d3ad7f8e0666f7fe9675a2/GridAttributesComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/GridAttributesComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3166, 7171, 12, 262, 202, 95, 202, 202, 759, 9995, 364, 7278, 9635, 202, 202, 8026, 3744, 1183, 6376, 273, 394, 14192, 3744, 12, 11272, 202, 202, 2242, 6376, 18, 10107, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3166, 7171, 12, 262, 202, 95, 202, 202, 759, 9995, 364, 7278, 9635, 202, 202, 8026, 3744, 1183, 6376, 273, 394, 14192, 3744, 12, 11272, 202, 202, 2242, 6376, 18, 10107, ...
String action = req.getMethod() ; if(action.equals("POST")) this.doPost(req,res) ; else this.doPost(req,res) ; }
String action = req.getMethod() ; if(action.equals("POST")) this.doPost(req,res) ; else this.doPost(req,res) ; }
public void service (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String action = req.getMethod() ; // log("Action:" + action) ; if(action.equals("POST")) this.doPost(req,res) ; else this.doPost(req,res) ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ChatHelp.java/clean/servlets/chat/ChatHelp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1156, 261, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 780, 1301, 273, 1111, 18, 588, 1305, 1435, 274, 202, 202, 759, 613, 2932...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1156, 261, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 780, 1301, 273, 1111, 18, 588, 1305, 1435, 274, 202, 202, 759, 613, 2932...
{ LegendItemType result = LegendItemType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); return result; }
return createLegendItemTypeFromString( eDataType, initialValue );
public Object createFromString( EDataType eDataType, String initialValue ) { switch ( eDataType.getClassifierID( ) ) { case AttributePackage.ACTION_TYPE : { ActionType result = ActionType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.ANCHOR : { Anchor result = Anchor.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.ANGLE_TYPE : { AngleType result = AngleType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.AXIS_TYPE : { AxisType result = AxisType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.CHART_DIMENSION : { ChartDimension result = ChartDimension.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.CHART_TYPE : { ChartType result = ChartType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DATA_POINT_COMPONENT_TYPE : { DataPointComponentType result = DataPointComponentType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DATA_TYPE : { DataType result = DataType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DATE_FORMAT_DETAIL : { DateFormatDetail result = DateFormatDetail.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DATE_FORMAT_TYPE : { DateFormatType result = DateFormatType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DIRECTION : { Direction result = Direction.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.GROUPING_UNIT_TYPE : { GroupingUnitType result = GroupingUnitType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.HORIZONTAL_ALIGNMENT : { HorizontalAlignment result = HorizontalAlignment.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.INTERSECTION_TYPE : { IntersectionType result = IntersectionType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LEADER_LINE_STYLE : { LeaderLineStyle result = LeaderLineStyle.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LEGEND_BEHAVIOR_TYPE : { LegendBehaviorType result = LegendBehaviorType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LEGEND_ITEM_TYPE : { LegendItemType result = LegendItemType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LINE_DECORATOR : { LineDecorator result = LineDecorator.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LINE_STYLE : { LineStyle result = LineStyle.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.MARKER_TYPE : { MarkerType result = MarkerType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.ORIENTATION : { Orientation result = Orientation.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.POSITION : { Position result = Position.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.RISER_TYPE : { RiserType result = RiserType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.RULE_TYPE : { RuleType result = RuleType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.SCALE_UNIT_TYPE : { ScaleUnitType result = ScaleUnitType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.SORT_OPTION : { SortOption result = SortOption.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.STRETCH : { Stretch result = Stretch.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.STYLED_COMPONENT : { StyledComponent result = StyledComponent.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.TICK_STYLE : { TickStyle result = TickStyle.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.TRIGGER_CONDITION : { TriggerCondition result = TriggerCondition.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.TRIGGER_FLOW : { TriggerFlow result = TriggerFlow.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.UNITS_OF_MEASUREMENT : { UnitsOfMeasurement result = UnitsOfMeasurement.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.VERTICAL_ALIGNMENT : { VerticalAlignment result = VerticalAlignment.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.ACTION_TYPE_OBJECT : return createActionTypeObjectFromString( eDataType, initialValue ); case AttributePackage.ANCHOR_OBJECT : return createAnchorObjectFromString( eDataType, initialValue ); case AttributePackage.ANGLE_TYPE_OBJECT : return createAngleTypeObjectFromString( eDataType, initialValue ); case AttributePackage.AXIS_TYPE_OBJECT : return createAxisTypeObjectFromString( eDataType, initialValue ); case AttributePackage.CHART_DIMENSION_OBJECT : return createChartDimensionObjectFromString( eDataType, initialValue ); case AttributePackage.CHART_TYPE_OBJECT : return createChartTypeObjectFromString( eDataType, initialValue ); case AttributePackage.DATA_POINT_COMPONENT_TYPE_OBJECT : return createDataPointComponentTypeObjectFromString( eDataType, initialValue ); case AttributePackage.DATA_TYPE_OBJECT : return createDataTypeObjectFromString( eDataType, initialValue ); case AttributePackage.DATE_FORMAT_DETAIL_OBJECT : return createDateFormatDetailObjectFromString( eDataType, initialValue ); case AttributePackage.DATE_FORMAT_TYPE_OBJECT : return createDateFormatTypeObjectFromString( eDataType, initialValue ); case AttributePackage.DIRECTION_OBJECT : return createDirectionObjectFromString( eDataType, initialValue ); case AttributePackage.GROUPING_UNIT_TYPE_OBJECT : return createGroupingUnitTypeObjectFromString( eDataType, initialValue ); case AttributePackage.HORIZONTAL_ALIGNMENT_OBJECT : return createHorizontalAlignmentObjectFromString( eDataType, initialValue ); case AttributePackage.ID : return createIDFromString( eDataType, initialValue ); case AttributePackage.INTERSECTION_TYPE_OBJECT : return createIntersectionTypeObjectFromString( eDataType, initialValue ); case AttributePackage.LEADER_LINE_STYLE_OBJECT : return createLeaderLineStyleObjectFromString( eDataType, initialValue ); case AttributePackage.LEGEND_BEHAVIOR_TYPE_OBJECT : return createLegendBehaviorTypeObjectFromString( eDataType, initialValue ); case AttributePackage.LEGEND_ITEM_TYPE_OBJECT : return createLegendItemTypeObjectFromString( eDataType, initialValue ); case AttributePackage.LINE_DECORATOR_OBJECT : return createLineDecoratorObjectFromString( eDataType, initialValue ); case AttributePackage.LINE_STYLE_OBJECT : return createLineStyleObjectFromString( eDataType, initialValue ); case AttributePackage.MARKER_TYPE_OBJECT : return createMarkerTypeObjectFromString( eDataType, initialValue ); case AttributePackage.ORIENTATION_OBJECT : return createOrientationObjectFromString( eDataType, initialValue ); case AttributePackage.PERCENTAGE : return createPercentageFromString( eDataType, initialValue ); case AttributePackage.PERCENTAGE_OBJECT : return createPercentageObjectFromString( eDataType, initialValue ); case AttributePackage.POSITION_OBJECT : return createPositionObjectFromString( eDataType, initialValue ); case AttributePackage.RGB_VALUE : return createRGBValueFromString( eDataType, initialValue ); case AttributePackage.RGB_VALUE_OBJECT : return createRGBValueObjectFromString( eDataType, initialValue ); case AttributePackage.RISER_TYPE_OBJECT : return createRiserTypeObjectFromString( eDataType, initialValue ); case AttributePackage.RULE_TYPE_OBJECT : return createRuleTypeObjectFromString( eDataType, initialValue ); case AttributePackage.SCALE_UNIT_TYPE_OBJECT : return createScaleUnitTypeObjectFromString( eDataType, initialValue ); case AttributePackage.SORT_OPTION_OBJECT : return createSortOptionObjectFromString( eDataType, initialValue ); case AttributePackage.STRETCH_OBJECT : return createStretchObjectFromString( eDataType, initialValue ); case AttributePackage.STYLED_COMPONENT_OBJECT : return createStyledComponentObjectFromString( eDataType, initialValue ); case AttributePackage.TICK_STYLE_OBJECT : return createTickStyleObjectFromString( eDataType, initialValue ); case AttributePackage.TRIGGER_CONDITION_OBJECT : return createTriggerConditionObjectFromString( eDataType, initialValue ); case AttributePackage.TRIGGER_FLOW_OBJECT : return createTriggerFlowObjectFromString( eDataType, initialValue ); case AttributePackage.UNITS_OF_MEASUREMENT_OBJECT : return createUnitsOfMeasurementObjectFromString( eDataType, initialValue ); case AttributePackage.VERTICAL_ALIGNMENT_OBJECT : return createVerticalAlignmentObjectFromString( eDataType, initialValue ); default : throw new IllegalArgumentException( "The datatype '" + eDataType.getName( ) + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$ } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/AttributeFactoryImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributeFactoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 752, 9193, 12, 20807, 11479, 16, 514, 11837, 262, 202, 95, 202, 202, 9610, 261, 11479, 18, 588, 13860, 734, 12, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 2261, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 752, 9193, 12, 20807, 11479, 16, 514, 11837, 262, 202, 95, 202, 202, 9610, 261, 11479, 18, 588, 13860, 734, 12, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 2261, 18, ...
performConstraintsTest(TEST_UNIQUE_INDEX_MODEL, true);
if (getPlatformInfo().isIndicesSupported()) { performConstraintsTest(TEST_UNIQUE_INDEX_MODEL, true); }
public void testUniqueIndex() { performConstraintsTest(TEST_UNIQUE_INDEX_MODEL, true); }
3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/dbff6cd85d996d384f554939c30209eb50b80f5a/TestConstraints.java/buggy/src/test/org/apache/ddlutils/io/TestConstraints.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6303, 1016, 1435, 565, 288, 3639, 309, 261, 588, 8201, 966, 7675, 291, 8776, 7223, 10756, 288, 3073, 4878, 4709, 12, 16961, 67, 16879, 67, 9199, 67, 17391, 16, 638, 1769,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6303, 1016, 1435, 565, 288, 3639, 309, 261, 588, 8201, 966, 7675, 291, 8776, 7223, 10756, 288, 3073, 4878, 4709, 12, 16961, 67, 16879, 67, 9199, 67, 17391, 16, 638, 1769,...
while(!filter.matched()) {
boolean fmatched = false; while(!(fmatched = filter.matched())) {
public Message waitFor(MessageFilter filter) { long startTime = System.currentTimeMillis(); Message ret = null; // Check to see whether the filter matches any of the recently _unclaimed messages synchronized (_filters) { Logger.debug(this, "Checking _unclaimed"); for (ListIterator i = _unclaimed.listIterator(); i.hasNext();) { Message m = (Message) i.next(); if (filter.match(m)) { i.remove(); ret = m; Logger.debug(this, "Matching from _unclaimed"); } } Logger.debug(this, "Not in _unclaimed"); if (ret == null) { // Insert filter into filter list in order of timeout ListIterator i = _filters.listIterator(); while (true) { if (!i.hasNext()) { i.add(filter); Logger.debug(this, "Added at end"); break; } MessageFilter mf = (MessageFilter) i.next(); if (mf.getTimeout() > filter.getTimeout()) { i.previous(); i.add(filter); Logger.debug(this, "Added in middle - mf timeout="+mf.getTimeout()+" - my timeout="+filter.getTimeout()); break; } } } } // Unlock to wait on filter // Waiting on the filter won't release the outer lock // So we have to release it here if(ret == null) { Logger.debug(this, "Waiting..."); synchronized (filter) { try { // Precaution against filter getting matched between being added to _filters and // here - bug discovered by Mason while(!filter.matched()) { long wait = filter.getTimeout()-System.currentTimeMillis(); if(wait > 0) filter.wait(wait); else break; } } catch (InterruptedException e) { } ret = filter.getMessage(); filter.clearMatched(); } Logger.debug(this, "Returning "+ret+" from "+filter); } // Probably get rid...// if (Dijjer.getDijjer().getDumpMessageWaitTimes() != null) {// Dijjer.getDijjer().getDumpMessageWaitTimes().println(filter.toString() + "\t" + filter.getInitialTimeout() + "\t"// + (System.currentTimeMillis() - startTime));// Dijjer.getDijjer().getDumpMessageWaitTimes().flush();// } long endTime = System.currentTimeMillis(); Logger.debug(this, "Returning in "+(endTime-startTime)+"ms"); return ret; }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/67ffc74c653c146c3327643dba419ef696af844a/UdpSocketManager.java/clean/src/freenet/io/comm/UdpSocketManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2350, 10712, 12, 1079, 1586, 1034, 13, 288, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 1079, 325, 273, 446, 31, 202, 202, 759, 2073, 358, 2621, 2856, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2350, 10712, 12, 1079, 1586, 1034, 13, 288, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 1079, 325, 273, 446, 31, 202, 202, 759, 2073, 358, 2621, 2856, 32...
System.out.println("NativeEventThread.delete: interrupted while waiting\n\t for NativeEventThread to notify() after destruction of initContext: " + e +
System.out.println("NativeEventThread.delete: interrupted while waiting\n\t for NativeEventThread to notify() after destruction of initContext: " + e +
public void delete(){ // setting this to null causes the run thread to exit synchronized(this) { // this has to be inside the synchronized block! browserControlCanvas = null; synchronized (this) { try { wait(); } catch (Exception e) { System.out.println("NativeEventThread.delete: interrupted while waiting\n\t for NativeEventThread to notify() after destruction of initContext: " + e + " " + e.getMessage()); } } } // PENDING(ashuk): do any necessary cleanup. listenersToAdd = null; doRemoveListeners(); listenersToRemove = null; nativeWebShell = -1; windowControl = null; browserControl = null; tempEnum = null;}
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/c51f266635955ea9a40fa057209a78cf7b0fb900/NativeEventThread.java/clean/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1430, 1435, 95, 565, 368, 3637, 333, 358, 446, 14119, 326, 1086, 2650, 358, 2427, 565, 3852, 12, 2211, 13, 288, 3639, 368, 333, 711, 358, 506, 4832, 326, 3852, 1203, 5, 3639, 4748...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1430, 1435, 95, 565, 368, 3637, 333, 358, 446, 14119, 326, 1086, 2650, 358, 2427, 565, 3852, 12, 2211, 13, 288, 3639, 368, 333, 711, 358, 506, 4832, 326, 3852, 1203, 5, 3639, 4748...
/*
public CmsStaticExport(CmsObject cms, Vector startpoints, boolean doTheExport, Vector projectResources, CmsPublishedResources changedResources) throws CmsException{ m_cms = cms; m_startpoints = startpoints; m_exportPath = cms.getStaticExportPath(); c_perlUtil = new Perl5Util(); if(changedResources != null){ m_afterPublish = true; } if(!doTheExport){ // this is just to generate the dynamic rulesets if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_STATICEXPORT, "[CmsStaticExport] Generating the dynamic rulesets."); } createDynamicRules(); }else{ if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_STATICEXPORT, "[CmsStaticExport] Starting the static export."); } createDynamicRules(); checkExportPath(); Vector exportLinks = null; if(m_afterPublish){ exportLinks = getChangedLinks(changedResources); }else{ exportLinks = getStartLinks(); } // we only need the names of the projectResources if(projectResources != null){ m_projectResources = new Vector(projectResources.size()); for(int i=0; i<projectResources.size(); i++){ m_projectResources.addElement( ((CmsResource)projectResources.elementAt(i)).getAbsolutePath()); } } if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_STATICEXPORT, "[CmsStaticExport] got "+exportLinks.size()+" links to start with."); } for(int i=0; i < exportLinks.size(); i++){ String aktLink = (String)exportLinks.elementAt(i); exportLink(aktLink, exportLinks); } } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a04c74323cbbda5bea1280af65bad0745c186ce3/CmsStaticExport.java/buggy/src/com/opencms/file/CmsStaticExport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1748, 1748, 1748, 1748, 1071, 20308, 2149, 5788, 6144, 12, 4747, 921, 20308, 6166, 16, 20308, 5589, 20308, 787, 4139, 16, 20308, 1250, 20308, 741, 1986, 6144, 16, 20308, 1748, 1748, 1748, 1748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1748, 1748, 1748, 1748, 1071, 20308, 2149, 5788, 6144, 12, 4747, 921, 20308, 6166, 16, 20308, 5589, 20308, 787, 4139, 16, 20308, 1250, 20308, 741, 1986, 6144, 16, 20308, 1748, 1748, 1748, 1748, ...
File localFile = file.getLocation().toFile(); return Long.toString(localFile.length());
File localFile = getFile(file); if(localFile == null) return FILE_NOT_FOUND; else return Long.toString(localFile.length());
private String getSizeString(IFile file) { if (!file.isLocal(IResource.DEPTH_ZERO)) return NOT_LOCAL_TEXT; else { File localFile = file.getLocation().toFile(); return Long.toString(localFile.length()); }}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4ed92a77a2f9e955e930d0db4eea877e5a7f1686/FilePropertySource.java/clean/bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/views/properties/FilePropertySource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 514, 9950, 780, 12, 45, 812, 585, 13, 288, 202, 430, 16051, 768, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 202, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 12107, 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, 3238, 514, 9950, 780, 12, 45, 812, 585, 13, 288, 202, 430, 16051, 768, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 202, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 12107, 2...
if (!file.exists()) { locationString += " " + FILE_NOT_EXIST_TEXT; } return locationString;
if (!file.exists()) { locationString += " " + FILE_NOT_EXIST_TEXT;
private String getResolvedLocationText(IResource resource) { if (!resource.isLocal(IResource.DEPTH_ZERO)) { return NOT_LOCAL_TEXT; } IPath location = resource.getLocation(); if (location == null) { if (resource.isLinked()) { return UNDEFINED_PATH_VARIABLE; } return FILE_NOT_FOUND; } else { String locationString = location.toOSString(); File file = location.toFile(); if (!file.exists()) { locationString += " " + FILE_NOT_EXIST_TEXT; //$NON-NLS-1$ } return locationString; } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a1ca365a318b96e23065f4e725ff1528454d7642/ResourcePropertySource.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/ResourcePropertySource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 12793, 2735, 1528, 12, 45, 1420, 1058, 13, 288, 3639, 309, 16051, 3146, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 288, 1082, 202, 2463, 4269, 67, 14922, 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, 377, 3238, 514, 336, 12793, 2735, 1528, 12, 45, 1420, 1058, 13, 288, 3639, 309, 16051, 3146, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 288, 1082, 202, 2463, 4269, 67, 14922, 6...
public void setPOA(POA poa) {
public void setPOA(POA poa) {
public void setPOA(POA poa) { poa_ = poa; }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b914fd6ef0aa122dbdecdcbeef832bfc41032c72/AbstractAdmin.java/buggy/src/org/jacorb/notification/servant/AbstractAdmin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 2419, 37, 12, 2419, 37, 8275, 69, 13, 288, 3639, 8275, 69, 67, 273, 8275, 69, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 2419, 37, 12, 2419, 37, 8275, 69, 13, 288, 3639, 8275, 69, 67, 273, 8275, 69, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public FirefoxCustomProfileLauncher(int port) {
public FirefoxCustomProfileLauncher() {
public FirefoxCustomProfileLauncher(int port) { super(findBrowserLaunchLocation()); this.port = port; }
4718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4718/13b471c65563ed945c399b0a68932cb37a9c3135/FirefoxCustomProfileLauncher.java/buggy/server/src/main/java/org/openqa/selenium/server/browserlaunchers/FirefoxCustomProfileLauncher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22950, 3802, 4029, 28820, 1435, 288, 3639, 2240, 12, 4720, 9132, 9569, 2735, 10663, 3639, 333, 18, 655, 273, 1756, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22950, 3802, 4029, 28820, 1435, 288, 3639, 2240, 12, 4720, 9132, 9569, 2735, 10663, 3639, 333, 18, 655, 273, 1756, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...