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 |
|---|---|---|---|---|---|---|
this(); update(vars); | super(); | public IpAddrTableEntry(SnmpVarBind[] vars) { this(); update(vars); } | 48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/b3612967cb053036bdb295ee74cb2e369c6ca18d/IpAddrTableEntry.java/buggy/src/services/org/opennms/netmgt/capsd/snmp/IpAddrTableEntry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14709,
3178,
1388,
1622,
12,
10461,
1291,
1537,
3357,
8526,
4153,
13,
202,
95,
202,
202,
2211,
5621,
202,
202,
2725,
12,
4699,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14709,
3178,
1388,
1622,
12,
10461,
1291,
1537,
3357,
8526,
4153,
13,
202,
95,
202,
202,
2211,
5621,
202,
202,
2725,
12,
4699,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
... |
int currentSize = Geometry.getDimension(currentPane.getBounds(), isVertical); | int currentSize = Geometry.getDimension(getBounds(), isVertical); | public float getCurrentRatio() { if (currentPane == null) { return 0.0f; } boolean isVertical = !Geometry.isHorizontal(side); Rectangle clientArea = clientComposite.getClientArea(); int clientSize = Geometry.getDimension(clientArea, isVertical); int currentSize = Geometry.getDimension(currentPane.getBounds(), isVertical); return (float)currentSize / (float)clientSize; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a98cad1adde6ab0253cd08ca00c5be95f5fb13a0/FastViewPane.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1431,
5175,
8541,
1435,
288,
202,
202,
430,
261,
2972,
8485,
422,
446,
13,
288,
1082,
202,
2463,
374,
18,
20,
74,
31,
202,
202,
97,
9506,
202,
6494,
353,
15704,
273,
401,
98... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1431,
5175,
8541,
1435,
288,
202,
202,
430,
261,
2972,
8485,
422,
446,
13,
288,
1082,
202,
2463,
374,
18,
20,
74,
31,
202,
202,
97,
9506,
202,
6494,
353,
15704,
273,
401,
98... |
if ((style & SWT.APPLICATION_MODAL | style & SWT.SYSTEM_MODAL | style & SWT.PRIMARY_MODAL) > 0) { defer[0] = true; | if ((style & modal) != 0) { schedule(LONG_OPERATION_MILLISECONDS); | private void scheduleProgressMonitorJob( final ProgressMonitorJobsDialog dialog, final boolean[] busy) { final boolean[] defer = new boolean[1]; defer[0] = false; final WorkbenchJob updateJob = new WorkbenchJob(ProgressMessages.getString("ProgressManager.openJobName")) {//$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { //If there is a modal shell open then wait Display currentDisplay = getDisplay(); if (currentDisplay == null || currentDisplay.isDisposed()) return Status.CANCEL_STATUS; Shell[] shells = currentDisplay.getShells(); for (int i = 0; i < shells.length; i++) { //Do not stop for shells that will not //block the user. if (shells[i].isVisible()) { int style = shells[i].getStyle(); if ((style & SWT.APPLICATION_MODAL | style & SWT.SYSTEM_MODAL | style & SWT.PRIMARY_MODAL) > 0) { defer[0] = true; return Status.CANCEL_STATUS; } } } busy[0] = false; dialog.open(); if (monitor.isCanceled()) return Status.CANCEL_STATUS; else return Status.OK_STATUS; } /* (non-Javadoc) * @see org.eclipse.ui.progress.WorkbenchJob#performDone(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void performDone(IJobChangeEvent event) { //If we are deferring try again. if (defer[0]) { defer[0] = false; schedule(LONG_OPERATION_MILLISECONDS); } } }; updateJob.schedule(LONG_OPERATION_MILLISECONDS); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e0ca3cd35ce03d54a636441b2cdd9e3502bb60a7/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4788,
5491,
7187,
2278,
12,
202,
202,
6385,
10980,
7187,
7276,
6353,
6176,
16,
202,
202,
6385,
1250,
8526,
21697,
13,
288,
202,
202,
6385,
1250,
8526,
2220,
273,
394,
1250... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4788,
5491,
7187,
2278,
12,
202,
202,
6385,
10980,
7187,
7276,
6353,
6176,
16,
202,
202,
6385,
1250,
8526,
21697,
13,
288,
202,
202,
6385,
1250,
8526,
2220,
273,
394,
1250... |
String[] files = new Glob(System.getProperty("user.dir"), pattern).getNames(); | String[] files = new Glob(NormalizedFile.getFileProperty("user.dir"), pattern).getNames(); | public static RubyArray glob(IRubyObject recv, RubyString pat) { String pattern = pat.toString(); String[] files = new Glob(System.getProperty("user.dir"), pattern).getNames(); return recv.getRuntime().newArray(JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/c506a9979e35512d57d5f29f0d18b3da14ef2919/RubyDir.java/buggy/src/org/jruby/RubyDir.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
1076,
4715,
12,
7937,
10340,
921,
10665,
16,
19817,
780,
9670,
13,
288,
3639,
514,
1936,
273,
9670,
18,
10492,
5621,
3639,
514,
8526,
1390,
273,
394,
18901,
12,
15577,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
1076,
4715,
12,
7937,
10340,
921,
10665,
16,
19817,
780,
9670,
13,
288,
3639,
514,
1936,
273,
9670,
18,
10492,
5621,
3639,
514,
8526,
1390,
273,
394,
18901,
12,
15577,
8... |
} else if(!sm.containsFig(underMouse)) { | } else if(!sm.containsFig(underMouse)) { | public void mousePressed(MouseEvent me) { if(me.isConsumed()) { //System.out.println("ModeSelect consumed"); return; } if(me.getModifiers() == InputEvent.BUTTON3_MASK) { _selectAnchor = new Point(me.getX(), me.getY()); //System.out.println("ModeSelect: from awt component " + Globals.curEditor().getJComponent()); return; } if(me.isAltDown()) { return; } int x = me.getX(); int y = me.getY(); _selectAnchor = new Point(x, y); _selectRect.setBounds(x, y, 0, 0); _toggleSelection = me.isControlDown(); SelectionManager sm = editor.getSelectionManager(); Rectangle hitRect = new Rectangle(x - 4, y - 4, 8, 8); /* Check if multiple things are selected and user clicked one of them. */ Fig underMouse = editor.hit(_selectAnchor); Rectangle smallHitRect = new Rectangle(x - 1, y - 1, 3, 3); if(underMouse instanceof FigGroup) { underMouse = ((FigGroup)underMouse).deepSelect(smallHitRect); } if(underMouse == null && !sm.hit(hitRect)) { return; } Handle h = new Handle(-1); sm.hitHandle(new Rectangle(x - 4, y - 4, 8, 8), h); if(h.index >= 0) { gotoModifyMode(me); me.consume(); return; } if(underMouse != null) { if(_toggleSelection) { sm.toggle(underMouse); } else if(!sm.containsFig(underMouse)) { sm.select(underMouse); } } if(sm.hit(hitRect)) { //System.out.println("gotoModifyMode"); gotoModifyMode(me); } me.consume(); } | 1732 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1732/c8d8a2522f9b4372bce6903200fed4c04e3517f4/ModeSelect.java/clean/src/org/tigris/gef/base/ModeSelect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
1791,
13,
288,
3639,
309,
12,
3501,
18,
291,
20554,
10756,
288,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
2309,
3391,
12393,
8863,
5411,
327,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
1791,
13,
288,
3639,
309,
12,
3501,
18,
291,
20554,
10756,
288,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
2309,
3391,
12393,
8863,
5411,
327,
31,
... |
if (jj_scan_token(15)) { jj_scanpos = xsp; | final private boolean jj_3R_18() { Token xsp; xsp = jj_scanpos; if (jj_scan_token(15)) { jj_scanpos = xsp; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_scan_token(0)) return true; } } return false; } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/0faf643f0efa6f2ad848fed686443d8e4c4ad978/NutchAnalysis.java/buggy/src/java/org/apache/nutch/analysis/NutchAnalysis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2643,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3600,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2643,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3600,
... | |
FormattedTextFieldMacFix.apply(regexField); | public JComponent createOptionsPanel() { final GridBagLayout layout = new GridBagLayout(); final JPanel panel = new JPanel(layout); final JLabel patternLabel = new JLabel("Pattern:"); patternLabel.setHorizontalAlignment(SwingConstants.TRAILING); final JLabel minLengthLabel = new JLabel("Min Length:"); minLengthLabel.setHorizontalAlignment(SwingConstants.TRAILING); final JLabel maxLengthLabel = new JLabel("Max Length:"); maxLengthLabel.setHorizontalAlignment(SwingConstants.TRAILING); final NumberFormat numberFormat = NumberFormat.getIntegerInstance(); numberFormat.setParseIntegerOnly(true); numberFormat.setMinimumIntegerDigits(1); numberFormat.setMaximumIntegerDigits(2); final InternationalFormatter formatter = new InternationalFormatter(numberFormat); formatter.setAllowsInvalid(false); formatter.setCommitsOnValidEdit(true); final JFormattedTextField minLengthField = new JFormattedTextField(formatter); final Font panelFont = panel.getFont(); minLengthField.setFont(panelFont); minLengthField.setValue(m_minLength); minLengthField.setColumns(2); final JFormattedTextField maxLengthField = new JFormattedTextField(formatter); maxLengthField.setFont(panelFont); maxLengthField.setValue(m_maxLength); maxLengthField.setColumns(2); final JFormattedTextField regexField = new JFormattedTextField(new RegExFormatter()); regexField.setFont(panelFont); regexField.setValue(m_regexPattern); regexField.setColumns(REGEX_COLUMN_COUNT); regexField.setInputVerifier(new RegExInputVerifier()); regexField.setFocusLostBehavior(JFormattedTextField.COMMIT); final DocumentListener listener = new DocumentListener() { public void changedUpdate(DocumentEvent e) { textChanged(); } public void insertUpdate(DocumentEvent e) { textChanged(); } public void removeUpdate(DocumentEvent e) { textChanged(); } private void textChanged() { m_regexPattern = (Pattern) regexField.getValue(); m_regex = m_regexPattern.pattern(); m_minLength = ((Number) minLengthField.getValue()).intValue(); m_maxLength = ((Number) maxLengthField.getValue()).intValue(); } }; final Document regexDocument = regexField.getDocument(); regexDocument.addDocumentListener(listener); final Document minLengthDocument = minLengthField.getDocument(); minLengthDocument.addDocumentListener(listener); final Document maxLengthDocument = maxLengthField.getDocument(); maxLengthDocument.addDocumentListener(listener); final GridBagConstraints constraints = new GridBagConstraints(); constraints.gridx = 0; constraints.gridy = 0; constraints.weightx = 1.0; constraints.anchor = GridBagConstraints.EAST; constraints.fill = GridBagConstraints.HORIZONTAL; panel.add(patternLabel, constraints); constraints.gridx = 1; constraints.gridy = 0; constraints.gridwidth = 3; constraints.anchor = GridBagConstraints.WEST; panel.add(regexField, constraints); constraints.gridx = 0; constraints.gridy = 1; constraints.gridwidth = 1; constraints.anchor = GridBagConstraints.EAST; panel.add(minLengthLabel, constraints); constraints.gridx = 1; constraints.gridy = 1; constraints.anchor = GridBagConstraints.WEST; panel.add(minLengthField, constraints); constraints.gridx = 2; constraints.gridy = 1; constraints.anchor = GridBagConstraints.EAST; panel.add(maxLengthLabel, constraints); constraints.gridx = 3; constraints.gridy = 1; constraints.anchor = GridBagConstraints.WEST; panel.add(maxLengthField, constraints); return panel; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/af4548d755b24ddbf38f521ab4bbaeda65f8d0d9/ConventionInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/naming/ConventionInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4077,
2344,
16157,
9990,
8585,
18,
9010,
12,
7584,
974,
1769,
4077,
2344,
16157,
9990,
8585,
18,
9010,
12,
7584,
974,
1769,
4077,
2344,
16157,
9990,
8585,
18,
9010,
12,
7584,
974,
1769,
4077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4077,
2344,
16157,
9990,
8585,
18,
9010,
12,
7584,
974,
1769,
4077,
2344,
16157,
9990,
8585,
18,
9010,
12,
7584,
974,
1769,
4077,
2344,
16157,
9990,
8585,
18,
9010,
12,
7584,
974,
1769,
4077,
... | |
result = compare(retEnv, tempPath); assertTrue(result); | compareXML(retEnv, tempPath); | public void testR3GDI3EchoStruct() throws AxisFault { url = "http://mssoapinterop.org/stkV3/wsdl/import3.wsdl"; soapAction = "http://soapinterop.org/"; util = new GDImport2EchoStructUtil(); retEnv = client.sendMsg(util, url, soapAction); tempPath = resFilePath + "MsStkv3GDImport3StructRes.xml"; result = compare(retEnv, tempPath); assertTrue(result); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/MsStkv3Round3InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round3/MsStkv3Round3InteropTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
23,
43,
2565,
23,
19704,
3823,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
959,
19215,
30376,
18,
3341,
19,
334,
79,
58,
23,
19,
4749,
5761,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
23,
43,
2565,
23,
19704,
3823,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
959,
19215,
30376,
18,
3341,
19,
334,
79,
58,
23,
19,
4749,
5761,
19,
... |
return new Parser(handler.getCommands()); | return new Parser(handler.getCommands(), handler.getCategories()); | public static Parser load(String filename, Context context) throws IOException, UnexpectedException { MessageFormatter formatter = context.getMessageFormatter(); try { List list = new ArrayList(); BufferedReader rdr = new BufferedReader(new InputStreamReader( Parser.class.getResourceAsStream(filename))); InputStream is = Parser.class.getResourceAsStream(filename); SAXParser p = SAXParserFactory.newInstance().newSAXParser(); CommandListParser handler = new CommandListParser(context); p.parse(is, handler); is.close(); return new Parser(handler.getCommands()); } catch (SAXException e) { throw new UnexpectedException(-1, e); } catch (ParserConfigurationException e) { throw new UnexpectedException(-1, e); } } | 3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/8dc548aaf5b524952e65a5e03b1ec3f2d44b5e4b/Parser.java/clean/kom/java/nu/rydin/kom/frontend/text/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6783,
1262,
12,
780,
1544,
16,
1772,
819,
13,
5411,
1216,
1860,
16,
9649,
503,
565,
288,
3639,
2350,
5074,
4453,
273,
819,
18,
24906,
5074,
5621,
3639,
775,
3639,
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,
760,
6783,
1262,
12,
780,
1544,
16,
1772,
819,
13,
5411,
1216,
1860,
16,
9649,
503,
565,
288,
3639,
2350,
5074,
4453,
273,
819,
18,
24906,
5074,
5621,
3639,
775,
3639,
288,
5411,
... |
pages.addDimensionView(channelView); pages.addDimensionView(measView); | pages.getDimensionView().add(channelView); pages.getDimensionView().add(measView); | private CubeCursor foo() throws OLAPException { // Create a DimensionView for each dimension Connection connection = getConnection(); Cube salesCube = getCube(connection, "Sales"); DimensionView channelView = connection.createDimensionView(); channelView.setDimension(getDimension(salesCube, "Promotions" /*"Channel"*/)); DimensionView productView = connection.createDimensionView(); productView.setDimension(getDimension(salesCube, "Product")); DimensionView geographyView = connection.createDimensionView(); geographyView.setDimension(getDimension(salesCube, "Gender" /*"Geography"*/)); DimensionView timeView = connection.createDimensionView(); timeView.setDimension(getDimension(salesCube, "Marital Status"/*"Time"*/)); MeasureView measView = connection.createMeasureView(); // jhyde added CubeView query = connection.createCubeView(salesCube); // Create a columns edge and add the time and geography views //EdgeView columns = connection.createEdgeView(); EdgeView columns = query.createOrdinateEdge(); columns.addDimensionView(timeView); columns.addDimensionView(geographyView); // Create a rows edge and add the product view //EdgeView rows = connection.createEdgeView(); EdgeView rows = query.createOrdinateEdge(); rows.addDimensionView(productView); // Create a pages edge and add the channel dimension view //EdgeCursor pages = connection.createDimensionView(); EdgeView pages = query.createPageEdge(); pages.addDimensionView(channelView); pages.addDimensionView(measView); // Create the query cube view and add edges and the measure //CubeView query = connection.createCubeView(); //query.addOrdinateEdge(rows); //query.addOrdinateEdge(columns); //query.addPageEdge(pages); CubeCursor dataCursor = query.createCursor(); //EdgeCursor pageCursor=(List)dataCursor.getPageEdge().elementAt(0); EdgeCursor pageCursor=(EdgeCursor) dataCursor.getPageEdge().iterator().next(); //EdgeCursor rowCursor=(List)dataCursor.getOrdinateEdge().elementAt(0); EdgeCursor columnCursor = (EdgeCursor) dataCursor.getOrdinateEdge().get(0); EdgeCursor rowCursor = (EdgeCursor) dataCursor.getOrdinateEdge().get(1); DimensionCursor measureCursor = (DimensionCursor) pageCursor.getDimensionCursor().get(0); DimensionCursor channelCursor = (DimensionCursor) pageCursor.getDimensionCursor().get(1); DimensionCursor productCursor = (DimensionCursor) rowCursor.getDimensionCursor().get(0); DimensionCursor geographyCursor =(DimensionCursor) columnCursor.getDimensionCursor().get(0); DimensionCursor timeCursor = (DimensionCursor) columnCursor.getDimensionCursor().get(1); columnCursor.setFetchSize(6); rowCursor.setFetchSize(4); return dataCursor; } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/7d6a0c3d02156aab207b5017ce3ba65883fef640/JolapTest.java/buggy/src/main/mondrian/test/JolapTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
385,
4895,
6688,
8431,
1435,
1216,
531,
48,
2203,
503,
288,
202,
202,
759,
1788,
279,
13037,
1767,
364,
1517,
4968,
202,
202,
1952,
1459,
273,
6742,
5621,
202,
202,
39,
4895,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
385,
4895,
6688,
8431,
1435,
1216,
531,
48,
2203,
503,
288,
202,
202,
759,
1788,
279,
13037,
1767,
364,
1517,
4968,
202,
202,
1952,
1459,
273,
6742,
5621,
202,
202,
39,
4895,
... |
switch(areq) { case AUTH_REQ_OK: break; | switch(areq) { case AUTH_REQ_OK: break; | 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; } | 52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/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... |
Event ev; | protected void dispatchSVGLoad(Element elt, boolean checkCanRun, String lang) { for (Node n = elt.getFirstChild(); n != null; n = n.getNextSibling()) { if (n.getNodeType() == Node.ELEMENT_NODE) { dispatchSVGLoad((Element)n, checkCanRun, lang); } } Event ev; DocumentEvent de = (DocumentEvent)elt.getOwnerDocument(); ev = de.createEvent("SVGEvents"); ev.initEvent("SVGLoad", false, false); EventTarget t = (EventTarget)elt; final String s = elt.getAttributeNS(null, SVGConstants.SVG_ONLOAD_ATTRIBUTE); if (s.length() == 0) { // No script to run so just dispatch the event to DOM // (For java presumably). t.dispatchEvent(ev); return; } final Interpreter interp = getInterpreter(); if (interp == null) { // Can't load interpreter so just dispatch normal event // to the DOM (for java presumably). t.dispatchEvent(ev); return; } if (checkCanRun) { // Check that it is ok to run embeded scripts checkCompatibleScriptURL(lang, docPURL); checkCanRun = false; // we only check once for onload handlers } DocumentLoader dl = bridgeContext.getDocumentLoader(); SVGDocument d = (SVGDocument)elt.getOwnerDocument(); int line = dl.getLineNumber(elt); final String desc = Messages.formatMessage (EVENT_SCRIPT_DESCRIPTION, new Object [] {d.getURL(), SVGConstants.SVG_ONLOAD_ATTRIBUTE, new Integer(line)}); EventListener l = new EventListener() { public void handleEvent(Event evt) { try { interp.bindObject(EVENT_NAME, evt); interp.bindObject(ALTERNATE_EVENT_NAME, evt); interp.evaluate(new StringReader(s), desc); } catch (IOException io) { } catch (InterpreterException e) { handleInterpreterException(e); } } }; t.addEventListener("SVGLoad", l, false); t.dispatchEvent(ev); t.removeEventListener("SVGLoad", l, false); } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/e0f764dff72dfeed9e7f33e5d48e195946accb74/BaseScriptingEnvironment.java/clean/sources/org/apache/batik/bridge/BaseScriptingEnvironment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3435,
26531,
2563,
12,
1046,
11572,
16,
4766,
282,
1250,
866,
2568,
1997,
16,
4766,
282,
514,
3303,
13,
288,
3639,
364,
261,
907,
290,
273,
11572,
18,
588,
3759,
1763,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3435,
26531,
2563,
12,
1046,
11572,
16,
4766,
282,
1250,
866,
2568,
1997,
16,
4766,
282,
514,
3303,
13,
288,
3639,
364,
261,
907,
290,
273,
11572,
18,
588,
3759,
1763,
5621,
... | |
getViewer().refresh(false); | getViewer().refresh(false); | private void restoreState() { if (taskListMemento != null) { IMemento taskListWidth = taskListMemento.getChild(columnWidthIdentifier); if (taskListWidth != null) { for (int i = 0; i < columnWidths.length; i++) { IMemento m = taskListWidth.getChild("col" + i); if (m != null) { int width = m.getInteger(MEMENTO_KEY_WIDTH); columnWidths[i] = width; columns[i].setWidth(width); } } } IMemento sorterMemento = taskListMemento.getChild(tableSortIdentifier); if (sorterMemento != null) { IMemento m = sorterMemento.getChild(MEMENTO_KEY_SORTER); if (m != null) { sortIndex = m.getInteger(MEMENTO_KEY_SORT_INDEX); Integer sortDirInt = m.getInteger(MEMENTO_KEY_SORT_DIRECTION); if (sortDirInt != null) { sortDirection = sortDirInt.intValue(); } } else { sortIndex = 2; sortDirection = DEFAULT_SORT_DIRECTION; } } else { sortIndex = 2; // default priority sortDirection = DEFAULT_SORT_DIRECTION; } tableSorter.setColumn(columnNames[sortIndex]); getViewer().refresh(false); // getViewer().setSorter(new TaskListTableSorter(this, columnNames[sortIndex])); } addFilter(FILTER_PRIORITY); // if (MylarTaskListPlugin.getDefault().isFilterInCompleteMode()) // MylarTaskListPlugin.getTaskListManager().getTaskList().addFilter(inCompleteFilter); if (MylarTaskListPlugin.getMylarCorePrefs().contains(TaskListPreferenceConstants.FILTER_COMPLETE_MODE)) addFilter(FILTER_COMPLETE); if (MylarTaskListPlugin.getMylarCorePrefs().contains(TaskListPreferenceConstants.FILTER_ARCHIVE_MODE)) addFilter(FILTER_ARCHIVE); if (MylarTaskListPlugin.getDefault().isMultipleActiveTasksMode()) { togglePreviousAction(false); toggleNextAction(false); } getViewer().refresh(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/27288d503c710fca7552d26676afc1a7c8ba63b5/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5217,
1119,
1435,
288,
202,
202,
430,
261,
4146,
682,
49,
820,
83,
480,
446,
13,
288,
1082,
202,
3445,
820,
83,
1562,
682,
2384,
273,
1562,
682,
49,
820,
83,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5217,
1119,
1435,
288,
202,
202,
430,
261,
4146,
682,
49,
820,
83,
480,
446,
13,
288,
1082,
202,
3445,
820,
83,
1562,
682,
2384,
273,
1562,
682,
49,
820,
83,
18,
588,
... |
realOutput.write (b, off, len); | realOutput.write (data); | public void write (byte b[], int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException (); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy (b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain (); writeBlockDataHeader (len); realOutput.write (b, off, len); } } else realOutput.write (b, off, len); } | 25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/19f06d8622c5119a2b265f34d018cd1646e244f1/ObjectOutputStream.java/buggy/libjava/java/io/ObjectOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
261,
7229,
324,
63,
6487,
509,
3397,
16,
509,
562,
13,
1216,
1860,
225,
288,
565,
309,
261,
2626,
751,
1463,
6450,
13,
565,
288,
1377,
309,
261,
1897,
411,
374,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
261,
7229,
324,
63,
6487,
509,
3397,
16,
509,
562,
13,
1216,
1860,
225,
288,
565,
309,
261,
2626,
751,
1463,
6450,
13,
565,
288,
1377,
309,
261,
1897,
411,
374,
13,
2... |
String source) { | String source) { | public void handleCompilationDone(Context cx, DebuggableScript fnOrScript, String source) { String sourceName = fnOrScript.getSourceName(); if (sourceName == null) { sourceName = "<stdin>"; } if (sourceName.endsWith("(eval)")) { String origSourceName = sourceName.substring(0, sourceName.length() - 6); SourceInfo si = (SourceInfo)sourceNames.get(origSourceName); if (si != null) { si.addScript(fnOrScript); return; } } SourceInfo si = (SourceInfo)sourceNames.get(sourceName); if (si == null) { si = new SourceInfo(source); sourceNames.put(sourceName, si); } si.addScript(fnOrScript); if (fnOrScript.getScriptable() instanceof NativeFunction) { NativeFunction f = (NativeFunction)fnOrScript.getScriptable(); String name = f.getFunctionName(); if (name.length() > 0 && !name.equals("anonymous")) { functionMap.put(name, fnOrScript); } } loadedFile(sourceName, source); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/ba0661c4930bce05ad78b222083c34077170a9e4/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
19184,
7387,
12,
1042,
9494,
16,
4015,
8455,
3651,
2295,
1162,
3651,
16,
4766,
1377,
514,
1084,
13,
288,
3639,
514,
28337,
273,
2295,
1162,
3651,
18,
588,
1830,
461,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
19184,
7387,
12,
1042,
9494,
16,
4015,
8455,
3651,
2295,
1162,
3651,
16,
4766,
1377,
514,
1084,
13,
288,
3639,
514,
28337,
273,
2295,
1162,
3651,
18,
588,
1830,
461,
5621... |
keyCell.addChild("span", "class", "key_is").addChild("a", "href", '/' + uri.toString(false), uri.toShortString()); | keyCell.addChild("span", "class", "key_is").addChild("a", "href", '/' + uri.toString(), uri.toShortString()); | private HTMLNode createKeyCell(FreenetURI uri) { HTMLNode keyCell = new HTMLNode("td", "class", "request-key"); if (uri != null) { keyCell.addChild("span", "class", "key_is").addChild("a", "href", '/' + uri.toString(false), uri.toShortString()); } else { keyCell.addChild("span", "class", "key_unknown", "unknown"); } return keyCell; } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/1c876261ab73159d57a26624667ec7bf7acd15b8/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3982,
907,
752,
653,
4020,
12,
42,
2842,
278,
3098,
2003,
13,
288,
202,
202,
4870,
907,
498,
4020,
273,
394,
3982,
907,
2932,
4465,
3113,
315,
1106,
3113,
315,
2293,
17,
856,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3982,
907,
752,
653,
4020,
12,
42,
2842,
278,
3098,
2003,
13,
288,
202,
202,
4870,
907,
498,
4020,
273,
394,
3982,
907,
2932,
4465,
3113,
315,
1106,
3113,
315,
2293,
17,
856,... |
return new CASTReturnStatement(); } | return new CASTReturnStatement(); } | protected IASTReturnStatement createReturnStatement() { return new CASTReturnStatement(); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/8d833f012a81dac41a0d33c7e0f047c1dfe415f2/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
990,
3406,
752,
990,
3406,
1435,
288,
1377,
327,
394,
6425,
882,
990,
3406,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
990,
3406,
752,
990,
3406,
1435,
288,
1377,
327,
394,
6425,
882,
990,
3406,
5621,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
field = FBField.createField(longField); } | field = FBField.createField(longField); } | protected void setUp() throws SQLException{ XSQLVAR longField = new XSQLVAR(); longField.sqldata = new Long(TEST_LONG); longField.sqlind = 0; longField.sqltype = GDS.SQL_INT64; field = FBField.createField(longField); } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/026a06cad7ac909fff09e3c7d23e34e158b0f803/TestFBLongField.java/clean/src/org/firebirdsql/jdbc/TestFBLongField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
1435,
1216,
6483,
95,
202,
202,
60,
3997,
7716,
1525,
974,
273,
394,
1139,
3997,
7716,
5621,
202,
202,
5748,
974,
18,
4669,
892,
273,
394,
3407,
12,
16961,
67,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24292,
1435,
1216,
6483,
95,
202,
202,
60,
3997,
7716,
1525,
974,
273,
394,
1139,
3997,
7716,
5621,
202,
202,
5748,
974,
18,
4669,
892,
273,
394,
3407,
12,
16961,
67,
14... |
public AttributeDescr rule_attribute() throws RecognitionException { AttributeDescr d; AttributeDescr a = null; d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:265:25: (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group ) int alt29=5; switch ( input.LA(1) ) { case 32: alt29=1; break; case 33: alt29=2; break; case 35: alt29=3; break; case 36: alt29=4; break; case 34: alt29=5; break; default: NoViableAltException nvae = new NoViableAltException("260:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group );", 29, 0, input); throw nvae; } switch (alt29) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:265:25: a= salience { following.push(FOLLOW_salience_in_rule_attribute753); a=salience(); following.pop(); d = a; } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:266:25: a= no_loop { following.push(FOLLOW_no_loop_in_rule_attribute763); a=no_loop(); following.pop(); d = a; } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:267:25: a= agenda_group { following.push(FOLLOW_agenda_group_in_rule_attribute774); a=agenda_group(); following.pop(); d = a; } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:268:25: a= duration { following.push(FOLLOW_duration_in_rule_attribute787); a=duration(); following.pop(); d = a; } break; case 5 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:269:25: a= xor_group { following.push(FOLLOW_xor_group_in_rule_attribute801); a=xor_group(); following.pop(); d = a; } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/afa2dad261bf082d1acd2655e8290f80c6bffb15/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1720,
67,
4589,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3601,
16198,
279,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1720,
67,
4589,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3601,
16198,
279,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5... | ||
if (log) { os.log("Start of basic block " + bb); } if (debug) { BootLog.debug("-- Start of BB " + bb); } startOfBB = true; this.vstack.reset(); eContext.getPool().reset(os); if (inlinedMethod != null) { inlinedMethod.pushOuterMethodStack(vstack); } final TypeStack tstack = bb.getStartStack(); vstack.pushAll(tstack); | if (log) { os.log("Start of basic block " + bb); } if (debug) { BootLog.debug("-- Start of BB " + bb); } startOfBB = true; this.vstack.reset(); eContext.getPool().reset(os); if (inlinedMethod != null) { inlinedMethod.pushOuterMethodStack(vstack); } final TypeStack tstack = bb.getStartStack(); vstack.pushAll(tstack); | public void startBasicBlock(BasicBlock bb) { if (log) { os.log("Start of basic block " + bb); } if (debug) { BootLog.debug("-- Start of BB " + bb); } startOfBB = true; this.vstack.reset(); eContext.getPool().reset(os); // Push the result from the outer method stack on the vstack if (inlinedMethod != null) { inlinedMethod.pushOuterMethodStack(vstack); } // Push the items on the vstack the result from a previous basic block. final TypeStack tstack = bb.getStartStack(); vstack.pushAll(tstack); if (debug) { BootLog.debug("-- VStack: " + vstack.toString()); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4c9e1b93fdcd3878abf615621ec6a36bf839ab10/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
8252,
1768,
12,
8252,
1768,
7129,
13,
288,
202,
202,
430,
261,
1330,
13,
288,
1082,
202,
538,
18,
1330,
2932,
1685,
434,
5337,
1203,
315,
397,
7129,
1769,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
8252,
1768,
12,
8252,
1768,
7129,
13,
288,
202,
202,
430,
261,
1330,
13,
288,
1082,
202,
538,
18,
1330,
2932,
1685,
434,
5337,
1203,
315,
397,
7129,
1769,
202,
202,
... |
Logger.debug(this, "Map: "+getKeyMap().size()); Logger.debug(this, "Contains "+key+"?: "+getKeyMap().containsKey(key)); | private DataBlock getBlockByKey(Key key) { Logger.debug(this, "Map: "+getKeyMap().size()); Logger.debug(this, "Contains "+key+"?: "+getKeyMap().containsKey(key)); return (DataBlock) getKeyMap().get(key); } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/468622124d6c873f5829a9d551c994b13f38cb37/DataStore.java/buggy/src/freenet/store/DataStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1910,
1768,
11902,
14560,
12,
653,
498,
13,
288,
202,
565,
4242,
18,
4148,
12,
2211,
16,
315,
863,
30,
13773,
588,
653,
863,
7675,
1467,
10663,
202,
565,
4242,
18,
4148,
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,
1910,
1768,
11902,
14560,
12,
653,
498,
13,
288,
202,
565,
4242,
18,
4148,
12,
2211,
16,
315,
863,
30,
13773,
588,
653,
863,
7675,
1467,
10663,
202,
565,
4242,
18,
4148,
12,
... | |
if(m_statistics != null) { m_statistics.setObserver(null); m_statistics.setFileObserver(null); | if(statistics != null) { statistics.setObserver(null); statistics.setFileObserver(null); | public void refresh(IFtpConfig ftpConfig) { m_ftpConfig = ftpConfig; if (m_ftpConfig != null) { m_statistics = (IFtpStatistics)m_ftpConfig.getFtpStatistics(); m_statistics.setObserver(this); m_statistics.setFileObserver(this); // reset component values String startTime = DateUtils.getISO8601Date(m_statistics.getStartTime().getTime()); setValue(I_START_TIME, startTime); notifyMkdir(); notifyRmdir(); notifyUpload(); notifyDownload(); notifyDelete(); notifyLogin(true); notifyOpenConnection(); } else { if(m_statistics != null) { m_statistics.setObserver(null); m_statistics.setFileObserver(null); } m_statistics = null; } } | 48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/StatisticsPanel.java/buggy/src/java/org/apache/ftpserver/gui/StatisticsPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4460,
12,
5501,
6834,
809,
13487,
809,
13,
288,
3639,
312,
67,
11727,
809,
273,
13487,
809,
31,
3639,
309,
261,
81,
67,
11727,
809,
480,
446,
13,
288,
5411,
312,
67,
14438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
12,
5501,
6834,
809,
13487,
809,
13,
288,
3639,
312,
67,
11727,
809,
273,
13487,
809,
31,
3639,
309,
261,
81,
67,
11727,
809,
480,
446,
13,
288,
5411,
312,
67,
14438,
... |
mode = ((RubyString) args[1]).toString(); | newModes = new IOModes(getRuntime(), ((RubyString) args[1]).toString()); | public IRubyObject reopen(IRubyObject[] args) { if (args.length < 1) { throw getRuntime().newArgumentError("wrong number of arguments"); } if (args[0].isKindOf(getRuntime().getClass("IO"))) { RubyIO ios = (RubyIO) args[0]; int keepFileno = handler.getFileno(); // close the old handler before it gets overwritten if (handler.isOpen()) { try { handler.close(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { return getRuntime().getNil(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } } // When we reopen, we want our fileno to be preserved even // though we have a new IOHandler. // Note: When we clone we get a new fileno...then we replace it. // This ends up incrementing our fileno index up, which makes the // fileno we choose different from ruby. Since this seems a bit // too implementation specific, I did not bother trying to get // these to agree (what scary code would depend on fileno generating // a particular way?) try { handler = ios.handler.cloneIOHandler(); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOHandler.PipeException e) { throw getRuntime().newErrnoESPIPEError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } handler.setFileno(keepFileno); // Update fileno list with our new handler registerIOHandler(handler); } else if (args[0].isKindOf(getRuntime().getClass("String"))) { String path = ((RubyString) args[0]).toString(); String mode = "r"; if (args.length > 1) { if (!args[1].isKindOf(getRuntime().getClass("String"))) { throw getRuntime().newTypeError(args[1], getRuntime().getClass("String")); } mode = ((RubyString) args[1]).toString(); } try { if (handler != null) { close(); } modes = new IOModes(getRuntime(), mode); handler = new IOHandlerSeekable(getRuntime(), path, modes); registerIOHandler(handler); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOException e) { throw getRuntime().newIOError(e.toString()); } } // A potentially previously close IO is being 'reopened'. isOpen = true; return this; } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/24fc00ac9f647542a77f440ea686cea2d209f347/RubyIO.java/buggy/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
31563,
12,
7937,
10340,
921,
8526,
833,
13,
288,
377,
202,
430,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
604,
18814,
7675,
2704,
1379,
668,
2932,
21530,
1300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
31563,
12,
7937,
10340,
921,
8526,
833,
13,
288,
377,
202,
430,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
604,
18814,
7675,
2704,
1379,
668,
2932,
21530,
1300... |
{ Connection cx = getConnection(); Statement stmt = cx.createStatement(); | { Connection cx = getConnection(); Statement stmt = cx.createStatement(); | public void testResultSet0043() throws Exception { Connection cx = getConnection(); Statement stmt = cx.createStatement(); try { ResultSet rs = stmt.executeQuery("select 1"); assertNotNull(rs); rs.getInt(1); assertTrue("Did not expect to reach here", false); } catch (SQLException e) { assertTrue(e.getMessage().startsWith("No current row in the result set")); } } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/d9d3f9d24e5fe3f189bd2899a4d10846c0832a3b/TimestampTest.java/buggy/trunk/jtds/src.old/test/freetds/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
13198,
713,
8942,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
698,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
13198,
713,
8942,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
698,
202,
202,
... |
vec.add( ""+image.getBorder() ); | vec.add( ""+imageDomainObject.getBorder() ); | public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); Utility.setDefaultHtmlContentType( res ); PrintWriter out = res.getWriter(); String metaIdStr = req.getParameter( "meta_id" ); int meta_id = Integer.parseInt( metaIdStr ); String label = req.getParameter( "label" ); if ( label == null ) { label = ""; } UserDomainObject user = Utility.getLoggedOnUser( req ); // Check if user has write rights if ( !imcref.checkDocAdminRights( meta_id, user ) ) { Utility.redirectToStartDocument( req, res ); return; } //*lets get some path we need later on File image_path = Utility.getDomainPrefPath( "image_path" ); //*lets get the dirlist, and add the rootdir to it List imageFolders = GetImages.getImageFolders( image_path, true ); imageFolders.add( 0, image_path ); //*the StringBuffers to save the image directories list html-code in StringBuffer folderOptions = createImageFolderOptionList(imageFolders,image_path); HttpSession session = req.getSession( true ); session.setAttribute( "imageFolderOptionList", folderOptions.toString() ); String imgNoStr = ( req.getParameter( "img_no" ) != null ) ? req.getParameter( "img_no" ) : req.getParameter( "img" ); int img_no = Integer.parseInt( imgNoStr ); DocumentMapper documentMapper = imcref.getDocumentMapper() ; ImageDomainObject image = documentMapper.getDocumentImage( meta_id, img_no ); // Check if ChangeImage is invoked by ImageBrowse, hence containing // an image filename as option value. String paramCancel = req.getParameter( ImageBrowse.PARAMETER_BUTTON__CANCEL ); String imageListParam = ""; if( null == paramCancel ) { imageListParam = req.getParameter( "imglist" ); } String browsedImageUrl = ( imageListParam == null ) ? "" : URLDecoder.decode( imageListParam ); String imageUrl = ( "".equals( browsedImageUrl ) && null != image ? image.getUrl() : browsedImageUrl ); // selected OPTION or "" //**************************************************************** File imageFile = new File( image_path, imageUrl ); int widthFromFile = 0; int heightFromFile = 0; if (imageFile.isFile()) { ImageFileMetaData imageFileMetaData = new ImageFileMetaData( imageFile ); widthFromFile = imageFileMetaData.getWidth(); heightFromFile = imageFileMetaData.getHeight(); } //**************************************************************** Vector vec = new Vector(); if ( null != image ) { int current_width = 0; try { current_width = "".equals( browsedImageUrl ) ? image.getWidth() : widthFromFile; } catch ( NumberFormatException ex ) { } int current_height = 0; try { current_height = "".equals( browsedImageUrl ) ? image.getHeight() : heightFromFile; } catch ( NumberFormatException ex ) { } int aspect = 0; if ( current_width * current_height != 0 ) { aspect = 100 * current_width / current_height; } String keepAspect = "checked"; if ( widthFromFile * heightFromFile != 0 && aspect != ( 100 * widthFromFile / heightFromFile ) ) { keepAspect = ""; } vec.add( "#imgName#" ); vec.add( HTMLConv.toHTMLSpecial(image.getName())); vec.add( "#imgRef#" ); vec.add( HTMLConv.toHTMLSpecial(imageUrl)); vec.add( "#imgWidth#" ); vec.add( current_width != 0 ? "" + current_width : "" + widthFromFile ); vec.add( "#origW#" ); // original imageWidth vec.add( "" + widthFromFile ); vec.add( "#imgHeight#" ); vec.add( current_height != 0 ? "" + current_height : "" + heightFromFile ); vec.add( "#origH#" ); vec.add( "" + heightFromFile ); // original imageHeight vec.add( "#keep_aspect#" ); vec.add( keepAspect ); vec.add( "#imgBorder#" ); vec.add( ""+image.getBorder() ); vec.add( "#imgVerticalSpace#" ); vec.add( ""+image.getVerticalSpace() ); vec.add( "#imgHorizontalSpace#" ); vec.add( ""+image.getHorizontalSpace() ); if ( "_top".equals( image.getTarget() ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#top_checked#" ); } else if ( "_self".equals( image.getTarget() ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#self_checked#" ); } else if ( "_blank".equals( image.getTarget() ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#blank_checked#" ); } else if ( "_parent".equals( image.getTarget() ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#blank_checked#" ); } else { vec.add( "#target_name#" ); vec.add( image.getTarget() ); vec.add( "#other_checked#" ); } vec.add( "selected" ); if ( "baseline".equals( image.getAlign() ) ) { vec.add( "#baseline_selected#" ); } else if ( "top".equals( image.getAlign() ) ) { vec.add( "#top_selected#" ); } else if ( "middle".equals( image.getAlign() ) ) { vec.add( "#middle_selected#" ); } else if ( "bottom".equals( image.getAlign() ) ) { vec.add( "#bottom_selected#" ); } else if ( "texttop".equals( image.getAlign() ) ) { vec.add( "#texttop_selected#" ); } else if ( "absmiddle".equals( image.getAlign() ) ) { vec.add( "#absmiddle_selected#" ); } else if ( "absbottom".equals( image.getAlign() ) ) { vec.add( "#absbottom_selected#" ); } else if ( "left".equals( image.getAlign() ) ) { vec.add( "#left_selected#" ); } else if ( "right".equals( image.getAlign() ) ) { vec.add( "#right_selected#" ); } else { vec.add( "#none_selected#" ); } vec.add( "selected" ); vec.add( "#imgAltText#" ); vec.add( image.getAlternateText()); vec.add( "#imgLowScr#" ); vec.add( image.getLowResolutionUrl() ); vec.add( "#imgRefLink#" ); vec.add( image.getLinkUrl() ); } else { vec.add( "#imgName#" ); vec.add( "" ); vec.add( "#imgRef#" ); vec.add( imageUrl ); vec.add( "#imgWidth#" ); vec.add( "" + widthFromFile ); vec.add( "#imgHeight#" ); vec.add( "" + heightFromFile ); vec.add( "#origW#" ); vec.add( "" + widthFromFile ); vec.add( "#origH#" ); vec.add( "" + heightFromFile ); vec.add( "#imgBorder#" ); vec.add( "0" ); vec.add( "#imgVerticalSpace#" ); vec.add( "0" ); vec.add( "#imgHorizontalSpace#" ); vec.add( "0" ); vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#self_checked#" ); vec.add( "selected" ); vec.add( "#top_selected#" ); vec.add( "selected" ); vec.add( "#imgAltText#" ); vec.add( "" ); vec.add( "#imgLowScr#" ); vec.add( "" ); vec.add( "#imgRefLink#" ); vec.add( "" ); } vec.add( "#imgUrl#" ); vec.add( imcref.getImageUrl() ); vec.add( "#getMetaId#" ); vec.add( String.valueOf( meta_id ) ); vec.add( "#img_no#" ); vec.add( String.valueOf( img_no ) ); vec.add( "#folders#" ); vec.add( folderOptions.toString() ); vec.add( "#label#" ); vec.add( label ); String htmlStr = imcref.getAdminTemplate( "change_img.html", user, vec ); out.print( htmlStr ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ff9b2edfb82af582993934591d4051e42e2887ab/ChangeImage.java/clean/server/src/com/imcode/imcms/servlet/admin/ChangeImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
6246,
39,
18348,
709,
71,
1734,
273,
4257,
2081,
18,
588,
3445,
39,
18348,
5621,
3639,
13134,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
6246,
39,
18348,
709,
71,
1734,
273,
4257,
2081,
18,
588,
3445,
39,
18348,
5621,
3639,
13134,
18,
... |
result = ERXExtensions.rawPrimaryKeyFromPrimaryKeyAndEO(pk, this); | NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) throw new RuntimeException("rawPrimaryKeyInTransaction does not support compound primary keys"); result=pk.objectForKey(primaryKeyAttributeNames.lastObject()); | public Object rawPrimaryKeyInTransaction() { Object result = rawPrimaryKey(); if (result == null) { NSDictionary pk = primaryKeyDictionary(false); if (cat.isDebugEnabled()) cat.debug("pk: " + pk); // FIXME: What the heck is this?!?! result = ERXExtensions.rawPrimaryKeyFromPrimaryKeyAndEO(pk, this); } return result; } | 22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/b0f544472d1c1d3ccc96b88298a3965feadb64c5/ERXGenericRecord.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXGenericRecord.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1831,
11575,
382,
3342,
1435,
288,
3639,
1033,
563,
273,
1831,
11575,
5621,
3639,
309,
261,
2088,
422,
446,
13,
288,
5411,
423,
9903,
3192,
2365,
273,
8841,
10905,
12,
5743,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1831,
11575,
382,
3342,
1435,
288,
3639,
1033,
563,
273,
1831,
11575,
5621,
3639,
309,
261,
2088,
422,
446,
13,
288,
5411,
423,
9903,
3192,
2365,
273,
8841,
10905,
12,
5743,
1... |
if (element instanceof CompositeElement) { ASTNode parent = element; ChameleonTransforming.transformChildren(parent); child1 = null; child2 = Helper.shiftForwardToNonSpace(parent.getFirstChildNode()); int indent = -1; for (; child2 != null; child1 = child2, child2 = Helper.shiftForwardToNonSpace(child2.getTreeNext())) { if (child1 != null || SourceTreeToPsiMap.treeElementToPsi(parent) instanceof PsiFile) { child2 = myCodeFormatter.format(SourceTreeToPsiMap.treeElementToPsi(parent), child1, child2, mySettings, myHelper); } if (indent < 0) { indent = myIndentAdjuster.calculateIndent(child2, -1); } if (child2 != null) { child2 = myIndentAdjuster.adjustIndent(child2, indent); } } element = myWrapper.wrap(element); element = myIndentAdjuster.adjustIndent(element, parent_indent); myCommentFormatter.process(element); indent = -1; for (ASTNode child = element.getFirstChildNode(); child != null; child = child.getTreeNext()) { if (indent < 0) { indent = myIndentAdjuster.calculateIndent(child, -1); } child = process(child, indent); } } | public ASTNode process(ASTNode element, int parent_indent) { final FormattingModelBuilder builder = SourceTreeToPsiMap.treeElementToPsi(element).getContainingFile().getLanguage() .getFormattingModelBuilder(); if (builder != null) { TextRange range = element.getTextRange(); return processRange(element, range.getStartOffset(), range.getEndOffset()); } if (useNewFormatter(myHelper.getFileType())) { TextRange range = element.getTextRange(); int startOffset = range.getStartOffset(); int endOffset = range.getEndOffset(); processRange(element, startOffset, endOffset); return element; } if (element instanceof CompositeElement) { ASTNode parent = element; ChameleonTransforming.transformChildren(parent); child1 = null; child2 = Helper.shiftForwardToNonSpace(parent.getFirstChildNode()); int indent = -1; for (; child2 != null; child1 = child2, child2 = Helper.shiftForwardToNonSpace(child2.getTreeNext())) { if (child1 != null || SourceTreeToPsiMap.treeElementToPsi(parent) instanceof PsiFile) { child2 = myCodeFormatter.format(SourceTreeToPsiMap.treeElementToPsi(parent), child1, child2, mySettings, myHelper); } if (indent < 0) { indent = myIndentAdjuster.calculateIndent(child2, -1); } if (child2 != null) { child2 = myIndentAdjuster.adjustIndent(child2, indent); } } element = myWrapper.wrap(element); element = myIndentAdjuster.adjustIndent(element, parent_indent); myCommentFormatter.process(element); indent = -1; for (ASTNode child = element.getFirstChildNode(); child != null; child = child.getTreeNext()) { if (indent < 0) { indent = myIndentAdjuster.calculateIndent(child, -1); } child = process(child, indent); } } return element; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/b0751de4f90f5cf60ea788424eae6a1c0e6435f9/CodeFormatterFacade.java/buggy/source/com/intellij/psi/impl/source/codeStyle/CodeFormatterFacade.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9183,
907,
1207,
12,
9053,
907,
930,
16,
509,
982,
67,
9355,
13,
288,
565,
727,
4077,
1787,
1488,
1263,
2089,
273,
4998,
2471,
774,
52,
7722,
863,
18,
3413,
1046,
774,
52,
7722,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9183,
907,
1207,
12,
9053,
907,
930,
16,
509,
982,
67,
9355,
13,
288,
565,
727,
4077,
1787,
1488,
1263,
2089,
273,
4998,
2471,
774,
52,
7722,
863,
18,
3413,
1046,
774,
52,
7722,
... | |
finally { try { logstr.close(); } catch( IOException e ) { throw new TaskException( "Error", e ); } } | public boolean execute() throws TaskException { getLogger().debug( "Using SUN rmic compiler" ); Commandline cmd = setupRmicCommand(); // Create an instance of the rmic, redirecting output to // the project log try { Class c = Class.forName( "sun.rmi.rmic.Main" ); Constructor cons = c.getConstructor( new Class[] {OutputStream.class, String.class} ); Object rmic = cons.newInstance( new Object[]{System.out, "rmic"} ); Method doRmic = c.getMethod( "compile", new Class[]{String[].class} ); Boolean ok = (Boolean)doRmic.invoke( rmic, ( new Object[]{cmd.getArguments()} ) ); return ok.booleanValue(); } catch( ClassNotFoundException ex ) { throw new TaskException( "Cannot use SUN rmic, as it is not available" + " A common solution is to set the environment variable" + " JAVA_HOME or CLASSPATH." ); } catch( Exception ex ) { if( ex instanceof TaskException ) { throw (TaskException)ex; } else { throw new TaskException( "Error starting SUN rmic: ", ex ); } } finally { try { logstr.close(); } catch( IOException e ) { throw new TaskException( "Error", e ); } } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/0c1e2fd1049fcf9b534ff1e4c07d646990aee62e/SunRmic.java/buggy/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/rmic/SunRmic.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1836,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
7156,
7675,
4148,
12,
315,
7736,
348,
2124,
6692,
335,
5274,
6,
11272,
3639,
3498,
1369,
1797,
273,
3875,
54,
27593,
2189,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1836,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
7156,
7675,
4148,
12,
315,
7736,
348,
2124,
6692,
335,
5274,
6,
11272,
3639,
3498,
1369,
1797,
273,
3875,
54,
27593,
2189,
5... | |
floatingWindow = new ProgressFloatingWindow(window, imageCanvas); | synchronized(windowLock){ floatingWindow = new ProgressFloatingWindow(window, imageCanvas); } | void openFloatingWindow() { //Do we already have one? if (floatingWindow != null) return; //Don't bother if there is nothing showing yet if (!window.getShell().isVisible()) return; floatingWindow = new ProgressFloatingWindow(window, imageCanvas); WorkbenchJob floatingJob = new WorkbenchJob(ProgressMessages .getString("AnimationItem.openFloatingWindowJob")) { //$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { synchronized (windowLock) { //Clear the window if the parent is not visibile if (window.getShell() == null || !window.getShell().isVisible() || getControl().isDisposed()) floatingWindow = null; if (floatingWindow == null) return Status.CANCEL_STATUS; floatingWindow.open(); return Status.OK_STATUS; } } /* (non-Javadoc) * @see org.eclipse.ui.progress.WorkbenchJob#shouldRun() */ public boolean shouldRun() { if (AnimationManager.getInstance().isAnimated()) return true; //If there is no window than do not run floatingWindow = null; return false; } }; floatingJob.setSystem(true); floatingJob.schedule(500); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/cc098a5f454d6e378ebe3305bdbd85ec68305434/AnimationItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1696,
28344,
3829,
1435,
288,
202,
202,
759,
3244,
732,
1818,
1240,
1245,
35,
202,
202,
430,
261,
5659,
310,
3829,
480,
446,
13,
1082,
202,
2463,
31,
202,
202,
759,
22293,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
28344,
3829,
1435,
288,
202,
202,
759,
3244,
732,
1818,
1240,
1245,
35,
202,
202,
430,
261,
5659,
310,
3829,
480,
446,
13,
1082,
202,
2463,
31,
202,
202,
759,
22293,
14... |
public static String getReportDocument( HttpServletRequest request ) { String filePath = getParameter( request, PARAM_REPORT_DOCUMENT ); filePath = preProcess( filePath ); if ( "".equals( filePath ) ) //$NON-NLS-1$ { filePath = generateDocumentFromReport( request ); filePath = createDocumentPath( filePath, request ); } else { filePath = createAbsolutePath( filePath ); } return filePath; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/5c8dd96b2b7249db362e597132210258101979a5/ParameterAccessor.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
22452,
2519,
12,
9984,
590,
262,
202,
95,
202,
202,
780,
4612,
273,
5575,
12,
590,
16,
4655,
67,
22710,
67,
18450,
11272,
202,
202,
22787,
273,
675,
2227,
12,
4612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22452,
2519,
12,
9984,
590,
262,
202,
95,
202,
202,
780,
4612,
273,
5575,
12,
590,
16,
4655,
67,
22710,
67,
18450,
11272,
202,
202,
22787,
273,
675,
2227,
12,
4612,
... | ||
subArrayElementJavaType == java.lang.String.class); | subArrayElementJavaType == java.lang.String.class || isNIOBufferClass(subArrayElementJavaType)); | protected boolean javaArgTypeNeedsDataCopy(JavaType javaArgType) { if (javaArgType.isArray()) { Class subArrayElementJavaType = javaArgType.getJavaClass().getComponentType(); return (subArrayElementJavaType.isArray() || subArrayElementJavaType == java.lang.String.class); } return false; } | 47702 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47702/4b93bb531605fa082bdad6452d3e6a51cbb15bed/CMethodBindingEmitter.java/buggy/src/net/java/games/gluegen/CMethodBindingEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
2252,
4117,
559,
26419,
751,
2951,
12,
31819,
2252,
4117,
559,
13,
288,
565,
309,
261,
6290,
4117,
559,
18,
291,
1076,
10756,
288,
1377,
1659,
720,
1076,
1046,
31819,
273,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
2252,
4117,
559,
26419,
751,
2951,
12,
31819,
2252,
4117,
559,
13,
288,
565,
309,
261,
6290,
4117,
559,
18,
291,
1076,
10756,
288,
1377,
1659,
720,
1076,
1046,
31819,
273,
225... |
String editName= RefactoringCoreMessages.getString("RenamePrivateMethodRefactoring.rename_method"); | String editName= "Update method reference"; | private void addReferenceUpdates(TextChange change) throws JavaModelException{ SearchResultGroup[] grouped= getOccurrences(null); if (grouped.length != 0){ SearchResult[] results= grouped[0].getSearchResults(); for (int i= 0; i < results.length; i++){ String editName= RefactoringCoreMessages.getString("RenamePrivateMethodRefactoring.rename_method"); change.addTextEdit(editName , createTextChange(results[i])); } } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4eadb7bc2e48237df21551b8d58cc1e7a3f7bcca/RenamePrivateMethodRefactoring.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenamePrivateMethodRefactoring.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
2404,
5121,
12,
1528,
3043,
2549,
13,
1216,
5110,
1488,
503,
95,
202,
202,
24916,
1114,
8526,
10303,
33,
336,
12397,
12228,
12,
2011,
1769,
1082,
202,
430,
261,
25472... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2404,
5121,
12,
1528,
3043,
2549,
13,
1216,
5110,
1488,
503,
95,
202,
202,
24916,
1114,
8526,
10303,
33,
336,
12397,
12228,
12,
2011,
1769,
1082,
202,
430,
261,
25472... |
public void wrap(InputStream inStream, OutputStream outStream, MessageProp mp) throws GSSException { //System.out.println("GSSUPContextSpi.wrap"); } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/2e5a24f22ae8a6308d5b0dcf6a5ef1926141f3e6/GSSUPContextSpi.java/buggy/src/org/jacorb/security/sas/GSSUPContextSpi.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
4113,
12,
4348,
267,
1228,
16,
4632,
659,
1228,
16,
1079,
4658,
1291,
13,
15069,
43,
1260,
503,
95,
759,
3163,
18,
659,
18,
8222,
2932,
43,
1260,
3079,
1042,
21887,
18,
4113,
886... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
6459,
4113,
12,
4348,
267,
1228,
16,
4632,
659,
1228,
16,
1079,
4658,
1291,
13,
15069,
43,
1260,
503,
95,
759,
3163,
18,
659,
18,
8222,
2932,
43,
1260,
3079,
1042,
21887,
18,
4113,
886... | ||
public final void emitSTFDtoc (int FRT, Offset off, int Rz) { int offset = off.toInt(); if (VM.VerifyAssertions) VM._assert(fits(offset, 32)); | public final void emitSTFDtoc (int FRT, Offset offset, int Rz) { | public final void emitSTFDtoc (int FRT, Offset off, int Rz) { //KV:todo int offset = off.toInt(); if (VM.VerifyAssertions) VM._assert(fits(offset, 32)); if (fits(offset, 16)) { emitSTFD(FRT, offset, JTOC); } else if (0 == (offset&0x8000)) { emitADDIS ( Rz, JTOC, offset>>16); emitSTFD(FRT, offset&0xFFFF, Rz); } else { emitADDIS ( Rz, JTOC, (offset>>16)+1); emitSTFD(FRT, offset|0xFFFF0000, Rz); } } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9b22bffbb06319b08a93aed2a8f11de10ba3fecf/VM_Assembler.java/clean/rvm/src/vm/arch/powerPC/compilers/baseline/VM_Assembler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
3626,
882,
16894,
1391,
261,
474,
478,
12185,
16,
9874,
3397,
16,
509,
534,
94,
13,
288,
565,
368,
16945,
30,
9012,
565,
509,
1384,
273,
3397,
18,
869,
1702,
5621,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
3626,
882,
16894,
1391,
261,
474,
478,
12185,
16,
9874,
3397,
16,
509,
534,
94,
13,
288,
565,
368,
16945,
30,
9012,
565,
509,
1384,
273,
3397,
18,
869,
1702,
5621,
565,
... |
public int hashCode() | public final int hashCode() | public int hashCode() { return port + addr.hashCode(); } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/b36f8eef237505f078dd95cd2d50183f990c35aa/InetSocketAddress.java/buggy/libjava/java/net/InetSocketAddress.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
13374,
1435,
565,
288,
202,
2463,
1756,
397,
3091,
18,
2816,
1085,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
377,
1071,
727,
509,
13374,
1435,
565,
288,
202,
2463,
1756,
397,
3091,
18,
2816,
1085,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } } StringBuffer result = new StringBuffer(getBaseName()); RubyClass objectClass = getRuntime().getObject(); for (RubyModule p = this.getParent(); p != null && p != objectClass; p = p.getParent()) { result.insert(0, "::").insert(0, p.getBaseName()); } return result.toString(); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
288,
3639,
309,
261,
588,
29907,
1435,
422,
446,
13,
288,
540,
202,
430,
261,
291,
797,
10756,
288,
7734,
327,
6619,
32,
6,
397,
315,
797,
6,
397,
6398,
1611,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
288,
3639,
309,
261,
588,
29907,
1435,
422,
446,
13,
288,
540,
202,
430,
261,
291,
797,
10756,
288,
7734,
327,
6619,
32,
6,
397,
315,
797,
6,
397,
6398,
1611,
9... | ||
private static int PushLocalFrame(VM_JNIEnvironment env) { | private static int PushLocalFrame(VM_JNIEnvironment env, int capacity) { | private static int PushLocalFrame(VM_JNIEnvironment env) { if (traceJNI) VM.sysWrite("JNI called: PushLocalFrame \n"); VM.sysWrite("JNI ERROR: PushLocalFrame not implemented yet, exiting ...\n"); VM.sysExit(VM.exitStatusUnsupportedInternalOp); return -1; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/6092d61f50a21ad2a2c1edb89aa22449a5d0a9c1/VM_JNIFunctions.java/buggy/rvm/src/vm/jni/VM_JNIFunctions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
8547,
2042,
3219,
12,
7397,
67,
46,
50,
45,
5494,
1550,
16,
509,
7519,
13,
288,
565,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
8547,
2042,
3219,
12,
7397,
67,
46,
50,
45,
5494,
1550,
16,
509,
7519,
13,
288,
565,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30... |
ListBandDesign header = createListBand( headerSlot ); header.setBandType( ListBandDesign.BAND_HEADER ); listItem.setHeader( header ); listItem.setRepeatHeader( handle.repeatHeader( ) ); | if ( headerSlot.getCount( ) > 0 ) { ListBandDesign header = createListBand( headerSlot ); header.setBandType( ListBandDesign.BAND_HEADER ); listItem.setHeader( header ); listItem.setRepeatHeader( handle.repeatHeader( ) ); } | public void visitList( ListHandle handle ) { // Create ListItem ListItemDesign listItem = new ListItemDesign( ); setupListingItem( listItem, handle ); // Header SlotHandle headerSlot = handle.getHeader( ); ListBandDesign header = createListBand( headerSlot ); header.setBandType( ListBandDesign.BAND_HEADER ); listItem.setHeader( header ); listItem.setRepeatHeader( handle.repeatHeader( ) ); // Multiple groups SlotHandle groupsSlot = handle.getGroups( ); for ( int i = 0; i < groupsSlot.getCount( ); i++ ) { apply( groupsSlot.get( i ) ); if ( currentElement != null ) { GroupDesign group = (GroupDesign) currentElement; group.setGroupLevel(i); listItem.addGroup( group ); } } // List detail SlotHandle detailSlot = handle.getDetail( ); ListBandDesign detail =createListBand( detailSlot ); detail.setBandType( ListBandDesign.BAND_DETAIL ); listItem.setDetail( detail ); // List Footer SlotHandle footerSlot = handle.getFooter( ); ListBandDesign footer =createListBand( footerSlot ); footer.setBandType( ListBandDesign.BAND_DETAIL ); listItem.setFooter( footer ); currentElement = listItem; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/aae2e17b3a4d3ea45b489ef2f0c59ab5e9576e76/EngineIRVisitor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
682,
12,
987,
3259,
1640,
262,
202,
95,
202,
202,
759,
1788,
987,
1180,
202,
202,
13575,
15478,
19859,
273,
394,
987,
1180,
15478,
12,
11272,
202,
202,
8401,
19081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
682,
12,
987,
3259,
1640,
262,
202,
95,
202,
202,
759,
1788,
987,
1180,
202,
202,
13575,
15478,
19859,
273,
394,
987,
1180,
15478,
12,
11272,
202,
202,
8401,
19081,
... |
notifyViewerSelectionManager(getSelectedRange().x, getSelectedRange().y); | setModel(model, null); | public void setModel(IStructuredModel model, IAnnotationModel annotationModel) { // due to various forms of init, sometimes // the same variable is set more than once // with the same data, causing unneccesary updates, so // we do nothing if someones' trying to set the same // model we already have // if ((fModel != null) && (fModel == model) && (getDocument() == model.getStructuredDocument())) { return; } fModel = model; setDocument(model.getStructuredDocument(), annotationModel); // CaretEvent is not sent to ViewerSelectionManager after Save As. // Need to notify ViewerSelectionManager here. notifyViewerSelectionManager(getSelectedRange().x, getSelectedRange().y); } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/425ffe7b68526a8574007dbae9d4ecfb097cff08/StructuredTextViewer.java/buggy/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19027,
12,
45,
30733,
1488,
938,
16,
467,
3257,
1488,
3204,
1488,
13,
288,
202,
202,
759,
6541,
358,
11191,
10138,
434,
1208,
16,
16594,
202,
202,
759,
326,
1967,
2190,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19027,
12,
45,
30733,
1488,
938,
16,
467,
3257,
1488,
3204,
1488,
13,
288,
202,
202,
759,
6541,
358,
11191,
10138,
434,
1208,
16,
16594,
202,
202,
759,
326,
1967,
2190,
3... |
public int TRIMA_Lookback( int optInTimePeriod ){ return optInTimePeriod-1;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
474,
6566,
5535,
67,
9794,
823,
12,
474,
3838,
382,
26540,
15329,
2463,
3838,
382,
26540,
17,
21,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
474,
6566,
5535,
67,
9794,
823,
12,
474,
3838,
382,
26540,
15329,
2463,
3838,
382,
26540,
17,
21,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | ||
public void run(ITask task) {// MylarPlugin.getContextManager().actionObserved(this, Boolean.FALSE.toString()); try { if (task != null) { MylarTaskListPlugin.getTaskListManager().deactivateTask(task); TaskListView.getDefault().refreshAndFocus(); TaskUiUtil.closeEditorInActivePage(task);// TaskListView.getDefault().closeTaskEditors(task, page); } } catch (Exception e) { MylarStatusHandler.log(e, " Closing task editor on task deactivation failed"); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/df356cadf6d39e7b743e798df40d5dec91871dcc/TaskDeactivateAction.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/actions/TaskDeactivateAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
2681,
12,
1285,
835,
4146,
15329,
759,
202,
202,
12062,
7901,
3773,
18,
29120,
1318,
7675,
1128,
9013,
2155,
12,
2211,
16,
5507,
18,
21053,
18,
10492,
10663,
202,
202,
698... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
2681,
12,
1285,
835,
4146,
15329,
759,
202,
202,
12062,
7901,
3773,
18,
29120,
1318,
7675,
1128,
9013,
2155,
12,
2211,
16,
5507,
18,
21053,
18,
10492,
10663,
202,
202,
698... | ||
layout(); | layout(false); | public void setBorderVisible(boolean show) { checkWidget(); if (showBorder == show) return; showBorder = show; if (showBorder) { borderLeft = borderTop = borderRight = borderBottom = 1; if ((getStyle() & SWT.FLAT)== 0) highlight = 2; } else { borderBottom = borderTop = borderLeft = borderRight = 0; highlight = 0; } layout(); redraw();} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/a6b48034db4656132c943ef122f732c8fe096a59/ViewForm.java/clean/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ViewForm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
25715,
6207,
12,
6494,
2405,
13,
288,
202,
1893,
4609,
5621,
202,
430,
261,
4500,
8107,
422,
2405,
13,
327,
31,
202,
202,
4500,
8107,
273,
2405,
31,
202,
430,
261,
4500,
8107,
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,
1071,
918,
25715,
6207,
12,
6494,
2405,
13,
288,
202,
1893,
4609,
5621,
202,
430,
261,
4500,
8107,
422,
2405,
13,
327,
31,
202,
202,
4500,
8107,
273,
2405,
31,
202,
430,
261,
4500,
8107,
13,... |
specialGetArrayDesignForPhysicalBioAssay( ( ( MeasuredBioAssay ) bioAssay ).getFeatureExtraction() .getPhysicalBioAssaySource(), result ); | specialConvertAssociationsForPhysicalBioAssay( ( ( MeasuredBioAssay ) bioAssay ) .getFeatureExtraction().getPhysicalBioAssaySource(), result ); | public ubic.gemma.model.expression.bioAssay.BioAssay convertDerivedBioAssay( DerivedBioAssay mageObj ) { if ( mageObj == null ) return null; ubic.gemma.model.expression.bioAssay.BioAssay result = convertBioAssay( mageObj ); // Attempt to get the array design for this bioassay. ( so far this hasn't worked - the information isn't linked // to the derived bioassay!) List map = mageObj.getDerivedBioAssayMap(); if ( map.size() > 0 ) { BioAssayMap dbap = ( BioAssayMap ) map.get( 0 ); List bioAssays = dbap.getSourceBioAssays(); // if ( bioAssays.size() == 0 ) log.debug( "DerivedBioAssayMap, but no sourcebioAssays" ); if ( bioAssays.size() > 1 ) log.warn( "More than one sourcebioAssay for a MeasuredBioAssay!" ); for ( Iterator iter = bioAssays.iterator(); iter.hasNext(); ) { BioAssay bioAssay = ( BioAssay ) iter.next(); if ( bioAssay instanceof MeasuredBioAssay ) { specialGetArrayDesignForPhysicalBioAssay( ( ( MeasuredBioAssay ) bioAssay ).getFeatureExtraction() .getPhysicalBioAssaySource(), result ); } else { log.error( "What kind of bioassay is associated?: " + bioAssay.getClass().getName() ); } } } convertAssociations( mageObj, result ); return result; } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/3c425ed09e57d6c9d829aedb2fb6033a1097bae8/MageMLConverterHelper.java/buggy/gemma-core/src/main/java/ubic/gemma/loader/expression/mage/MageMLConverterHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13910,
335,
18,
23465,
2540,
18,
2284,
18,
8692,
18,
21010,
2610,
528,
18,
38,
1594,
2610,
528,
1765,
21007,
38,
1594,
2610,
528,
12,
14969,
2950,
38,
1594,
2610,
528,
312,
410,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13910,
335,
18,
23465,
2540,
18,
2284,
18,
8692,
18,
21010,
2610,
528,
18,
38,
1594,
2610,
528,
1765,
21007,
38,
1594,
2610,
528,
12,
14969,
2950,
38,
1594,
2610,
528,
312,
410,
2... |
public org.quickfix.field.PartyRole getPartyRole() throws FieldNotFound { org.quickfix.field.PartyRole value = new org.quickfix.field.PartyRole(); | public quickfix.field.PartyRole getPartyRole() throws FieldNotFound { quickfix.field.PartyRole value = new quickfix.field.PartyRole(); | public org.quickfix.field.PartyRole getPartyRole() throws FieldNotFound { org.quickfix.field.PartyRole value = new org.quickfix.field.PartyRole(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix44/NewOrderMultileg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
1689,
7325,
2996,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
460,
273,
394,
2358,
18,
19525,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
1689,
7325,
2996,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
460,
273,
394,
2358,
18,
19525,... |
list.setFont(defaultFont); | list.setFont(getDefaultFont()); | public NewProgressViewer(Composite parent, int flags) { super(parent, flags); Tree c = getTree(); if (c instanceof Tree) c.dispose(); dialogContext = (flags & SWT.BORDER) != 0; // hack to determine context finishedJobs = FinishedJobs.getInstance(); finishedJobs.addListener(this); Display display = parent.getDisplay(); handCursor = new Cursor(display, SWT.CURSOR_HAND); normalCursor = new Cursor(display, SWT.CURSOR_ARROW); defaultJobIcon = ImageSupport.getImageDescriptor( "icons/full/progress/progress_task.gif").createImage(display); //$NON-NLS-1$ cancelJobIcon = ImageSupport.getImageDescriptor( "icons/full/elcl16/progress_stop.gif").createImage(display); //$NON-NLS-1$ cancelJobDIcon = ImageSupport.getImageDescriptor( "icons/full/dlcl16/progress_stop.gif").createImage(display); //$NON-NLS-1$ clearJobIcon = ImageSupport.getImageDescriptor( "icons/full/elcl16/progress_rem.gif").createImage(display); //$NON-NLS-1$ clearJobDIcon = ImageSupport.getImageDescriptor( "icons/full/dlcl16/progress_rem.gif").createImage(display); //$NON-NLS-1$ boldFont = defaultFont; FontData fds[] = defaultFont.getFontData(); if (fds.length > 0) { FontData fd = fds[0]; int h = fd.getHeight(); boldFont = new Font(display, fd.getName(), h, fd.getStyle() | SWT.BOLD); smallerFont = new Font(display, fd.getName(), h, fd.getStyle()); } int shift = isCarbon ? -25 : -10; // Mac has different Gamma value lightColor = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND); darkColor = new Color(display, Math.max(0, lightColor.getRed() + shift), Math.max(0, lightColor.getGreen() + shift), Math.max(0, lightColor .getBlue() + shift)); textColor = display.getSystemColor(SWT.COLOR_LIST_FOREGROUND); selectedTextColor = display .getSystemColor(SWT.COLOR_LIST_SELECTION_TEXT); selectedColor = display.getSystemColor(SWT.COLOR_LIST_SELECTION); linkColor = display.getSystemColor(SWT.COLOR_DARK_BLUE); linkColor2 = display.getSystemColor(SWT.COLOR_BLUE); errorColor = display.getSystemColor(SWT.COLOR_DARK_RED); errorColor2 = display.getSystemColor(SWT.COLOR_RED); highlightColor = display.getSystemColor(SWT.COLOR_DARK_RED); scroller = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL | flags); int height = defaultFont.getFontData()[0].getHeight(); scroller.getVerticalBar().setIncrement(height * 2); scroller.setExpandHorizontal(true); scroller.setExpandVertical(true); list = new Composite(scroller, SWT.NONE); list.setFont(defaultFont); list.setBackground(lightColor); list.setLayout(new ListLayout()); list.addListener(SWT.MouseDown, new Listener() { public void handleEvent(Event event) { select(null, event); // clear selection } }); scroller.addListener(SWT.Dispose, new Listener() { public void handleEvent(Event event) { finishedJobs.removeListener(NewProgressViewer.this); defaultJobIcon.dispose(); cancelJobIcon.dispose(); cancelJobDIcon.dispose(); clearJobIcon.dispose(); clearJobDIcon.dispose(); handCursor.dispose(); normalCursor.dispose(); if (boldFont != defaultFont) boldFont.dispose(); if (smallerFont != defaultFont) smallerFont.dispose(); darkColor.dispose(); NewProgressViewer.this.handleDispose(null); } }); scroller.setContent(list); // refresh UI refresh(true); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/55f2c478759fd3ded9d317bd7990fdd9e1ccbf88/NewProgressViewer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/NewProgressViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1166,
5491,
18415,
12,
9400,
982,
16,
509,
2943,
13,
288,
3639,
2240,
12,
2938,
16,
2943,
1769,
3639,
4902,
276,
273,
15867,
5621,
3639,
309,
261,
71,
1276,
4902,
13,
5411,
276,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1166,
5491,
18415,
12,
9400,
982,
16,
509,
2943,
13,
288,
3639,
2240,
12,
2938,
16,
2943,
1769,
3639,
4902,
276,
273,
15867,
5621,
3639,
309,
261,
71,
1276,
4902,
13,
5411,
276,
1... |
public void bracketingTheMinimum(GVector kPoint, GVector searchDirection, PotentialFunction forceFieldFunction, int iterNum) { //System.out.println("Bracketing the minimum:"); //System.out.print("X" + iterNum + " = " + kPoint + " "); //System.out.println("f(X" + iterNum + ") = " + forceFieldFunction.energyFunction(kPoint)); direction.setSize(searchDirection.getSize()); direction.set(searchDirection); scaleDirection.setSize(searchDirection.getSize()); GVector xa = new GVector(kPoint); lambdaa = 0; fxa = forceFieldFunction.energyFunction(xa); if (fxa < 0) { direction.scale(-1); f = -1; fxa = f * fxa; } GVector xb = new GVector(kPoint); lambdab = 2; scaleDirection.set(direction); scaleDirection.scale(lambdab); xb.add(scaleDirection); fxb = f * forceFieldFunction.energyFunction(xb); GVector xc = new GVector(kPoint.getSize()); //System.out.print("lambdaa = " + lambdaa + " "); //System.out.println("fxa = " + fxa); //System.out.print("lambdab = " + lambdab + " "); //System.out.println("fxb = " + fxb); //System.out.println("f = " + f); boolean finish = false; if (fxb < fxa) { //System.out.println("The energy decrease with the current step size. The stepsize will be increase by 20%"); lambdac = 1.2 * lambdab; xc.set(kPoint); scaleDirection.set(direction); scaleDirection.scale(lambdac); xc.add(scaleDirection); fxc = f * forceFieldFunction.energyFunction(xc); //System.out.print("lambdaa = " + lambdaa + " "); //System.out.println("fxa = " + fxa); //System.out.print("lambdab = " + lambdab + " "); //System.out.println("fxb = " + fxb); //System.out.print("lambdac = " + lambdac + " "); //System.out.println("fxc = " + fxc); while (finish == false) { if (fxc > fxb) { finish = true; } else { xa.set(xb); lambdaa = lambdab; fxa = fxb; xb.set(xc); lambdab = lambdac; fxb = fxc; //System.out.println("The energy decrease with the current step size. The stepsize will be increase by 20%"); lambdac = 1.2 * lambdac; xc.set(kPoint); scaleDirection.set(direction); scaleDirection.scale(lambdac); xc.add(scaleDirection); fxc = f * forceFieldFunction.energyFunction(xc); //System.out.print("lambdaa = " + lambdaa + " "); //System.out.println("fxa = " + fxa); //System.out.print("lambdab = " + lambdab + " "); //System.out.println("fxb = " + fxb); //System.out.print("lambdac = " + lambdac + " "); //System.out.println("fxc = " + fxc); } } } else { while (finish == false) { //System.out.println("The energy increase with the current step size. The step size will be halve"); xc.set(xb); lambdac = lambdab; fxc = fxb; lambdab = lambdab / 2; xb.set(kPoint); scaleDirection.set(direction); scaleDirection.scale(lambdab); xb.add(scaleDirection); fxb = f * forceFieldFunction.energyFunction(xb); //System.out.print("lambdaa = " + lambdaa + " "); //System.out.println("fxa = " + fxa); //System.out.print("lambdab = " + lambdab + " "); //System.out.println("fxb = " + fxb); //System.out.print("lambdac = " + lambdac + " "); //System.out.println("fxc = " + fxc); if (fxb < fxa) { finish = true; } if (lambdab < 0.0000000000000001) { finish = true; } } } if (fxb < fxa) { arbitraryStepSize = lambdab; } else { arbitraryStepSize = lambdaa; } //System.out.println(""); //System.out.println("ArbitraryStep: "); //System.out.println("arbitraryStepSize = " + arbitraryStepSize); return; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/9adcbd5769512fe518277f87ee5cc7c84de1ccb0/LineSearch.java/buggy/src/org/openscience/cdk/modeling/forcefield/LineSearch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
21025,
310,
1986,
13042,
12,
25269,
386,
778,
2148,
16,
43,
5018,
3072,
8212,
16,
24947,
2083,
5734,
974,
2083,
16,
474,
2165,
2578,
15329,
202,
202,
759,
3163,
18,
659,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
21025,
310,
1986,
13042,
12,
25269,
386,
778,
2148,
16,
43,
5018,
3072,
8212,
16,
24947,
2083,
5734,
974,
2083,
16,
474,
2165,
2578,
15329,
202,
202,
759,
3163,
18,
659,
... | ||
assertNumberOf("proposals", proposals.size(), 1); | assertNumberOf("proposals", proposals.size(), 2); | public void testNativeMethodWithBody() throws Exception { IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null); StringBuffer buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public native void foo() {\n"); buf.append(" }\n"); buf.append("}\n"); ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null); CompilationUnit astRoot= AST.parseCompilationUnit(cu, true); ArrayList proposals= collectCorrections(cu, astRoot); assertNumberOf("proposals", proposals.size(), 1); assertCorrectLabels(proposals); CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0); String preview1= proposal.getCompilationUnitChange().getPreviewContent(); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" }\n"); buf.append("}\n"); String expected1= buf.toString(); /* no body proposal= (CUCorrectionProposal) proposals.get(1); String preview2= proposal.getCompilationUnitChange().getPreviewContent(); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public abstract class E {\n"); buf.append(" public abstract int foo();\n"); buf.append("}\n"); String expected2= buf.toString(); */ assertEqualStringsIgnoreOrder(new String[] { preview1 }, new String[] { expected1 }); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/d8cdb97f3fe970aed161fcf2c5e8dac3b0822890/ModifierCorrectionsQuickFixTest.java/buggy/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
9220,
1305,
1190,
2250,
1435,
1216,
1185,
288,
1082,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
9220,
1305,
1190,
2250,
1435,
1216,
1185,
288,
1082,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1... |
input.setKeySpeed(100); | protected void simpleInitGame() { // Point to a URL of my model URL model=HelloModelLoading.class.getClassLoader().getResource("jmetest/data/model/maggie.obj"); // Create something to convert .obj format to .jme FormatConverter converter=new ObjToJme(); // Point the converter to where it will find the .mtl file from converter.setProperty("mtllib",model); // This byte array will hold my .jme file ByteArrayOutputStream BO=new ByteArrayOutputStream(); // This will read the .jme format and convert it into a scene graph JmeBinaryReader jbr=new JmeBinaryReader(); // Use an exact BoundingSphere bounds BoundingSphere.useExactBounds=true; Node meshParent=null; try { // Use the format converter to convert .obj to .jme converter.convert(model.openStream(), BO); // Load the binary .jme format into a scene graph Node maggie=jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray())); meshParent=(Node) maggie.getChild(0); } catch (IOException e) { // Just in case anything happens System.out.println("Damn exceptions!" + e); e.printStackTrace(); System.exit(0); } // Create a node to hold my cLOD mesh objects Node clodNode=new Node("Clod node"); // For each mesh in maggie for (int i=0;i<meshParent.getQuantity();i++){ // Create an AreaClodMesh for that mesh. Let it compute records automatically AreaClodMesh acm=new AreaClodMesh("part"+i,(TriMesh) meshParent.getChild(i),null); acm.setModelBound(new BoundingSphere()); acm.updateModelBound(); // Allow 1/2 of a triangle in every pixel on the screen in the bounds. acm.setTrisPerPixel(.5f); // Force a move of 2 units before updating the mesh geometry acm.setDistanceTolerance(2); // Give the clodMesh node the material state that the original had. acm.setRenderState(meshParent.getChild(i).getRenderStateList()[RenderState.RS_MATERIAL]); // Attach clod node. clodNode.attachChild(acm); } // Speed up key movement. input.setKeySpeed(100); // Attach the clod mesh at the origin. clodNode.setLocalScale(.1f); rootNode.attachChild(clodNode); // Attach the original at -15,0,0 meshParent.setLocalScale(.1f); meshParent.setLocalTranslation(new Vector3f(-15,0,0)); rootNode.attachChild(meshParent); input.clearKeyboardActions(); input.clearMouseActions(); input.addKeyboardAction("exit",KeyInput.KEY_ESCAPE,new KeyExitAction(this)); Vector3f[]cameraPoints=new Vector3f[]{ new Vector3f(0,0,0), new Vector3f(0,5,20), new Vector3f(0,10,40), new Vector3f(0,20,90), new Vector3f(0,25,150), new Vector3f(0,30,200) }; BezierCurve bc=new BezierCurve("camera path",cameraPoints); cn=new CameraNode("camera node",display.getRenderer().getCamera()); CurveController cc=new CurveController(bc,cn); cc.setActive(true); cc.setUpVector(new Vector3f(0,1,0)); cc.setAutoRotation(false); cc.setRepeatType(Controller.RT_CYCLE); cc.setSpeed(.1f); cn.addController(cc);// rootNode.setForceView(true); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/71de8e2a1358dc7c08dd8fd2daecf0bcd07579ec/HelloLOD.java/buggy/src/jmetest/TutorialGuide/HelloLOD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4143,
2570,
12496,
1435,
288,
3639,
368,
4686,
358,
279,
1976,
434,
3399,
938,
3639,
1976,
938,
33,
18601,
1488,
10515,
18,
1106,
18,
588,
7805,
7675,
588,
1420,
2932,
78,
1057... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4143,
2570,
12496,
1435,
288,
3639,
368,
4686,
358,
279,
1976,
434,
3399,
938,
3639,
1976,
938,
33,
18601,
1488,
10515,
18,
1106,
18,
588,
7805,
7675,
588,
1420,
2932,
78,
1057... | |
VM.sysWrite("JNI ERROR: ToReflectedField not implemented yet, exiting ...\n"); VM.sysExit(VM.exitStatusUnsupportedInternalOp); return -1; | VM_Field field = VM_MemberReference.getMemberRef(fieldID).asFieldReference().resolve(); return env.pushJNIRef (java.lang.reflect.JikesRVMSupport.createField(field)); | private static int ToReflectedField(VM_JNIEnvironment env) { if (traceJNI) VM.sysWrite("JNI called: ToReflectedField \n"); VM.sysWrite("JNI ERROR: ToReflectedField not implemented yet, exiting ...\n"); VM.sysExit(VM.exitStatusUnsupportedInternalOp); return -1; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/98179d29994efc2448ad73f979061d014897af7b/VM_JNIFunctions.java/buggy/rvm/src/vm/jni/VM_JNIFunctions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
2974,
24452,
329,
974,
12,
7397,
67,
46,
50,
45,
5494,
1550,
13,
288,
565,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
2974,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
2974,
24452,
329,
974,
12,
7397,
67,
46,
50,
45,
5494,
1550,
13,
288,
565,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
2974,
24... |
int totalLen = comm.getTdsShort(); | final int totalLen = comm.getTdsShort(); | private PacketColumnNamesResult processColumnNames() throws java.io.IOException, net.sourceforge.jtds.jdbc.TdsException { Columns columns = new Columns(); int totalLen = comm.getTdsShort(); int bytesRead = 0; int i = 0; while (bytesRead < totalLen) { int colNameLen = comm.getByte(); String colName = encoder.getString( comm.getBytes(colNameLen, false), 0, colNameLen); bytesRead = bytesRead + 1 + colNameLen; i++; columns.setName(i, colName); columns.setLabel(i, colName); } currentContext = new Context(columns, encoder); return new PacketColumnNamesResult(columns); } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/d40d3f03f21e7087ea2cd7d2b5b43625542770cc/Tds.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11114,
20718,
1253,
1207,
20718,
1435,
5411,
1216,
2252,
18,
1594,
18,
14106,
16,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
288,
3639,
14962,
2168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11114,
20718,
1253,
1207,
20718,
1435,
5411,
1216,
2252,
18,
1594,
18,
14106,
16,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
288,
3639,
14962,
2168,
... |
return null; } | return null; } | protected String getInitialScopeId() { return null; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/afe32b7cd5a2841a41e657289a0d2b7cf1ef5416/PartSite.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartSite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
24044,
3876,
548,
1435,
288,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
24044,
3876,
548,
1435,
288,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
int maxWidth = FieldDecorationRegistry.getDefault() .geMaximumDecorationWidth(); | int newWidth = widthOf(decData.decoration.getImage()); | private void updateControlAttachments(int index, FieldDecorationData decData) { FormData formData = (FormData) control.getLayoutData(); int maxWidth = FieldDecorationRegistry.getDefault() .geMaximumDecorationWidth(); switch (index) { case LEFT_TOP: if (decDatas[LEFT_BOTTOM] == null || decDatas[LEFT_BOTTOM].data.width < maxWidth) { formData.left = new FormAttachment(decData.label); } else formData = null; break; case LEFT_BOTTOM: if (decDatas[LEFT_TOP] == null || decDatas[LEFT_TOP].data.width < maxWidth) { formData.left = new FormAttachment(decData.label); } else formData = null; break; case RIGHT_TOP: if (decDatas[RIGHT_BOTTOM] == null || decDatas[RIGHT_BOTTOM].data.width < maxWidth) { formData.right = new FormAttachment(decData.label); } else formData = null; break; case RIGHT_BOTTOM: if (decDatas[RIGHT_TOP] == null || decDatas[RIGHT_TOP].data.width < maxWidth) { formData.right = new FormAttachment(decData.label); } else formData = null; break; default: return; } if (formData != null) { // Form data was updated. control.setLayoutData(formData); form.layout(); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4a358afc8d93c75badf1e31f688464be70e02b8d/DecoratedField.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
3367,
12961,
12,
474,
770,
16,
2286,
7859,
367,
751,
2109,
751,
13,
288,
202,
202,
30079,
14224,
273,
261,
30079,
13,
3325,
18,
588,
3744,
751,
5621,
202,
202,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
3367,
12961,
12,
474,
770,
16,
2286,
7859,
367,
751,
2109,
751,
13,
288,
202,
202,
30079,
14224,
273,
261,
30079,
13,
3325,
18,
588,
3744,
751,
5621,
202,
202,
474... |
isDragging = false; | public void mousePressed(MouseEvent event) { // Check to see that the slider is enabled before proceeeding. if (!slider.isEnabled()) return; // Get mouse x, y positions. currentMouseX = event.getX(); currentMouseY = event.getY(); // If the slider has {@link #setFocusEnabled} true then // request focus. if (slider.isRequestFocusEnabled()) slider.requestFocus(); // Check to see if the thumb was clicked. if (thumbRect.contains(currentMouseX, currentMouseY)) { // Depending on orientation of the mouse. switch (slider.getOrientation()) { case JSlider.HORIZONTAL: offset = currentMouseX-thumbRect.x; break; case JSlider.VERTICAL: offset = currentMouseY-thumbRect.y; } isDragging = true; return; } if (showArrows) { if (minArrowRect.contains(currentMouseX, currentMouseY)) { int value = slider.getValue(); if (value > slider.getMinimum()) { scrollTimer.stop(); scrollListener.setScrollByBlock(false); scrollListener.setDirection(OneKnobSliderUI.NEGATIVE_SCROLL); scrollTimer.start(); slider.repaint(); } isDragging = false; return; } if (maxArrowRect.contains(currentMouseX, currentMouseY)) { int value = slider.getValue(); if (value < slider.getMaximum()) { scrollTimer.stop(); scrollListener.setScrollByBlock(false); scrollListener.setDirection( OneKnobSliderUI.POSITIVE_SCROLL); scrollTimer.start(); slider.repaint(); } isDragging = false; return; } } // We have clicked outside of the thumb and onto the track. isDragging = false; slider.repaint(); } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/1c6472710140ce7700bb1cb3c30b584ae3057a53/OneKnobSliderUI.java/clean/SRC/org/openmicroscopy/shoola/util/ui/slider/OneKnobSliderUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
24624,
12,
9186,
1133,
871,
13,
3196,
202,
95,
1082,
202,
759,
2073,
358,
2621,
716,
326,
18442,
353,
3696,
1865,
450,
311,
73,
329,
310,
18,
1875,
202,
430,
16051... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
24624,
12,
9186,
1133,
871,
13,
3196,
202,
95,
1082,
202,
759,
2073,
358,
2621,
716,
326,
18442,
353,
3696,
1865,
450,
311,
73,
329,
310,
18,
1875,
202,
430,
16051... | |
return value == null ? defaultValue : Long.parseLong(value); | if (value == null) { return defaultValue; } try { return Long.parseLong(value); } catch (NumberFormatException e) { throw (NumberFormatException) new NumberFormatException( "The value of the " + name + " property must be a valid " + "long: \"" + value + "\"").initCause(e); } | public static long getLongProperty( Properties properties, String name, long defaultValue) { String value = properties.getProperty(name); return value == null ? defaultValue : Long.parseLong(value); } | 55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/3be8ecaaa7c3a5e0596ab32fe08bd5a1b114ec27/PropertiesUtil.java/buggy/src/server/j2se/com/sun/sgs/impl/util/PropertiesUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1525,
11105,
1396,
12,
202,
2297,
1790,
16,
514,
508,
16,
1525,
4593,
13,
565,
288,
202,
780,
460,
273,
1790,
18,
588,
1396,
12,
529,
1769,
202,
430,
261,
1132,
422,
446,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1525,
11105,
1396,
12,
202,
2297,
1790,
16,
514,
508,
16,
1525,
4593,
13,
565,
288,
202,
780,
460,
273,
1790,
18,
588,
1396,
12,
529,
1769,
202,
430,
261,
1132,
422,
446,
1... |
} catch(ArrayIndexOutOfBoundsException aioobe) { setRow(getRow() + 1); } | } catch(ArrayIndexOutOfBoundsException aioobe) { setRow(getRow() + 1); } | public void mOneRowMinus() { if(getRow() >= 0) { if(getRow() > 0) { setRow(getRow() - 1); } setAtEnd(false); try {// setAllVariables(); table.changeSelection(getRow(), 2, false, false); } catch(ArrayIndexOutOfBoundsException aioobe) { setRow(getRow() + 1); } } if(getRow() == 0){ setAtBegining(true); } } | 12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/355f2fb7070ecb8a0f602a1fa44e0f58ef00fb55/FrmCopiuri.java/buggy/src/imakante/sales/FrmCopiuri.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
918,
312,
3335,
1999,
18434,
1435,
288,
3639,
309,
12,
588,
1999,
1435,
1545,
374,
13,
288,
5411,
309,
12,
588,
1999,
1435,
405,
374,
13,
288,
7734,
444,
1999,
12,
588,
1999,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
918,
312,
3335,
1999,
18434,
1435,
288,
3639,
309,
12,
588,
1999,
1435,
1545,
374,
13,
288,
5411,
309,
12,
588,
1999,
1435,
405,
374,
13,
288,
7734,
444,
1999,
12,
588,
1999,... |
setVisible(false); | dispose(); | private void closeOrKeepDialog() { if(keepDialog.isSelected()) return; else { GUIUtilities.saveGeometry(this,"search"); setVisible(false); } } | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/e558666642895259956d98b00ac352973beb1d14/SearchDialog.java/buggy/org/gjt/sp/jedit/search/SearchDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1746,
1162,
11523,
6353,
1435,
202,
95,
202,
202,
430,
12,
10102,
6353,
18,
291,
7416,
10756,
1082,
202,
2463,
31,
202,
202,
12107,
202,
202,
95,
1082,
202,
43,
5370,
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,
1152,
918,
1746,
1162,
11523,
6353,
1435,
202,
95,
202,
202,
430,
12,
10102,
6353,
18,
291,
7416,
10756,
1082,
202,
2463,
31,
202,
202,
12107,
202,
202,
95,
1082,
202,
43,
5370,
11... |
runtime.getRubyClass()); | (ArrayStack)threadContext.getClassStack().clone()); | public void visitDefsNode(DefsNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw new SecurityError(runtime, "Insecure; can't define singleton method."); } if (receiver.isFrozen()) { throw new FrozenError(runtime, "object"); } if (! receiver.singletonMethodsAllowed()) { throw new TypeError(runtime, "can't define singleton method \"" + iVisited.getName() + "\" for " + receiver.getType()); } RubyClass rubyClass = receiver.getSingletonClass(); if (runtime.getSafeLevel() >= 4) { ICallable method = (ICallable) rubyClass.getMethods().get(iVisited.getName()); if (method != null) { throw new SecurityError(runtime, "Redefining method prohibited."); } } DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), Visibility.PUBLIC, runtime.getRubyClass()); iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); rubyClass.addMethod(iVisited.getName(), newMethod); receiver.callMethod("singleton_method_added", runtime.newSymbol(iVisited.getName())); result = runtime.getNil(); } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/7fd129dfcc9660fb6d3c382cc48a2692d03890ca/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
14554,
907,
12,
14554,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
5971,
273,
5302,
12,
77,
30019,
18,
588,
12952,
907,
10663,
3639,
309,
261,
9448,
18,
588,
9890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
14554,
907,
12,
14554,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
5971,
273,
5302,
12,
77,
30019,
18,
588,
12952,
907,
10663,
3639,
309,
261,
9448,
18,
588,
9890,... |
waitForIndexer(fPdom, file, MAX_TIME_INDEXER); | waitForIndexer(fIndex, file, MAX_TIME_INDEXER); | public void _testAutomaticConstructor_156668() throws Exception { String content = readTaggedComment("testAutomaticConstructor"); IFile file= createFile(getProject(), "testConstructor.cpp", content); waitForIndexer(fPdom, file, MAX_TIME_INDEXER); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); CEditor editor= (CEditor) IDE.openEditor(page, file); editor.selectAndReveal(content.indexOf("MyClass()"), 2); openCallHierarchy(editor); Tree tree = getCHTree(page); checkTreeNode(tree, 0, "MyClass::MyClass()"); checkTreeNode(tree, 0, 0, "automatic()"); editor.selectAndReveal(content.indexOf("~MyClass"), 2); openCallHierarchy(editor); checkTreeNode(tree, 0, "MyClass::~MyClass()"); checkTreeNode(tree, 0, 0, "automatic()"); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f5a4ba1d7638b16bde80c2f1086c78aa03af1f90/BasicCppCallHierarchyTest.java/clean/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/callhierarchy/BasicCppCallHierarchyTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
389,
3813,
7150,
4941,
6293,
67,
3600,
6028,
9470,
1435,
1216,
1185,
288,
202,
202,
780,
913,
273,
855,
18674,
4469,
2932,
3813,
7150,
4941,
6293,
8863,
202,
202,
45,
812,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
3813,
7150,
4941,
6293,
67,
3600,
6028,
9470,
1435,
1216,
1185,
288,
202,
202,
780,
913,
273,
855,
18674,
4469,
2932,
3813,
7150,
4941,
6293,
8863,
202,
202,
45,
812,
... |
if (option.equals("-getRevisionNamesFromFilenames")) { | if (option.equals("-overrideRevisionNames")) { | protected void handleOption(String option, String optionExtraPart) throws IOException { if (option.equals("-getRevisionNamesFromFilenames")) { if (optionExtraPart.length() == 0) getRevisionNamesFromFiles = true; else getRevisionNamesFromFiles = Boolean.parseBoolean(optionExtraPart); } else throw new IllegalArgumentException("no option " + option); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/eefb9576df97ca214907a2f7ca1cb2564095f837/Update.java/clean/findbugs/src/java/edu/umd/cs/findbugs/workflow/Update.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1640,
1895,
12,
780,
1456,
16,
514,
1456,
7800,
1988,
13,
9506,
202,
15069,
1860,
288,
1082,
202,
430,
261,
3482,
18,
14963,
2932,
17,
588,
7939,
1557,
1265,
25579,
6809,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1117,
918,
1640,
1895,
12,
780,
1456,
16,
514,
1456,
7800,
1988,
13,
9506,
202,
15069,
1860,
288,
1082,
202,
430,
261,
3482,
18,
14963,
2932,
17,
588,
7939,
1557,
1265,
25579,
6809,... |
al.sourcefv(source[0],AL.POSITION,Sys.getDirectBufferAddress(source0Pos)); | al.sourcefv(source.getInt(4*0),AL.POSITION,Sys.getDirectBufferAddress(source0Pos)); | protected void i_GainTest() { int error; int[] source = new int[2]; int ch = -1; ByteBuffer source0Pos = ByteBuffer.allocateDirect(12); source0Pos.order(ByteOrder.nativeOrder()); source0Pos.putFloat(2.0f); source0Pos.putFloat(0.0f); source0Pos.putFloat(-2.0f); ByteBuffer source0Vel = ByteBuffer.allocateDirect(12); source0Vel.order(ByteOrder.nativeOrder()); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); ByteBuffer source1Pos = ByteBuffer.allocateDirect(12); source1Pos.order(ByteOrder.nativeOrder()); source1Pos.putFloat(-2.0f); source1Pos.putFloat(0.0f); source1Pos.putFloat(-2.0f); ByteBuffer source1Vel = ByteBuffer.allocateDirect(12); source1Vel.order(ByteOrder.nativeOrder()); source1Vel.putFloat(0.0f); source1Vel.putFloat(0.0f); source1Vel.putFloat(0.0f); al.genSources(2,source); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alGenSources 2 : ", error); return; } al.sourcef(source[0],AL.PITCH,1.0f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcef 0 AL_PITCH : \n", error); al.sourcef(source[0],AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcef 0 AL_GAIN : \n", error); al.sourcefv(source[0],AL.POSITION,Sys.getDirectBufferAddress(source0Pos)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcefv 0 AL_POSITION : \n", error); al.sourcefv(source[0],AL.VELOCITY,Sys.getDirectBufferAddress(source0Vel)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcefv 0 AL_VELOCITY : \n", error); al.sourcei(source[0],AL.BUFFER, buffers[0]); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcei 0 AL_BUFFER buffer 0 : \n", error); al.sourcei(source[0],AL.LOOPING,AL.TRUE); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcei 0 AL_LOOPING true: \n", error); al.sourcef(source[1],AL.PITCH,1.0f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcef 1 AL_PITCH : \n", error); al.sourcef(source[1],AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcef 1 AL_GAIN : \n", error); al.sourcefv(source[1],AL.POSITION,Sys.getDirectBufferAddress(source1Pos)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcefv 1 AL_POSITION : \n", error); al.sourcefv(source[1],AL.VELOCITY,Sys.getDirectBufferAddress(source1Vel)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcefv 1 AL_VELOCITY : \n", error); al.sourcei(source[1],AL.BUFFER, buffers[1]); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcei 1 AL_BUFFER buffer 1 : \n", error); al.sourcei(source[1],AL.LOOPING,AL.TRUE); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcei 1 AL_LOOPING true: \n", error); System.out.print("Gain Test\n"); System.out.print("Press '1' to play source 0 (looping)\n"); System.out.print("Press '2' to play source 1 (looping)\n"); System.out.print("Press '3' to stop source 0\n"); System.out.print("Press '4' to stop source 1\n"); System.out.print("Press '5' to set source 0 gain to 1.0\n"); System.out.print("Press '6' to set source 0 gain to 0.5\n"); System.out.print("Press '7' to set source 0 gain to 0.25\n"); System.out.print("Press '8' to set source 0 gain to 0\n"); System.out.print("Press 'A' to set Listener Gain to 1.0\n"); System.out.print("Press 'B' to set Listener Gain to 0.5\n"); System.out.print("Press 'C' to set Listener Gain to 0.25\n"); System.out.print("Press 'D' to set Listener Gain to 0.0\n"); System.out.print("Press 'Q' to quit\n"); do { try { ch = System.in.read(); } catch (IOException ioe) { } switch (ch) { case '1': al.sourcePlay(source[0]); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcePlay source 0 : ", error); break; case '2': al.sourcePlay(source[1]); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcePlay source 1 : ", error); break; case '3': al.sourceStop(source[0]); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceStop source 0 : \n", error); break; case '4': al.sourceStop(source[1]); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceStop source 1 : \n", error); break; case '5': al.sourcef(source[0],AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcef 0 AL_GAIN 1.0 : \n", error); break; case '6': al.sourcef(source[0],AL.GAIN,0.5f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcef 0 AL_GAIN 0.5 : \n", error); break; case '7': al.sourcef(source[0],AL.GAIN,0.25f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcef 0 AL_GAIN 0.25 : \n", error); break; case '8': al.sourcef(source[0],AL.GAIN,0.0f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcef 0 AL_GAIN 0.0 : \n", error); break; case 'A': al.listenerf(AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alListenerf AL_GAIN 1.0 : \n", error); break; case 'B': al.listenerf(AL.GAIN,0.5f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alListenerf AL_GAIN 0.5 : \n", error); break; case 'C': al.listenerf(AL.GAIN,0.25f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alListenerf AL_GAIN 0.25 : \n", error); break; case 'D': al.listenerf(AL.GAIN,0.0f); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alListenerf AL_GAIN 0.0 : \n", error); break; } } while (ch != 'Q'); // Reset & Release resources al.listenerf(AL.GAIN,1.0f); al.sourceStopv(2,source); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceStop : ", error); al.deleteSources(2, source); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alDeleteSources 2 : ", error); } | 5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/f85aaf6b019e121ae356134303adfe86ac9476bb/ALTest.java/clean/src/java/org/lwjgl/openal/test/ALTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
277,
67,
43,
530,
4709,
1435,
288,
3639,
509,
377,
555,
31,
3639,
509,
8526,
282,
1084,
273,
394,
509,
63,
22,
15533,
3639,
509,
377,
462,
273,
300,
21,
31,
7734,
7400,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
277,
67,
43,
530,
4709,
1435,
288,
3639,
509,
377,
555,
31,
3639,
509,
8526,
282,
1084,
273,
394,
509,
63,
22,
15533,
3639,
509,
377,
462,
273,
300,
21,
31,
7734,
7400,
108... |
TinyWindowUI(TinyWindow window, BufferedImage image) | public TinyWindowUI(TinyWindow window, BufferedImage image) | TinyWindowUI(TinyWindow window, BufferedImage image) { if (window == null) throw new NullPointerException("No window."); this.window = window; titleBar = new TitleBar(window.getTitle()); canvas = new ThumbnailCanvas(image); makeBorders(); makeComponentsSize(image); buildUI(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/11fc11c4e769e382f5279d4e21088d468940d1b6/TinyWindowUI.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/twindow/TinyWindowUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
399,
11652,
3829,
5370,
12,
56,
11652,
3829,
2742,
16,
12362,
1316,
13,
565,
288,
3639,
309,
261,
5668,
422,
446,
13,
604,
394,
10108,
2932,
2279,
2742,
1199,
1769,
3639,
333,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
399,
11652,
3829,
5370,
12,
56,
11652,
3829,
2742,
16,
12362,
1316,
13,
565,
288,
3639,
309,
261,
5668,
422,
446,
13,
604,
394,
10108,
2932,
2279,
2742,
1199,
1769,
3639,
333,
18,
... |
public boolean addTaxa(int starting, int num){ setDirty(true); if (starting<0) starting = -1; else if (starting>=numTaxa) starting = numTaxa-1; int newNumTaxa = numTaxa + num; try { incrementStatesVersion(); if (usingShortMatrix()){ short shortUnassigned = CategoricalState.compressToShort(getDefaultState()); for (int ic=0; ic<numChars; ic++) { matrixShort[ic] = ShortArray.addParts(matrixShort[ic], starting, num, CategoricalState.compressToShort(getDefaultState())); } } else { for (int ic=0; ic<numChars; ic++) { matrix[ic] = LongArray.addParts(matrix[ic], starting, num, getDefaultState()); } } } catch (OutOfMemoryError e){ MesquiteMessage.warnProgrammer("Sorry, taxa could not be added to the Character Matrix because of lack of memory"); } numTaxa = newNumTaxa; return super.addTaxa(starting, num); } | 56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/f13d81739af31354f83b14c9490772258666d61b/CategoricalData.java/clean/Source/mesquite/categ/lib/CategoricalData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
527,
7731,
69,
12,
474,
5023,
16,
509,
818,
15329,
202,
202,
542,
10785,
12,
3767,
1769,
202,
202,
430,
261,
18526,
32,
20,
13,
1082,
202,
18526,
273,
300,
21,
31,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
527,
7731,
69,
12,
474,
5023,
16,
509,
818,
15329,
202,
202,
542,
10785,
12,
3767,
1769,
202,
202,
430,
261,
18526,
32,
20,
13,
1082,
202,
18526,
273,
300,
21,
31,
202... | ||
private Set<IFile> cleanupAllGeneratedFilesForParent( IFile parent ) | private Set<IFile> cleanupAllGeneratedFilesForParent( IFile parent, ICompilationUnit parentCompilationUnit ) | private Set<IFile> cleanupAllGeneratedFilesForParent( IFile parent ) { GeneratedFileManager gfm = GeneratedFileManager.getGeneratedFileManager( parent.getProject() ); Set<IFile> lastGeneratedFiles = gfm.getGeneratedFilesForParent( parent ); return cleanupNoLongerGeneratedFiles( parent, lastGeneratedFiles, Collections.<IFile>emptySet(), gfm ); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/1604c4cb884aee860a1cc5ef654a628a5e36afd0/APTDispatchRunnable.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/APTDispatchRunnable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1000,
32,
45,
812,
34,
6686,
1595,
7823,
2697,
20374,
12,
467,
812,
982,
262,
202,
95,
202,
202,
7823,
812,
1318,
13828,
81,
273,
11025,
812,
1318,
18,
588,
7823,
812,
1318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1000,
32,
45,
812,
34,
6686,
1595,
7823,
2697,
20374,
12,
467,
812,
982,
262,
202,
95,
202,
202,
7823,
812,
1318,
13828,
81,
273,
11025,
812,
1318,
18,
588,
7823,
812,
1318,
... |
return sendRequestToSlave(defaultSlaveURL, new RunRequest(job)); | return sendRequestToSlave(job.getSlaveURL(), new RunRequest(job)); | protected JobTimings runJob(Job job) { return sendRequestToSlave(defaultSlaveURL, new RunRequest(job)); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/96f752d06dba37742f7716ee54f31f1982df763e/PerfRunner.java/clean/tests/src/org/jboss/test/messaging/jms/perf/PerfRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
3956,
10178,
899,
1086,
2278,
12,
2278,
1719,
13,
282,
288,
1377,
327,
12413,
774,
20302,
12,
4688,
18,
588,
20302,
1785,
9334,
394,
1939,
691,
12,
4688,
10019,
282,
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,
565,
4750,
3956,
10178,
899,
1086,
2278,
12,
2278,
1719,
13,
282,
288,
1377,
327,
12413,
774,
20302,
12,
4688,
18,
588,
20302,
1785,
9334,
394,
1939,
691,
12,
4688,
10019,
282,
289,
2,
-100,
... |
String hasFilterParam = (String) session.getValue("filterparameter"); template.setData("filternumber","0"); | String hasFilterParam = (String) session.getValue("filterparameter"); template.setData("filternumber","0"); | public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { //return var byte[] returnProcess = null; String error=""; // the CD to be used A_CmsContentDefinition cd=null; // session will be created or fetched I_CmsSession session = (CmsSession) cms.getRequestContext().getSession(true); //create new workplace templatefile object CmsXmlWpTemplateFile template = new CmsXmlWpTemplateFile(cms, templateFile); //get parameters String selectBox = (String) parameters.get("selectbox"); String filterParam = (String) parameters.get("filterparameter"); String id = (String) parameters.get("id"); String idlock = (String) parameters.get("idlock"); String iddelete = (String) parameters.get("iddelete"); String idedit = (String) parameters.get("idedit"); String idview = (String) parameters.get("idview"); String action = (String) parameters.get("action"); String parentId = (String) parameters.get("parentId"); String ok = (String) parameters.get("ok"); String setaction = (String) parameters.get("setaction"); // debug-code /* System.err.println("### "+this.getContentDefinitionClass().getName()); System.err.println("### PARAMETERS"); Enumeration enu=parameters.keys(); while (enu.hasMoreElements()) { String a=(String)enu.nextElement(); System.err.println("## "+a); String b=parameters.get(a).toString(); System.err.println("## "+a+" -> "+b); } System.err.println(""); System.err.println("+++ SESSION"); String[] ses=session.getValueNames(); for (int i=0;i<ses.length;i++) { String a=ses[i]; String b=session.getValue(a).toString(); System.err.println("++ "+a+" -> "+b); } System.err.println(""); System.err.println("-------------------------------------------------"); */ String hasFilterParam = (String) session.getValue("filterparameter"); template.setData("filternumber","0"); //change filter if ((hasFilterParam == null) && (filterParam == null) && (setaction == null)) { if (selectBox != null) { session.putValue("filter", selectBox); template.setData("filternumber",selectBox); } } else { template.setData("filternumber", (String)session.getValue("filter")); } //move id values to id, remove old markers if (idlock != null) { id = idlock; session.putValue("idlock", idlock); session.removeValue("idedit"); session.removeValue("idnew"); session.removeValue("iddelete"); } if (idedit != null) { id = idedit; session.putValue("idedit", idedit); session.removeValue("idlock"); session.removeValue("idnew"); session.removeValue("iddelete"); } if (iddelete != null) { id = iddelete; session.putValue("iddelete", iddelete); session.removeValue("idedit"); session.removeValue("idnew"); session.removeValue("idlock"); } if ((id != null) && (id.equals("new"))) { session.putValue("idnew", id); session.removeValue("idedit"); session.removeValue("idnew"); session.removeValue("iddelete"); session.removeValue("idlock"); } //get marker id from session String idsave = (String) session.getValue("idsave"); if (ok == null) { idsave = null; } if(parentId != null) { session.putValue("parentId", parentId); } //get marker for accessing the new dialog String idnewsave = (String) session.getValue("idnew"); // --- This is the part when getContentNew is called --- //access to new dialog if ((id != null) && (id.equals("new")) || ((idsave != null) && (idsave.equals("new")))) { if (idsave != null) { parameters.put("id", idsave); } if (id != null) { parameters.put("id", id); session.putValue("idsave", id); } return getContentNewInternal(cms,id,cd,session,template,elementName,parameters,templateSelector); // --- This was the part when getContentNew is called --- } //go to the appropriate getContent methods if ((id == null) && (idsave == null) && (action == null) && (idlock==null) && (iddelete == null) && (idedit == null)) { //process the head frame containing the filter returnProcess = getContentHead(cms, template, elementName, parameters, templateSelector); //finally return processed data return returnProcess; } else { //process the body frame containing the table if(action == null) { action = ""; } if (action.equalsIgnoreCase("list")){ //process the list output // clear "idsave" here in case user verification of data failed and input has to be shown again ... session.removeValue("idsave"); returnProcess = getContentList(cms, template, elementName, parameters, templateSelector); //finally return processed data return returnProcess; } else { // --- This is the part where getContentEdit is called --- //get marker for accessing the edit dialog String ideditsave = (String) session.getValue("idedit"); //go to the edit dialog if ((idedit != null) || (ideditsave != null)) { if (idsave != null) { parameters.put("id", idsave); } if (id != null) { parameters.put("id", id); session.putValue("idsave", id); } return getContentEditInternal(cms,id,cd,session,template,elementName,parameters,templateSelector); // --- This was the part where getContentEdit is called --- } else { //store id parameters for delete and lock if (idsave != null) { parameters.put("id", idsave); session.removeValue("idsave"); } else { parameters.put("id", id); session.putValue("idsave", id); } //get marker for accessing the delete dialog String iddeletesave = (String) session.getValue("iddelete"); //access delete dialog if (((iddelete != null) || (iddeletesave != null)) && (idlock == null)) { returnProcess = getContentDelete(cms, template, elementName, parameters, templateSelector); return returnProcess; }else { //access lock dialog returnProcess = getContentLock(cms, template, elementName, parameters, templateSelector); //finally return processed data return returnProcess; } } } }} | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/608a6c7da3a21b6fd20069a5c4071d0b5686024f/A_CmsBackoffice.java/buggy/src/com/opencms/defaults/A_CmsBackoffice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
565,
368,
2463,
569,
565,
1160,
8526,
327,
2227,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
565,
368,
2463,
569,
565,
1160,
8526,
327,
2227,
273,
... |
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) }; | Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) }; | public void test_Simple_XNP_LCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons = sessReceive.createConsumer(queue1); MessageProducer prod = sessSend.createProducer(queue1); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) }; runRunners(runners); conn.close(); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/854a630fe1e9177482e054121f2fd66ee7f5e035/StressQueueSameConnection.java/clean/tests/src/org/jboss/test/messaging/jms/stress/StressQueueSameConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
67,
5784,
67,
60,
23430,
67,
48,
3587,
1435,
1216,
1185,
282,
288,
1377,
4050,
1487,
273,
6080,
18,
2640,
1952,
5621,
1377,
1487,
18,
1937,
5621,
5411,
12410,
2157,
8451,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
67,
5784,
67,
60,
23430,
67,
48,
3587,
1435,
1216,
1185,
282,
288,
1377,
4050,
1487,
273,
6080,
18,
2640,
1952,
5621,
1377,
1487,
18,
1937,
5621,
5411,
12410,
2157,
8451,... |
return RubyFixnum.newFixnum(runtime, value == null ? 0 : value.hashCode()); | return getRuntime().newFixnum(value == null ? 0 : value.hashCode()); | public RubyFixnum hash() { return RubyFixnum.newFixnum(runtime, value == null ? 0 : value.hashCode()); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaObject.java/buggy/src/org/jruby/javasupport/JavaObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1651,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
1132,
422,
446,
692,
374,
294,
460,
18,
2816,
1085,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1651,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
1132,
422,
446,
692,
374,
294,
460,
18,
2816,
1085,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-10... |
(2000 * 3600, "Asia/Jerusalem", Calendar.APRIL, 1, 0, 1000 * 3600, Calendar.OCTOBER, 1, 0, 1000 * 3600); timezones0.put("Asia/Jerusalem", tz); tz = new SimpleTimeZone | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT", tz); timezones0.put("Pacific/Apia", tz); timezones0.put("Pacific/Midway", tz); timezones0.put("Pacific/Niue", tz); timezones0.put("Pacific/Pago_Pago", tz); tz = new SimpleTimeZone (-10000 * 3600, "America/Adak", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Adak", tz); tz = new SimpleTimeZone(-10000 * 3600, "HST"); timezones0.put("HST", tz); timezones0.put("Pacific/Fakaofo", tz); timezones0.put("Pacific/Honolulu", tz); timezones0.put("Pacific/Johnston", tz); timezones0.put("Pacific/Rarotonga", tz); timezones0.put("Pacific/Tahiti", tz); tz = new SimpleTimeZone(-9500 * 3600, "Pacific/Marquesas"); timezones0.put("Pacific/Marquesas", tz); tz = new SimpleTimeZone (-9000 * 3600, "AST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("AST", tz); timezones0.put("America/Anchorage", tz); timezones0.put("America/Juneau", tz); timezones0.put("America/Nome", tz); timezones0.put("America/Yakutat", tz); tz = new SimpleTimeZone(-9000 * 3600, "Pacific/Gambier"); timezones0.put("Pacific/Gambier", tz); tz = new SimpleTimeZone (-8000 * 3600, "PST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("PST", tz); timezones0.put("PST8PDT", tz); timezones0.put("America/Dawson", tz); timezones0.put("America/Los_Angeles", tz); timezones0.put("America/Tijuana", tz); timezones0.put("America/Vancouver", tz); timezones0.put("America/Whitehorse", tz); timezones0.put("US/Pacific-New", tz); tz = new SimpleTimeZone(-8000 * 3600, "Pacific/Pitcairn"); timezones0.put("Pacific/Pitcairn", tz); tz = new SimpleTimeZone (-7000 * 3600, "MST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("MST", tz); timezones0.put("MST7MDT", tz); timezones0.put("America/Boise", tz); timezones0.put("America/Chihuahua", tz); timezones0.put("America/Denver", tz); timezones0.put("America/Edmonton", tz); timezones0.put("America/Inuvik", tz); timezones0.put("America/Mazatlan", tz); timezones0.put("America/Shiprock", tz); timezones0.put("America/Yellowknife", tz); tz = new SimpleTimeZone(-7000 * 3600, "MST7"); timezones0.put("MST7", tz); timezones0.put("PNT", tz); timezones0.put("America/Dawson_Creek", tz); timezones0.put("America/Hermosillo", tz); timezones0.put("America/Phoenix", tz); tz = new SimpleTimeZone (-6000 * 3600, "CST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("CST", tz); timezones0.put("CST6CDT", tz); timezones0.put("America/Cambridge_Bay", tz); timezones0.put("America/Cancun", tz); timezones0.put("America/Chicago", tz); timezones0.put("America/Menominee", tz); timezones0.put("America/Merida", tz); timezones0.put("America/Mexico_City", tz); timezones0.put("America/Monterrey", tz); timezones0.put("America/Rainy_River", tz); timezones0.put("America/Winnipeg", tz); tz = new SimpleTimeZone(-6000 * 3600, "America/Belize"); timezones0.put("America/Belize", tz); timezones0.put("America/Costa_Rica", tz); timezones0.put("America/El_Salvador", tz); timezones0.put("America/Guatemala", tz); timezones0.put("America/Managua", tz); timezones0.put("America/Regina", tz); timezones0.put("America/Swift_Current", tz); timezones0.put("America/Tegucigalpa", tz); timezones0.put("Pacific/Galapagos", tz); tz = new SimpleTimeZone (-6000 * 3600, "Pacific/Easter", Calendar.OCTOBER, 9, -Calendar.SUNDAY, 0 * 3600, Calendar.MARCH, 9, -Calendar.SUNDAY, 0 * 3600); timezones0.put("Pacific/Easter", tz); tz = new SimpleTimeZone (-5000 * 3600, "America/Grand_Turk", Calendar.APRIL, 1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Grand_Turk", tz); timezones0.put("America/Havana", tz); tz = new SimpleTimeZone(-5000 * 3600, "EST5"); timezones0.put("EST5", tz); timezones0.put("IET", tz); timezones0.put("America/Bogota", tz); timezones0.put("America/Cayman", tz); timezones0.put("America/Eirunepe", tz); timezones0.put("America/Guayaquil", tz); timezones0.put("America/Indiana/Indianapolis", tz); timezones0.put("America/Indiana/Knox", tz); timezones0.put("America/Indiana/Marengo", tz); timezones0.put("America/Indiana/Vevay", tz); timezones0.put("America/Indianapolis", tz); timezones0.put("America/Iqaluit", tz); timezones0.put("America/Jamaica", tz); timezones0.put("America/Lima", tz); timezones0.put("America/Panama", tz); timezones0.put("America/Pangnirtung", tz); timezones0.put("America/Port-au-Prince", tz); timezones0.put("America/Porto_Acre", tz); timezones0.put("America/Rankin_Inlet", tz); tz = new SimpleTimeZone (-5000 * 3600, "EST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("EST", tz); timezones0.put("EST5EDT", tz); timezones0.put("America/Detroit", tz); timezones0.put("America/Kentucky/Louisville", tz); timezones0.put("America/Kentucky/Monticello", tz); timezones0.put("America/Louisville", tz); timezones0.put("America/Montreal", tz); timezones0.put("America/Nassau", tz); timezones0.put("America/New_York", tz); timezones0.put("America/Nipigon", tz); timezones0.put("America/Thunder_Bay", tz); tz = new SimpleTimeZone(-4000 * 3600, "PRT"); timezones0.put("PRT", tz); timezones0.put("America/Anguilla", tz); timezones0.put("America/Antigua", tz); timezones0.put("America/Aruba", tz); timezones0.put("America/Barbados", tz); timezones0.put("America/Boa_Vista", tz); timezones0.put("America/Caracas", tz); timezones0.put("America/Curacao", tz); timezones0.put("America/Dominica", tz); timezones0.put("America/Grenada", tz); timezones0.put("America/Guadeloupe", tz); timezones0.put("America/Guyana", tz); timezones0.put("America/La_Paz", tz); timezones0.put("America/Manaus", tz); timezones0.put("America/Martinique", tz); timezones0.put("America/Montserrat", tz); timezones0.put("America/Port_of_Spain", tz); timezones0.put("America/Porto_Velho", tz); timezones0.put("America/Puerto_Rico", tz); timezones0.put("America/Santo_Domingo", tz); timezones0.put("America/St_Kitts", tz); timezones0.put("America/St_Lucia", tz); timezones0.put("America/St_Thomas", tz); timezones0.put("America/St_Vincent", tz); timezones0.put("America/Tortola", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Asuncion", Calendar.OCTOBER, 1, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Asuncion", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Cuiaba", Calendar.OCTOBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, 3, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Cuiaba", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Goose_Bay", Calendar.APRIL, 1, Calendar.SUNDAY, 60000, Calendar.OCTOBER, -1, Calendar.SUNDAY, 60000); timezones0.put("America/Goose_Bay", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Glace_Bay", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Glace_Bay", tz); timezones0.put("America/Halifax", tz); timezones0.put("America/Thule", tz); timezones0.put("Atlantic/Bermuda", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Santiago", Calendar.OCTOBER, 9, -Calendar.SUNDAY, 0 * 3600, Calendar.MARCH, 9, -Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Santiago", tz); timezones0.put("Antarctica/Palmer", tz); tz = new SimpleTimeZone (-4000 * 3600, "Atlantic/Stanley", Calendar.SEPTEMBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.APRIL, 16, -Calendar.SUNDAY, 0 * 3600); timezones0.put("Atlantic/Stanley", tz); tz = new SimpleTimeZone (-3500 * 3600, "CNT", Calendar.APRIL, 1, Calendar.SUNDAY, 60000, Calendar.OCTOBER, -1, Calendar.SUNDAY, 60000); timezones0.put("CNT", tz); timezones0.put("America/St_Johns", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Araguaina", Calendar.OCTOBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, 3, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Araguaina", tz); timezones0.put("America/Sao_Paulo", tz); tz = new SimpleTimeZone(-3000 * 3600, "AGT"); timezones0.put("AGT", tz); timezones0.put("America/Belem", tz); timezones0.put("America/Buenos_Aires", tz); timezones0.put("America/Catamarca", tz); timezones0.put("America/Cayenne", tz); timezones0.put("America/Cordoba", tz); timezones0.put("America/Fortaleza", tz); timezones0.put("America/Jujuy", tz); timezones0.put("America/Maceio", tz); timezones0.put("America/Mendoza", tz); timezones0.put("America/Montevideo", tz); timezones0.put("America/Paramaribo", tz); timezones0.put("America/Recife", tz); timezones0.put("America/Rosario", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Godthab", Calendar.MARCH, 30, -Calendar.SATURDAY, 22000 * 3600, Calendar.OCTOBER, 30, -Calendar.SATURDAY, 22000 * 3600); timezones0.put("America/Godthab", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Miquelon", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Miquelon", tz); tz = new SimpleTimeZone(-2000 * 3600, "America/Noronha"); timezones0.put("America/Noronha", tz); timezones0.put("Atlantic/South_Georgia", tz); tz = new SimpleTimeZone (-1000 * 3600, "America/Scoresbysund", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Scoresbysund", tz); timezones0.put("Atlantic/Azores", tz); tz = new SimpleTimeZone(-1000 * 3600, "Atlantic/Cape_Verde"); timezones0.put("Atlantic/Cape_Verde", tz); timezones0.put("Atlantic/Jan_Mayen", tz); tz = new SimpleTimeZone(0 * 3600, "GMT"); timezones0.put("GMT", tz); timezones0.put("UTC", tz); timezones0.put("Africa/Abidjan", tz); timezones0.put("Africa/Accra", tz); timezones0.put("Africa/Bamako", tz); timezones0.put("Africa/Banjul", tz); timezones0.put("Africa/Bissau", tz); timezones0.put("Africa/Casablanca", tz); timezones0.put("Africa/Conakry", tz); timezones0.put("Africa/Dakar", tz); timezones0.put("Africa/El_Aaiun", tz); timezones0.put("Africa/Freetown", tz); timezones0.put("Africa/Lome", tz); timezones0.put("Africa/Monrovia", tz); timezones0.put("Africa/Nouakchott", tz); timezones0.put("Africa/Ouagadougou", tz); timezones0.put("Africa/Sao_Tome", tz); timezones0.put("Africa/Timbuktu", tz); timezones0.put("Atlantic/Reykjavik", tz); timezones0.put("Atlantic/St_Helena", tz); timezones0.put("Europe/Belfast", tz); timezones0.put("Europe/Dublin", tz); timezones0.put("Europe/London", tz); tz = new SimpleTimeZone (0 * 3600, "WET", Calendar.MARCH, -1, Calendar.SUNDAY, 1000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 1000 * 3600); timezones0.put("WET", tz); timezones0.put("Atlantic/Canary", tz); timezones0.put("Atlantic/Faeroe", tz); timezones0.put("Atlantic/Madeira", tz); timezones0.put("Europe/Lisbon", tz); tz = new SimpleTimeZone(1000 * 3600, "Africa/Algiers"); timezones0.put("Africa/Algiers", tz); timezones0.put("Africa/Bangui", tz); timezones0.put("Africa/Brazzaville", tz); timezones0.put("Africa/Douala", tz); timezones0.put("Africa/Kinshasa", tz); timezones0.put("Africa/Lagos", tz); timezones0.put("Africa/Libreville", tz); timezones0.put("Africa/Luanda", tz); timezones0.put("Africa/Malabo", tz); timezones0.put("Africa/Ndjamena", tz); timezones0.put("Africa/Niamey", tz); timezones0.put("Africa/Porto-Novo", tz); timezones0.put("Africa/Tunis", tz); tz = new SimpleTimeZone (1000 * 3600, "Africa/Windhoek", Calendar.SEPTEMBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Africa/Windhoek", tz); tz = new SimpleTimeZone (1000 * 3600, "CET", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("CET", tz); timezones0.put("CEST", tz); timezones0.put("ECT", tz); timezones0.put("MET", tz); timezones0.put("Africa/Ceuta", tz); timezones0.put("Arctic/Longyearbyen", tz); timezones0.put("Europe/Amsterdam", tz); timezones0.put("Europe/Andorra", tz); timezones0.put("Europe/Belgrade", tz); timezones0.put("Europe/Berlin", tz); timezones0.put("Europe/Bratislava", tz); timezones0.put("Europe/Brussels", tz); timezones0.put("Europe/Budapest", tz); timezones0.put("Europe/Copenhagen", tz); timezones0.put("Europe/Gibraltar", tz); timezones0.put("Europe/Ljubljana", tz); timezones0.put("Europe/Luxembourg", tz); timezones0.put("Europe/Madrid", tz); timezones0.put("Europe/Malta", tz); timezones0.put("Europe/Monaco", tz); timezones0.put("Europe/Oslo", tz); timezones0.put("Europe/Paris", tz); timezones0.put("Europe/Prague", tz); timezones0.put("Europe/Rome", tz); timezones0.put("Europe/San_Marino", tz); timezones0.put("Europe/Sarajevo", tz); timezones0.put("Europe/Skopje", tz); timezones0.put("Europe/Stockholm", tz); timezones0.put("Europe/Tirane", tz); timezones0.put("Europe/Vaduz", tz); timezones0.put("Europe/Vatican", tz); timezones0.put("Europe/Vienna", tz); timezones0.put("Europe/Warsaw", tz); timezones0.put("Europe/Zagreb", tz); timezones0.put("Europe/Zurich", tz); tz = new SimpleTimeZone (2000 * 3600, "ART", Calendar.APRIL, -1, Calendar.FRIDAY, 0 * 3600, Calendar.SEPTEMBER, -1, Calendar.THURSDAY, 23000 * 3600); timezones0.put("ART", tz); timezones0.put("Africa/Cairo", tz); tz = new SimpleTimeZone(2000 * 3600, "CAT"); timezones0.put("CAT", tz); timezones0.put("Africa/Blantyre", tz); timezones0.put("Africa/Bujumbura", tz); timezones0.put("Africa/Gaborone", tz); timezones0.put("Africa/Harare", tz); timezones0.put("Africa/Johannesburg", tz); timezones0.put("Africa/Kigali", tz); timezones0.put("Africa/Lubumbashi", tz); timezones0.put("Africa/Lusaka", tz); timezones0.put("Africa/Maputo", tz); timezones0.put("Africa/Maseru", tz); timezones0.put("Africa/Mbabane", tz); timezones0.put("Africa/Tripoli", tz); timezones0.put("Europe/Riga", tz); timezones0.put("Europe/Tallinn", tz); timezones0.put("Europe/Vilnius", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Amman", Calendar.MARCH, -1, Calendar.THURSDAY, 0 * 3600, Calendar.SEPTEMBER, -1, Calendar.THURSDAY, 0 * 3600); timezones0.put("Asia/Amman", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Beirut", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Beirut", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Damascus", Calendar.APRIL, 1, 0, 0 * 3600, Calendar.OCTOBER, 1, 0, 0 * 3600); timezones0.put("Asia/Damascus", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Gaza", Calendar.APRIL, 3, Calendar.FRIDAY, 0 * 3600, Calendar.OCTOBER, 3, Calendar.FRIDAY, 0 * 3600); timezones0.put("Asia/Gaza", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Jerusalem", Calendar.APRIL, 1, 0, 1000 * 3600, Calendar.OCTOBER, 1, 0, 1000 * 3600); timezones0.put("Asia/Jerusalem", tz); tz = new SimpleTimeZone (2000 * 3600, "EET", Calendar.MARCH, -1, Calendar.SUNDAY, 3000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 3000 * 3600); timezones0.put("EET", tz); timezones0.put("Asia/Istanbul", tz); timezones0.put("Asia/Nicosia", tz); timezones0.put("Europe/Athens", tz); timezones0.put("Europe/Bucharest", tz); timezones0.put("Europe/Chisinau", tz); timezones0.put("Europe/Helsinki", tz); timezones0.put("Europe/Istanbul", tz); timezones0.put("Europe/Kiev", tz); timezones0.put("Europe/Nicosia", tz); timezones0.put("Europe/Simferopol", tz); timezones0.put("Europe/Sofia", tz); timezones0.put("Europe/Uzhgorod", tz); timezones0.put("Europe/Zaporozhye", tz); tz = new SimpleTimeZone (2000 * 3600, "Europe/Kaliningrad", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Europe/Kaliningrad", tz); timezones0.put("Europe/Minsk", tz); tz = new SimpleTimeZone (3000 * 3600, "Asia/Baghdad", Calendar.APRIL, 1, 0, 3000 * 3600, Calendar.OCTOBER, 1, 0, 3000 * 3600); timezones0.put("Asia/Baghdad", tz); tz = new SimpleTimeZone (3000 * 3600, "Europe/Moscow", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Europe/Moscow", tz); timezones0.put("Europe/Tiraspol", tz); tz = new SimpleTimeZone(3000 * 3600, "EAT"); timezones0.put("EAT", tz); timezones0.put("Africa/Addis_Ababa", tz); timezones0.put("Africa/Asmera", tz); timezones0.put("Africa/Dar_es_Salaam", tz); timezones0.put("Africa/Djibouti", tz); timezones0.put("Africa/Kampala", tz); timezones0.put("Africa/Khartoum", tz); timezones0.put("Africa/Mogadishu", tz); timezones0.put("Africa/Nairobi", tz); timezones0.put("Antarctica/Syowa", tz); timezones0.put("Asia/Aden", tz); timezones0.put("Asia/Bahrain", tz); timezones0.put("Asia/Kuwait", tz); timezones0.put("Asia/Qatar", tz); timezones0.put("Asia/Riyadh", tz); timezones0.put("Indian/Antananarivo", tz); timezones0.put("Indian/Comoro", tz); timezones0.put("Indian/Mayotte", tz); tz = new SimpleTimeZone(3500 * 3600, "Asia/Tehran"); timezones0.put("Asia/Tehran", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Baku", Calendar.MARCH, -1, Calendar.SUNDAY, 1000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 1000 * 3600); timezones0.put("Asia/Baku", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Aqtau", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Aqtau", tz); timezones0.put("Asia/Tbilisi", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Yerevan", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yerevan", tz); timezones0.put("Europe/Samara", tz); tz = new SimpleTimeZone(4000 * 3600, "NET"); timezones0.put("NET", tz); timezones0.put("Asia/Dubai", tz); timezones0.put("Asia/Muscat", tz); timezones0.put("Indian/Mahe", tz); timezones0.put("Indian/Mauritius", tz); timezones0.put("Indian/Reunion", tz); tz = new SimpleTimeZone(4500 * 3600, "Asia/Kabul"); timezones0.put("Asia/Kabul", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Aqtobe", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Aqtobe", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Bishkek", Calendar.MARCH, -1, Calendar.SUNDAY, 2500 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2500 * 3600); timezones0.put("Asia/Bishkek", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Yekaterinburg", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yekaterinburg", tz); tz = new SimpleTimeZone(5000 * 3600, "PLT"); timezones0.put("PLT", tz); timezones0.put("Asia/Ashgabat", tz); timezones0.put("Asia/Dushanbe", tz); timezones0.put("Asia/Karachi", tz); timezones0.put("Asia/Samarkand", tz); timezones0.put("Asia/Tashkent", tz); timezones0.put("Indian/Chagos", tz); timezones0.put("Indian/Kerguelen", tz); timezones0.put("Indian/Maldives", tz); tz = new SimpleTimeZone(5500 * 3600, "IST"); timezones0.put("IST", tz); timezones0.put("Asia/Calcutta", tz); tz = new SimpleTimeZone(5750 * 3600, "Asia/Katmandu"); timezones0.put("Asia/Katmandu", tz); tz = new SimpleTimeZone(6000 * 3600, "BST"); timezones0.put("BST", tz); timezones0.put("Antarctica/Mawson", tz); timezones0.put("Asia/Colombo", tz); timezones0.put("Asia/Dhaka", tz); timezones0.put("Asia/Thimphu", tz); tz = new SimpleTimeZone (6000 * 3600, "Asia/Almaty", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Almaty", tz); tz = new SimpleTimeZone (6000 * 3600, "Asia/Novosibirsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Novosibirsk", tz); timezones0.put("Asia/Omsk", tz); tz = new SimpleTimeZone(6500 * 3600, "Asia/Rangoon"); timezones0.put("Asia/Rangoon", tz); timezones0.put("Indian/Cocos", tz); tz = new SimpleTimeZone(7000 * 3600, "VST"); timezones0.put("VST", tz); timezones0.put("Antarctica/Davis", tz); timezones0.put("Asia/Bangkok", tz); timezones0.put("Asia/Hovd", tz); timezones0.put("Asia/Jakarta", tz); timezones0.put("Asia/Phnom_Penh", tz); timezones0.put("Asia/Saigon", tz); timezones0.put("Asia/Vientiane", tz); timezones0.put("Indian/Christmas", tz); tz = new SimpleTimeZone (7000 * 3600, "Asia/Krasnoyarsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Krasnoyarsk", tz); tz = new SimpleTimeZone(8000 * 3600, "CTT"); timezones0.put("CTT", tz); timezones0.put("Antarctica/Casey", tz); timezones0.put("Asia/Brunei", tz); timezones0.put("Asia/Chungking", tz); timezones0.put("Asia/Harbin", tz); timezones0.put("Asia/Hong_Kong", tz); timezones0.put("Asia/Kashgar", tz); timezones0.put("Asia/Kuala_Lumpur", tz); timezones0.put("Asia/Kuching", tz); timezones0.put("Asia/Macao", tz); timezones0.put("Asia/Manila", tz); timezones0.put("Asia/Shanghai", tz); timezones0.put("Asia/Singapore", tz); timezones0.put("Asia/Taipei", tz); timezones0.put("Asia/Ujung_Pandang", tz); timezones0.put("Asia/Ulaanbaatar", tz); timezones0.put("Asia/Urumqi", tz); timezones0.put("Australia/Perth", tz); tz = new SimpleTimeZone (8000 * 3600, "Asia/Irkutsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Irkutsk", tz); tz = new SimpleTimeZone(9000 * 3600, "JST"); timezones0.put("JST", tz); timezones0.put("Asia/Dili", tz); timezones0.put("Asia/Jayapura", tz); timezones0.put("Asia/Pyongyang", tz); timezones0.put("Asia/Seoul", tz); timezones0.put("Asia/Tokyo", tz); timezones0.put("Pacific/Palau", tz); tz = new SimpleTimeZone (9000 * 3600, "Asia/Yakutsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yakutsk", tz); tz = new SimpleTimeZone (9500 * 3600, "Australia/Adelaide", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Australia/Adelaide", tz); timezones0.put("Australia/Broken_Hill", tz); tz = new SimpleTimeZone(9500 * 3600, "ACT"); timezones0.put("ACT", tz); timezones0.put("Australia/Darwin", tz); tz = new SimpleTimeZone(10000 * 3600, "Antarctica/DumontDUrville"); timezones0.put("Antarctica/DumontDUrville", tz); timezones0.put("Australia/Brisbane", tz); timezones0.put("Australia/Lindeman", tz); timezones0.put("Pacific/Guam", tz); timezones0.put("Pacific/Port_Moresby", tz); timezones0.put("Pacific/Saipan", tz); timezones0.put("Pacific/Truk", tz); timezones0.put("Pacific/Yap", tz); tz = new SimpleTimeZone (10000 * 3600, "Asia/Vladivostok", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Vladivostok", tz); tz = new SimpleTimeZone (10000 * 3600, "Australia/Hobart", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Australia/Hobart", tz); tz = new SimpleTimeZone (10000 * 3600, "AET", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("AET", tz); timezones0.put("Australia/Melbourne", tz); timezones0.put("Australia/Sydney", tz); tz = new SimpleTimeZone (10500 * 3600, "Australia/Lord_Howe", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, 500 * 3600); timezones0.put("Australia/Lord_Howe", tz); tz = new SimpleTimeZone (11000 * 3600, "Asia/Magadan", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Magadan", tz); tz = new SimpleTimeZone(11000 * 3600, "SST"); timezones0.put("SST", tz); timezones0.put("Pacific/Efate", tz); timezones0.put("Pacific/Guadalcanal", tz); timezones0.put("Pacific/Kosrae", tz); timezones0.put("Pacific/Noumea", tz); timezones0.put("Pacific/Ponape", tz); tz = new SimpleTimeZone(11500 * 3600, "Pacific/Norfolk"); timezones0.put("Pacific/Norfolk", tz); tz = new SimpleTimeZone (12000 * 3600, "NST", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2000 * 3600); timezones0.put("NST", tz); timezones0.put("Antarctica/McMurdo", tz); timezones0.put("Antarctica/South_Pole", tz); timezones0.put("Pacific/Auckland", tz); tz = new SimpleTimeZone (12000 * 3600, "Asia/Anadyr", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Anadyr", tz); timezones0.put("Asia/Kamchatka", tz); tz = new SimpleTimeZone(12000 * 3600, "Pacific/Fiji"); timezones0.put("Pacific/Fiji", tz); timezones0.put("Pacific/Funafuti", tz); timezones0.put("Pacific/Kwajalein", tz); timezones0.put("Pacific/Majuro", tz); timezones0.put("Pacific/Nauru", tz); timezones0.put("Pacific/Tarawa", tz); timezones0.put("Pacific/Wake", tz); timezones0.put("Pacific/Wallis", tz); tz = new SimpleTimeZone (12750 * 3600, "Pacific/Chatham", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2750 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2750 * 3600); timezones0.put("Pacific/Chatham", tz); tz = new SimpleTimeZone(13000 * 3600, "Pacific/Enderbury"); timezones0.put("Pacific/Enderbury", tz); timezones0.put("Pacific/Tongatapu", tz); tz = new SimpleTimeZone(14000 * 3600, "Pacific/Kiritimati"); timezones0.put("Pacific/Kiritimati", tz); } return timezones0; } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/98873fd331a0aa1919d4e6e1bcd20261bf760cd8/TimeZone.java/buggy/libraries/javalib/java/util/TimeZone.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3852,
4317,
25954,
1435,
225,
288,
565,
309,
261,
957,
14203,
20,
422,
446,
13,
4202,
288,
202,
8658,
25954,
273,
394,
4317,
5621,
202,
957,
14203,
20,
273,
25954,
31,
202,
16760,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3852,
4317,
25954,
1435,
225,
288,
565,
309,
261,
957,
14203,
20,
422,
446,
13,
4202,
288,
202,
8658,
25954,
273,
394,
4317,
5621,
202,
957,
14203,
20,
273,
25954,
31,
202,
16760,
... | |
if (UNIPROT_TERM==null) UNIPROT_TERM = RichObjectFactory.getDefaultOntology().getOrCreateTerm("UNIPROT"); | if (UNIPROT_TERM==null) UNIPROT_TERM = RichObjectFactory.getDefaultOntology().getOrCreateTerm("UniProt"); | public static ComparableTerm getUniProtTerm() { if (UNIPROT_TERM==null) UNIPROT_TERM = RichObjectFactory.getDefaultOntology().getOrCreateTerm("UNIPROT"); return UNIPROT_TERM; } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/9a08dcdce52ccb6ce2b6f8255b4d6973a9950264/UniProtFormat.java/buggy/src/org/biojavax/bio/seq/io/UniProtFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
760,
13633,
4065,
10833,
77,
21189,
4065,
1435,
288,
5411,
309,
261,
2124,
2579,
1457,
56,
67,
15176,
631,
2011,
13,
5019,
2579,
1457,
56,
67,
15176,
273,
534,
1354,
921,
1733,
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,
540,
1071,
760,
13633,
4065,
10833,
77,
21189,
4065,
1435,
288,
5411,
309,
261,
2124,
2579,
1457,
56,
67,
15176,
631,
2011,
13,
5019,
2579,
1457,
56,
67,
15176,
273,
534,
1354,
921,
1733,
18,
... |
code.put4 (start_offset); | code.put4 (delta); | public void emit_wide (CodeAttr code, int start_offset) { int delta = 1 - code.PC; if (defined ()) delta += position; else add_wide_fixup (code.PC); code.put4 (start_offset); } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/acc298632a55e42cc6489d87877353f0ddc722a7/Label.java/buggy/gnu/bytecode/Label.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3626,
67,
26767,
261,
1085,
3843,
981,
16,
509,
787,
67,
3348,
13,
225,
288,
565,
509,
3622,
273,
404,
300,
981,
18,
3513,
31,
565,
309,
261,
2178,
1832,
13,
1377,
3622,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3626,
67,
26767,
261,
1085,
3843,
981,
16,
509,
787,
67,
3348,
13,
225,
288,
565,
509,
3622,
273,
404,
300,
981,
18,
3513,
31,
565,
309,
261,
2178,
1832,
13,
1377,
3622,
10... |
}); } | } | public void applyFix(final Project project, ProblemDescriptor descriptor) { final IntroduceConstantHandler handler = new IntroduceConstantHandler() { protected OccurenceManager createOccurenceManager(PsiExpression selectedExpr, PsiClass parentClass) { final OccurenceFilter filter = new OccurenceFilter() { public boolean isOK(PsiExpression occurence) { return true; } }; return new BaseOccurenceManager(filter) { protected PsiExpression[] defaultOccurences() { return expressions; } protected PsiExpression[] findOccurences() { return expressions; } }; } }; SwingUtilities.invokeLater(new Runnable() { public void run() { handler.invoke(project, expressions); } }); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/fb9e7f27d823790f3c9c5f2898aaf57207d3c5d0/DuplicateStringLiteralInspection.java/clean/source/com/intellij/codeInspection/duplicateStringLiteral/DuplicateStringLiteralInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
2230,
8585,
12,
6385,
5420,
1984,
16,
21685,
3187,
4950,
13,
288,
3639,
727,
3094,
303,
2544,
311,
6902,
1503,
1838,
273,
394,
3094,
303,
2544,
311,
6902,
1503,
1435,
288,
185... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
2230,
8585,
12,
6385,
5420,
1984,
16,
21685,
3187,
4950,
13,
288,
3639,
727,
3094,
303,
2544,
311,
6902,
1503,
1838,
273,
394,
3094,
303,
2544,
311,
6902,
1503,
1435,
288,
185... |
obj, RubyString.newString(runtime, obj.getClass().getName()) | obj, runtime.newString(obj.getClass().getName()) | public Object call(Object recv, String method, Object[] args) throws BSFException { try { IRubyObject rubyRecv = recv != null ? JavaUtil.convertJavaToRuby(runtime, recv) : runtime.getTopSelf(); IRubyObject[] rubyArgs = JavaUtil.convertJavaArrayToRuby(runtime, args); // Create Ruby proxies for any input arguments that are not primitives. IRubyObject javaUtilities = runtime.getClasses().getObjectClass().getConstant("JavaUtilities"); for (int i = 0; i < rubyArgs.length; i++) { IRubyObject obj = rubyArgs[i]; if (obj instanceof JavaObject) { rubyArgs[i] = javaUtilities.callMethod("wrap", new IRubyObject[] { obj, RubyString.newString(runtime, obj.getClass().getName()) }); } } IRubyObject result = rubyRecv.callMethod(method, rubyArgs); return convertToJava(result, Object.class); } catch (Exception excptn) { printException(runtime, excptn); throw new BSFException(BSFException.REASON_EXECUTION_ERROR, excptn.getMessage(), excptn); } } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JRubyEngine.java/clean/src/org/jruby/javasupport/bsf/JRubyEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
921,
10665,
16,
514,
707,
16,
1033,
8526,
833,
13,
1216,
605,
22395,
503,
288,
3639,
775,
288,
5411,
15908,
10340,
921,
22155,
28470,
273,
10665,
480,
446,
692,
5110,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
921,
10665,
16,
514,
707,
16,
1033,
8526,
833,
13,
1216,
605,
22395,
503,
288,
3639,
775,
288,
5411,
15908,
10340,
921,
22155,
28470,
273,
10665,
480,
446,
692,
5110,... |
return m_securityManager.readGroup(m_context, groupName); | return m_securityManager.readGroup(m_context, project); | public CmsGroup readGroup(String groupName) throws CmsException { return m_securityManager.readGroup(m_context, groupName); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0abaf9e2cd7b40be6257fbe506683783295516ca/CmsObject.java/buggy/src/org/opencms/file/CmsObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
1114,
855,
1114,
12,
780,
11619,
13,
1216,
11228,
288,
3639,
327,
312,
67,
7462,
1318,
18,
896,
1114,
12,
81,
67,
2472,
16,
1984,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
1114,
855,
1114,
12,
780,
11619,
13,
1216,
11228,
288,
3639,
327,
312,
67,
7462,
1318,
18,
896,
1114,
12,
81,
67,
2472,
16,
1984,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
... |
case SWT.ARROW_DOWN : | case SWT.ARROW_DOWN: | protected boolean handleKeyDown(KeyEvent e) { setAutoexposeHelper(null); if (acceptArrowKey(e)) { accStepIncrement(); if (stateTransition(STATE_INITIAL, STATE_ACCESSIBLE_DRAG_IN_PROGRESS)) setStartLocation(getLocation()); switch (e.keyCode) { case SWT.ARROW_DOWN : placeMouseInViewer(getLocation().getTranslated(0, accGetStep())); break; case SWT.ARROW_UP: placeMouseInViewer(getLocation().getTranslated(0, -accGetStep())); break; case SWT.ARROW_RIGHT: placeMouseInViewer(getLocation().getTranslated(accGetStep(), 0)); break; case SWT.ARROW_LEFT: placeMouseInViewer(getLocation().getTranslated(-accGetStep(), 0)); break; } return true; } else if (acceptClone(e)) { setCloneActive(true); handleDragInProgress(); return true; } else if (acceptSHIFT(e)) { handleDragInProgress(); return true; } return false; } | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/d344d234614984b3a069cc8cbe9901230103870e/DragEditPartsTracker.java/clean/org.eclipse.gef/src/org/eclipse/gef/tools/DragEditPartsTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1250,
1640,
653,
4164,
12,
653,
1133,
425,
13,
288,
202,
542,
4965,
338,
4150,
2276,
12,
2011,
1769,
202,
430,
261,
9436,
18691,
653,
12,
73,
3719,
288,
202,
202,
8981,
4160,
10798,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1250,
1640,
653,
4164,
12,
653,
1133,
425,
13,
288,
202,
542,
4965,
338,
4150,
2276,
12,
2011,
1769,
202,
430,
261,
9436,
18691,
653,
12,
73,
3719,
288,
202,
202,
8981,
4160,
10798,
56... |
Object next = it.next(); if(!ModelFacade.isAAbstraction(next)) list.add(next); } | Object next = it.next(); if (!ModelFacade.isAAbstraction(next)) list.add(next); } | public Collection getChildren(Object parent) { if ( parent instanceof IncomingDependencyNode) { List list = new ArrayList(); Iterator it = ModelFacade.getSupplierDependencies(((IncomingDependencyNode)parent).getParent()).iterator(); while(it.hasNext()){ Object next = it.next(); if(!ModelFacade.isAAbstraction(next)) list.add(next); } return list; } return null; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/GoSummaryToIncomingDependency.java/buggy/src_new/org/argouml/uml/diagram/static_structure/ui/GoSummaryToIncomingDependency.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2200,
10268,
12,
921,
982,
13,
288,
1377,
309,
261,
982,
1276,
26437,
7787,
907,
13,
288,
10792,
987,
666,
273,
394,
2407,
5621,
10792,
4498,
518,
273,
3164,
12467,
18,
588,
13254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2200,
10268,
12,
921,
982,
13,
288,
1377,
309,
261,
982,
1276,
26437,
7787,
907,
13,
288,
10792,
987,
666,
273,
394,
2407,
5621,
10792,
4498,
518,
273,
3164,
12467,
18,
588,
13254,
... |
debug = "get cell #" + i; | private Row fillRow(Row baserow, int startcolumn, ExcelInputRow excelInputRow) throws KettleException { debug = "fillRow start"; Row r = new Row(baserow); // Keep track whether or not we handled an error for this line yet. boolean errorHandled = false; // Set values in the row... for (int i = startcolumn; i < excelInputRow.cells.length && i - startcolumn < r.size(); i++) { debug = "get cell #" + i; Cell cell = excelInputRow.cells[i]; int rowcolumn = i - startcolumn; debug = "Rowcolumn = " + rowcolumn; Value v = r.getValue(rowcolumn); debug = "Value v = " + v; try { checkType(cell, v); } catch (KettleException ex) { if (!meta.isErrorIgnored()) throw ex; logBasic("Warning processing [" + debug + "] from Excel file [" + data.filename + "] : " + ex.getMessage()); if (!errorHandled) { data.errorHandler.handleLineError(excelInputRow.rownr, excelInputRow.sheetName); errorHandled = true; } if (meta.isErrorLineSkipped()) { r.setIgnore(); return r; } } CellType cellType = cell.getType(); if (CellType.BOOLEAN.equals(cellType) || CellType.BOOLEAN_FORMULA.equals(cellType)) { v.setValue(((BooleanCell) cell).getValue()); } else { if (CellType.DATE.equals(cellType) || CellType.DATE_FORMULA.equals(cellType) ) { Date date = ((DateCell) cell).getDate(); long time = date.getTime(); int offset = TimeZone.getDefault().getOffset(time); v.setValue(new Date(time - offset)); } else { if (CellType.LABEL.equals(cellType) || CellType.STRING_FORMULA.equals(cellType)) { v.setValue(((LabelCell) cell).getString()); switch (meta.getField()[rowcolumn].getTrimType()) { case ExcelInputMeta.TYPE_TRIM_LEFT: v.ltrim(); break; case ExcelInputMeta.TYPE_TRIM_RIGHT: v.rtrim(); break; case ExcelInputMeta.TYPE_TRIM_BOTH: v.trim(); break; default: break; } } else { if (CellType.NUMBER.equals(cellType) || CellType.NUMBER_FORMULA.equals(cellType)) { v.setValue(((NumberCell) cell).getValue()); } else { if (log.isDetailed()) logDetailed("Unknown type : " + cell.getType().toString() + " : [" + cell.getContents() + "]"); v.setNull(); } } } } ExcelInputField field = meta.getField()[rowcolumn]; // Change to the appropriate type if needed... // try { if (v.getType() != field.getType()) { switch (v.getType()) { // Use case: we find a String: convert it using the supplied format to the desired type... // case Value.VALUE_TYPE_STRING: debug = "Convert string to date/number"; switch (field.getType()) { case Value.VALUE_TYPE_DATE: v.str2dat(field.getFormat()); break; case Value.VALUE_TYPE_NUMBER: v.str2num(field.getFormat(), field.getDecimalSymbol(), field.getGroupSymbol(), field.getCurrencySymbol()); break; default: v.setType(field.getType()); break; } break; // Use case: we find a numeric value: convert it using the supplied format to the desired data type... // case Value.VALUE_TYPE_NUMBER: case Value.VALUE_TYPE_INTEGER: debug = "Convert number to string"; switch (field.getType()) { case Value.VALUE_TYPE_STRING: v.num2str(field.getFormat(), field.getDecimalSymbol(), field.getGroupSymbol(), field.getCurrencySymbol()); break; case Value.VALUE_TYPE_DATE: v.num2str("#").str2dat(field.getFormat()); break; default: v.setType(field.getType()); break; } break; // Use case: we find a date: convert it using the supplied format to String... // case Value.VALUE_TYPE_DATE: debug = "Convert date to string"; switch (field.getType()) { case Value.VALUE_TYPE_STRING: v.dat2str(field.getFormat()); break; default: v.setType(field.getType()); break; } break; default: v.setType(field.getType()); } } } catch (KettleException ex) { if (!meta.isErrorIgnored()) throw ex; logBasic("Warning processing [" + debug + "] from Excel file [" + data.filename + "] : " + ex.toString()); if (!errorHandled) // check if we didn't log an error already for this one. { data.errorHandler.handleLineError(excelInputRow.rownr, excelInputRow.sheetName); errorHandled=true; } if (meta.isErrorLineSkipped()) { r.setIgnore(); return r; } else { v.setNull(); } } // Set the meta-data of the field: length and precision // v.setLength(meta.getField()[rowcolumn].getLength(), meta.getField()[rowcolumn].getPrecision()); } debug = "filename"; // Do we need to include the filename? if (meta.getFileField() != null && meta.getFileField().length() > 0) { Value value = new Value(meta.getFileField(), data.filename); value.setLength(data.maxfilelength); r.addValue(value); } debug = "sheetname"; // Do we need to include the sheetname? if (meta.getSheetField() != null && meta.getSheetField().length() > 0) { Value value = new Value(meta.getSheetField(), excelInputRow.sheetName); value.setLength(data.maxsheetlength); r.addValue(value); } debug = "rownumber"; // Do we need to include the rownumber? if (meta.getRowNumberField() != null && meta.getRowNumberField().length() > 0) { Value value = new Value(meta.getRowNumberField(), linesWritten + 1); r.addValue(value); } debug = "end of fillRow"; return r; } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/3f39d037ba2ddf06fc422d6ae1f3add16df6eae5/ExcelInput.java/buggy/src/be/ibridge/kettle/trans/step/excelinput/ExcelInput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6556,
3636,
1999,
12,
1999,
2580,
264,
543,
16,
509,
787,
2827,
16,
17674,
1210,
1999,
22011,
1210,
1999,
13,
1216,
1475,
278,
5929,
503,
202,
95,
202,
202,
4148,
273,
315,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6556,
3636,
1999,
12,
1999,
2580,
264,
543,
16,
509,
787,
2827,
16,
17674,
1210,
1999,
22011,
1210,
1999,
13,
1216,
1475,
278,
5929,
503,
202,
95,
202,
202,
4148,
273,
315,
5... | |
protected static Date fromDosTime(ZipLong l) { long dosTime = l.getValue(); Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, (int) ((dosTime >> 25) & 0x7f) + 1980); cal.set(Calendar.MONTH, (int) ((dosTime >> 21) & 0x0f) - 1); cal.set(Calendar.DATE, (int) (dosTime >> 16) & 0x1f); cal.set(Calendar.HOUR_OF_DAY, (int) (dosTime >> 11) & 0x1f); cal.set(Calendar.MINUTE, (int) (dosTime >> 5) & 0x3f); cal.set(Calendar.SECOND, (int) (dosTime << 1) & 0x3e); return cal.getTime(); | protected static Date fromDosTime(ZipLong zipDosTime) { long dosTime = zipDosTime.getValue(); return new Date(dosToJavaTime(dosTime)); | protected static Date fromDosTime(ZipLong l) { long dosTime = l.getValue(); Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, (int) ((dosTime >> 25) & 0x7f) + 1980); cal.set(Calendar.MONTH, (int) ((dosTime >> 21) & 0x0f) - 1); cal.set(Calendar.DATE, (int) (dosTime >> 16) & 0x1f); cal.set(Calendar.HOUR_OF_DAY, (int) (dosTime >> 11) & 0x1f); cal.set(Calendar.MINUTE, (int) (dosTime >> 5) & 0x3f); cal.set(Calendar.SECOND, (int) (dosTime << 1) & 0x3e); return cal.getTime(); } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/a05d1f12196d34b23d4ab80c3598f6fb63410ac5/ZipFile.java/clean/src/main/org/apache/tools/zip/ZipFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
2167,
628,
40,
538,
950,
12,
9141,
3708,
328,
13,
288,
3639,
1525,
16153,
950,
273,
328,
18,
24805,
5621,
3639,
5542,
1443,
273,
5542,
18,
588,
1442,
5621,
3639,
1443,
18,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
2167,
628,
40,
538,
950,
12,
9141,
3708,
328,
13,
288,
3639,
1525,
16153,
950,
273,
328,
18,
24805,
5621,
3639,
5542,
1443,
273,
5542,
18,
588,
1442,
5621,
3639,
1443,
18,
54... |
throw new DomEx(DomEx.NOT_FOUND_ERR, null, node, 0); | throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, node, 0); | public Attr removeAttributeNode(Attr node) { if (attributes == null) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, node, 0); } return (Attr) attributes.removeNamedItem(node.getNodeName()); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomElement.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
11289,
18831,
907,
12,
3843,
756,
13,
225,
288,
565,
309,
261,
4350,
422,
446,
13,
1377,
288,
3639,
604,
394,
12965,
8168,
503,
12,
8168,
503,
18,
4400,
67,
9294,
67,
9712,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
11289,
18831,
907,
12,
3843,
756,
13,
225,
288,
565,
309,
261,
4350,
422,
446,
13,
1377,
288,
3639,
604,
394,
12965,
8168,
503,
12,
8168,
503,
18,
4400,
67,
9294,
67,
9712,
16,
... |
private Link getLink(String text, int PageId, int parentPageID, boolean addParentID, boolean isSubPage) { Link L = new Link(text); if (_styles) { if (isSubPage && _subStyles) { if (PageId == currentPageId) L.setStyle(_subHoverName); else L.setStyle(_subName); } else { if (PageId == currentPageId) L.setStyle(_hoverName); else L.setStyle(_name); } } else { if (PageId == currentPageId) L.setFontColor(highlightFontColor); else L.setFontColor(fontColor); L.setFontSize(fontSize); } L.setPage(PageId); if (addParentID) L.addParameter("parent_id", parentPageID); if (asButton) { L.setAsImageButton(asButton, true); } else if (asTab) { L.setAsImageTab(asTab, true, asFlipped); } return L; } | 14023 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14023/538f9b6006362b4344ab71a8faa0d7405812fbe9/NavigationMenu.java/buggy/src/java/com/idega/block/navigation/presentation/NavigationMenu.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2098,
588,
2098,
12,
780,
955,
16,
474,
23053,
16,
474,
2938,
1964,
734,
16,
6494,
1289,
29586,
16,
6494,
291,
1676,
1964,
15329,
202,
202,
2098,
48,
33,
2704,
2098,
12,
955,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2098,
588,
2098,
12,
780,
955,
16,
474,
23053,
16,
474,
2938,
1964,
734,
16,
6494,
1289,
29586,
16,
6494,
291,
1676,
1964,
15329,
202,
202,
2098,
48,
33,
2704,
2098,
12,
955,... | ||
workbench.close(); | closing = true; for (Iterator iterator = dialogs.iterator(); iterator.hasNext();) { InternalErrorDialog dialog = (InternalErrorDialog)iterator.next(); if(dialog != null && dialog.getShell() != null && !dialog.getShell().isDisposed()) dialog.close(); } workbench.close(IPlatformRunnable.EXIT_OK,true); | private void closeWorkbench() { try { workbench.close(); } catch (RuntimeException th) { /* It may not be possible to show the inform the user about this exception we may not * have more memory or OS handles etc. */ System.err.println("Another fatal error happened while closing the workbench."); //$NON-NLS-1$ th.printStackTrace(); throw th; } catch (Error th) { /* It may not be possible to show the inform the user about this exception we may not * have more memory or OS handles etc. */ System.err.println("Another fatal error happened while closing the workbench."); //$NON-NLS-1$ th.printStackTrace(); throw th; }} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/85910d92d3cb65927e3fc885b355337406f3c722/ExceptionHandler.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ExceptionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
1746,
2421,
22144,
1435,
288,
202,
698,
288,
202,
202,
1252,
22144,
18,
4412,
5621,
202,
97,
1044,
261,
11949,
286,
13,
288,
202,
202,
20308,
2597,
2026,
486,
506,
3323,
358,
2405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1746,
2421,
22144,
1435,
288,
202,
698,
288,
202,
202,
1252,
22144,
18,
4412,
5621,
202,
97,
1044,
261,
11949,
286,
13,
288,
202,
202,
20308,
2597,
2026,
486,
506,
3323,
358,
2405,
... |
textIconGap = 0; iconR.width = 0; iconR.height = 0; | if (c.getComponentOrientation() == ComponentOrientation.RIGHT_TO_LEFT) horizontalTextPosition = RIGHT; else horizontalTextPosition = LEFT; | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap) { // Work out basic height and width. if (icon == null) { textIconGap = 0; iconR.width = 0; iconR.height = 0; } else { iconR.width = icon.getIconWidth(); iconR.height = icon.getIconHeight(); } if (text == null) { textIconGap = 0; textR.width = 0; textR.height = 0; } else { textR.width = fm.stringWidth(text); textR.height = fm.getHeight(); } // Work out the position of text and icon, assuming the top-left coord // starts at (0,0). We will fix that up momentarily, after these // "position" decisions are made and we look at alignment. switch (horizontalTextPosition) { case LEFT: textR.x = 0; iconR.x = textR.width + textIconGap; break; case RIGHT: iconR.x = 0; textR.x = iconR.width + textIconGap; break; case CENTER: int centerLine = Math.max(textR.width, iconR.width) / 2; textR.x = centerLine - textR.width/2; iconR.x = centerLine - iconR.width/2; break; } switch (verticalTextPosition) { case TOP: textR.y = 0; iconR.y = textR.height + textIconGap; break; case BOTTOM: iconR.y = 0; textR.y = iconR.height + textIconGap; break; case CENTER: int centerLine = Math.max(textR.height, iconR.height) / 2; textR.y = centerLine - textR.height/2; iconR.y = centerLine - iconR.height/2; break; } // The two rectangles are laid out correctly now, but only assuming // that their upper left corner is at (0,0). If we have any alignment other // than TOP and LEFT, we need to adjust them. Rectangle u = textR.union(iconR); int horizontalAdjustment = viewR.x; int verticalAdjustment = viewR.y; switch (verticalAlignment) { case TOP: break; case BOTTOM: verticalAdjustment += (viewR.height - u.height); break; case CENTER: verticalAdjustment += ((viewR.height/2) - (u.height/2)); break; } switch (horizontalAlignment) { case LEFT: break; case RIGHT: horizontalAdjustment += (viewR.width - u.width); break; case CENTER: horizontalAdjustment += ((viewR.width/2) - (u.width/2)); break; } iconR.x += horizontalAdjustment; iconR.y += verticalAdjustment; textR.x += horizontalAdjustment; textR.y += verticalAdjustment; return text; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/SwingUtilities.java/buggy/core/src/classpath/javax/javax/swing/SwingUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
3511,
16835,
2224,
12,
5711,
5653,
10940,
16,
4766,
6647,
514,
977,
16,
4766,
6647,
16011,
4126,
16,
4766,
6647,
509,
9768,
11535,
16,
4766,
6647,
509,
10300,
11535,
16,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
3511,
16835,
2224,
12,
5711,
5653,
10940,
16,
4766,
6647,
514,
977,
16,
4766,
6647,
16011,
4126,
16,
4766,
6647,
509,
9768,
11535,
16,
4766,
6647,
509,
10300,
11535,
16,
4... |
bufferPool[ i ] = new ArrayList(); | bufferPool[ i ] = new ArrayList(); | private synchronized void singletonConfigure(Configuration configuration) throws ConfigurationException { time = configuration.getAttributeAsInteger("jacorb.bufferManagerMaxFlush", 0); MAX = configuration.getAttributeAsInteger("jacorb.maxManagedBufSize", 18); bufferPool = new List[ MAX ]; for( int i = 0; i < MAX; i++) { bufferPool[ i ] = new ArrayList(); } /* create a number of buffers for the preferred memory buffer size */ int m_pos = 0; int j = MEM_BUFSIZE; while( j > 1 ) { j = j >> 1; m_pos++; } for( int min = 0; min < MIN_PREFERRED_BUFS; min++ ) { bufferPool[ m_pos -MIN_OFFSET ].add(new byte[ MEM_BUFSIZE ]); } if (time > 0) { // create new reaper reaper = new Reaper (time); reaper.setName ("BufferManager MaxCache Reaper"); reaper.setDaemon (true); reaper.start(); } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/124f924aa38dc69e5384abbc34d818872107cef3/BufferManager.java/buggy/src/org/jacorb/orb/BufferManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
6396,
11207,
12,
1750,
1664,
13,
3639,
1216,
22196,
565,
288,
3639,
813,
273,
2398,
1664,
18,
588,
24433,
4522,
2932,
31390,
16640,
18,
4106,
1318,
2747,
8207,
3113,
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,
3238,
3852,
918,
6396,
11207,
12,
1750,
1664,
13,
3639,
1216,
22196,
565,
288,
3639,
813,
273,
2398,
1664,
18,
588,
24433,
4522,
2932,
31390,
16640,
18,
4106,
1318,
2747,
8207,
3113,
374,
... |
ruby.getScope().setLocalNames(body.getLocalNames()); | ruby.getScope().resetLocalVariables(body.getLocalNames()); | public IRubyObject call(Ruby ruby, IRubyObject receiver, String name, IRubyObject[] args, boolean noSuper) { RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && ruby.isBlockGiven()) { optionalBlockArg = RubyProc.newProc(ruby); } ruby.getScope().push(); Namespace savedNamespace = null; savedNamespace = ruby.getNamespace(); ruby.setNamespace(namespace); ruby.getCurrentFrame().setNamespace(namespace); if (body.getLocalNames() != null) { ruby.getScope().setLocalNames(body.getLocalNames()); } ruby.pushDynamicVars(); try { if (argsNode != null) { prepareArguments(ruby, receiver, args); } if (optionalBlockArg != null) { ruby.getScope().setValue(argsNode.getBlockArgNode().getCount(), optionalBlockArg); } traceCall(ruby, receiver, name); return receiver.eval(body.getBodyNode()); } catch (ReturnJump re) { return re.getReturnValue(); } finally { ruby.popDynamicVars(); ruby.getScope().pop(); ruby.setNamespace(savedNamespace); traceReturn(ruby, receiver, name); } } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/6e143e1ded2275ed4da3449d4a13446b099f800d/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
745,
12,
54,
10340,
22155,
16,
15908,
10340,
921,
5971,
16,
514,
508,
16,
15908,
10340,
921,
8526,
833,
16,
1250,
1158,
8051,
13,
288,
3639,
19817,
15417,
3129,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
745,
12,
54,
10340,
22155,
16,
15908,
10340,
921,
5971,
16,
514,
508,
16,
15908,
10340,
921,
8526,
833,
16,
1250,
1158,
8051,
13,
288,
3639,
19817,
15417,
3129,
1... |
if ( ch == '?' ) { lastProposals = getParameterCompletionProposals( viewer, offset ); return lastProposals; } else if ( ch == '.' ) | if ( ch == '.' ) | public ICompletionProposal[] computeCompletionProposals( ITextViewer viewer, int offset ) { try { if ( offset > viewer.getTopIndexStartOffset( ) ) { //Check the character before the offset char ch = viewer.getDocument( ).getChar( offset - 1 ); //If this is a ? then get the list of parameters if ( ch == '?' ) //$NON-NLS-1$ { lastProposals = getParameterCompletionProposals( viewer, offset ); return lastProposals; } else if ( ch == '.' ) //$NON-NLS-1$ { lastProposals = getTableOrColumnCompletionProposals( viewer, offset ); return lastProposals; } else { return getRelevantProposals( viewer, offset ); } } } catch ( BadLocationException e ) { } return null; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/a55b8e0bdebeaddfcc6de7053ea057f37660876e/JdbcSQLContentAssistProcessor.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/JdbcSQLContentAssistProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
11238,
14592,
8526,
3671,
11238,
626,
22536,
12,
1082,
202,
1285,
408,
18415,
14157,
16,
509,
1384,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
1384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
11238,
14592,
8526,
3671,
11238,
626,
22536,
12,
1082,
202,
1285,
408,
18415,
14157,
16,
509,
1384,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
1384,
... |
MockRepositoryQueryLayer queryLayer = new MockRepositoryQueryLayer(); queryLayer.addReturnValue( ARTIFACT_FOUND ); Dependency dependency = new Dependency(); setRequiredElements( dependency, VALID, VALID, VALID ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_NOT_FOUND ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); setRequiredElements( artifact, VALID, VALID, VALID ); processor.setRepositoryQueryLayer( queryLayer ); processor.processArtifact( model, artifact, reporter, null ); | Artifact artifact = createValidArtifact(); processor.processArtifact( model, artifact, reporter, repository ); | public void testValidArtifactWithAnInvalidDependency() { MockArtifactFactory artifactFactory = new MockArtifactFactory(); processor.setArtifactFactory( artifactFactory ); MockRepositoryQueryLayer queryLayer = new MockRepositoryQueryLayer(); queryLayer.addReturnValue( ARTIFACT_FOUND ); Dependency dependency = new Dependency(); setRequiredElements( dependency, VALID, VALID, VALID ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_NOT_FOUND ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); setRequiredElements( artifact, VALID, VALID, VALID ); processor.setRepositoryQueryLayer( queryLayer ); processor.processArtifact( model, artifact, reporter, null ); assertEquals( 5, reporter.getNumSuccesses() ); assertEquals( 1, reporter.getNumFailures() ); assertEquals( 0, reporter.getNumWarnings() ); Iterator failures = reporter.getArtifactFailureIterator(); ArtifactResult result = (ArtifactResult) failures.next(); assertEquals( ArtifactReporter.DEPENDENCY_NOT_FOUND, result.getReason() ); } | 47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/3647c95d63a9889abeac4ff19b6dc271d21d6c61/ArtifactReportProcessorTest.java/buggy/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/ArtifactReportProcessorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1556,
7581,
1190,
979,
1941,
7787,
1435,
565,
288,
3639,
7867,
7581,
1733,
6462,
1733,
273,
394,
7867,
7581,
1733,
5621,
3639,
6659,
18,
542,
7581,
1733,
12,
6462,
1733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1556,
7581,
1190,
979,
1941,
7787,
1435,
565,
288,
3639,
7867,
7581,
1733,
6462,
1733,
273,
394,
7867,
7581,
1733,
5621,
3639,
6659,
18,
542,
7581,
1733,
12,
6462,
1733,
... |
channel.write(buffer); | while(buffer.hasRemaining()) channel.write(buffer); | public void run () { if ( getCommand() == null ) throw new IllegalArgumentException("Given command is null!"); if ( getSocketProvider() == null ) throw new IllegalArgumentException("Given connection is not open!"); if ( getCommand() instanceof ListCommand ) { setReply(ReplyWorker.readReply(getSocketProvider(),true)); setStatus(ReplyWorker.FINISHED); return; } else if ( getCommand() instanceof RetrieveCommand ) { RetrieveCommand retrieveCommand = (RetrieveCommand) getCommand(); //TODO: Add handling for TYPE A if ( retrieveCommand.getFromFile().getType().intern() == Command.TYPE_I ) { try { FileOutputStream out = new FileOutputStream(retrieveCommand.getToFile().getFile()); FileChannel channel = out.getChannel(); int amount; try { while ((amount = getSocketProvider().read(buffer)) != -1) { if (amount == 0) { try { Thread.sleep(4); } catch (InterruptedException e) {} } if (buffer.remaining() > 0) { continue; } buffer.flip(); channel.write(buffer); buffer.clear(); } buffer.flip(); channel.write(buffer); buffer.clear(); setStatus(ReplyWorker.FINISHED); channel.close(); getSocketProvider().close(); } catch (IOException ioe) { setCaughtException(ioe); setStatus(ReplyWorker.ERROR_IO_EXCEPTION); } }catch (FileNotFoundException fnfe) { setCaughtException(fnfe); setStatus(ReplyWorker.ERROR_FILE_NOT_FOUND); } }else throw new IllegalArgumentException("Unknown file transfer type for download!"); return; } else if ( getCommand() instanceof StoreCommand ) { StoreCommand storeCommand = (StoreCommand) getCommand();// TODO: Add handling for TYPE A if ( storeCommand.getToFile().getType().intern() == Command.TYPE_I ) { try { log.debug("Upload file: " + storeCommand.getFromFile().toString()); FileInputStream in = new FileInputStream(storeCommand.getFromFile().getFile()); FileChannel channel = in.getChannel(); int amount; int socketWrite; int socketAmount = 0; try { while ((amount = channel.read(buffer)) != -1) { buffer.flip(); socketWrite = 0; while ((socketWrite = getSocketProvider().write(buffer)) != -1) { socketAmount += socketWrite; if (amount <= socketAmount) { break; } if (socketWrite == 0) { try { Thread.sleep(4); } catch (InterruptedException e) {} } } if (socketWrite == -1) { break; } socketAmount = 0; buffer.clear(); } setStatus(ReplyWorker.FINISHED); channel.close(); getSocketProvider().close(); } catch (IOException ioe) { setCaughtException(ioe); setStatus(ReplyWorker.ERROR_IO_EXCEPTION); } }catch (FileNotFoundException fnfe) { setCaughtException(fnfe); setStatus(ReplyWorker.ERROR_FILE_NOT_FOUND); } } else throw new IllegalArgumentException("Unknown file transfer type for upload!"); }else throw new IllegalArgumentException("Given command is not supported!"); } | 11835 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11835/36dd349577ea8833c77d0bd944e9451abaf349b0/ReplyWorker.java/clean/ftp4che14/src/java/org/ftp4che/util/ReplyWorker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1832,
288,
3639,
309,
261,
12856,
1435,
422,
446,
262,
5411,
604,
394,
2754,
2932,
6083,
1296,
353,
446,
4442,
1769,
3639,
309,
261,
28673,
2249,
1435,
422,
446,
262,
541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1832,
288,
3639,
309,
261,
12856,
1435,
422,
446,
262,
5411,
604,
394,
2754,
2932,
6083,
1296,
353,
446,
4442,
1769,
3639,
309,
261,
28673,
2249,
1435,
422,
446,
262,
541... |
t.blowup(false,Project.class,new HashSet(),new HashMap()); | public void testFindContainerHierarchies() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findContainerHierarchies((Class)arg[0],(Set)arg[1],(Map)arg[2]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(), new HashMap()); t.blowup(true,Dataset.class,new HashSet(),new HashMap()); t.blowup(true,Image.class,new HashSet(),new HashMap()); t.blowup(false,Project.class,new HashSet(), new HashMap()); t.blowup(false,CategoryGroup.class,new HashSet(), new HashMap()); // param2: t.blowup(true,Project.class,null, new HashMap()); t.blowup(false,Project.class,new HashSet(),new HashMap()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d331e574e46de5764580559f877bbc4be131b20/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3125,
2170,
44,
5148,
606,
1435,
1216,
1185,
288,
202,
202,
56,
268,
273,
394,
399,
12,
3064,
5357,
503,
18,
1106,
15329,
1082,
202,
36,
6618,
1082,
202,
482,
918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3125,
2170,
44,
5148,
606,
1435,
1216,
1185,
288,
202,
202,
56,
268,
273,
394,
399,
12,
3064,
5357,
503,
18,
1106,
15329,
1082,
202,
36,
6618,
1082,
202,
482,
918,
... | |
shiftRight(val.digits, val.numberLength, val.digits, intCount, count & 31); | if (!shiftRight(val.digits, val.numberLength, val.digits, intCount, count & 31) && sign < 0) { int i; for (i = 0; ( i < val.numberLength ) && ( val.digits[i] == -1 ); i++) { val.digits[i] = 0; } if (i == val.numberLength) { val.numberLength++; } val.digits[i]++; } | static void inplaceShiftRight(BigInteger val, int count) { // PRE: val > 0 int intCount = count >> 5; // count of integers val.numberLength -= intCount; shiftRight(val.digits, val.numberLength, val.digits, intCount, count & 31); val.cutOffLeadingZeroes(); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9f90bead11df6c0bbe4086809e7c597ce940830d/BitLevel.java/clean/modules/math/src/main/java/java/math/BitLevel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
11783,
10544,
4726,
12,
24198,
1244,
16,
509,
1056,
13,
288,
3639,
368,
7071,
30,
1244,
405,
374,
3639,
509,
509,
1380,
273,
1056,
1671,
1381,
31,
368,
1056,
434,
12321,
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,
760,
918,
11783,
10544,
4726,
12,
24198,
1244,
16,
509,
1056,
13,
288,
3639,
368,
7071,
30,
1244,
405,
374,
3639,
509,
509,
1380,
273,
1056,
1671,
1381,
31,
368,
1056,
434,
12321,
3639,
... |
public org.quickfix.field.LegOptAttribute getLegOptAttribute() throws FieldNotFound { org.quickfix.field.LegOptAttribute value = new org.quickfix.field.LegOptAttribute(); | public quickfix.field.LegOptAttribute getLegOptAttribute() throws FieldNotFound { quickfix.field.LegOptAttribute value = new quickfix.field.LegOptAttribute(); | public org.quickfix.field.LegOptAttribute getLegOptAttribute() throws FieldNotFound { org.quickfix.field.LegOptAttribute value = new org.quickfix.field.LegOptAttribute(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuoteAcknowledgement.java/buggy/src/java/src/quickfix/fix44/MassQuoteAcknowledgement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
6179,
1499,
336,
8329,
6179,
1499,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
6179,
1499,
460,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
6179,
1499,
336,
8329,
6179,
1499,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
6179,
1499,
460,
273,
394,
... |
String extension = filename.substring(filename.lastIndexOf(".") + 1); int num = Integer.parseInt(extension, 16); | String ext = filename.substring(filename.lastIndexOf(".") + 1); int num = Integer.parseInt(ext, 16); | protected void initFile(String id) throws FormatException, IOException { super.initFile(id); // get the working directory File tempFile = new File(id); File workingDir = tempFile.getParentFile(); if (workingDir == null) workingDir = new File("."); String workingDirPath = workingDir.getPath() + File.separator; String[] ls = workingDir.list(); // check if we have any of the required header file types int cfgPos = -1; int anoPos = -1; int recPos = -1; int timPos = -1; int csvPos = -1; int zpoPos = -1; int htmPos = -1; int filesPt = 0; files = new String[ls.length]; String tempFileName = tempFile.getName(); int dot = tempFileName.lastIndexOf("."); String check = dot < 0 ? tempFileName : tempFileName.substring(0, dot); // locate appropriate .tim, .csv, .zpo, .htm and .tif files String prefix = null; for (int i=0; i<ls.length; i++) { // make sure that the file has a name similar to the name of the // specified file int d = ls[i].lastIndexOf("."); while (d == -1 && i < ls.length) { i++; d = ls[i].lastIndexOf("."); } String s = dot < 0 ? ls[i] : ls[i].substring(0, d); String filename = ls[i].toLowerCase(); if (s.startsWith(check) || check.startsWith(s) || ((prefix != null) && (s.startsWith(prefix)))) { if (cfgPos == -1) { if (filename.endsWith(".cfg")) { cfgPos = i; prefix = ls[i].substring(0, d); } } if (anoPos == -1) { if (filename.endsWith(".ano")) { anoPos = i; prefix = ls[i].substring(0, d); } } if (recPos == -1) { if (filename.endsWith(".rec")) { recPos = i; prefix = ls[i].substring(0, d); } } if (timPos == -1) { if (filename.endsWith(".tim")) { timPos = i; prefix = ls[i].substring(0, d); } } if (csvPos == -1) { if (filename.endsWith(".csv")) { csvPos = i; prefix = ls[i].substring(0, d); } } if (zpoPos == -1) { if (filename.endsWith(".zpo")) { zpoPos = i; prefix = ls[i].substring(0, d); } } if (htmPos == -1) { if (filename.endsWith(".htm")) { htmPos = i; prefix = ls[i].substring(0, d); } } if (filename.endsWith(".tif") || filename.endsWith(".tiff")) { files[filesPt] = workingDirPath + ls[i]; filesPt++; } try { String extension = filename.substring(filename.lastIndexOf(".") + 1); int num = Integer.parseInt(extension); isTiff = false; files[filesPt] = workingDirPath + ls[i]; filesPt++; } catch (Exception e) { try { String extension = filename.substring(filename.lastIndexOf(".") + 1); int num = Integer.parseInt(extension, 16); isTiff = false; files[filesPt] = workingDirPath + ls[i]; filesPt++; } catch (Exception f) { } } } } // re-order the files String[] tempFiles = files; files = new String[filesPt]; //System.arraycopy(tempFiles, 0, files, 0, filesPt); // determine the number of different extensions we have int extCount = 0; Vector foundExts = new Vector(); for (int i=0; i<filesPt; i++) { String ext = tempFiles[i].substring(tempFiles[i].lastIndexOf(".") + 1); if (!foundExts.contains(ext)) { extCount++; foundExts.add(ext); } } for (int i=0; i<filesPt; i+=extCount) { Vector extSet = new Vector(); for (int j=0; j<extCount; j++) { if (extSet.size() == 0) extSet.add(tempFiles[i + j]); else { String ext = tempFiles[i+j].substring(tempFiles[i+j].lastIndexOf(".") + 1); int extNum = Integer.parseInt(ext, 16); int insert = -1; int pos = 0; while (insert == -1 && pos < extSet.size()) { String posString = (String) extSet.get(pos); posString = posString.substring(posString.lastIndexOf(".") + 1); int posNum = Integer.parseInt(posString, 16); if (extNum < posNum) insert = pos; pos++; } if (insert == -1) extSet.add(tempFiles[i+j]); else extSet.add(insert, tempFiles[i + j]); } } for (int j=0; j<extCount; j++) { files[i+j] = (String) extSet.get(j); } } numImages = files.length; BufferedReader read; char[] data; StringTokenizer t; tiff = new TiffReader[numImages]; for (int i=0; i<tiff.length; i++) tiff[i] = new TiffReader(); // highly questionable metadata parsing // we always parse the .tim and .htm files if they exist, along with // either the .csv file or the .zpo file if (timPos != -1) { tempFile = new File(workingDir, ls[timPos]); read = new BufferedReader(new FileReader(tempFile)); data = new char[(int) tempFile.length()]; read.read(data); t = new StringTokenizer(new String(data)); int tNum = 0; // can ignore "Zero x" and "Extra int" String[] hashKeys = {"Number of Wavelengths/Timepoints", "Zero 1", "Zero 2", "Number of slices", "Extra int", "Calibration Unit", "Pixel Size Y", "Pixel Size X", "Image Width", "Image Length", "Origin X", "SubfileType X", "Dimension Label X", "Origin Y", "SubfileType Y", "Dimension Label Y", "Origin Z", "SubfileType Z", "Dimension Label Z"}; // there are 9 additional tokens, but I don't know what they're for while (t.hasMoreTokens() && tNum<hashKeys.length) { String token = t.nextToken(); while ((tNum == 1 || tNum == 2) && !token.trim().equals("0")) { tNum++; } if (tNum == 4) { try { Integer.parseInt(token); } catch (Exception e) { tNum++; } } metadata.put(hashKeys[tNum], token); tNum++; } } if (csvPos != -1) { tempFile = new File(workingDir, ls[csvPos]); read = new BufferedReader(new FileReader(tempFile)); data = new char[(int) tempFile.length()]; read.read(data); t = new StringTokenizer(new String(data)); int tNum = 0; String[] hashKeys = {"Calibration Unit", "Pixel Size X", "Pixel Size Y", "Z slice space"}; int pt = 0; while (t.hasMoreTokens()) { if (tNum < 7) { t.nextToken(); } else if ((tNum > 7 && tNum < 12) || (tNum > 12 && tNum < 18) || (tNum > 18 && tNum < 22)) { t.nextToken(); } else if (pt < hashKeys.length) { metadata.put(hashKeys[pt], t.nextToken()); pt++; } else { metadata.put(t.nextToken() + t.nextToken(), t.nextToken()); } tNum++; } } else if (zpoPos != -1) { tempFile = new File(workingDir, ls[zpoPos]); read = new BufferedReader(new FileReader(tempFile)); data = new char[(int) tempFile.length()]; read.read(data); t = new StringTokenizer(new String(data)); int tNum = 0; while (t.hasMoreTokens()) { metadata.put("Z slice #" + tNum + " position", t.nextToken()); tNum++; } } // be aggressive about parsing the HTML file, since it's the only one that // explicitly defines the number of wavelengths and timepoints if (htmPos != -1) { // ooh, pretty HTML tempFile = new File(workingDir, ls[htmPos]); read = new BufferedReader(new FileReader(tempFile)); data = new char[(int) tempFile.length()]; read.read(data); String regex = "<p>|</p>|<br>|<hr>|<b>|</b>|<HTML>|<HEAD>|</HTML>|" + "</HEAD>|<h1>|</h1>|<HR>|</body>"; // use reflection to avoid dependency on Java 1.4-specific split method Class c = String.class; String[] tokens = new String[0]; try { Method split = c.getMethod("split", new Class[] {c}); tokens = (String[]) split.invoke(new String(data), new Object[] {regex}); } catch (Throwable e) { } for (int j=0; j<tokens.length; j++) { if (tokens[j].indexOf("<") != -1) tokens[j] = ""; } for (int j=0; j<tokens.length-1; j+=2) { if (tokens[j].indexOf("Wavelength") != -1) { metadata.put("Camera Data " + tokens[j].charAt(13), tokens[j]); j--; } else if (!tokens[j].trim().equals("")) { metadata.put(tokens[j], tokens[j+1]); } } } else { throw new FormatException("Valid header files not found."); } String details = (String) metadata.get("Experiment details:"); // parse details to get number of wavelengths and timepoints t = new StringTokenizer(details); int tokenNum = 0; String wavelengths = "1"; int numTokens = t.countTokens(); boolean foundId = false; String prevToken = ""; while (t.hasMoreTokens()) { String token = t.nextToken(); foundId = token.equals("Wavelengths"); if (foundId) { wavelengths = prevToken; } tokenNum++; prevToken = token; } channels = Integer.parseInt(wavelengths); sizeX[0] = Integer.parseInt((String) metadata.get("Image Width")); sizeY[0] = Integer.parseInt((String) metadata.get("Image Length")); sizeZ[0] = Integer.parseInt((String) metadata.get("Number of slices")); sizeC[0] = channels; sizeT[0] = getImageCount(currentId) / (sizeZ[0] * sizeC[0]); if (isTiff) pixelType[0] = tiff[0].getPixelType(files[0]); else { int bpp = openBytes(id, 0).length / (sizeX[0] * sizeY[0]); switch (bpp) { case 1: pixelType[0] = FormatReader.INT8; break; case 2: pixelType[0] = FormatReader.UINT16; break; case 3: pixelType[0] = FormatReader.INT8; break; case 4: pixelType[0] = FormatReader.INT32; break; } } currentOrder[0] = "XY"; if (sizeZ[0] <= 0) { sizeZ[0] = 1; sizeT[0] = getImageCount(currentId) / (sizeZ[0] * sizeC[0]); } if (sizeC[0] <= 0) { sizeC[0] = 1; sizeT[0] = getImageCount(currentId) / (sizeZ[0] * sizeC[0]); } if (sizeT[0] <= 0) sizeT[0] = 1; int[] sizes = {sizeZ[0], sizeC[0], sizeT[0]}; int largest = 0; int largestIndex = 0; int smallest = Integer.MAX_VALUE; int smallestIndex = 0; for (int i=0; i<sizes.length; i++) { if (sizes[i] > largest) { largest = sizes[i]; largestIndex = i; } else if (sizes[i] < smallest) { smallest = sizes[i]; smallestIndex = i; } } String[] names = {"Z", "C", "T"}; currentOrder[0] += names[largestIndex]; for (int i=0; i<names.length; i++) { if (i != largestIndex && i != smallestIndex) { currentOrder[0] += names[i]; break; } } currentOrder[0] += names[smallestIndex]; // Populate metadata store // The metadata store we're working with. MetadataStore store = getMetadataStore(id); // populate Dimensions element String pixelSizeX = (String) metadata.get("Pixel Size X"); String pixelSizeY = (String) metadata.get("Pixel Size Y"); store.setDimensions(new Float(pixelSizeX), new Float(pixelSizeY), null, null, null, null); // populate Image element String time = (String) metadata.get("Finish Time:"); time = time.substring(1).trim(); store.setImage(null, time, null, null); // populate Pixels element String x = (String) metadata.get("Image Width"); String y = (String) metadata.get("Image Length"); String z = (String) metadata.get("Number of slices"); store.setPixels( new Integer(x), // SizeX new Integer(y), // SizeY new Integer(z), // SizeZ new Integer(wavelengths), // SizeC new Integer(getSizeT(id)), // SizeT new Integer(pixelType[0]), // PixelType null, // BigEndian "XYCTZ", // DimensionOrder null); // Use index 0 // populate StageLabel element String originX = (String) metadata.get("Origin X"); String originY = (String) metadata.get("Origin Y"); String originZ = (String) metadata.get("Origin Z"); try { store.setStageLabel(null, new Float(originX), new Float(originY), new Float(originZ), null); } catch (Exception e) { } } | 55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/3dfd59718bd357815b599f69b2fb792dc8c85b62/PerkinElmerReader.java/clean/loci/formats/in/PerkinElmerReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
368,
336,
326,
5960,
1867,
565,
1387,
18286,
273,
394,
1387,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
368,
336,
326,
5960,
1867,
565,
1387,
18286,
273,
394,
1387,
12,
... |
args = ArgsUtil.setupArgs(threadContext, this, iVisited.getArgsNode()); | args = ArgsUtil.setupArgs(runtime, threadContext, this, iVisited.getArgsNode()); | public void visitCallNode(CallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(threadContext); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = eval(iVisited.getReceiverNode()); args = ArgsUtil.setupArgs(threadContext, this, iVisited.getArgsNode()); } finally { ArgsUtil.endCallArgs(threadContext, tmpBlock); } Asserts.notNull(receiver.getMetaClass(), receiver.getClass().getName()); result = receiver.getMetaClass().call(receiver, iVisited.getName(), args, CallType.NORMAL); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/f5c9a1ebd775712f2dc086acfce1a14a123ec632/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1477,
907,
12,
1477,
907,
277,
30019,
13,
288,
3639,
3914,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
5930,
1042,
1769,
3639,
15908,
10340,
921,
5971,
273,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1477,
907,
12,
1477,
907,
277,
30019,
13,
288,
3639,
3914,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
5930,
1042,
1769,
3639,
15908,
10340,
921,
5971,
273,
4... |
/* if (this.sourceLevel >= ClassFileConstants.JDK1_5) { int temp = this.currentPosition; if (getNextChar('.')) { if (getNextChar('.')) { return TokenNameELLIPSIS; } else { this.currentPosition = temp; return TokenNameDOT; } } else { this.currentPosition = temp; return TokenNameDOT; } } else { return TokenNameDOT; }*/ | public int getNextToken() throws InvalidInputException { this.wasAcr = false; if (this.diet) { jumpOverMethodBody(); this.diet = false; return this.currentPosition > this.source.length ? TokenNameEOF : TokenNameRBRACE; } int whiteStart = 0; try { while (true) { //loop for jumping over comments this.withoutUnicodePtr = 0; //start with a new token (even comment written with unicode ) // ---------Consume white space and handles startPosition--------- whiteStart = this.currentPosition; boolean isWhiteSpace, hasWhiteSpaces = false; int offset; int unicodePtr; boolean checkIfUnicode = false; do { unicodePtr = this.withoutUnicodePtr; offset = this.currentPosition; this.startPosition = this.currentPosition; try { checkIfUnicode = ((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u'); } catch(IndexOutOfBoundsException e) { if (this.tokenizeWhiteSpace && (whiteStart != this.currentPosition - 1)) { // reposition scanner in case we are interested by spaces as tokens this.currentPosition--; this.startPosition = whiteStart; return TokenNameWHITESPACE; } if (this.currentPosition > this.eofPosition) return TokenNameEOF; } if (this.currentPosition > this.eofPosition) return TokenNameEOF; if (checkIfUnicode) { isWhiteSpace = jumpOverUnicodeWhiteSpace(); offset = this.currentPosition - offset; } else { offset = this.currentPosition - offset; if ((this.currentCharacter == '\r') || (this.currentCharacter == '\n')) { if (this.currentLine != null && this.currentLine.size() != 0) { parseTags(false); } if (this.recordLineSeparator) { pushLineSeparator(); } } // inline version of: //isWhiteSpace = // (this.currentCharacter == ' ') || CharOperation.isWhitespace(this.currentCharacter); switch (this.currentCharacter) { case 10 : /* \ u000a: LINE FEED */ case 12 : /* \ u000c: FORM FEED */ case 13 : /* \ u000d: CARRIAGE RETURN */ case 32 : /* \ u0020: SPACE */ case 9 : /* \ u0009: HORIZONTAL TABULATION */ isWhiteSpace = true; break; default : isWhiteSpace = false; } } if (isWhiteSpace) { hasWhiteSpaces = true; } } while (isWhiteSpace); if (hasWhiteSpaces) { if (this.tokenizeWhiteSpace) { // reposition scanner in case we are interested by spaces as tokens this.currentPosition-=offset; this.startPosition = whiteStart; if (checkIfUnicode) { this.withoutUnicodePtr = unicodePtr; } return TokenNameWHITESPACE; } else if (checkIfUnicode) { this.withoutUnicodePtr = 0; unicodeStore(); } else { this.withoutUnicodePtr = 0; } } // ---------Identify the next token------------- switch (this.currentCharacter) { case '@' :/* if (this.sourceLevel >= ClassFileConstants.JDK1_5) { return TokenNameAT; } else { return TokenNameERROR; }*/ return TokenNameAT; case '(' : return TokenNameLPAREN; case ')' : return TokenNameRPAREN; case '{' : return TokenNameLBRACE; case '}' : return TokenNameRBRACE; case '[' : return TokenNameLBRACKET; case ']' : return TokenNameRBRACKET; case ';' : return TokenNameSEMICOLON; case ',' : return TokenNameCOMMA; case '.' : if (getNextCharAsDigit()) { return scanNumber(true); }/* if (this.sourceLevel >= ClassFileConstants.JDK1_5) { int temp = this.currentPosition; if (getNextChar('.')) { if (getNextChar('.')) { return TokenNameELLIPSIS; } else { this.currentPosition = temp; return TokenNameDOT; } } else { this.currentPosition = temp; return TokenNameDOT; } } else { return TokenNameDOT; }*/ int temp = this.currentPosition; if (getNextChar('.')) { if (getNextChar('.')) { return TokenNameELLIPSIS; } else { this.currentPosition = temp; return TokenNameDOT; } } else { this.currentPosition = temp; return TokenNameDOT; } case '+' : { int test; if ((test = getNextChar('+', '=')) == 0) return TokenNamePLUS_PLUS; if (test > 0) return TokenNamePLUS_EQUAL; return TokenNamePLUS; } case '-' : { int test; if ((test = getNextChar('-', '=')) == 0) return TokenNameMINUS_MINUS; if (test > 0) return TokenNameMINUS_EQUAL; return TokenNameMINUS; } case '~' : return TokenNameTWIDDLE; case '!' : if (getNextChar('=')) return TokenNameNOT_EQUAL; return TokenNameNOT; case '*' : if (getNextChar('=')) return TokenNameMULTIPLY_EQUAL; return TokenNameMULTIPLY; case '%' : if (getNextChar('=')) return TokenNameREMAINDER_EQUAL; return TokenNameREMAINDER; case '<' : { int test; if ((test = getNextChar('=', '<')) == 0) return TokenNameLESS_EQUAL; if (test > 0) { if (getNextChar('=')) return TokenNameLEFT_SHIFT_EQUAL; return TokenNameLEFT_SHIFT; } return TokenNameLESS; } case '>' : { int test; if (this.returnOnlyGreater) { return TokenNameGREATER; } if ((test = getNextChar('=', '>')) == 0) return TokenNameGREATER_EQUAL; if (test > 0) { if ((test = getNextChar('=', '>')) == 0) return TokenNameRIGHT_SHIFT_EQUAL; if (test > 0) { if (getNextChar('=')) return TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL; return TokenNameUNSIGNED_RIGHT_SHIFT; } return TokenNameRIGHT_SHIFT; } return TokenNameGREATER; } case '=' : if (getNextChar('=')) return TokenNameEQUAL_EQUAL; return TokenNameEQUAL; case '&' : { int test; if ((test = getNextChar('&', '=')) == 0) return TokenNameAND_AND; if (test > 0) return TokenNameAND_EQUAL; return TokenNameAND; } case '|' : { int test; if ((test = getNextChar('|', '=')) == 0) return TokenNameOR_OR; if (test > 0) return TokenNameOR_EQUAL; return TokenNameOR; } case '^' : if (getNextChar('=')) return TokenNameXOR_EQUAL; return TokenNameXOR; case '?' : return TokenNameQUESTION; case ':' : return TokenNameCOLON; case '\'' : { int test; if ((test = getNextChar('\n', '\r')) == 0) { throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); } if (test > 0) { // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed for (int lookAhead = 0; lookAhead < 3; lookAhead++) { if (this.currentPosition + lookAhead == this.source.length) break; if (this.source[this.currentPosition + lookAhead] == '\n') break; if (this.source[this.currentPosition + lookAhead] == '\'') { this.currentPosition += lookAhead + 1; break; } } throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); } } if (getNextChar('\'')) { // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed for (int lookAhead = 0; lookAhead < 3; lookAhead++) { if (this.currentPosition + lookAhead == this.source.length) break; if (this.source[this.currentPosition + lookAhead] == '\n') break; if (this.source[this.currentPosition + lookAhead] == '\'') { this.currentPosition += lookAhead + 1; break; } } throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); } if (getNextChar('\\')) { if (this.unicodeAsBackSlash) { // consume next character this.unicodeAsBackSlash = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); } else { if (this.withoutUnicodePtr != 0) { unicodeStore(); } } } else { this.currentCharacter = this.source[this.currentPosition++]; } scanEscapeCharacter(); } else { // consume next character this.unicodeAsBackSlash = false; checkIfUnicode = false; try { checkIfUnicode = ((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u'); } catch(IndexOutOfBoundsException e) { this.currentPosition--; throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); } if (checkIfUnicode) { getNextUnicodeChar(); } else { if (this.withoutUnicodePtr != 0) { unicodeStore(); } } } if (getNextChar('\'')) return TokenNameCharacterLiteral; // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed for (int lookAhead = 0; lookAhead < 20; lookAhead++) { if (this.currentPosition + lookAhead == this.source.length) break; if (this.source[this.currentPosition + lookAhead] == '\n') break; if (this.source[this.currentPosition + lookAhead] == '\'') { this.currentPosition += lookAhead + 1; break; } } throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); case '"' : try { // consume next character this.unicodeAsBackSlash = false; boolean isUnicode = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); isUnicode = true; } else { if (this.withoutUnicodePtr != 0) { unicodeStore(); } } while (this.currentCharacter != '"') { /**** \r and \n are not valid in string literals ****/ if ((this.currentCharacter == '\n') || (this.currentCharacter == '\r')) { // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed if (isUnicode) { int start = this.currentPosition; for (int lookAhead = 0; lookAhead < 50; lookAhead++) { if (this.currentPosition >= this.eofPosition) { this.currentPosition = start; break; } if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { isUnicode = true; getNextUnicodeChar(); } else { isUnicode = false; } if (!isUnicode && this.currentCharacter == '\n') { this.currentPosition--; // set current position on new line character break; } if (this.currentCharacter == '\"') { throw new InvalidInputException(INVALID_CHAR_IN_STRING); } } } else { this.currentPosition--; // set current position on new line character } throw new InvalidInputException(INVALID_CHAR_IN_STRING); } if (this.currentCharacter == '\\') { if (this.unicodeAsBackSlash) { this.withoutUnicodePtr--; // consume next character this.unicodeAsBackSlash = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); this.withoutUnicodePtr--; } } else { if (this.withoutUnicodePtr == 0) { unicodeInitializeBuffer(this.currentPosition - this.startPosition); } this.withoutUnicodePtr --; this.currentCharacter = this.source[this.currentPosition++]; } // we need to compute the escape character in a separate buffer scanEscapeCharacter(); if (this.withoutUnicodePtr != 0) { unicodeStore(); } } // consume next character this.unicodeAsBackSlash = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); } else { if (this.withoutUnicodePtr != 0) { unicodeStore(); } } } } catch (IndexOutOfBoundsException e) { this.currentPosition--; throw new InvalidInputException(UNTERMINATED_STRING); } catch (InvalidInputException e) { if (e.getMessage().equals(INVALID_ESCAPE)) { // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed for (int lookAhead = 0; lookAhead < 50; lookAhead++) { if (this.currentPosition + lookAhead == this.source.length) break; if (this.source[this.currentPosition + lookAhead] == '\n') break; if (this.source[this.currentPosition + lookAhead] == '\"') { this.currentPosition += lookAhead + 1; break; } } } throw e; // rethrow } if (this.currentLine != null){ // check for presence of NLS tags this.currentLine.add( new StringLiteral( getCurrentTokenSourceString(), this.startPosition, this.currentPosition - 1)); } return TokenNameStringLiteral; case '/' : { int test; if ((test = getNextChar('/', '*')) == 0) { //line comment this.lastCommentLinePosition = this.currentPosition; try { //get the next char if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); } //handle the \\u case manually into comment if (this.currentCharacter == '\\') { if (this.source[this.currentPosition] == '\\') this.currentPosition++; } //jump over the \\ boolean isUnicode = false; while (this.currentCharacter != '\r' && this.currentCharacter != '\n') { this.lastCommentLinePosition = this.currentPosition; //get the next char isUnicode = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); isUnicode = true; } //handle the \\u case manually into comment if (this.currentCharacter == '\\') { if (this.source[this.currentPosition] == '\\') this.currentPosition++; } //jump over the \\ } /* * We need to completely consume the line break */ if (this.currentCharacter == '\r' && this.source.length > this.currentPosition) { if (this.source[this.currentPosition] == '\n') { this.currentPosition++; this.currentCharacter = '\n'; } else if ((this.source[this.currentPosition] == '\\') && (this.source[this.currentPosition + 1] == 'u')) { getNextUnicodeChar(); isUnicode = true; } } recordComment(TokenNameCOMMENT_LINE); if (this.taskTags != null) checkTaskTag(this.startPosition, this.currentPosition); if ((this.currentCharacter == '\r') || (this.currentCharacter == '\n')) { if (this.currentLine != null) { parseTags(true); } if (this.recordLineSeparator) { if (isUnicode) { pushUnicodeLineSeparator(); } else { pushLineSeparator(); } } } if (this.tokenizeComments) { return TokenNameCOMMENT_LINE; } } catch (IndexOutOfBoundsException e) { this.currentPosition--; recordComment(TokenNameCOMMENT_LINE); if (this.taskTags != null) checkTaskTag(this.startPosition, this.currentPosition); if (this.currentLine != null) { parseTags(true); } if (this.tokenizeComments) { return TokenNameCOMMENT_LINE; } else { this.currentPosition++; } } break; } if (test > 0) { //traditional and javadoc comment try { //get the next char boolean isJavadoc = false, star = false; boolean isUnicode = false; int previous; // consume next character this.unicodeAsBackSlash = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); isUnicode = true; } else { isUnicode = false; if (this.withoutUnicodePtr != 0) { unicodeStore(); } } if (this.currentCharacter == '*') { isJavadoc = true; star = true; } if ((this.currentCharacter == '\r') || (this.currentCharacter == '\n')) { if (this.currentLine != null && this.currentLine.size() != 0) { parseTags(false); } if (this.recordLineSeparator) { if (isUnicode) { pushUnicodeLineSeparator(); } else { pushLineSeparator(); } } } isUnicode = false; previous = this.currentPosition; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { //-------------unicode traitement ------------ getNextUnicodeChar(); isUnicode = true; } else { isUnicode = false; } //handle the \\u case manually into comment if (this.currentCharacter == '\\') { if (this.source[this.currentPosition] == '\\') this.currentPosition++; //jump over the \\ } // empty comment is not a javadoc /**/ if (this.currentCharacter == '/') { isJavadoc = false; } //loop until end of comment */ int firstTag = 0; while ((this.currentCharacter != '/') || (!star)) { if ((this.currentCharacter == '\r') || (this.currentCharacter == '\n')) { if (this.currentLine != null && this.currentLine.size() != 0) { parseTags(false); } if (this.recordLineSeparator) { if (isUnicode) { pushUnicodeLineSeparator(); } else { pushLineSeparator(); } } } switch (this.currentCharacter) { case '*': star = true; break; case '@': if (firstTag == 0) { firstTag = previous; } // fall through default case to set star to false default: star = false; } //get next char previous = this.currentPosition; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { //-------------unicode traitement ------------ getNextUnicodeChar(); isUnicode = true; } else { isUnicode = false; } //handle the \\u case manually into comment if (this.currentCharacter == '\\') { if (this.source[this.currentPosition] == '\\') this.currentPosition++; } //jump over the \\ } int token = isJavadoc ? TokenNameCOMMENT_JAVADOC : TokenNameCOMMENT_BLOCK; recordComment(token); this.commentTagStarts[this.commentPtr] = firstTag; if (this.taskTags != null) checkTaskTag(this.startPosition, this.currentPosition); if (this.tokenizeComments) { /* if (isJavadoc) return TokenNameCOMMENT_JAVADOC; return TokenNameCOMMENT_BLOCK; */ return token; } } catch (IndexOutOfBoundsException e) { this.currentPosition--; throw new InvalidInputException(UNTERMINATED_COMMENT); } break; } if (getNextChar('=')) return TokenNameDIVIDE_EQUAL; return TokenNameDIVIDE; } case '\u001a' : if (atEnd()) return TokenNameEOF; //the atEnd may not be <currentPosition == source.length> if source is only some part of a real (external) stream throw new InvalidInputException("Ctrl-Z"); //$NON-NLS-1$ default : char c = this.currentCharacter; if (c < MAX_OBVIOUS) { switch (ObviousIdentCharNatures[c]) { case C_LETTER : return scanIdentifierOrKeyword(); case C_DIGIT : return scanNumber(false); } } boolean isJavaIdStart; if (c >= HIGH_SURROGATE_MIN_VALUE && c <= HIGH_SURROGATE_MAX_VALUE) { if (this.complianceLevel < ClassFileConstants.JDK1_5) { throw new InvalidInputException(INVALID_UNICODE_ESCAPE); } // Unicode 4 detection char low = (char) getNextChar(); if (low < LOW_SURROGATE_MIN_VALUE || low > LOW_SURROGATE_MAX_VALUE) { // illegal low surrogate throw new InvalidInputException(INVALID_LOW_SURROGATE); } isJavaIdStart = ScannerHelper.isJavaIdentifierStart(c, low); } else if (c >= LOW_SURROGATE_MIN_VALUE && c <= LOW_SURROGATE_MAX_VALUE) { if (this.complianceLevel < ClassFileConstants.JDK1_5) { throw new InvalidInputException(INVALID_UNICODE_ESCAPE); } throw new InvalidInputException(INVALID_HIGH_SURROGATE); } else { isJavaIdStart = Character.isJavaIdentifierStart(c); } if (isJavaIdStart) return scanIdentifierOrKeyword(); if (isDigit(this.currentCharacter)) { return scanNumber(false); } return TokenNameERROR; } } } //-----------------end switch while try-------------------- catch (IndexOutOfBoundsException e) { if (this.tokenizeWhiteSpace && (whiteStart != this.currentPosition - 1)) { // reposition scanner in case we are interested by spaces as tokens this.currentPosition--; this.startPosition = whiteStart; return TokenNameWHITESPACE; } } return TokenNameEOF;} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/f56c0e1e9dcd69c29df729084f0860c1996ff08b/PublicScanner.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/PublicScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
509,
22616,
1435,
1216,
31989,
288,
202,
2211,
18,
17416,
37,
3353,
273,
629,
31,
202,
430,
261,
2211,
18,
3211,
278,
13,
288,
202,
202,
24574,
4851,
1305,
2250,
5621,
202,
202,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
22616,
1435,
1216,
31989,
288,
202,
2211,
18,
17416,
37,
3353,
273,
629,
31,
202,
430,
261,
2211,
18,
3211,
278,
13,
288,
202,
202,
24574,
4851,
1305,
2250,
5621,
202,
202,
2211,
... | |
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters) throws CmsException { if(C_DEBUG && A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_DEBUG, "[CmsDumpTemplate] Now dumping contents of file " + templateFile); } I_CmsSession session = cms.getRequestContext().getSession(true); CmsXmlWpTemplateFile templateDocument = new CmsXmlWpTemplateFile(cms, templateFile); CmsXmlLanguageFile lang = templateDocument.getLanguageFile(); // get the right folder String currentFolder = (String)parameters.get("folder"); if((currentFolder != null) && (!"".equals(currentFolder)) && folderExists(cms, currentFolder)) { session.putValue(C_PARA_FILELIST, currentFolder); } else { currentFolder = (String)session.getValue(C_PARA_FILELIST); if((currentFolder == null) || (!folderExists(cms, currentFolder))) { currentFolder = cms.rootFolder().getAbsolutePath(); session.putValue(C_PARA_FILELIST, currentFolder); } } // get the checksum String checksum = (String)parameters.get("check"); boolean newTreePlease = true; long check = -1; try { check = Long.parseLong(checksum); if(check == cms.getFileSystemFolderChanges()) { newTreePlease = false; } } catch(Exception e) { } check = cms.getFileSystemFolderChanges(); // get the currentFolder Id int currentFolderId = (cms.readFolder(currentFolder)).getResourceId(); // start creating content StringBuffer content = new StringBuffer(); content.append("<html> \n<head> \n<script language=JavaScript>\n"); content.append("function initialize() {\n"); // the help_url content.append(" top.help_url='ExplorerAnsicht/index.html';\n"); // the project content.append(" top.setProject(" + cms.getRequestContext().currentProject().getId() + ");\n"); // the onlineProject content.append(" top.setOnlineProject(" + cms.onlineProject().getId() + ");\n"); // set the checksum for the tree content.append(" top.setChecksum(" + check + ");\n"); // set the writeAccess for the current Folder CmsFolder test = cms.readFolder(currentFolder); boolean writeAccess = test.getProjectId() == cms.getRequestContext().currentProject().getId(); content.append(" top.enableNewButton(" + writeAccess + ");\n"); // the folder content.append(" top.setDirectory(" + currentFolderId + ",\"" + currentFolder + "\");\n"); content.append(" top.rD();\n\n"); // now the entries for the filelist Vector resources = cms.getResourcesInFolder(currentFolder); for(int i = 0;i < resources.size();i++) { CmsResource res = (CmsResource)resources.elementAt(i); content.append(" top.aF("); // the name content.append("\"" + res.getName() + "\", "); // the path content.append("\"" + res.getPath() + "\", "); // the title String title = ""; try { title = cms.readProperty(res.getAbsolutePath(), C_PROPERTY_TITLE); } catch(CmsException e) { } if(title == null) { title = ""; } content.append("\"" + getChars(title) + "\", "); // the type content.append("\"" + res.getType() + "\", "); // date of last change content.append("\"" + Utils.getNiceDate(res.getDateLastModified()) + "\", "); // TODO:user who changed it content.append("\"" + "TODO" + "\", "); // date content.append("\"" + Utils.getNiceDate(res.getDateCreated()) + "\", "); // size if(res.isFolder()) { content.append("\"" + "" + "\", "); } else { content.append("\"" + res.getLength() + "\", "); } // state content.append("" + res.getState() + ", "); // project content.append("\"" + res.getProjectId() + "\", "); // owner content.append("\"" + cms.readUser(res.getOwnerId()).getName() + "\", "); // group content.append("\"" + cms.readGroup(res).getName() + "\", "); // accessFlags content.append("\"" + res.getAccessFlags() + "\", "); // locked by if(res.isLockedBy() == C_UNKNOWN_ID) { content.append("\"" + "" + "\");\n"); } else { content.append("\"" + cms.lockedBy(res).getName() + "\");\n"); } } // now the tree, only if changed if(newTreePlease) { content.append("\n top.rT();\n"); Vector tree = cms.getFolderTree(); int startAt = 1; int parentId; boolean grey = false; int onlineProjectId = cms.onlineProject().getId(); if(onlineProjectId == cms.getRequestContext().currentProject().getId()) { // all easy: we are in the onlineProject CmsFolder rootFolder = (CmsFolder)tree.elementAt(0); content.append("top.aC("); content.append(rootFolder.getResourceId() + ", "); content.append("\"" + lang.getDataValue("title.rootfolder") + "\", "); content.append(rootFolder.getParentId() + ", false);\n"); for(int i = startAt;i < tree.size();i++) { CmsFolder folder = (CmsFolder)tree.elementAt(i); content.append("top.aC("); // id content.append(folder.getResourceId() + ", "); // name content.append("\"" + folder.getName() + "\", "); // parentId content.append(folder.getParentId() + ", false);\n"); } } else { // offline Project Hashtable idMixer = new Hashtable(); CmsFolder rootFolder = (CmsFolder)tree.elementAt(0); String folderToIgnore = null; if(rootFolder.getProjectId() != onlineProjectId) { startAt = 2; grey = false; idMixer.put(new Integer(((CmsFolder)tree.elementAt(1)).getResourceId()), new Integer(rootFolder.getResourceId())); } else { grey = true; } content.append("top.aC("); content.append(rootFolder.getResourceId() + ", "); content.append("\"" + lang.getDataValue("title.rootfolder") + "\", "); content.append(rootFolder.getParentId() + ", " + grey + ");\n"); for(int i = startAt;i < tree.size();i++) { CmsFolder folder = (CmsFolder)tree.elementAt(i); if((folder.getState() == C_STATE_DELETED) || (folder.getAbsolutePath().equals(folderToIgnore))) { // if the folder is deleted - ignore it and the following online res folderToIgnore = folder.getAbsolutePath(); } else { if(folder.getProjectId() != onlineProjectId) { grey = false; parentId = folder.getParentId(); try { // the next res is the same res in the online-project: ignore it! if(folder.getAbsolutePath().equals(((CmsFolder)tree.elementAt(i + 1)).getAbsolutePath())) { i++; idMixer.put(new Integer(((CmsFolder)tree.elementAt(i)).getResourceId()), new Integer(folder.getResourceId())); } } catch(IndexOutOfBoundsException exc) { // ignore the exception, this was the last resource } } else { grey = true; parentId = folder.getParentId(); if(idMixer.containsKey(new Integer(parentId))) { parentId = ((Integer)idMixer.get(new Integer(parentId))).intValue(); } } content.append("top.aC("); // id content.append(folder.getResourceId() + ", "); // name content.append("\"" + folder.getName() + "\", "); // parentId content.append(parentId + ", " + grey + ");\n"); } } } } content.append(" top.dU(document); \n"); content.append("}\n"); content.append("</script>\n</head> \n<BODY onLoad=\"initialize()\"></BODY> \n</html>\n"); // System.err.println("\n\n THE FILELIST:\n\n"+content.toString()); return (content.toString()).getBytes(); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/893f594636a637b13259b605c3b1d00189c3aad7/CmsNewExplorerFileList.java/buggy/src/com/opencms/workplace/CmsNewExplorerFileList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
7229,
8526,
588,
1350,
12,
4747,
921,
6851,
16,
780,
3202,
812,
16,
780,
2956,
461,
16,
5582,
14544,
3977,
13,
15069,
4747,
503,
95,
430,
12,
39,
67,
9394,
10,
10,
37,
67,
3678,
4747... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7229,
8526,
588,
1350,
12,
4747,
921,
6851,
16,
780,
3202,
812,
16,
780,
2956,
461,
16,
5582,
14544,
3977,
13,
15069,
4747,
503,
95,
430,
12,
39,
67,
9394,
10,
10,
37,
67,
3678,
4747... | ||
NodeList paths = cache.getChildNodes(); | final NodeList paths = cache.getChildNodes(); | private Element findDOMPath(String name) { if (currentPath != null) { if (name.equals(currentPath.getAttribute(CacheConfiguration.NAME))) { return currentPath; } } NodeList paths = cache.getChildNodes(); for (int i = 0; i < paths.getLength(); i++) { Element path = (Element) paths.item(i); if (name.equals(path.getAttribute(CacheConfiguration.NAME))) { return path; } } return null; } | 49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/a99ccf809bc2c155102602b3d87cbe7a3ae5ce0b/CacheBuilder.java/buggy/src/net/sf/statcvs/input/CacheBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3010,
1104,
8168,
743,
12,
780,
508,
13,
288,
202,
202,
430,
261,
2972,
743,
480,
446,
13,
288,
1082,
202,
430,
261,
529,
18,
14963,
12,
2972,
743,
18,
588,
1499,
12,
1649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3010,
1104,
8168,
743,
12,
780,
508,
13,
288,
202,
202,
430,
261,
2972,
743,
480,
446,
13,
288,
1082,
202,
430,
261,
529,
18,
14963,
12,
2972,
743,
18,
588,
1499,
12,
1649,... |
_log.debug("Placing GarlicMessage into the new tunnel message bound for " + lease.getTunnelId() + " on " + lease.getRouterIdentity().getHash().toBase64()); | _log.debug("Placing GarlicMessage into the new tunnel message bound for " + lease.getTunnelId() + " on " + lease.getRouterIdentity().getHash().toBase64()); | private void send(Lease lease) { // send it as a garlic with a DeliveryStatusMessage clove and a message selector w/ successJob on reply long token = _context.random().nextInt(Integer.MAX_VALUE); PublicKey key = _status.getLeaseSet().getEncryptionKey(); SessionKey sessKey = new SessionKey(); Set tags = new HashSet(); GarlicMessage msg = OutboundClientMessageJobHelper.createGarlicMessage(_context, token, _overallExpiration, key, _status.getClove(), _status.getTo(), sessKey, tags, true); if (_log.shouldLog(Log.DEBUG)) _log.debug("send(lease) - token expected " + token); _status.sent(lease.getRouterIdentity().getHash(), lease.getTunnelId()); SendSuccessJob onReply = new SendSuccessJob(lease, sessKey, tags); SendTimeoutJob onFail = new SendTimeoutJob(lease); ReplySelector selector = new ReplySelector(token); if (_log.shouldLog(Log.DEBUG)) _log.debug("Placing GarlicMessage into the new tunnel message bound for " + lease.getTunnelId() + " on " + lease.getRouterIdentity().getHash().toBase64()); TunnelId outTunnelId = selectOutboundTunnel(); if (outTunnelId != null) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Sending tunnel message out " + outTunnelId + " to " + lease.getTunnelId() + " on " + lease.getRouterIdentity().getHash().toBase64()); SendTunnelMessageJob j = new SendTunnelMessageJob(_context, msg, outTunnelId, lease.getRouterIdentity().getHash(), lease.getTunnelId(), null, onReply, onFail, selector, SEND_TIMEOUT_MS, SEND_PRIORITY); _context.jobQueue().addJob(j); } else { if (_log.shouldLog(Log.ERROR)) _log.error("Could not find any outbound tunnels to send the payload through... wtf?"); _context.jobQueue().addJob(onFail); } } | 27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/7202ea33407d4116d3c4b03f4d325d77f35834b2/OutboundClientMessageJob.java/buggy/router/java/src/net/i2p/router/message/OutboundClientMessageJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
12,
17746,
11863,
13,
288,
3639,
368,
1366,
518,
487,
279,
314,
13007,
335,
598,
279,
17390,
1482,
1079,
1219,
537,
471,
279,
883,
3451,
341,
19,
2216,
2278,
603,
4332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
12,
17746,
11863,
13,
288,
3639,
368,
1366,
518,
487,
279,
314,
13007,
335,
598,
279,
17390,
1482,
1079,
1219,
537,
471,
279,
883,
3451,
341,
19,
2216,
2278,
603,
4332,
... |
} else { SVNErrorManager.error(0, null); | } finally { SVNFileUtil.sleepForTimestamp(); myIsDoNotSleepForTimeStamp = false; | public long doCheckout(String url, File dstPath, SVNRevision pegRevision, SVNRevision revision, boolean recursive) throws SVNException { url = validateURL(url); if (dstPath == null) { dstPath = new File(".", PathUtil.tail(url)); } if (!revision.isValid() && !pegRevision.isValid()) { pegRevision = SVNRevision.HEAD; revision = SVNRevision.HEAD; } else if (!revision.isValid()) { revision = pegRevision; } else if (!pegRevision.isValid()) { pegRevision = revision; } url = getURL(url, pegRevision, revision); SVNRepository repos = createRepository(url); long revNumber = getRevisionNumber(url, revision); SVNNodeKind targetNodeKind = repos.checkPath("", revNumber); String uuid = repos.getRepositoryUUID(); if (targetNodeKind == SVNNodeKind.FILE) { SVNErrorManager.error(0, null); } else if (targetNodeKind == SVNNodeKind.NONE) { SVNErrorManager.error(0, null); } long result = -1; if (!dstPath.exists() || (dstPath.isDirectory() && !SVNWCAccess.isVersionedDirectory(dstPath))) { createVersionedDirectory(dstPath, url, uuid, revNumber); result = doUpdate(dstPath, revision, recursive); } else if (dstPath.isDirectory() && SVNWCAccess.isVersionedDirectory(dstPath)) { SVNWCAccess wcAccess = SVNWCAccess.create(dstPath); if (url.equals(wcAccess.getTargetEntryProperty(SVNProperty.URL))) { result = doUpdate(dstPath, revision, recursive); } else { SVNErrorManager.error(0, null); } } else { SVNErrorManager.error(0, null); } return result; } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/35c4eff3cdefe26dc93ca64dd0977a77801e7b74/SVNUpdater.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/ws/log/SVNUpdater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
741,
18581,
12,
780,
880,
16,
1387,
29845,
16,
29537,
50,
7939,
29231,
7939,
16,
29537,
50,
7939,
6350,
16,
1250,
5904,
13,
1216,
29537,
50,
503,
288,
3639,
880,
273,
1954,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1525,
741,
18581,
12,
780,
880,
16,
1387,
29845,
16,
29537,
50,
7939,
29231,
7939,
16,
29537,
50,
7939,
6350,
16,
1250,
5904,
13,
1216,
29537,
50,
503,
288,
3639,
880,
273,
1954,
... |
throw new TypeError(runtime, args[0], runtime.getClasses().getStringClass()); | throw getRuntime().newTypeError(args[0], getRuntime().getClasses().getStringClass()); | public IRubyObject reopen(IRubyObject arg1, IRubyObject[] args) { if (arg1.isKindOf(getRuntime().getClasses().getIoClass())) { RubyIO ios = (RubyIO) arg1; int keepFileno = handler.getFileno(); // When we reopen, we want our fileno to be preserved even // though we have a new IOHandler. // Note: When we clone we get a new fileno...then we replace it. // This ends up incrementing our fileno index up, which makes the // fileno we choose different from ruby. Since this seems a bit // too implementation specific, I did not bother trying to get // these to agree (what scary code would depend on fileno generating // a particular way?) handler = ios.handler.cloneIOHandler(); handler.setFileno(keepFileno); // Update fileno list with our new handler registerIOHandler(handler); } else if (arg1.isKindOf(getRuntime().getClasses().getStringClass())) { String path = ((RubyString) arg1).getValue(); String mode = "r"; if (args != null && args.length > 0) { if (!args[0].isKindOf(getRuntime().getClasses().getStringClass())) { throw new TypeError(runtime, args[0], runtime.getClasses().getStringClass()); } mode = ((RubyString) args[0]).getValue(); } try { if (handler != null) { close(); } modes = new IOModes(getRuntime(), mode); handler = new IOHandlerSeekable(getRuntime(), path, modes); registerIOHandler(handler); } catch (IOException e) { throw new IOError(getRuntime(), e.toString()); } } // A potentially previously close IO is being 'reopened'. isOpen = true; return this; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/clean/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
31563,
12,
7937,
10340,
921,
1501,
21,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
3175,
21,
18,
291,
5677,
951,
12,
588,
5576,
7675,
588,
4818,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
31563,
12,
7937,
10340,
921,
1501,
21,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
3175,
21,
18,
291,
5677,
951,
12,
588,
5576,
7675,
588,
4818,
... |
private int solveDirtyPaths() { int numSolved = 0; boolean pathFoundCheck = false; for (int i = 0; i < workingPaths.size(); i++) { Path path = (Path)workingPaths.get(i); path.refreshExcludedObstacles(userObstacles); if (!path.isDirty) { path.reset(); continue; } numSolved++; path.fullReset(); pathFoundCheck = path.generateShortestPath(userObstacles); if (!pathFoundCheck || path.end.cost > path.threshold) { // path not found, or path found was too long resetVertices(); path.fullReset(); path.threshold = 0; pathFoundCheck = path.generateShortestPath(userObstacles); } resetVertices(); } resetObstacleExclusions(); if (numSolved == 0) resetVertices(); return numSolved;} | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/375f5ca5b08f799014f10ca6a967bc6d7290c7d6/ShortestPathRouter.java/buggy/org.eclipse.draw2d/src/org/eclipse/draw2d/graph/ShortestPathRouter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
509,
12439,
10785,
4466,
1435,
288,
202,
474,
818,
55,
12894,
273,
374,
31,
202,
6494,
589,
2043,
1564,
273,
629,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
5960,
4466,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
12439,
10785,
4466,
1435,
288,
202,
474,
818,
55,
12894,
273,
374,
31,
202,
6494,
589,
2043,
1564,
273,
629,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
5960,
4466,... | ||
if(tracker == null) return false; | if(tracker == null) { Logger.minor(this, "Tracker == null"); return false; } | private boolean tryProcess(byte[] buf, int offset, int length, KeyTracker tracker) { // Need to be able to call with tracker == null to simplify code above if(tracker == null) return false; Logger.minor(this,"Entering tryProcess: "+buf+","+offset+","+length+","+tracker); /** * E_pcbc_session(H(seq+random+data)) E_pcfb_session(seq+random+data) * * So first two blocks are the hash, PCBC encoded (meaning the * first one is ECB, and the second one is ECB XORed with the * ciphertext and plaintext of the first block). */ BlockCipher sessionCipher = tracker.sessionCipher; if(sessionCipher == null) { Logger.minor(this, "No cipher"); return false; } int blockSize = sessionCipher.getBlockSize() >> 3; if(sessionCipher.getKeySize() != sessionCipher.getBlockSize()) throw new IllegalStateException("Block size must be equal to key size"); if(HASH_LENGTH != blockSize) throw new IllegalStateException("Block size must be digest length!"); byte[] packetHash = new byte[HASH_LENGTH]; System.arraycopy(buf, offset, packetHash, 0, HASH_LENGTH); // Decrypt the sequence number and see if it's plausible // Verify the hash later PCFBMode pcfb; pcfb = new PCFBMode(sessionCipher); // Set IV to the hash, after it is encrypted pcfb.reset(packetHash); //Logger.minor(this,"IV:\n"+HexUtil.bytesToHex(packetHash)); byte[] seqBuf = new byte[4]; System.arraycopy(buf, offset+HASH_LENGTH, seqBuf, 0, 4); //Logger.minor(this, "Encypted sequence number: "+HexUtil.bytesToHex(seqBuf)); pcfb.blockDecipher(seqBuf, 0, 4); //Logger.minor(this, "Decrypted sequence number: "+HexUtil.bytesToHex(seqBuf)); int seqNumber = ((((((seqBuf[0] & 0xff) << 8) + (seqBuf[1] & 0xff)) << 8) + (seqBuf[2] & 0xff)) << 8) + (seqBuf[3] & 0xff); int targetSeqNumber = tracker.highestReceivedIncomingSeqNumber(); Logger.minor(this, "Target seq: "+targetSeqNumber); Logger.minor(this, "Sequence number: "+seqNumber+"="+Integer.toHexString(seqNumber)); if(seqNumber == -1) { // Ack/resendreq-only packet } else { // Now is it credible? // As long as it's within +/- 256, this is valid. if(targetSeqNumber != -1 && Math.abs(targetSeqNumber - seqNumber) > MAX_PACKETS_IN_FLIGHT) return false; } Logger.minor(this, "Sequence number received: "+seqNumber); // Plausible, so lets decrypt the rest of the data byte[] plaintext = new byte[length-(4+HASH_LENGTH)]; System.arraycopy(buf, offset+HASH_LENGTH+4, plaintext, 0, length-(HASH_LENGTH+4)); pcfb.blockDecipher(plaintext, 0, length-(HASH_LENGTH+4)); //Logger.minor(this, "Plaintext:\n"+HexUtil.bytesToHex(plaintext)); MessageDigest md = getDigest(); md.update(seqBuf); md.update(plaintext); byte[] realHash = md.digest(); // Now decrypt the original hash byte[] temp = new byte[blockSize]; System.arraycopy(buf, offset, temp, 0, blockSize); sessionCipher.decipher(temp, temp); System.arraycopy(temp, 0, packetHash, 0, blockSize); // Check the hash if(!java.util.Arrays.equals(packetHash, realHash)) { Logger.minor(this, "Packet possibly from "+tracker+" hash does not match:\npacketHash="+ HexUtil.bytesToHex(packetHash)+"\n realHash="+HexUtil.bytesToHex(realHash)+" ("+(length-HASH_LENGTH)+" bytes payload)"); return false; } if(seqNumber != -1 && tracker.alreadyReceived(seqNumber)) { tracker.queueAck(seqNumber); Logger.normal(this, "Received packet twice: "+seqNumber); return true; } for(int i=0;i<md.getDigestLength();i++) { packetHash[i] ^= buf[offset+i]; } node.random.acceptEntropyBytes(myPacketDataSource, packetHash, 0, md.getDigestLength(), 0.5); // Lots more to do yet! processDecryptedData(plaintext, seqNumber, tracker); return true; } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/17ab83798dc1588df0a327af91db347bb77392d7/FNPPacketMangler.java/buggy/src/freenet/node/FNPPacketMangler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
775,
2227,
12,
7229,
8526,
1681,
16,
509,
1384,
16,
509,
769,
16,
1929,
8135,
9745,
13,
288,
3639,
368,
12324,
358,
506,
7752,
358,
745,
598,
9745,
422,
446,
358,
16499,
981... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
775,
2227,
12,
7229,
8526,
1681,
16,
509,
1384,
16,
509,
769,
16,
1929,
8135,
9745,
13,
288,
3639,
368,
12324,
358,
506,
7752,
358,
745,
598,
9745,
422,
446,
358,
16499,
981... |
pstmt.setInt(1, i); assertTrue(pstmt.executeUpdate() == 1); | pstmt.setInt(1, i); assertEquals(pstmt.executeUpdate(), 1); | public void testUpdateCount1() throws Exception { int count = 500; Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #updateCount1 (data INT)"); stmt.close(); PreparedStatement pstmt = con.prepareStatement("INSERT INTO #updateCount1 (data) VALUES (?)"); for (int i = 1; i <= count; i++) { pstmt.setInt(1, i); assertTrue(pstmt.executeUpdate() == 1); } pstmt.close(); stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT COUNT(*) FROM #updateCount1"); assertTrue(rs.next()); assertTrue(rs.getInt(1) == count); assertTrue(!rs.next()); stmt.close(); rs.close(); pstmt = con.prepareStatement("DELETE FROM #updateCount1"); assertTrue(pstmt.executeUpdate() == count); pstmt.close(); } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/ba8dbcfb4c76f4e59cc1c80c3e20bdd3252ec4c4/PreparedStatementTest.java/buggy/trunk/jtds/src/test/net/sourceforge/jtds/test/PreparedStatementTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1891,
1380,
21,
1435,
1216,
1185,
288,
377,
202,
474,
1056,
273,
6604,
31,
377,
202,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1891,
1380,
21,
1435,
1216,
1185,
288,
377,
202,
474,
1056,
273,
6604,
31,
377,
202,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.