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 |
|---|---|---|---|---|---|---|
xares_.nullXid;
|
NetXAResource.nullXid;
|
public void writeCommit() throws SqlException { // this logic must be in sync with willAutoCommitGenerateFlow() logic if (isXAConnection_) { // XA Connection int xaState = getXAState(); if ((xaState == XA_OPEN_IDLE) || (xaState == XA_LOCAL) || (xaState == XA_LOCAL_START_SENT)) { xares_.callInfoArray_[xares_.conn_.currXACallInfoOffset_].xid_ = xares_.nullXid; writeLocalXACommit_(); } } else { // not XA connection writeLocalCommit_(); } }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/38083d6823d48f5b6cc5a8590edf922b06737042/NetXAConnection.java/buggy/java/client/org/apache/derby/client/net/NetXAConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
5580,
1435,
1216,
8855,
503,
288,
3639,
368,
333,
4058,
1297,
506,
316,
3792,
598,
903,
4965,
5580,
4625,
5249,
1435,
4058,
3639,
309,
261,
291,
17269,
1952,
67,
13,
288,
368,
12410,
4050,
5411,
509,
14139,
1119,
273,
6538,
37,
1119,
5621,
5411,
309,
14015,
6995,
1119,
422,
12410,
67,
11437,
67,
734,
900,
13,
747,
10792,
261,
6995,
1119,
422,
12410,
67,
14922,
13,
747,
10792,
261,
6995,
1119,
422,
12410,
67,
14922,
67,
7570,
67,
17418,
3719,
288,
7734,
619,
4807,
27799,
1991,
966,
1076,
67,
63,
92,
4807,
27799,
4646,
27799,
17016,
17269,
1477,
966,
2335,
67,
8009,
6212,
67,
273,
13491,
8503,
17269,
1420,
18,
2011,
60,
350,
31,
7734,
1045,
2042,
17269,
5580,
67,
5621,
5411,
289,
3639,
289,
469,
288,
368,
486,
12410,
1459,
5411,
1045,
2042,
5580,
67,
5621,
3639,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
5580,
1435,
1216,
8855,
503,
288,
3639,
368,
333,
4058,
1297,
506,
316,
3792,
598,
903,
4965,
5580,
4625,
5249,
1435,
4058,
3639,
309,
261,
291,
17269,
1952,
67,
13,
288,
368,
12410,
4050,
5411,
509,
14139,
1119,
273,
6538,
37,
1119,
5621,
5411,
309,
14015,
6995,
1119,
422,
12410,
67,
11437,
67,
734,
900,
13,
747,
10792,
261,
6995,
1119,
422,
12410,
67,
14922,
13,
747,
10792,
261,
6995,
1119,
422,
12410,
67,
14922,
67,
7570,
67,
17418,
3719,
288,
7734,
619,
4807,
27799,
1991,
966,
1076,
67,
63,
92,
4807,
27799,
4646,
27799,
17016,
17269,
1477,
966,
2335,
67,
8009,
6212,
67,
273,
13491,
8503,
17269,
1420,
18,
2011,
60,
350,
31,
7734,
2
] |
SimpleNode sn = (SimpleNode)throwStatement.jjtGetChild(0).jjtGetChild(0); if(sn.getClass().equals(ASTCastExpression.class)){ ASTPrimaryExpression expr = (ASTPrimaryExpression)sn.jjtGetChild(1); if(expr.jjtGetNumChildren()> 1 && expr.jjtGetChild(1).getClass().equals(ASTPrimaryPrefix.class)) {
|
SimpleNode sn = (SimpleNode) throwStatement.jjtGetChild(0).jjtGetChild(0); if (sn.getClass().equals(ASTCastExpression.class)) { ASTPrimaryExpression expr = (ASTPrimaryExpression) sn.jjtGetChild(1); if (expr.jjtGetNumChildren() > 1 && expr.jjtGetChild(1).getClass().equals(ASTPrimaryPrefix.class)) {
|
public Object visit(ASTCatchStatement node, Object data) { String target = (((SimpleNode) node.jjtGetChild(0).jjtGetChild(1)).getImage()); List lstThrowStatements = node.findChildrenOfType(ASTThrowStatement.class); for (Iterator iter = lstThrowStatements.iterator(); iter.hasNext();) { ASTThrowStatement throwStatement = (ASTThrowStatement) iter.next(); SimpleNode sn = (SimpleNode)throwStatement.jjtGetChild(0).jjtGetChild(0); if(sn.getClass().equals(ASTCastExpression.class)){ ASTPrimaryExpression expr = (ASTPrimaryExpression)sn.jjtGetChild(1); if(expr.jjtGetNumChildren()> 1 && expr.jjtGetChild(1).getClass().equals(ASTPrimaryPrefix.class)) { RuleContext ctx = (RuleContext) data; addViolation(ctx, throwStatement); } continue; } ASTArgumentList args = (ASTArgumentList) throwStatement.getFirstChildOfType(ASTArgumentList.class); if (args != null) { try { List lst = args.findChildNodesWithXPath("//Name[@Image='" + target + "']"); if (lst.size() == 0) { RuleContext ctx = (RuleContext) data; addViolation(ctx, throwStatement); } } catch (JaxenException e) { e.printStackTrace(); } } else if (args == null) { SimpleNode child = (SimpleNode) throwStatement.jjtGetChild(0); while (child != null && child.jjtGetNumChildren() > 0 && !child.getClass().getName().equals("net.sourceforge.pmd.ast.ASTName")) { child = (SimpleNode) child.jjtGetChild(0); } if (child != null && (!target.equals(child.getImage()) && !child.getImage().equals(target + ".fillInStackTrace"))) { RuleContext ctx = (RuleContext) data; addViolation(ctx, throwStatement); } } } return super.visit(node, data); }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/60c2d639283b1fd1682114489d4cec7136ba201f/PreserveStackTrace.java/buggy/pmd/src/net/sourceforge/pmd/rules/design/PreserveStackTrace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3757,
12,
9053,
14842,
3406,
756,
16,
1033,
501,
13,
288,
3639,
514,
1018,
273,
261,
12443,
5784,
907,
13,
756,
18,
78,
78,
88,
967,
1763,
12,
20,
2934,
78,
78,
88,
967,
1763,
12,
21,
13,
2934,
588,
2040,
10663,
3639,
987,
9441,
8282,
14663,
273,
756,
18,
4720,
4212,
18859,
12,
9053,
8282,
3406,
18,
1106,
1769,
3639,
364,
261,
3198,
1400,
273,
9441,
8282,
14663,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
5411,
9183,
8282,
3406,
604,
3406,
273,
261,
9053,
8282,
3406,
13,
1400,
18,
4285,
5621,
5411,
4477,
907,
4556,
273,
261,
5784,
907,
13,
12849,
3406,
18,
78,
78,
88,
967,
1763,
12,
20,
2934,
78,
78,
88,
967,
1763,
12,
20,
1769,
5411,
309,
12,
8134,
18,
588,
797,
7675,
14963,
12,
9053,
9735,
2300,
18,
1106,
3719,
95,
7734,
9183,
6793,
2300,
3065,
273,
261,
9053,
6793,
2300,
13,
8134,
18,
78,
78,
88,
967,
1763,
12,
21,
1769,
7734,
309,
12,
8638,
18,
78,
78,
88,
967,
2578,
4212,
1435,
34,
404,
597,
3065,
18,
78,
78,
88,
967,
1763,
12,
21,
2934,
588,
797,
7675,
14963,
12,
9053,
6793,
2244,
18,
1106,
3719,
288,
10792,
6781,
1042,
1103,
273,
261,
2175,
1042,
13,
501,
31,
10792,
29369,
12,
5900,
16,
604,
3406,
1769,
7734,
289,
7734,
1324,
31,
5411,
289,
5411,
9183,
1379,
682,
833,
273,
261,
9053,
1379,
682,
13,
604,
3406,
18,
588,
3759,
1763,
18859,
12,
9053,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
12,
9053,
14842,
3406,
756,
16,
1033,
501,
13,
288,
3639,
514,
1018,
273,
261,
12443,
5784,
907,
13,
756,
18,
78,
78,
88,
967,
1763,
12,
20,
2934,
78,
78,
88,
967,
1763,
12,
21,
13,
2934,
588,
2040,
10663,
3639,
987,
9441,
8282,
14663,
273,
756,
18,
4720,
4212,
18859,
12,
9053,
8282,
3406,
18,
1106,
1769,
3639,
364,
261,
3198,
1400,
273,
9441,
8282,
14663,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
5411,
9183,
8282,
3406,
604,
3406,
273,
261,
9053,
8282,
3406,
13,
1400,
18,
4285,
5621,
5411,
4477,
907,
4556,
273,
261,
5784,
907,
13,
12849,
3406,
18,
78,
78,
88,
967,
1763,
12,
20,
2934,
78,
2
] |
stringBuffer.append(TEXT_178); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_179);
|
stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_184);
|
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenEditorView genEditor = (GenEditorView) ((Object[]) argument)[0];final GenDiagram genDiagram = genEditor.getEditorGen().getDiagram();final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];final boolean isRichClientPlatform = genDiagram.getEditorGen().getDomainGenModel().isRichClientPlatform();final boolean isEclipseEditor = genEditor.isEclipseEditor();importManager.emitPackageStatement(stringBuffer);importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_1); importManager.registerInnerClass(genEditor.getClassName() + "ContextMenuProvider");if (!isRichClientPlatform) { importManager.registerInnerClass("ResourceTracker");} stringBuffer.append(TEXT_2); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_3); stringBuffer.append(importManager.getImportedName(isEclipseEditor ? "org.eclipse.gmf.runtime.lite.parts.DiagramEditor" : "org.eclipse.gmf.runtime.lite.parts.DiagramViewPart")); stringBuffer.append(TEXT_4); stringBuffer.append(genEditor.getID()); stringBuffer.append(TEXT_5); if (!isRichClientPlatform && isEclipseEditor) { stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceChangeListener")); stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceChangeEvent")); stringBuffer.append(TEXT_8); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_9); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_11); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_12); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_13); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_14); /*XXX: make sure unsaved deleted file is handled correctly*/ stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_16); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.ResourcesPlugin")); stringBuffer.append(TEXT_17); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_18); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_19); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_24); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.part.FileEditorInput")); stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Display")); stringBuffer.append(TEXT_26); }if (!isEclipseEditor) { stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName(genEditor.getActionBarContributorQualifiedClassName())); stringBuffer.append(TEXT_28); } stringBuffer.append(TEXT_29); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_31); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ComposedAdapterFactory")); stringBuffer.append(TEXT_32); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.UndoAction")); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.RedoAction")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.DeleteAction")); stringBuffer.append(TEXT_35); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_36); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.DirectEditAction")); stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_44); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_45); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_48); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_50); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_51); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_52); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_55); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_56); if (isEclipseEditor) { stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.SaveAction")); stringBuffer.append(TEXT_58); } stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.PrintAction")); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.ui.actions.LayoutDiagramAction")); stringBuffer.append(TEXT_61); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction")); stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.ZoomInAction")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction")); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.ZoomOutAction")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyHandler")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyStroke")); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyStroke")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_72); if (!isRichClientPlatform && isEclipseEditor) { stringBuffer.append(TEXT_73); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_74); }if (!isEclipseEditor) { stringBuffer.append(TEXT_75); } stringBuffer.append(TEXT_76); if (!isRichClientPlatform && isEclipseEditor) { stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_78); }if (!isEclipseEditor) { stringBuffer.append(TEXT_79); } stringBuffer.append(TEXT_80); if (isEclipseEditor) { stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IProgressMonitor")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.dialogs.ErrorDialog")); stringBuffer.append(TEXT_84); stringBuffer.append(genDiagram.getEditorGen().getDomainGenModel().getModelName()); stringBuffer.append(TEXT_85); } stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.palette.PaletteRoot")); stringBuffer.append(TEXT_87); { final Palette palette = genDiagram.getPalette(); if (palette != null) { stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_89); }} stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_92); if (isEclipseEditor) { stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorSite")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_95); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_97); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_100); if (!isRichClientPlatform) { stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_102); } stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_104); if (!isRichClientPlatform) { stringBuffer.append(TEXT_105); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_106); } stringBuffer.append(TEXT_107); if (!isRichClientPlatform) { stringBuffer.append(TEXT_108); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_111); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_113); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IPath")); stringBuffer.append(TEXT_114); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.ResourcesPlugin")); stringBuffer.append(TEXT_117); } stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_119); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_120); if (!isRichClientPlatform) { stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_124); } stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_126); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IPathEditorInput")); stringBuffer.append(TEXT_128); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_129); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IPathEditorInput")); stringBuffer.append(TEXT_130); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_131); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_132); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_133); } //editor-specific code stringBuffer.append(TEXT_134); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.AdapterFactory")); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("java.util.ArrayList")); stringBuffer.append(TEXT_137); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory")); stringBuffer.append(TEXT_138); final EList genPackages = genDiagram.getEditorGen().getAllDomainGenPackages(true);for (int i = 0; i < genPackages.size(); i++) { GenPackage genPackage = (GenPackage) genPackages.get(i); stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName(genPackage.getQualifiedItemProviderAdapterFactoryClassName())); stringBuffer.append(TEXT_140); } stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory")); stringBuffer.append(TEXT_142); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.provider.NotationItemProviderAdapterFactory")); stringBuffer.append(TEXT_143); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ComposedAdapterFactory")); stringBuffer.append(TEXT_144); if (!isEclipseEditor) { stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_146); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IActionBars")); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName(genEditor.getActionBarContributorQualifiedClassName())); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_149); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IStatus")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_154); } stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_156); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_157); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.ResourceSet")); stringBuffer.append(TEXT_159); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.workspace.AbstractEMFOperation")); stringBuffer.append(TEXT_161); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.workspace.AbstractEMFOperation")); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IStatus")); stringBuffer.append(TEXT_163); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IProgressMonitor")); stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IAdaptable")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.core.commands.ExecutionException")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_169); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_171); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_172); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_173); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_174); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_175); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_177); { boolean sameFile = genDiagram.getEditorGen().isSameFileForDiagramAndModel(); String resourceToUse; if (!sameFile) { stringBuffer.append(TEXT_178); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_179); stringBuffer.append(genDiagram.getDiagramEditorUtilClassName()); stringBuffer.append(TEXT_180); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_182); resourceToUse = "modelResource"; } else { resourceToUse = "diagramResource"; } stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_184); stringBuffer.append(resourceToUse); stringBuffer.append(TEXT_185); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_186); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getGenPackage().getQualifiedFactoryInterfaceName())); stringBuffer.append(TEXT_187); stringBuffer.append(genDiagram.getDomainDiagramElement().getClassifierAccessorName()); stringBuffer.append(TEXT_188); stringBuffer.append(resourceToUse); stringBuffer.append(TEXT_189); if (genDiagram.getDomainDiagramElement().isExternalInterface()) { stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_191); } stringBuffer.append(TEXT_192); stringBuffer.append(resourceToUse); stringBuffer.append(TEXT_193); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_195); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_196); if (genDiagram.getDomainDiagramElement().isExternalInterface()) { stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_198); } stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_200); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_201); if (isEclipseEditor) { stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_203); } else { stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_207); } stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.core.commands.ExecutionException")); stringBuffer.append(TEXT_211); }//local declarations stringBuffer.append(TEXT_212); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_213); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LayeredPane")); stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LayeredPane")); stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.LayerConstants")); stringBuffer.append(TEXT_220); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayer")); stringBuffer.append(TEXT_221); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayer")); stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.DelegatingLayout")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.LayerConstants")); stringBuffer.append(TEXT_225); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ContextMenuProvider")); stringBuffer.append(TEXT_227); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyHandler")); stringBuffer.append(TEXT_230); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler")); stringBuffer.append(TEXT_231); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.MouseWheelHandler")); stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_233); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.MouseWheelZoomHandler")); stringBuffer.append(TEXT_234); stringBuffer.append(genDiagram.getPalette() != null && genDiagram.getPalette().isFlyout()); stringBuffer.append(TEXT_235); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ContextMenuProvider")); stringBuffer.append(TEXT_237); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_238); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPartViewer")); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager")); stringBuffer.append(TEXT_240); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_242); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_243); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_245); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_246); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_248); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_253); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.ui.actions.ActionIds")); stringBuffer.append(TEXT_254); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_255); if (isEclipseEditor) { stringBuffer.append(TEXT_256); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_257); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_258); } stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager")); stringBuffer.append(TEXT_260); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.MenuManager")); stringBuffer.append(TEXT_261); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.MenuManager")); stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.Separator")); stringBuffer.append(TEXT_263); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_264); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_265); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_266); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_267); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_268); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_269); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_270); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_272); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_274); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_276); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_277); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager")); stringBuffer.append(TEXT_278); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction")); stringBuffer.append(TEXT_279); importManager.emitSortedImports(); stringBuffer.append(TEXT_280); return stringBuffer.toString(); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/d0f2de3f37a520b7ed04e5e0d7a1b0a7ddc569d5/EditorGenerator.java/buggy/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/EditorGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6946,
1767,
3157,
6946,
273,
261,
7642,
6946,
1767,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
14058,
1940,
3157,
14058,
1940,
273,
3157,
6946,
18,
588,
6946,
7642,
7675,
588,
14058,
1940,
5621,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
6385,
1250,
353,
22591,
1227,
8201,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
3748,
7642,
1488,
7675,
291,
22591,
1227,
8201,
5621,
6385,
1250,
353,
23057,
10472,
6946,
273,
3157,
6946,
18,
291,
23057,
10472,
6946,
5621,
5666,
1318,
18,
18356,
2261,
3406,
12,
1080,
1892,
1769,
5666,
1318,
18,
3355,
5010,
2735,
12,
1080,
1892,
1769,
565,
533,
1892,
18,
6923,
12,
5151,
67,
21,
1769,
565,
1930,
1318,
18,
4861,
2857,
797,
12,
4507,
6946,
18,
588,
3834,
1435,
397,
315,
27315,
2249,
8863,
430,
16051,
291,
22591,
1227,
8201,
13,
288,
202,
5666,
1318,
18,
4861,
2857,
797,
2932,
1420,
8135,
8863,
97,
565,
533,
1892,
18,
6923,
12,
5151,
67,
22,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
6946,
18,
588,
3834,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
23,
1769,
565,
533,
1892,
18,
6923,
12,
5666,
1318,
18,
588,
24934,
461,
12,
291,
23057,
10472,
6946,
692,
315,
3341,
18,
20416,
18,
75,
16126,
18,
9448,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6946,
1767,
3157,
6946,
273,
261,
7642,
6946,
1767,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
14058,
1940,
3157,
14058,
1940,
273,
3157,
6946,
18,
588,
6946,
7642,
7675,
588,
14058,
1940,
5621,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
6385,
1250,
353,
22591,
1227,
8201,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
3748,
7642,
1488,
7675,
291,
22591,
1227,
8201,
5621,
6385,
1250,
353,
23057,
10472,
6946,
273,
3157,
6946,
18,
291,
23057,
10472,
6946,
5621,
2
] |
dirty = true;
|
final Map currentState = provider.getCurrentState(); final Iterator variableItr = currentState.entrySet().iterator(); while (variableItr.hasNext()) { final Map.Entry entry = (Map.Entry) variableItr.next(); final String variableName = (String) entry.getKey(); final Object variableValue = entry.getValue(); /* * Bug 84056. If we update the active workbench window, then we risk * falling back to that shell when the active shell has registered * as "none". */ if ((variableName != null) && (!ISources.ACTIVE_WORKBENCH_WINDOW_SHELL_NAME .equals(variableName))) { changeVariable(variableName, variableValue); } }
|
public final void addSourceProvider(final ISourceProvider provider) { provider.addSourceProviderListener(this); providers.add(provider); dirty = true; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5064a838e83f18321f2ad0ca0f41ee138926f2a2/ExpressionAuthority.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/services/ExpressionAuthority.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
527,
1830,
2249,
12,
6385,
467,
1830,
2249,
2893,
13,
288,
202,
202,
6778,
18,
1289,
1830,
2249,
2223,
12,
2211,
1769,
202,
202,
17520,
18,
1289,
12,
6778,
1769,
202,
202,
18013,
273,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
918,
527,
1830,
2249,
12,
6385,
467,
1830,
2249,
2893,
13,
288,
202,
202,
6778,
18,
1289,
1830,
2249,
2223,
12,
2211,
1769,
202,
202,
17520,
18,
1289,
12,
6778,
1769,
202,
202,
18013,
273,
638,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
node = n; usm = node.usm;
|
public NodePeer(SimpleFieldSet fs, Node node) throws FSParseException, PeerParseException { this.node = node; this.packetSender = node.ps; // Read the rest from the FieldSet String loc = fs.get("location"); currentLocation = new Location(loc); // FIXME: identity should be a PK String nodeID = fs.get("identity"); nodeIdentity = HexUtil.hexToBytes(nodeID); String physical = fs.get("physical.udp"); // Parse - FIXME use the old NodeReference code? // FIXME support multiple transports?? peer = new Peer(physical); usm = node.usm; sentPacketsBySequenceNumber = new HashMap(); ackQueue = new LinkedList(); resendRequestQueue = new LinkedList(); ackRequestQueue = new LinkedList(); // FIXME!! Session key should be set up via PK negotiation // Hack here: sesskey = H(identity1) XOR H(identity2) MessageDigest md; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw new Error(e); } byte[] key = md.digest(nodeIdentity); byte[] okey = node.identityHash; for(int i=0;i<key.length;i++) key[i] ^= okey[i]; //Logger.minor(this, "Session key: "+HexUtil.bytesToHex(key)); try { sessionCipher = new Rijndael(256,256); } catch (UnsupportedCipherException e1) { throw new Error(e1); } sessionCipher.initialize(key); // FIXME: this is a debugging aid, maybe we should keep it? outgoingPacketNumber = node.random.nextInt(100000); //Logger.minor(this, "outgoingPacketNumber initialized to "+outgoingPacketNumber); // 10 extra hops on average at the start (for cover) decrementAtMax = disableProbabilisticHTLs ? true : node.random.nextDouble() <= Node.DECREMENT_AT_MAX_PROB; // 5 extra hops on average at the end (to prevent probing and similar attacks) decrementAtMin = disableProbabilisticHTLs ? true : node.random.nextDouble() <= Node.DECREMENT_AT_MIN_PROB; }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/0cbaea3a3df1c179ddb311773f6c7b0442abc0e6/NodePeer.java/buggy/src/freenet/node/NodePeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
1071,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
2029,
6813,
12,
5784,
974,
694,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
2662,
16,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
423,
369,
20680,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
13,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
1216,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
9247,
13047,
16,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
10669,
13047,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
288,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
1071,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
2029,
6813,
12,
5784,
974,
694,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
2662,
16,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
423,
369,
20680,
273,
290,
31,
584,
81,
273,
756,
18,
407,
81,
31,
756,
13,
2159,
273,
290,
31,
584,
81,
273,
756,
18,
407,
2
] |
|
returnList.addAll(allAvailableFeatures((MClassifierRole)genElem));
|
returnList.addAll(allAvailableFeatures((MClassifierRole) genElem));
|
public Collection allAvailableFeatures(MClassifierRole role) { if (role == null) return new ArrayList(); List returnList = new ArrayList(); Iterator it = role.getParents().iterator(); while (it.hasNext()) { MGeneralizableElement genElem = (MGeneralizableElement)it.next(); if (genElem instanceof MClassifierRole) { returnList.addAll(allAvailableFeatures((MClassifierRole)genElem)); } } it = role.getBases().iterator(); while(it.hasNext()) { returnList.addAll(((MClassifier)it.next()).getFeatures()); } return returnList; }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/CollaborationsHelper.java/buggy/src_new/org/argouml/model/uml/behavioralelements/collaborations/CollaborationsHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
777,
5268,
8696,
12,
49,
13860,
2996,
2478,
13,
288,
3639,
309,
261,
4615,
422,
446,
13,
327,
394,
2407,
5621,
3639,
987,
327,
682,
273,
394,
2407,
5621,
3639,
4498,
518,
273,
2478,
18,
588,
13733,
7675,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
490,
12580,
6934,
1046,
3157,
7498,
273,
261,
49,
12580,
6934,
1046,
13,
305,
18,
4285,
5621,
5411,
309,
261,
4507,
7498,
1276,
490,
13860,
2996,
13,
288,
7734,
327,
682,
18,
1289,
1595,
12,
454,
5268,
8696,
12443,
49,
13860,
2996,
13,
3157,
7498,
10019,
5411,
289,
3639,
289,
3639,
518,
273,
2478,
18,
588,
38,
3304,
7675,
9838,
5621,
3639,
1323,
12,
305,
18,
5332,
2134,
10756,
288,
5411,
327,
682,
18,
1289,
1595,
12443,
12,
49,
13860,
13,
305,
18,
4285,
1435,
2934,
588,
8696,
10663,
3639,
289,
3639,
327,
327,
682,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2200,
777,
5268,
8696,
12,
49,
13860,
2996,
2478,
13,
288,
3639,
309,
261,
4615,
422,
446,
13,
327,
394,
2407,
5621,
3639,
987,
327,
682,
273,
394,
2407,
5621,
3639,
4498,
518,
273,
2478,
18,
588,
13733,
7675,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
490,
12580,
6934,
1046,
3157,
7498,
273,
261,
49,
12580,
6934,
1046,
13,
305,
18,
4285,
5621,
5411,
309,
261,
4507,
7498,
1276,
490,
13860,
2996,
13,
288,
7734,
327,
682,
18,
1289,
1595,
12,
454,
5268,
8696,
12443,
49,
13860,
2996,
13,
3157,
7498,
10019,
5411,
289,
3639,
289,
3639,
518,
273,
2478,
18,
588,
38,
3304,
7675,
9838,
5621,
3639,
1323,
12,
305,
18,
2
] |
final String className = getClassNameForFormElement(htmlElement); final SimpleScriptable jsElement = makeJavaScriptObject( className ); jsElement.setHtmlElement(htmlElement); allJsElements.add(jsElement);
|
public void initialize() { getHtmlElementOrDie().setScriptObject(this); final List allJsElements = new ArrayList(); final int attributes = READONLY; final List elementList = getHtmlForm().getHtmlElementsByTagNames( Arrays.asList( new String[]{ "input", "button", "option", "select", "textarea" } ) ); final List radioButtons = new ArrayList(); final Iterator iterator = elementList.iterator(); while( iterator.hasNext() ) { final HtmlElement htmlElement = (HtmlElement)iterator.next(); final String name = htmlElement.getAttributeValue("name"); if( name.length() != 0 ) { if( htmlElement instanceof HtmlRadioButtonInput ) { radioButtons.add(htmlElement); } else { final String className = getClassNameForFormElement(htmlElement); final SimpleScriptable jsElement = makeJavaScriptObject( className ); jsElement.setHtmlElement(htmlElement); allJsElements.add(jsElement); overridingProperties_.put( name, jsElement );// put( name, this, jsElement ); } } } final Scriptable array[] = new Scriptable[allJsElements.size()]; allJsElements.toArray(array); jsElements_ = new NativeArray(array); final Iterator scriptableIterator = allJsElements.iterator(); while( scriptableIterator.hasNext() ) { final SimpleScriptable scriptable = (SimpleScriptable)scriptableIterator.next(); final String name = scriptable.getHtmlElementOrDie().getAttributeValue("name"); jsElements_.defineProperty(name, scriptable, attributes); } // If the element is a radio button then set the value of the property to an array // of radio buttons with the specified name while( radioButtons.isEmpty() == false ) { final List collectedRadioButtons = new ArrayList(radioButtons.size()); final Iterator radioButtonIterator = radioButtons.iterator(); final HtmlRadioButtonInput firstRadioButton = (HtmlRadioButtonInput)radioButtonIterator.next(); final String radioButtonName = firstRadioButton.getNameAttribute(); Radio radioButton = (Radio)makeJavaScriptObject("Radio"); radioButton.setHtmlElement(firstRadioButton); collectedRadioButtons.add(radioButton); radioButtonIterator.remove(); while( radioButtonIterator.hasNext() ) { HtmlRadioButtonInput eachRadioButton = (HtmlRadioButtonInput)radioButtonIterator.next(); if( eachRadioButton.getNameAttribute().equals(radioButtonName) ) { radioButton = (Radio)makeJavaScriptObject("Radio"); radioButton.setHtmlElement(eachRadioButton); collectedRadioButtons.add(radioButton); radioButtonIterator.remove(); } } if( collectedRadioButtons.size() == 1 ) { defineProperty(radioButtonName, radioButton, attributes); jsElements_.defineProperty(radioButtonName, radioButton, attributes); } else { final Radio radioArray[] = new Radio[collectedRadioButtons.size()]; defineProperty(radioButtonName, collectedRadioButtons.toArray(radioArray), attributes); jsElements_.defineProperty(radioButtonName, collectedRadioButtons.toArray(radioArray), attributes); } } }
|
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/28e303b5cc4660427e88277b436cb4a2bdcecbd5/Form.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/Form.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1435,
288,
3639,
19633,
1046,
28850,
7675,
542,
3651,
921,
12,
2211,
1769,
3639,
727,
987,
777,
8382,
3471,
273,
394,
2407,
5621,
3639,
727,
509,
1677,
273,
10746,
10857,
31,
3639,
727,
987,
930,
682,
273,
19633,
1204,
7675,
588,
4353,
3471,
29309,
1557,
12,
5411,
5647,
18,
345,
682,
12,
394,
514,
63,
7073,
7734,
315,
2630,
3113,
315,
5391,
3113,
315,
3482,
3113,
315,
4025,
3113,
315,
16701,
6,
5411,
289,
262,
11272,
3639,
727,
987,
13512,
14388,
273,
394,
2407,
5621,
3639,
727,
4498,
2775,
273,
930,
682,
18,
9838,
5621,
3639,
1323,
12,
2775,
18,
5332,
2134,
1435,
262,
288,
5411,
727,
5430,
1046,
1729,
1046,
273,
261,
4353,
1046,
13,
9838,
18,
4285,
5621,
5411,
727,
514,
508,
273,
1729,
1046,
18,
588,
14942,
2932,
529,
8863,
5411,
309,
12,
508,
18,
2469,
1435,
480,
374,
262,
288,
7734,
309,
12,
1729,
1046,
1276,
5430,
19984,
3616,
1210,
262,
288,
10792,
13512,
14388,
18,
1289,
12,
2620,
1046,
1769,
7734,
289,
7734,
469,
288,
10792,
727,
514,
2658,
273,
11819,
1290,
1204,
1046,
12,
2620,
1046,
1769,
10792,
727,
4477,
3651,
429,
3828,
1046,
273,
1221,
16634,
921,
12,
2658,
11272,
10792,
3828,
1046,
18,
542,
4353,
1046,
12,
2620,
1046,
1769,
10792,
777,
8382,
3471,
18,
1289,
12,
2924,
1046,
1769,
10792,
19488,
2297,
27799,
458,
12,
508,
16,
3828,
1046,
11272,
759,
10792,
1378,
12,
508,
16,
333,
16,
3828,
1046,
11272,
7734,
289,
5411,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
1435,
288,
3639,
19633,
1046,
28850,
7675,
542,
3651,
921,
12,
2211,
1769,
3639,
727,
987,
777,
8382,
3471,
273,
394,
2407,
5621,
3639,
727,
509,
1677,
273,
10746,
10857,
31,
3639,
727,
987,
930,
682,
273,
19633,
1204,
7675,
588,
4353,
3471,
29309,
1557,
12,
5411,
5647,
18,
345,
682,
12,
394,
514,
63,
7073,
7734,
315,
2630,
3113,
315,
5391,
3113,
315,
3482,
3113,
315,
4025,
3113,
315,
16701,
6,
5411,
289,
262,
11272,
3639,
727,
987,
13512,
14388,
273,
394,
2407,
5621,
3639,
727,
4498,
2775,
273,
930,
682,
18,
9838,
5621,
3639,
1323,
12,
2775,
18,
5332,
2134,
1435,
262,
288,
5411,
727,
5430,
1046,
1729,
1046,
273,
261,
4353,
1046,
2
] |
|
public ResourceStructureBridge() {// if (false) { // IWorkspace workspace = ResourcesPlugin.getWorkspace();// workspace.addResourceChangeListener(new InterestUpdateChangeListener());// } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/ef48ff4762f45f13436b745cd5cd3905a3cedbbb/ResourceStructureBridge.java/buggy/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/ide/ResourceStructureBridge.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2591,
6999,
13691,
1435,
288,
759,
377,
202,
430,
261,
5743,
13,
288,
368,
377,
202,
202,
45,
8241,
6003,
273,
8128,
3773,
18,
588,
8241,
5621,
759,
565,
202,
565,
202,
202,
14915,
18,
1289,
1420,
15744,
12,
2704,
5294,
395,
1891,
15744,
10663,
759,
377,
202,
97,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2591,
6999,
13691,
1435,
288,
759,
377,
202,
430,
261,
5743,
13,
288,
368,
377,
202,
202,
45,
8241,
6003,
273,
8128,
3773,
18,
588,
8241,
5621,
759,
565,
202,
565,
202,
202,
14915,
18,
1289,
1420,
15744,
12,
2704,
5294,
395,
1891,
15744,
10663,
759,
377,
202,
97,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
SearchGalResult result = acct.getDomain().searchGal("", Provisioning.GAL_SEARCH_TYPE.ALL, tokenAttr);
|
SearchGalResult result = Provisioning.getInstance().getDomain(acct).searchGal("", Provisioning.GAL_SEARCH_TYPE.ALL, tokenAttr);
|
public Element handle(Element request, Map<String, Object> context) throws ServiceException { ZimbraSoapContext lc = getZimbraSoapContext(context); Element response = lc.createElement(AccountService.SYNC_GAL_RESPONSE); String tokenAttr = request.getAttribute(MailService.A_TOKEN, ""); Account acct = getRequestedAccount(getZimbraSoapContext(context)); SearchGalResult result = acct.getDomain().searchGal("", Provisioning.GAL_SEARCH_TYPE.ALL, tokenAttr); if (result.token != null) response.addAttribute(MailService.A_TOKEN, result.token); for (GalContact contact : result.matches) SearchGal.addContact(response, contact); return response; }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ea36adae065acdef10efff9efe3ff866b9cf7d77/SyncGal.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/account/SyncGal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1640,
12,
1046,
590,
16,
1635,
32,
780,
16,
1033,
34,
819,
13,
1216,
16489,
288,
3639,
2285,
381,
15397,
20601,
1042,
9109,
273,
23448,
381,
15397,
20601,
1042,
12,
2472,
1769,
3639,
3010,
766,
273,
9109,
18,
2640,
1046,
12,
3032,
1179,
18,
25142,
67,
43,
1013,
67,
14508,
1769,
3639,
514,
1147,
3843,
273,
590,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
8412,
16,
1408,
1769,
7734,
6590,
20774,
273,
4328,
329,
3032,
12,
588,
62,
381,
15397,
20601,
1042,
12,
2472,
10019,
3639,
5167,
43,
287,
1253,
563,
273,
26423,
18,
588,
1442,
7675,
588,
3748,
12,
1077,
299,
2934,
3072,
43,
287,
2932,
3113,
26423,
18,
43,
1013,
67,
17251,
67,
2399,
18,
4685,
16,
1147,
3843,
1769,
3639,
309,
261,
2088,
18,
2316,
480,
446,
13,
5411,
766,
18,
1289,
1499,
12,
6759,
1179,
18,
37,
67,
8412,
16,
563,
18,
2316,
1769,
3639,
364,
261,
43,
287,
6567,
5388,
294,
563,
18,
8436,
13,
5411,
5167,
43,
287,
18,
1289,
6567,
12,
2740,
16,
5388,
1769,
3639,
327,
766,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3010,
1640,
12,
1046,
590,
16,
1635,
32,
780,
16,
1033,
34,
819,
13,
1216,
16489,
288,
3639,
2285,
381,
15397,
20601,
1042,
9109,
273,
23448,
381,
15397,
20601,
1042,
12,
2472,
1769,
3639,
3010,
766,
273,
9109,
18,
2640,
1046,
12,
3032,
1179,
18,
25142,
67,
43,
1013,
67,
14508,
1769,
3639,
514,
1147,
3843,
273,
590,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
8412,
16,
1408,
1769,
7734,
6590,
20774,
273,
4328,
329,
3032,
12,
588,
62,
381,
15397,
20601,
1042,
12,
2472,
10019,
3639,
5167,
43,
287,
1253,
563,
273,
26423,
18,
588,
1442,
7675,
588,
3748,
12,
1077,
299,
2934,
3072,
43,
287,
2932,
3113,
26423,
18,
43,
1013,
67,
17251,
2
] |
private void addGenICGeneratedFiles(File genericJarFile, Hashtable ejbFiles) { Java genicTask = null; // GenIC task String genicClass = null; // GenIC class (3 GenIC classes for various versions of JOnAS are supported) if ( nogenic ) { return; } genicTask = (Java) getTask().getProject().createTask("java"); genicTask.setTaskName("genic"); genicTask.setFork(true); // jonasroot genicTask.createJvmarg().setValue("-Dinstall.root=" + jonasroot); // java policy file String jonasConfigDir = jonasroot + File.separator + "config"; File javaPolicyFile = new File(jonasConfigDir, "java.policy"); if ( javaPolicyFile.exists() ) { genicTask.createJvmarg().setValue("-Djava.security.policy=" + javaPolicyFile.toString()); } // outputdir try { outputdir = createTempDir(); } catch (IOException aIOException) { String msg = "Cannot create temp dir: " + aIOException.getMessage(); throw new BuildException(msg, aIOException); } log("Using temporary output directory: " + outputdir, Project.MSG_VERBOSE); genicTask.createArg().setValue("-d"); genicTask.createArg().setFile(outputdir); // work around a bug of GenIC 2.5 String key; File f; Enumeration keys = ejbFiles.keys(); while ( keys.hasMoreElements() ) { key = (String)keys.nextElement(); f = new File(outputdir + File.separator + key); f.getParentFile().mkdirs(); } log("Worked around a bug of GenIC 2.5.", Project.MSG_VERBOSE); // classpath Path classpath = getCombinedClasspath(); if ( classpath == null ) { classpath = new Path(getTask().getProject()); } classpath.append(new Path(classpath.getProject(), jonasConfigDir)); classpath.append(new Path(classpath.getProject(), outputdir.toString())); // try to create the classpath for the correct ORB if ( orb != null ) { String orbJar = jonasroot + File.separator + "lib" + File.separator + orb + "_jonas.jar"; classpath.append(new Path(classpath.getProject(), orbJar)); } log("Using classpath: " + classpath.toString(), Project.MSG_VERBOSE); genicTask.setClasspath(classpath); // class name (search in the classpath provided for the ejbjar element) genicClass = getGenicClassName(classpath); if ( genicClass == null ) { log("Cannot find GenIC class in classpath.", Project.MSG_ERR); throw new BuildException("GenIC class not found, please check the classpath."); } else { log("Using '" + genicClass + "' GenIC class." , Project.MSG_VERBOSE); genicTask.setClassname(genicClass); } // keepgenerated if ( keepgenerated ) { genicTask.createArg().setValue("-keepgenerated"); } // nocompil if ( nocompil ) { genicTask.createArg().setValue("-nocompil"); } // novalidation if ( novalidation ) { genicTask.createArg().setValue("-novalidation"); } // javac if ( javac != null ) { genicTask.createArg().setValue("-javac"); genicTask.createArg().setLine(javac); } // javacopts if ( javacopts != null && !javacopts.equals("") ) { genicTask.createArg().setValue("-javacopts"); genicTask.createArg().setLine(javacopts); } // rmicopts if ( rmicopts != null && !rmicopts.equals("") ) { genicTask.createArg().setValue("-rmicopts"); genicTask.createArg().setLine(rmicopts); } // secpropag if ( secpropag ) { genicTask.createArg().setValue("-secpropag"); } // verbose if ( verbose ) { genicTask.createArg().setValue("-verbose"); } // additionalargs if ( additionalargs != null ) { genicTask.createArg().setValue(additionalargs); } // the generated classes must not be added in the generic JAR! // is that buggy on old JOnAS (2.4) ?? genicTask.createArg().setValue("-noaddinjar"); // input file to process by GenIC genicTask.createArg().setValue(genericJarFile.getPath()); // calling GenIC task log("Calling " + genicClass + " for " + getConfig().descriptorDir + File.separator + descriptorName + ".", Project.MSG_VERBOSE); if ( genicTask.executeJava() != 0 ) { // the method deleteOnExit() do not work because the directory is not empty log("Deleting temp output directory '" + outputdir + "'.", Project.MSG_VERBOSE); deleteAllFiles(outputdir); if ( !keepgeneric ) { log("Deleting generic JAR " + genericJarFile.toString(), Project.MSG_VERBOSE); genericJarFile.delete(); } throw new BuildException("GenIC reported an error."); } // add the generated files to the ejbFiles addAllFiles(outputdir, "", ejbFiles); }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/6ee5317ca34e43ca1d62e890dcf034eb44cca649/JonasDeploymentTool.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
7642,
2871,
7823,
2697,
12,
812,
5210,
10813,
812,
16,
18559,
18024,
2697,
13,
288,
3639,
5110,
3157,
335,
2174,
273,
446,
31,
202,
759,
10938,
2871,
1562,
3639,
514,
3157,
335,
797,
273,
446,
31,
368,
10938,
2871,
667,
261,
23,
10938,
2871,
3318,
364,
11191,
5244,
434,
804,
1398,
3033,
854,
3260,
13,
5411,
309,
261,
290,
19409,
335,
262,
288,
5411,
327,
31,
3639,
289,
5411,
3157,
335,
2174,
273,
261,
5852,
13,
11478,
7675,
588,
4109,
7675,
2640,
2174,
2932,
6290,
8863,
3639,
3157,
335,
2174,
18,
542,
2174,
461,
2932,
4507,
335,
8863,
3639,
3157,
335,
2174,
18,
542,
22662,
12,
3767,
1769,
5411,
368,
525,
265,
345,
3085,
3639,
3157,
335,
2174,
18,
2640,
6071,
3175,
7675,
542,
620,
2932,
17,
40,
5425,
18,
3085,
1546,
397,
525,
265,
345,
3085,
1769,
5411,
368,
2252,
3329,
585,
3639,
514,
525,
265,
345,
809,
1621,
273,
525,
265,
345,
3085,
397,
1387,
18,
11287,
397,
315,
1425,
14432,
3639,
1387,
2252,
2582,
812,
273,
394,
1387,
12,
78,
265,
345,
809,
1621,
16,
315,
6290,
18,
5086,
8863,
3639,
309,
261,
2252,
2582,
812,
18,
1808,
1435,
262,
288,
5411,
3157,
335,
2174,
18,
2640,
6071,
3175,
7675,
542,
620,
2932,
17,
40,
6290,
18,
7462,
18,
5086,
1546,
17311,
397,
2252,
2582,
812,
18,
10492,
10663,
3639,
289,
5411,
368,
876,
1214,
3639,
775,
288,
5411,
876,
1214,
273,
752,
7185,
1621,
5621,
3639,
289,
1044,
261,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
7642,
2871,
7823,
2697,
12,
812,
5210,
10813,
812,
16,
18559,
18024,
2697,
13,
288,
3639,
5110,
3157,
335,
2174,
273,
446,
31,
202,
759,
10938,
2871,
1562,
3639,
514,
3157,
335,
797,
273,
446,
31,
368,
10938,
2871,
667,
261,
23,
10938,
2871,
3318,
364,
11191,
5244,
434,
804,
1398,
3033,
854,
3260,
13,
5411,
309,
261,
290,
19409,
335,
262,
288,
5411,
327,
31,
3639,
289,
5411,
3157,
335,
2174,
273,
261,
5852,
13,
11478,
7675,
588,
4109,
7675,
2640,
2174,
2932,
6290,
8863,
3639,
3157,
335,
2174,
18,
542,
2174,
461,
2932,
4507,
335,
8863,
3639,
3157,
335,
2174,
18,
542,
22662,
12,
3767,
1769,
5411,
368,
525,
265,
345,
3085,
3639,
2
] |
||
StringBuffer sqlBuffer = new StringBuffer(128); sqlBuffer.append("delete from "); sqlBuffer.append(DataSetUtils.getQualifiedName( connection.getSchema(), metaData.getTableName())); statement.addBatch(sqlBuffer.toString());
|
StringBuffer sqlBuffer = new StringBuffer(128); sqlBuffer.append("delete from "); sqlBuffer.append(DataSetUtils.getQualifiedName( connection.getSchema(), metaData.getTableName())); statement.addBatch(sqlBuffer.toString()); } statement.executeBatch(); statement.clearBatch();
|
public void execute(IDatabaseConnection connection, IDataSet dataSet) throws DatabaseUnitException, SQLException { IStatementFactory statementFactory = connection.getStatementFactory(); IBatchStatement statement = statementFactory.createBatchStatement(connection); try { String[] tableNames = DataSetUtils.getReverseTableNames(dataSet); for (int i = 0; i < tableNames.length; i++) { String name = tableNames[i]; ITableMetaData metaData = dataSet.getTableMetaData(name); StringBuffer sqlBuffer = new StringBuffer(128); sqlBuffer.append("delete from "); sqlBuffer.append(DataSetUtils.getQualifiedName( connection.getSchema(), metaData.getTableName())); statement.addBatch(sqlBuffer.toString()); } statement.executeBatch(); statement.clearBatch(); } finally { statement.close(); } }
|
49588 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49588/ad164a931e0cf2f287a1bac4224deec594ced0d3/DeleteAllOperation.java/clean/src/java/org/dbunit/operation/DeleteAllOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
734,
2451,
1952,
1459,
16,
467,
13676,
14837,
13,
5411,
1216,
5130,
2802,
503,
16,
6483,
565,
288,
3639,
467,
3406,
1733,
3021,
1733,
273,
1459,
18,
588,
3406,
1733,
5621,
3639,
467,
4497,
3406,
3021,
273,
3021,
1733,
18,
2640,
4497,
3406,
12,
4071,
1769,
3639,
775,
3639,
288,
5411,
514,
8526,
1014,
1557,
273,
14065,
1989,
18,
588,
12650,
1388,
1557,
12,
892,
694,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
1557,
18,
2469,
31,
277,
27245,
5411,
288,
7734,
514,
508,
273,
1014,
1557,
63,
77,
15533,
7734,
467,
1388,
6998,
11651,
273,
14837,
18,
588,
1388,
6998,
12,
529,
1769,
7734,
6674,
1847,
1892,
273,
394,
6674,
12,
10392,
1769,
7734,
1847,
1892,
18,
6923,
2932,
3733,
628,
315,
1769,
7734,
1847,
1892,
18,
6923,
12,
13676,
1989,
18,
588,
12345,
12,
13491,
1459,
18,
588,
3078,
9334,
11651,
18,
588,
7147,
1435,
10019,
7734,
3021,
18,
1289,
4497,
12,
4669,
1892,
18,
10492,
10663,
5411,
289,
5411,
3021,
18,
8837,
4497,
5621,
5411,
3021,
18,
8507,
4497,
5621,
3639,
289,
3639,
3095,
3639,
288,
5411,
3021,
18,
4412,
5621,
3639,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
734,
2451,
1952,
1459,
16,
467,
13676,
14837,
13,
5411,
1216,
5130,
2802,
503,
16,
6483,
565,
288,
3639,
467,
3406,
1733,
3021,
1733,
273,
1459,
18,
588,
3406,
1733,
5621,
3639,
467,
4497,
3406,
3021,
273,
3021,
1733,
18,
2640,
4497,
3406,
12,
4071,
1769,
3639,
775,
3639,
288,
5411,
514,
8526,
1014,
1557,
273,
14065,
1989,
18,
588,
12650,
1388,
1557,
12,
892,
694,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
1557,
18,
2469,
31,
277,
27245,
5411,
288,
7734,
514,
508,
273,
1014,
1557,
63,
77,
15533,
7734,
467,
1388,
6998,
11651,
273,
14837,
18,
588,
1388,
6998,
12,
529,
1769,
7734,
6674,
1847,
1892,
273,
2
] |
BugReport bug = BugParser.parseBug(in, id, repository.getUrl().toExternalForm(), repository .getVersion().equals(BugzillaServerVersion.SERVER_218.toString()),
|
BugReport bug = BugParser.parseBug(in, id, repository.getUrl().toExternalForm(), !repository .getVersion().equals(BugzillaServerVersion.SERVER_216.toString()),
|
public static BugReport getBug(String repositoryUrl, int id) throws IOException, MalformedURLException, LoginException { BufferedReader in = null; try { // create a new input stream for getting the bug TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository( BugzillaPlugin.REPOSITORY_KIND, repositoryUrl); if (repository == null) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openInformation(Display.getDefault().getActiveShell(), IBugzillaConstants.TITLE_MESSAGE_DIALOG, TaskRepositoryManager.MESSAGE_NO_REPOSITORY); } }); return null; } String url = repositoryUrl + POST_ARGS_SHOW_BUG + id; if (repository.hasCredentials()) { url += POST_ARGS_LOGIN + URLEncoder.encode(repository.getUserName(), BugzillaPlugin.ENCODING_UTF_8) + POST_ARGS_PASSWORD + URLEncoder.encode(repository.getPassword(), BugzillaPlugin.ENCODING_UTF_8); } URL bugUrl = new URL(url); URLConnection connection = BugzillaPlugin.getDefault().getUrlConnection(bugUrl); if (connection != null) { InputStream input = connection.getInputStream(); if (input != null) { in = new BufferedReader(new InputStreamReader(input)); // get the actual bug fron the server and return it BugReport bug = BugParser.parseBug(in, id, repository.getUrl().toExternalForm(), repository .getVersion().equals(BugzillaServerVersion.SERVER_218.toString()), repository.getUserName(), repository.getPassword(), connection.getContentType()); return bug; } } // TODO handle the error return null; } catch (MalformedURLException e) { throw e; } catch (IOException e) { throw e; } catch (LoginException e) { throw e; } catch (Exception e) { BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, "Problem getting report", e)); return null; } finally { try { if (in != null) in.close(); } catch (IOException e) { BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, "Problem closing the stream", e)); } } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b324fb1c737d9e2ad2839159dd70033e3ffbd949/BugzillaRepositoryUtil.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
16907,
4820,
2882,
637,
12,
780,
3352,
1489,
16,
509,
612,
13,
1216,
1860,
16,
20710,
16,
1082,
202,
5358,
503,
288,
202,
202,
17947,
2514,
316,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
759,
752,
279,
394,
810,
1407,
364,
8742,
326,
7934,
1082,
202,
2174,
3305,
3352,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
12,
6862,
202,
19865,
15990,
3773,
18,
862,
30986,
67,
47,
2356,
16,
3352,
1489,
1769,
1082,
202,
430,
261,
9071,
422,
446,
13,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
6862,
202,
482,
918,
1086,
1435,
288,
25083,
202,
1079,
6353,
18,
3190,
5369,
12,
4236,
18,
588,
1868,
7675,
588,
3896,
13220,
9334,
6862,
9506,
202,
13450,
637,
15990,
2918,
18,
14123,
67,
8723,
67,
2565,
18683,
16,
3837,
3305,
1318,
18,
8723,
67,
3417,
67,
862,
30986,
1769,
6862,
202,
97,
9506,
202,
22938,
9506,
202,
2463,
446,
31,
1082,
202,
97,
1082,
202,
780,
880,
273,
3352,
1489,
397,
5485,
67,
22439,
67,
16677,
67,
4827,
397,
612,
31,
1082,
202,
430,
261,
9071,
18,
5332,
6163,
10756,
288,
9506,
202,
718,
1011,
5485,
67,
22439,
67,
19022,
397,
1976,
7204,
18,
3015,
12,
9071,
18,
588,
15296,
9334,
16907,
15990,
3773,
18,
14672,
67,
5159,
67,
28,
13,
25083,
202,
15,
5485,
67,
22439,
67,
13784,
25083,
202,
15,
1976,
7204,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16907,
4820,
2882,
637,
12,
780,
3352,
1489,
16,
509,
612,
13,
1216,
1860,
16,
20710,
16,
1082,
202,
5358,
503,
288,
202,
202,
17947,
2514,
316,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
759,
752,
279,
394,
810,
1407,
364,
8742,
326,
7934,
1082,
202,
2174,
3305,
3352,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
12,
6862,
202,
19865,
15990,
3773,
18,
862,
30986,
67,
47,
2356,
16,
3352,
1489,
1769,
1082,
202,
430,
261,
9071,
422,
446,
13,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
6862,
202,
482,
918,
1086,
1435,
288,
2
] |
ChooseWorkspaceData.setShowDialogValue(launchPromptButton.getSelection());
|
ChooseWorkspaceData.setShowDialogValue(launchPromptButton .getSelection());
|
public boolean performOk() { // set the workspace auto-build flag IWorkspaceDescription description = ResourcesPlugin.getWorkspace().getDescription(); if (autoBuildButton.getSelection() != ResourcesPlugin.getWorkspace().isAutoBuilding()) { try { description.setAutoBuilding(autoBuildButton.getSelection()); ResourcesPlugin.getWorkspace().setDescription(description); } catch (CoreException e) { IDEWorkbenchPlugin.log("Error changing auto build workspace setting.", e.getStatus()); //$NON-NLS-1$ } } IPreferenceStore store = getIDEPreferenceStore(); // store the save all prior to build setting store.setValue(IDEInternalPreferences.SAVE_ALL_BEFORE_BUILD, autoSaveAllButton.getSelection()); // store the refresh workspace on startup setting store.setValue(IDEInternalPreferences.REFRESH_WORKSPACE_ON_STARTUP, refreshButton.getSelection()); // TODO: This should get the value from the configuration preference area, but // dj said we shouldn't use it yet; some final details are being worked // out. Hopefully it will be available soon, at which time the entire // recentWorkspaces.xml file can be removed. But until then, this // preference reads/writes the file each time. ChooseWorkspaceData.setShowDialogValue(launchPromptButton.getSelection()); // store the exit prompt on last window close setting store.setValue(IDEInternalPreferences.EXIT_PROMPT_ON_CLOSE_LAST_WINDOW, exitPromptButton.getSelection()); // store the preference for bringing task view to front on build store.setValue(IDEInternalPreferences.SHOW_TASKS_ON_BUILD, showTasks.getSelection()); // store the workspace save interval // @issue we should drop our preference constant and let clients use core's pref. ours is not up-to-date anyway if someone changes this interval directly thru core api. long oldSaveInterval = description.getSnapshotInterval() / 60000; long newSaveInterval = new Long(saveInterval.getStringValue()).longValue(); if (oldSaveInterval != newSaveInterval) { try { description.setSnapshotInterval(newSaveInterval * 60000); ResourcesPlugin.getWorkspace().setDescription(description); store.firePropertyChangeEvent(IDEInternalPreferences.SAVE_INTERVAL, new Integer((int)oldSaveInterval), new Integer((int)newSaveInterval)); } catch (CoreException e) { IDEWorkbenchPlugin.log("Error changing save interval preference", e.getStatus()); //$NON-NLS-1$ } } return super.performOk(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d9f077f11edb05a527f887adc8741e37bc3a1982/IDEWorkbenchPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkbenchPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
202,
202,
759,
444,
326,
6003,
3656,
17,
3510,
2982,
202,
202,
45,
8241,
3291,
2477,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
3291,
5621,
202,
202,
430,
261,
6079,
3116,
3616,
18,
588,
6233,
1435,
480,
8128,
3773,
18,
588,
8241,
7675,
291,
4965,
16713,
10756,
288,
1082,
202,
698,
288,
9506,
202,
3384,
18,
542,
4965,
16713,
12,
6079,
3116,
3616,
18,
588,
6233,
10663,
9506,
202,
3805,
3773,
18,
588,
8241,
7675,
542,
3291,
12,
3384,
1769,
1082,
202,
97,
1044,
261,
25341,
425,
13,
288,
9506,
202,
10385,
2421,
22144,
3773,
18,
1330,
2932,
668,
12770,
3656,
1361,
6003,
3637,
1199,
16,
425,
18,
588,
1482,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
202,
202,
97,
202,
202,
45,
9624,
2257,
1707,
273,
336,
10385,
9624,
2257,
5621,
202,
202,
759,
1707,
326,
1923,
777,
6432,
358,
1361,
3637,
202,
202,
2233,
18,
542,
620,
12,
10385,
3061,
12377,
18,
25242,
67,
4685,
67,
19152,
67,
20215,
16,
3656,
4755,
1595,
3616,
18,
588,
6233,
10663,
202,
202,
759,
1707,
326,
4460,
6003,
603,
11850,
3637,
202,
202,
2233,
18,
542,
620,
12,
10385,
3061,
12377,
18,
10771,
14753,
67,
10566,
6616,
67,
673,
67,
7570,
3079,
16,
4460,
3616,
18,
588,
6233,
10663,
202,
202,
759,
2660,
30,
1220,
1410,
336,
326,
460,
628,
326,
1664,
11555,
5091,
16,
1496,
202,
202,
759,
4202,
19754,
7864,
350,
732,
12044,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3073,
8809,
1435,
288,
202,
202,
759,
444,
326,
6003,
3656,
17,
3510,
2982,
202,
202,
45,
8241,
3291,
2477,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
3291,
5621,
202,
202,
430,
261,
6079,
3116,
3616,
18,
588,
6233,
1435,
480,
8128,
3773,
18,
588,
8241,
7675,
291,
4965,
16713,
10756,
288,
1082,
202,
698,
288,
9506,
202,
3384,
18,
542,
4965,
16713,
12,
6079,
3116,
3616,
18,
588,
6233,
10663,
9506,
202,
3805,
3773,
18,
588,
8241,
7675,
542,
3291,
12,
3384,
1769,
1082,
202,
97,
1044,
261,
25341,
425,
13,
288,
9506,
202,
10385,
2421,
22144,
3773,
18,
1330,
2932,
668,
12770,
3656,
1361,
6003,
3637,
1199,
16,
425,
18,
588,
1482,
2
] |
{ ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'Z'); prim_field_data[field.getOffset ()] = (byte)(value ? 1 : 0); }
|
{ ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'Z'); prim_field_data[field.getOffset ()] = (byte)(value ? 1 : 0); }
|
public void put (String name, boolean value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'Z'); prim_field_data[field.getOffset ()] = (byte)(value ? 1 : 0); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/2ddeb7e5ae365e4acfc02d37ce47ffad52375ed7/ObjectOutputStream.java/clean/java/io/ObjectOutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1378,
261,
780,
508,
16,
1250,
460,
13,
202,
95,
202,
225,
1033,
1228,
974,
652,
202,
565,
273,
27138,
1228,
797,
18,
588,
974,
261,
529,
1769,
202,
225,
23008,
261,
1518,
16,
296,
62,
8284,
202,
225,
15610,
67,
1518,
67,
892,
63,
1518,
18,
588,
2335,
1832,
65,
273,
261,
7229,
21433,
1132,
692,
404,
294,
374,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1378,
261,
780,
508,
16,
1250,
460,
13,
202,
95,
202,
225,
1033,
1228,
974,
652,
202,
565,
273,
27138,
1228,
797,
18,
588,
974,
261,
529,
1769,
202,
225,
23008,
261,
1518,
16,
296,
62,
8284,
202,
225,
15610,
67,
1518,
67,
892,
63,
1518,
18,
588,
2335,
1832,
65,
273,
261,
7229,
21433,
1132,
692,
404,
294,
374,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_info"));
|
new MenuItem(Messages.getString("StandaloneAppletWindow.MenuInfo"));
|
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); add(status, BorderLayout.SOUTH); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent event) { applet.stop(); StandaloneAppletWindow.this.hide(); System.exit(0); } }); addContainerListener(this); addComponentListener(this); addMouseListener(this); addMouseMotionListener(this); addInputMethodListener(this); addHierarchyListener(this); addHierarchyBoundsListener(this); restartItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_restart")); restartItem.setEnabled(false); restartItem.addActionListener(this); reloadItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_reload")); reloadItem.setEnabled(false); reloadItem.addActionListener(this); cancelItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_cancel")); cancelItem.setEnabled(false); cancelItem.addActionListener(this); saveItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_save")); saveItem.setEnabled(false); saveItem.addActionListener(this); startItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_start")); startItem.setEnabled(false); startItem.addActionListener(this); cloneItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_clone")); cloneItem.setEnabled(false); cloneItem.addActionListener(this); closeItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_close")); closeItem.setEnabled(false); closeItem.addActionListener(this); tagItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_tag")); tagItem.setEnabled(false); tagItem.addActionListener(this); infoItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_info")); infoItem.setEnabled(false); infoItem.addActionListener(this); editItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_edit")); editItem.setEnabled(false); editItem.addActionListener(this); editItem.setEnabled(false); encodingItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_encoding")); encodingItem.setEnabled(false); encodingItem.addActionListener(this); printItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_print")); printItem.setEnabled(false); printItem.addActionListener(this); propertiesItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_properties")); propertiesItem.setEnabled(false); propertiesItem.addActionListener(this); quitItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_quit")); quitItem.addActionListener(this); MenuBar menuBar = new MenuBar(); Menu menuApplet = new Menu(Main.messages.getString("gcjwebplugin.menu_title")); menuBar.add(menuApplet); menuApplet.add(restartItem); menuApplet.add(reloadItem); menuApplet.add(cancelItem); menuApplet.add(saveItem); menuApplet.add(startItem); menuApplet.add(cloneItem); menuApplet.addSeparator(); menuApplet.add(tagItem); menuApplet.add(infoItem); menuApplet.add(editItem); menuApplet.add(encodingItem); menuApplet.addSeparator(); menuApplet.add(printItem); menuApplet.addSeparator(); menuApplet.add(propertiesItem); menuApplet.addSeparator(); menuApplet.add(closeItem); menuApplet.add(quitItem); setMenuBar(menuBar); setTitle("GNU Classpath Applet Viewer: " + tag.code); AppletContext context = (AppletContext) contexts.get(tag.codebase); ((StandaloneAppletContext) context).addApplet(applet); applet.setStub(new CommonAppletStub(tag, context, applet)); // Create the frame's peer. Otherwise getPreferredSize will read // its insets as 0. addNotify(); Insets i = getInsets(); Dimension size = tag.getSize(); setSize(i.left + size.width + i.right, i.top + size.height + status.getPreferredSize().height + i.bottom); applet.setSize(size); // Initialize the applet before showing this window so that the // applet doesn't receive events before it has been initialized. applet.init(); applet.start(); setVisible(true); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/buggy/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
934,
464,
12451,
23696,
3829,
12,
23696,
1805,
1047,
16,
987,
21853,
10399,
13,
225,
288,
565,
21853,
10399,
18,
1289,
12,
2211,
1769,
565,
21853,
273,
12740,
18,
2640,
23696,
12,
2692,
1769,
565,
309,
261,
18332,
18,
588,
12,
2692,
18,
710,
1969,
13,
422,
446,
13,
1377,
5781,
18,
458,
12,
2692,
18,
710,
1969,
16,
394,
934,
464,
12451,
23696,
1042,
12,
438,
1469,
10399,
10019,
565,
18479,
12,
2704,
30814,
10663,
565,
527,
12,
438,
1469,
16,
30814,
18,
19835,
1769,
565,
527,
12,
2327,
16,
30814,
18,
3584,
5844,
1769,
565,
527,
3829,
2223,
12,
2704,
6076,
4216,
1435,
3639,
288,
202,
225,
1071,
918,
2742,
15745,
12,
3829,
1133,
871,
13,
202,
225,
288,
202,
565,
21853,
18,
5681,
5621,
202,
565,
934,
464,
12451,
23696,
3829,
18,
2211,
18,
11248,
5621,
202,
565,
2332,
18,
8593,
12,
20,
1769,
202,
225,
289,
3639,
15549,
3639,
527,
2170,
2223,
12,
2211,
1769,
565,
15218,
2223,
12,
2211,
1769,
565,
527,
9186,
2223,
12,
2211,
1769,
565,
527,
9186,
29360,
2223,
12,
2211,
1769,
565,
527,
1210,
1305,
2223,
12,
2211,
1769,
565,
527,
12074,
2223,
12,
2211,
1769,
565,
527,
12074,
5694,
2223,
12,
2211,
1769,
3639,
7870,
1180,
273,
394,
25085,
12,
6376,
18,
6833,
18,
588,
780,
2932,
13241,
78,
4875,
4094,
18,
5414,
67,
19164,
7923,
1769,
565,
7870,
1180,
18,
542,
1526,
12,
5743,
1769,
565,
7870,
1180,
18,
1289,
1803,
2223,
12,
2211,
1769,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
934,
464,
12451,
23696,
3829,
12,
23696,
1805,
1047,
16,
987,
21853,
10399,
13,
225,
288,
565,
21853,
10399,
18,
1289,
12,
2211,
1769,
565,
21853,
273,
12740,
18,
2640,
23696,
12,
2692,
1769,
565,
309,
261,
18332,
18,
588,
12,
2692,
18,
710,
1969,
13,
422,
446,
13,
1377,
5781,
18,
458,
12,
2692,
18,
710,
1969,
16,
394,
934,
464,
12451,
23696,
1042,
12,
438,
1469,
10399,
10019,
565,
18479,
12,
2704,
30814,
10663,
565,
527,
12,
438,
1469,
16,
30814,
18,
19835,
1769,
565,
527,
12,
2327,
16,
30814,
18,
3584,
5844,
1769,
565,
527,
3829,
2223,
12,
2704,
6076,
4216,
1435,
3639,
288,
202,
225,
1071,
918,
2742,
15745,
12,
3829,
1133,
871,
13,
2
] |
if (fBundleLocalization.indexOf(LOCALIZATION_FILE_SUFFIX) == -1) fPropertiesFile = project.getFile(fBundleLocalization + LOCALIZATION_FILE_SUFFIX); else fPropertiesFile = project.getFile(fBundleLocalization); return fPropertiesFile;
|
return project.getFile(getBundleLocalization() + LOCALIZATION_FILE_SUFFIX);
|
public IFile getPropertiesFile() { IProject project = fParent.getUnderlyingResource().getProject(); if (fBundleLocalization.indexOf(LOCALIZATION_FILE_SUFFIX) == -1) fPropertiesFile = project.getFile(fBundleLocalization + LOCALIZATION_FILE_SUFFIX); else fPropertiesFile = project.getFile(fBundleLocalization); return fPropertiesFile; }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/d39d7b4d71c88ae909845d17f7453bba55f350d7/ModelChange.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/nls/ModelChange.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
812,
9392,
812,
1435,
288,
202,
202,
45,
4109,
1984,
273,
284,
3054,
18,
588,
14655,
6291,
1420,
7675,
588,
4109,
5621,
202,
202,
430,
261,
74,
3405,
19157,
18,
31806,
12,
14922,
25084,
67,
3776,
67,
14964,
13,
422,
300,
21,
13,
1082,
202,
74,
2297,
812,
273,
1984,
18,
29925,
12,
74,
3405,
19157,
397,
15234,
25084,
67,
3776,
67,
14964,
1769,
202,
202,
12107,
1082,
202,
74,
2297,
812,
273,
1984,
18,
29925,
12,
74,
3405,
19157,
1769,
202,
202,
2463,
284,
2297,
812,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
812,
9392,
812,
1435,
288,
202,
202,
45,
4109,
1984,
273,
284,
3054,
18,
588,
14655,
6291,
1420,
7675,
588,
4109,
5621,
202,
202,
430,
261,
74,
3405,
19157,
18,
31806,
12,
14922,
25084,
67,
3776,
67,
14964,
13,
422,
300,
21,
13,
1082,
202,
74,
2297,
812,
273,
1984,
18,
29925,
12,
74,
3405,
19157,
397,
15234,
25084,
67,
3776,
67,
14964,
1769,
202,
202,
12107,
1082,
202,
74,
2297,
812,
273,
1984,
18,
29925,
12,
74,
3405,
19157,
1769,
202,
202,
2463,
284,
2297,
812,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Object adaptable = ((IAdaptable) page).getAdapter(key); if (adaptable != null) return adaptable;
|
Object adapter = ((IAdaptable) page).getAdapter(key); if (adapter != null) return adapter;
|
public Object getAdapter(Class key) { // delegate to the current page, if supported IPage page = getCurrentPage(); if (page instanceof IAdaptable) { Object adaptable = ((IAdaptable) page).getAdapter(key); if (adaptable != null) return adaptable; } return super.getAdapter(key); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/db0b534922144ffd4335db1dc1f2314674fe264b/PageBookView.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/PageBookView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
16679,
12,
797,
498,
13,
288,
202,
202,
759,
7152,
358,
326,
783,
1363,
16,
309,
3260,
202,
202,
45,
1964,
1363,
273,
5175,
1964,
5621,
202,
202,
430,
261,
2433,
1276,
467,
13716,
429,
13,
288,
1082,
202,
921,
5855,
429,
273,
14015,
45,
13716,
429,
13,
1363,
2934,
588,
4216,
12,
856,
1769,
1082,
202,
430,
261,
19195,
429,
480,
446,
13,
9506,
202,
2463,
5855,
429,
31,
202,
202,
97,
202,
202,
2463,
2240,
18,
588,
4216,
12,
856,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
16679,
12,
797,
498,
13,
288,
202,
202,
759,
7152,
358,
326,
783,
1363,
16,
309,
3260,
202,
202,
45,
1964,
1363,
273,
5175,
1964,
5621,
202,
202,
430,
261,
2433,
1276,
467,
13716,
429,
13,
288,
1082,
202,
921,
5855,
429,
273,
14015,
45,
13716,
429,
13,
1363,
2934,
588,
4216,
12,
856,
1769,
1082,
202,
430,
261,
19195,
429,
480,
446,
13,
9506,
202,
2463,
5855,
429,
31,
202,
202,
97,
202,
202,
2463,
2240,
18,
588,
4216,
12,
856,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (date[utc]=='+') {
|
if (date.utc=='+') {
|
protected void normalize (int[] date, int[] timeZone) { // REVISIT: we have common code in addDuration() for durations // should consider reorganizing it. // //add minutes (from time zone) int negate = 1; if (date[utc]=='+') { negate = -1; } if ( DEBUG ) { System.out.println("==>date[m]"+date[m]); System.out.println("==>timeZone[mm]" +timeZone[mm]); } int temp = date[m] + negate*timeZone[mm]; int carry = fQuotient (temp, 60); date[m]= mod(temp, 60, carry); if ( DEBUG ) { System.out.println("==>carry: " + carry); } //add hours temp = date[h] + negate*timeZone[hh] + carry; carry = fQuotient(temp, 24); date[h]=mod(temp, 24, carry); if ( DEBUG ) { System.out.println("==>date[h]"+date[h]); System.out.println("==>carry: " + carry); } date[D]=date[D]+carry; while ( true ) { temp=maxDayInMonthFor(date[CY], date[M]); if (date[D]<1) { date[D] = date[D] + maxDayInMonthFor(date[CY], date[M]-1); carry=-1; } else if ( date[D]>temp ) { date[D]=date[D]-temp; carry=1; } else { break; } temp=date[M]+carry; date[M]=modulo(temp, 1, 13); date[CY]=date[CY]+fQuotient(temp, 1, 13); } date[utc]='Z'; }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/7569f1e56b929395f70c2717a33b9ea5e6583d7a/AbstractDateTimeDV.java/buggy/src/org/apache/xerces/impl/dv/xs/AbstractDateTimeDV.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
225,
918,
3883,
261,
474,
8526,
1509,
16,
509,
8526,
17512,
13,
288,
3639,
368,
2438,
26780,
1285,
30,
732,
1240,
2975,
981,
316,
527,
5326,
1435,
364,
23920,
3639,
368,
1850,
1410,
5260,
283,
22543,
6894,
518,
18,
3639,
368,
3639,
368,
1289,
6824,
261,
2080,
813,
4157,
13,
3639,
509,
15626,
273,
404,
31,
3639,
309,
261,
712,
18,
17892,
18920,
15,
6134,
288,
5411,
15626,
273,
300,
21,
31,
3639,
289,
3639,
309,
261,
6369,
262,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
631,
34,
712,
63,
81,
4279,
15,
712,
63,
81,
19226,
5411,
2332,
18,
659,
18,
8222,
2932,
631,
34,
957,
4226,
63,
7020,
4279,
397,
957,
4226,
63,
7020,
19226,
3639,
289,
3639,
509,
1906,
273,
1509,
63,
81,
65,
397,
15626,
14,
957,
4226,
63,
7020,
15533,
3639,
509,
9331,
273,
284,
7678,
1979,
261,
5814,
16,
4752,
1769,
3639,
1509,
63,
81,
65,
33,
681,
12,
5814,
16,
4752,
16,
9331,
1769,
3639,
309,
261,
6369,
262,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
631,
34,
9815,
1176,
30,
315,
397,
9331,
1769,
3639,
289,
3639,
368,
1289,
7507,
3639,
1906,
273,
1509,
63,
76,
65,
397,
15626,
14,
957,
4226,
63,
21622,
65,
397,
9331,
31,
3639,
9331,
273,
284,
7678,
1979,
12,
5814,
16,
4248,
1769,
3639,
1509,
63,
76,
65,
33,
1711,
12,
5814,
16,
4248,
16,
9331,
1769,
3639,
309,
261,
6369,
262,
288,
5411,
2332,
18,
659,
18,
8222,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
918,
3883,
261,
474,
8526,
1509,
16,
509,
8526,
17512,
13,
288,
3639,
368,
2438,
26780,
1285,
30,
732,
1240,
2975,
981,
316,
527,
5326,
1435,
364,
23920,
3639,
368,
1850,
1410,
5260,
283,
22543,
6894,
518,
18,
3639,
368,
3639,
368,
1289,
6824,
261,
2080,
813,
4157,
13,
3639,
509,
15626,
273,
404,
31,
3639,
309,
261,
712,
18,
17892,
18920,
15,
6134,
288,
5411,
15626,
273,
300,
21,
31,
3639,
289,
3639,
309,
261,
6369,
262,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
631,
34,
712,
63,
81,
4279,
15,
712,
63,
81,
19226,
5411,
2332,
18,
659,
18,
8222,
2932,
631,
34,
957,
4226,
63,
7020,
4279,
397,
957,
4226,
63,
7020,
2
] |
pixels[off++] = gradient[idx];
|
pixels[off++] = grad[idx];
|
protected void fillSimpleReflect(int[] pixels, int off, int adjust, int x, int y, int w, int h) { final float initConst = (dgdX*x) + gc; for (int i=0; i<h; i++) { //for every row //initialize current value to be start. float g = initConst + dgdY*(y+i); // now limited g to -2<->2 g = g - 2*((int)(g/2.0f)); float step = dgdX; // Pull it into the positive half if (g < 0) { g = -g; //take absolute value step = - step; // Change direction.. } // Now do the same for dgdX. This is safe because // any step that is a multiple of 2.0 has no // affect, hence we can remove it which the first // part does. The second part simply adds 2.0 // (which has no affect due to the cylcle) to move // all negative step values into the positive // side. step = step - 2*((int)step/2.0f); if (step < 0) step += 2.0; final int reflectMax = 2*fastGradientArraySize; // Scale for gradient array. g *= fastGradientArraySize; g += 0.5; step *= fastGradientArraySize; final int rowLimit = off+w; // end of row iteration while (off < rowLimit) { int idx = (int)g; if (idx >= reflectMax) { g -= reflectMax; idx -= reflectMax; } if (idx <= fastGradientArraySize) pixels[off++] = gradient[idx]; else pixels[off++] = gradient[reflectMax-idx]; g+= step; } off += adjust; //change in off from row to row } }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/130e369b703b6025342ecf9e73e1eb5ddf948e80/LinearGradientPaintContext.java/clean/sources/org/apache/batik/ext/awt/LinearGradientPaintContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3636,
5784,
24452,
12,
474,
8526,
8948,
16,
509,
3397,
16,
509,
5765,
16,
4766,
509,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
13,
288,
3639,
727,
1431,
1208,
9661,
273,
261,
72,
19016,
60,
14,
92,
13,
397,
8859,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
76,
31,
277,
27245,
288,
368,
1884,
3614,
1027,
5411,
368,
11160,
783,
460,
358,
506,
787,
18,
5411,
1431,
314,
273,
1208,
9661,
397,
14938,
72,
61,
21556,
93,
15,
77,
1769,
2398,
368,
2037,
13594,
314,
358,
300,
22,
32,
2122,
22,
5411,
314,
273,
314,
300,
576,
14,
12443,
474,
21433,
75,
19,
22,
18,
20,
74,
10019,
5411,
1431,
2235,
273,
14938,
72,
60,
31,
5411,
368,
14899,
518,
1368,
326,
6895,
8816,
5411,
309,
261,
75,
411,
374,
13,
288,
7734,
314,
273,
300,
75,
31,
368,
22188,
4967,
460,
7734,
2235,
273,
300,
2235,
31,
225,
368,
7576,
4068,
838,
5411,
289,
5411,
368,
4494,
741,
326,
1967,
364,
14938,
72,
60,
18,
1220,
353,
4183,
2724,
5411,
368,
1281,
2235,
716,
353,
279,
3229,
434,
576,
18,
20,
711,
1158,
5411,
368,
13418,
16,
20356,
732,
848,
1206,
518,
1492,
326,
1122,
5411,
368,
1087,
1552,
18,
225,
1021,
2205,
1087,
8616,
4831,
576,
18,
20,
5411,
368,
261,
12784,
711,
1158,
13418,
6541,
358,
326,
27331,
2131,
13,
358,
3635,
5411,
368,
777,
6092,
2235,
924,
1368,
326,
6895,
5411,
368,
4889,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3636,
5784,
24452,
12,
474,
8526,
8948,
16,
509,
3397,
16,
509,
5765,
16,
4766,
509,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
13,
288,
3639,
727,
1431,
1208,
9661,
273,
261,
72,
19016,
60,
14,
92,
13,
397,
8859,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
76,
31,
277,
27245,
288,
368,
1884,
3614,
1027,
5411,
368,
11160,
783,
460,
358,
506,
787,
18,
5411,
1431,
314,
273,
1208,
9661,
397,
14938,
72,
61,
21556,
93,
15,
77,
1769,
2398,
368,
2037,
13594,
314,
358,
300,
22,
32,
2122,
22,
5411,
314,
273,
314,
300,
576,
14,
12443,
474,
21433,
75,
19,
22,
18,
20,
74,
10019,
5411,
2
] |
children.remove(j);
|
if (j < children.size()) { children.remove(j); } else { relations.remove(j-children.size()); }
|
public void remove(int j) { PlayPenComponent c = children.get(j); Rectangle r = c.getBounds(); c.removePlayPenComponentListener(playPenComponentEventPassthrough); c.removeSelectionListener(getOwner()); children.remove(j); getOwner().repaint(r); }
|
53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/bc4a50b770733f62bfd6563b935f1c02641823ff/PlayPenContentPane.java/clean/src/ca/sqlpower/architect/swingui/PlayPenContentPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
12,
474,
525,
13,
288,
202,
202,
11765,
24251,
1841,
276,
273,
2325,
18,
588,
12,
78,
1769,
202,
202,
19463,
436,
273,
276,
18,
588,
5694,
5621,
202,
202,
71,
18,
4479,
11765,
24251,
1841,
2223,
12,
1601,
24251,
1841,
1133,
52,
345,
24283,
1769,
202,
202,
71,
18,
4479,
6233,
2223,
12,
588,
5541,
10663,
202,
202,
5906,
18,
4479,
12,
78,
1769,
202,
202,
588,
5541,
7675,
14462,
1598,
12,
86,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
12,
474,
525,
13,
288,
202,
202,
11765,
24251,
1841,
276,
273,
2325,
18,
588,
12,
78,
1769,
202,
202,
19463,
436,
273,
276,
18,
588,
5694,
5621,
202,
202,
71,
18,
4479,
11765,
24251,
1841,
2223,
12,
1601,
24251,
1841,
1133,
52,
345,
24283,
1769,
202,
202,
71,
18,
4479,
6233,
2223,
12,
588,
5541,
10663,
202,
202,
5906,
18,
4479,
12,
78,
1769,
202,
202,
588,
5541,
7675,
14462,
1598,
12,
86,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public PacketCollector createPacketCollector(PacketFilter packetFilter) { PacketCollector packetCollector = new PacketCollector(this, packetFilter); return packetCollector; }
|
45655 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45655/d77787f67ce448ae4a3e3c094fb3eca72ff97f7a/PacketReader.java/buggy/source/org/jivesoftware/smack/PacketReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6667,
7134,
2640,
6667,
7134,
12,
6667,
1586,
11482,
1586,
15329,
6667,
7134,
11482,
7134,
33,
2704,
6667,
7134,
12,
2211,
16,
11482,
1586,
1769,
2463,
11482,
7134,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6667,
7134,
2640,
6667,
7134,
12,
6667,
1586,
11482,
1586,
15329,
6667,
7134,
11482,
7134,
33,
2704,
6667,
7134,
12,
2211,
16,
11482,
1586,
1769,
2463,
11482,
7134,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
Map<String, List<? extends Object>> mapping = new HashMap<String, List<? extends Object>>();
|
Map<String, List<? extends Object>> mapping = new HashMap<String, List<? extends Object>>();
|
protected Map referenceData( HttpServletRequest request ) { Map<String, List<? extends Object>> mapping = new HashMap<String, List<? extends Object>>(); // add species populateTaxonReferenceData( mapping ); return mapping; }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/1e58c1ef6f6633e7775aba53b757c43be85383f0/CoexpressionSearchController.java/clean/gemma-web/src/main/java/ubic/gemma/web/controller/coexpressionSearch/CoexpressionSearchController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1635,
2114,
751,
12,
9984,
590,
262,
288,
3639,
1635,
32,
780,
16,
987,
12880,
3231,
1033,
9778,
2874,
273,
394,
4317,
32,
780,
16,
987,
12880,
3231,
1033,
9778,
5621,
15604,
368,
527,
12891,
3639,
6490,
7731,
265,
2404,
751,
12,
2874,
11272,
8227,
327,
2874,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1635,
2114,
751,
12,
9984,
590,
262,
288,
3639,
1635,
32,
780,
16,
987,
12880,
3231,
1033,
9778,
2874,
273,
394,
4317,
32,
780,
16,
987,
12880,
3231,
1033,
9778,
5621,
15604,
368,
527,
12891,
3639,
6490,
7731,
265,
2404,
751,
12,
2874,
11272,
8227,
327,
2874,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assertEquals(new BigDecimal(100), new BigDecimal(history.getLatestExecutionReport(clOrderID1.toString()).getString(LastQty.FIELD))); assertTrue(!history.getLatestExecutionReport(clOrderID1.toString()).isSetField(OrderID.FIELD));
|
assertEquals(new BigDecimal(200), new BigDecimal(history.getLatestExecutionReport(clOrderID1.toString()).getString(LastQty.FIELD))); assertTrue(history.getLatestExecutionReport(clOrderID1.toString()).isSetField(OrderID.FIELD));
|
public void testExecutionReportOrder() throws FieldNotFound { InternalID orderID1 = new InternalID("1"); InternalID clOrderID1 = new InternalID("2"); String execID = "3"; char execTransType = ExecTransType.STATUS; char execType = ExecType.PARTIAL_FILL; char ordStatus = OrdStatus.PARTIALLY_FILLED; char side = Side.SELL_SHORT; BigDecimal orderQty = new BigDecimal(1000); BigDecimal orderPrice = new BigDecimal(789); BigDecimal lastQty = new BigDecimal(100); BigDecimal lastPrice = new BigDecimal("12.3"); BigDecimal leavesQty = new BigDecimal(900); BigDecimal cumQty = new BigDecimal(100); BigDecimal avgPrice = new BigDecimal("12.3"); MSymbol symbol = new MSymbol("ASDF"); TransactTime ttField = new TransactTime(new Date(10000000)); TransactTime ttFieldLater = new TransactTime(new Date(10010000)); Message message1 = FIXMessageUtil.newExecutionReport(null, clOrderID1, execID, execTransType, execType, ordStatus, side, orderQty, orderPrice, lastQty, lastPrice, leavesQty, cumQty, avgPrice, symbol, null); message1.setField(ttField); lastQty = new BigDecimal(200); Message message2 = FIXMessageUtil.newExecutionReport(orderID1, clOrderID1, execID, execTransType, execType, ordStatus, side, orderQty, orderPrice, lastQty, lastPrice, leavesQty, cumQty, avgPrice, symbol, null); message2.setField(ttField); lastQty = new BigDecimal(300); Message message3 = FIXMessageUtil.newExecutionReport(orderID1, clOrderID1, execID, execTransType, execType, ordStatus, side, orderQty, orderPrice, lastQty, lastPrice, leavesQty, cumQty, avgPrice, symbol, null); message3.setField(ttFieldLater); FIXMessageHistory history = getMessageHistory(); history.addIncomingMessage(message1); history.addIncomingMessage(message2); assertEquals(new BigDecimal(200), new BigDecimal(history.getLatestExecutionReport(clOrderID1.toString()).getString(LastQty.FIELD))); assertEquals(orderID1.toString(), history.getLatestExecutionReport(clOrderID1.toString()).getString(OrderID.FIELD)); history = getMessageHistory(); history.addIncomingMessage(message2); history.addIncomingMessage(message1); assertEquals(new BigDecimal(100), new BigDecimal(history.getLatestExecutionReport(clOrderID1.toString()).getString(LastQty.FIELD))); assertTrue(!history.getLatestExecutionReport(clOrderID1.toString()).isSetField(OrderID.FIELD)); history = getMessageHistory(); history.addIncomingMessage(message1); history.addIncomingMessage(message2); history.addIncomingMessage(message3); assertEquals(new BigDecimal(300), new BigDecimal(history.getLatestExecutionReport(clOrderID1.toString()).getString(LastQty.FIELD))); assertEquals(orderID1.toString(), history.getLatestExecutionReport(clOrderID1.toString()).getString(OrderID.FIELD)); history = getMessageHistory(); history.addIncomingMessage(message3); history.addIncomingMessage(message2); history.addIncomingMessage(message1); assertEquals(new BigDecimal(300), new BigDecimal(history.getLatestExecutionReport(clOrderID1.toString()).getString(LastQty.FIELD))); assertEquals(orderID1.toString(), history.getLatestExecutionReport(clOrderID1.toString()).getString(OrderID.FIELD)); history = getMessageHistory(); history.addIncomingMessage(message3); history.addIncomingMessage(message1); history.addIncomingMessage(message2); assertEquals(new BigDecimal(300), new BigDecimal(history.getLatestExecutionReport(clOrderID1.toString()).getString(LastQty.FIELD))); assertEquals(orderID1.toString(), history.getLatestExecutionReport(clOrderID1.toString()).getString(OrderID.FIELD));}
|
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/48153406f5051ec752935487d4f294d7298761d8/FIXMessageHistoryTest.java/buggy/source/trunk/src/test/java/org/marketcetera/photon/model/FIXMessageHistoryTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3210,
4820,
2448,
1435,
1216,
2286,
2768,
202,
95,
202,
202,
3061,
734,
1353,
734,
21,
273,
394,
3186,
734,
2932,
21,
8863,
202,
202,
3061,
734,
927,
2448,
734,
21,
273,
394,
3186,
734,
2932,
22,
8863,
202,
202,
780,
1196,
734,
273,
315,
23,
14432,
202,
202,
3001,
1196,
1429,
559,
273,
3889,
1429,
559,
18,
8608,
31,
202,
202,
3001,
1196,
559,
273,
3889,
559,
18,
15055,
6365,
67,
29818,
31,
202,
202,
3001,
4642,
1482,
273,
2965,
72,
1482,
18,
15055,
45,
4685,
61,
67,
10474,
6687,
31,
202,
202,
3001,
4889,
273,
26248,
18,
1090,
4503,
67,
15993,
31,
202,
202,
29436,
1353,
53,
4098,
273,
394,
8150,
12,
18088,
1769,
202,
202,
29436,
1353,
5147,
273,
394,
8150,
12,
27,
6675,
1769,
202,
202,
29436,
1142,
53,
4098,
273,
394,
8150,
12,
6625,
1769,
202,
202,
29436,
1142,
5147,
273,
394,
8150,
2932,
2138,
18,
23,
8863,
202,
202,
29436,
15559,
53,
4098,
273,
394,
8150,
12,
29,
713,
1769,
202,
202,
29436,
14471,
53,
4098,
273,
394,
8150,
12,
6625,
1769,
202,
202,
29436,
11152,
5147,
273,
394,
8150,
2932,
2138,
18,
23,
8863,
202,
202,
3537,
3284,
3273,
273,
394,
490,
5335,
2932,
3033,
4577,
8863,
202,
202,
1429,
621,
950,
3574,
974,
273,
394,
2604,
621,
950,
12,
2704,
2167,
12,
21,
17877,
10019,
202,
202,
1429,
621,
950,
3574,
974,
20607,
273,
394,
2604,
621,
950,
12,
2704,
2167,
12,
6625,
23899,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3210,
4820,
2448,
1435,
1216,
2286,
2768,
202,
95,
202,
202,
3061,
734,
1353,
734,
21,
273,
394,
3186,
734,
2932,
21,
8863,
202,
202,
3061,
734,
927,
2448,
734,
21,
273,
394,
3186,
734,
2932,
22,
8863,
202,
202,
780,
1196,
734,
273,
315,
23,
14432,
202,
202,
3001,
1196,
1429,
559,
273,
3889,
1429,
559,
18,
8608,
31,
202,
202,
3001,
1196,
559,
273,
3889,
559,
18,
15055,
6365,
67,
29818,
31,
202,
202,
3001,
4642,
1482,
273,
2965,
72,
1482,
18,
15055,
45,
4685,
61,
67,
10474,
6687,
31,
202,
202,
3001,
4889,
273,
26248,
18,
1090,
4503,
67,
15993,
31,
202,
202,
29436,
1353,
53,
4098,
273,
394,
8150,
12,
2
] |
add(container.getFlags());
|
setDraft(container.isDraft()); setId(container.getId()); setLocalDraft(container.isLocalDraft()); setName(container.getName()); setRemoteInfo(container.getRemoteInfo()); setState(container.getState());
|
public ContainerCell(final Container container) { super(); setCreatedBy(container.getCreatedBy()); setCreatedOn(container.getCreatedOn()); add(container.getFlags()); setUniqueId(container.getUniqueId()); setName(container.getName()); setUpdatedBy(container.getUpdatedBy()); setUpdatedOn(container.getUpdatedOn()); setId(container.getId()); setLocalDraft(container.isSetLocalDraft()); setRemoteInfo(container.getRemoteInfo()); setState(container.getState()); this.closed = getState() == ArtifactState.CLOSED; this.imageCache = new MainCellImageCache(); this.keyHolder = contains(ArtifactFlag.KEY); this.popupItemFactory = PopupItemFactory.getInstance(); this.seen = contains(ArtifactFlag.SEEN); this.urgent = Boolean.FALSE; }
|
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/21d8a678891a1a6c5a50d08efb5fbecfbb7c1e4a/ContainerCell.java/clean/local/browser/src/main/java/com/thinkparity/browser/application/browser/display/renderer/tab/container/ContainerCell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4039,
4020,
12,
6385,
4039,
1478,
13,
288,
3639,
2240,
5621,
3639,
444,
6119,
858,
12,
3782,
18,
588,
6119,
858,
10663,
3639,
444,
6119,
1398,
12,
3782,
18,
588,
6119,
1398,
10663,
3639,
444,
12714,
12,
3782,
18,
291,
12714,
10663,
10446,
12,
3782,
18,
26321,
10663,
27970,
12714,
12,
3782,
18,
291,
2042,
12714,
10663,
6788,
12,
3782,
18,
17994,
10663,
444,
5169,
966,
12,
3782,
18,
588,
5169,
966,
10663,
12947,
12,
3782,
18,
588,
1119,
10663,
3639,
444,
24174,
12,
3782,
18,
588,
24174,
10663,
3639,
6788,
12,
3782,
18,
17994,
10663,
3639,
444,
7381,
858,
12,
3782,
18,
588,
7381,
858,
10663,
3639,
444,
7381,
1398,
12,
3782,
18,
588,
7381,
1398,
10663,
3639,
10446,
12,
3782,
18,
26321,
10663,
3639,
27970,
12714,
12,
3782,
18,
291,
694,
2042,
12714,
10663,
3639,
444,
5169,
966,
12,
3782,
18,
588,
5169,
966,
10663,
3639,
12947,
12,
3782,
18,
588,
1119,
10663,
3639,
333,
18,
12204,
273,
8997,
1435,
422,
14022,
1119,
18,
28475,
31,
3639,
333,
18,
2730,
1649,
273,
394,
12740,
4020,
2040,
1649,
5621,
3639,
333,
18,
856,
6064,
273,
1914,
12,
7581,
4678,
18,
3297,
1769,
3639,
333,
18,
16086,
1180,
1733,
273,
10264,
416,
1180,
1733,
18,
588,
1442,
5621,
3639,
333,
18,
15156,
273,
1914,
12,
7581,
4678,
18,
1090,
1157,
1769,
3639,
333,
18,
295,
75,
319,
273,
3411,
18,
21053,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4039,
4020,
12,
6385,
4039,
1478,
13,
288,
3639,
2240,
5621,
3639,
444,
6119,
858,
12,
3782,
18,
588,
6119,
858,
10663,
3639,
444,
6119,
1398,
12,
3782,
18,
588,
6119,
1398,
10663,
3639,
444,
12714,
12,
3782,
18,
291,
12714,
10663,
10446,
12,
3782,
18,
26321,
10663,
27970,
12714,
12,
3782,
18,
291,
2042,
12714,
10663,
6788,
12,
3782,
18,
17994,
10663,
444,
5169,
966,
12,
3782,
18,
588,
5169,
966,
10663,
12947,
12,
3782,
18,
588,
1119,
10663,
3639,
444,
24174,
12,
3782,
18,
588,
24174,
10663,
3639,
6788,
12,
3782,
18,
17994,
10663,
3639,
444,
7381,
858,
12,
3782,
18,
588,
7381,
858,
10663,
3639,
444,
7381,
1398,
12,
3782,
18,
588,
7381,
1398,
2
] |
public PatchReader(VirtualFile virtualFile) { CharSequence patchText = LoadTextUtil.loadText(virtualFile);
|
public PatchReader(VirtualFile virtualFile) throws IOException { byte[] patchContents = virtualFile.contentsToByteArray(); CharSequence patchText = LoadTextUtil.getTextByBinaryPresentation(patchContents, virtualFile);
|
public PatchReader(VirtualFile virtualFile) { CharSequence patchText = LoadTextUtil.loadText(virtualFile); myLines = LineTokenizer.tokenize(patchText, false); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3bfe702cd7de3355bb930a1b5a3d2bbce656ca8d/PatchReader.java/buggy/source/com/intellij/openapi/diff/impl/patch/PatchReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12042,
2514,
12,
6466,
812,
5024,
812,
13,
288,
565,
9710,
4729,
1528,
273,
4444,
1528,
1304,
18,
945,
1528,
12,
12384,
812,
1769,
565,
3399,
5763,
273,
5377,
10524,
18,
2316,
554,
12,
2272,
1528,
16,
629,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12042,
2514,
12,
6466,
812,
5024,
812,
13,
288,
565,
9710,
4729,
1528,
273,
4444,
1528,
1304,
18,
945,
1528,
12,
12384,
812,
1769,
565,
3399,
5763,
273,
5377,
10524,
18,
2316,
554,
12,
2272,
1528,
16,
629,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bigIntColumnType = "DECIMAL(15,0)";
|
bigIntColumnType = "DECIMAL(15,0)";
|
private void createTables() throws Exception { if (outputDirectory != null) { fileOutput = new FileWriter(new File(outputDirectory, "createTables.sql")); } String booleanColumnType = "SMALLINT"; if (sqlQuery.isPostgres()) { booleanColumnType = "BOOLEAN"; } else if (sqlQuery.isMySQL()) { booleanColumnType = "BIT"; } String bigIntColumnType = "BIGINT"; if (sqlQuery.isOracle()) { bigIntColumnType = "DECIMAL(15,0)"; } createTable("sales_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), }); createTable("sales_fact_1998", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), }); createTable("sales_fact_dec_1998", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), }); createTable("inventory_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", ""), new Column("warehouse_id", "INTEGER", ""), new Column("store_id", "INTEGER", ""), new Column("units_ordered", "INTEGER", ""), new Column("units_shipped", "INTEGER", ""), new Column("warehouse_sales", "DECIMAL(10,4)", ""), new Column("warehouse_cost", "DECIMAL(10,4)", ""), new Column("supply_time", "SMALLINT", ""), new Column("store_invoice", "DECIMAL(10,4)", ""), }); createTable("inventory_fact_1998", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", ""), new Column("warehouse_id", "INTEGER", ""), new Column("store_id", "INTEGER", ""), new Column("units_ordered", "INTEGER", ""), new Column("units_shipped", "INTEGER", ""), new Column("warehouse_sales", "DECIMAL(10,4)", ""), new Column("warehouse_cost", "DECIMAL(10,4)", ""), new Column("supply_time", "SMALLINT", ""), new Column("store_invoice", "DECIMAL(10,4)", ""), }); createTable("currency", new Column[] { new Column("currency_id", "INTEGER", "NOT NULL"), new Column("date", "DATE", "NOT NULL"), new Column("currency", "VARCHAR(30)", "NOT NULL"), new Column("conversion_ratio", "DECIMAL(10,4)", "NOT NULL"), }); createTable("account", new Column[] { new Column("account_id", "INTEGER", "NOT NULL"), new Column("account_parent", "INTEGER", ""), new Column("account_description", "VARCHAR(30)", ""), new Column("account_type", "VARCHAR(30)", "NOT NULL"), new Column("account_rollup", "VARCHAR(30)", "NOT NULL"), new Column("Custom_Members", "VARCHAR(255)", ""), }); createTable("category", new Column[] { new Column("category_id", "VARCHAR(30)", "NOT NULL"), new Column("category_parent", "VARCHAR(30)", ""), new Column("category_description", "VARCHAR(30)", "NOT NULL"), new Column("category_rollup", "VARCHAR(30)", ""), }); createTable("customer", new Column[] { new Column("customer_id", "INTEGER", "NOT NULL"), new Column("account_num", bigIntColumnType, "NOT NULL"), new Column("lname", "VARCHAR(30)", "NOT NULL"), new Column("fname", "VARCHAR(30)", "NOT NULL"), new Column("mi", "VARCHAR(30)", ""), new Column("address1", "VARCHAR(30)", ""), new Column("address2", "VARCHAR(30)", ""), new Column("address3", "VARCHAR(30)", ""), new Column("address4", "VARCHAR(30)", ""), new Column("city", "VARCHAR(30)", ""), new Column("state_province", "VARCHAR(30)", ""), new Column("postal_code", "VARCHAR(30)", "NOT NULL"), new Column("country", "VARCHAR(30)", "NOT NULL"), new Column("customer_region_id", "INTEGER", "NOT NULL"), new Column("phone1", "VARCHAR(30)", "NOT NULL"), new Column("phone2", "VARCHAR(30)", "NOT NULL"), new Column("birthdate", "DATE", "NOT NULL"), new Column("marital_status", "VARCHAR(30)", "NOT NULL"), new Column("yearly_income", "VARCHAR(30)", "NOT NULL"), new Column("gender", "VARCHAR(30)", "NOT NULL"), new Column("total_children", "SMALLINT", "NOT NULL"), new Column("num_children_at_home", "SMALLINT", "NOT NULL"), new Column("education", "VARCHAR(30)", "NOT NULL"), new Column("date_accnt_opened", "DATE", "NOT NULL"), new Column("member_card", "VARCHAR(30)", ""), new Column("occupation", "VARCHAR(30)", ""), new Column("houseowner", "VARCHAR(30)", ""), new Column("num_cars_owned", "INTEGER", ""), }); createTable("days", new Column[] { new Column("day", "INTEGER", "NOT NULL"), new Column("week_day", "VARCHAR(30)", "NOT NULL"), }); createTable("department", new Column[] { new Column("department_id", "INTEGER", "NOT NULL"), new Column("department_description", "VARCHAR(30)", "NOT NULL"), }); createTable("employee", new Column[] { new Column("employee_id", "INTEGER", "NOT NULL"), new Column("full_name", "VARCHAR(30)", "NOT NULL"), new Column("first_name", "VARCHAR(30)", "NOT NULL"), new Column("last_name", "VARCHAR(30)", "NOT NULL"), new Column("position_id", "INTEGER", ""), new Column("position_title", "VARCHAR(30)", ""), new Column("store_id", "INTEGER", "NOT NULL"), new Column("department_id", "INTEGER", "NOT NULL"), new Column("birth_date", "DATE", "NOT NULL"), new Column("hire_date", "TIMESTAMP", ""), new Column("end_date", "TIMESTAMP", ""), new Column("salary", "DECIMAL(10,4)", "NOT NULL"), new Column("supervisor_id", "INTEGER", ""), new Column("education_level", "VARCHAR(30)", "NOT NULL"), new Column("marital_status", "VARCHAR(30)", "NOT NULL"), new Column("gender", "VARCHAR(30)", "NOT NULL"), new Column("management_role", "VARCHAR(30)", ""), }); createTable("employee_closure", new Column[] { new Column("employee_id", "INTEGER", "NOT NULL"), new Column("supervisor_id", "INTEGER", "NOT NULL"), new Column("distance", "INTEGER", ""), }); createTable("expense_fact", new Column[] { new Column("store_id", "INTEGER", "NOT NULL"), new Column("account_id", "INTEGER", "NOT NULL"), new Column("exp_date", "TIMESTAMP", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("category_id", "VARCHAR(30)", "NOT NULL"), new Column("currency_id", "INTEGER", "NOT NULL"), new Column("amount", "DECIMAL(10,4)", "NOT NULL"), }); createTable("position", new Column[] { new Column("position_id", "INTEGER", "NOT NULL"), new Column("position_title", "VARCHAR(30)", "NOT NULL"), new Column("pay_type", "VARCHAR(30)", "NOT NULL"), new Column("min_scale", "DECIMAL(10,4)", "NOT NULL"), new Column("max_scale", "DECIMAL(10,4)", "NOT NULL"), new Column("management_role", "VARCHAR(30)", "NOT NULL"), }); createTable("product", new Column[] { new Column("product_class_id", "INTEGER", "NOT NULL"), new Column("product_id", "INTEGER", "NOT NULL"), new Column("brand_name", "VARCHAR(60)", ""), new Column("product_name", "VARCHAR(60)", "NOT NULL"), new Column("SKU", bigIntColumnType, "NOT NULL"), new Column("SRP", "DECIMAL(10,4)", ""), new Column("gross_weight", "REAL", ""), new Column("net_weight", "REAL", ""), new Column("recyclable_package", booleanColumnType, ""), new Column("low_fat", booleanColumnType, ""), new Column("units_per_case", "SMALLINT", ""), new Column("cases_per_pallet", "SMALLINT", ""), new Column("shelf_width", "REAL", ""), new Column("shelf_height", "REAL", ""), new Column("shelf_depth", "REAL", ""), }); createTable("product_class", new Column[] { new Column("product_class_id", "INTEGER", "NOT NULL"), new Column("product_subcategory", "VARCHAR(30)", ""), new Column("product_category", "VARCHAR(30)", ""), new Column("product_department", "VARCHAR(30)", ""), new Column("product_family", "VARCHAR(30)", ""), }); createTable("promotion", new Column[] { new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("promotion_district_id", "INTEGER", ""), new Column("promotion_name", "VARCHAR(30)", ""), new Column("media_type", "VARCHAR(30)", ""), new Column("cost", "DECIMAL(10,4)", ""), new Column("start_date", "TIMESTAMP", ""), new Column("end_date", "TIMESTAMP", ""), }); createTable("region", new Column[] { new Column("region_id", "INTEGER", "NOT NULL"), new Column("sales_city", "VARCHAR(30)", ""), new Column("sales_state_province", "VARCHAR(30)", ""), new Column("sales_district", "VARCHAR(30)", ""), new Column("sales_region", "VARCHAR(30)", ""), new Column("sales_country", "VARCHAR(30)", ""), new Column("sales_district_id", "INTEGER", ""), }); createTable("reserve_employee", new Column[] { new Column("employee_id", "INTEGER", "NOT NULL"), new Column("full_name", "VARCHAR(30)", "NOT NULL"), new Column("first_name", "VARCHAR(30)", "NOT NULL"), new Column("last_name", "VARCHAR(30)", "NOT NULL"), new Column("position_id", "INTEGER", ""), new Column("position_title", "VARCHAR(30)", ""), new Column("store_id", "INTEGER", "NOT NULL"), new Column("department_id", "INTEGER", "NOT NULL"), new Column("birth_date", "TIMESTAMP", "NOT NULL"), new Column("hire_date", "TIMESTAMP", ""), new Column("end_date", "TIMESTAMP", ""), new Column("salary", "DECIMAL(10,4)", "NOT NULL"), new Column("supervisor_id", "INTEGER", ""), new Column("education_level", "VARCHAR(30)", "NOT NULL"), new Column("marital_status", "VARCHAR(30)", "NOT NULL"), new Column("gender", "VARCHAR(30)", "NOT NULL"), }); createTable("salary", new Column[] { new Column("pay_date", "TIMESTAMP", "NOT NULL"), new Column("employee_id", "INTEGER", "NOT NULL"), new Column("department_id", "INTEGER", "NOT NULL"), new Column("currency_id", "INTEGER", "NOT NULL"), new Column("salary_paid", "DECIMAL(10,4)", "NOT NULL"), new Column("overtime_paid", "DECIMAL(10,4)", "NOT NULL"), new Column("vacation_accrued", "REAL", "NOT NULL"), new Column("vacation_used", "REAL", "NOT NULL"), }); createTable("store", new Column[] { new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_type", "VARCHAR(30)", ""), new Column("region_id", "INTEGER", ""), new Column("store_name", "VARCHAR(30)", ""), new Column("store_number", "INTEGER", ""), new Column("store_street_address", "VARCHAR(30)", ""), new Column("store_city", "VARCHAR(30)", ""), new Column("store_state", "VARCHAR(30)", ""), new Column("store_postal_code", "VARCHAR(30)", ""), new Column("store_country", "VARCHAR(30)", ""), new Column("store_manager", "VARCHAR(30)", ""), new Column("store_phone", "VARCHAR(30)", ""), new Column("store_fax", "VARCHAR(30)", ""), new Column("first_opened_date", "TIMESTAMP", ""), new Column("last_remodel_date", "TIMESTAMP", ""), new Column("store_sqft", "INTEGER", ""), new Column("grocery_sqft", "INTEGER", ""), new Column("frozen_sqft", "INTEGER", ""), new Column("meat_sqft", "INTEGER", ""), new Column("coffee_bar", booleanColumnType, ""), new Column("video_store", booleanColumnType, ""), new Column("salad_bar", booleanColumnType, ""), new Column("prepared_food", booleanColumnType, ""), new Column("florist", booleanColumnType, ""), }); createTable("store_ragged", new Column[] { new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_type", "VARCHAR(30)", ""), new Column("region_id", "INTEGER", ""), new Column("store_name", "VARCHAR(30)", ""), new Column("store_number", "INTEGER", ""), new Column("store_street_address", "VARCHAR(30)", ""), new Column("store_city", "VARCHAR(30)", ""), new Column("store_state", "VARCHAR(30)", ""), new Column("store_postal_code", "VARCHAR(30)", ""), new Column("store_country", "VARCHAR(30)", ""), new Column("store_manager", "VARCHAR(30)", ""), new Column("store_phone", "VARCHAR(30)", ""), new Column("store_fax", "VARCHAR(30)", ""), new Column("first_opened_date", "TIMESTAMP", ""), new Column("last_remodel_date", "TIMESTAMP", ""), new Column("store_sqft", "INTEGER", ""), new Column("grocery_sqft", "INTEGER", ""), new Column("frozen_sqft", "INTEGER", ""), new Column("meat_sqft", "INTEGER", ""), new Column("coffee_bar", booleanColumnType, ""), new Column("video_store", booleanColumnType, ""), new Column("salad_bar", booleanColumnType, ""), new Column("prepared_food", booleanColumnType, ""), new Column("florist", booleanColumnType, ""), }); createTable("time_by_day", new Column[] { new Column("time_id", "INTEGER", "NOT NULL"), new Column("the_date", "TIMESTAMP", ""), new Column("the_day", "VARCHAR(30)", ""), new Column("the_month", "VARCHAR(30)", ""), new Column("the_year", "SMALLINT", ""), new Column("day_of_month", "SMALLINT", ""), new Column("week_of_year", "INTEGER", ""), new Column("month_of_year", "SMALLINT", ""), new Column("quarter", "VARCHAR(30)", ""), new Column("fiscal_period", "VARCHAR(30)", ""), }); createTable("warehouse", new Column[] { new Column("warehouse_id", "INTEGER", "NOT NULL"), new Column("warehouse_class_id", "INTEGER", ""), new Column("stores_id", "INTEGER", ""), new Column("warehouse_name", "VARCHAR(60)", ""), new Column("wa_address1", "VARCHAR(30)", ""), new Column("wa_address2", "VARCHAR(30)", ""), new Column("wa_address3", "VARCHAR(30)", ""), new Column("wa_address4", "VARCHAR(30)", ""), new Column("warehouse_city", "VARCHAR(30)", ""), new Column("warehouse_state_province", "VARCHAR(30)", ""), new Column("warehouse_postal_code", "VARCHAR(30)", ""), new Column("warehouse_country", "VARCHAR(30)", ""), new Column("warehouse_owner_name", "VARCHAR(30)", ""), new Column("warehouse_phone", "VARCHAR(30)", ""), new Column("warehouse_fax", "VARCHAR(30)", ""), }); createTable("warehouse_class", new Column[] { new Column("warehouse_class_id", "INTEGER", "NOT NULL"), new Column("description", "VARCHAR(30)", ""), }); if (outputDirectory != null) { fileOutput.close(); } }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/MondrianFoodMartLoader.java/clean/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
6905,
1435,
1216,
1185,
225,
288,
3639,
309,
261,
2844,
2853,
480,
446,
13,
288,
5411,
585,
1447,
273,
394,
24639,
12,
2704,
1387,
12,
2844,
2853,
16,
315,
2640,
6905,
18,
4669,
7923,
1769,
3639,
289,
3639,
514,
1250,
28149,
273,
315,
23882,
3217,
14432,
3639,
309,
261,
4669,
1138,
18,
291,
3349,
14107,
10756,
288,
5411,
1250,
28149,
273,
315,
17900,
14432,
3639,
289,
469,
309,
261,
4669,
1138,
18,
291,
28723,
10756,
288,
5411,
1250,
28149,
273,
315,
15650,
14432,
3639,
289,
7734,
514,
5446,
1702,
28149,
273,
315,
19044,
3217,
14432,
3639,
309,
261,
4669,
1138,
18,
291,
23601,
10756,
288,
540,
202,
14002,
1702,
28149,
273,
315,
23816,
12,
3600,
16,
20,
2225,
31,
3639,
289,
3639,
19565,
2932,
87,
5408,
67,
3493,
67,
19818,
27,
3113,
394,
4753,
8526,
288,
1850,
394,
4753,
2932,
5896,
67,
350,
3113,
315,
14217,
3113,
315,
4400,
3206,
6,
3631,
1850,
394,
4753,
2932,
957,
67,
350,
3113,
315,
14217,
3113,
315,
4400,
3206,
6,
3631,
1850,
394,
4753,
2932,
10061,
67,
350,
3113,
315,
14217,
3113,
315,
4400,
3206,
6,
3631,
1850,
394,
4753,
2932,
17401,
8240,
67,
350,
3113,
315,
14217,
3113,
315,
4400,
3206,
6,
3631,
1850,
394,
4753,
2932,
2233,
67,
350,
3113,
315,
14217,
3113,
315,
4400,
3206,
6,
3631,
1850,
394,
4753,
2932,
2233,
67,
87,
5408,
3113,
315,
23816,
12,
2163,
16,
24,
2225,
16,
315,
4400,
3206,
6,
3631,
1850,
394,
4753,
2932,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
6905,
1435,
1216,
1185,
225,
288,
3639,
309,
261,
2844,
2853,
480,
446,
13,
288,
5411,
585,
1447,
273,
394,
24639,
12,
2704,
1387,
12,
2844,
2853,
16,
315,
2640,
6905,
18,
4669,
7923,
1769,
3639,
289,
3639,
514,
1250,
28149,
273,
315,
23882,
3217,
14432,
3639,
309,
261,
4669,
1138,
18,
291,
3349,
14107,
10756,
288,
5411,
1250,
28149,
273,
315,
17900,
14432,
3639,
289,
469,
309,
261,
4669,
1138,
18,
291,
28723,
10756,
288,
5411,
1250,
28149,
273,
315,
15650,
14432,
3639,
289,
7734,
514,
5446,
1702,
28149,
273,
315,
19044,
3217,
14432,
3639,
309,
261,
4669,
1138,
18,
291,
23601,
10756,
288,
540,
202,
14002,
1702,
28149,
273,
315,
23816,
12,
3600,
2
] |
simpleLinguist = new SimpleLinguist
|
simpleLinguist = new SimpleDigitLinguist
|
public SimpleSearchTest(String propertiesFile) throws Exception { String pwd = System.getProperty("user.dir"); SphinxProperties.initContext (context, new URL ("file://" + pwd + File.separatorChar + propertiesFile)); simpleLinguist = new SimpleLinguist (context, AcousticModel.getAcousticModel(context)); acousticScorer = new SimpleAcousticScorer(); pruner = new SimplePruner(); searchManager = new BreadthFirstSearchManager( context, simpleLinguist, acousticScorer, pruner); dumpGrammar(); dumpSentenceHMM(); }
|
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/5dc026654c7254609c477ecaa6cc7a5d45e7c911/SimpleSearchTest.java/clean/sphinx4/tests/search/SimpleSearchTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4477,
2979,
4709,
12,
780,
1790,
812,
13,
1216,
1185,
288,
7734,
514,
14720,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
8863,
3639,
348,
15922,
2297,
18,
2738,
1042,
5411,
261,
2472,
16,
394,
1976,
2398,
7566,
768,
14334,
397,
14720,
397,
1387,
18,
11287,
2156,
397,
1790,
812,
10019,
7734,
4143,
48,
14344,
376,
273,
394,
4477,
10907,
48,
14344,
376,
5411,
261,
2472,
16,
432,
2894,
641,
335,
1488,
18,
588,
37,
2894,
641,
335,
1488,
12,
2472,
10019,
202,
24363,
641,
335,
1541,
8922,
273,
394,
4477,
37,
2894,
641,
335,
1541,
8922,
5621,
202,
683,
29640,
273,
394,
4477,
2050,
29640,
5621,
202,
3072,
1318,
273,
394,
605,
25254,
3759,
2979,
1318,
12,
202,
202,
2472,
16,
4143,
48,
14344,
376,
16,
1721,
83,
641,
335,
1541,
8922,
16,
846,
29640,
1769,
202,
8481,
18576,
5621,
202,
8481,
17923,
44,
8206,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4477,
2979,
4709,
12,
780,
1790,
812,
13,
1216,
1185,
288,
7734,
514,
14720,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
8863,
3639,
348,
15922,
2297,
18,
2738,
1042,
5411,
261,
2472,
16,
394,
1976,
2398,
7566,
768,
14334,
397,
14720,
397,
1387,
18,
11287,
2156,
397,
1790,
812,
10019,
7734,
4143,
48,
14344,
376,
273,
394,
4477,
10907,
48,
14344,
376,
5411,
261,
2472,
16,
432,
2894,
641,
335,
1488,
18,
588,
37,
2894,
641,
335,
1488,
12,
2472,
10019,
202,
24363,
641,
335,
1541,
8922,
273,
394,
4477,
37,
2894,
641,
335,
1541,
8922,
5621,
202,
683,
29640,
273,
394,
4477,
2050,
29640,
5621,
202,
3072,
1318,
273,
394,
605,
25254,
3759,
2979,
2
] |
public void setInDefaultEventSet(boolean inDefaultEventSet) {
|
public void setInDefaultEventSet(boolean inDefaultEventSet) {
|
public void setInDefaultEventSet(boolean inDefaultEventSet) { this.inDefaultEventSet = inDefaultEventSet; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/fd7e81b5c6d5963539719dfde9d197c68890c201/EventSetDescriptor.java/buggy/core/src/classpath/java/java/beans/EventSetDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
382,
1868,
1133,
694,
12,
6494,
316,
1868,
1133,
694,
13,
288,
202,
202,
2211,
18,
267,
1868,
1133,
694,
273,
316,
1868,
1133,
694,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
382,
1868,
1133,
694,
12,
6494,
316,
1868,
1133,
694,
13,
288,
202,
202,
2211,
18,
267,
1868,
1133,
694,
273,
316,
1868,
1133,
694,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
BundleDescription[] bundles = TargetPlatform.getState().getBundles(); for (int i = 0; i < bundles.length; i++) { String id = bundles[i].getSymbolicName(); if (!target.containsPlugin(id)) { map.put(id, bundles[i]);
|
IPluginModelBase[] models = PDECore.getDefault().getModelManager().getExternalModels(); for (int i = 0; i < models.length; i++) { if (models[i] instanceof ExternalPluginModelBase) { BundleDescription desc = ((ExternalPluginModelBase)models[i]).getBundleDescription(); String id = desc.getSymbolicName(); if (!target.containsPlugin(id)) map.put(id, desc);
|
private BundleDescription[] getBundles() { TreeMap map = new TreeMap(); ITarget target = getTarget(); BundleDescription[] bundles = TargetPlatform.getState().getBundles(); for (int i = 0; i < bundles.length; i++) { String id = bundles[i].getSymbolicName(); if (!target.containsPlugin(id)) { map.put(id, bundles[i]); } } return (BundleDescription[])map.values().toArray(new BundleDescription[map.size()]); }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/aaaecd6931718c1ac4ccac526f9a9d634995d977/ContentSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/target/ContentSection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
8539,
3291,
8526,
2882,
7663,
1435,
288,
202,
202,
2471,
863,
852,
273,
394,
16381,
5621,
202,
202,
1285,
826,
1018,
273,
8571,
5621,
202,
202,
3405,
3291,
8526,
11408,
273,
5916,
8201,
18,
588,
1119,
7675,
588,
16151,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
11408,
18,
2469,
31,
277,
27245,
288,
1082,
202,
780,
612,
273,
11408,
63,
77,
8009,
588,
10876,
12164,
461,
5621,
1082,
202,
430,
16051,
3299,
18,
12298,
3773,
12,
350,
3719,
288,
9506,
202,
1458,
18,
458,
12,
350,
16,
11408,
63,
77,
19226,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
261,
3405,
3291,
63,
5717,
1458,
18,
2372,
7675,
31447,
12,
2704,
8539,
3291,
63,
1458,
18,
1467,
1435,
19226,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1152,
8539,
3291,
8526,
2882,
7663,
1435,
288,
202,
202,
2471,
863,
852,
273,
394,
16381,
5621,
202,
202,
1285,
826,
1018,
273,
8571,
5621,
202,
202,
3405,
3291,
8526,
11408,
273,
5916,
8201,
18,
588,
1119,
7675,
588,
16151,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
11408,
18,
2469,
31,
277,
27245,
288,
1082,
202,
780,
612,
273,
11408,
63,
77,
8009,
588,
10876,
12164,
461,
5621,
1082,
202,
430,
16051,
3299,
18,
12298,
3773,
12,
350,
3719,
288,
9506,
202,
1458,
18,
458,
12,
350,
16,
11408,
63,
77,
19226,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
261,
3405,
3291,
63,
5717,
1458,
18,
2372,
7675,
31447,
12,
2
] |
ResultSet rs = st.executeQuery("select * from basic where b>1");
|
ResultSet rs = st.executeQuery("select * from basic2 where b>1");
|
public void run() { try { System.out.println("Thread 2 running..."); // For large inserts, a PreparedStatement is more efficient, because it // supports the idea of precompiling the SQL statement, and to store // directly, a Java object into any column. PostgreSQL doesnt support // precompiling, but does support setting a column to the value of a // Java object (like Date, String, etc). // // Also, this is the only way of writing dates in a datestyle independent // manner. (DateStyles are PostgreSQL's way of handling different methods // of representing dates in the Date data type.) PreparedStatement ps = db.prepareStatement("insert into basic values (?,?)"); for(int i=2;i<200;i++) { ps.setInt(1,4); // "column a" = 5 ps.setInt(2,i); // "column b" = i ps.executeUpdate(); // executeUpdate because insert returns no data if((i%50)==0) DriverManager.println("Thread 2 done "+i+" inserts"); } ps.close(); // Always close when we are done with it // Finally perform a query on the table DriverManager.println("Thread 2 performing a query"); ResultSet rs = st.executeQuery("select * from basic where b>1"); int cnt=0; if(rs!=null) { // First find out the column numbers. // // It's best to do this here, as calling the methods with the column // numbers actually performs this call each time they are called. This // really speeds things up on large queries. // int col_a = rs.findColumn("a"); int col_b = rs.findColumn("b"); // Now we run through the result set, printing out the result. // Again, we must call .next() before attempting to read any results while(rs.next()) { int a = rs.getInt(col_a); // This shows how to get the value by name int b = rs.getInt(col_b); // This shows how to get the value by column //System.out.println(" a="+a+" b="+b); cnt++; } rs.close(); // again, you must close the result when done } DriverManager.println("Thread 2 read "+cnt+" rows"); // The last thing to do is to drop the table. This is done in the // cleanup() method. System.out.println("Thread 2 finished"); } catch(SQLException se) { System.err.println("Thread 2: "+se.toString()); se.printStackTrace(); System.exit(1); } }
|
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/86b8bd0748bd2211905fcc06780e91b96182db87/threadsafe.java/clean/src/interfaces/jdbc/example/threadsafe.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
1377,
775,
288,
202,
3163,
18,
659,
18,
8222,
2932,
3830,
576,
3549,
7070,
1769,
202,
202,
759,
2457,
7876,
15607,
16,
279,
16913,
353,
1898,
14382,
16,
2724,
518,
202,
759,
6146,
326,
21463,
434,
675,
2919,
4973,
326,
3063,
3021,
16,
471,
358,
1707,
202,
759,
5122,
16,
279,
5110,
733,
1368,
1281,
1057,
18,
26447,
31272,
2865,
202,
759,
675,
2919,
4973,
16,
1496,
1552,
2865,
3637,
279,
1057,
358,
326,
460,
434,
279,
202,
759,
5110,
733,
261,
5625,
2167,
16,
514,
16,
5527,
2934,
202,
759,
202,
759,
8080,
16,
333,
353,
326,
1338,
4031,
434,
7410,
7811,
316,
279,
1150,
19706,
14807,
202,
759,
21296,
18,
261,
1626,
9725,
854,
26447,
1807,
4031,
434,
5057,
3775,
2590,
202,
759,
434,
5123,
7811,
316,
326,
2167,
501,
618,
12998,
202,
29325,
4250,
273,
1319,
18,
9366,
3406,
2932,
6387,
1368,
5337,
924,
13590,
27166,
2225,
1769,
202,
1884,
12,
474,
277,
33,
22,
31,
77,
32,
6976,
31,
77,
27245,
288,
202,
225,
4250,
18,
542,
1702,
12,
21,
16,
24,
1769,
202,
202,
759,
315,
2827,
279,
6,
273,
1381,
202,
225,
4250,
18,
542,
1702,
12,
22,
16,
77,
1769,
202,
202,
759,
315,
2827,
324,
6,
273,
277,
202,
225,
4250,
18,
8837,
1891,
5621,
202,
759,
17521,
2724,
2243,
1135,
1158,
501,
202,
225,
309,
12443,
77,
9,
3361,
13,
631,
20,
13,
202,
565,
9396,
1318,
18,
8222,
2932,
3830,
576,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
1377,
775,
288,
202,
3163,
18,
659,
18,
8222,
2932,
3830,
576,
3549,
7070,
1769,
202,
202,
759,
2457,
7876,
15607,
16,
279,
16913,
353,
1898,
14382,
16,
2724,
518,
202,
759,
6146,
326,
21463,
434,
675,
2919,
4973,
326,
3063,
3021,
16,
471,
358,
1707,
202,
759,
5122,
16,
279,
5110,
733,
1368,
1281,
1057,
18,
26447,
31272,
2865,
202,
759,
675,
2919,
4973,
16,
1496,
1552,
2865,
3637,
279,
1057,
358,
326,
460,
434,
279,
202,
759,
5110,
733,
261,
5625,
2167,
16,
514,
16,
5527,
2934,
202,
759,
202,
759,
8080,
16,
333,
353,
326,
1338,
4031,
434,
7410,
7811,
316,
279,
1150,
19706,
14807,
202,
759,
21296,
18,
261,
2
] |
return "null"; }
|
return "null"; }
|
public String toString() { return "null"; }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/RolapUtil.java/buggy/src/main/mondrian/rolap/RolapUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
1762,
1435,
288,
1082,
202,
2463,
315,
2011,
14432,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
1762,
1435,
288,
1082,
202,
2463,
315,
2011,
14432,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (ev.getItemSelectable().equals(weaponList)) { displaySelected(); } else if (ev.getItemSelectable().equals(m_chAmmo)) {
|
if (ev.getItemSelectable().equals(m_chAmmo)) {
|
public void itemStateChanged(ItemEvent ev) { if (ev.getItemSelectable().equals(weaponList)) { displaySelected(); } else if (ev.getItemSelectable().equals(m_chAmmo)) { int n = weaponList.getSelectedIndex(); if (n == -1) { return; } Mounted mWeap = entity.getWeaponList().get(n); Mounted mAmmo = vAmmo.get(m_chAmmo.getSelectedIndex()); entity.loadWeapon(mWeap, mAmmo); // Update the range display to account for the weapon's loaded ammo. AmmoType atype = (AmmoType) mAmmo.getType(); updateRangeDisplayForAmmo(atype); // When in the Firing Phase, update the targeting information. // TODO: make this an accessor function instead of a member access. if (clientgui.curPanel instanceof FiringDisplay) { ((FiringDisplay) clientgui.curPanel).updateTarget(); } else if (clientgui.curPanel instanceof TargetingPhaseDisplay) { ((TargetingPhaseDisplay) clientgui.curPanel).updateTarget(); } // Alert the server of the update. clientgui.getClient().sendAmmoChange(entity.getId(), entity.getEquipmentNum(mWeap), entity.getEquipmentNum(mAmmo)); } }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/19df5d1a31a5f746c77c9db5e8ad96ed6d25cced/MechDisplay.java/clean/megamek/src/megamek/client/ui/swing/MechDisplay.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
761,
1119,
5033,
12,
1180,
1133,
2113,
13,
288,
5411,
309,
261,
14965,
18,
588,
1180,
31544,
7675,
14963,
12,
1814,
28629,
682,
3719,
288,
7734,
2562,
7416,
5621,
5411,
289,
469,
309,
261,
14965,
18,
588,
1180,
31544,
7675,
14963,
12,
81,
67,
343,
37,
7020,
83,
3719,
288,
7734,
509,
290,
273,
732,
28629,
682,
18,
588,
7416,
1016,
5621,
7734,
309,
261,
82,
422,
300,
21,
13,
288,
10792,
327,
31,
7734,
289,
7734,
13076,
329,
312,
3218,
438,
273,
1522,
18,
588,
3218,
28629,
682,
7675,
588,
12,
82,
1769,
7734,
13076,
329,
312,
37,
7020,
83,
273,
331,
37,
7020,
83,
18,
588,
12,
81,
67,
343,
37,
7020,
83,
18,
588,
7416,
1016,
10663,
7734,
1522,
18,
945,
3218,
28629,
12,
81,
3218,
438,
16,
312,
37,
7020,
83,
1769,
7734,
368,
2315,
326,
1048,
2562,
358,
2236,
364,
326,
732,
28629,
1807,
4203,
2125,
8683,
18,
7734,
3986,
8683,
559,
30965,
273,
261,
37,
7020,
83,
559,
13,
312,
37,
7020,
83,
18,
588,
559,
5621,
7734,
1089,
2655,
4236,
1290,
37,
7020,
83,
12,
6361,
1769,
7734,
368,
5203,
316,
326,
478,
11256,
19459,
16,
1089,
326,
31490,
1779,
18,
7734,
368,
2660,
30,
1221,
333,
392,
9789,
445,
3560,
434,
279,
3140,
2006,
18,
7734,
309,
261,
2625,
20292,
18,
1397,
5537,
1276,
478,
11256,
4236,
13,
288,
10792,
14015,
42,
11256,
4236,
13,
1004,
20292,
18,
1397,
5537,
2934,
2725,
2326,
5621,
7734,
289,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
761,
1119,
5033,
12,
1180,
1133,
2113,
13,
288,
5411,
309,
261,
14965,
18,
588,
1180,
31544,
7675,
14963,
12,
1814,
28629,
682,
3719,
288,
7734,
2562,
7416,
5621,
5411,
289,
469,
309,
261,
14965,
18,
588,
1180,
31544,
7675,
14963,
12,
81,
67,
343,
37,
7020,
83,
3719,
288,
7734,
509,
290,
273,
732,
28629,
682,
18,
588,
7416,
1016,
5621,
7734,
309,
261,
82,
422,
300,
21,
13,
288,
10792,
327,
31,
7734,
289,
7734,
13076,
329,
312,
3218,
438,
273,
1522,
18,
588,
3218,
28629,
682,
7675,
588,
12,
82,
1769,
7734,
13076,
329,
312,
37,
7020,
83,
273,
331,
37,
7020,
83,
18,
588,
12,
81,
67,
343,
37,
7020,
83,
18,
2
] |
TableSorter defaultSorter = null;
|
TableComparator defaultSorter = null;
|
private TableSorter findSorterInChildren(String typeName, MarkerType type) { MarkerType[] types = type.getAllSubTypes(); TableSorter defaultSorter = null; if (hierarchyOrders.containsKey(type.getId())) { defaultSorter = (TableSorter) hierarchyOrders.get(type.getId()); } for (int i = 0; i < types.length; i++) { MarkerType[] subtypes = types[i].getAllSubTypes(); for (int j = 0; j < subtypes.length; j++) { TableSorter sorter = findSorterInChildren(typeName, subtypes[j]); if (sorter != null) { return sorter; } } } return defaultSorter; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/b34bac03ab70048a4b238ebb6ad2383d1ae284b3/MarkerSupportRegistry.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSupportRegistry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3555,
24952,
1104,
24952,
382,
4212,
12,
780,
8173,
16,
14742,
559,
618,
13,
288,
202,
202,
7078,
559,
8526,
1953,
273,
618,
18,
588,
1595,
1676,
2016,
5621,
202,
202,
1388,
24952,
805,
24952,
273,
446,
31,
202,
202,
430,
261,
17937,
16528,
18,
12298,
653,
12,
723,
18,
26321,
1435,
3719,
288,
1082,
202,
1886,
24952,
273,
261,
1388,
24952,
13,
9360,
16528,
18,
588,
12,
723,
18,
26321,
10663,
202,
202,
97,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
1082,
202,
7078,
559,
8526,
720,
2352,
273,
1953,
63,
77,
8009,
588,
1595,
1676,
2016,
5621,
1082,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
720,
2352,
18,
2469,
31,
525,
27245,
288,
9506,
202,
1388,
24952,
19867,
273,
1104,
24952,
382,
4212,
12,
723,
461,
16,
720,
2352,
63,
78,
19226,
9506,
202,
430,
261,
2467,
387,
480,
446,
13,
288,
6862,
202,
2463,
19867,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
805,
24952,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1152,
3555,
24952,
1104,
24952,
382,
4212,
12,
780,
8173,
16,
14742,
559,
618,
13,
288,
202,
202,
7078,
559,
8526,
1953,
273,
618,
18,
588,
1595,
1676,
2016,
5621,
202,
202,
1388,
24952,
805,
24952,
273,
446,
31,
202,
202,
430,
261,
17937,
16528,
18,
12298,
653,
12,
723,
18,
26321,
1435,
3719,
288,
1082,
202,
1886,
24952,
273,
261,
1388,
24952,
13,
9360,
16528,
18,
588,
12,
723,
18,
26321,
10663,
202,
202,
97,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
1082,
202,
7078,
559,
8526,
720,
2352,
273,
1953,
63,
77,
8009,
588,
1595,
1676,
2016,
5621,
1082,
202,
1884,
261,
474,
525,
2
] |
consoleSplitterPropertyChange(evt); }
|
consoleSplitterPropertyChange(evt); }
|
public void propertyChange(java.beans.PropertyChangeEvent evt) { consoleSplitterPropertyChange(evt); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1272,
3043,
12,
6290,
18,
2196,
634,
18,
1396,
20930,
6324,
13,
288,
7734,
2983,
26738,
1396,
3043,
12,
73,
11734,
1769,
5411,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1272,
3043,
12,
6290,
18,
2196,
634,
18,
1396,
20930,
6324,
13,
288,
7734,
2983,
26738,
1396,
3043,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(startedBeforeDisconnect.get()) {
|
if(startOnConnect.get()) {
|
public void connect() throws Exception { if (connected.get()) { return; } if (connecting.commit(false, true)) { connectionStrategy.connect(this); logger.info("Connected: " + getConnectionDescription()); return; } try { doConnect(); fireNotification(new ConnectionNotification(this, getConnectEventId(), ConnectionNotification.CONNECTION_CONNECTED)); } catch (Exception e) { fireNotification(new ConnectionNotification(this, getConnectEventId(), ConnectionNotification.CONNECTION_FAILED)); if (e instanceof ConnectException) { throw (ConnectException) e; } else { throw new ConnectException(e, this); } } connected.set(true); connecting.set(false); if(startedBeforeDisconnect.get()) { startConnector(); } }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/183f5fd8794749be7136aa5b5e301b1bd118f7a7/AbstractConnector.java/buggy/src/java/org/mule/providers/AbstractConnector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3077,
1435,
1216,
1185,
288,
3639,
309,
261,
8537,
18,
588,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
309,
261,
3612,
310,
18,
7371,
12,
5743,
16,
638,
3719,
288,
5411,
1459,
4525,
18,
3612,
12,
2211,
1769,
5411,
1194,
18,
1376,
2932,
8932,
30,
315,
397,
6742,
3291,
10663,
5411,
327,
31,
3639,
289,
3639,
775,
288,
5411,
741,
5215,
5621,
5411,
4452,
4386,
12,
2704,
4050,
4386,
12,
2211,
16,
336,
5215,
21973,
9334,
4050,
4386,
18,
15461,
67,
29011,
10019,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
4452,
4386,
12,
2704,
4050,
4386,
12,
2211,
16,
336,
5215,
21973,
9334,
4050,
4386,
18,
15461,
67,
11965,
10019,
5411,
309,
261,
73,
1276,
8289,
503,
13,
288,
7734,
604,
261,
5215,
503,
13,
425,
31,
5411,
289,
469,
288,
7734,
604,
394,
8289,
503,
12,
73,
16,
333,
1769,
5411,
289,
3639,
289,
3639,
5840,
18,
542,
12,
3767,
1769,
3639,
14244,
18,
542,
12,
5743,
1769,
3639,
309,
12,
1937,
1398,
5215,
18,
588,
10756,
288,
5411,
787,
7487,
5621,
3639,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3077,
1435,
1216,
1185,
288,
3639,
309,
261,
8537,
18,
588,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
309,
261,
3612,
310,
18,
7371,
12,
5743,
16,
638,
3719,
288,
5411,
1459,
4525,
18,
3612,
12,
2211,
1769,
5411,
1194,
18,
1376,
2932,
8932,
30,
315,
397,
6742,
3291,
10663,
5411,
327,
31,
3639,
289,
3639,
775,
288,
5411,
741,
5215,
5621,
5411,
4452,
4386,
12,
2704,
4050,
4386,
12,
2211,
16,
336,
5215,
21973,
9334,
4050,
4386,
18,
15461,
67,
29011,
10019,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
4452,
4386,
12,
2704,
4050,
4386,
12,
2211,
16,
336,
5215,
21973,
9334,
4050,
4386,
18,
15461,
67,
11965,
10019,
5411,
309,
261,
2
] |
setAccesskey((String) evalAttr("accessKey", getAccesskey(),
|
setAccesskey((String) evalAttr("accesskey", getAccesskeyExpr(),
|
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELCheckboxTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELCheckboxTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
856,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2934,
15604,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
15034,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
9334,
514,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
856,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
2
] |
ElementFactory factory = listBand.getElemtHandle( ).getElementFactory( );
|
public static boolean createListGroup( ListBandProxy listBand ) { Assert.isNotNull( listBand ); ElementFactory factory = listBand.getElemtHandle( ).getElementFactory( ); try { ListHandle list = null; DesignElementHandle container = listBand.getElemtHandle( ); int slotId = listBand.getSlotId( ); int position = -1; if ( container instanceof ListGroupHandle ) { list = (ListHandle) ( (ListGroupHandle) container ).getContainer( ); position = DEUtil.findInsertPosition( list.getGroups( ) .getElementHandle( ), container, list.getGroups( ) .getSlotID( ) ); } else if ( container instanceof ListHandle ) { list = (ListHandle) container; if ( slotId == ListItem.DETAIL_SLOT ) { position = -1; } else if ( slotId == ListItem.HEADER_SLOT || slotId == ListItem.FOOTER_SLOT ) { position = 0; } } else { return false; } return addGroup( factory, list, position ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); return false; } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/01d840a93ce5b81f1e5cc2a0d70534c901a921dc/UIUtil.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
752,
682,
1114,
12,
987,
14231,
3886,
666,
14231,
262,
202,
95,
202,
202,
8213,
18,
291,
5962,
12,
666,
14231,
11272,
202,
202,
1046,
1733,
3272,
273,
666,
14231,
18,
588,
17274,
1010,
3259,
12,
262,
18,
21336,
1733,
12,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
682,
3259,
666,
273,
446,
31,
1082,
202,
15478,
1046,
3259,
1478,
273,
666,
14231,
18,
588,
17274,
1010,
3259,
12,
11272,
1082,
202,
474,
4694,
548,
273,
666,
14231,
18,
588,
8764,
548,
12,
11272,
1082,
202,
474,
1754,
273,
300,
21,
31,
1082,
202,
430,
261,
1478,
1276,
987,
1114,
3259,
262,
1082,
202,
95,
9506,
202,
1098,
273,
261,
682,
3259,
13,
261,
261,
682,
1114,
3259,
13,
1478,
262,
18,
588,
2170,
12,
11272,
9506,
202,
3276,
273,
2030,
1304,
18,
4720,
4600,
2555,
12,
666,
18,
588,
3621,
12,
262,
25083,
202,
18,
21336,
3259,
12,
262,
16,
1478,
16,
666,
18,
588,
3621,
12,
262,
25083,
202,
18,
588,
8764,
734,
12,
262,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
1478,
1276,
987,
3259,
262,
1082,
202,
95,
9506,
202,
1098,
273,
261,
682,
3259,
13,
1478,
31,
9506,
202,
430,
261,
4694,
548,
422,
987,
1180,
18,
40,
19810,
67,
55,
1502,
56,
262,
9506,
202,
95,
6862,
202,
3276,
273,
300,
21,
31,
9506,
202,
97,
9506,
202,
12107,
309,
261,
4694,
548,
422,
987,
1180,
18,
7557,
67,
55,
1502,
56,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
752,
682,
1114,
12,
987,
14231,
3886,
666,
14231,
262,
202,
95,
202,
202,
8213,
18,
291,
5962,
12,
666,
14231,
11272,
202,
202,
1046,
1733,
3272,
273,
666,
14231,
18,
588,
17274,
1010,
3259,
12,
262,
18,
21336,
1733,
12,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
682,
3259,
666,
273,
446,
31,
1082,
202,
15478,
1046,
3259,
1478,
273,
666,
14231,
18,
588,
17274,
1010,
3259,
12,
11272,
1082,
202,
474,
4694,
548,
273,
666,
14231,
18,
588,
8764,
548,
12,
11272,
1082,
202,
474,
1754,
273,
300,
21,
31,
1082,
202,
430,
261,
1478,
1276,
987,
1114,
3259,
262,
1082,
202,
95,
9506,
202,
1098,
273,
261,
682,
3259,
2
] |
|
if (jj_3R_96()) { jj_scanpos = xsp; if (jj_3R_97()) { jj_scanpos = xsp;
|
final private boolean jj_3R_50() { Token xsp; xsp = jj_scanpos; if (jj_3R_96()) { jj_scanpos = xsp; if (jj_3R_97()) { jj_scanpos = xsp; if (jj_3R_98()) { jj_scanpos = xsp; if (jj_3R_99()) { jj_scanpos = xsp; if (jj_3R_100()) { jj_scanpos = xsp; if (jj_3R_101()) { jj_scanpos = xsp; if (jj_3R_102()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3361,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
10525,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
10580,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
10689,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
2733,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6625,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
15168,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
20481,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3361,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
10525,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
10580,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
10689,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
2733,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
2
] |
|
public Entry revertFile(Entry e) { if (!isFor(e)) return e; return e.renamed(myPath);
|
public void revertFile(Entry e) { if (!isFor(e)) return; e.changeName(myPath);
|
public Entry revertFile(Entry e) { if (!isFor(e)) return e; return e.renamed(myPath); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/893a33aa63e98f34f4a43ab236b0fef2c82e3aae/RenameChange.java/buggy/LocalVcs/src/com/intellij/localvcs/RenameChange.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3841,
15226,
812,
12,
1622,
425,
13,
288,
565,
309,
16051,
291,
1290,
12,
73,
3719,
327,
425,
31,
565,
327,
425,
18,
1187,
2808,
12,
4811,
743,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3841,
15226,
812,
12,
1622,
425,
13,
288,
565,
309,
16051,
291,
1290,
12,
73,
3719,
327,
425,
31,
565,
327,
425,
18,
1187,
2808,
12,
4811,
743,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else if (GraphModelNode.COLOR_BG_PROP.equals(prop)) { refreshColors(); } else if (GraphModelNode.COLOR_FG_PROP.equals(prop)) {
|
} else if (IGraphModelNode.COLOR_FG_PROP.equals(prop)) {
|
public void propertyChange(PropertyChangeEvent evt) { String prop = evt.getPropertyName(); if ( GraphModelNode.FORCE_REDRAW.equals(prop)) { refreshVisuals(); refreshChildren(); refreshColors(); getCastedModel().highlight(); getCastedModel().unhighlight(); } else if (GraphModelNode.LOCATION_PROP.equals(prop) || GraphModelNode.SIZE_PROP.equals(prop)) { refreshVisuals(); } else if (GraphModelNode.SOURCE_CONNECTIONS_PROP.equals(prop)) { refreshSourceConnections(); } else if (GraphModelNode.TARGET_CONNECTIONS_PROP.equals(prop)) { refreshTargetConnections(); } else if (GraphModelNode.HIGHLIGHT_PROP.equals(prop)) {// @tag unreported(EdgeHighlight) :the model will take care of all highlighting, and sending events. getCastedModel().highlight(); // TODO pin highlighted node? refreshColors(); } else if (GraphModelNode.UNHIGHLIGHT_PROP.equals(prop)) { getCastedModel().unhighlight(); refreshColors(); } else if (GraphModelNode.COLOR_BG_PROP.equals(prop)) { refreshColors(); } else if (GraphModelNode.COLOR_FG_PROP.equals(prop)) { refreshColors(); } else if ( GraphModelNode.BRING_TO_FRONT.equals(prop) ) { IFigure figure = getFigure(); IFigure parent = figure.getParent(); parent.remove(figure); parent.add(figure); } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/a3a79bed35b871a171afff98eeddb6ea113e8052/GraphNodeEditPart.java/buggy/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/internal/graphviewer/parts/GraphNodeEditPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
6324,
13,
288,
25083,
202,
780,
2270,
273,
6324,
18,
588,
13073,
5621,
202,
202,
430,
261,
5601,
1488,
907,
18,
27817,
67,
5879,
10821,
18,
14963,
12,
5986,
3719,
288,
1082,
202,
9144,
3282,
12588,
5621,
1082,
202,
9144,
4212,
5621,
1082,
202,
9144,
12570,
5621,
1082,
202,
588,
9735,
329,
1488,
7675,
15978,
5621,
1082,
202,
588,
9735,
329,
1488,
7675,
318,
15978,
5621,
6862,
9506,
202,
97,
202,
202,
12107,
309,
261,
4137,
1488,
907,
18,
15277,
67,
15811,
18,
14963,
12,
5986,
13,
747,
5601,
1488,
907,
18,
4574,
67,
15811,
18,
14963,
12,
5986,
3719,
288,
1082,
202,
9144,
3282,
12588,
5621,
202,
202,
97,
469,
309,
261,
4137,
1488,
907,
18,
6537,
67,
15461,
55,
67,
15811,
18,
14963,
12,
5986,
3719,
288,
1082,
202,
9144,
1830,
9314,
5621,
202,
202,
97,
469,
309,
261,
4137,
1488,
907,
18,
16374,
67,
15461,
55,
67,
15811,
18,
14963,
12,
5986,
3719,
288,
1082,
202,
9144,
2326,
9314,
5621,
202,
202,
97,
469,
309,
261,
4137,
1488,
907,
18,
29996,
23516,
67,
15811,
18,
14963,
12,
5986,
3719,
288,
759,
1082,
202,
36,
2692,
640,
266,
1798,
12,
6098,
16205,
13,
294,
5787,
938,
903,
4862,
7671,
434,
777,
8839,
310,
16,
471,
5431,
2641,
18,
1082,
202,
588,
9735,
329,
1488,
7675,
15978,
5621,
1082,
202,
759,
2660,
7092,
24375,
756,
35,
26924,
202,
9144,
12570,
5621,
202,
202,
97,
469,
309,
261,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1272,
3043,
12,
1396,
20930,
6324,
13,
288,
25083,
202,
780,
2270,
273,
6324,
18,
588,
13073,
5621,
202,
202,
430,
261,
5601,
1488,
907,
18,
27817,
67,
5879,
10821,
18,
14963,
12,
5986,
3719,
288,
1082,
202,
9144,
3282,
12588,
5621,
1082,
202,
9144,
4212,
5621,
1082,
202,
9144,
12570,
5621,
1082,
202,
588,
9735,
329,
1488,
7675,
15978,
5621,
1082,
202,
588,
9735,
329,
1488,
7675,
318,
15978,
5621,
6862,
9506,
202,
97,
202,
202,
12107,
309,
261,
4137,
1488,
907,
18,
15277,
67,
15811,
18,
14963,
12,
5986,
13,
747,
5601,
1488,
907,
18,
4574,
67,
15811,
18,
14963,
12,
5986,
3719,
288,
1082,
202,
9144,
3282,
12588,
5621,
202,
202,
97,
2
] |
for (int i = 0; i < positions.length; i++) { Position position = positions[i]; mapPositionToIndex.put(position, new Integer(i)); }
|
RolapAxis(Position[] positions) { this.positions = positions; for (int i = 0; i < positions.length; i++) { Position position = positions[i]; mapPositionToIndex.put(position, new Integer(i)); } }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/ad9b70ca2f36cdee4a2ea799c616381cca9b24aa/RolapResult.java/buggy/src/main/mondrian/rolap/RolapResult.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
4984,
438,
6558,
12,
2555,
8526,
6865,
13,
288,
202,
202,
2211,
18,
12388,
273,
6865,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6865,
18,
2469,
31,
277,
27245,
288,
1082,
202,
2555,
1754,
273,
6865,
63,
77,
15533,
1082,
202,
1458,
2555,
19418,
18,
458,
12,
3276,
16,
225,
394,
2144,
12,
77,
10019,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4984,
438,
6558,
12,
2555,
8526,
6865,
13,
288,
202,
202,
2211,
18,
12388,
273,
6865,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6865,
18,
2469,
31,
277,
27245,
288,
1082,
202,
2555,
1754,
273,
6865,
63,
77,
15533,
1082,
202,
1458,
2555,
19418,
18,
458,
12,
3276,
16,
225,
394,
2144,
12,
77,
10019,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
else if (key.equals("cc")) {
|
else if (key.equals("newcc")) {
|
protected void createAttributeLayout() { String title = getTitleString(); String keywords = ""; String url = ""; // Attributes Composite- this holds all the combo fiels and text // fields Composite attributesComposite = new Composite(infoArea, SWT.NONE); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData); attributesComposite.setBackground(background); // End Attributes Composite // Attributes Title Area Composite attributesTitleComposite = new Composite(attributesComposite, SWT.NONE); GridLayout attributesTitleLayout = new GridLayout(); attributesTitleLayout.horizontalSpacing = 0; attributesTitleLayout.marginWidth = 0; attributesTitleComposite.setLayout(attributesTitleLayout); attributesTitleComposite.setBackground(background); GridData attributesTitleData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); attributesTitleData.horizontalSpan = 4; attributesTitleData.grabExcessVerticalSpace = false; attributesTitleComposite.setLayoutData(attributesTitleData); // End Attributes Title // Set the Attributes Title newAttributesLayout(attributesTitleComposite); titleLabel.setText(title); bugzillaInput.setToolTipText(title); int currentCol = 1; // Populate Attributes for (Iterator<Attribute> it = getBug().getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getParameterName(); String name = attribute.getName(); String value = checkText(attribute.getValue()); Map<String, String> values = attribute.getOptionValues(); // make sure we don't try to display a hidden field if (attribute.isHidden() || (key != null && key.equals("status_whiteboard"))) continue; if (values == null) values = new HashMap<String, String>(); if (key == null) key = ""; GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; if (key.equals("short_desc") || key.equals("keywords")) { keywords = value; } else if (key.equals("cc")) { // XXX we don't do anything with the cc yet } else if (key.equals("bug_file_loc")) { url = value; } else if (key.equals("op_sys")) { newLayout(attributesComposite, 1, name, PROPERTY); oSCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); oSCombo.setLayoutData(data); oSCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { oSCombo.add(a[i]); } oSCombo.select(oSCombo.indexOf(value)); oSCombo.addListener(SWT.Modify, this); comboListenerMap.put(oSCombo, name); oSCombo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("version")) { newLayout(attributesComposite, 1, name, PROPERTY); versionCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); versionCombo.setLayoutData(data); versionCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { versionCombo.add(a[i]); } versionCombo.select(versionCombo.indexOf(value)); versionCombo.addListener(SWT.Modify, this); versionCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(versionCombo, name); currentCol += 2; } else if (key.equals("priority")) { newLayout(attributesComposite, 1, name, PROPERTY); priorityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); priorityCombo.setLayoutData(data); priorityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { priorityCombo.add(a[i]); } priorityCombo.select(priorityCombo.indexOf(value)); priorityCombo.addListener(SWT.Modify, this); priorityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(priorityCombo, name); currentCol += 2; } else if (key.equals("bug_severity")) { newLayout(attributesComposite, 1, name, PROPERTY); severityCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); severityCombo.setLayoutData(data); severityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { severityCombo.add(a[i]); } severityCombo.select(severityCombo.indexOf(value)); severityCombo.addListener(SWT.Modify, this); severityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(severityCombo, name); currentCol += 2; } else if (key.equals("target_milestone")) { newLayout(attributesComposite, 1, name, PROPERTY); milestoneCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); milestoneCombo.setLayoutData(data); milestoneCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { milestoneCombo.add(a[i]); } milestoneCombo.select(milestoneCombo.indexOf(value)); milestoneCombo.addListener(SWT.Modify, this); milestoneCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(milestoneCombo, name); currentCol += 2; } else if (key.equals("rep_platform")) { newLayout(attributesComposite, 1, name, PROPERTY); platformCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); platformCombo.setLayoutData(data); platformCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { platformCombo.add(a[i]); } platformCombo.select(platformCombo.indexOf(value)); platformCombo.addListener(SWT.Modify, this); platformCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(platformCombo, name); currentCol += 2; } else if (key.equals("product")) { newLayout(attributesComposite, 1, name, PROPERTY); newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("component")) { newLayout(attributesComposite, 1, name, PROPERTY); componentCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); componentCombo.setLayoutData(data); componentCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { componentCombo.add(a[i]); } componentCombo.select(componentCombo.indexOf(value)); componentCombo.addListener(SWT.Modify, this); componentCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(componentCombo, name); currentCol += 2; } else if (name.equals("Summary")) { // Don't show the summary here. continue; } else if (values.isEmpty()) { newLayout(attributesComposite, 1, name, PROPERTY); newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } if (currentCol > attributesLayout.numColumns) { currentCol -= attributesLayout.numColumns; } } // End Populate Attributes // make sure that we are in the first column if (currentCol > 1) { while (currentCol <= attributesLayout.numColumns) { newLayout(attributesComposite, 1, "", PROPERTY); currentCol++; } } // URL, Keywords, Summary Text Fields addUrlText(url, attributesComposite); // keywords text field (not editable) addKeywordsList(keywords, attributesComposite); addSummaryText(attributesComposite); // End URL, Keywords, Summary Text Fields }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/35757a9d44f4f9b9271f69ea1a2eb64261ec43ee/AbstractBugEditor.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
1499,
3744,
1435,
288,
9506,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
9506,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
7314,
10558,
471,
977,
3196,
202,
759,
1466,
202,
202,
9400,
1677,
9400,
273,
394,
14728,
12,
1376,
5484,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
4350,
3744,
18,
18396,
18006,
273,
5045,
31,
202,
202,
4350,
3744,
18,
17824,
18006,
273,
1666,
31,
202,
202,
4350,
9400,
18,
542,
3744,
12,
4350,
3744,
1769,
202,
202,
6313,
751,
1677,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
4350,
751,
18,
18396,
6952,
273,
404,
31,
202,
202,
4350,
751,
18,
2752,
70,
424,
614,
15704,
3819,
273,
629,
31,
202,
202,
4350,
9400,
18,
542,
3744,
751,
12,
4350,
751,
1769,
202,
202,
4350,
9400,
18,
542,
8199,
12,
9342,
1769,
202,
202,
759,
4403,
9055,
14728,
9506,
202,
759,
9055,
10984,
16668,
202,
202,
9400,
1677,
4247,
9400,
273,
1082,
202,
2704,
14728,
12,
4350,
9400,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
4247,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
4247,
3744,
18,
18396,
18006,
273,
374,
31,
202,
202,
4350,
4247,
3744,
18,
10107,
2384,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
1499,
3744,
1435,
288,
9506,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
9506,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
7314,
10558,
471,
977,
3196,
202,
759,
1466,
202,
202,
9400,
1677,
9400,
273,
394,
14728,
12,
1376,
5484,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
4350,
3744,
18,
18396,
18006,
273,
5045,
31,
202,
202,
4350,
3744,
18,
17824,
18006,
273,
1666,
31,
202,
202,
4350,
9400,
18,
542,
3744,
12,
4350,
3744,
1769,
2
] |
public Collection getActiveBindingsFor(String commandId);
|
public TriggerSequence[] getActiveBindingsFor(String commandId);
|
public Collection getActiveBindingsFor(String commandId);
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c4e1f9143f8169cbc964c74ba999906a0065e6c9/IBindingService.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/keys/IBindingService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
11960,
10497,
1290,
12,
780,
1296,
548,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2200,
11960,
10497,
1290,
12,
780,
1296,
548,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(this.manager!=null) this.manager.repaint();
|
Display.getDefault().asyncExec(this);
|
public void setState(State state){ switch (state) { // busy case SERVING_REQUEST: this.backgroundColor = AOFigure.COLOR_WHEN_SERVING_REQUEST; break; // waiting by necessity case WAITING_BY_NECESSITY_WHILE_ACTIVE: case WAITING_BY_NECESSITY_WHILE_SERVING: this.backgroundColor = AOFigure.COLOR_WHEN_WAITING_BY_NECESSITY; break; // waiting for request case WAITING_FOR_REQUEST: this.backgroundColor = AOFigure.COLOR_WHEN_WAITING_FOR_REQUEST; break; // active case ACTIVE: this.backgroundColor = AOFigure.COLOR_WHEN_ACTIVE; break; // not responding case NOT_RESPONDING: this.backgroundColor = AOFigure.COLOR_WHEN_NOT_RESPONDING; break; // migrate case MIGRATING: this.backgroundColor = AOFigure.COLOR_WHEN_MIGRATING; removeMouseListener(mouseListener); break; default: break; } //this.repaint(); if(this.manager!=null) this.manager.repaint(); }
|
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/64a00b6d313fc2b3680346148d1257ba4095e408/AOFigure.java/buggy/ic2d-plugins/org.objectweb.proactive.ic2d.monitoring/src/org/objectweb/proactive/ic2d/monitoring/figures/AOFigure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12947,
12,
1119,
919,
15329,
202,
202,
9610,
261,
2019,
13,
288,
202,
202,
759,
21697,
202,
202,
3593,
7758,
58,
1360,
67,
5519,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
31066,
1360,
67,
5519,
31,
1082,
202,
8820,
31,
1082,
202,
759,
7336,
635,
290,
3957,
560,
202,
202,
3593,
26859,
1360,
67,
6486,
67,
5407,
5119,
4107,
67,
12557,
13578,
67,
13301,
30,
202,
202,
3593,
26859,
1360,
67,
6486,
67,
5407,
5119,
4107,
67,
12557,
13578,
67,
31066,
1360,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
19046,
1360,
67,
6486,
67,
5407,
5119,
4107,
31,
1082,
202,
8820,
31,
1082,
202,
759,
7336,
364,
590,
202,
202,
3593,
26859,
1360,
67,
7473,
67,
5519,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
19046,
1360,
67,
7473,
67,
5519,
31,
1082,
202,
8820,
31,
9506,
202,
759,
2695,
202,
202,
3593,
21135,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
13301,
31,
1082,
202,
8820,
31,
1082,
202,
759,
486,
6846,
310,
202,
202,
3593,
4269,
67,
862,
10789,
40,
1360,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
4400,
67,
862,
10789,
40,
1360,
31,
1082,
202,
8820,
31,
1082,
202,
759,
13187,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12947,
12,
1119,
919,
15329,
202,
202,
9610,
261,
2019,
13,
288,
202,
202,
759,
21697,
202,
202,
3593,
7758,
58,
1360,
67,
5519,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
31066,
1360,
67,
5519,
31,
1082,
202,
8820,
31,
1082,
202,
759,
7336,
635,
290,
3957,
560,
202,
202,
3593,
26859,
1360,
67,
6486,
67,
5407,
5119,
4107,
67,
12557,
13578,
67,
13301,
30,
202,
202,
3593,
26859,
1360,
67,
6486,
67,
5407,
5119,
4107,
67,
12557,
13578,
67,
31066,
1360,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
19046,
1360,
67,
6486,
67,
5407,
2
] |
XmlaRequest xmlaReq = new DefaultXmlaRequest(xmlaReqElem, (String) context.get("role"));
|
XmlaRequest xmlaReq = new DefaultXmlaRequest(xmlaReqElem, (String) context.get("role"));
|
protected byte[] handleSoapBody(Element hdrElem, Element bodyElem, String charEncoding, Map context) throws Exception { Element[] dreqs = XmlaUtil.filterChildElements(bodyElem, NS_XMLA, "Discover"); Element[] ereqs = XmlaUtil.filterChildElements(bodyElem, NS_XMLA, "Execute"); if (dreqs.length + ereqs.length != 1) { throw new SAXException("Invalid XML/A message"); } Element xmlaReqElem = (dreqs.length == 0 ? ereqs[0] : dreqs[0]); ByteArrayOutputStream osBuf = new ByteArrayOutputStream(); XmlaRequest xmlaReq = new DefaultXmlaRequest(xmlaReqElem, (String) context.get("role")); XmlaResponse xmlaRes = new DefaultXmlaResponse(osBuf, charEncoding); xmlaHandler.process(xmlaReq, xmlaRes); return osBuf.toByteArray(); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/db1f6eac294a13b7a0440829f5e59a6a33f2788e/DefaultXmlaServlet.java/buggy/src/main/mondrian/xmla/impl/DefaultXmlaServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1160,
8526,
1640,
20601,
2250,
12,
1046,
7723,
7498,
16,
3010,
1417,
7498,
16,
514,
1149,
4705,
16,
1635,
819,
13,
1216,
1185,
288,
3639,
3010,
8526,
302,
25782,
273,
5714,
69,
1304,
18,
2188,
1763,
3471,
12,
3432,
7498,
16,
11472,
67,
4201,
37,
16,
315,
26082,
8863,
3639,
3010,
8526,
27036,
12926,
273,
5714,
69,
1304,
18,
2188,
1763,
3471,
12,
3432,
7498,
16,
11472,
67,
4201,
37,
16,
315,
5289,
8863,
3639,
309,
261,
72,
25782,
18,
2469,
397,
27036,
12926,
18,
2469,
480,
404,
13,
288,
5411,
604,
394,
14366,
2932,
1941,
3167,
19,
37,
883,
8863,
3639,
289,
3639,
3010,
2025,
69,
6113,
7498,
273,
261,
72,
25782,
18,
2469,
422,
374,
692,
27036,
12926,
63,
20,
65,
294,
302,
25782,
63,
20,
19226,
3639,
11559,
1140,
5503,
273,
394,
11559,
5621,
540,
5714,
69,
691,
2025,
69,
6113,
273,
394,
2989,
4432,
69,
691,
12,
2902,
69,
6113,
7498,
16,
261,
780,
13,
819,
18,
588,
2932,
4615,
7923,
1769,
3639,
5714,
69,
1064,
2025,
69,
607,
273,
394,
2989,
4432,
69,
1064,
12,
538,
5503,
16,
1149,
4705,
1769,
3639,
2025,
69,
1503,
18,
2567,
12,
2902,
69,
6113,
16,
2025,
69,
607,
1769,
3639,
327,
1140,
5503,
18,
869,
8826,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
1160,
8526,
1640,
20601,
2250,
12,
1046,
7723,
7498,
16,
3010,
1417,
7498,
16,
514,
1149,
4705,
16,
1635,
819,
13,
1216,
1185,
288,
3639,
3010,
8526,
302,
25782,
273,
5714,
69,
1304,
18,
2188,
1763,
3471,
12,
3432,
7498,
16,
11472,
67,
4201,
37,
16,
315,
26082,
8863,
3639,
3010,
8526,
27036,
12926,
273,
5714,
69,
1304,
18,
2188,
1763,
3471,
12,
3432,
7498,
16,
11472,
67,
4201,
37,
16,
315,
5289,
8863,
3639,
309,
261,
72,
25782,
18,
2469,
397,
27036,
12926,
18,
2469,
480,
404,
13,
288,
5411,
604,
394,
14366,
2932,
1941,
3167,
19,
37,
883,
8863,
3639,
289,
3639,
3010,
2025,
69,
6113,
7498,
273,
261,
72,
25782,
18,
2469,
422,
374,
2
] |
public void testT3_ShouldFind_PreGoal_Prereq_MainGoal_PostGoal() throws Exception
|
public void testT3_ShouldFind_PreGoal_Prereq_MainGoal_PostGoal() throws Exception
|
public void testT3_ShouldFind_PreGoal_Prereq_MainGoal_PostGoal() throws Exception { String mainGoal = "t3:main"; String prereq = "t3:prereq"; String preGoal = "t3:preGoal"; String postGoal = "t3:postGoal"; GoalDecoratorBindings bindings = new GoalDecoratorBindings(); bindings.addPreGoal( new DefaultGoalDecorator( mainGoal, preGoal ) ); bindings.addPostGoal( new DefaultGoalDecorator( mainGoal, postGoal ) ); Map messages = new TreeMap(); messages.put( mainGoal, "Main goal is missing." ); messages.put( prereq, "prereq is missing" ); messages.put( preGoal, "preGoal is missing" ); messages.put( postGoal, "postGoal is missing" ); List order = new ArrayList(); order.add( preGoal ); order.add( prereq ); order.add( mainGoal ); order.add( postGoal ); runTest( mainGoal, bindings, order, messages ); }
|
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/a949eb66dedc63459e4897d50c37374814750c66/GoalResolutionPhaseTest.java/buggy/maven-core/src/test/java/org/apache/maven/lifecycle/goal/phase/GoalResolutionPhaseTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
56,
23,
67,
14309,
3125,
67,
1386,
27716,
67,
2050,
822,
85,
67,
6376,
27716,
67,
3349,
27716,
1435,
3639,
1216,
1185,
565,
288,
3639,
514,
2774,
27716,
273,
315,
88,
23,
30,
5254,
14432,
3639,
514,
30328,
85,
273,
315,
88,
23,
30,
683,
822,
85,
14432,
3639,
514,
675,
27716,
273,
315,
88,
23,
30,
1484,
27716,
14432,
3639,
514,
1603,
27716,
273,
315,
88,
23,
30,
2767,
27716,
14432,
3639,
4220,
287,
10361,
10497,
7394,
273,
394,
4220,
287,
10361,
10497,
5621,
3639,
7394,
18,
1289,
1386,
27716,
12,
394,
2989,
27716,
10361,
12,
2774,
27716,
16,
675,
27716,
262,
11272,
3639,
7394,
18,
1289,
3349,
27716,
12,
394,
2989,
27716,
10361,
12,
2774,
27716,
16,
1603,
27716,
262,
11272,
3639,
1635,
2743,
273,
394,
16381,
5621,
3639,
2743,
18,
458,
12,
2774,
27716,
16,
315,
6376,
17683,
353,
3315,
1199,
11272,
3639,
2743,
18,
458,
12,
30328,
85,
16,
315,
683,
822,
85,
353,
3315,
6,
11272,
3639,
2743,
18,
458,
12,
675,
27716,
16,
315,
1484,
27716,
353,
3315,
6,
11272,
3639,
2743,
18,
458,
12,
1603,
27716,
16,
315,
2767,
27716,
353,
3315,
6,
11272,
3639,
987,
1353,
273,
394,
2407,
5621,
3639,
1353,
18,
1289,
12,
675,
27716,
11272,
3639,
1353,
18,
1289,
12,
30328,
85,
11272,
3639,
1353,
18,
1289,
12,
2774,
27716,
11272,
3639,
1353,
18,
1289,
12,
1603,
27716,
11272,
3639,
1086,
4709,
12,
2774,
27716,
16,
7394,
16,
1353,
16,
2743,
11272,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
56,
23,
67,
14309,
3125,
67,
1386,
27716,
67,
2050,
822,
85,
67,
6376,
27716,
67,
3349,
27716,
1435,
3639,
1216,
1185,
565,
288,
3639,
514,
2774,
27716,
273,
315,
88,
23,
30,
5254,
14432,
3639,
514,
30328,
85,
273,
315,
88,
23,
30,
683,
822,
85,
14432,
3639,
514,
675,
27716,
273,
315,
88,
23,
30,
1484,
27716,
14432,
3639,
514,
1603,
27716,
273,
315,
88,
23,
30,
2767,
27716,
14432,
3639,
4220,
287,
10361,
10497,
7394,
273,
394,
4220,
287,
10361,
10497,
5621,
3639,
7394,
18,
1289,
1386,
27716,
12,
394,
2989,
27716,
10361,
12,
2774,
27716,
16,
675,
27716,
262,
11272,
3639,
7394,
18,
1289,
3349,
27716,
12,
394,
2989,
27716,
10361,
2
] |
decompiler.addName(s); property = nf.createString(ts.getString());
|
if (tt == Token.NAME) { decompiler.addName(s); } else { decompiler.addString(s); } property = ScriptRuntime.getIndexObject(s);
|
private Object primaryExpr() throws IOException, ParserException { int tt; Object pn; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case Token.FUNCTION: return function(FunctionNode.FUNCTION_EXPRESSION); case Token.LB: { decompiler.addToken(Token.LB); pn = nf.createLeaf(Token.ARRAYLIT); ts.flags |= ts.TSF_REGEXP; boolean matched = ts.matchToken(Token.RB); ts.flags &= ~ts.TSF_REGEXP; if (!matched) { boolean first = true; do { ts.flags |= ts.TSF_REGEXP; tt = ts.peekToken(); ts.flags &= ~ts.TSF_REGEXP; if (!first) decompiler.addToken(Token.COMMA); else first = false; if (tt == Token.RB) { // to fix [,,,].length behavior... break; } if (tt == Token.COMMA) { nf.addChildToBack(pn, nf.createLeaf(Token.UNDEFINED)); } else { nf.addChildToBack(pn, assignExpr(false)); } } while (ts.matchToken(Token.COMMA)); mustMatchToken(Token.RB, "msg.no.bracket.arg"); } decompiler.addToken(Token.RB); return nf.createArrayLiteral(pn); } case Token.LC: { pn = nf.createLeaf(Token.OBJLIT); decompiler.addToken(Token.LC); if (!ts.matchToken(Token.RC)) { boolean first = true; commaloop: do { Object property; if (!first) decompiler.addToken(Token.COMMA); else first = false; tt = ts.getToken(); switch(tt) { // map NAMEs to STRINGs in object literal context. case Token.NAME: case Token.STRING: String s = ts.getString(); decompiler.addName(s); property = nf.createString(ts.getString()); break; case Token.NUMBER: double n = ts.getNumber(); decompiler.addNumber(n); property = nf.createNumber(n); break; case Token.RC: // trailing comma is OK. ts.ungetToken(tt); break commaloop; default: reportError("msg.bad.prop"); break commaloop; } mustMatchToken(Token.COLON, "msg.no.colon.prop"); // OBJLIT is used as ':' in object literal for // decompilation to solve spacing ambiguity. decompiler.addToken(Token.OBJLIT); nf.addChildToBack(pn, property); nf.addChildToBack(pn, assignExpr(false)); } while (ts.matchToken(Token.COMMA)); mustMatchToken(Token.RC, "msg.no.brace.prop"); } decompiler.addToken(Token.RC); return nf.createObjectLiteral(pn); } case Token.LP: /* Brendan's IR-jsparse.c makes a new node tagged with * TOK_LP here... I'm not sure I understand why. Isn't * the grouping already implicit in the structure of the * parse tree? also TOK_LP is already overloaded (I * think) in the C IR as 'function call.' */ decompiler.addToken(Token.LP); pn = expr(false); decompiler.addToken(Token.RP); mustMatchToken(Token.RP, "msg.no.paren"); return pn; case Token.NAME: String name = ts.getString(); decompiler.addName(name); return nf.createName(name); case Token.NUMBER: double n = ts.getNumber(); decompiler.addNumber(n); return nf.createNumber(n); case Token.STRING: String s = ts.getString(); decompiler.addString(s); return nf.createString(s); case Token.REGEXP: { String flags = ts.regExpFlags; ts.regExpFlags = null; String re = ts.getString(); decompiler.addRegexp(re, flags); int index = currentScriptOrFn.addRegexp(re, flags); return nf.createRegExp(index); } case Token.NULL: case Token.THIS: case Token.FALSE: case Token.TRUE: decompiler.addToken(tt); return nf.createLeaf(tt); case Token.RESERVED: reportError("msg.reserved.id"); break; case Token.ERROR: /* the scanner or one of its subroutines reported the error. */ break; default: reportError("msg.syntax"); break; } return null; // should never reach here }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/37be8f9cfb362f40c2f19056693cb9e21cb13bcb/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3354,
4742,
1435,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3155,
18,
7788,
30,
5411,
327,
445,
12,
2083,
907,
18,
7788,
67,
19111,
1769,
3639,
648,
3155,
18,
12995,
30,
5411,
288,
7734,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
12995,
1769,
7734,
11059,
273,
13958,
18,
2640,
9858,
12,
1345,
18,
8552,
15716,
1769,
7734,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
7734,
1250,
4847,
273,
3742,
18,
1916,
1345,
12,
1345,
18,
19437,
1769,
7734,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
7734,
309,
16051,
11073,
13,
288,
10792,
1250,
1122,
273,
638,
31,
10792,
741,
288,
13491,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
13491,
3574,
273,
3742,
18,
347,
3839,
1345,
5621,
13491,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
13491,
309,
16051,
3645,
13,
18701,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
4208,
5535,
1769,
13491,
469,
18701,
1122,
273,
629,
31,
13491,
309,
261,
748,
422,
3155,
18,
19437,
13,
288,
225,
368,
358,
2917,
306,
16408,
16,
8009,
2469,
6885,
2777,
18701,
898,
31,
13491,
289,
13491,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3354,
4742,
1435,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3155,
18,
7788,
30,
5411,
327,
445,
12,
2083,
907,
18,
7788,
67,
19111,
1769,
3639,
648,
3155,
18,
12995,
30,
5411,
288,
7734,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
12995,
1769,
7734,
11059,
273,
13958,
18,
2640,
9858,
12,
1345,
18,
8552,
15716,
1769,
7734,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
2
] |
SimpleFieldSet sfs = new SimpleFieldSet();
|
SimpleFieldSet sfs = new SimpleFieldSet(false);
|
public SimpleFieldSet getFieldSet() { SimpleFieldSet sfs = new SimpleFieldSet(); sfs.put("URI", uri.toString()); sfs.put("Identifier", identifier); sfs.put("DataLength", Long.toString(dataLength)); sfs.put("Verbosity", Integer.toString(verbosity)); sfs.put("MaxRetries", Integer.toString(maxRetries)); sfs.put("Metadata.ContentType", contentType); return sfs; }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/2d2b5012400f5bab60d65d3d26d67efa9cf7d1d6/ClientPutMessage.java/buggy/src/freenet/node/fcp/ClientPutMessage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4477,
974,
694,
5031,
694,
1435,
288,
202,
202,
5784,
974,
694,
272,
2556,
273,
394,
4477,
974,
694,
5621,
202,
202,
87,
2556,
18,
458,
2932,
3098,
3113,
2003,
18,
10492,
10663,
202,
202,
87,
2556,
18,
458,
2932,
3004,
3113,
2756,
1769,
202,
202,
87,
2556,
18,
458,
2932,
751,
1782,
3113,
3407,
18,
10492,
12,
892,
1782,
10019,
202,
202,
87,
2556,
18,
458,
2932,
30594,
3113,
2144,
18,
10492,
12,
16629,
8807,
10019,
202,
202,
87,
2556,
18,
458,
2932,
2747,
13656,
3113,
2144,
18,
10492,
12,
1896,
13656,
10019,
202,
202,
87,
2556,
18,
458,
2932,
2277,
18,
8046,
3113,
5064,
1769,
202,
202,
2463,
272,
2556,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4477,
974,
694,
5031,
694,
1435,
288,
202,
202,
5784,
974,
694,
272,
2556,
273,
394,
4477,
974,
694,
5621,
202,
202,
87,
2556,
18,
458,
2932,
3098,
3113,
2003,
18,
10492,
10663,
202,
202,
87,
2556,
18,
458,
2932,
3004,
3113,
2756,
1769,
202,
202,
87,
2556,
18,
458,
2932,
751,
1782,
3113,
3407,
18,
10492,
12,
892,
1782,
10019,
202,
202,
87,
2556,
18,
458,
2932,
30594,
3113,
2144,
18,
10492,
12,
16629,
8807,
10019,
202,
202,
87,
2556,
18,
458,
2932,
2747,
13656,
3113,
2144,
18,
10492,
12,
1896,
13656,
10019,
202,
202,
87,
2556,
18,
458,
2932,
2277,
18,
8046,
3113,
5064,
1769,
202,
202,
2463,
272,
2556,
31,
202,
97,
2,
-100
] |
private Collection<NCBIGene2Accession> processLocalFiles( LocalFile geneInfoFile, LocalFile gene2AccessionFile, final BlockingQueue<NcbiGeneData> queue ) { log.info( "Parsing geneinfo=" + geneInfoFile.asFile().getAbsolutePath() + " and gene2accession=" + gene2AccessionFile.asFile().getAbsolutePath() ); final NcbiGeneInfoParser infoParser = new NcbiGeneInfoParser(); final NcbiGene2AccessionParser accParser = new NcbiGene2AccessionParser(); final File gene2accessionFileHandle = gene2AccessionFile.asFile();// final BlockingQueue<NcbiGeneData> queue = new ArrayBlockingQueue<NcbiGeneData>( QUEUE_SIZE ); // parse GeneInfo file into Hashtable (initialization) try { infoParser.parse( geneInfoFile.asFile() ); } catch ( IOException e ) { throw new RuntimeException( e ); } Collection<NCBIGeneInfo> geneInfoList = infoParser.getResults(); // put into HashMap final HashMap<String, NCBIGeneInfo> geneInfoMap = new HashMap<String, NCBIGeneInfo>(); for ( NCBIGeneInfo o : geneInfoList ) { geneInfoMap.put( o.getGeneId(), o ); } // 1) use a producer-consumer model for Gene2Accession conversion // 1a) Parse Gene2Accession until the gene id changes. This means that all accessions for the gene are done. // 1b) Create a Collection<Gene2Accession>, and push into BlockingQueue Thread parseThread = new Thread( new Runnable() { public void run() { try { accParser.parse( gene2accessionFileHandle, queue, geneInfoMap); } catch ( IOException e ) { throw new RuntimeException( e ); } producerDone.set( true ); log.debug( "Domain object generator done" ); } } ); parseThread.start(); // 1c) As elements get added to BlockingQueue, NCBIGeneConverter consumes // and creates Gene/GeneProduct/DatabaseEntry objects. // 1d) Push Gene to another BlockingQueue genePersistence // 2) use producer-consumer model for Gene persistence // 2a) as elements get added to genePersistence, persist Gene and associated entries. /*Collection<NCBIGene2Accession> ncbiGenes = accParser.getResults(); for ( NCBIGene2Accession o : ncbiGenes ) { NCBIGeneInfo info = infoParser.get( o.getGeneId() ); o.setInfo( info ); }*/ return null; }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/c362ff5706c8e45d8a171a64c86872f493e0e443/NcbiGeneDomainObjectGenerator.java/clean/gemma-core/src/main/java/ubic/gemma/loader/genome/gene/ncbi/NcbiGeneDomainObjectGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2200,
32,
50,
8876,
3047,
4009,
22,
1862,
285,
34,
1207,
2042,
2697,
12,
3566,
812,
7529,
966,
812,
16,
3566,
812,
7529,
22,
1862,
285,
812,
16,
727,
27551,
3183,
32,
50,
7358,
77,
24442,
751,
34,
2389,
262,
288,
3639,
613,
18,
1376,
12,
315,
13963,
7529,
1376,
1546,
397,
7529,
966,
812,
18,
345,
812,
7675,
588,
10368,
743,
1435,
397,
315,
471,
7529,
22,
3860,
285,
1546,
7734,
397,
7529,
22,
1862,
285,
812,
18,
345,
812,
7675,
588,
10368,
743,
1435,
11272,
7734,
727,
423,
7358,
77,
24442,
966,
2678,
1123,
2678,
273,
394,
423,
7358,
77,
24442,
966,
2678,
5621,
3639,
727,
423,
7358,
77,
24442,
22,
1862,
285,
2678,
4078,
2678,
273,
394,
423,
7358,
77,
24442,
22,
1862,
285,
2678,
5621,
3639,
727,
1387,
7529,
22,
3860,
285,
812,
3259,
273,
7529,
22,
1862,
285,
812,
18,
345,
812,
5621,
759,
3639,
727,
27551,
3183,
32,
50,
7358,
77,
24442,
751,
34,
2389,
273,
394,
1510,
8728,
3183,
32,
50,
7358,
77,
24442,
751,
34,
12,
31600,
67,
4574,
11272,
7734,
368,
1109,
611,
4009,
966,
585,
1368,
18559,
261,
6769,
1588,
13,
540,
775,
288,
5411,
1123,
2678,
18,
2670,
12,
7529,
966,
812,
18,
345,
812,
1435,
11272,
3639,
289,
1044,
261,
1860,
425,
262,
288,
5411,
604,
394,
3235,
12,
425,
11272,
3639,
289,
3639,
2200,
32,
50,
8876,
3047,
4009,
966,
34,
7529,
17914,
273,
1123,
2678,
18,
588,
3447,
5621,
3639,
368,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2200,
32,
50,
8876,
3047,
4009,
22,
1862,
285,
34,
1207,
2042,
2697,
12,
3566,
812,
7529,
966,
812,
16,
3566,
812,
7529,
22,
1862,
285,
812,
16,
727,
27551,
3183,
32,
50,
7358,
77,
24442,
751,
34,
2389,
262,
288,
3639,
613,
18,
1376,
12,
315,
13963,
7529,
1376,
1546,
397,
7529,
966,
812,
18,
345,
812,
7675,
588,
10368,
743,
1435,
397,
315,
471,
7529,
22,
3860,
285,
1546,
7734,
397,
7529,
22,
1862,
285,
812,
18,
345,
812,
7675,
588,
10368,
743,
1435,
11272,
7734,
727,
423,
7358,
77,
24442,
966,
2678,
1123,
2678,
273,
394,
423,
7358,
77,
24442,
966,
2678,
5621,
3639,
727,
423,
7358,
77,
24442,
22,
1862,
285,
2678,
4078,
2
] |
||
assertTrue(smiles1.equals("[H]C1([H])(C([H])([H])C([H])([H])C\\2([H])(C([H])([H])C([H])([H])C([H])([H])C([H])([H])C\\2([H])(C1([H])([H]))))")); mol1.getBondAt(6).setStereo(CDKConstants.STEREO_BOND_UP); String smiles3=null;
|
assertTrue(smiles1.equals("[H]C1([H])(C([H])([H])C([H])([H])C\\2([H])(C([H])([H])C([H])([H])C([H])([H])C([H])([H])C\\2([H])(C1([H])([H]))))")); mol1.getBondAt(6).setStereo(CDKConstants.STEREO_BOND_UP); String smiles3 = null;
|
public void testCisTransDecalin() throws Exception { HydrogenPlacer hydrogenPlacer = new HydrogenPlacer(); SmilesGenerator sg = new SmilesGenerator(); Molecule mol1 = new Molecule(); mol1.addAtom(new Atom("H", new Point2d(1, 0))); // 1 mol1.addAtom(new Atom("C", new Point2d(1, 2))); // 2 mol1.addAtom(new Atom("C", new Point2d(1, 2))); // 3 mol1.addAtom(new Atom("C", new Point2d(0, 0))); // 4 mol1.addAtom(new Atom("C", new Point2d(1, 4))); // 5 mol1.addAtom(new Atom("C", new Point2d(1, 5))); // 6 mol1.addAtom(new Atom("C", new Point2d(1, 6))); // 7 mol1.addAtom(new Atom("H", new Point2d(1, 0))); // 1 mol1.addAtom(new Atom("C", new Point2d(1, 2))); // 2 mol1.addAtom(new Atom("C", new Point2d(1, 2))); // 3 mol1.addAtom(new Atom("C", new Point2d(1, 2))); // 2 mol1.addAtom(new Atom("C", new Point2d(1, 2))); // 3 mol1.addBond(0, 1, 1, CDKConstants.STEREO_BOND_DOWN); // 1 mol1.addBond(1, 2, 1); // 2 mol1.addBond(2, 3, 1); // 3 mol1.addBond(3, 4, 1); // 4 mol1.addBond(4, 5, 1); // 5 mol1.addBond(5, 6, 1); // 6 mol1.addBond(6, 7, 1, CDKConstants.STEREO_BOND_DOWN); // 3 mol1.addBond(6, 8, 1); // 4 mol1.addBond(8, 9, 1); // 5 mol1.addBond(9, 10, 1); // 6 mol1.addBond(10, 11, 1); // 6 mol1.addBond(11, 1, 1); // 6 mol1.addBond(1, 6, 1); // 6 try { new HydrogenAdder().addHydrogensToSatisfyValency(mol1); hydrogenPlacer.placeHydrogens2D(mol1, 1.0); IsotopeFactory ifac = IsotopeFactory.getInstance(); ifac.configureAtoms(mol1); } catch (IOException ex) {} catch (ClassNotFoundException ex) {} String smiles1 = null; if (standAlone) { display(mol1); } try { smiles1 = sg.createSMILES(mol1, true, new boolean[mol1.getBondCount()]); } catch (Exception exc) { System.out.println(exc); if (!standAlone) { fail(); } } if (standAlone) { System.err.println("SMILES 1: " + smiles1); } assertNotNull(smiles1); assertTrue(smiles1.equals("[H]C1([H])(C([H])([H])C([H])([H])C\\2([H])(C([H])([H])C([H])([H])C([H])([H])C([H])([H])C\\2([H])(C1([H])([H]))))")); mol1.getBondAt(6).setStereo(CDKConstants.STEREO_BOND_UP); String smiles3=null; try { smiles3 = sg.createSMILES(mol1, true, new boolean[mol1.getBondCount()]); } catch (Exception exc) { System.out.println(exc); if (!standAlone) { fail(); } } assertFalse(smiles1.equals(smiles3)); }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/59606b04fc4a28c30470c452644c11af7cf211fa/SmilesGeneratorTest.java/clean/src/org/openscience/cdk/test/smiles/SmilesGeneratorTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
39,
291,
1429,
1799,
287,
267,
1435,
1216,
1185,
202,
95,
565,
14881,
24096,
1749,
10598,
4855,
24096,
1749,
10598,
273,
394,
14881,
24096,
1749,
10598,
5621,
202,
202,
9552,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
202,
202,
29669,
12629,
21,
273,
394,
490,
10545,
5621,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
44,
3113,
394,
4686,
22,
72,
12,
21,
16,
374,
3719,
1769,
202,
202,
759,
404,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
39,
3113,
394,
4686,
22,
72,
12,
21,
16,
576,
3719,
1769,
202,
202,
759,
576,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
39,
3113,
394,
4686,
22,
72,
12,
21,
16,
576,
3719,
1769,
202,
202,
759,
890,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
39,
3113,
394,
4686,
22,
72,
12,
20,
16,
374,
3719,
1769,
202,
202,
759,
1059,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
39,
3113,
394,
4686,
22,
72,
12,
21,
16,
1059,
3719,
1769,
202,
202,
759,
1381,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
39,
3113,
394,
4686,
22,
72,
12,
21,
16,
1381,
3719,
1769,
202,
202,
759,
1666,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
39,
3113,
394,
4686,
22,
72,
12,
21,
16,
1666,
3719,
1769,
202,
202,
759,
2371,
202,
202,
21260,
21,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
39,
291,
1429,
1799,
287,
267,
1435,
1216,
1185,
202,
95,
565,
14881,
24096,
1749,
10598,
4855,
24096,
1749,
10598,
273,
394,
14881,
24096,
1749,
10598,
5621,
202,
202,
9552,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
202,
202,
29669,
12629,
21,
273,
394,
490,
10545,
5621,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
44,
3113,
394,
4686,
22,
72,
12,
21,
16,
374,
3719,
1769,
202,
202,
759,
404,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
39,
3113,
394,
4686,
22,
72,
12,
21,
16,
576,
3719,
1769,
202,
202,
759,
576,
202,
202,
21260,
21,
18,
1289,
3641,
12,
2704,
7149,
2932,
2
] |
_cnt387++;
|
_cnt395++;
|
protected final void mPRAGMA_CONTENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = PRAGMA_CONTENT; int _saveIndex; { { match(_tokenSet_10); } } { int _cnt387=0; _loop387: do { boolean synPredMatched383 = false; if (((LA(1)==':') && (_tokenSet_7.member(LA(2))) && (_tokenSet_7.member(LA(3))) && (_tokenSet_7.member(LA(4))))) { int _m383 = mark(); synPredMatched383 = true; inputState.guessing++; try { { match(':'); { match(_tokenSet_11); } } } catch (RecognitionException pe) { synPredMatched383 = false; } rewind(_m383); inputState.guessing--; } if ( synPredMatched383 ) { match(':'); } else { boolean synPredMatched386 = false; if (((LA(1)==':') && (LA(2)==':') && (_tokenSet_7.member(LA(3))) && (_tokenSet_7.member(LA(4))))) { int _m386 = mark(); synPredMatched386 = true; inputState.guessing++; try { { match(':'); match(':'); { match(_tokenSet_8); } } } catch (RecognitionException pe) { synPredMatched386 = false; } rewind(_m386); inputState.guessing--; } if ( synPredMatched386 ) { match(':'); match(':'); } else if ((_tokenSet_9.member(LA(1)))) { mCHAR(false); } else { if ( _cnt387>=1 ) { break _loop387; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } } _cnt387++; } while (true); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b1f955b7f1cec4172ad3be7bd2855bd3cca3e6f2/XQueryLexer.java/buggy/src/org/exist/xquery/parser/XQueryLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
8025,
1781,
5535,
67,
9689,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
11770,
1781,
5535,
67,
9689,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
95,
202,
202,
95,
202,
202,
1916,
24899,
2316,
694,
67,
2163,
1769,
202,
202,
97,
202,
202,
97,
202,
202,
95,
202,
202,
474,
389,
13085,
7414,
27,
33,
20,
31,
202,
202,
67,
6498,
7414,
27,
30,
202,
202,
2896,
288,
1082,
202,
6494,
6194,
10391,
15400,
7414,
23,
273,
629,
31,
1082,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
2497,
13,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
12,
2534,
12,
22,
20349,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
12,
2534,
12,
23,
20349,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
12,
2534,
12,
24,
3719,
20349,
288,
9506,
202,
474,
389,
81,
7414,
23,
273,
2267,
5621,
9506,
202,
11982,
10391,
15400,
7414,
23,
273,
638,
31,
9506,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
9506,
202,
698,
288,
6862,
202,
95,
6862,
202,
1916,
2668,
2497,
1769,
6862,
202,
95,
6862,
202,
1916,
24899,
2316,
694,
67,
2499,
1769,
6862,
202,
97,
6862,
202,
97,
9506,
202,
97,
9506,
202,
14683,
261,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
312,
8025,
1781,
5535,
67,
9689,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
11770,
1781,
5535,
67,
9689,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
95,
202,
202,
95,
202,
202,
1916,
24899,
2316,
694,
67,
2163,
1769,
202,
202,
97,
202,
202,
97,
202,
202,
95,
202,
202,
474,
389,
13085,
7414,
27,
33,
20,
31,
202,
202,
67,
6498,
7414,
27,
30,
202,
202,
2896,
288,
1082,
202,
6494,
6194,
10391,
15400,
2
] |
j += 4;
|
j += 2;
|
public void put(int key1, String key2, String key3, int value) { // REVISIT: Why +2? -Ac int hash = (key1+hash(key2)+hash(key3)+2) % HASHTABLE_SIZE; Object[] bucket = fHashTable[hash]; if (bucket == null) { bucket = new Object[1 + 4*INITIAL_BUCKET_SIZE]; bucket[0] = new int[]{1}; bucket[1] = new int[]{key1}; bucket[2] = key2; bucket[3] = key3; bucket[4] = new int[]{value}; fHashTable[hash] = bucket; } else { int count = ((int[])bucket[0])[0]; int offset = 1 + 4*count; if (offset == bucket.length) { int newSize = count + INITIAL_BUCKET_SIZE; Object[] newBucket = new Object[1 + 4*newSize]; System.arraycopy(bucket, 0, newBucket, 0, offset); bucket = newBucket; fHashTable[hash] = bucket; } boolean found = false; int j=1; for (int i=0; i<count; i++){ if ( ((int[])bucket[j])[0] == key1 && (String)bucket[j+1] == key2 && (String)bucket[j+2] == key3 ) { ((int[])bucket[j+3])[0] = value; found = true; break; } j += 4; } if (! found) { bucket[offset++] = new int[]{key1}; bucket[offset++] = key2; bucket[offset++] = key3; bucket[offset]= new int[]{value}; ((int[])bucket[0])[0] = ++count; } } //System.out.println("put("+key1+','+key2+','+key3+" -> "+value+')'); //System.out.println("get("+key1+','+key2+','+key3+") -> "+get(key1,key2,key3)); } // put(int,String,String,int)
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/36f83a9a264468b4c48704319105a07fc36f7d2f/AbstractDTDGrammar.java/buggy/src/org/apache/xerces/impl/dtd/AbstractDTDGrammar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1378,
12,
474,
498,
21,
16,
514,
498,
22,
16,
514,
498,
23,
16,
509,
460,
13,
288,
5411,
368,
2438,
26780,
1285,
30,
3497,
93,
397,
22,
35,
300,
9988,
5411,
509,
1651,
273,
261,
856,
21,
15,
2816,
12,
856,
22,
27921,
2816,
12,
856,
23,
27921,
22,
13,
738,
20857,
7775,
67,
4574,
31,
5411,
1033,
8526,
2783,
273,
284,
2310,
1388,
63,
2816,
15533,
5411,
309,
261,
7242,
422,
446,
13,
288,
7734,
2783,
273,
394,
1033,
63,
21,
397,
1059,
14,
28497,
67,
28888,
67,
4574,
15533,
7734,
2783,
63,
20,
65,
273,
394,
509,
63,
7073,
21,
20451,
7734,
2783,
63,
21,
65,
273,
394,
509,
63,
7073,
856,
21,
20451,
7734,
2783,
63,
22,
65,
273,
498,
22,
31,
7734,
2783,
63,
23,
65,
273,
498,
23,
31,
7734,
2783,
63,
24,
65,
273,
394,
509,
63,
7073,
1132,
20451,
7734,
284,
2310,
1388,
63,
2816,
65,
273,
2783,
31,
5411,
289,
469,
288,
7734,
509,
1056,
273,
14015,
474,
63,
5717,
7242,
63,
20,
5717,
63,
20,
15533,
7734,
509,
1384,
273,
404,
397,
1059,
14,
1883,
31,
7734,
309,
261,
3348,
422,
2783,
18,
2469,
13,
288,
10792,
509,
21402,
273,
1056,
397,
28226,
67,
28888,
67,
4574,
31,
10792,
1033,
8526,
394,
4103,
273,
394,
1033,
63,
21,
397,
1059,
14,
2704,
1225,
15533,
10792,
2332,
18,
1126,
3530,
12,
7242,
16,
374,
16,
394,
4103,
16,
374,
16,
1384,
1769,
10792,
2783,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1378,
12,
474,
498,
21,
16,
514,
498,
22,
16,
514,
498,
23,
16,
509,
460,
13,
288,
5411,
368,
2438,
26780,
1285,
30,
3497,
93,
397,
22,
35,
300,
9988,
5411,
509,
1651,
273,
261,
856,
21,
15,
2816,
12,
856,
22,
27921,
2816,
12,
856,
23,
27921,
22,
13,
738,
20857,
7775,
67,
4574,
31,
5411,
1033,
8526,
2783,
273,
284,
2310,
1388,
63,
2816,
15533,
5411,
309,
261,
7242,
422,
446,
13,
288,
7734,
2783,
273,
394,
1033,
63,
21,
397,
1059,
14,
28497,
67,
28888,
67,
4574,
15533,
7734,
2783,
63,
20,
65,
273,
394,
509,
63,
7073,
21,
20451,
7734,
2783,
63,
21,
65,
273,
394,
509,
63,
7073,
856,
21,
2
] |
AST tmp349_AST = null; tmp349_AST = astFactory.create(LT(1));
|
AST tmp350_AST = null; if (inputState.guessing==0) { tmp350_AST = astFactory.create(LT(1)); }
|
public final void balancedBrackets() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST balancedBrackets_AST = null; switch ( LA(1)) { case LPAREN: { AST tmp345_AST = null; tmp345_AST = astFactory.create(LT(1)); match(LPAREN); balancedTokens(); AST tmp346_AST = null; tmp346_AST = astFactory.create(LT(1)); match(RPAREN); break; } case LBRACK: { AST tmp347_AST = null; tmp347_AST = astFactory.create(LT(1)); match(LBRACK); balancedTokens(); AST tmp348_AST = null; tmp348_AST = astFactory.create(LT(1)); match(RBRACK); break; } case LCURLY: { AST tmp349_AST = null; tmp349_AST = astFactory.create(LT(1)); match(LCURLY); balancedTokens(); AST tmp350_AST = null; tmp350_AST = astFactory.create(LT(1)); match(RCURLY); break; } case STRING_CTOR_START: { AST tmp351_AST = null; tmp351_AST = astFactory.create(LT(1)); match(STRING_CTOR_START); balancedTokens(); AST tmp352_AST = null; tmp352_AST = astFactory.create(LT(1)); match(STRING_CTOR_END); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = balancedBrackets_AST; }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27957314a380e54096257a6753ad9d316ee78892/GroovyRecognizer.java/buggy/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
11013,
72,
23029,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
11013,
72,
23029,
67,
9053,
273,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
15111,
30,
202,
202,
95,
1082,
202,
9053,
1853,
25574,
67,
9053,
273,
446,
31,
1082,
202,
5645,
25574,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
1916,
12,
48,
15111,
1769,
1082,
202,
12296,
72,
5157,
5621,
1082,
202,
9053,
1853,
5026,
26,
67,
9053,
273,
446,
31,
1082,
202,
5645,
5026,
26,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
1916,
12,
54,
15111,
1769,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
511,
7192,
3649,
30,
202,
202,
95,
1082,
202,
9053,
1853,
5026,
27,
67,
9053,
273,
446,
31,
1082,
202,
5645,
5026,
27,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
1916,
12,
48,
7192,
3649,
1769,
1082,
202,
12296,
72,
5157,
5621,
1082,
202,
9053,
1853,
5026,
28,
67,
9053,
273,
446,
31,
1082,
202,
5645,
5026,
28,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
1916,
12,
54,
7192,
3649,
1769,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
511,
26314,
30,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
11013,
72,
23029,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
11013,
72,
23029,
67,
9053,
273,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
15111,
30,
202,
202,
95,
1082,
202,
9053,
1853,
25574,
67,
9053,
273,
446,
31,
1082,
202,
5645,
25574,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
1916,
12,
48,
15111,
1769,
1082,
202,
12296,
72,
5157,
5621,
1082,
202,
9053,
1853,
5026,
26,
67,
9053,
273,
446,
31,
1082,
202,
5645,
5026,
26,
67,
2
] |
public void completedInit() {
|
public synchronized void completedInit() {
|
public void completedInit() { Iterator i = originalFiles.iterator(); while(i.hasNext()) { File f = (File) (i.next()); f.delete(); } }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/87283290aa494832b974adec87a0fb667dee1899/PersistentTempBucketFactory.java/clean/src/freenet/support/io/PersistentTempBucketFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5951,
2570,
1435,
288,
202,
202,
3198,
277,
273,
2282,
2697,
18,
9838,
5621,
202,
202,
17523,
12,
77,
18,
5332,
2134,
10756,
288,
1082,
202,
812,
284,
273,
261,
812,
13,
261,
77,
18,
4285,
10663,
1082,
202,
74,
18,
3733,
5621,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5951,
2570,
1435,
288,
202,
202,
3198,
277,
273,
2282,
2697,
18,
9838,
5621,
202,
202,
17523,
12,
77,
18,
5332,
2134,
10756,
288,
1082,
202,
812,
284,
273,
261,
812,
13,
261,
77,
18,
4285,
10663,
1082,
202,
74,
18,
3733,
5621,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
warn("Bond: ref #" + curRef);
|
logger.debug("Bond: ref #" + curRef);
|
public void characterData (char ch[], int start, int length) { // warn("CD"); String s = toString(ch, start, length).trim(); switch (CurrentElement) { case STRING : warn("Builtin: " + BUILTIN); if (BUILTIN.equals("elementType")) { warn("Element: " + s.trim()); elsym.addElement(s); } else if (BUILTIN.equals("atomRef")) { curRef++; warn("Bond: ref #" + curRef); if (curRef == 1) { bondARef1.addElement(s.trim()); } else if (curRef == 2) { bondARef2.addElement(s.trim()); } } else if (BUILTIN.equals("order")) { warn("Bond: order " + s.trim()); order.addElement(s.trim()); } else if (BUILTIN.equals("formalCharge")) { warn("Charge: " + s.trim()); elcharge.addElement(s.trim()); } break; case FLOAT : if (BUILTIN.equals("x3")) { x3.addElement(s.trim()); } else if (BUILTIN.equals("y3")) { y3.addElement(s.trim()); } else if (BUILTIN.equals("z3")) { z3.addElement(s.trim()); } else if (BUILTIN.equals("x2")) { x2.addElement(s.trim()); } else if (BUILTIN.equals("y2")) { y2.addElement(s.trim()); } break; case COORDINATE2 : if (BUILTIN.equals("xy2")) { warn("New coord found." + s); try { StringTokenizer st = new StringTokenizer(s); x2.addElement(st.nextToken()); y2.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 175,1); } } break; case COORDINATE3 : if (BUILTIN.equals("xyz3")) { warn("New coord found." + s); try { StringTokenizer st = new StringTokenizer(s); x3.addElement(st.nextToken()); y3.addElement(st.nextToken()); z3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 175,1); } } break; case STRINGARRAY : if (BUILTIN.equals("id")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); warn("StringArray (Token): " + token); elid.addElement(token); } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 186,1); } } else if (BUILTIN.equals("elementType")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) elsym.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 194,1); } } else if (BUILTIN.equals("atomRefs")) { curRef++; warn("New atomRefs found: " + curRef); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); warn("Token: " + token); if (curRef == 1) { bondARef1.addElement(token); } else if (curRef == 2) { bondARef2.addElement(token); } } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 194,1); } } else if (BUILTIN.equals("order")) { warn("New bond order found."); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); warn("Token: " + token); order.addElement(token); } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 194,1); } } break; case INTEGERARRAY : System.out.println("IntegerArray: builtin = " + BUILTIN); if (BUILTIN.equals("formalCharge")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); System.out.println("Charge added: " + token); elcharge.addElement(token); } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 205,1); } } case FLOATARRAY : if (BUILTIN.equals("x3")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) x3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 205,1); } } else if (BUILTIN.equals("y3")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) y3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 213,1); } } else if (BUILTIN.equals("z3")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) z3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 221,1); } } else if (BUILTIN.equals("x2")) { warn("New floatArray found."); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) x2.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 205,1); } } else if (BUILTIN.equals("y2")) { warn("New floatArray found."); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) y2.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 213,1); } } break; } }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/e04a2bbd6afdac34488441c1ce22ad5f73d254ff/Convention.java/buggy/org/openscience/cdk/io/cml/Convention.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
759,
1894,
2932,
10160,
8863,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
9469,
294,
202,
565,
1894,
2932,
28032,
30,
315,
397,
10937,
2627,
56,
706,
1769,
202,
565,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
2956,
559,
6,
3719,
288,
202,
202,
8935,
2932,
1046,
30,
315,
397,
272,
18,
5290,
10663,
202,
202,
292,
8117,
18,
1289,
1046,
12,
87,
1769,
1082,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
7466,
1957,
6,
3719,
288,
202,
202,
1397,
1957,
9904,
31,
202,
202,
8935,
2932,
9807,
30,
1278,
31526,
397,
662,
1957,
1769,
202,
202,
430,
261,
1397,
1957,
422,
404,
13,
288,
1082,
565,
8427,
37,
1957,
21,
18,
1289,
1046,
12,
87,
18,
5290,
10663,
202,
202,
97,
469,
309,
261,
1397,
1957,
422,
576,
13,
288,
1082,
565,
8427,
37,
1957,
22,
18,
1289,
1046,
12,
87,
18,
5290,
10663,
202,
202,
97,
202,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
1019,
6,
3719,
288,
202,
202,
8935,
2932,
9807,
30,
1353,
315,
397,
272,
18,
5290,
10663,
202,
202,
1019,
18,
1289,
1046,
12,
87,
18,
5290,
10663,
202,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
687,
287,
17649,
6,
3719,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
759,
1894,
2932,
10160,
8863,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
9469,
294,
202,
565,
1894,
2932,
28032,
30,
315,
397,
10937,
2627,
56,
706,
1769,
202,
565,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
2956,
559,
6,
3719,
288,
202,
202,
8935,
2932,
1046,
30,
315,
397,
272,
18,
5290,
10663,
202,
202,
292,
8117,
18,
1289,
1046,
12,
87,
1769,
1082,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
7466,
1957,
6,
3719,
288,
202,
202,
2
] |
if (descriptor != null) { final Object element = descriptor.getElement(); removeMapping(element, node); }
|
final Object element = descriptor.getElement(); removeMapping(element, node);
|
private void disposeNode(DefaultMutableTreeNode node) { if (node.getChildCount() > 0) { for (DefaultMutableTreeNode _node = (DefaultMutableTreeNode)node.getFirstChild(); _node != null; _node = _node.getNextSibling()) { disposeNode(_node); } } if (node instanceof LoadingNode) return; NodeDescriptor descriptor = (NodeDescriptor)node.getUserObject(); if (descriptor != null) { final Object element = descriptor.getElement(); removeMapping(element, node); } node.setUserObject(null); node.removeAllChildren(); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/58d7e940e66891bde34d0c9eeaafa8768bbe9870/AbstractTreeBuilder.java/clean/openapi/src/com/intellij/ide/util/treeView/AbstractTreeBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
15825,
907,
12,
1868,
19536,
12513,
756,
13,
288,
565,
309,
261,
2159,
18,
588,
1763,
1380,
1435,
405,
374,
13,
288,
1377,
364,
261,
1868,
19536,
12513,
389,
2159,
273,
261,
1868,
19536,
12513,
13,
2159,
18,
588,
3759,
1763,
5621,
389,
2159,
480,
446,
31,
389,
2159,
273,
389,
2159,
18,
588,
2134,
10291,
10756,
288,
3639,
15825,
907,
24899,
2159,
1769,
1377,
289,
565,
289,
565,
309,
261,
2159,
1276,
4444,
310,
907,
13,
327,
31,
565,
2029,
3187,
4950,
273,
261,
907,
3187,
13,
2159,
18,
588,
1299,
921,
5621,
565,
309,
261,
12628,
480,
446,
13,
288,
1377,
727,
1033,
930,
273,
4950,
18,
21336,
5621,
1377,
1206,
3233,
12,
2956,
16,
756,
1769,
565,
289,
565,
756,
18,
542,
1299,
921,
12,
2011,
1769,
565,
756,
18,
4479,
1595,
4212,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
15825,
907,
12,
1868,
19536,
12513,
756,
13,
288,
565,
309,
261,
2159,
18,
588,
1763,
1380,
1435,
405,
374,
13,
288,
1377,
364,
261,
1868,
19536,
12513,
389,
2159,
273,
261,
1868,
19536,
12513,
13,
2159,
18,
588,
3759,
1763,
5621,
389,
2159,
480,
446,
31,
389,
2159,
273,
389,
2159,
18,
588,
2134,
10291,
10756,
288,
3639,
15825,
907,
24899,
2159,
1769,
1377,
289,
565,
289,
565,
309,
261,
2159,
1276,
4444,
310,
907,
13,
327,
31,
565,
2029,
3187,
4950,
273,
261,
907,
3187,
13,
2159,
18,
588,
1299,
921,
5621,
565,
309,
261,
12628,
480,
446,
13,
288,
1377,
727,
1033,
930,
273,
4950,
18,
21336,
5621,
1377,
1206,
3233,
12,
2956,
2
] |
quitButton = ButtonFactory.createButton(langpack.getString("installer.quit"), icons.getImageIcon("stop"), installdata.buttonsHColor);
|
quitButton = ButtonFactory.createButton( langpack.getString("installer.quit"), icons.getImageIcon("stop"), installdata.buttonsHColor);
|
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.addMouseMotionListener( new MouseMotionAdapter() { }); glassPane.addKeyListener( new KeyAdapter() { }); // We set the layout & prepare the constraint object contentPane = (JPanel) getContentPane(); contentPane.setLayout(new BorderLayout());//layout); // We add the panels container panelsContainer = new JPanel(); panelsContainer.setBorder(BorderFactory.createEmptyBorder(10,10,0,10)); panelsContainer.setLayout(new GridLayout(1, 1)); contentPane.add(panelsContainer,BorderLayout.CENTER); // We put the first panel installdata.curPanelNumber = 0; IzPanel panel_0 = (IzPanel) installdata.panels.get(0); panelsContainer.add(panel_0); // We add the navigation buttons & labels NavigationHandler navHandler = new NavigationHandler(); JPanel navPanel = new JPanel(); navPanel.setLayout(new BoxLayout(navPanel, BoxLayout.X_AXIS)); navPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(8,8,8,8), BorderFactory.createTitledBorder(new EtchedLineBorder(), langpack.getString("installer.madewith")+" "))); navPanel.add(Box.createHorizontalGlue()); prevButton = ButtonFactory.createButton(langpack.getString("installer.prev"), icons.getImageIcon("stepback"), installdata.buttonsHColor); navPanel.add(prevButton); prevButton.addActionListener(navHandler); navPanel.add(Box.createRigidArea(new Dimension(5, 0))); nextButton = ButtonFactory.createButton(langpack.getString("installer.next"), icons.getImageIcon("stepforward"), installdata.buttonsHColor); navPanel.add(nextButton); nextButton.addActionListener(navHandler); navPanel.add(Box.createRigidArea(new Dimension(5, 0))); quitButton = ButtonFactory.createButton(langpack.getString("installer.quit"), icons.getImageIcon("stop"), installdata.buttonsHColor); navPanel.add(quitButton); quitButton.addActionListener(navHandler); contentPane.add(navPanel,BorderLayout.SOUTH); try { ResourceManager rm = ResourceManager.getInstance(); ImageIcon icon = rm.getImageIconResource("Installer.image"); if (icon != null) { JPanel imgPanel = new JPanel(); imgPanel.setLayout(new BorderLayout()); imgPanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,0)); JLabel label = new JLabel(icon); label.setBorder(BorderFactory.createLoweredBevelBorder()); imgPanel.add(label,BorderLayout.CENTER); contentPane.add(imgPanel,BorderLayout.WEST); } } catch (Exception e) { //ignore } getRootPane().setDefaultButton(nextButton); }
|
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1361,
43,
5370,
1435,
225,
288,
565,
368,
11511,
326,
2623,
4126,
565,
21481,
2040,
12,
14516,
18,
588,
2040,
5554,
2932,
46,
3219,
5554,
20387,
588,
2040,
10663,
565,
368,
2962,
84,
4807,
326,
314,
459,
13618,
358,
1203,
326,
13238,
13581,
1347,
3577,
565,
24048,
314,
459,
8485,
273,
261,
46,
5537,
13,
7162,
459,
8485,
5621,
565,
314,
459,
8485,
18,
1289,
9186,
2223,
12,
1377,
394,
17013,
4216,
1435,
1377,
288,
1377,
15549,
565,
314,
459,
8485,
18,
1289,
9186,
29360,
2223,
12,
1377,
394,
17013,
29360,
4216,
1435,
1377,
288,
1377,
15549,
565,
314,
459,
8485,
18,
1289,
653,
2223,
12,
1377,
394,
1929,
4216,
1435,
1377,
288,
1377,
15549,
565,
368,
1660,
444,
326,
3511,
473,
2911,
326,
4954,
733,
565,
913,
8485,
273,
261,
46,
5537,
13,
5154,
8485,
5621,
565,
913,
8485,
18,
542,
3744,
12,
2704,
30814,
10663,
759,
6741,
1769,
565,
368,
1660,
527,
326,
20582,
1478,
565,
20582,
2170,
273,
394,
24048,
5621,
565,
20582,
2170,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
1921,
8107,
12,
2163,
16,
2163,
16,
20,
16,
2163,
10019,
565,
20582,
2170,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
404,
10019,
565,
913,
8485,
18,
1289,
12,
7355,
10558,
2170,
16,
8107,
3744,
18,
19835,
1769,
565,
368,
1660,
1378,
326,
1122,
6594,
565,
3799,
892,
18,
1397,
5537,
1854,
273,
374,
31,
565,
467,
94,
5537,
6594,
67,
20,
273,
261,
45,
94,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1361,
43,
5370,
1435,
225,
288,
565,
368,
11511,
326,
2623,
4126,
565,
21481,
2040,
12,
14516,
18,
588,
2040,
5554,
2932,
46,
3219,
5554,
20387,
588,
2040,
10663,
565,
368,
2962,
84,
4807,
326,
314,
459,
13618,
358,
1203,
326,
13238,
13581,
1347,
3577,
565,
24048,
314,
459,
8485,
273,
261,
46,
5537,
13,
7162,
459,
8485,
5621,
565,
314,
459,
8485,
18,
1289,
9186,
2223,
12,
1377,
394,
17013,
4216,
1435,
1377,
288,
1377,
15549,
565,
314,
459,
8485,
18,
1289,
9186,
29360,
2223,
12,
1377,
394,
17013,
29360,
4216,
1435,
1377,
288,
1377,
15549,
565,
314,
459,
8485,
18,
1289,
653,
2223,
12,
1377,
394,
1929,
4216,
1435,
1377,
288,
1377,
15549,
565,
2
] |
if(finished) { }
|
public void start() throws InserterException { for(int i=0;i<segments.length;i++) segments[i].start(); if(finished) { // FIXME call callback with metadata etc } if(countDataBlocks > 32) parent.onMajorProgress(); }
|
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/6c1888a7d0b7ade2afd55e520e12835a5b88ba96/SplitFileInserter.java/clean/src/freenet/client/async/SplitFileInserter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
1435,
1216,
657,
550,
387,
503,
288,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
12838,
18,
2469,
31,
77,
27245,
1082,
202,
12838,
63,
77,
8009,
1937,
5621,
9506,
202,
430,
12,
13527,
13,
288,
1082,
202,
759,
9852,
745,
1348,
598,
1982,
5527,
202,
202,
97,
202,
202,
430,
12,
1883,
751,
6450,
405,
3847,
13,
1082,
202,
2938,
18,
265,
17581,
5491,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
1435,
1216,
657,
550,
387,
503,
288,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
12838,
18,
2469,
31,
77,
27245,
1082,
202,
12838,
63,
77,
8009,
1937,
5621,
9506,
202,
430,
12,
13527,
13,
288,
1082,
202,
759,
9852,
745,
1348,
598,
1982,
5527,
202,
202,
97,
202,
202,
430,
12,
1883,
751,
6450,
405,
3847,
13,
1082,
202,
2938,
18,
265,
17581,
5491,
5621,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
"\\vbox(0.0pt+0.0pt)x0.0pt\n" + ".\\hbox(0.0pt+0.0pt)x0.0pt\n" +
|
"\\vbox(8.0pt+0.0pt)x123.0pt\n" + ".\\hbox(8.0pt+0.0pt)x123.0pt\n" +
|
public void test1() throws Exception { assertSuccess(showNodesProperties(), //--- input code --- "\\hsize=123pt abc\\par def\\end ", //--- output channel --- "\\vbox(0.0pt+0.0pt)x0.0pt\n" + // ".\\hbox(0.0pt+0.0pt)x0.0pt\n" + // "..a\n" + // "..b\n" + // "..c\n" + // "\\vbox(0.0pt+0.0pt)x0.0pt\n" + // ".\\hbox(0.0pt+0.0pt)x0.0pt\n" + // "..d\n" + // "..e\n" + // "..f\n"); }
|
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/087a5dbdea909728dac7161af34d46dde21c96fb/ParTest.java/clean/ExTeX/src/test/de/dante/extex/interpreter/primitives/typesetter/paragraph/ParTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
21,
1435,
1216,
1185,
288,
3639,
1815,
4510,
12,
4500,
3205,
2297,
9334,
3639,
368,
6062,
810,
981,
9948,
7734,
8422,
76,
1467,
33,
12936,
337,
20011,
1695,
1065,
1652,
1695,
409,
3104,
7734,
368,
6062,
876,
1904,
9948,
7734,
8422,
90,
2147,
12,
20,
18,
20,
337,
15,
20,
18,
20,
337,
13,
92,
20,
18,
20,
337,
64,
82,
6,
397,
368,
7734,
3552,
1695,
76,
2147,
12,
20,
18,
20,
337,
15,
20,
18,
20,
337,
13,
92,
20,
18,
20,
337,
64,
82,
6,
397,
368,
7734,
315,
838,
69,
64,
82,
6,
397,
368,
7734,
315,
838,
70,
64,
82,
6,
397,
368,
7734,
315,
838,
71,
64,
82,
6,
397,
368,
7734,
8422,
90,
2147,
12,
20,
18,
20,
337,
15,
20,
18,
20,
337,
13,
92,
20,
18,
20,
337,
64,
82,
6,
397,
368,
7734,
3552,
1695,
76,
2147,
12,
20,
18,
20,
337,
15,
20,
18,
20,
337,
13,
92,
20,
18,
20,
337,
64,
82,
6,
397,
368,
7734,
315,
838,
72,
64,
82,
6,
397,
368,
7734,
315,
838,
73,
64,
82,
6,
397,
368,
7734,
315,
838,
74,
64,
82,
8863,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
21,
1435,
1216,
1185,
288,
3639,
1815,
4510,
12,
4500,
3205,
2297,
9334,
3639,
368,
6062,
810,
981,
9948,
7734,
8422,
76,
1467,
33,
12936,
337,
20011,
1695,
1065,
1652,
1695,
409,
3104,
7734,
368,
6062,
876,
1904,
9948,
7734,
8422,
90,
2147,
12,
20,
18,
20,
337,
15,
20,
18,
20,
337,
13,
92,
20,
18,
20,
337,
64,
82,
6,
397,
368,
7734,
3552,
1695,
76,
2147,
12,
20,
18,
20,
337,
15,
20,
18,
20,
337,
13,
92,
20,
18,
20,
337,
64,
82,
6,
397,
368,
7734,
315,
838,
69,
64,
82,
6,
397,
368,
7734,
315,
838,
70,
64,
82,
6,
397,
368,
7734,
315,
838,
71,
64,
82,
6,
2
] |
editorSelector.add(getRelatedContentItemsContainer()); editorSelector.setSelectedId(ARTICLE_EDITOR_ID, true); return editorSelector;
|
return mainContainer;
|
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(HEADLINE_ID); em.addErrorMessage(TEASER_ID);// em.addErrorMessage(PUBLISHED_FROM_DATE_ID);// em.addErrorMessage(PUBLISHED_TO_DATE_ID); em.addErrorMessage(SAVE_ID); mainContainer.add(em); HtmlPanelGrid p = WFPanelUtil.getPlainFormPanel(2); //Language dropdown p.getChildren().add(WFUtil.group(localizer.getTextVB("language"), WFUtil.getText(":"))); Iterator iter = ICLocaleBusiness.getListOfLocalesJAVA().iterator(); HtmlSelectOneMenu langDropdown = new HtmlSelectOneMenu(); List arrayList = new ArrayList(); while(iter.hasNext()) { Locale locale = (Locale)iter.next(); String keyStr = locale.getLanguage(); String langStr = locale.getDisplayLanguage(); SelectItem itemTemp = new SelectItem(keyStr, langStr, keyStr, false); arrayList.add(itemTemp); } UISelectItems items = new UISelectItems(); items.setId(LOCALE_ID); items.setValue(arrayList); langDropdown.getChildren().add(items); ValueBinding vb = WFUtil.createValueBinding("#{" + ref +"contentLanguage" + "}"); langDropdown.setValueBinding("value", vb); langDropdown.getValue(); langDropdown.addValueChangeListener(this); langDropdown.setImmediate(true); langDropdown.setOnchange("submit();"); p.getChildren().add(langDropdown); p.getChildren().add(WFUtil.group(localizer.getTextVB("headline"), WFUtil.getText(":")));// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "language"), WFUtil.getText(":"))); HtmlInputText headlineInput = WFUtil.getInputText(HEADLINE_ID, ref + "headline"); headlineInput.setSize(70); p.getChildren().add(headlineInput); //HtmlSelectOneMenu localeMenu = WFUtil.getSelectOneMenu(LOCALE_ID, ref + "allLocales", ref + "pendingLocaleId"); //localeMenu.setOnchange("document.forms[0].submit();"); //p.getChildren().add(localeMenu); p.getChildren().add(WFUtil.group(localizer.getTextVB("author"), WFUtil.getText(":"))); HtmlInputText authorInput = WFUtil.getInputText(AUTHOR_ID, ref + "author"); authorInput.setSize(70); User user = iwc.getCurrentUser(); if(user!=null){ String userName = user.getName(); getArticleItemBean().setAuthor(userName); } p.getChildren().add(authorInput); //Article body p.getChildren().add(WFUtil.group(localizer.getTextVB("body"), WFUtil.getText(":"))); HTMLArea bodyArea = WFUtil.getHtmlAreaTextArea(BODY_ID, ref + "body", "500px", "400px"); //HTMLArea bodyArea = WFUtil.getHtmlAreaTextArea(BODY_ID, ref + "body"); /*bodyArea.addPlugin(HTMLArea.PLUGIN_TABLE_OPERATIONS); bodyArea.addPlugin(HTMLArea.PLUGIN_DYNAMIC_CSS, "3"); bodyArea.addPlugin(HTMLArea.PLUGIN_CSS, "3"); bodyArea.addPlugin(HTMLArea.PLUGIN_CONTEXT_MENU); bodyArea.addPlugin(HTMLArea.PLUGIN_LIST_TYPE); bodyArea.addPlugin(HTMLArea.PLUGIN_CHARACTER_MAP); */ bodyArea.setAllowFontSelection(false); //bodyArea.addPlugin("TableOperations"); //bodyArea.addPlugin("Template"); //bodyArea.addPlugin("Forms"); //bodyArea.addPlugin("FormOperations"); //bodyArea.addPlugin("EditTag"); //bodyArea.addPlugin("Stylist"); //bodyArea.addPlugin("CSS"); //bodyArea.addPlugin("DynamicCSS"); //bodyArea.addPlugin("FullPage"); //bodyArea.addPlugin("NoteServer"); //bodyArea.addPlugin("QuickTag"); //bodyArea.addPlugin("InsertSmiley"); //bodyArea.addPlugin("InsertWords"); //bodyArea.addPlugin("ContextMenu"); //bodyArea.addPlugin("LangMarks"); //bodyArea.addPlugin("DoubleClick"); //bodyArea.addPlugin("ListType"); //bodyArea.addPlugin("ImageManager"); p.getChildren().add(WFUtil.group(bodyArea, WFUtil.getBreak())); p.getChildren().add(WFUtil.group(localizer.getTextVB("teaser"), WFUtil.getText(":"))); HtmlInputTextarea teaserArea = WFUtil.getTextArea(TEASER_ID, ref + "teaser", "500px", "60px"); p.getChildren().add(teaserArea); p.getChildren().add(WFUtil.group(localizer.getTextVB("source"), WFUtil.getText(":"))); HtmlInputText sourceArea = WFUtil.getInputText(SOURCE_ID, ref + "source"); sourceArea.setSize(70); p.getChildren().add(sourceArea); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak()); // p = WFPanelUtil.getPlainFormPanel(1);/* p.getChildren().add(WFUtil.group(WFUtil.getHeaderTextVB(bref + "created"), WFUtil.getTextVB(ref + "creationDate") ));*/// p.getChildren().add(WFUtil.getText(" "));// UIComponent t = WFUtil.group(localizer.getHeaderTextVB("status"), WFUtil.getText(": "));// t.getChildren().add(WFUtil.getTextVB(ref + "status"));// p.getChildren().add(t); p.getChildren().add(WFUtil.group(localizer.getTextVB("status"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getTextVB(ref + "status")); p.getChildren().add(WFUtil.group(localizer.getTextVB("current_version"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getTextVB(ref + "versionName")); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak()); // p = WFPanelUtil.getFormPanel(2); p.getChildren().add(WFUtil.group(localizer.getTextVB("comment"), WFUtil.getText(":")));// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "attachments"), WFUtil.getText(":"))); HtmlInputTextarea commentArea = WFUtil.getTextArea(COMMENT_ID, ref + "comment", "500px", "60px"); p.getChildren().add(commentArea);// WFContainer attachmentContainer = new WFContainer();// attachmentContainer.add(WFUtil.getButtonVB(ADD_ATTACHMENT_ID, bref + "add_attachment", this));// attachmentContainer.add(WFUtil.getBreak());// attachmentContainer.add(getAttachmentList());// p.getChildren().add(attachmentContainer); // mainContainer.add(p); // p = WFPanelUtil.getFormPanel(1);// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "related_content_items"), WFUtil.getText(":"))); // WFContainer contentItemContainer = new WFContainer(); // contentItemContainer.add(WFUtil.getButtonVB(ADD_RELATED_CONTENT_ITEM_ID, bref + "add_content_item", this));// contentItemContainer.add(WFUtil.getBreak());// contentItemContainer.add(getRelatedContentItemsList());// p.getChildren().add(contentItemContainer);// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "publishing_date"), WFUtil.getText(":"))); // WFDateInput publishedFromInput = WFUtil.getDateInput(PUBLISHED_FROM_DATE_ID, ref + "case.publishedFromDate");// publishedFromInput.setShowTime(true);// p.getChildren().add(publishedFromInput);// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "expiration_date"), WFUtil.getText(":"))); // WFDateInput publishedToInput = WFUtil.getDateInput(PUBLISHED_TO_DATE_ID, ref + "case.publishedToDate");// publishedToInput.setShowTime(true);// p.getChildren().add(publishedToInput); // mainContainer.add(p); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak());// mainContainer.add(WFUtil.getBreak());// p = WFPanelUtil.getPlainFormPanel(1);// HtmlCommandButton editCategoriesButton = WFUtil.getButtonVB(EDIT_CATEGORIES_ID, bref + "edit_categories", this);// p.getChildren().add(editCategoriesButton); //Temporary taking away folderr location/* p.getChildren().add(WFUtil.group(localizer.getTextVB("folder"), WFUtil.getText(":"))); HtmlInputText folderInput = WFUtil.getInputText(FOLDER_ID, ref + "folderLocation"); if(null==folderInput.getValue() || "".equals(folderInput.getValue())) { String FolderString = ArticleUtil.getArticleYearMonthPath();// System.out.println("Folder "+FolderString); folderInput.setValue(FolderString); } else { File file = new File(folderInput.getValue().toString()); folderInput.setValue(file.getParentFile().getParent()); } folderInput.setSize(70); p.getChildren().add(folderInput); */ p.getChildren().add(WFUtil.getBreak()); //Categories// WebDAVCategories categoriesUI = new WebDAVCategories(); ArticleItemBean articleItemBean = (ArticleItemBean) WFUtil.getBeanInstance(ARTICLE_ITEM_BEAN_ID); String resourcePath = articleItemBean.getArticleResourcePath(); categoriesUI.setResourcePath(resourcePath); p.getChildren().add(categoriesUI); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak());// WFComponentSelector cs = new WFComponentSelector();// cs.setId(BUTTON_SELECTOR_ID);// cs.setDividerText(" "); HtmlCommandButton saveButton = localizer.getButtonVB(SAVE_ID, "save", this);// HtmlCommandButton saveButton = WFUtil.getButtonVB(SAVE_ID, WFPage.CONTENT_BUNDLE + "save", this);// cs.add(saveButton);// cs.add(WFUtil.getButtonVB(FOR_REVIEW_ID, bref + "for_review", this));// cs.add(WFUtil.getButtonVB(PUBLISH_ID, bref + "publish", this));// cs.add(WFUtil.getButtonVB(REWRITE_ID, bref + "rewrite", this));// cs.add(WFUtil.getButtonVB(REJECT_ID, bref + "reject", this));// cs.add(WFUtil.getButtonVB(DELETE_ID, bref + "delete", this));// cs.add(WFUtil.getButtonVB(CANCEL_ID, bref + "cancel", this));// cs.setSelectedId(CANCEL_ID, true);// p.getChildren().add(cs); p.getChildren().add(saveButton); mainContainer.add(p); WFComponentSelector editorSelector = new WFComponentSelector(); editorSelector.setId(EDITOR_SELECTOR_ID); editorSelector.add(mainContainer); editorSelector.add(getCategoryEditContainer());// FileUploadForm f = new FileUploadForm(this, FILE_UPLOAD_ID, FILE_UPLOAD_CANCEL_ID); editorSelector.add(getRelatedContentItemsContainer()); editorSelector.setSelectedId(ARTICLE_EDITOR_ID, true); return editorSelector; }
|
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/7493a23b4d95bba0468c9c8438a4f930b908ebf1/EditArticleView.java/clean/src/java/com/idega/block/article/component/EditArticleView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
18907,
21221,
2170,
1435,
288,
9506,
202,
45,
59,
1042,
25522,
71,
273,
467,
59,
1042,
18,
588,
1442,
5621,
202,
202,
59,
42,
1420,
1304,
1191,
1824,
273,
678,
42,
1420,
1304,
18,
588,
1420,
1304,
7880,
5621,
202,
202,
780,
1278,
273,
6052,
56,
2871,
900,
67,
12674,
67,
23703,
67,
734,
397,
4585,
31,
759,
202,
202,
780,
324,
1734,
273,
678,
42,
1964,
18,
9689,
67,
30245,
397,
4585,
31,
202,
202,
59,
42,
2170,
2774,
2170,
273,
394,
678,
42,
2170,
5621,
202,
202,
5254,
2170,
18,
542,
548,
12,
4928,
2871,
900,
67,
13208,
67,
734,
1769,
202,
202,
59,
42,
668,
5058,
801,
273,
394,
678,
42,
668,
5058,
5621,
202,
202,
351,
18,
1289,
14935,
12,
12458,
5997,
67,
734,
1769,
202,
202,
351,
18,
1289,
14935,
12,
1448,
37,
2123,
67,
734,
1769,
759,
202,
202,
351,
18,
1289,
14935,
12,
22224,
2056,
67,
11249,
67,
4594,
67,
734,
1769,
759,
202,
202,
351,
18,
1289,
14935,
12,
22224,
2056,
67,
4296,
67,
4594,
67,
734,
1769,
202,
202,
351,
18,
1289,
14935,
12,
25242,
67,
734,
1769,
9506,
202,
5254,
2170,
18,
1289,
12,
351,
1769,
202,
202,
4353,
5537,
6313,
293,
273,
678,
42,
5537,
1304,
18,
588,
13360,
1204,
5537,
12,
22,
1769,
202,
202,
759,
3779,
13972,
202,
202,
84,
18,
588,
4212,
7675,
1289,
12,
59,
42,
1304,
18,
1655,
12,
3729,
1824,
18,
588,
1528,
58,
38,
2932,
4923,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18907,
21221,
2170,
1435,
288,
9506,
202,
45,
59,
1042,
25522,
71,
273,
467,
59,
1042,
18,
588,
1442,
5621,
202,
202,
59,
42,
1420,
1304,
1191,
1824,
273,
678,
42,
1420,
1304,
18,
588,
1420,
1304,
7880,
5621,
202,
202,
780,
1278,
273,
6052,
56,
2871,
900,
67,
12674,
67,
23703,
67,
734,
397,
4585,
31,
759,
202,
202,
780,
324,
1734,
273,
678,
42,
1964,
18,
9689,
67,
30245,
397,
4585,
31,
202,
202,
59,
42,
2170,
2774,
2170,
273,
394,
678,
42,
2170,
5621,
202,
202,
5254,
2170,
18,
542,
548,
12,
4928,
2871,
900,
67,
13208,
67,
734,
1769,
202,
202,
59,
42,
668,
5058,
801,
273,
394,
678,
42,
668,
5058,
2
] |
public void actionPerformed(ActionEvent evt) { name.setBackground(getParent().getBackground()); // Force the focus to be lost. name.transferFocusUpCycle(); // Force the focus to be transfered to the next component. //name.transferFocus(); // This is no longer needed since the above line will force a // focusLostEvent. But I have choosen to leave this line here in // case it might become useful later. //stopCellEditing(); }
|
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/9e5fad21d56e073f412f668b93af80b3bfaedbef/EmbeddedElementPanel.java/clean/modules/jackal/editors/org/vrjuggler/jccl/editors/EmbeddedElementPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
540,
288,
5411,
508,
18,
542,
8199,
12,
588,
3054,
7675,
588,
8199,
10663,
5411,
368,
11889,
326,
7155,
358,
506,
13557,
18,
5411,
508,
18,
13866,
9233,
1211,
13279,
5621,
5411,
368,
11889,
326,
7155,
358,
506,
7412,
329,
358,
326,
1024,
1794,
18,
5411,
368,
529,
18,
13866,
9233,
5621,
5411,
368,
1220,
353,
1158,
7144,
3577,
3241,
326,
5721,
980,
903,
2944,
279,
5411,
368,
7155,
19024,
1133,
18,
12484,
467,
1240,
5011,
8918,
358,
8851,
333,
980,
2674,
316,
5411,
368,
648,
518,
4825,
12561,
5301,
5137,
18,
5411,
368,
5681,
4020,
28029,
5621,
540,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1850,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
540,
288,
5411,
508,
18,
542,
8199,
12,
588,
3054,
7675,
588,
8199,
10663,
5411,
368,
11889,
326,
7155,
358,
506,
13557,
18,
5411,
508,
18,
13866,
9233,
1211,
13279,
5621,
5411,
368,
11889,
326,
7155,
358,
506,
7412,
329,
358,
326,
1024,
1794,
18,
5411,
368,
529,
18,
13866,
9233,
5621,
5411,
368,
1220,
353,
1158,
7144,
3577,
3241,
326,
5721,
980,
903,
2944,
279,
5411,
368,
7155,
19024,
1133,
18,
12484,
467,
1240,
5011,
8918,
358,
8851,
333,
980,
2674,
316,
5411,
368,
648,
518,
4825,
12561,
5301,
5137,
18,
5411,
368,
5681,
4020,
28029,
5621,
540,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
return address; } else {
|
return formatAddress(address); } else {
|
public String toUnicodeString() { String p = getPersonal(); if (p == null) { return address; } else { StringBuffer buf = new StringBuffer(p.length() + 8 + address.length() + 3); quote(buf, p).append("< ").append(address).append(">"); return buf.toString(); } }
|
6764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6764/b2ed2db7536f069760843403ffbda96c04749b4f/InternetAddress.java/clean/geronimo-spec-javamail/src/java/javax/mail/internet/InternetAddress.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
358,
16532,
780,
1435,
288,
3639,
514,
293,
273,
29936,
287,
5621,
3639,
309,
261,
84,
422,
446,
13,
288,
5411,
327,
1758,
31,
3639,
289,
469,
288,
5411,
6674,
1681,
273,
394,
6674,
12,
84,
18,
2469,
1435,
397,
1725,
397,
1758,
18,
2469,
1435,
397,
890,
1769,
5411,
3862,
12,
4385,
16,
293,
2934,
6923,
2932,
32,
315,
2934,
6923,
12,
2867,
2934,
6923,
2932,
2984,
1769,
5411,
327,
1681,
18,
10492,
5621,
3639,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
358,
16532,
780,
1435,
288,
3639,
514,
293,
273,
29936,
287,
5621,
3639,
309,
261,
84,
422,
446,
13,
288,
5411,
327,
1758,
31,
3639,
289,
469,
288,
5411,
6674,
1681,
273,
394,
6674,
12,
84,
18,
2469,
1435,
397,
1725,
397,
1758,
18,
2469,
1435,
397,
890,
1769,
5411,
3862,
12,
4385,
16,
293,
2934,
6923,
2932,
32,
315,
2934,
6923,
12,
2867,
2934,
6923,
2932,
2984,
1769,
5411,
327,
1681,
18,
10492,
5621,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cx.getLanguageVersion() == cx.VERSION_1_2);
|
cx.getLanguageVersion() == cx.VERSION_1_2, false);
|
public static String jsFunction_toString(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return toStringHelper(cx, thisObj, cx.getLanguageVersion() == cx.VERSION_1_2); }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/ca002f3c20cd4bae06efecc6323bebf8f7f618b4/NativeArray.java/buggy/js/rhino/org/mozilla/javascript/NativeArray.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
10492,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2398,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
327,
1762,
2276,
12,
71,
92,
16,
15261,
16,
1171,
9079,
9494,
18,
588,
3779,
1444,
1435,
422,
9494,
18,
5757,
67,
21,
67,
22,
16,
629,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
514,
3828,
2083,
67,
10492,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2398,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
327,
1762,
2276,
12,
71,
92,
16,
15261,
16,
1171,
9079,
9494,
18,
588,
3779,
1444,
1435,
422,
9494,
18,
5757,
67,
21,
67,
22,
16,
629,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return "N/A";
|
name = Translator.getTranslation("TASK_REGULAR");
|
public String getColumnName(int column) { switch (column) { case TASK_PRIORITY: return Translator.getTranslation("TASK_PRIORITY"); case TASK_DESCRIPTION: return Translator.getTranslation("TASK_DESCRIPTION"); case TASK_REGULAR: return Translator.getTranslation("TASK_REGULAR"); default: return "N/A"; } }
|
4241 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4241/04c873b1c81668e39405939bce13ae71ae2305e5/RegularTasksTableModel.java/buggy/src/org/cesilko/rachota/gui/RegularTasksTableModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
20248,
12,
474,
1057,
13,
288,
3639,
1620,
261,
2827,
13,
288,
5411,
648,
19609,
67,
19804,
30,
7734,
327,
18669,
18,
588,
6717,
2932,
15580,
67,
19804,
8863,
5411,
648,
19609,
67,
15911,
30,
7734,
327,
18669,
18,
588,
6717,
2932,
15580,
67,
15911,
8863,
5411,
648,
19609,
67,
5937,
19545,
30,
7734,
327,
18669,
18,
588,
6717,
2932,
15580,
67,
5937,
19545,
8863,
5411,
805,
30,
7734,
508,
273,
18669,
18,
588,
6717,
2932,
15580,
67,
5937,
19545,
8863,
3639,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
20248,
12,
474,
1057,
13,
288,
3639,
1620,
261,
2827,
13,
288,
5411,
648,
19609,
67,
19804,
30,
7734,
327,
18669,
18,
588,
6717,
2932,
15580,
67,
19804,
8863,
5411,
648,
19609,
67,
15911,
30,
7734,
327,
18669,
18,
588,
6717,
2932,
15580,
67,
15911,
8863,
5411,
648,
19609,
67,
5937,
19545,
30,
7734,
327,
18669,
18,
588,
6717,
2932,
15580,
67,
5937,
19545,
8863,
5411,
805,
30,
7734,
508,
273,
18669,
18,
588,
6717,
2932,
15580,
67,
5937,
19545,
8863,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
boolean synPredMatched2376 = false;
|
boolean synPredMatched2379 = false;
|
public final void selectstatea(AST _t) throws RecognitionException { AST selectstatea_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2341 = _t; AST tmp2385_AST_in = (AST)_t; match(_t,SELECT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALL: { AST tmp2386_AST_in = (AST)_t; match(_t,ALL); _t = _t.getNextSibling(); break; } case DISTINCT: { AST tmp2387_AST_in = (AST)_t; match(_t,DISTINCT); _t = _t.getNextSibling(); break; } case STAR: case Sql_select_what: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STAR: { AST tmp2388_AST_in = (AST)_t; match(_t,STAR); _t = _t.getNextSibling(); break; } case Sql_select_what: { AST __t2344 = _t; AST tmp2389_AST_in = (AST)_t; match(_t,Sql_select_what); _t = _t.getFirstChild(); { boolean synPredMatched2347 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==LEFTPAREN))) { AST __t2347 = _t; synPredMatched2347 = true; inputState.guessing++; try { { AST tmp2390_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched2347 = false; } _t = __t2347;inputState.guessing--; } if ( synPredMatched2347 ) { AST tmp2391_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { formatphrase(_t); _t = _retTree; break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2392_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { formatphrase(_t); _t = _retTree; break; } case 3: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } } else if ((_tokenSet_17.member(_t.getType()))) { sqlexpression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { formatphrase(_t); _t = _retTree; break; } case 3: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } } else { throw new NoViableAltException(_t); } } { _loop2353: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2393_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { formatphrase(_t); _t = _retTree; break; } case 3: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop2353; } } while (true); } _t = __t2344; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INTO: { AST __t2355 = _t; AST tmp2394_AST_in = (AST)_t; match(_t,INTO); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INDICATOR: case Field_ref: { fetch_indicator(_t); _t = _retTree; break; } case 3: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } { _loop2359: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2395_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INDICATOR: case Field_ref: { fetch_indicator(_t); _t = _retTree; break; } case 3: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop2359; } } while (true); } _t = __t2355; _t = _t.getNextSibling(); break; } case FROM: { break; } default: { throw new NoViableAltException(_t); } } } AST __t2360 = _t; AST tmp2396_AST_in = (AST)_t; match(_t,FROM); _t = _t.getFirstChild(); select_from_spec(_t); _t = _retTree; { _loop2362: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2397_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); select_from_spec(_t); _t = _retTree; } else { break _loop2362; } } while (true); } _t = __t2360; _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case GROUP: { AST __t2364 = _t; AST tmp2398_AST_in = (AST)_t; match(_t,GROUP); _t = _t.getFirstChild(); AST tmp2399_AST_in = (AST)_t; match(_t,BY); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { _loop2366: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2400_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); expression(_t); _t = _retTree; } else { break _loop2366; } } while (true); } _t = __t2364; _t = _t.getNextSibling(); break; } case 3: case BY: case HAVING: case ORDER: case UNION: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HAVING: { AST __t2368 = _t; AST tmp2401_AST_in = (AST)_t; match(_t,HAVING); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; _t = __t2368; _t = _t.getNextSibling(); break; } case 3: case BY: case ORDER: case UNION: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ORDER: { AST __t2370 = _t; AST tmp2402_AST_in = (AST)_t; match(_t,ORDER); _t = _t.getFirstChild(); AST tmp2403_AST_in = (AST)_t; match(_t,BY); _t = _t.getNextSibling(); select_order_expr(_t); _t = _retTree; _t = __t2370; _t = _t.getNextSibling(); break; } case BY: { AST __t2371 = _t; AST tmp2404_AST_in = (AST)_t; match(_t,BY); _t = _t.getFirstChild(); select_order_expr(_t); _t = _retTree; _t = __t2371; _t = _t.getNextSibling(); break; } case 3: case UNION: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; if (((_t.getType()==3||_t.getType()==UNION||_t.getType()==WITH))&&(_t != null)) { { boolean synPredMatched2376 = false; if (_t==null) _t=ASTNULL; if ((((_t.getType()==WITH))&&(_t != null))) { AST __t2376 = _t; synPredMatched2376 = true; inputState.guessing++; try { { AST __t2375 = _t; AST tmp2405_AST_in = (AST)_t; match(_t,WITH); _t = _t.getFirstChild(); AST tmp2406_AST_in = (AST)_t; match(_t,CHECK); _t = _t.getNextSibling(); AST tmp2407_AST_in = (AST)_t; match(_t,OPTION); _t = _t.getNextSibling(); _t = __t2375; _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched2376 = false; } _t = __t2376;inputState.guessing--; } if ( synPredMatched2376 ) { AST __t2377 = _t; AST tmp2408_AST_in = (AST)_t; match(_t,WITH); _t = _t.getFirstChild(); AST tmp2409_AST_in = (AST)_t; match(_t,CHECK); _t = _t.getNextSibling(); AST tmp2410_AST_in = (AST)_t; match(_t,OPTION); _t = _t.getNextSibling(); _t = __t2377; _t = _t.getNextSibling(); } else if ((_t.getType()==3||_t.getType()==UNION||_t.getType()==WITH)) { } else { throw new NoViableAltException(_t); } } } else if ((_t.getType()==3||_t.getType()==UNION||_t.getType()==WITH)) { } else { throw new NoViableAltException(_t); } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case 3: case UNION: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNION: { AST __t2380 = _t; AST tmp2411_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALL: { AST tmp2412_AST_in = (AST)_t; match(_t,ALL); _t = _t.getNextSibling(); break; } case SELECT: { break; } default: { throw new NoViableAltException(_t); } } } selectstatea(_t); _t = _retTree; _t = __t2380; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2341; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2027,
2019,
69,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2027,
2019,
69,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
4366,
9803,
273,
389,
88,
31,
202,
202,
9053,
1853,
4366,
7140,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
4803,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
8061,
30,
202,
202,
95,
1082,
202,
9053,
1853,
4366,
5292,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4685,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
23286,
30,
202,
202,
95,
1082,
202,
9053,
1853,
4366,
11035,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
2565,
17807,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
21807,
30,
202,
202,
3593,
8855,
67,
4025,
67,
23770,
30,
202,
202,
95,
1082,
202,
8820,
31,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2027,
2019,
69,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2027,
2019,
69,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
4366,
9803,
273,
389,
88,
31,
202,
202,
9053,
1853,
4366,
7140,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
4803,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
2
] |
else throw new UnsupportedOperationException("SSKs not implemented yet!");
|
else extraLen = ClientSSK.EXTRA_LENGTH;
|
public static FreenetURI readFullBinaryKey(DataInputStream dis) throws IOException { int x = 0; byte type = dis.readByte(); String keyType; if(type == CHK) keyType = "CHK"; else if(type == SSK) keyType = "SSK"; else throw new MalformedURLException("Unrecognized type "+type); // routingKey is a hash, so is exactly 32 bytes byte[] routingKey = new byte[32]; dis.readFully(routingKey); // cryptoKey is a 256 bit AES key, so likewise byte[] cryptoKey = new byte[32]; dis.readFully(cryptoKey); // Number of bytes of extra depends on key type int extraLen; if(type == CHK) extraLen = ClientCHK.EXTRA_LENGTH; else throw new UnsupportedOperationException("SSKs not implemented yet!"); //extraLen = ClientSSK.EXTRA_LENGTH; byte[] extra = new byte[extraLen]; dis.readFully(extra); String docName = dis.readUTF(); int count = dis.readByte() & 0xff; String[] metaStrings = new String[count]; for(int i=0;i<metaStrings.length;i++) metaStrings[i] = dis.readUTF(); return new FreenetURI(keyType, docName, metaStrings, routingKey, cryptoKey, extra); }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/5f6cd14357e2fd98f1b8e460aa78526429387ea0/FreenetURI.java/clean/src/freenet/keys/FreenetURI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
478,
2842,
278,
3098,
855,
5080,
5905,
653,
12,
751,
4348,
1015,
13,
1216,
1860,
288,
202,
202,
474,
619,
273,
374,
31,
202,
202,
7229,
618,
273,
1015,
18,
896,
3216,
5621,
202,
202,
780,
14867,
31,
202,
202,
430,
12,
723,
422,
6469,
47,
13,
1082,
202,
856,
559,
273,
315,
1792,
47,
14432,
202,
202,
12107,
309,
12,
723,
422,
348,
11129,
13,
1082,
202,
856,
559,
273,
315,
1260,
47,
14432,
202,
202,
12107,
1875,
202,
12849,
394,
20710,
2932,
19648,
618,
13773,
723,
1769,
202,
202,
759,
7502,
653,
353,
279,
1651,
16,
1427,
353,
8950,
3847,
1731,
202,
202,
7229,
8526,
7502,
653,
273,
394,
1160,
63,
1578,
15533,
202,
202,
2251,
18,
896,
16999,
12,
16529,
653,
1769,
202,
202,
759,
8170,
653,
353,
279,
8303,
2831,
15986,
498,
16,
1427,
7906,
359,
784,
202,
202,
7229,
8526,
8170,
653,
273,
394,
1160,
63,
1578,
15533,
202,
202,
2251,
18,
896,
16999,
12,
18489,
653,
1769,
202,
202,
759,
3588,
434,
1731,
434,
2870,
10935,
603,
498,
618,
202,
202,
474,
2870,
2891,
31,
202,
202,
430,
12,
723,
422,
6469,
47,
13,
1082,
202,
7763,
2891,
273,
2445,
1792,
47,
18,
22639,
67,
7096,
31,
202,
202,
12107,
1082,
202,
12849,
394,
13172,
2932,
1260,
47,
87,
486,
8249,
4671,
4442,
1769,
1082,
202,
759,
7763,
2891,
273,
2445,
1260,
47,
18,
22639,
67,
7096,
31,
202,
202,
7229,
8526,
2870,
273,
394,
1160,
63,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
478,
2842,
278,
3098,
855,
5080,
5905,
653,
12,
751,
4348,
1015,
13,
1216,
1860,
288,
202,
202,
474,
619,
273,
374,
31,
202,
202,
7229,
618,
273,
1015,
18,
896,
3216,
5621,
202,
202,
780,
14867,
31,
202,
202,
430,
12,
723,
422,
6469,
47,
13,
1082,
202,
856,
559,
273,
315,
1792,
47,
14432,
202,
202,
12107,
309,
12,
723,
422,
348,
11129,
13,
1082,
202,
856,
559,
273,
315,
1260,
47,
14432,
202,
202,
12107,
1875,
202,
12849,
394,
20710,
2932,
19648,
618,
13773,
723,
1769,
202,
202,
759,
7502,
653,
353,
279,
1651,
16,
1427,
353,
8950,
3847,
1731,
202,
202,
7229,
8526,
7502,
653,
273,
394,
1160,
63,
1578,
15533,
2
] |
createFields(node); convertCommExps((SIRFilter)node.contents); calculateItems((SIRFilter)node.contents); rawInitSchedFunction(node); rawSteadySchedFunction(node);
|
System.out.print("Generating Raw Code: " + node.contents.getName() + " "); SIRFilter filter = (SIRFilter)node.contents; LocalVariables localVariables = new LocalVariables(); JBlock block = new JBlock(null, new JStatement[0], null); calculateItems(filter); if (isSimple(filter)) System.out.print("(simple) "); else if (noBuffer(filter)) System.out.print("(no buffer) "); else { if (remaining > 0) System.out.print("(remaining) "); if (filter.getPeekInt() > filter.getPopInt()) System.out.print("(peeking)"); } System.out.println(); createLocalVariables(node, block, localVariables); convertCommExps(filter, isSimple(filter), localVariables); rawMainFunction(node, block, localVariables); JMethodDeclaration rawMainFunct = new JMethodDeclaration(null, at.dms.kjc.Constants.ACC_PUBLIC, CStdType.Void, rawMain, JFormalParameter.EMPTY, CClassType.EMPTY, block, null, null); filter.addMethod(rawMainFunct);
|
public void visitNode(FlatNode node) { if (node.isFilter()){ createFields(node); convertCommExps((SIRFilter)node.contents); calculateItems((SIRFilter)node.contents); rawInitSchedFunction(node); rawSteadySchedFunction(node); } }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/a22dd4cd26c52f3e1280cc934ef22fb0cf8bbca9/RawExecutionCode.java/clean/streams/src/at/dms/kjc/raw/RawExecutionCode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
907,
12,
16384,
907,
756,
13,
377,
288,
202,
430,
261,
2159,
18,
291,
1586,
10756,
95,
202,
565,
752,
2314,
12,
2159,
1769,
202,
565,
1765,
12136,
424,
1121,
12443,
2320,
54,
1586,
13,
2159,
18,
3980,
1769,
202,
565,
4604,
3126,
12443,
2320,
54,
1586,
13,
2159,
18,
3980,
1769,
202,
565,
1831,
2570,
55,
2049,
2083,
12,
2159,
1769,
202,
565,
1831,
510,
684,
93,
55,
2049,
2083,
12,
2159,
1769,
202,
97,
565,
289,
225,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
907,
12,
16384,
907,
756,
13,
377,
288,
202,
430,
261,
2159,
18,
291,
1586,
10756,
95,
202,
565,
752,
2314,
12,
2159,
1769,
202,
565,
1765,
12136,
424,
1121,
12443,
2320,
54,
1586,
13,
2159,
18,
3980,
1769,
202,
565,
4604,
3126,
12443,
2320,
54,
1586,
13,
2159,
18,
3980,
1769,
202,
565,
1831,
2570,
55,
2049,
2083,
12,
2159,
1769,
202,
565,
1831,
510,
684,
93,
55,
2049,
2083,
12,
2159,
1769,
202,
97,
565,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new TypeError(arg.getRuntime(), "argument is not a Fixnum");
|
throw arg.getRuntime().newTypeError("argument is not a Fixnum");
|
public static long fix2long(IRubyObject arg) { if (arg instanceof RubyFixnum) { return ((RubyFixnum) arg).getLongValue(); } throw new TypeError(arg.getRuntime(), "argument is not a Fixnum"); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1525,
2917,
22,
5748,
12,
7937,
10340,
921,
1501,
13,
288,
3639,
309,
261,
3175,
1276,
19817,
8585,
2107,
13,
288,
5411,
327,
14015,
54,
10340,
8585,
2107,
13,
1501,
2934,
588,
3708,
620,
5621,
3639,
289,
3639,
604,
1501,
18,
588,
5576,
7675,
2704,
19030,
2932,
3446,
353,
486,
279,
12139,
2107,
8863,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
1525,
2917,
22,
5748,
12,
7937,
10340,
921,
1501,
13,
288,
3639,
309,
261,
3175,
1276,
19817,
8585,
2107,
13,
288,
5411,
327,
14015,
54,
10340,
8585,
2107,
13,
1501,
2934,
588,
3708,
620,
5621,
3639,
289,
3639,
604,
1501,
18,
588,
5576,
7675,
2704,
19030,
2932,
3446,
353,
486,
279,
12139,
2107,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void init() { fEmptyURI = fStringPool.addSymbol(""); fXsiURI = fStringPool.addSymbol(SchemaSymbols.URI_XSI); fEMPTYSymbol = fStringPool.addSymbol("EMPTY"); fANYSymbol = fStringPool.addSymbol("ANY"); fMIXEDSymbol = fStringPool.addSymbol("MIXED"); fCHILDRENSymbol = fStringPool.addSymbol("CHILDREN"); fCDATASymbol = fStringPool.addSymbol("CDATA"); fIDSymbol = fStringPool.addSymbol("ID"); fIDREFSymbol = fStringPool.addSymbol("IDREF"); fIDREFSSymbol = fStringPool.addSymbol("IDREFS"); fENTITYSymbol = fStringPool.addSymbol("ENTITY"); fENTITIESSymbol = fStringPool.addSymbol("ENTITIES"); fNMTOKENSymbol = fStringPool.addSymbol("NMTOKEN"); fNMTOKENSSymbol = fStringPool.addSymbol("NMTOKENS"); fNOTATIONSymbol = fStringPool.addSymbol("NOTATION"); fENUMERATIONSymbol = fStringPool.addSymbol("ENUMERATION"); fREQUIREDSymbol = fStringPool.addSymbol("#REQUIRED"); fFIXEDSymbol = fStringPool.addSymbol("#FIXED"); fDATATYPESymbol = fStringPool.addSymbol("<<datatype>>"); fEpsilonIndex = fStringPool.addSymbol("<<CMNODE_EPSILON>>"); fXMLLang = fStringPool.addSymbol("xml:lang"); try {//Initialize ENTITIES and ENTITY Validators Object[] packageArgsEntityVal = { (Object) this.fEntityHandler, (Object) this.fStringPool}; fValidateENTITYMsg.setDatatypeObject( (Object ) packageArgsEntityVal); fValENTITIES.validate( null, fValidateENTITYMsg ); fValENTITY.validate( null, fValidateENTITYMsg ); } catch ( InvalidDatatypeValueException ex ) { System.err.println("Error: " + ex.getLocalizedMessage() );//Should not happen } } // init()
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/e08d8ed709fc146ab9b192c3e8512dc57e833efe/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
2738,
1435,
95,
74,
1921,
3098,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
8863,
74,
60,
7722,
3098,
33,
74,
780,
2864,
18,
1289,
5335,
12,
3078,
14821,
18,
3098,
67,
60,
2320,
1769,
74,
13625,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
13625,
8863,
74,
15409,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
15409,
8863,
74,
7492,
60,
2056,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
7492,
60,
2056,
8863,
74,
27043,
862,
3156,
3284,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
27043,
24296,
8863,
74,
10160,
789,
3033,
3284,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
18375,
8863,
74,
734,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
734,
8863,
74,
734,
862,
4931,
3284,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
734,
10771,
8863,
74,
734,
10771,
1260,
3284,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
734,
862,
4931,
8863,
74,
11101,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
11101,
8863,
74,
2222,
1285,
8732,
1260,
3284,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
2222,
25673,
8863,
74,
50,
6152,
6239,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
50,
6152,
6239,
8863,
74,
50,
6152,
6239,
1260,
3284,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
50,
6152,
6239,
55,
8863,
74,
4400,
2689,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
4400,
2689,
8863,
74,
16509,
654,
2689,
5335,
33,
74,
780,
2864,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
2738,
1435,
95,
74,
1921,
3098,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
8863,
74,
60,
7722,
3098,
33,
74,
780,
2864,
18,
1289,
5335,
12,
3078,
14821,
18,
3098,
67,
60,
2320,
1769,
74,
13625,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
13625,
8863,
74,
15409,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
15409,
8863,
74,
7492,
60,
2056,
5335,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
7492,
60,
2056,
8863,
74,
27043,
862,
3156,
3284,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
27043,
24296,
8863,
74,
10160,
789,
3033,
3284,
33,
74,
780,
2864,
18,
1289,
5335,
2932,
18375,
8863,
74,
734,
5335,
33,
74,
780,
2864,
18,
2
] |
||
log.debug("updateSnmpInfo: interface " + aaddrs[0].getHostAddress() + " has netmask: " + aaddrs[1].getHostAddress());
|
log.debug("updateSnmpInfo: interface " + aaddrs[0].getHostAddress() + " has netmask: " + aaddrs[1].getHostAddress());
|
private void updateSnmpInfo(Connection dbc, DbNodeEntry node, DbIpInterfaceEntry dbIpIfEntry, IfSnmpCollector snmpc) throws SQLException { Category log = ThreadCategory.getInstance(getClass()); InetAddress ifaddr = dbIpIfEntry.getIfAddress(); /* * If SNMP info is available update the snmpInterface table entry with * anything that has changed. */ int ifIndex = dbIpIfEntry.getIfIndex(); if (snmpc != null && !snmpc.failed() && ifIndex != -1) { if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: updating snmp interface for nodeId/ifIndex=" + +node.getNodeId() + "/" + ifIndex); } // Create and load SNMP Interface entry from the database boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { /* * SNMP Interface not found with this nodeId, create new * interface */ if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } /* * Create SNMP interface entry representing latest information * retrieved for the interface via the collector */ DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); // Find the ifTable entry for this interface IfTable ift = snmpc.getIfTable(); Iterator ifiter = ift.getEntries().iterator(); IfTableEntry ifte = null; while (ifiter.hasNext()) { ifte = (IfTableEntry) ifiter.next(); // index Integer sint = ifte.getIfIndex(); if (sint != null) { if (ifIndex == sint.intValue()) { break; } else { ifte = null; } } } // Make sure we have a valid IfTableEntry object if (ifte == null && ifIndex == CapsdConfigFactory.LAME_SNMP_HOST_IFINDEX) { currSnmpIfEntry.setIfAddress(snmpc.getCollectorTargetAddress()); if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: interface " + snmpc.getCollectorTargetAddress().getHostAddress() + " appears to be a lame SNMP host. Setting ipaddr only."); } } else if (ifte != null) { /* * IP address and netmask * * WARNING: IfSnmpCollector.getIfAddressAndMask() ONLY returns * the FIRST IP address and mask for a given interface as * specified in the ipAddrTable. */ InetAddress[] aaddrs = snmpc.getIfAddressAndMask(ifIndex); // Address array should NEVER be null but just in case.. if (aaddrs == null) { log.warn("updateSnmpInfo: unable to retrieve address and netmask for nodeId/ifIndex: " + node.getNodeId() + "/" + ifIndex); aaddrs = new InetAddress[2]; // Set interface address to current interface aaddrs[0] = ifaddr; // Set netmask to NULL aaddrs[1] = null; } // IP address currSnmpIfEntry.setIfAddress(aaddrs[0]); // netmask if (aaddrs[1] != null) { if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: interface " + aaddrs[0].getHostAddress() + " has netmask: " + aaddrs[1].getHostAddress()); } currSnmpIfEntry.setNetmask(aaddrs[1]); } // type Integer sint = ifte.getIfType(); currSnmpIfEntry.setType(sint.intValue()); // description String str = ifte.getIfDescr(); if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: " + ifaddr + " has ifDescription: " + str); } if (str != null && str.length() > 0) { currSnmpIfEntry.setDescription(str); } String physAddr = ifte.getPhysAddr(); if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: " + ifaddr + " has phys address: -" + physAddr + "-"); } if (physAddr != null && physAddr.length() == 12) { currSnmpIfEntry.setPhysicalAddress(physAddr); } // speed Long uint = ifte.getIfSpeed(); //set the default speed to 10MB if not retrievable. currSnmpIfEntry.setSpeed((uint == null ? 10000000L : uint.longValue())); // admin status sint = ifte.getIfAdminStatus(); currSnmpIfEntry.setAdminStatus(sint.intValue()); // oper status sint = ifte.getIfOperStatus(); currSnmpIfEntry.setOperationalStatus(sint.intValue()); // name (from interface extensions table) String ifName = snmpc.getIfName(ifIndex); if (ifName != null && ifName.length() > 0) { currSnmpIfEntry.setName(ifName); } // alias (from interface extensions table) String ifAlias = snmpc.getIfAlias(ifIndex); if (ifAlias != null) { currSnmpIfEntry.setAlias(ifAlias); } else { currSnmpIfEntry.setAlias(""); } } // end if valid ifTable entry // Update any fields which have changed // dbSnmpIfEntry.updateIfIndex(currSnmpIfEntry.getIfIndex()); dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); dbSnmpIfEntry.updateNetmask(currSnmpIfEntry.getNetmask()); dbSnmpIfEntry.updatePhysicalAddress(currSnmpIfEntry.getPhysicalAddress()); dbSnmpIfEntry.updateDescription(currSnmpIfEntry.getDescription()); dbSnmpIfEntry.updateName(currSnmpIfEntry.getName()); dbSnmpIfEntry.updateType(currSnmpIfEntry.getType()); dbSnmpIfEntry.updateSpeed(currSnmpIfEntry.getSpeed()); dbSnmpIfEntry.updateAdminStatus(currSnmpIfEntry.getAdminStatus()); dbSnmpIfEntry.updateOperationalStatus(currSnmpIfEntry.getOperationalStatus()); dbSnmpIfEntry.updateAlias(currSnmpIfEntry.getAlias()); /* * If this is a new interface or if any of the following * key fields have changed set the m_snmpIfTableChangedFlag * variable to TRUE. This will potentially trigger an event * which will cause the poller to reinitialize the primary * SNMP interface for the node. */ // dbSnmpIfEntry.hasIfIndexChanged() || if (!m_snmpIfTableChangedFlag && newSnmpIfTableEntry || dbSnmpIfEntry.hasIfAddressChanged() || dbSnmpIfEntry.hasTypeChanged() || dbSnmpIfEntry.hasNameChanged() || dbSnmpIfEntry.hasDescriptionChanged() || dbSnmpIfEntry.hasPhysicalAddressChanged() || dbSnmpIfEntry.hasAliasChanged()) { m_snmpIfTableChangedFlag = true; } // Update the database dbSnmpIfEntry.store(dbc); // end if complete snmp info available } else if (snmpc != null && snmpc.hasIpAddrTable() && ifIndex != -1) { if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: updating snmp interface for nodeId/ifIndex/ipAddr=" + +node.getNodeId() + "/" + ifIndex + "/" + ifaddr + " based on ipAddrTable only - No ifTable available"); } // Create and load SNMP Interface entry from the database boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { /* * SNMP Interface not found with this nodeId, create new * interface */ if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } /* * Create SNMP interface entry representing latest information * retrieved for the interface via the collector */ DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); // IP address currSnmpIfEntry.setIfAddress(ifaddr); // Update any fields which have changed dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); // Update the database dbSnmpIfEntry.store(dbc); // end if partial snmp info available } else if (snmpc != null) { // allow for lame snmp hosts with no ipAddrTable ifIndex = CapsdConfigFactory.LAME_SNMP_HOST_IFINDEX; if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: updating snmp interface for nodeId/ipAddr=" + +node.getNodeId() + "/" + ifaddr + " based on ip address only - No ipAddrTable available"); } // Create and load SNMP Interface entry from the database boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { /* * SNMP Interface not found with this nodeId, create new * interface */ if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } /* * Create SNMP interface entry representing latest information * retrieved for the interface via the collector */ DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); // IP address currSnmpIfEntry.setIfAddress(ifaddr); // Update any fields which have changed dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); // Update the database dbSnmpIfEntry.store(dbc); } }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/8a6576d66e6ad3849723ebfbdc7af8419591da4a/RescanProcessor.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/capsd/RescanProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
10461,
1291,
966,
12,
1952,
9881,
16,
8408,
907,
1622,
756,
16,
8408,
5273,
1358,
1622,
1319,
5273,
2047,
1622,
16,
971,
10461,
1291,
7134,
15366,
71,
13,
1216,
6483,
288,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
3639,
14218,
309,
4793,
273,
1319,
5273,
2047,
1622,
18,
588,
2047,
1887,
5621,
3639,
1748,
540,
380,
971,
14204,
4566,
1123,
353,
2319,
1089,
326,
15366,
1358,
1014,
1241,
598,
540,
380,
6967,
716,
711,
3550,
18,
540,
1195,
1082,
3639,
509,
309,
1016,
273,
1319,
5273,
2047,
1622,
18,
588,
2047,
1016,
5621,
3639,
309,
261,
26527,
71,
480,
446,
597,
401,
26527,
71,
18,
7307,
1435,
597,
309,
1016,
480,
300,
21,
13,
288,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
7734,
613,
18,
4148,
2932,
2725,
10461,
1291,
966,
30,
9702,
15366,
1560,
364,
11507,
19,
430,
1016,
1546,
397,
397,
2159,
18,
588,
15883,
1435,
397,
4016,
397,
309,
1016,
1769,
5411,
289,
5411,
368,
1788,
471,
1262,
14204,
4566,
6682,
1241,
628,
326,
2063,
5411,
1250,
394,
10461,
1291,
2047,
1388,
1622,
273,
629,
31,
5411,
8408,
10461,
1291,
1358,
1622,
1319,
10461,
1291,
2047,
1622,
273,
8408,
10461,
1291,
1358,
1622,
18,
588,
12,
9137,
16,
756,
18,
588,
15883,
9334,
309,
1016,
1769,
5411,
309,
261,
1966,
10461,
1291,
2047,
1622,
422,
446,
13,
288,
7734,
1748,
1171,
380,
14204,
4566,
6682,
486,
1392,
598,
333,
11507,
16,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
10461,
1291,
966,
12,
1952,
9881,
16,
8408,
907,
1622,
756,
16,
8408,
5273,
1358,
1622,
1319,
5273,
2047,
1622,
16,
971,
10461,
1291,
7134,
15366,
71,
13,
1216,
6483,
288,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
3639,
14218,
309,
4793,
273,
1319,
5273,
2047,
1622,
18,
588,
2047,
1887,
5621,
3639,
1748,
540,
380,
971,
14204,
4566,
1123,
353,
2319,
1089,
326,
15366,
1358,
1014,
1241,
598,
540,
380,
6967,
716,
711,
3550,
18,
540,
1195,
1082,
3639,
509,
309,
1016,
273,
1319,
5273,
2047,
1622,
18,
588,
2047,
1016,
5621,
3639,
309,
261,
26527,
71,
480,
446,
597,
401,
26527,
71,
18,
7307,
1435,
597,
309,
2
] |
public double evaluate(double u, double v) { return 0;
|
public void evaluate(double u, double v) {
|
public static IndexedFaceSet plainQuadMesh(double xStep, double yStep, int xDetail, int yDetail) { ParametricSurfaceFactory factory = new ParametricSurfaceFactory(new ParametricSurfaceFactory.DefaultImmersion() { public double evaluate(double u, double v) { return 0; } }); factory.setULineCount(xDetail+1); factory.setVLineCount(yDetail+1); factory.setClosedInUDirection(false); factory.setClosedInVDirection(false); factory.setUMin(-xStep*xDetail/2); factory.setUMax(xStep*xDetail/2); factory.setVMin(-yStep*yDetail/2); factory.setVMax(yStep*yDetail/2); factory.setGenerateFaceNormals(true); factory.setGenerateVertexNormals(false); // ?? factory.update(); return factory.getIndexedFaceSet(); }
|
25414 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25414/c5b39dcfd7f0a19eb479cd7a85cd1f58e7f3d39c/Primitives.java/buggy/src-core/de/jreality/geometry/Primitives.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22524,
11824,
694,
7351,
24483,
16748,
12,
9056,
619,
4160,
16,
1645,
677,
4160,
16,
509,
619,
6109,
16,
509,
677,
6109,
13,
288,
1377,
3014,
1591,
11508,
1733,
3272,
273,
394,
3014,
1591,
11508,
1733,
12,
2704,
3014,
1591,
11508,
1733,
18,
1868,
1170,
81,
722,
1435,
288,
3639,
1071,
1645,
5956,
12,
9056,
582,
16,
1645,
331,
13,
288,
1850,
327,
374,
31,
3639,
289,
1377,
15549,
5411,
3272,
18,
542,
1506,
558,
1380,
12,
92,
6109,
15,
21,
1769,
1377,
3272,
18,
542,
58,
1670,
1380,
12,
93,
6109,
15,
21,
1769,
5411,
3272,
18,
542,
7395,
382,
57,
8212,
12,
5743,
1769,
1377,
3272,
18,
542,
7395,
382,
58,
8212,
12,
5743,
1769,
5411,
3272,
18,
542,
2799,
267,
19236,
92,
4160,
14,
92,
6109,
19,
22,
1769,
1377,
3272,
18,
542,
57,
2747,
12,
92,
4160,
14,
92,
6109,
19,
22,
1769,
1377,
3272,
18,
542,
58,
2930,
19236,
93,
4160,
14,
93,
6109,
19,
22,
1769,
1377,
3272,
18,
542,
58,
2747,
12,
93,
4160,
14,
93,
6109,
19,
22,
1769,
5411,
3272,
18,
542,
4625,
11824,
14624,
1031,
12,
3767,
1769,
1377,
3272,
18,
542,
4625,
6475,
14624,
1031,
12,
5743,
1769,
368,
5317,
5411,
3272,
18,
2725,
5621,
5411,
327,
3272,
18,
588,
15034,
11824,
694,
5621,
1850,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22524,
11824,
694,
7351,
24483,
16748,
12,
9056,
619,
4160,
16,
1645,
677,
4160,
16,
509,
619,
6109,
16,
509,
677,
6109,
13,
288,
1377,
3014,
1591,
11508,
1733,
3272,
273,
394,
3014,
1591,
11508,
1733,
12,
2704,
3014,
1591,
11508,
1733,
18,
1868,
1170,
81,
722,
1435,
288,
3639,
1071,
1645,
5956,
12,
9056,
582,
16,
1645,
331,
13,
288,
1850,
327,
374,
31,
3639,
289,
1377,
15549,
5411,
3272,
18,
542,
1506,
558,
1380,
12,
92,
6109,
15,
21,
1769,
1377,
3272,
18,
542,
58,
1670,
1380,
12,
93,
6109,
15,
21,
1769,
5411,
3272,
18,
542,
7395,
382,
57,
8212,
12,
5743,
1769,
1377,
3272,
18,
542,
7395,
382,
58,
8212,
12,
5743,
2
] |
final RubyClass newRubyClass = ruby.defineClass(rubyName, (RubyClass)ruby.getRubyClass("JavaObject"));
|
Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap();
|
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getString(); } try { final Class c = Class.forName(javaName); final RubyClass newRubyClass = ruby.defineClass(rubyName, (RubyClass)ruby.getRubyClass("JavaObject")); Method[] methods = c.getMethods(); for (int i = 0; i < methods.length; i++) { String methodName = methods[i].getName(); if (methods[i].getDeclaringClass() != Object.class) { newRubyClass.defineMethod(methodName, new JavaReflectionMethod(methods[i])); } } newRubyClass.defineSingletonMethod("new", new RubyCallbackMethod() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { try { Object value = c.newInstance(); RubyJavaObject javaObject = new RubyJavaObject(ruby, (RubyModule)recv, value); javaObject.callInit(args); return javaObject; } catch (Exception excptn) { } return ruby.getNil(); } }); return newRubyClass; } catch (ClassNotFoundException cnfExcptn) { throw new RubyNameException("cannot found Java class: " + javaName); } catch (SecurityException sExcptn) { } return ruby.getNil(); }
|
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/241a0fe060c8d239aa9e5d2519e98cf44d69a201/RubyJavaObject.java/clean/org/jruby/RubyJavaObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
921,
312,
67,
945,
67,
1106,
12,
54,
10340,
22155,
16,
19817,
3120,
22155,
797,
16,
19817,
780,
2658,
16,
19817,
921,
8526,
833,
13,
288,
3639,
514,
2252,
461,
273,
2658,
18,
588,
780,
5621,
3639,
514,
22155,
461,
273,
2252,
461,
18,
28023,
12,
6290,
461,
18,
2722,
31985,
2668,
1093,
13,
397,
404,
1769,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
22155,
461,
273,
14015,
54,
10340,
780,
13,
1968,
63,
20,
65,
2934,
588,
780,
5621,
3639,
289,
7734,
775,
288,
5411,
727,
1659,
276,
273,
1659,
18,
1884,
461,
12,
6290,
461,
1769,
13491,
1635,
707,
863,
273,
394,
4317,
5621,
1635,
6396,
1305,
863,
273,
394,
4317,
5621,
13491,
2985,
8526,
2590,
273,
276,
18,
588,
4712,
5621,
13491,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2590,
18,
2469,
31,
277,
27245,
288,
7734,
514,
4918,
273,
2590,
63,
77,
8009,
17994,
5621,
7734,
309,
261,
5163,
63,
77,
8009,
588,
3456,
14682,
1435,
480,
1033,
18,
1106,
13,
288,
10792,
394,
54,
10340,
797,
18,
11255,
1305,
12,
2039,
461,
16,
394,
5110,
9801,
1305,
12,
5163,
63,
77,
5717,
1769,
7734,
289,
5411,
289,
13491,
394,
54,
10340,
797,
18,
11255,
19571,
1305,
2932,
2704,
3113,
394,
19817,
2428,
1305,
1435,
288,
7734,
1071,
19817,
921,
1836,
12,
54,
10340,
921,
10665,
16,
19817,
921,
8526,
833,
16,
19817,
22155,
13,
288,
10792,
775,
288,
13491,
1033,
460,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
921,
312,
67,
945,
67,
1106,
12,
54,
10340,
22155,
16,
19817,
3120,
22155,
797,
16,
19817,
780,
2658,
16,
19817,
921,
8526,
833,
13,
288,
3639,
514,
2252,
461,
273,
2658,
18,
588,
780,
5621,
3639,
514,
22155,
461,
273,
2252,
461,
18,
28023,
12,
6290,
461,
18,
2722,
31985,
2668,
1093,
13,
397,
404,
1769,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
22155,
461,
273,
14015,
54,
10340,
780,
13,
1968,
63,
20,
65,
2934,
588,
780,
5621,
3639,
289,
7734,
775,
288,
5411,
727,
1659,
276,
273,
1659,
18,
1884,
461,
12,
6290,
461,
1769,
13491,
1635,
707,
863,
273,
394,
4317,
5621,
1635,
6396,
1305,
863,
273,
2
] |
else if ( date2[utc]=='Z' ) {
|
else if ( date2.utc=='Z' ) {
|
protected short compareDates(int[] date1, int[] date2, boolean strict) { if ( date1[utc]==date2[utc] ) { return compareOrder(date1, date2); } short c1, c2; int[] tempDate = new int[TOTAL_SIZE]; int[] timeZone = new int[2]; if ( date1[utc]=='Z' ) { //compare date1<=date1<=(date2 with time zone -14) // cloneDate(date2, tempDate); //clones date1 value to global temporary storage: fTempDate timeZone[hh]=14; timeZone[mm]=0; tempDate[utc]='+'; normalize(tempDate, timeZone); c1 = compareOrder(date1, tempDate); if (c1 == LESS_THAN) return c1; //compare date1>=(date2 with time zone +14) // cloneDate(date2, tempDate); //clones date1 value to global temporary storage: tempDate timeZone[hh]=14; timeZone[mm]=0; tempDate[utc]='-'; normalize(tempDate, timeZone); c2 = compareOrder(date1, tempDate); if (c2 == GREATER_THAN) return c2; return INDETERMINATE; } else if ( date2[utc]=='Z' ) { //compare (date1 with time zone -14)<=date2 // cloneDate(date1, tempDate); //clones date1 value to global temporary storage: tempDate timeZone[hh]=14; timeZone[mm]=0; tempDate[utc]='-'; if (DEBUG) { System.out.println("tempDate=" + dateToString(tempDate)); } normalize(tempDate, timeZone); c1 = compareOrder(tempDate, date2); if (DEBUG) { System.out.println("date=" + dateToString(date2)); System.out.println("tempDate=" + dateToString(tempDate)); } if (c1 == LESS_THAN) return c1; //compare (date1 with time zone +14)<=date2 // cloneDate(date1, tempDate); //clones date1 value to global temporary storage: tempDate timeZone[hh]=14; timeZone[mm]=0; tempDate[utc]='+'; normalize(tempDate, timeZone); c2 = compareOrder(tempDate, date2); if (DEBUG) { System.out.println("tempDate=" + dateToString(tempDate)); } if (c2 == GREATER_THAN) return c2; return INDETERMINATE; } return INDETERMINATE; }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/7569f1e56b929395f70c2717a33b9ea5e6583d7a/AbstractDateTimeDV.java/clean/src/org/apache/xerces/impl/dv/xs/AbstractDateTimeDV.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3025,
3400,
15578,
12,
474,
8526,
1509,
21,
16,
509,
8526,
1509,
22,
16,
1250,
5490,
13,
288,
3639,
309,
261,
1509,
21,
63,
17892,
65,
631,
712,
22,
63,
17892,
65,
262,
288,
5411,
327,
3400,
2448,
12,
712,
21,
16,
1509,
22,
1769,
3639,
289,
3639,
3025,
276,
21,
16,
276,
22,
31,
7734,
509,
8526,
1906,
1626,
273,
394,
509,
63,
28624,
67,
4574,
15533,
3639,
509,
8526,
17512,
273,
394,
509,
63,
22,
15533,
3639,
309,
261,
1509,
21,
63,
17892,
65,
18920,
62,
11,
262,
288,
5411,
368,
9877,
1509,
21,
32,
33,
712,
21,
32,
28657,
712,
22,
598,
813,
4157,
300,
3461,
13,
5411,
368,
5411,
3236,
1626,
12,
712,
22,
16,
1906,
1626,
1769,
368,
830,
5322,
1509,
21,
460,
358,
2552,
6269,
2502,
30,
284,
7185,
1626,
5411,
17512,
63,
21622,
65,
33,
3461,
31,
5411,
17512,
63,
7020,
65,
33,
20,
31,
5411,
1906,
1626,
63,
17892,
65,
2218,
6797,
31,
5411,
3883,
12,
5814,
1626,
16,
17512,
1769,
5411,
276,
21,
273,
3400,
2448,
12,
712,
21,
16,
1906,
1626,
1769,
5411,
309,
261,
71,
21,
422,
21216,
67,
22408,
13,
7734,
327,
276,
21,
31,
5411,
368,
9877,
1509,
21,
34,
28657,
712,
22,
598,
813,
4157,
397,
3461,
13,
5411,
368,
5411,
3236,
1626,
12,
712,
22,
16,
1906,
1626,
1769,
368,
830,
5322,
1509,
21,
460,
358,
2552,
6269,
2502,
30,
1906,
1626,
5411,
17512,
63,
21622,
65,
33,
3461,
31,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
3400,
15578,
12,
474,
8526,
1509,
21,
16,
509,
8526,
1509,
22,
16,
1250,
5490,
13,
288,
3639,
309,
261,
1509,
21,
63,
17892,
65,
631,
712,
22,
63,
17892,
65,
262,
288,
5411,
327,
3400,
2448,
12,
712,
21,
16,
1509,
22,
1769,
3639,
289,
3639,
3025,
276,
21,
16,
276,
22,
31,
7734,
509,
8526,
1906,
1626,
273,
394,
509,
63,
28624,
67,
4574,
15533,
3639,
509,
8526,
17512,
273,
394,
509,
63,
22,
15533,
3639,
309,
261,
1509,
21,
63,
17892,
65,
18920,
62,
11,
262,
288,
5411,
368,
9877,
1509,
21,
32,
33,
712,
21,
32,
28657,
712,
22,
598,
813,
4157,
300,
3461,
13,
5411,
368,
5411,
3236,
1626,
12,
712,
2
] |
return Boolean.valueOf(receive_get_states);
|
return receive_get_states ? Boolean.TRUE : Boolean.FALSE;
|
public Object getOpt(int option) { switch(option) { case VIEW: return Boolean.valueOf(receive_views); case BLOCK: return Boolean.valueOf(receive_blocks); case SUSPECT: return Boolean.valueOf(receive_suspects); case GET_STATE_EVENTS: return Boolean.valueOf(receive_get_states); case LOCAL: return Boolean.valueOf(receive_local_msgs); default: if(log.isErrorEnabled()) log.error("option " + Channel.option2String(option) + " not known"); return null; } }
|
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/15308d1f5b62d25f85f6c6555575a30a650b7e4d/JChannel.java/buggy/src/org/jgroups/JChannel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
28959,
12,
474,
1456,
13,
288,
3639,
1620,
12,
3482,
13,
288,
5411,
648,
21794,
30,
7734,
327,
3411,
18,
1132,
951,
12,
18149,
67,
7061,
1769,
5411,
648,
14073,
30,
7734,
327,
3411,
18,
1132,
951,
12,
18149,
67,
7996,
1769,
5411,
648,
348,
3378,
1423,
1268,
30,
7734,
327,
3411,
18,
1132,
951,
12,
18149,
67,
87,
407,
1181,
87,
1769,
5411,
648,
4978,
67,
7998,
67,
29221,
30,
1171,
327,
6798,
67,
588,
67,
7992,
692,
3411,
18,
18724,
294,
3411,
18,
21053,
31,
5411,
648,
15234,
30,
7734,
327,
3411,
18,
1132,
951,
12,
18149,
67,
3729,
67,
27439,
1769,
5411,
805,
30,
7734,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
3482,
315,
397,
5307,
18,
3482,
22,
780,
12,
3482,
13,
397,
315,
486,
4846,
8863,
7734,
327,
446,
31,
3639,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
28959,
12,
474,
1456,
13,
288,
3639,
1620,
12,
3482,
13,
288,
5411,
648,
21794,
30,
7734,
327,
3411,
18,
1132,
951,
12,
18149,
67,
7061,
1769,
5411,
648,
14073,
30,
7734,
327,
3411,
18,
1132,
951,
12,
18149,
67,
7996,
1769,
5411,
648,
348,
3378,
1423,
1268,
30,
7734,
327,
3411,
18,
1132,
951,
12,
18149,
67,
87,
407,
1181,
87,
1769,
5411,
648,
4978,
67,
7998,
67,
29221,
30,
1171,
327,
6798,
67,
588,
67,
7992,
692,
3411,
18,
18724,
294,
3411,
18,
21053,
31,
5411,
648,
15234,
30,
7734,
327,
3411,
18,
1132,
951,
12,
18149,
67,
3729,
67,
27439,
1769,
5411,
805,
30,
7734,
309,
12,
1330,
18,
291,
668,
1526,
10756,
2
] |
public ClientGet(FCPConnectionHandler handler, ClientGetMessage message) {
|
public ClientGet(FCPConnectionHandler handler, ClientGetMessage message) throws IdentifierCollisionException {
|
public ClientGet(FCPConnectionHandler handler, ClientGetMessage message) { uri = message.uri; clientToken = message.clientToken; // FIXME this.priorityClass = message.priorityClass; this.persistenceType = message.persistenceType; // Create a Fetcher directly in order to get more fine-grained control, // since the client may override a few context elements. if(persistenceType == PERSIST_CONNECTION) this.origHandler = handler; else origHandler = null; if(message.global) { client = handler.server.globalClient; } else { client = handler.getClient(); } fctx = new FetcherContext(client.defaultFetchContext, FetcherContext.IDENTICAL_MASK, false); fctx.eventProducer.addEventListener(this); // ignoreDS fctx.localRequestOnly = message.dsOnly; fctx.ignoreStore = message.ignoreDS; fctx.maxNonSplitfileRetries = message.maxRetries; fctx.maxSplitfileBlockRetries = message.maxRetries; this.identifier = message.identifier; this.verbosity = message.verbosity; // FIXME do something with verbosity !! // Has already been checked fctx.maxOutputLength = message.maxSize; fctx.maxTempLength = message.maxTempSize; this.returnType = message.returnType; Bucket ret = null; if(returnType == ClientGetMessage.RETURN_TYPE_DISK) { this.targetFile = message.diskFile; this.tempFile = message.tempFile; ret = new FileBucket(message.tempFile, false, false, false, false); } else if(returnType == ClientGetMessage.RETURN_TYPE_NONE) { targetFile = null; tempFile = null; ret = new NullBucket(); } else { targetFile = null; tempFile = null; try { ret = handler.server.node.persistentTempBucketFactory.makeEncryptedBucket(); } catch (IOException e) { onFailure(new FetchException(FetchException.BUCKET_ERROR), null); getter = null; returnBucket = null; return; } } returnBucket = ret; if(persistenceType != PERSIST_CONNECTION) client.register(this); getter = new ClientGetter(this, client.node.chkFetchScheduler, client.node.sskFetchScheduler, uri, fctx, priorityClass, client, returnBucket); if(persistenceType != PERSIST_CONNECTION && handler != null) sendPendingMessages(handler.outputHandler, true); }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/5172c6eaf3d3ff5aaaf0703e2a38ccebe1b75ec3/ClientGet.java/buggy/src/freenet/node/fcp/ClientGet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
967,
12,
42,
4258,
1952,
1503,
1838,
16,
2445,
967,
1079,
883,
13,
288,
202,
202,
1650,
273,
883,
18,
1650,
31,
202,
202,
2625,
1345,
273,
883,
18,
2625,
1345,
31,
202,
202,
759,
9852,
202,
202,
2211,
18,
8457,
797,
273,
883,
18,
8457,
797,
31,
202,
202,
2211,
18,
24854,
559,
273,
883,
18,
24854,
559,
31,
202,
202,
759,
1788,
279,
8065,
264,
5122,
316,
1353,
358,
336,
1898,
11079,
17,
2752,
1920,
3325,
16,
202,
202,
759,
3241,
326,
1004,
2026,
3849,
279,
11315,
819,
2186,
18,
202,
202,
430,
12,
24854,
559,
422,
10950,
18732,
67,
15461,
13,
1082,
202,
2211,
18,
4949,
1503,
273,
1838,
31,
202,
202,
12107,
1082,
202,
4949,
1503,
273,
446,
31,
202,
202,
430,
12,
2150,
18,
6347,
13,
288,
1082,
202,
2625,
273,
1838,
18,
3567,
18,
6347,
1227,
31,
202,
202,
97,
469,
288,
1082,
202,
2625,
273,
1838,
18,
588,
1227,
5621,
202,
202,
97,
202,
202,
74,
5900,
273,
394,
8065,
264,
1042,
12,
2625,
18,
1886,
5005,
1042,
16,
8065,
264,
1042,
18,
13355,
10109,
67,
11704,
16,
629,
1769,
202,
202,
74,
5900,
18,
2575,
12140,
18,
1289,
7375,
12,
2211,
1769,
202,
202,
759,
2305,
3948,
202,
202,
74,
5900,
18,
3729,
691,
3386,
273,
883,
18,
2377,
3386,
31,
202,
202,
74,
5900,
18,
6185,
2257,
273,
883,
18,
6185,
3948,
31,
202,
202,
74,
5900,
18,
1896,
3989,
5521,
768,
13656,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
967,
12,
42,
4258,
1952,
1503,
1838,
16,
2445,
967,
1079,
883,
13,
288,
202,
202,
1650,
273,
883,
18,
1650,
31,
202,
202,
2625,
1345,
273,
883,
18,
2625,
1345,
31,
202,
202,
759,
9852,
202,
202,
2211,
18,
8457,
797,
273,
883,
18,
8457,
797,
31,
202,
202,
2211,
18,
24854,
559,
273,
883,
18,
24854,
559,
31,
202,
202,
759,
1788,
279,
8065,
264,
5122,
316,
1353,
358,
336,
1898,
11079,
17,
2752,
1920,
3325,
16,
202,
202,
759,
3241,
326,
1004,
2026,
3849,
279,
11315,
819,
2186,
18,
202,
202,
430,
12,
24854,
559,
422,
10950,
18732,
67,
15461,
13,
1082,
202,
2211,
18,
4949,
1503,
273,
1838,
31,
202,
202,
2
] |
field_1_string_length = LittleEndian.getUShort(data, 0 + offset); field_2_unicode_flag = data[ 2 + offset ];
|
field_1_string_length = in.readShort(); field_2_unicode_flag = in.readByte(); byte[] data = in.readRemainder();
|
protected void fillFields( byte[] data, short size, int offset ) { field_1_string_length = LittleEndian.getUShort(data, 0 + offset); field_2_unicode_flag = data[ 2 + offset ]; if (isUnCompressedUnicode()) { field_3_string = StringUtil.getFromUnicodeLE(data, 3 + offset, field_1_string_length ); } else { field_3_string = StringUtil.getFromCompressedUnicode(data, 3 + offset, field_1_string_length); } }
|
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/ada69333b277a95ccfc608144b991cfd8d1a9d37/StringRecord.java/clean/src/java/org/apache/poi/hssf/record/StringRecord.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3636,
2314,
12,
1160,
8526,
501,
16,
3025,
963,
16,
509,
1384,
262,
565,
288,
3639,
652,
67,
21,
67,
1080,
67,
2469,
6647,
273,
11567,
18,
588,
57,
4897,
12,
892,
16,
374,
397,
1384,
1769,
3639,
652,
67,
22,
67,
9124,
67,
6420,
5411,
273,
501,
63,
576,
397,
1384,
308,
31,
3639,
309,
261,
291,
984,
16841,
16532,
10756,
3639,
288,
5411,
652,
67,
23,
67,
1080,
273,
14205,
18,
588,
1265,
16532,
900,
12,
892,
16,
890,
397,
1384,
16,
652,
67,
21,
67,
1080,
67,
2469,
11272,
3639,
289,
3639,
469,
3639,
288,
5411,
652,
67,
23,
67,
1080,
273,
14205,
18,
588,
1265,
16841,
16532,
12,
892,
16,
890,
397,
1384,
16,
652,
67,
21,
67,
1080,
67,
2469,
1769,
3639,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
3636,
2314,
12,
1160,
8526,
501,
16,
3025,
963,
16,
509,
1384,
262,
565,
288,
3639,
652,
67,
21,
67,
1080,
67,
2469,
6647,
273,
11567,
18,
588,
57,
4897,
12,
892,
16,
374,
397,
1384,
1769,
3639,
652,
67,
22,
67,
9124,
67,
6420,
5411,
273,
501,
63,
576,
397,
1384,
308,
31,
3639,
309,
261,
291,
984,
16841,
16532,
10756,
3639,
288,
5411,
652,
67,
23,
67,
1080,
273,
14205,
18,
588,
1265,
16532,
900,
12,
892,
16,
890,
397,
1384,
16,
652,
67,
21,
67,
1080,
67,
2469,
11272,
3639,
289,
3639,
469,
3639,
288,
5411,
652,
67,
23,
67,
1080,
273,
14205,
18,
588,
1265,
16841,
16532,
12,
892,
16,
890,
397,
2
] |
if (jj_3R_135()) return true; if (jj_scan_token(SEMICOLON)) return true;
|
if (jj_scan_token(LT)) return true; if (jj_3R_150()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_151()) { jj_scanpos = xsp; break; } } if (jj_scan_token(GT)) return true;
|
final private boolean jj_3R_92() { if (jj_3R_135()) return true; if (jj_scan_token(SEMICOLON)) return true; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9975,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
26612,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
1090,
22972,
1741,
673,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9975,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
26612,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
1090,
22972,
1741,
673,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
p.addItem( value, altProposed, null);
|
p.addItem( value, altProposed, null).inheritFrom=setInheritFrom;
|
private void populateFrom(CLDRDBSource src, CheckCLDR checkCldr, CLDRFile engFile) { XPathParts xpp = new XPathParts(null,null); System.out.println("[] initting from pod " + locale + " with prefix " + xpathPrefix); CLDRFile aFile = new CLDRFile(src, true); Map options = new TreeMap(); XPathParts pathParts = new XPathParts(null, null); XPathParts fullPathParts = new XPathParts(null, null);/* checkCldr.check(path, fullPath, value, pathParts, fullPathParts, checkCldrResult); for (Iterator it3 = checkCldrResult.iterator(); it3.hasNext();) { CheckCLDR.CheckStatus status = (CheckCLDR.CheckStatus) it3.next(); if (!status.getType().equals(status.exampleType)) { ctx.println(status.toString() + "\t" + value + "\t" + fullPath);*/ List checkCldrResult = new ArrayList(); for(Iterator it = aFile.iterator(xpathPrefix);it.hasNext();) { String xpath = (String)it.next(); if(-1!=xpath.indexOf("001")) { System.err.println("001:: " + xpath + aFile.getSourceLocaleID(xpath));// if(aFile.getSourceLocaleID(xpath).equals("code-fallback")) {// throw new InternalError("No err!");// } } String type = src.xpt.typeFromPathToTinyXpath(xpath, xpp); boolean mixedType = false; if(type == null) { type = xpath.substring(xpathPrefix.length(),xpath.length()); mixedType = true; } String value = aFile.getStringValue(xpath); if(value == null) {// throw new InternalError("Value of " + xpath + " is null."); System.err.println("Value of " + xpath + " is null."); value = "(NOTHING)"; } String fullPath = aFile.getFullXPath(xpath);// System.out.println("* T=" + type + ", X= " + xpath); String alt = src.xpt.altFromPathToTinyXpath(xpath, xpp); xpp.clear(); xpp.initialize(xpath); String lelement = xpp.getElement(-1); /* all of these are always at the end */ String eAlt = xpp.findAttributeValue(lelement,LDMLConstants.ALT); String eDraft = xpp.findAttributeValue(lelement,LDMLConstants.DRAFT); String typeAndProposed[] = LDMLUtilities.parseAlt(alt); String altProposed = typeAndProposed[1]; String altType = typeAndProposed[0]; Pea p = getPea(type, altType); Pea superP = getPea(type); if(altProposed == null) { // just work on the supers if(superP.displayName == null) { if(xpathPrefix.startsWith("//ldml/localeDisplayNames/")) { if(mixedType == false) { superP.displayName = engFile.getStringValue(xpathPrefix+"[@type=\""+type+"\"]"); } else { superP.displayName = engFile.getStringValue(xpathPrefix); } } } if(superP.displayName == null) { superP.displayName = "'"+type+"'"; } } // If it is draft and not proposed.. make it proposed-draft if( ((eDraft!=null)&&(!eDraft.equals("false"))) && (altProposed == null) ) { altProposed = SurveyMain.PROPOSED_DRAFT; } /*srl*/ if(-1!=xpath.indexOf("ain")) { System.err.println("ain:: " + xpath + aFile.getSourceLocaleID(xpath) + " - AP:" + altProposed + " - AT: " + altType );// if(aFile.getSourceLocaleID(xpath).equals("code-fallback")) {// throw new InternalError("No err!");// } } // Inherit display names. if((superP != p) && (p.displayName == null)) { p.displayName = superP.displayName; } String sourceLocale = aFile.getSourceLocaleID(xpath); boolean isInherited = !(sourceLocale.equals(locale)); if(altProposed == null) { if(!isInherited) { superP.hasInherited=false; p.hasInherited=false; } else { p.hasInherited = true; p.inheritFrom = sourceLocale; } } else { p.hasProps = true; superP.hasProps = true; } if((checkCldr != null)&&(altProposed == null)) { checkCldr.check(xpath, fullPath, value, options, checkCldrResult); }/*srl*/ if(-1!=xpath.indexOf("ain")) { System.err.println("ain+- was have " + p.items.size() + " Items "); } if(checkCldrResult.isEmpty()) { p.addItem( value, altProposed, null); } else { p.addItem( value, altProposed, checkCldrResult); // only consider non-example tests as notable. boolean weHaveTests = false; for (Iterator it3 = checkCldrResult.iterator(); it3.hasNext();) { CheckCLDR.CheckStatus status = (CheckCLDR.CheckStatus) it3.next(); if(!status.getType().equals(status.exampleType)) { weHaveTests = true; } } if(weHaveTests) { p.hasTests = true; superP.hasTests = true; } // set the parent checkCldrResult = new ArrayList(); // can't reuse it if nonempty }/*srl*/ if(-1!=xpath.indexOf("ain")) { System.err.println("ain+: now have " + p.items.size() + " Items "); } } // aFile.close(); }
|
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/d99f45a31f02fcac5c82ee137c8dde03d6babbc5/DataPod.java/clean/tools/java/org/unicode/cldr/web/DataPod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
1265,
12,
5017,
6331,
2290,
1830,
1705,
16,
2073,
5017,
6331,
866,
39,
14796,
16,
14934,
6331,
812,
24691,
812,
13,
288,
3639,
10172,
4305,
619,
11858,
273,
394,
10172,
4305,
12,
2011,
16,
2011,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8526,
1208,
1787,
628,
3713,
315,
397,
2573,
397,
315,
598,
1633,
315,
397,
6748,
2244,
1769,
3639,
14934,
6331,
812,
279,
812,
273,
394,
14934,
6331,
812,
12,
4816,
16,
638,
1769,
3639,
1635,
702,
273,
394,
16381,
5621,
3639,
10172,
4305,
25628,
273,
394,
10172,
4305,
12,
2011,
16,
446,
1769,
3639,
10172,
4305,
11225,
4305,
273,
394,
10172,
4305,
12,
2011,
16,
446,
1769,
20308,
7734,
866,
39,
14796,
18,
1893,
12,
803,
16,
11225,
16,
460,
16,
25628,
16,
11225,
4305,
16,
866,
39,
14796,
1253,
1769,
7734,
364,
261,
3198,
518,
23,
273,
866,
39,
14796,
1253,
18,
9838,
5621,
518,
23,
18,
5332,
2134,
5621,
13,
288,
10792,
2073,
5017,
6331,
18,
1564,
1482,
1267,
273,
261,
1564,
5017,
6331,
18,
1564,
1482,
13,
518,
23,
18,
4285,
5621,
10792,
309,
16051,
2327,
18,
588,
559,
7675,
14963,
12,
2327,
18,
8236,
559,
3719,
288,
13491,
1103,
18,
8222,
12,
2327,
18,
10492,
1435,
397,
1548,
88,
6,
397,
460,
397,
1548,
88,
6,
397,
11225,
1769,
5549,
3639,
987,
866,
39,
14796,
1253,
273,
394,
2407,
5621,
3639,
364,
12,
3198,
518,
273,
279,
812,
18,
9838,
12,
18644,
2244,
1769,
305,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
1265,
12,
5017,
6331,
2290,
1830,
1705,
16,
2073,
5017,
6331,
866,
39,
14796,
16,
14934,
6331,
812,
24691,
812,
13,
288,
3639,
10172,
4305,
619,
11858,
273,
394,
10172,
4305,
12,
2011,
16,
2011,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8526,
1208,
1787,
628,
3713,
315,
397,
2573,
397,
315,
598,
1633,
315,
397,
6748,
2244,
1769,
3639,
14934,
6331,
812,
279,
812,
273,
394,
14934,
6331,
812,
12,
4816,
16,
638,
1769,
3639,
1635,
702,
273,
394,
16381,
5621,
3639,
10172,
4305,
25628,
273,
394,
10172,
4305,
12,
2011,
16,
446,
1769,
3639,
10172,
4305,
11225,
4305,
273,
394,
10172,
4305,
12,
2011,
16,
446,
1769,
20308,
7734,
866,
39,
14796,
2
] |
return null;
|
return _attributes;
|
public Parameter[] getAttributes() { // TODO implement this function return null; }
|
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/6a74720f63251983ff6d4844b5e3e58dc53a1f39/DataSectionElement.java/buggy/src/java-common/org/xins/common/spec/DataSectionElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
5498,
8526,
10183,
1435,
288,
1377,
368,
2660,
2348,
333,
445,
377,
327,
389,
4350,
31,
282,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
5498,
8526,
10183,
1435,
288,
1377,
368,
2660,
2348,
333,
445,
377,
327,
389,
4350,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public CSvcSkeletonWriter(File outputFileLocation, String language) { this.outputFileLocation = outputFileLocation; this.language = language;
|
public CSvcSkeletonWriter(String outputFileLocation) { this.outputFileLocation = new File(outputFileLocation);
|
public CSvcSkeletonWriter(File outputFileLocation, String language) { this.outputFileLocation = outputFileLocation; this.language = language; }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/2c9c3102ebe608634f4f654cae03aabbc5807cc9/CSvcSkeletonWriter.java/buggy/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/CSvcSkeletonWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6761,
4227,
28070,
2289,
12,
812,
15047,
2735,
16,
514,
2653,
13,
288,
3639,
333,
18,
2844,
812,
2735,
273,
15047,
2735,
31,
3639,
333,
18,
4923,
273,
2653,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6761,
4227,
28070,
2289,
12,
812,
15047,
2735,
16,
514,
2653,
13,
288,
3639,
333,
18,
2844,
812,
2735,
273,
15047,
2735,
31,
3639,
333,
18,
4923,
273,
2653,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (nested) { fnNode.setCheckThis(); }
|
private Node function(int functionType) throws IOException, ParserException { int syntheticType = functionType; int baseLineno = ts.getLineno(); // line number where source starts int functionSourceStart = decompiler.markFunctionStart(functionType); String name; Node memberExprNode = null; if (matchToken(Token.NAME)) { name = ts.getString(); decompiler.addName(name); if (!matchToken(Token.LP)) { if (compilerEnv.isAllowMemberExprAsFunctionName()) { // Extension to ECMA: if 'function <name>' does not follow // by '(', assume <name> starts memberExpr Node memberExprHead = nf.createName(name); name = ""; memberExprNode = memberExprTail(false, memberExprHead); } mustMatchToken(Token.LP, "msg.no.paren.parms"); } } else if (matchToken(Token.LP)) { // Anonymous function name = ""; } else { name = ""; if (compilerEnv.isAllowMemberExprAsFunctionName()) { // Note that memberExpr can not start with '(' like // in function (1+2).toString(), because 'function (' already // processed as anonymous function memberExprNode = memberExpr(false); } mustMatchToken(Token.LP, "msg.no.paren.parms"); } if (memberExprNode != null) { syntheticType = FunctionNode.FUNCTION_EXPRESSION; } boolean nested = insideFunction(); FunctionNode fnNode = nf.createFunction(name); if (nested) { // Nested functions must check their 'this' value to insure // it is not an activation object: see 10.1.6 Activation Object fnNode.setCheckThis(); } if (nested || nestingOfWith > 0) { // 1. Nested functions are not affected by the dynamic scope flag // as dynamic scope is already a parent of their scope. // 2. Functions defined under the with statement also immune to // this setup, in which case dynamic scope is ignored in favor // of with object. fnNode.setIgnoreDynamicScope(); } int functionIndex = currentScriptOrFn.addFunction(fnNode); int functionSourceEnd; ScriptOrFnNode savedScriptOrFn = currentScriptOrFn; currentScriptOrFn = fnNode; int savedNestingOfWith = nestingOfWith; nestingOfWith = 0; Hashtable savedLabelSet = labelSet; labelSet = null; ObjArray savedLoopSet = loopSet; loopSet = null; ObjArray savedLoopAndSwitchSet = loopAndSwitchSet; loopAndSwitchSet = null; Node body; String source; try { decompiler.addToken(Token.LP); if (!matchToken(Token.RP)) { boolean first = true; do { if (!first) decompiler.addToken(Token.COMMA); first = false; mustMatchToken(Token.NAME, "msg.no.parm"); String s = ts.getString(); if (fnNode.hasParamOrVar(s)) { addWarning("msg.dup.parms", s); } fnNode.addParam(s); decompiler.addName(s); } while (matchToken(Token.COMMA)); mustMatchToken(Token.RP, "msg.no.paren.after.parms"); } decompiler.addToken(Token.RP); mustMatchToken(Token.LC, "msg.no.brace.body"); decompiler.addEOL(Token.LC); body = parseFunctionBody(); mustMatchToken(Token.RC, "msg.no.brace.after.body"); decompiler.addToken(Token.RC); functionSourceEnd = decompiler.markFunctionEnd(functionSourceStart); if (functionType != FunctionNode.FUNCTION_EXPRESSION) { if (compilerEnv.getLanguageVersion() >= Context.VERSION_1_2) { // function f() {} function g() {} is not allowed in 1.2 // or later but for compatibility with old scripts // the check is done only if language is // explicitly set. // XXX warning needed if version == VERSION_DEFAULT ? int tt = peekTokenOrEOL(); if (tt == Token.FUNCTION) { reportError("msg.no.semi.stmt"); } } // Add EOL only if function is not part of expression // since it gets SEMI + EOL from Statement in that case decompiler.addToken(Token.EOL); } } finally { loopAndSwitchSet = savedLoopAndSwitchSet; loopSet = savedLoopSet; labelSet = savedLabelSet; nestingOfWith = savedNestingOfWith; currentScriptOrFn = savedScriptOrFn; } fnNode.setEncodedSourceBounds(functionSourceStart, functionSourceEnd); fnNode.setSourceName(sourceURI); fnNode.setBaseLineno(baseLineno); fnNode.setEndLineno(ts.getLineno()); Node pn = nf.initFunction(fnNode, functionIndex, body, syntheticType); if (memberExprNode != null) { pn = nf.initFunction(fnNode, functionIndex, body, syntheticType); pn = nf.createAssignment(Token.ASSIGN, memberExprNode, pn); if (functionType != FunctionNode.FUNCTION_EXPRESSION) { // XXX check JScript behavior: should it be createExprStatement? pn = nf.createExprStatementNoReturn(pn, baseLineno); } } return pn; }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/1c4a403de28c7f68382b53b7f7de65aeb498bde6/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
445,
12,
474,
445,
559,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
25535,
559,
273,
445,
559,
31,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,
368,
980,
1300,
1625,
1084,
2542,
3639,
509,
445,
1830,
1685,
273,
443,
9576,
18,
3355,
2083,
1685,
12,
915,
559,
1769,
3639,
514,
508,
31,
3639,
2029,
3140,
4742,
907,
273,
446,
31,
3639,
309,
261,
1916,
1345,
12,
1345,
18,
1985,
3719,
288,
5411,
508,
273,
3742,
18,
588,
780,
5621,
5411,
443,
9576,
18,
1289,
461,
12,
529,
1769,
5411,
309,
16051,
1916,
1345,
12,
1345,
18,
14461,
3719,
288,
7734,
309,
261,
9576,
3491,
18,
291,
7009,
4419,
4742,
1463,
25258,
10756,
288,
10792,
368,
10021,
358,
7773,
5535,
30,
309,
296,
915,
411,
529,
1870,
1552,
486,
2805,
10792,
368,
635,
7747,
2187,
6750,
411,
529,
34,
2542,
3140,
4742,
10792,
2029,
3140,
4742,
1414,
273,
13958,
18,
2640,
461,
12,
529,
1769,
10792,
508,
273,
1408,
31,
10792,
3140,
4742,
907,
273,
3140,
4742,
12363,
12,
5743,
16,
3140,
4742,
1414,
1769,
7734,
289,
7734,
1297,
2060,
1345,
12,
1345,
18,
14461,
16,
315,
3576,
18,
2135,
18,
13012,
18,
29927,
8863,
5411,
289,
3639,
289,
469,
309,
261,
1916,
1345,
12,
1345,
18,
14461,
3719,
288,
5411,
368,
29775,
445,
5411,
508,
273,
1408,
31,
3639,
289,
469,
288,
5411,
508,
273,
1408,
31,
5411,
309,
261,
9576,
3491,
18,
291,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
445,
12,
474,
445,
559,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
25535,
559,
273,
445,
559,
31,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,
368,
980,
1300,
1625,
1084,
2542,
3639,
509,
445,
1830,
1685,
273,
443,
9576,
18,
3355,
2083,
1685,
12,
915,
559,
1769,
3639,
514,
508,
31,
3639,
2029,
3140,
4742,
907,
273,
446,
31,
3639,
309,
261,
1916,
1345,
12,
1345,
18,
1985,
3719,
288,
5411,
508,
273,
3742,
18,
588,
780,
5621,
5411,
443,
9576,
18,
1289,
461,
12,
529,
1769,
5411,
309,
16051,
1916,
1345,
12,
1345,
18,
14461,
3719,
288,
7734,
309,
261,
9576,
3491,
18,
291,
2
] |
|
setState(currentState);
|
public String getState() { //return currentState; try { Attributes attrs = commSvc.getEntityAttributes(communityName, agentId.toString()); Attribute stateAttr = attrs.get("RunState"); if (stateAttr != null) { String state = (String)stateAttr.get(); if (state == null || state.trim().length() == 0) { setState(currentState); log.debug("GetState: agent=" + agentId + " state is null/empty, setting state to " + currentState); return currentState; } else { log.debug("GetState: agent=" + agentId + " state=" + state); return state; } } else { log.debug("GetState: agent=" + agentId + " state attribute not defined, setting state to " + currentState); setState(currentState); return currentState; } } catch (Exception ex) { ex.printStackTrace(); return new String(); } }
|
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/060c613dd22562b0af07c014a9b4bcf6c1441ae5/HealthStatus.java/buggy/mgmt_agent/src/org/cougaar/tools/robustness/ma/plugins/HealthStatus.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8997,
1435,
288,
565,
368,
2463,
17773,
31,
565,
775,
288,
1377,
9055,
3422,
273,
3639,
1543,
17444,
18,
588,
1943,
2498,
12,
20859,
461,
16,
4040,
548,
18,
10492,
10663,
1377,
3601,
919,
3843,
273,
3422,
18,
588,
2932,
1997,
1119,
8863,
1377,
309,
261,
2019,
3843,
480,
446,
13,
288,
3639,
514,
919,
273,
261,
780,
13,
2019,
3843,
18,
588,
5621,
3639,
309,
261,
2019,
422,
446,
747,
919,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
288,
10402,
613,
18,
4148,
2932,
967,
1119,
30,
4040,
1546,
397,
4040,
548,
397,
5411,
315,
919,
353,
446,
19,
5531,
16,
3637,
919,
358,
315,
397,
17773,
1769,
1850,
327,
17773,
31,
3639,
289,
469,
288,
1850,
613,
18,
4148,
2932,
967,
1119,
30,
4040,
1546,
397,
4040,
548,
397,
315,
919,
1546,
397,
919,
1769,
1850,
327,
919,
31,
3639,
289,
1377,
289,
469,
288,
3639,
613,
18,
4148,
2932,
967,
1119,
30,
4040,
1546,
397,
4040,
548,
397,
1850,
315,
919,
1566,
486,
2553,
16,
3637,
919,
358,
315,
397,
17773,
1769,
9079,
327,
17773,
31,
1377,
289,
565,
289,
1044,
261,
503,
431,
13,
288,
1377,
431,
18,
1188,
6332,
5621,
1377,
327,
394,
514,
5621,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8997,
1435,
288,
565,
368,
2463,
17773,
31,
565,
775,
288,
1377,
9055,
3422,
273,
3639,
1543,
17444,
18,
588,
1943,
2498,
12,
20859,
461,
16,
4040,
548,
18,
10492,
10663,
1377,
3601,
919,
3843,
273,
3422,
18,
588,
2932,
1997,
1119,
8863,
1377,
309,
261,
2019,
3843,
480,
446,
13,
288,
3639,
514,
919,
273,
261,
780,
13,
2019,
3843,
18,
588,
5621,
3639,
309,
261,
2019,
422,
446,
747,
919,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
288,
10402,
613,
18,
4148,
2932,
967,
1119,
30,
4040,
1546,
397,
4040,
548,
397,
5411,
315,
919,
353,
446,
19,
5531,
16,
3637,
919,
358,
315,
397,
17773,
1769,
1850,
327,
17773,
31,
3639,
289,
2
] |
|
if (model.getBooleanProperty(CREATE_EJB)){
|
if (model.getBooleanProperty(CREATE_EJB)) {
|
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { try { IDataModel model = getDataModel(); if (model.getBooleanProperty(CREATE_EJB)){ IDataModel ejbModel = model.getNestedModel(NESTED_MODEL_EJB); ejbModel.setProperty(J2EEComponentCreationDataModel.PROJECT_NAME, model.getStringProperty(PROJECT_NAME)); ejbModel.setProperty(J2EEComponentCreationDataModel.COMPONENT_NAME, model.getStringProperty(EJB_COMPONENT_NAME)); ejbModel.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_NAME, model.getStringProperty(EAR_COMPONENT_NAME)); ejbModel.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_DEPLOY_NAME, model.getStringProperty(EAR_COMPONENT_NAME)); ejbModel.setProperty(J2EEComponentCreationDataModel.ADD_TO_EAR, Boolean.TRUE); createEJBComponent(ejbModel, monitor); } if (model.getBooleanProperty(CREATE_WEB)){ IDataModel webModel = model.getNestedModel(NESTED_MODEL_WEB); webModel.setProperty(J2EEComponentCreationDataModel.PROJECT_NAME, model.getStringProperty(PROJECT_NAME)); webModel.setProperty(J2EEComponentCreationDataModel.COMPONENT_NAME, model.getStringProperty(WEB_COMPONENT_NAME)); webModel.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_NAME, model.getStringProperty(EAR_COMPONENT_NAME)); webModel.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_DEPLOY_NAME, model.getStringProperty(EAR_COMPONENT_NAME)); webModel.setProperty(J2EEComponentCreationDataModel.ADD_TO_EAR, Boolean.TRUE); createWebJ2EEComponent(webModel, monitor); } if (model.getBooleanProperty(CREATE_CONNECTOR)){ IDataModel conModel = model.getNestedModel(NESTED_MODEL_JCA); conModel.setProperty(J2EEComponentCreationDataModel.PROJECT_NAME, model.getStringProperty(PROJECT_NAME)); conModel.setProperty(J2EEComponentCreationDataModel.COMPONENT_NAME, model.getStringProperty(CONNECTOR_COMPONENT_NAME)); conModel.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_NAME, model.getStringProperty(EAR_COMPONENT_NAME)); conModel.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_DEPLOY_NAME, model.getStringProperty(EAR_COMPONENT_NAME)); conModel.setProperty(J2EEComponentCreationDataModel.ADD_TO_EAR, Boolean.TRUE); createRarJ2EEComponent(conModel, monitor); } if (model.getBooleanProperty(CREATE_APPCLIENT)) { IDataModel clientModel = model.getNestedModel(NESTED_MODEL_CLIENT); clientModel.setProperty(J2EEComponentCreationDataModel.PROJECT_NAME, model.getStringProperty(PROJECT_NAME)); clientModel.setProperty(J2EEComponentCreationDataModel.COMPONENT_NAME, model.getStringProperty(APPCLIENT_COMPONENT_NAME)); clientModel.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_NAME, model.getStringProperty(EAR_COMPONENT_NAME)); clientModel.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_DEPLOY_NAME, model.getStringProperty(EAR_COMPONENT_NAME)); clientModel.setProperty(J2EEComponentCreationDataModel.ADD_TO_EAR, Boolean.TRUE); createAppClientComponent(clientModel, monitor); } } catch (Exception e) { Logger.getLogger().log(e.getMessage()); } return OK_STATUS; }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/69dc33207fffb43ed93751e41f68ea1bbcfc9363/DefaultJ2EEComponentCreationOp.java/buggy/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/DefaultJ2EEComponentCreationOp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1482,
1836,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
13,
1216,
20205,
288,
3639,
775,
288,
5411,
467,
26349,
938,
273,
4303,
1488,
5621,
5411,
309,
261,
2284,
18,
588,
5507,
1396,
12,
9344,
67,
22719,
3719,
288,
7734,
467,
26349,
18024,
1488,
273,
938,
18,
588,
8649,
1488,
12,
5407,
882,
2056,
67,
17391,
67,
22719,
1769,
7734,
18024,
1488,
18,
542,
1396,
12,
46,
22,
9383,
1841,
9906,
26349,
18,
17147,
67,
1985,
16,
13491,
938,
18,
588,
780,
1396,
12,
17147,
67,
1985,
10019,
7734,
18024,
1488,
18,
542,
1396,
12,
46,
22,
9383,
1841,
9906,
26349,
18,
22922,
67,
1985,
16,
13491,
938,
18,
588,
780,
1396,
12,
22719,
67,
22922,
67,
1985,
10019,
7734,
18024,
1488,
18,
542,
1396,
12,
46,
22,
9383,
1841,
9906,
26349,
18,
9250,
67,
12194,
67,
1985,
16,
13491,
938,
18,
588,
780,
1396,
12,
9250,
67,
22922,
67,
1985,
10019,
7734,
18024,
1488,
18,
542,
1396,
12,
46,
22,
9383,
1841,
9906,
26349,
18,
9250,
67,
12194,
67,
1639,
22971,
67,
1985,
16,
13491,
938,
18,
588,
780,
1396,
12,
9250,
67,
22922,
67,
1985,
10019,
7734,
18024,
1488,
18,
542,
1396,
12,
46,
22,
9383,
1841,
9906,
26349,
18,
8355,
67,
4296,
67,
9250,
16,
13491,
3411,
18,
18724,
1769,
7734,
752,
22719,
1841,
12,
73,
10649,
1488,
16,
6438,
1769,
5397,
289,
2398,
309,
261,
2284,
18,
588,
5507,
1396,
12,
9344,
67,
14778,
3719,
95,
7734,
467,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
1482,
1836,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
13,
1216,
20205,
288,
3639,
775,
288,
5411,
467,
26349,
938,
273,
4303,
1488,
5621,
5411,
309,
261,
2284,
18,
588,
5507,
1396,
12,
9344,
67,
22719,
3719,
288,
7734,
467,
26349,
18024,
1488,
273,
938,
18,
588,
8649,
1488,
12,
5407,
882,
2056,
67,
17391,
67,
22719,
1769,
7734,
18024,
1488,
18,
542,
1396,
12,
46,
22,
9383,
1841,
9906,
26349,
18,
17147,
67,
1985,
16,
13491,
938,
18,
588,
780,
1396,
12,
17147,
67,
1985,
10019,
7734,
18024,
1488,
18,
542,
1396,
12,
46,
22,
9383,
1841,
9906,
26349,
18,
22922,
67,
1985,
16,
13491,
938,
18,
588,
780,
1396,
12,
22719,
2
] |
data.horizontalAlignment = GridData.FILL; data.grabExcessHorizontalSpace = true; data.horizontalSpan = 2;
|
protected Control createContents(Composite parent) { Font font = parent.getFont(); PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IHelpUIConstants.PREF_PAGE_APPSERVER); Composite mainComposite = new Composite(parent, SWT.NULL); mainComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.numColumns = 2; mainComposite.setLayout(layout); Label label = new Label(mainComposite, SWT.NONE); label.setText(Messages.AppserverPreferencePage_description); //$NON-NLS-1$ GridData data = new GridData(); data.horizontalSpan = 2; label.setLayoutData(data); label.setFont(font); // Spacer label = new Label(mainComposite, SWT.NONE); data = new GridData(); data.horizontalSpan = 2; label.setLayoutData(data); label.setFont(font); label = new Label(mainComposite, SWT.NONE); label.setFont(font); label.setText(Messages.AppserverPreferencePage_hostDescription); //$NON-NLS-1$ data = new GridData(); data.horizontalSpan = 2; label.setLayoutData(data); //Label labelHost = new Label(mainComposite, SWT.LEFT); //labelHost.setText( // WorkbenchResources.getString("AppserverPreferencePage.host")); //data = new GridData(); //labelHost.setLayoutData(data); //labelHost.setFont(font); textServerAddr = new Text(mainComposite, SWT.SINGLE | SWT.BORDER); //text.addListener(SWT.Modify, this); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.grabExcessHorizontalSpace = true; data.horizontalSpan = 2; textServerAddr.setLayoutData(data); textServerAddr.setFont(font); // Spacer label = new Label(mainComposite, SWT.NONE); data = new GridData(); data.horizontalSpan = 2; label.setLayoutData(data); label.setFont(font); label = new Label(mainComposite, SWT.NONE); label.setFont(font); label.setText(Messages.AppserverPreferencePage_portDescription); //$NON-NLS-1$ data = new GridData(); data.horizontalSpan = 2; label.setLayoutData(data); label.setFont(font); //Label labelPort = new Label(mainComposite, SWT.LEFT); //labelPort.setText( // WorkbenchResources.getString("AppserverPreferencePage.port")); //data = new GridData(); //labelPort.setLayoutData(data); //labelPort.setFont(font); textServerPort = new Text(mainComposite, SWT.SINGLE | SWT.BORDER); textServerPort.setTextLimit(5); data = new GridData(); data.widthHint = convertWidthInCharsToPixels(8); data.horizontalAlignment = GridData.FILL; data.grabExcessHorizontalSpace = true; data.horizontalSpan = 2; textServerPort.setLayoutData(data); textServerPort.setFont(font); // Validation of port field textServerPort.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { if (textServerPort.getText().length() == 0) { AppserverPreferencePage.this.setValid(true); setErrorMessage(null); return; } try { int num = Integer.valueOf(textServerPort.getText()) .intValue(); if (0 <= num && num <= 0xFFFF) { // port is valid AppserverPreferencePage.this.setValid(true); setErrorMessage(null); return; } // port is invalid } catch (NumberFormatException nfe) { } AppserverPreferencePage.this.setValid(false); setErrorMessage(Messages.AppserverPreferencePage_invalidPort); //$NON-NLS-1$ } }); // Spacer label = new Label(mainComposite, SWT.NONE); data = new GridData(); data.horizontalSpan = 2; label.setLayoutData(data); label.setFont(font); label = new Label(mainComposite, SWT.NONE); label .setText(Messages.AppserverPreferencePage_Note); //$NON-NLS-1$ // Make this bold FontData[] fontData = font.getFontData(); for (int i = 0; i < fontData.length; i++) { fontData[i].setStyle(fontData[i].getStyle() | SWT.BOLD); } final Font boldFont = new Font(label.getDisplay(), fontData); label.setFont(boldFont); label.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { boldFont.dispose(); } }); // data = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); //data.horizontalSpan = 2; label.setLayoutData(data); label = new Label(mainComposite, SWT.NONE); label.setText(Messages.AppserverPreferencePage_requireRestart); //$NON-NLS-1$ data = new GridData(); //data.horizontalSpan = 2; label.setLayoutData(data); label.setFont(font); Preferences pref = AppserverPlugin.getDefault().getPluginPreferences(); textServerAddr.setText(pref.getString(AppserverPlugin.HOST_KEY)); textServerPort.setText(pref.getString(AppserverPlugin.PORT_KEY)); return mainComposite; }
|
13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/5cc189be6cf638638b8785e2c5cb4b05c5373de0/AppserverPreferencePage.java/buggy/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/AppserverPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
5711,
3512,
273,
982,
18,
588,
5711,
5621,
202,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
542,
6696,
12,
2938,
16,
467,
6696,
5370,
2918,
18,
3670,
42,
67,
11219,
67,
7215,
4370,
1769,
202,
202,
9400,
2774,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
5254,
9400,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
5254,
9400,
18,
542,
3744,
12,
6741,
1769,
202,
202,
2224,
1433,
273,
394,
5287,
12,
5254,
9400,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1925,
18,
542,
1528,
12,
5058,
18,
3371,
3567,
9624,
1964,
67,
3384,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
5621,
202,
202,
892,
18,
18396,
6952,
273,
576,
31,
202,
202,
1925,
18,
542,
3744,
751,
12,
892,
1769,
202,
202,
1925,
18,
542,
5711,
12,
5776,
1769,
202,
202,
759,
5878,
10598,
202,
202,
1925,
273,
394,
5287,
12,
5254,
9400,
16,
348,
8588,
18,
9826,
1769,
202,
202,
892,
273,
394,
7145,
751,
5621,
202,
202,
892,
18,
18396,
6952,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
5711,
3512,
273,
982,
18,
588,
5711,
5621,
202,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
542,
6696,
12,
2938,
16,
467,
6696,
5370,
2918,
18,
3670,
42,
67,
11219,
67,
7215,
4370,
1769,
202,
202,
9400,
2774,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
5254,
9400,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
2
] |
|
DependencyManagement dependencyManagement = model.getDependencyManagement(); dependencies = dependencyManagement != null ? dependencyManagement.getDependencies() : null;
|
PluginManagement pluginManagement = build.getPluginManagement(); plugins = pluginManagement != null ? pluginManagement.getPlugins() : null;
|
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( model.getParent() != null ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); // Avoid in dep mgmt if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } DependencyManagement dependencyManagement = model.getDependencyManagement(); dependencies = dependencyManagement != null ? dependencyManagement.getDependencies() : null; if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section List plugins = build.getPlugins(); if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); // Avoid in plugin mgmt if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } PluginManagement pluginManagement = build.getPluginManagement(); plugins = pluginManagement != null ? pluginManagement.getPlugins() : null; if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } //Rewrite extensions section List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( ext.getGroupId(), ext.getArtifactId() ); if ( resolvedVersion != null ) { ext.setVersion( resolvedVersion ); } } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
|
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/625596d32f1138e016cf983748dd893bd640133a/PrepareReleaseMojo.java/clean/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2510,
52,
362,
774,
7391,
1444,
52,
362,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
52,
1872,
67,
16596,
7473,
25773,
67,
7473,
67,
30762,
262,
262,
3639,
288,
5411,
309,
261,
401,
291,
4568,
12,
1984,
18,
588,
1444,
1435,
262,
262,
5411,
288,
7734,
604,
394,
18780,
12,
315,
1986,
1984,
315,
397,
1984,
18,
588,
8722,
1435,
397,
6153,
397,
10792,
1984,
18,
588,
7581,
548,
1435,
397,
315,
5177,
1404,
279,
4439,
7566,
397,
1984,
18,
588,
1444,
1435,
397,
9369,
1199,
11272,
5411,
289,
5411,
3164,
938,
273,
1984,
18,
588,
8176,
1488,
5621,
5411,
368,
19618,
982,
1177,
5411,
309,
261,
938,
18,
588,
3054,
1435,
480,
446,
262,
5411,
288,
7734,
14022,
982,
7581,
273,
1984,
18,
588,
3054,
7581,
5621,
7734,
309,
261,
353,
4568,
12,
982,
7581,
18,
588,
2171,
1444,
1435,
262,
262,
7734,
288,
10792,
514,
1177,
273,
2245,
1444,
12,
982,
7581,
16,
315,
2938,
3113,
1984,
11272,
10792,
938,
18,
588,
3054,
7675,
542,
1444,
12,
1177,
11272,
7734,
289,
5411,
289,
5411,
368,
19618,
5030,
2442,
5411,
987,
5030,
273,
938,
18,
588,
8053,
5621,
5411,
309,
261,
5030,
480,
446,
262,
5411,
288,
7734,
364,
261,
4498,
277,
273,
5030,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
7734,
288,
10792,
11993,
5993,
273,
261,
7787,
13,
277,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2510,
52,
362,
774,
7391,
1444,
52,
362,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
52,
1872,
67,
16596,
7473,
25773,
67,
7473,
67,
30762,
262,
262,
3639,
288,
5411,
309,
261,
401,
291,
4568,
12,
1984,
18,
588,
1444,
1435,
262,
262,
5411,
288,
7734,
604,
394,
18780,
12,
315,
1986,
1984,
315,
397,
1984,
18,
588,
8722,
1435,
397,
6153,
397,
10792,
1984,
18,
588,
7581,
548,
1435,
397,
315,
5177,
1404,
279,
4439,
7566,
397,
1984,
18,
588,
1444,
1435,
397,
9369,
1199,
11272,
5411,
289,
5411,
3164,
938,
273,
1984,
18,
588,
2
] |
jEdit.setBooleanProperty(prefix + "syntax",syntax);
|
void save() { // don't do anything if the user didn't change // any settings if(!edited) return; String prefix = "mode." + mode.getName() + "."; jEdit.setBooleanProperty(prefix + "customSettings",!useDefaults); if(useDefaults) { jEdit.resetProperty(prefix + "filenameGlob"); jEdit.resetProperty(prefix + "firstlineGlob"); jEdit.resetProperty(prefix + "tabSize"); jEdit.resetProperty(prefix + "indentSize"); jEdit.resetProperty(prefix + "maxLineLen"); jEdit.resetProperty(prefix + "wordBreakChars"); jEdit.resetProperty(prefix + "noWordSep"); jEdit.resetProperty(prefix + "folding"); jEdit.resetProperty(prefix + "collapseFolds"); jEdit.resetProperty(prefix + "noTabs"); jEdit.resetProperty(prefix + "indentOnTab"); jEdit.resetProperty(prefix + "indentOnEnter"); jEdit.resetProperty(prefix + "syntax"); } else { jEdit.setProperty(prefix + "filenameGlob",filenameGlob); jEdit.setProperty(prefix + "firstlineGlob",firstlineGlob); jEdit.setProperty(prefix + "tabSize",tabSize); jEdit.setProperty(prefix + "indentSize",indentSize); jEdit.setProperty(prefix + "maxLineLen",maxLineLen); jEdit.setProperty(prefix + "wordBreakChars",wordBreakChars); jEdit.setProperty(prefix + "noWordSep",noWordSep); jEdit.setProperty(prefix + "folding",folding); jEdit.setProperty(prefix + "collapseFolds",collapseFolds); jEdit.setBooleanProperty(prefix + "noTabs",noTabs); jEdit.setBooleanProperty(prefix + "indentOnTab",indentOnTab); jEdit.setBooleanProperty(prefix + "indentOnEnter",indentOnEnter); jEdit.setBooleanProperty(prefix + "syntax",syntax); } }
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/3cf31efe2b1f42c624b923f1fdcd1aaaaf431719/ModeOptionPane.java/buggy/org/gjt/sp/jedit/options/ModeOptionPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
1923,
1435,
202,
202,
95,
1082,
202,
759,
2727,
1404,
741,
6967,
309,
326,
729,
10242,
1404,
2549,
1082,
202,
759,
1281,
1947,
1082,
202,
430,
12,
5,
28752,
13,
9506,
202,
2463,
31,
1082,
202,
780,
1633,
273,
315,
3188,
1199,
397,
1965,
18,
17994,
1435,
397,
4585,
31,
1082,
202,
78,
4666,
18,
542,
5507,
1396,
12,
3239,
397,
315,
3662,
2628,
3113,
5,
1202,
7019,
1769,
1082,
202,
430,
12,
1202,
7019,
13,
1082,
202,
95,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
3459,
13499,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
3645,
1369,
13499,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
7032,
1225,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
9355,
1225,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
1896,
1670,
2891,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
1095,
7634,
7803,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
2135,
3944,
5097,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
16007,
310,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
21405,
15592,
87,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
2135,
17348,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
9355,
1398,
5661,
8863,
9506,
202,
78,
4666,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
1923,
1435,
202,
202,
95,
1082,
202,
759,
2727,
1404,
741,
6967,
309,
326,
729,
10242,
1404,
2549,
1082,
202,
759,
1281,
1947,
1082,
202,
430,
12,
5,
28752,
13,
9506,
202,
2463,
31,
1082,
202,
780,
1633,
273,
315,
3188,
1199,
397,
1965,
18,
17994,
1435,
397,
4585,
31,
1082,
202,
78,
4666,
18,
542,
5507,
1396,
12,
3239,
397,
315,
3662,
2628,
3113,
5,
1202,
7019,
1769,
1082,
202,
430,
12,
1202,
7019,
13,
1082,
202,
95,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
3459,
13499,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
3239,
397,
315,
3645,
1369,
13499,
8863,
9506,
202,
78,
4666,
18,
6208,
1396,
12,
2
] |
|
this.dialog = dialog;
|
public FiltersAction(TableView view, Dialog dialog) { super(Messages.getString("filtersAction.title")); //$NON-NLS-1$ setImageDescriptor(ImageFactory.getImageDescriptor("clcl16/filter_ps.gif")); //$NON-NLS-1$ setToolTipText(Messages.getString("filtersAction.tooltip")); //$NON-NLS-1$ this.view = view; this.dialog = dialog; setEnabled(true); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ea57ee1b804071939d5791d4c2986826074efe0c/FiltersAction.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FiltersAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14475,
1803,
12,
1388,
1767,
1476,
16,
17242,
6176,
13,
288,
202,
202,
9565,
12,
5058,
18,
588,
780,
2932,
6348,
1803,
18,
2649,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
542,
2040,
3187,
12,
2040,
1733,
18,
588,
2040,
3187,
2932,
830,
830,
2313,
19,
2188,
67,
1121,
18,
13905,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
542,
29250,
1528,
12,
5058,
18,
588,
780,
2932,
6348,
1803,
18,
19798,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2211,
18,
1945,
273,
1476,
31,
202,
202,
2211,
18,
12730,
273,
6176,
31,
202,
202,
542,
1526,
12,
3767,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14475,
1803,
12,
1388,
1767,
1476,
16,
17242,
6176,
13,
288,
202,
202,
9565,
12,
5058,
18,
588,
780,
2932,
6348,
1803,
18,
2649,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
542,
2040,
3187,
12,
2040,
1733,
18,
588,
2040,
3187,
2932,
830,
830,
2313,
19,
2188,
67,
1121,
18,
13905,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
542,
29250,
1528,
12,
5058,
18,
588,
780,
2932,
6348,
1803,
18,
19798,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2211,
18,
1945,
273,
1476,
31,
202,
202,
2211,
18,
12730,
273,
6176,
31,
202,
202,
542,
1526,
12,
3767,
1769,
202,
97,
2,
-100,
-100,
-100
] |
|
setData(TraderPlugin.getData(symbol));
|
if (!symbol.equals("")) setData(TraderPlugin.getData(symbol));
|
public void createPartControl(Composite parent) { container = new Composite(parent, SWT.H_SCROLL); container.getHorizontalBar().addSelectionListener(this); GridLayout gridLayout = new GridLayout(1, false); gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; gridLayout.horizontalSpacing = 0; gridLayout.verticalSpacing = 0; container.setLayout(gridLayout); container.addControlListener(this); composite = new Composite(container, SWT.NONE); composite.setBackground(background); gridLayout = new GridLayout(20, false); gridLayout.marginWidth = 3; gridLayout.marginHeight = 0; gridLayout.horizontalSpacing = 5; gridLayout.verticalSpacing = 0; composite.setLayout(gridLayout); GridData gridData = new GridData(GridData.FILL_HORIZONTAL|GridData.VERTICAL_ALIGN_FILL); gridData.heightHint = 16; composite.setLayoutData(gridData); composite.addPaintListener(this); title = new Label(composite, SWT.NONE); title.setBackground(title.getParent().getBackground()); title.setLayoutData(new GridData()); Label label = new Label(composite, SWT.NONE); label.setText("Data:"); label.setBackground(title.getParent().getBackground()); label.setLayoutData(new GridData()); date = new Label(composite, SWT.NONE); date.setForeground(lineColor); date.setBackground(title.getParent().getBackground()); date.setLayoutData(new GridData()); label = new Label(composite, SWT.NONE); label.setText("Val.:"); label.setBackground(title.getParent().getBackground()); label.setLayoutData(new GridData()); closePrice = new Label(composite, SWT.NONE); closePrice.setForeground(lineColor); closePrice.setBackground(title.getParent().getBackground()); closePrice.setLayoutData(new GridData()); label = new Label(composite, SWT.NONE); label.setText("Max.:"); label.setBackground(title.getParent().getBackground()); label.setLayoutData(new GridData()); maxPrice = new Label(composite, SWT.NONE); maxPrice.setForeground(lineColor); maxPrice.setBackground(title.getParent().getBackground()); maxPrice.setLayoutData(new GridData()); label = new Label(composite, SWT.NONE); label.setText("Min.:"); label.setBackground(title.getParent().getBackground()); label.setLayoutData(new GridData()); minPrice = new Label(composite, SWT.NONE); minPrice.setForeground(lineColor); minPrice.setBackground(title.getParent().getBackground()); minPrice.setLayoutData(new GridData()); label = new Label(composite, SWT.NONE); label.setText("Var.:"); label.setBackground(title.getParent().getBackground()); label.setLayoutData(new GridData()); variance = new Label(composite, SWT.NONE); variance.setForeground(lineColor); variance.setBackground(title.getParent().getBackground()); variance.setLayoutData(new GridData()); label = new Label(composite, SWT.NONE); label.setText("Vol.:"); label.setBackground(title.getParent().getBackground()); label.setLayoutData(new GridData()); volume = new Label(composite, SWT.NONE); volume.setForeground(lineColor); volume.setBackground(title.getParent().getBackground()); volume.setLayoutData(new GridData()); form = new SashForm(container, SWT.VERTICAL); form.setLayoutData(new GridData(GridData.FILL_BOTH)); bottombar = new Canvas(container, SWT.NONE); bottombar.setBackground(background); gridData = new GridData(GridData.FILL_HORIZONTAL|GridData.VERTICAL_ALIGN_FILL); gridData.heightHint = 20; bottombar.setLayoutData(gridData); bottombar.addPaintListener(this); // Restore del grafico precedente String id = getViewSite().getSecondaryId(); String symbol = ViewsPlugin.getDefault().getPreferenceStore().getString("chart." + id); setData(TraderPlugin.getData(symbol)); }
|
12846 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12846/c1fb9276197b41c6e6c11f86673fb89043b77edd/ChartView.java/clean/net.sourceforge.eclipsetrader.ui.views/src/net/sourceforge/eclipsetrader/ui/views/charts/ChartView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
752,
1988,
3367,
12,
9400,
982,
13,
225,
288,
565,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
44,
67,
2312,
14555,
1769,
565,
1478,
18,
588,
14457,
5190,
7675,
1289,
6233,
2223,
12,
2211,
1769,
565,
7145,
3744,
3068,
3744,
273,
394,
7145,
3744,
12,
21,
16,
629,
1769,
565,
3068,
3744,
18,
10107,
2384,
273,
374,
31,
565,
3068,
3744,
18,
10107,
2686,
273,
374,
31,
565,
3068,
3744,
18,
18396,
18006,
273,
374,
31,
565,
3068,
3744,
18,
17824,
18006,
273,
374,
31,
565,
1478,
18,
542,
3744,
12,
5222,
3744,
1769,
565,
1478,
18,
1289,
3367,
2223,
12,
2211,
1769,
3639,
9635,
273,
394,
14728,
12,
3782,
16,
348,
8588,
18,
9826,
1769,
565,
9635,
18,
542,
8199,
12,
9342,
1769,
565,
3068,
3744,
273,
394,
7145,
3744,
12,
3462,
16,
629,
1769,
565,
3068,
3744,
18,
10107,
2384,
273,
890,
31,
565,
3068,
3744,
18,
10107,
2686,
273,
374,
31,
565,
3068,
3744,
18,
18396,
18006,
273,
1381,
31,
565,
3068,
3744,
18,
17824,
18006,
273,
374,
31,
565,
9635,
18,
542,
3744,
12,
5222,
3744,
1769,
565,
7145,
751,
3068,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
96,
6313,
751,
18,
21654,
10109,
67,
26439,
67,
29818,
1769,
565,
3068,
751,
18,
4210,
7002,
273,
2872,
31,
565,
9635,
18,
542,
3744,
751,
12,
5222,
751,
1769,
565,
9635,
18,
1289,
12699,
2223,
12,
2211,
1769,
565,
2077,
273,
394,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
752,
1988,
3367,
12,
9400,
982,
13,
225,
288,
565,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
44,
67,
2312,
14555,
1769,
565,
1478,
18,
588,
14457,
5190,
7675,
1289,
6233,
2223,
12,
2211,
1769,
565,
7145,
3744,
3068,
3744,
273,
394,
7145,
3744,
12,
21,
16,
629,
1769,
565,
3068,
3744,
18,
10107,
2384,
273,
374,
31,
565,
3068,
3744,
18,
10107,
2686,
273,
374,
31,
565,
3068,
3744,
18,
18396,
18006,
273,
374,
31,
565,
3068,
3744,
18,
17824,
18006,
273,
374,
31,
565,
1478,
18,
542,
3744,
12,
5222,
3744,
1769,
565,
1478,
18,
1289,
3367,
2223,
12,
2211,
1769,
3639,
9635,
273,
394,
14728,
12,
3782,
16,
348,
8588,
2
] |
if (jj_scan_token(PROTECTED)) return true;
|
if (jj_scan_token(PUBLIC)) return true;
|
final private boolean jj_3R_306() { if (jj_scan_token(PROTECTED)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
29490,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
14939,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
29490,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
14939,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (value instanceof Function) ? "function" : "object";
|
return (value instanceof Callable) ? "function" : "object";
|
public static String typeof(Object value) { if (value == null) return "object"; if (value == Undefined.instance) return "undefined"; if (value instanceof Scriptable) { if (value instanceof XMLObject) return "xml"; return (value instanceof Function) ? "function" : "object"; } if (value instanceof String) return "string"; if (value instanceof Number) return "number"; if (value instanceof Boolean) return "boolean"; throw errorWithClassName("msg.invalid.type", value); }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/90ebe1bf30876ca8ca8a098496166e8475268746/ScriptRuntime.java/buggy/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2716,
12,
921,
460,
13,
565,
288,
3639,
309,
261,
1132,
422,
446,
13,
5411,
327,
315,
1612,
14432,
3639,
309,
261,
1132,
422,
22243,
18,
1336,
13,
5411,
327,
315,
5978,
14432,
3639,
309,
261,
1132,
1276,
22780,
13,
3639,
288,
5411,
309,
261,
1132,
1276,
3167,
921,
13,
7734,
327,
315,
2902,
14432,
5411,
327,
261,
1132,
1276,
10464,
13,
692,
315,
915,
6,
294,
315,
1612,
14432,
3639,
289,
3639,
309,
261,
1132,
1276,
514,
13,
5411,
327,
315,
1080,
14432,
3639,
309,
261,
1132,
1276,
3588,
13,
5411,
327,
315,
2696,
14432,
3639,
309,
261,
1132,
1276,
3411,
13,
5411,
327,
315,
6494,
14432,
3639,
604,
555,
1190,
3834,
2932,
3576,
18,
5387,
18,
723,
3113,
460,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
514,
2716,
12,
921,
460,
13,
565,
288,
3639,
309,
261,
1132,
422,
446,
13,
5411,
327,
315,
1612,
14432,
3639,
309,
261,
1132,
422,
22243,
18,
1336,
13,
5411,
327,
315,
5978,
14432,
3639,
309,
261,
1132,
1276,
22780,
13,
3639,
288,
5411,
309,
261,
1132,
1276,
3167,
921,
13,
7734,
327,
315,
2902,
14432,
5411,
327,
261,
1132,
1276,
10464,
13,
692,
315,
915,
6,
294,
315,
1612,
14432,
3639,
289,
3639,
309,
261,
1132,
1276,
514,
13,
5411,
327,
315,
1080,
14432,
3639,
309,
261,
1132,
1276,
3588,
13,
5411,
327,
315,
2696,
14432,
3639,
309,
261,
1132,
1276,
3411,
13,
5411,
327,
315,
6494,
14432,
3639,
604,
555,
1190,
3834,
2932,
3576,
2
] |
this.grailsApplication = grailsApplication; }
|
this.grailsApplication = grailsApplication; }
|
public void setGrailsApplication(GrailsApplication grailsApplication) { this.grailsApplication = grailsApplication; }
|
28089 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28089/a5c9dcc1f634b2b34633f99a226b7a489931c458/PersistentMethodTests.java/buggy/test/persistence/org/codehaus/groovy/grails/orm/hibernate/PersistentMethodTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
14571,
14573,
3208,
12,
14571,
14573,
3208,
3087,
14573,
3208,
13,
288,
202,
202,
2211,
18,
2752,
14573,
3208,
273,
3087,
14573,
3208,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
14571,
14573,
3208,
12,
14571,
14573,
3208,
3087,
14573,
3208,
13,
288,
202,
202,
2211,
18,
2752,
14573,
3208,
273,
3087,
14573,
3208,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
BufferedReader input = null;
|
InputStream input = null;
|
public synchronized Result execute(Result prev_result, int nr, Repository rep, Job parentJob) { LogWriter log = LogWriter.getInstance(); Result result = new Result(nr); result.setResult( false ); log.logBasic(toString(), "Start of HTTP job entry."); // Get previous result rows... List resultRows; String urlFieldnameToUse = URL_FIELDNAME; if (runForEveryRow) { resultRows = prev_result.getRows(); if (resultRows==null) { result.setNrErrors(1); log.logError(toString(), "Unable to get result from previous job entry : can't continue."); return result; } } else { resultRows = new ArrayList(); Row row = new Row(); row.addValue( new Value(urlFieldnameToUse, StringUtil.environmentSubstitute(url)) ); resultRows.add(row); System.out.println("Added one row to rows: "+row); } URL server = null; String beforeProxyHost = System.getProperty("http.proxyHost"); String beforeProxyPort = System.getProperty("http.proxyPort"); String beforeNonProxyHosts = System.getProperty("http.nonProxyHosts"); for (int i=0;i<resultRows.size() && result.getNrErrors()==0;i++) { Row row = (Row)resultRows.get(i); FileOutputStream outputFile = null; OutputStream uploadStream = null; BufferedInputStream fileStream = null; BufferedReader input = null; try { String urlToUse = StringUtil.environmentSubstitute( row.getString(urlFieldnameToUse, "") ); log.logBasic(toString(), "Connecting to URL: "+urlToUse); if (!Const.isEmpty( proxyHostname )) { System.setProperty("http.proxyHost", StringUtil.environmentSubstitute( proxyHostname )); System.setProperty("http.proxyPort", StringUtil.environmentSubstitute( proxyPort )); if (nonProxyHosts!=null) System.setProperty("http.nonProxyHosts", StringUtil.environmentSubstitute( nonProxyHosts )); } if (!Const.isEmpty(username) ) { Authenticator.setDefault(new Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { String realPassword = StringUtil.environmentSubstitute( password ); return new PasswordAuthentication(StringUtil.environmentSubstitute(username), realPassword!=null ? realPassword.toCharArray() : new char[] {} ); } } ); } String realTargetFile = StringUtil.environmentSubstitute( targetFilename ); if (dateTimeAdded) { SimpleDateFormat daf = new SimpleDateFormat(); Date now = new Date(); daf.applyPattern("yyyMMdd"); realTargetFile+="_"+daf.format(now); daf.applyPattern("HHmmss"); realTargetFile+="_"+daf.format(now); if (!Const.isEmpty(targetFilenameExtention) ) { realTargetFile+="."+StringUtil.environmentSubstitute(targetFilenameExtention); } } // Create the output File... outputFile = new FileOutputStream(new File(realTargetFile), fileAppended); // Get a stream for the specified URL server = new URL(urlToUse); URLConnection connection = server.openConnection(); // See if we need to send a file over? String realUploadFilename = StringUtil.environmentSubstitute( uploadFilename ); if (!Const.isEmpty(realUploadFilename)) { log.logDetailed(toString(), "Start sending content of file ["+realUploadFilename+"] to server."); connection.setDoOutput(true); // Grab an output stream to upload data to web server uploadStream = connection.getOutputStream(); fileStream = new BufferedInputStream(new FileInputStream(new File(realUploadFilename))); int c; while ( (c=fileStream.read())>=0) { uploadStream.write(c); } // Close upload and file uploadStream.close(); uploadStream=null; fileStream.close(); fileStream=null; log.logDetailed(toString(), "Finished sending content to server."); } log.logDetailed(toString(), "Start reading reply from webserver."); // Read the result from the server... input = new BufferedReader(new InputStreamReader( connection.getInputStream() )); long bytesRead = 0L; String line; while ( (line=input.readLine())!=null ) { line+=Const.CR; bytesRead+=line.length(); outputFile.write(line.getBytes()); } log.logBasic(toString(), "Finished writing "+bytesRead+" bytes to result file ["+realTargetFile+"]"); // Add to the result files... ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_GENERAL, new File(realTargetFile), parentJob.getJobname(), toString()); result.getResultFiles().add(resultFile); result.setResult( true ); } catch(MalformedURLException e) { result.setNrErrors(1); e.printStackTrace(); log.logError(toString(), "The specified URL is not valid ["+url+"] : "+e.getMessage()); } catch(IOException e) { result.setNrErrors(1); e.printStackTrace(); log.logError(toString(), "I was unable to save the HTTP result to file because of a I/O error: "+e.getMessage()); } catch(Exception e) { result.setNrErrors(1); e.printStackTrace(); log.logError(toString(), "Error getting file from HTTP : "+e.getMessage()); } finally { // Close it all try { if (uploadStream!=null) uploadStream.close(); // just to make sure if (fileStream!=null) fileStream.close(); // just to make sure if (input!=null) input.close(); if (outputFile!=null) outputFile.close(); } catch(Exception e) { log.logError(toString(), "Unable to close streams : "+e.getMessage()); result.setNrErrors(1); } // Set the proxy settings back as they were on the system! System.setProperty("http.proxyHost", Const.NVL(beforeProxyHost, "")); System.setProperty("http.proxyPort", Const.NVL(beforeProxyPort, "")); System.setProperty("http.nonProxyHosts", Const.NVL(beforeNonProxyHosts, "")); } } return result; }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/430bfc43081315f161df13b9eb525eff8ac1678e/JobEntryHTTP.java/buggy/src/be/ibridge/kettle/job/entry/http/JobEntryHTTP.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
3438,
1836,
12,
1253,
2807,
67,
2088,
16,
509,
9884,
16,
6281,
2071,
16,
3956,
982,
2278,
13,
202,
95,
202,
202,
1343,
2289,
613,
273,
1827,
2289,
18,
588,
1442,
5621,
202,
202,
1253,
563,
273,
394,
3438,
12,
11611,
1769,
202,
202,
2088,
18,
542,
1253,
12,
629,
11272,
202,
202,
1330,
18,
1330,
8252,
12,
10492,
9334,
315,
1685,
434,
2239,
1719,
1241,
1199,
1769,
3639,
368,
968,
2416,
563,
2595,
2777,
3639,
987,
563,
4300,
31,
3639,
514,
880,
974,
529,
18762,
273,
1976,
67,
6776,
1985,
31,
3639,
309,
261,
2681,
1290,
21465,
1999,
13,
3639,
288,
5411,
563,
4300,
273,
2807,
67,
2088,
18,
588,
4300,
5621,
5411,
309,
261,
2088,
4300,
631,
2011,
13,
5411,
288,
7734,
563,
18,
542,
18726,
4229,
12,
21,
1769,
7734,
613,
18,
1330,
668,
12,
10492,
9334,
315,
3370,
358,
336,
563,
628,
2416,
1719,
1241,
294,
848,
1404,
1324,
1199,
1769,
7734,
327,
563,
31,
5411,
289,
3639,
289,
3639,
469,
3639,
288,
5411,
563,
4300,
273,
394,
2407,
5621,
5411,
6556,
1027,
273,
394,
6556,
5621,
5411,
1027,
18,
1289,
620,
12,
394,
1445,
12,
718,
974,
529,
18762,
16,
14205,
18,
10274,
1676,
17207,
12,
718,
3719,
11272,
5411,
563,
4300,
18,
1289,
12,
492,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
8602,
1245,
1027,
358,
2595,
30,
13773,
492,
1769,
3639,
289,
7734,
1976,
1438,
273,
446,
31,
3639,
514,
1865,
3886,
2594,
377,
273,
2332,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
3438,
1836,
12,
1253,
2807,
67,
2088,
16,
509,
9884,
16,
6281,
2071,
16,
3956,
982,
2278,
13,
202,
95,
202,
202,
1343,
2289,
613,
273,
1827,
2289,
18,
588,
1442,
5621,
202,
202,
1253,
563,
273,
394,
3438,
12,
11611,
1769,
202,
202,
2088,
18,
542,
1253,
12,
629,
11272,
202,
202,
1330,
18,
1330,
8252,
12,
10492,
9334,
315,
1685,
434,
2239,
1719,
1241,
1199,
1769,
3639,
368,
968,
2416,
563,
2595,
2777,
3639,
987,
563,
4300,
31,
3639,
514,
880,
974,
529,
18762,
273,
1976,
67,
6776,
1985,
31,
3639,
309,
261,
2681,
1290,
21465,
1999,
13,
3639,
288,
5411,
563,
4300,
273,
2807,
67,
2088,
18,
588,
4300,
5621,
5411,
309,
261,
2
] |
} else if (matchToken(Token.LP, 0)) {
|
} else if (matchToken(Token.LP)) {
|
private Node function(int functionType) throws IOException, ParserException { int syntheticType = functionType; int baseLineno = ts.getLineno(); // line number where source starts int functionSourceStart = decompiler.markFunctionStart(functionType); String name; Node memberExprNode = null; if (matchToken(Token.NAME, 0)) { name = ts.getString(); decompiler.addName(name); if (!matchToken(Token.LP, 0)) { if (compilerEnv.isAllowMemberExprAsFunctionName()) { // Extension to ECMA: if 'function <name>' does not follow // by '(', assume <name> starts memberExpr Node memberExprHead = nf.createName(name); name = ""; memberExprNode = memberExprTail(false, memberExprHead); } mustMatchToken(Token.LP, "msg.no.paren.parms"); } } else if (matchToken(Token.LP, 0)) { // Anonymous function name = ""; } else { name = ""; if (compilerEnv.isAllowMemberExprAsFunctionName()) { // Note that memberExpr can not start with '(' like // in function (1+2).toString(), because 'function (' already // processed as anonymous function memberExprNode = memberExpr(false); } mustMatchToken(Token.LP, "msg.no.paren.parms"); } if (memberExprNode != null) { syntheticType = FunctionNode.FUNCTION_EXPRESSION; } boolean nested = insideFunction(); FunctionNode fnNode = nf.createFunction(name); if (nested) { // Nested functions must check their 'this' value to insure // it is not an activation object: see 10.1.6 Activation Object fnNode.setCheckThis(); } if (nested || nestingOfWith > 0) { // 1. Nested functions are not affected by the dynamic scope flag // as dynamic scope is already a parent of their scope. // 2. Functions defined under the with statement also immune to // this setup, in which case dynamic scope is ignored in favor // of with object. fnNode.setIgnoreDynamicScope(); } int functionIndex = currentScriptOrFn.addFunction(fnNode); int functionSourceEnd; ScriptOrFnNode savedScriptOrFn = currentScriptOrFn; currentScriptOrFn = fnNode; int savedNestingOfWith = nestingOfWith; nestingOfWith = 0; Hashtable savedLabelSet = labelSet; labelSet = null; ObjArray savedLoopSet = loopSet; loopSet = null; ObjArray savedLoopAndSwitchSet = loopAndSwitchSet; loopAndSwitchSet = null; Node body; String source; try { decompiler.addToken(Token.LP); if (!matchToken(Token.RP, 0)) { boolean first = true; do { if (!first) decompiler.addToken(Token.COMMA); first = false; mustMatchToken(Token.NAME, "msg.no.parm"); String s = ts.getString(); if (fnNode.hasParamOrVar(s)) { addWarning("msg.dup.parms", s); } fnNode.addParam(s); decompiler.addName(s); } while (matchToken(Token.COMMA, 0)); mustMatchToken(Token.RP, "msg.no.paren.after.parms"); } decompiler.addToken(Token.RP); mustMatchToken(Token.LC, "msg.no.brace.body"); decompiler.addEOL(Token.LC); body = parseFunctionBody(); mustMatchToken(Token.RC, "msg.no.brace.after.body"); decompiler.addToken(Token.RC); functionSourceEnd = decompiler.markFunctionEnd(functionSourceStart); if (functionType != FunctionNode.FUNCTION_EXPRESSION) { if (compilerEnv.getLanguageVersion() >= Context.VERSION_1_2) { // function f() {} function g() {} is not allowed in 1.2 // or later but for compatibility with old scripts // the check is done only if language is // explicitly set. // XXX warning needed if version == VERSION_DEFAULT ? int tt = peekTokenOrEOL(TokenStream.TSF_REGEXP); if (tt == Token.FUNCTION) { reportError("msg.no.semi.stmt"); } } // Add EOL only if function is not part of expression // since it gets SEMI + EOL from Statement in that case decompiler.addToken(Token.EOL); } } finally { loopAndSwitchSet = savedLoopAndSwitchSet; loopSet = savedLoopSet; labelSet = savedLabelSet; nestingOfWith = savedNestingOfWith; currentScriptOrFn = savedScriptOrFn; } fnNode.setEncodedSourceBounds(functionSourceStart, functionSourceEnd); fnNode.setSourceName(sourceURI); fnNode.setBaseLineno(baseLineno); fnNode.setEndLineno(ts.getLineno()); Node pn = nf.initFunction(fnNode, functionIndex, body, syntheticType); if (memberExprNode != null) { pn = nf.initFunction(fnNode, functionIndex, body, syntheticType); pn = nf.createAssignment(Token.ASSIGN, memberExprNode, pn); if (functionType != FunctionNode.FUNCTION_EXPRESSION) { // XXX check JScript behavior: should it be createExprStatement? pn = nf.createExprStatementNoReturn(pn, baseLineno); } } return pn; }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/f6049deb3ed5286b9e12df015720d7f04caed2dc/Parser.java/buggy/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
445,
12,
474,
445,
559,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
25535,
559,
273,
445,
559,
31,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,
368,
980,
1300,
1625,
1084,
2542,
3639,
509,
445,
1830,
1685,
273,
443,
9576,
18,
3355,
2083,
1685,
12,
915,
559,
1769,
3639,
514,
508,
31,
3639,
2029,
3140,
4742,
907,
273,
446,
31,
3639,
309,
261,
1916,
1345,
12,
1345,
18,
1985,
16,
374,
3719,
288,
5411,
508,
273,
3742,
18,
588,
780,
5621,
5411,
443,
9576,
18,
1289,
461,
12,
529,
1769,
5411,
309,
16051,
1916,
1345,
12,
1345,
18,
14461,
16,
374,
3719,
288,
7734,
309,
261,
9576,
3491,
18,
291,
7009,
4419,
4742,
1463,
25258,
10756,
288,
10792,
368,
10021,
358,
7773,
5535,
30,
309,
296,
915,
411,
529,
1870,
1552,
486,
2805,
10792,
368,
635,
7747,
2187,
6750,
411,
529,
34,
2542,
3140,
4742,
10792,
2029,
3140,
4742,
1414,
273,
13958,
18,
2640,
461,
12,
529,
1769,
10792,
508,
273,
1408,
31,
10792,
3140,
4742,
907,
273,
3140,
4742,
12363,
12,
5743,
16,
3140,
4742,
1414,
1769,
7734,
289,
7734,
1297,
2060,
1345,
12,
1345,
18,
14461,
16,
315,
3576,
18,
2135,
18,
13012,
18,
29927,
8863,
5411,
289,
3639,
289,
469,
309,
261,
1916,
1345,
12,
1345,
18,
14461,
3719,
288,
5411,
368,
29775,
445,
5411,
508,
273,
1408,
31,
3639,
289,
469,
288,
5411,
508,
273,
1408,
31,
5411,
309,
261,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
445,
12,
474,
445,
559,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
25535,
559,
273,
445,
559,
31,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,
368,
980,
1300,
1625,
1084,
2542,
3639,
509,
445,
1830,
1685,
273,
443,
9576,
18,
3355,
2083,
1685,
12,
915,
559,
1769,
3639,
514,
508,
31,
3639,
2029,
3140,
4742,
907,
273,
446,
31,
3639,
309,
261,
1916,
1345,
12,
1345,
18,
1985,
16,
374,
3719,
288,
5411,
508,
273,
3742,
18,
588,
780,
5621,
5411,
443,
9576,
18,
1289,
461,
12,
529,
1769,
5411,
309,
16051,
1916,
1345,
12,
1345,
18,
14461,
16,
374,
3719,
288,
7734,
309,
261,
2
] |
if (absolute.equals(getModuleName())) return "."; else if (!absolute.startsWith(getModuleName())) return null; else return absolute.substring(getModuleName().length() + 1); }
|
if (absolute.equals(getModuleName())) return "."; else if (!absolute.startsWith(getModuleName())) return null; else return absolute.substring(getModuleName().length() + 1); }
|
public static String absoluteToRelativePath(String absolute) { if (absolute.endsWith("/")) absolute = absolute.substring(0, absolute.length() - 1); if (absolute.equals(getModuleName())) return "."; else if (!absolute.startsWith(getModuleName())) return null; else return absolute.substring(getModuleName().length() + 1); }
|
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/b36f25f93459c469a8443e740973ce8c09f71c52/SvnInfoUtils.java/buggy/statsvn/src/net/sf/statcvs/util/SvnInfoUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
4967,
774,
16519,
12,
780,
4967,
13,
288,
3639,
309,
261,
12547,
18,
5839,
1190,
2932,
4898,
3719,
5411,
4967,
273,
4967,
18,
28023,
12,
20,
16,
4967,
18,
2469,
1435,
300,
404,
1769,
3639,
309,
261,
12547,
18,
14963,
12,
588,
22542,
1435,
3719,
5411,
327,
4585,
31,
3639,
469,
309,
16051,
12547,
18,
17514,
1190,
12,
588,
22542,
1435,
3719,
5411,
327,
446,
31,
3639,
469,
5411,
327,
4967,
18,
28023,
12,
588,
22542,
7675,
2469,
1435,
397,
404,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
514,
4967,
774,
16519,
12,
780,
4967,
13,
288,
3639,
309,
261,
12547,
18,
5839,
1190,
2932,
4898,
3719,
5411,
4967,
273,
4967,
18,
28023,
12,
20,
16,
4967,
18,
2469,
1435,
300,
404,
1769,
3639,
309,
261,
12547,
18,
14963,
12,
588,
22542,
1435,
3719,
5411,
327,
4585,
31,
3639,
469,
309,
16051,
12547,
18,
17514,
1190,
12,
588,
22542,
1435,
3719,
5411,
327,
446,
31,
3639,
469,
5411,
327,
4967,
18,
28023,
12,
588,
22542,
7675,
2469,
1435,
397,
404,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (i > 0) result.append(separator);
|
if (i > 0) result.append(separator);
|
private static String toStringHelper(Context cx, Scriptable thisObj, boolean toSource, boolean toLocale) throws JavaScriptException { /* It's probably redundant to handle long lengths in this * function; StringBuffers are limited to 2^31 in java. */ long length = (long)getLengthProperty(thisObj); StringBuffer result = new StringBuffer(); if (cx.iterating == null) cx.iterating = new Hashtable(31); boolean iterating = cx.iterating.get(thisObj) == Boolean.TRUE; // whether to return '4,unquoted,5' or '[4, "quoted", 5]' String separator; if (toSource) { result.append('['); separator = ", "; } else { separator = ","; } boolean haslast = false; long i = 0; if (!iterating) { for (i = 0; i < length; i++) { if (i > 0) result.append(separator); Object elem = getElem(thisObj, i); if (elem == null || elem == Undefined.instance) { haslast = false; continue; } haslast = true; if (elem instanceof String) { if (toSource) { result.append('\"'); result.append(ScriptRuntime.escapeString (ScriptRuntime.toString(elem))); result.append('\"'); } else { result.append(ScriptRuntime.toString(elem)); } } else { /* wrap changes to cx.iterating in a try/finally * so that the reference always gets removed, and * we don't leak memory. Good place for weak * references, if we had them. */ try { // stop recursion. cx.iterating.put(thisObj, Boolean.TRUE); if (toLocale && elem != Undefined.instance && elem != null) { Scriptable obj = cx.toObject(elem, thisObj); Object tls = ScriptRuntime.getProp(obj, "toLocaleString", thisObj); elem = ScriptRuntime.call(cx, tls, elem, ScriptRuntime.emptyArgs); } result.append(ScriptRuntime.toString(elem)); } finally { cx.iterating.remove(thisObj); } } } } if (toSource) { //for [,,].length behavior; we want toString to be symmetric. if (!haslast && i > 0) result.append(", ]"); else result.append(']'); } return result.toString(); }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/250051383e715d3a12c06e9b723efe99f534b8f7/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1762,
2276,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1250,
358,
1830,
16,
1250,
358,
3916,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1748,
2597,
1807,
8656,
19530,
358,
1640,
1525,
10917,
316,
333,
540,
380,
445,
31,
514,
13699,
854,
13594,
358,
576,
66,
6938,
316,
2252,
18,
540,
1195,
3639,
1525,
769,
273,
261,
5748,
13,
588,
1782,
1396,
12,
2211,
2675,
1769,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
309,
261,
71,
92,
18,
2165,
1776,
422,
446,
13,
5411,
9494,
18,
2165,
1776,
273,
394,
18559,
12,
6938,
1769,
3639,
1250,
13099,
273,
9494,
18,
2165,
1776,
18,
588,
12,
2211,
2675,
13,
422,
3411,
18,
18724,
31,
3639,
368,
2856,
358,
327,
296,
24,
16,
318,
15179,
16,
25,
11,
578,
5271,
24,
16,
315,
15179,
3113,
1381,
3864,
3639,
514,
4182,
31,
3639,
309,
261,
869,
1830,
13,
288,
5411,
563,
18,
6923,
2668,
3292,
1769,
5411,
4182,
273,
3104,
13636,
3639,
289,
469,
288,
5411,
4182,
273,
5753,
31,
3639,
289,
3639,
1250,
711,
2722,
273,
629,
31,
3639,
1525,
277,
273,
374,
31,
3639,
309,
16051,
2165,
1776,
13,
288,
5411,
364,
261,
77,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
288,
7734,
309,
261,
77,
405,
374,
13,
10792,
563,
18,
6923,
12,
11287,
1769,
7734,
1033,
3659,
273,
4774,
3269,
12,
2211,
2675,
16,
277,
1769,
7734,
309,
261,
10037,
422,
446,
747,
3659,
422,
22243,
18,
1336,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1762,
2276,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1250,
358,
1830,
16,
1250,
358,
3916,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1748,
2597,
1807,
8656,
19530,
358,
1640,
1525,
10917,
316,
333,
540,
380,
445,
31,
514,
13699,
854,
13594,
358,
576,
66,
6938,
316,
2252,
18,
540,
1195,
3639,
1525,
769,
273,
261,
5748,
13,
588,
1782,
1396,
12,
2211,
2675,
1769,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
309,
261,
71,
92,
18,
2165,
1776,
422,
446,
13,
5411,
9494,
18,
2165,
1776,
273,
394,
18559,
12,
6938,
1769,
3639,
1250,
13099,
273,
9494,
18,
2165,
1776,
18,
588,
12,
2211,
2675,
13,
422,
3411,
18,
18724,
31,
2
] |
DomUtil.addAttr(a, AdminService.A_BY, GetAccount.BY_NAME);
|
DomUtil.addAttr(a, AdminService.A_BY, AdminService.BY_NAME);
|
protected Element getRequestXML() { Element request = DocumentHelper.createElement(AccountService.AUTH_REQUEST); Element a = DomUtil.add(request, AccountService.E_ACCOUNT, mUsername); DomUtil.addAttr(a, AdminService.A_BY, GetAccount.BY_NAME); // XXX should use a constant DomUtil.add(request, AccountService.E_PASSWORD, mPassword); return request; }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/75daae2dbd48823d96d31532587bf3bde2077f19/LmcAuthRequest.java/buggy/ZimbraServer/src/java/com/zimbra/cs/client/soap/LmcAuthRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3010,
4328,
4201,
1435,
288,
202,
202,
1046,
590,
273,
4319,
2276,
18,
2640,
1046,
12,
3032,
1179,
18,
7131,
67,
5519,
1769,
202,
202,
1046,
279,
273,
12965,
1304,
18,
1289,
12,
2293,
16,
6590,
1179,
18,
41,
67,
21690,
16,
312,
8575,
1769,
3639,
12965,
1304,
18,
1289,
3843,
12,
69,
16,
7807,
1179,
18,
37,
67,
6486,
16,
7807,
1179,
18,
6486,
67,
1985,
1769,
368,
11329,
1410,
999,
279,
5381,
202,
202,
8832,
1304,
18,
1289,
12,
2293,
16,
6590,
1179,
18,
41,
67,
13784,
16,
312,
3913,
1769,
202,
202,
2463,
590,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1117,
3010,
4328,
4201,
1435,
288,
202,
202,
1046,
590,
273,
4319,
2276,
18,
2640,
1046,
12,
3032,
1179,
18,
7131,
67,
5519,
1769,
202,
202,
1046,
279,
273,
12965,
1304,
18,
1289,
12,
2293,
16,
6590,
1179,
18,
41,
67,
21690,
16,
312,
8575,
1769,
3639,
12965,
1304,
18,
1289,
3843,
12,
69,
16,
7807,
1179,
18,
37,
67,
6486,
16,
7807,
1179,
18,
6486,
67,
1985,
1769,
368,
11329,
1410,
999,
279,
5381,
202,
202,
8832,
1304,
18,
1289,
12,
2293,
16,
6590,
1179,
18,
41,
67,
13784,
16,
312,
3913,
1769,
202,
202,
2463,
590,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new String[] { ContentTypeInfoRegistry.HTML, ContentTypeInfoRegistry.HTML_FRAGMENT };
|
return new String[] { ContentTypeInfoRegistry.HTML, ContentTypeInfoRegistry.HTML_FRAGMENT };
|
public String[] getInterceptedContentTypes() { return new String[] { ContentTypeInfoRegistry.HTML, ContentTypeInfoRegistry.HTML_FRAGMENT }; }
|
45809 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45809/a5ab34437a85cd3790caff26e3aae8e5674a84a7/RelativeURLInferringTPI.java/clean/src/uk/org/ponder/rsf/renderer/html/RelativeURLInferringTPI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8526,
336,
16293,
329,
27446,
1435,
288,
565,
327,
394,
514,
8526,
288,
3639,
11691,
966,
4243,
18,
4870,
16,
11691,
966,
4243,
18,
4870,
67,
9981,
26903,
565,
289,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8526,
336,
16293,
329,
27446,
1435,
288,
565,
327,
394,
514,
8526,
288,
3639,
11691,
966,
4243,
18,
4870,
16,
11691,
966,
4243,
18,
4870,
67,
9981,
26903,
565,
289,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
results = PostProcessUtil.findLocations(osw.getObjectStore(), Supercontig.class,
|
results = PostProcessUtil.findLocationAndObjects(osw.getObjectStore(), Supercontig.class,
|
public void testFeatureToContigWithPartialLocationsDisjointSuperContigs() throws Exception { // --------------------------> chromosome // --------->-----------> supercontigs // ----->-----> // con1 con2 // ---> // exon Set toStore = new HashSet(Arrays.asList(new Object[] { getChromosome(), getChromosomeBand(), getBandOnChr() })); Supercontig sc1 = (Supercontig) DynamicUtil.createObject(Collections.singleton(Supercontig.class)); sc1.setId(new Integer(104)); Supercontig sc2 = (Supercontig) DynamicUtil.createObject(Collections.singleton(Supercontig.class)); sc2.setId(new Integer(105)); Contig c1 = (Contig) DynamicUtil.createObject(Collections.singleton(Contig.class)); c1.setId(new Integer(106)); c1.setLength(new Integer(250)); Contig c2 = (Contig) DynamicUtil.createObject(Collections.singleton(Contig.class)); c2.setId(new Integer(107)); c2.setLength(new Integer(70)); Exon e = (Exon) DynamicUtil.createObject(Collections.singleton(Exon.class)); e.setId(new Integer(108)); Location sc1OnChr = createLocation(getChromosome(), sc1, 1, 1201, 1400, Location.class); sc1OnChr.setId(new Integer(170)); Location sc2OnChr = createLocation(getChromosome(), sc2, 1, 1401, 1900, Location.class); sc2OnChr.setId(new Integer(171)); Location contig1OnSc1 = createLocation(sc1, c1, 1, 101, 200, Location.class); contig1OnSc1.setId(new Integer(201)); Location contig2OnSc2 = createLocation(sc2, c2, 1, 1, 200, Location.class); contig2OnSc2.setId(new Integer(202)); PartialLocation exonOnContig1 = (PartialLocation) createLocation(c1, e, 1, 51, 100, PartialLocation.class); exonOnContig1.setId(new Integer(203)); exonOnContig1.setStartIsPartial(Boolean.FALSE); exonOnContig1.setEndIsPartial(Boolean.TRUE); exonOnContig1.setSubjectStart(new Integer(1)); exonOnContig1.setSubjectEnd(new Integer(10)); PartialLocation exonOnContig2 = (PartialLocation) createLocation(c2, e, 1, 1, 160, PartialLocation.class); exonOnContig2.setId(new Integer(204)); exonOnContig2.setStartIsPartial(Boolean.TRUE); exonOnContig2.setEndIsPartial(Boolean.FALSE); exonOnContig2.setSubjectStart(new Integer(11)); exonOnContig2.setSubjectEnd(new Integer(70)); toStore.add(sc1); toStore.add(sc2); toStore.add(c1); toStore.add(c2); toStore.add(e); toStore.add(sc1OnChr); toStore.add(sc2OnChr); toStore.add(contig1OnSc1); toStore.add(contig2OnSc2); toStore.add(exonOnContig1); toStore.add(exonOnContig2); Iterator i = toStore.iterator(); while (i.hasNext()) { osw.store((InterMineObject) i.next()); } CalculateLocations cl = new CalculateLocations(osw); cl.createLocations(); ResultsRow rr; // test Exon location on Chromosome Location expected = createLocation(getChromosome(), e, 1, 1351, 1560, Location.class); expected.setId(new Integer(0)); Item expItem = itemFactory.makeItem(expected); Results results= PostProcessUtil.findLocations(osw.getObjectStore(), Chromosome.class, Exon.class, true); Iterator chrExonIter = results.iterator(); rr = (ResultsRow) chrExonIter.next(); Location result = (Location) rr.get(2); assertTrue(! (result instanceof PartialLocation)); assertFalse(chrExonIter.hasNext()); Item resItem = itemFactory.makeItem(result); resItem.setIdentifier("0"); assertEquals(expItem, resItem); // test Exon locations on Supercontig expected = createLocation(sc1, e, 1, 151, 200, PartialLocation.class); expected.setId(new Integer(0)); ((PartialLocation) expected).setEndIsPartial(Boolean.TRUE); expItem = itemFactory.makeItem(expected); results = PostProcessUtil.findLocations(osw.getObjectStore(), Supercontig.class, Exon.class, true); Iterator supercontigExonIter = results.iterator(); assertTrue(supercontigExonIter.hasNext()); rr = (ResultsRow) supercontigExonIter.next(); result = (Location) rr.get(2); assertTrue(result instanceof PartialLocation); resItem = itemFactory.makeItem(result); resItem.setIdentifier("0"); assertEquals(expItem, resItem); expected = createLocation(sc2, e, 1, 1, 160, PartialLocation.class); expected.setId(new Integer(0)); ((PartialLocation) expected).setStartIsPartial(Boolean.TRUE); expItem = itemFactory.makeItem(expected); rr = (ResultsRow) supercontigExonIter.next(); result = (Location) rr.get(2); assertTrue(result instanceof PartialLocation); assertFalse(supercontigExonIter.hasNext()); resItem = itemFactory.makeItem(result); resItem.setIdentifier("0"); assertEquals(expItem, resItem); // test Exon location on ChromosomeBand expected = createLocation(getChromosomeBand(), e, 1, 351, 560, Location.class); expected.setId(new Integer(0)); expItem = itemFactory.makeItem(expected); results = PostProcessUtil.findLocations(osw.getObjectStore(), ChromosomeBand.class, Exon.class, true); Iterator chrBandExonIter = results.iterator(); assertTrue(chrBandExonIter.hasNext()); result = (Location) ((ResultsRow) chrBandExonIter.next()).get(2); assertTrue(! (result instanceof PartialLocation)); assertFalse(chrBandExonIter.hasNext()); resItem = itemFactory.makeItem(result); resItem.setIdentifier("0"); assertEquals(expItem, resItem); }
|
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/d5dc57fa78b320accc2dd5af31cb31a46c054f7f/CalculateLocationsTest.java/buggy/flymine/model/genomic/src/test/org/flymine/postprocess/CalculateLocationsTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4595,
774,
660,
360,
1190,
9447,
10985,
1669,
16452,
8051,
660,
360,
87,
1435,
1216,
1185,
288,
3639,
368,
225,
12146,
788,
2122,
22674,
3639,
368,
565,
300,
788,
34,
15392,
2122,
565,
2240,
26075,
87,
3639,
368,
3639,
9135,
34,
553,
2122,
3639,
368,
540,
356,
21,
225,
356,
22,
3639,
368,
6647,
9948,
34,
3639,
368,
6647,
25668,
3639,
1000,
358,
2257,
273,
394,
6847,
12,
12726,
18,
345,
682,
12,
2704,
1033,
8526,
288,
4766,
10792,
336,
30761,
16958,
9334,
336,
30761,
16958,
14231,
9334,
4766,
10792,
2882,
464,
1398,
782,
86,
1435,
4766,
7734,
289,
10019,
3639,
14845,
26075,
888,
21,
273,
5411,
261,
8051,
26075,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
8051,
26075,
18,
1106,
10019,
3639,
888,
21,
18,
542,
548,
12,
2704,
2144,
12,
21869,
10019,
3639,
14845,
26075,
888,
22,
273,
5411,
261,
8051,
26075,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
8051,
26075,
18,
1106,
10019,
3639,
888,
22,
18,
542,
548,
12,
2704,
2144,
12,
21661,
10019,
3639,
1816,
360,
276,
21,
273,
261,
660,
360,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
660,
360,
18,
1106,
10019,
3639,
276,
21,
18,
542,
548,
12,
2704,
2144,
12,
22135,
10019,
3639,
276,
21,
18,
542,
1782,
12,
2704,
2144,
12,
26520,
10019,
3639,
1816,
360,
276,
22,
273,
261,
660,
360,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4595,
774,
660,
360,
1190,
9447,
10985,
1669,
16452,
8051,
660,
360,
87,
1435,
1216,
1185,
288,
3639,
368,
225,
12146,
788,
2122,
22674,
3639,
368,
565,
300,
788,
34,
15392,
2122,
565,
2240,
26075,
87,
3639,
368,
3639,
9135,
34,
553,
2122,
3639,
368,
540,
356,
21,
225,
356,
22,
3639,
368,
6647,
9948,
34,
3639,
368,
6647,
25668,
3639,
1000,
358,
2257,
273,
394,
6847,
12,
12726,
18,
345,
682,
12,
2704,
1033,
8526,
288,
4766,
10792,
336,
30761,
16958,
9334,
336,
30761,
16958,
14231,
9334,
4766,
10792,
2882,
464,
1398,
782,
86,
1435,
4766,
7734,
289,
10019,
3639,
14845,
26075,
888,
21,
273,
5411,
261,
8051,
26075,
13,
12208,
1304,
18,
2640,
2
] |
case 125:
|
public final void unaryExpr() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST unaryExpr_AST = null; AST expr_AST = null; AST expr2_AST = null; switch ( LA(1)) { case MINUS: { AST tmp226_AST = null; tmp226_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp226_AST); match(MINUS); unionExpr(); expr_AST = (AST)returnAST; astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) { unaryExpr_AST = (AST)currentAST.root; unaryExpr_AST= (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(UNARY_MINUS,"-")).add(expr_AST)); currentAST.root = unaryExpr_AST; currentAST.child = unaryExpr_AST!=null &&unaryExpr_AST.getFirstChild()!=null ? unaryExpr_AST.getFirstChild() : unaryExpr_AST; currentAST.advanceChildToEnd(); } unaryExpr_AST = (AST)currentAST.root; break; } case PLUS: { AST tmp227_AST = null; tmp227_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp227_AST); match(PLUS); unionExpr(); expr2_AST = (AST)returnAST; astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) { unaryExpr_AST = (AST)currentAST.root; unaryExpr_AST= (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(UNARY_PLUS,"+")).add(expr2_AST)); currentAST.root = unaryExpr_AST; currentAST.child = unaryExpr_AST!=null &&unaryExpr_AST.getFirstChild()!=null ? unaryExpr_AST.getFirstChild() : unaryExpr_AST; currentAST.advanceChildToEnd(); } unaryExpr_AST = (AST)currentAST.root; break; } case LPAREN: case NCNAME: case XQUERY: case VERSION: case LITERAL_namespace: case LITERAL_default: case LITERAL_function: case LITERAL_variable: case STRING_LITERAL: case LITERAL_element: case DOLLAR: case LITERAL_as: case LITERAL_empty: case STAR: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_if: case LITERAL_order: case LITERAL_by: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LT: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_comment: case 125: case 126: case XML_PI: case LITERAL_document: case LITERAL_collection: { unionExpr(); astFactory.addASTChild(currentAST, returnAST); unaryExpr_AST = (AST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = unaryExpr_AST; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/d31ac0d651739cc32d55579c14a0786f6bfb4200/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
19017,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
19017,
4742,
67,
9053,
273,
446,
31,
202,
202,
9053,
3065,
67,
9053,
273,
446,
31,
202,
202,
9053,
3065,
22,
67,
9053,
273,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
6989,
3378,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3787,
26,
67,
9053,
273,
446,
31,
1082,
202,
5645,
3787,
26,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
1853,
3787,
26,
67,
9053,
1769,
1082,
202,
1916,
12,
6236,
3378,
1769,
1082,
202,
18910,
4742,
5621,
1082,
202,
8638,
67,
9053,
273,
261,
9053,
13,
2463,
9053,
31,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
318,
814,
4742,
67,
9053,
273,
261,
9053,
13,
2972,
9053,
18,
3085,
31,
9506,
202,
318,
814,
4742,
67,
9053,
33,
261,
9053,
13,
689,
1733,
18,
6540,
12,
261,
2704,
9183,
1076,
12,
22,
13,
2934,
1289,
12,
689,
1733,
18,
2640,
12,
2124,
6043,
67,
6236,
3378,
10837,
17,
7923,
2934,
1289,
12,
8638,
67,
9053,
10019,
9506,
202,
2972,
9053,
18,
3085,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
19017,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
19017,
4742,
67,
9053,
273,
446,
31,
202,
202,
9053,
3065,
67,
9053,
273,
446,
31,
202,
202,
9053,
3065,
22,
67,
9053,
273,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
6989,
3378,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3787,
26,
67,
9053,
273,
446,
31,
1082,
202,
5645,
3787,
26,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
2
] |
|
ReduceTask reduce = new ReduceTask(profile.getJobId(), file, reduceId, mapIds.size(),0);
|
ReduceTask reduce = new ReduceTask(jobId, file, reduceId, 0, mapIds.size());
|
public void run() { try { // split input into minimum number of splits FileSplit[] splits; splits = job.getInputFormat().getSplits(fs, job, 1); // run a map task for each split job.setNumReduceTasks(1); // force a single reduce task for (int i = 0; i < splits.length; i++) { mapIds.add("map_" + newId()); MapTask map = new MapTask(file, (String)mapIds.get(i), splits[i]); map.setConf(job); map_tasks += 1; map.run(job, this); map_tasks -= 1; } // move map output to reduce input String reduceId = "reduce_" + newId(); for (int i = 0; i < mapIds.size(); i++) { String mapId = (String)mapIds.get(i); Path mapOut = this.mapoutputFile.getOutputFile(mapId, 0); Path reduceIn = this.mapoutputFile.getInputFile(i, reduceId); localFs.mkdirs(reduceIn.getParent()); if (!localFs.rename(mapOut, reduceIn)) throw new IOException("Couldn't rename " + mapOut); this.mapoutputFile.removeAll(mapId); } // run a single reduce task ReduceTask reduce = new ReduceTask(profile.getJobId(), file, reduceId, mapIds.size(),0); reduce.setConf(job); reduce_tasks += 1; reduce.run(job, this); reduce_tasks -= 1; this.mapoutputFile.removeAll(reduceId); this.status.runState = JobStatus.SUCCEEDED; } catch (Throwable t) { this.status.runState = JobStatus.FAILED; LOG.warn(id, t); } finally { try { fs.delete(new Path(file).getParent()); // delete submit dir localFs.delete(localFile); // delete local copy } catch (IOException e) { LOG.warn("Error cleaning up "+id+": "+e); } } }
|
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/dd12a4a249a7c446be8f98ca117eae616f798abd/LocalJobRunner.java/buggy/src/java/org/apache/hadoop/mapred/LocalJobRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
1377,
775,
288,
3639,
368,
1416,
810,
1368,
5224,
1300,
434,
11019,
3639,
1387,
5521,
8526,
11019,
31,
3639,
11019,
273,
1719,
18,
588,
1210,
1630,
7675,
588,
16582,
12,
2556,
16,
1719,
16,
404,
1769,
7734,
368,
1086,
279,
852,
1562,
364,
1517,
1416,
3639,
1719,
18,
542,
2578,
12944,
6685,
12,
21,
1769,
1171,
368,
2944,
279,
2202,
5459,
1562,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
11019,
18,
2469,
31,
277,
27245,
288,
1850,
852,
2673,
18,
1289,
2932,
1458,
9548,
397,
27598,
10663,
1850,
1635,
2174,
852,
273,
394,
1635,
2174,
12,
768,
16,
261,
780,
13,
1458,
2673,
18,
588,
12,
77,
3631,
11019,
63,
77,
19226,
1850,
852,
18,
542,
3976,
12,
4688,
1769,
1850,
852,
67,
9416,
1011,
404,
31,
1850,
852,
18,
2681,
12,
4688,
16,
333,
1769,
1850,
852,
67,
9416,
3947,
404,
31,
3639,
289,
3639,
368,
3635,
852,
876,
358,
5459,
810,
3639,
514,
5459,
548,
273,
315,
12498,
9548,
397,
27598,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
852,
2673,
18,
1467,
5621,
277,
27245,
288,
1850,
514,
852,
548,
273,
261,
780,
13,
1458,
2673,
18,
588,
12,
77,
1769,
1850,
2666,
852,
1182,
273,
333,
18,
1458,
2844,
812,
18,
588,
1447,
812,
12,
1458,
548,
16,
374,
1769,
1850,
2666,
5459,
382,
273,
333,
18,
1458,
2844,
812,
18,
588,
1210,
812,
12,
77,
16,
5459,
548,
1769,
1850,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
1377,
775,
288,
3639,
368,
1416,
810,
1368,
5224,
1300,
434,
11019,
3639,
1387,
5521,
8526,
11019,
31,
3639,
11019,
273,
1719,
18,
588,
1210,
1630,
7675,
588,
16582,
12,
2556,
16,
1719,
16,
404,
1769,
7734,
368,
1086,
279,
852,
1562,
364,
1517,
1416,
3639,
1719,
18,
542,
2578,
12944,
6685,
12,
21,
1769,
1171,
368,
2944,
279,
2202,
5459,
1562,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
11019,
18,
2469,
31,
277,
27245,
288,
1850,
852,
2673,
18,
1289,
2932,
1458,
9548,
397,
27598,
10663,
1850,
1635,
2174,
852,
273,
394,
1635,
2174,
12,
768,
16,
261,
780,
13,
1458,
2673,
18,
588,
12,
77,
3631,
11019,
63,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.