commit_sha
stringlengths 40
40
| new_methods
list | old_methods
list |
---|---|---|
03eb9995e6cb89691e2185fefd0accc56e397b63 | [
{
"arguments": [
"final Entity productionTracking"
],
"filename": "mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java",
"implementation": "stateExecutorService.changeState(ProductionTrackingStateServiceMarker.class, productionTracking, ProductionTrackingState.ACCEPTED.getStringValue());",
"signature": "void resumeStateChange(final Entity productionTracking)"
},
{
"arguments": [
"final Entity productionTracking"
],
"filename": "mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java",
"implementation": "stateExecutorService.changeState(ProductionTrackingStateServiceMarker.class, productionTracking, ProductionTrackingState.DRAFT.getStringValue());",
"signature": "void cancelStateChange(final Entity productionTracking)"
},
{
"arguments": [
"final StateEnum targetState"
],
"filename": "mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/constants/ProductionTrackingState.java",
"implementation": "return ACCEPTED.equals(targetState) || DRAFT.equals(targetState);",
"signature": "boolean canChangeTo(final StateEnum targetState)"
},
{
"arguments": [
"final Entity entity"
],
"filename": "mes-plugins/mes-plugins-states/src/main/java/com/qcadoo/mes/newstates/StateExecutorService.java",
"implementation": "if (entity == null) {\n return null;",
"signature": "Entity saveAndValidate(final Entity entity)"
},
{
"arguments": [
"String msg",
" ComponentState.MessageType messageType"
],
"filename": "mes-plugins/mes-plugins-states/src/main/java/com/qcadoo/mes/newstates/StateExecutorService.java",
"implementation": "if (componentMessagesHolder != null) {\n componentMessagesHolder.addMessage(msg, messageType);",
"signature": "void message(String msg, ComponentState.MessageType messageType)"
}
] | [
{
"arguments": [
"final StateChangeContext context"
],
"filename": "mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java",
"implementation": "// context.setStatus(StateChangeStatus.IN_PROGRESS);\n//\n// productionTrackingStateChangeAspect.changeState(context);\n//",
"signature": "void resumeStateChange(final StateChangeContext context)"
},
{
"arguments": [
"final StateChangeContext context"
],
"filename": "mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java",
"implementation": "// context.setStatus(StateChangeStatus.FAILURE);\n//\n// productionTrackingStateChangeAspect.changeState(context);\n//",
"signature": "void cancelStateChange(final StateChangeContext context)"
},
{
"arguments": [
"final Entity productionTracking"
],
"filename": "mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java",
"implementation": "Entity stateChangeEntity = findPausedStateChangeEntity(productionTracking);\n private Entity findPausedStateChangeEntity(final Entity productionTracking) {\n scb.add(SearchRestrictions.eq(ProductionTrackingStateChangeFields.STATUS, StateChangeStatus.PAUSED.getStringValue()));\n// public StateChangeStatus tryAccept(final Entity productionRecord) {\n// return tryAccept(productionRecord, false);\n//",
"signature": "StateChangeContext findPausedStateTransition(final Entity productionTracking)"
}
] |
0492aafe3780886c3936544ffed92c1bcc587431 | [
{
"arguments": [
"EObject semanticObject",
" RuleCall ruleCall",
" INode node"
],
"filename": "org.eclipse.iee.translator.Jmole/org.eclipse.iee.translator.jmole.math/src-gen/org/eclipse/iee/translator/jmole/math/serializer/AbstractMathSyntacticSequencer.java",
"implementation": "if (transition.getAmbiguousSyntaxes().isEmpty()) return;\n\t\tList<INode> transitionNodes = collectNodes(fromNode, toNode);\n\t\tfor (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {\n\t\t\tList<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);\n\t\t\tif(match_Function_CommaKeyword_2_2_q.equals(syntax))\n\t\t\t\temit_Function_CommaKeyword_2_2_q(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_MatrixRow_CommaKeyword_1_2_q.equals(syntax))\n\t\t\t\temit_MatrixRow_CommaKeyword_1_2_q(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_Matrix_CommaKeyword_1_2_q.equals(syntax))\n\t\t\t\temit_Matrix_CommaKeyword_1_2_q(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_PrimaryMatrix_LeftParenthesisKeyword_3_0_a.equals(syntax))\n\t\t\t\temit_PrimaryMatrix_LeftParenthesisKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_PrimaryMatrix_LeftParenthesisKeyword_3_0_p.equals(syntax))\n\t\t\t\temit_PrimaryMatrix_LeftParenthesisKeyword_3_0_p(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_Primary_LeftParenthesisKeyword_4_0_a.equals(syntax))\n\t\t\t\temit_Primary_LeftParenthesisKeyword_4_0_a(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_Primary_LeftParenthesisKeyword_4_0_p.equals(syntax))\n\t\t\t\temit_Primary_LeftParenthesisKeyword_4_0_p(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse acceptNodes(getLastNavigableState(), syntaxNodes);",
"signature": "String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node)"
},
{
"arguments": [],
"filename": "org.eclipse.iee.translator.Jmole/org.eclipse.iee.translator.jmole.math/src-gen/org/eclipse/iee/translator/jmole/math/services/MathGrammarAccess.java",
"implementation": "return cRowFloatParserRuleCall_2_3_0;",
"signature": "RuleCall getRowFloatParserRuleCall_2_3_0()"
},
{
"arguments": [],
"filename": "org.eclipse.iee.translator.Jmole/org.eclipse.iee.translator.jmole.math/src-gen/org/eclipse/iee/translator/jmole/math/services/MathGrammarAccess.java",
"implementation": "return cColumnFloatParserRuleCall_2_6_0;",
"signature": "RuleCall getColumnFloatParserRuleCall_2_6_0()"
},
{
"arguments": [
"EObject semanticObject",
" RuleCall ruleCall",
" INode node"
],
"filename": "org.eclipse.iee.translator.TeXmole/org.eclipse.iee.translator.molex.mex/src-gen/org/eclipse/iee/translator/molex/mex/serializer/AbstractMexSyntacticSequencer.java",
"implementation": "if (transition.getAmbiguousSyntaxes().isEmpty()) return;\n\t\tList<INode> transitionNodes = collectNodes(fromNode, toNode);\n\t\tfor (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {\n\t\t\tList<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);\n\t\t\tif(match_Function_CommaKeyword_2_2_q.equals(syntax))\n\t\t\t\temit_Function_CommaKeyword_2_2_q(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_MatrixRow_CommaKeyword_1_2_q.equals(syntax))\n\t\t\t\temit_MatrixRow_CommaKeyword_1_2_q(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_Matrix_CommaKeyword_1_2_q.equals(syntax))\n\t\t\t\temit_Matrix_CommaKeyword_1_2_q(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_PrimaryMatrix_LeftParenthesisKeyword_3_0_a.equals(syntax))\n\t\t\t\temit_PrimaryMatrix_LeftParenthesisKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse if(match_PrimaryMatrix_LeftParenthesisKeyword_3_0_p.equals(syntax))\n\t\t\t\temit_PrimaryMatrix_LeftParenthesisKeyword_3_0_p(semanticObject, getLastNavigableState(), syntaxNodes);\n\t\t\telse acceptNodes(getLastNavigableState(), syntaxNodes);",
"signature": "String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node)"
},
{
"arguments": [],
"filename": "org.eclipse.iee.translator.TeXmole/org.eclipse.iee.translator.molex.mex/src-gen/org/eclipse/iee/translator/molex/mex/services/MexGrammarAccess.java",
"implementation": "return cRowFloatParserRuleCall_3_3_0;",
"signature": "RuleCall getRowFloatParserRuleCall_3_3_0()"
},
{
"arguments": [],
"filename": "org.eclipse.iee.translator.TeXmole/org.eclipse.iee.translator.molex.mex/src-gen/org/eclipse/iee/translator/molex/mex/services/MexGrammarAccess.java",
"implementation": "return cColumnFloatParserRuleCall_3_6_0;",
"signature": "RuleCall getColumnFloatParserRuleCall_3_6_0()"
},
{
"arguments": [
"final TransposeMatrix n"
],
"filename": "org.eclipse.iee.translator.TeXmole/org.eclipse.iee.translator.molex.mex/xtend-gen/org/eclipse/iee/translator/molex/mex/generator/MexGenerator.java",
"implementation": "StringConcatenation _builder = new StringConcatenation();\n {\n boolean _operator_or = false;\n boolean _operator_or_1 = false;\n boolean _operator_or_2 = false;\n boolean _operator_or_3 = false;\n boolean _operator_or_4 = false;\n boolean _operator_or_5 = false;\n boolean _operator_or_6 = false;\n boolean _operator_or_7 = false;\n boolean _operator_or_8 = false;\n boolean _operator_or_9 = false;\n boolean _operator_or_10 = false;\n boolean _operator_or_11 = false;\n boolean _operator_or_12 = false;\n boolean _operator_or_13 = false;\n boolean _operator_or_14 = false;\n boolean _operator_or_15 = false;\n boolean _operator_or_16 = false;\n boolean _operator_or_17 = false;\n boolean _operator_or_18 = false;\n boolean _operator_or_19 = false;\n boolean _operator_or_20 = false;\n boolean _operator_or_21 = false;\n boolean _operator_or_22 = false;\n boolean _operator_or_23 = false;\n boolean _operator_or_24 = false;\n boolean _operator_or_25 = false;\n boolean _operator_or_26 = false;\n boolean _operator_or_27 = false;\n boolean _operator_or_28 = false;\n boolean _operator_or_29 = false;\n boolean _operator_or_30 = false;\n boolean _operator_or_31 = false;\n boolean _operator_or_32 = false;\n boolean _operator_or_33 = false;\n boolean _operator_or_34 = false;\n boolean _operator_or_35 = false;\n boolean _operator_or_36 = false;\n boolean _operator_or_37 = false;\n boolean _operator_or_38 = false;\n String _name = n.getName();\n boolean _operator_equals = ObjectExtensions.operator_equals(_name, \"alpha\");\n if (_operator_equals) {\n _operator_or_38 = true;",
"signature": "StringConcatenation _compileMatrixExpression(final TransposeMatrix n)"
}
] | [
{
"arguments": [],
"filename": "org.eclipse.iee.translator.Jmole/org.eclipse.iee.translator.jmole.math/src-gen/org/eclipse/iee/translator/jmole/math/services/MathGrammarAccess.java",
"implementation": "return cRowINTTerminalRuleCall_2_3_0;",
"signature": "RuleCall getRowINTTerminalRuleCall_2_3_0()"
},
{
"arguments": [],
"filename": "org.eclipse.iee.translator.Jmole/org.eclipse.iee.translator.jmole.math/src-gen/org/eclipse/iee/translator/jmole/math/services/MathGrammarAccess.java",
"implementation": "return cColumnINTTerminalRuleCall_2_6_0;",
"signature": "RuleCall getColumnINTTerminalRuleCall_2_6_0()"
},
{
"arguments": [],
"filename": "org.eclipse.iee.translator.TeXmole/org.eclipse.iee.translator.molex.mex/src-gen/org/eclipse/iee/translator/molex/mex/services/MexGrammarAccess.java",
"implementation": "return cRowINTTerminalRuleCall_3_3_0;",
"signature": "RuleCall getRowINTTerminalRuleCall_3_3_0()"
},
{
"arguments": [],
"filename": "org.eclipse.iee.translator.TeXmole/org.eclipse.iee.translator.molex.mex/src-gen/org/eclipse/iee/translator/molex/mex/services/MexGrammarAccess.java",
"implementation": "return cColumnINTTerminalRuleCall_3_6_0;",
"signature": "RuleCall getColumnINTTerminalRuleCall_3_6_0()"
}
] |
0dbda4c38162fd7be9f2ed0deebfef9485cff651 | [
{
"arguments": [
"RUN"
],
"filename": "common-src/org/epochx/stats/AbstractStat.java",
"implementation": "",
"signature": "new AbstractStat(RUN)"
},
{
"arguments": [],
"filename": "examples-src/org/epochx/gp/model/example/Even3Parity.java",
"implementation": "@Override\r\n\t\t\tpublic void onGenerationEnd() {\r\n\t\t\t\tStats.get().printStats(RUN_NUMBER, GEN_NUMBER, GEN_FITNESS_MIN, GEN_FITNESS_AVE);",
"signature": "new GenerationAdapter()"
}
] | [
{
"arguments": [],
"filename": "common-src/org/epochx/core/CrossoverManager.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/core/ElitismManager.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/core/GenerationManager.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/core/InitialisationManager.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/core/MutationManager.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/core/PoolSelectionManager.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/core/ReproductionManager.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/core/RunManager.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/op/selection/FitnessProportionateSelector.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/op/selection/LinearRankSelector.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "common-src/org/epochx/op/selection/RandomSelector.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "examples-src/org/epochx/gp/model/example/Even3Parity.java",
"implementation": "* m.getStatsManager().printGenerationStats(GPStatField.GEN_NUMBER,\r\n\t\t * GPStatField.GEN_FITNESS_MIN, GPStatField.GEN_FITTEST_PROGRAM);\r\n\t\t *",
"signature": "void onGenerationEnd()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/codon/StandardGenerator.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/mapper/DepthFirstMapper.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/op/crossover/FixedPointCrossover.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/op/crossover/OnePointCrossover.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/op/init/FixedLengthInitialiser.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/op/init/FullInitialiser.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/op/init/GrowInitialiser.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/op/init/RampedHalfAndHalfInitialiser.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/op/mutation/PointMutation.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xge-src/org/epochx/ge/op/mutation/SinglePointMutation.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgp-src/org/epochx/gp/op/crossover/KozaCrossover.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgp-src/org/epochx/gp/op/crossover/UniformPointCrossover.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgp-src/org/epochx/gp/op/init/FullInitialiser.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgp-src/org/epochx/gp/op/init/GrowInitialiser.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgp-src/org/epochx/gp/op/init/RampedHalfAndHalfInitialiser.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgp-src/org/epochx/gp/op/mutation/PointMutation.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgp-src/org/epochx/gp/op/mutation/SubtreeMutation.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgr-src/org/epochx/gr/op/crossover/WhighamCrossover.java",
"implementation": "@Override\r\n\t\t\tpublic void onConfigure() {\r\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgr-src/org/epochx/gr/op/init/FullInitialiser.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgr-src/org/epochx/gr/op/init/GrowInitialiser.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgr-src/org/epochx/gr/op/init/RampedHalfAndHalfInitialiser.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
},
{
"arguments": [],
"filename": "xgr-src/org/epochx/gr/op/mutation/WhighamMutation.java",
"implementation": "@Override\n\t\t\tpublic void onConfigure() {\n\t\t\t\tconfigure();",
"signature": "new ConfigAdapter()"
}
] |
19896eed804f71e9922437f5494a70782a8ba2e7 | [
{
"arguments": [],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/aceeditor/AceEditorRenderer.java",
"implementation": "return AceEditor.DELEGATE_COMPONENT_FAMILY;",
"signature": "String getDelegateComponentFamily()"
},
{
"arguments": [],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/aceeditor/AceEditorRenderer.java",
"implementation": "return AceEditor.DELEGATE_RENDERER_TYPE;",
"signature": "String getDelegateRendererType()"
},
{
"arguments": [
"FacesContext facesContext",
" UIComponent uiComponent"
],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/aceeditor/AceEditorRenderer.java",
"implementation": "ResponseWriter responseWriter = facesContext.getResponseWriter();\n\t\tString hiddenInputClientId = getHiddenInputClientId(facesContext, uiComponent);\n\n\t\treturn new HiddenTextResponseWriter(responseWriter, hiddenInputClientId);",
"signature": "DelegationResponseWriter getDelegationResponseWriter(FacesContext facesContext, UIComponent uiComponent)"
},
{
"arguments": [],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/button/ButtonRenderer.java",
"implementation": "return Button.DELEGATE_COMPONENT_FAMILY;",
"signature": "String getDelegateComponentFamily()"
},
{
"arguments": [],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/starrating/StarRatingRenderer.java",
"implementation": "return StarRating.DELEGATE_COMPONENT_FAMILY;",
"signature": "String getDelegateComponentFamily()"
},
{
"arguments": [],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/starrating/StarRatingRenderer.java",
"implementation": "return StarRating.DELEGATE_RENDERER_TYPE;",
"signature": "String getDelegateRendererType()"
}
] | [
{
"arguments": [],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/aceeditor/AceEditorBase.java",
"implementation": "return (Boolean) getStateHelper().eval(DISABLED, null);",
"signature": "Boolean isDisabled()"
},
{
"arguments": [
"Boolean disabled"
],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/aceeditor/AceEditorBase.java",
"implementation": "getStateHelper().put(DISABLED, disabled);",
"signature": "void setDisabled(Boolean disabled)"
},
{
"arguments": [
"FacesContext facesContext",
" UIComponent uiComponent"
],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/aceeditor/AceEditorRenderer.java",
"implementation": "ExternalContext externalContext = facesContext.getExternalContext();\n\t\tMap<String, String> requestParameterMap = externalContext.getRequestParameterMap();\n\t\tString clientId = uiComponent.getClientId();\n\t\tchar separatorChar = UINamingContainer.getSeparatorChar(facesContext);\n\t\tString hiddenInputClientId = clientId + separatorChar + StringPool.HIDDEN;\n\t\tString submittedValue = requestParameterMap.get(hiddenInputClientId);\n\n\t\tif (submittedValue != null) {\n\t\t\tUIInput uiInput = (UIInput) uiComponent;\n\t\t\tuiInput.setSubmittedValue(submittedValue);",
"signature": "void decode(FacesContext facesContext, UIComponent uiComponent)"
},
{
"arguments": [],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/button/ButtonResponseWriter.java",
"implementation": "return wrappedResponseWriter;",
"signature": "ResponseWriter getWrapped()"
},
{
"arguments": [
"FacesContext facesContext",
" UIComponent uiComponent"
],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/starrating/StarRatingRenderer.java",
"implementation": "RenderKit renderKit = facesContext.getRenderKit();\n\t\tRenderer radioRenderer = renderKit.getRenderer(HtmlSelectOneRadio.COMPONENT_FAMILY, RADIO_RENDERER_TYPE);\n\t\tradioRenderer.decode(facesContext, uiComponent);\n\tprotected void encodeHTMLBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {\n\t\t// Start the opening tag of the component.\n\t\tencodeClassAttribute(responseWriter, (Styleable) uiComponent);\n\t\t// Use our own ResponseWriter to filter out stuff that the jsf-api wants to write to the DOM, and also use our\n\t\t// ResponseWriter to save interesting things along the way and later ask our ResponseWriter for them, such as an\n\t\t// onclick event that our jsf-impl will need.\n\t\tfacesContext.setResponseWriter(starRatingResponseWriter);\n\n\t\t// Delegate rendering of the component to the JSF runtime.\n\t\tRenderKit renderKit = facesContext.getRenderKit();\n\t\tRenderer radioRenderer = renderKit.getRenderer(HtmlSelectOneRadio.COMPONENT_FAMILY, RADIO_RENDERER_TYPE);\n\t\tradioRenderer.encodeBegin(facesContext, uiComponent);\n\t\tradioRenderer.encodeChildren(facesContext, uiComponent);\n\t\tradioRenderer.encodeEnd(facesContext, uiComponent);\n\n\t\t// Restore the original ResponseWwriter.\n\t\tfacesContext.setResponseWriter(responseWriter);",
"signature": "void decode(FacesContext facesContext, UIComponent uiComponent)"
},
{
"arguments": [],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/component/starrating/StarRatingResponseWriter.java",
"implementation": "return wrappedResponseWriter;",
"signature": "ResponseWriter getWrapped()"
},
{
"arguments": [
"ResponseWriter responseWriter",
" String attributeName",
" Object attributeValue",
"\n\n\t\tif "
],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/renderkit/AlloyRendererBase.java",
"implementation": "responseWriter.write(StringPool.COMMA);",
"signature": "void encodeEvent(ResponseWriter responseWriter, String attributeName, Object attributeValue,\n\n\t\tif (!first)"
},
{
"arguments": [
"ResponseWriter responseWriter",
" String attributeName",
" Object attributeValue",
"\n\n\t\tif "
],
"filename": "alloy/src/main/java/com/liferay/faces/alloy/renderkit/AlloyRendererBase.java",
"implementation": "responseWriter.write(StringPool.COMMA);",
"signature": "void encodeObject(ResponseWriter responseWriter, String attributeName, Object attributeValue,\n\n\t\tif (!first)"
}
] |
26132fb65137f90d5223bf5bddc0c7a296577aec | [
{
"arguments": [],
"filename": "src/main/java/com/springsource/greenhouse/events/Event.java",
"implementation": "return id;\n\tpublic void setId(Long id) {\n\t\n\tpublic Date getStartDate() {\n\t\treturn startDate;\n\tpublic void setStartDate(Date startDate) {\n\t\tthis.startDate = startDate;\n\tpublic Date getEndDate() {\n\t\treturn endDate;\n\tpublic void setEndDate(Date endDate) {\n\t\tthis.endDate = endDate;\n\tpublic String getDescription() {\n\t\treturn this.description;",
"signature": "Long getId()"
},
{
"arguments": [
"String description"
],
"filename": "src/main/java/com/springsource/greenhouse/events/Event.java",
"implementation": "this.description = description;",
"signature": "void setDescription(String description)"
},
{
"arguments": [
"Short code",
" String title",
" Date startTime",
" Date endTime",
" String description",
" EventSessionLeader leader"
],
"filename": "src/main/java/com/springsource/greenhouse/events/EventSession.java",
"implementation": "this(code, title, startTime, endTime, description, Collections.singleton(leader));\n\t\t\n\tpublic EventSession(Short code, String title, Date startTime, Date endTime, String description, Set<EventSessionLeader> leaders) {\n\t\tthis.code = code;\n\t\tthis.description = description;\n\n\tpublic Short getCode() {\n\t\treturn code;\n\tpublic String getTitle() {\n\t\treturn title;\n\tpublic String getDescription() {\n\t\treturn description;\n\tpublic Set<EventSessionLeader> getLeaders() {\n\t\treturn leaders;",
"signature": "public EventSession(Short code, String title, Date startTime, Date endTime, String description, EventSessionLeader leader)"
},
{
"arguments": [
"EventRepository eventRepository",
" TwitterOperations twitter"
],
"filename": "src/main/java/com/springsource/greenhouse/events/EventsController.java",
"implementation": "this.eventRepository = eventRepository;\n\t// for web service (JSON) clients\n\t@RequestMapping(method=RequestMethod.GET, headers=\"Accept=application/json\") \n\tpublic @ResponseBody List<Event> upcomingEvents() {\n\t\treturn eventRepository.findUpcomingEvents();\n\t@RequestMapping(value=\"/{id",
"signature": "public EventsController(EventRepository eventRepository, TwitterOperations twitter)"
},
{
"arguments": [
"Model model"
],
"filename": "src/main/java/com/springsource/greenhouse/events/EventsController.java",
"implementation": "model.addAttribute(eventRepository.findUpcomingEvents());\n\t\treturn \"events/list\";",
"signature": "String upcomingEventsView(Model model)"
},
{
"arguments": [
"String query",
" int page",
" int resultsPerPage"
],
"filename": "src/main/java/org/springframework/social/twitter/TwitterService.java",
"implementation": "return search(null, query, page, resultsPerPage, 0, 0);",
"signature": "SearchResults search(String query, int page, int resultsPerPage)"
}
] | [
{
"arguments": [],
"filename": "src/main/java/com/springsource/greenhouse/events/Event.java",
"implementation": "return this.id;\n\tpublic void setId(long id) {\n\n\tpublic String getDescription() {\n\t\treturn this.description;",
"signature": "long getId()"
},
{
"arguments": [
"String description"
],
"filename": "src/main/java/com/springsource/greenhouse/events/Event.java",
"implementation": "this.description = description;",
"signature": "void setDescription(String description)"
},
{
"arguments": [],
"filename": "src/main/java/com/springsource/greenhouse/events/Event.java",
"implementation": "return this.startTime;",
"signature": "Date getStartTime()"
},
{
"arguments": [
"Date startTime"
],
"filename": "src/main/java/com/springsource/greenhouse/events/Event.java",
"implementation": "this.startTime = startTime;",
"signature": "void setStartTime(Date startTime)"
},
{
"arguments": [],
"filename": "src/main/java/com/springsource/greenhouse/events/Event.java",
"implementation": "return this.endTime;\n\tpublic void setEndTime(Date endTime) {\n\t\tthis.endTime = endTime;\n\tpublic String getHashtag() {\n\t\treturn this.hashtag;\n\tpublic void setHashtag(String hashtag) {\n\t\tthis.hashtag = hashtag;\n\tpublic void setFriendlyId(String friendlyId) {\n\t this.friendlyId = friendlyId;",
"signature": "Date getEndTime()"
},
{
"arguments": [],
"filename": "src/main/java/com/springsource/greenhouse/events/Event.java",
"implementation": "return friendlyId;",
"signature": "String getFriendlyId()"
},
{
"arguments": [
"String title",
" String summary",
" Date startTime",
"\n\t\t\tDate endTime",
" SessionLeader leader",
" String hashtag"
],
"filename": "src/main/java/com/springsource/greenhouse/events/EventSession.java",
"implementation": "super();\n\t\tthis.title = title;\n\t\tthis.summary = summary;\n\t\tthis.startTime = startTime;\n\t\tthis.endTime = endTime;\n\t\t\n\t\tthis.leaders = new ArrayList<SessionLeader>();\n\t\tthis.leaders.add(leader);\n\t\tthis.hashtag = hashtag;\n\n\tpublic EventSession(String title, String summary, Date startTime,\n\t\t\tDate endTime, List<SessionLeader> leaders, String hashtag) {\n\t\tsuper();\n\t\tthis.summary = summary;\n\t\tthis.hashtag = hashtag;\n\t\n\tpublic String getTitle() {\n\t\treturn title;\n\tpublic String getSummary() {\n\t\treturn summary;\n\tpublic List<SessionLeader> getLeaders() {\n\t\treturn leaders;\n\tpublic String getHashtag() {\n\t\treturn hashtag;",
"signature": "public EventSession(String title, String summary, Date startTime,\n\t\t\tDate endTime, SessionLeader leader, String hashtag)"
},
{
"arguments": [
"EventsService eventsService",
" TwitterOperations twitter"
],
"filename": "src/main/java/com/springsource/greenhouse/events/EventsController.java",
"implementation": "this.eventsService = eventsService;\n\t@RequestMapping(method=RequestMethod.GET, headers=\"Accept=application/json\") \n\tpublic @ResponseBody List<Event> eventsData() {\n\t\treturn eventsService.findEventsAfter(new Date());",
"signature": "public EventsController(EventsService eventsService, TwitterOperations twitter)"
},
{
"arguments": [
"Model model"
],
"filename": "src/main/java/com/springsource/greenhouse/events/EventsController.java",
"implementation": "model.addAttribute(eventsService.findEventsAfter(new Date()));\n\t\treturn \"events/list\";\n\t@RequestMapping(value=\"/{eventId",
"signature": "String listEvents(Model model)"
},
{
"arguments": [
"@PathVariable long eventId"
],
"filename": "src/main/java/com/springsource/greenhouse/events/EventsController.java",
"implementation": "return eventsService.findEventById(eventId);\n\t@RequestMapping(value=\"/{eventName",
"signature": "Event eventData(@PathVariable long eventId)"
},
{
"arguments": [
"OAuthConsumerToken accessToken",
" @PathVariable String eventName",
" Model model"
],
"filename": "src/main/java/com/springsource/greenhouse/events/EventsController.java",
"implementation": "Event event = eventsService.findEventByPublicId(eventName);\n\t\tmodel.addAttribute(event);\n\t\tmodel.addAttribute(twitter.search(accessToken, event.getHashtag(), 1, 10));\n\t\treturn \"events/view\";\n\t\n\t@RequestMapping(value=\"/{eventId",
"signature": "String viewEvent(OAuthConsumerToken accessToken, @PathVariable String eventName, Model model)"
},
{
"arguments": [
"OAuthConsumerToken accessToken",
" @RequestParam String status"
],
"filename": "src/main/java/com/springsource/greenhouse/events/EventsController.java",
"implementation": "logger.info(\"twitter update: \" + status);\n\t\t\n\t\treturn \"hello\";",
"signature": "String postTweet(OAuthConsumerToken accessToken, @RequestParam String status)"
}
] |
507381bfe0e0cc3ebd54f15a9a0974ddfdafe848 | [
{
"arguments": [],
"filename": "org.dawb.passerelle.actors/src/org/dawb/passerelle/editors/UserModifyComposite.java",
"implementation": "",
"signature": "public UserModifyComposite()"
},
{
"arguments": [
"final Object container",
" Closeable closeable"
],
"filename": "org.dawb.passerelle.actors/src/org/dawb/passerelle/editors/UserModifyComposite.java",
"implementation": "final Composite contents = new Composite((Composite)container, SWT.NONE);\n\t\tcontents.setLayout(new GridLayout(1, false));\n\t\tcontents.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\n\t\tthis.customLabel = new Label(contents, SWT.WRAP);\n this.tableViewer = new AppliableTableViewer(contents, SWT.FULL_SELECTION | SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);\n\t@Override\n\tpublic void initializeMenu(Object obars) {\n\tpublic void setQueue(Queue<Object> queue) {\n\t@Override\n\t@Override\n\tpublic void setUserObject(Object userObject) {\n\t\tthrow new RuntimeException(\"Cannot call setUserObject(...) on \"+getClass().getName());",
"signature": "void createRemotePart(final Object container, Closeable closeable)"
},
{
"arguments": [],
"filename": "org.dawb.passerelle.actors/src/org/dawb/passerelle/editors/UserModifyComposite.java",
"implementation": "this.stop.run();",
"signature": "void stop()"
},
{
"arguments": [],
"filename": "org.dawb.passerelle.actors/src/org/dawb/passerelle/editors/UserModifyComposite.java",
"implementation": "this.confirm.run();",
"signature": "void confirm()"
},
{
"arguments": [],
"filename": "org.dawb.passerelle.actors/src/org/dawb/passerelle/editors/UserModifyComposite.java",
"implementation": "setFocus();",
"signature": "void setRemoteFocus()"
},
{
"arguments": [],
"filename": "org.dawb.passerelle.common/src/org/dawb/passerelle/common/remote/RemoteWorkbenchImpl.java",
"implementation": "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tfinal IUserInputService service = (IUserInputService)ServiceManager.getService(IUserInputService.class);\n\t\t\t\t\tfinal IRemoteWorkbenchPart part = service.openUserPlotPart(bean.getPartName(), bean.isDialog());\n\t\t\t\t\t\n\t\t\t\t\tif (bean.getPartName()!=null) part.setPartName(bean.getPartName());\n\t\t\t\t\tpart.setQueue(queue);\n\t\t\t\t\tpart.setUserObject(bean);\n\t\t\t\t\t\n\t\t\t\t\tif (part instanceof Dialog) {\n\t\t\t\t\t\tDialog dialog = (Dialog)part;\n\t\t\t\t\t\tdialog.open();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (dialog.getReturnCode()!=Dialog.OK) {\n\t\t\t\t\t\t\tqueue.add(Collections.EMPTY_MAP);",
"signature": "new Runnable()"
}
] | [
{
"arguments": [],
"filename": "org.dawb.workbench.jmx/src/org/dawb/workbench/jmx/UserInputBean.java",
"implementation": "return actorName;",
"signature": "String getActorName()"
},
{
"arguments": [
"String actorName"
],
"filename": "org.dawb.workbench.jmx/src/org/dawb/workbench/jmx/UserInputBean.java",
"implementation": "this.actorName = actorName;",
"signature": "void setActorName(String actorName)"
},
{
"arguments": [],
"filename": "org.dawb.workbench.jmx/src/org/dawb/workbench/jmx/UserInputBean.java",
"implementation": "return partName;",
"signature": "String getPartName()"
},
{
"arguments": [
"String parentName"
],
"filename": "org.dawb.workbench.jmx/src/org/dawb/workbench/jmx/UserInputBean.java",
"implementation": "this.partName = parentName;",
"signature": "void setPartName(String parentName)"
},
{
"arguments": [],
"filename": "org.dawb.workbench.jmx/src/org/dawb/workbench/jmx/UserInputBean.java",
"implementation": "return isDialog;",
"signature": "boolean isDialog()"
},
{
"arguments": [
"boolean isDialog"
],
"filename": "org.dawb.workbench.jmx/src/org/dawb/workbench/jmx/UserInputBean.java",
"implementation": "this.isDialog = isDialog;",
"signature": "void setDialog(boolean isDialog)"
},
{
"arguments": [],
"filename": "org.dawb.workbench.jmx/src/org/dawb/workbench/jmx/UserInputBean.java",
"implementation": "return silent;",
"signature": "boolean isSilent()"
},
{
"arguments": [
"boolean silent"
],
"filename": "org.dawb.workbench.jmx/src/org/dawb/workbench/jmx/UserInputBean.java",
"implementation": "this.silent = silent;",
"signature": "void setSilent(boolean silent)"
}
] |
53cf570c3fe1f6f539752e25ff1f7deaff81b9ff | [
{
"arguments": [
"UserAgentCallback uac"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "setMedia(\"screen\");\n this.uac = uac;\n setCss(new StyleReference(uac));\n XRLog.render(\"Using CSS implementation from: \" + getCss().getClass().getName());\n setTextRenderer(new Java2DTextRenderer());\n try {\n setDPI(Toolkit.getDefaultToolkit().getScreenResolution());",
"signature": "public SharedContext(UserAgentCallback uac)"
},
{
"arguments": [
"Rectangle extents"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "LayoutContext c = new LayoutContext(this, extents);\n c.initializeStyles(new EmptyStyle());\n return c;",
"signature": "LayoutContext newLayoutContextInstance(Rectangle extents)"
},
{
"arguments": [
"Rectangle extents"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "RenderingContext c = new RenderingContext(this, extents);\n return media;\n return text_renderer;\n\n //Uu.p(\"upping max height to : \" + max_height);\n\n private Map id_map;\n\n public void addIDBox(String id, Box box) {\n if (id_map == null) {\n id_map = new HashMap();",
"signature": "RenderingContext newRenderingContextInstance(Rectangle extents)"
},
{
"arguments": [
"String id"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "if (id_map == null) {\n id_map = new HashMap();",
"signature": "Box getIDBox(String id)"
},
{
"arguments": [
"TextRenderer text_renderer"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "this.text_renderer = text_renderer;",
"signature": "void setTextRenderer(TextRenderer text_renderer)"
},
{
"arguments": [
"String media"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "this.media = media;",
"signature": "void setMedia(String media)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return uac;",
"signature": "UserAgentCallback getUac()"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return this.dpi;",
"signature": "float getDPI()"
},
{
"arguments": [
"float dpi"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "this.dpi = dpi;\n this.mm_per_px = (CM__PER__IN * MM__PER__CM) / dpi;",
"signature": "void setDPI(float dpi)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return this.mm_per_px;",
"signature": "float getMmPerPx()"
},
{
"arguments": [
"FontSpecification parent",
" FontSpecification desired",
" float xHeight",
" Graphics2D g2"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "float bestGuess = getFontSize2D(parent);\n float bestHeight = getXHeight(parent, g2);\n float nextGuess = bestGuess * xHeight / bestHeight;\n while (true) {\n desired.size = nextGuess;\n float nextHeight = getXHeight(desired, g2);\n //this check is needed in cases where the iteration can hop back and forth between two values\n if (Math.abs(nextHeight - xHeight) < Math.abs(bestHeight - xHeight)) {\n bestGuess = nextGuess;\n bestHeight = nextHeight;\n nextGuess = bestGuess * xHeight / nextHeight;",
"signature": "float getFontSizeForXHeight(FontSpecification parent, FontSpecification desired, float xHeight, Graphics2D g2)"
},
{
"arguments": [
"FontSpecification fs",
" Graphics2D g2"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "Font f = getFontResolver().resolveFont(this, fs.families, fs.size, fs.fontWeight, fs.fontStyle, fs.variant);\n float sto = getTextRenderer().getLineMetrics(g2, f, \" \").getStrikethroughOffset();\n return 2 * Math.abs(sto);",
"signature": "float getXHeight(FontSpecification fs, Graphics2D g2)"
},
{
"arguments": [
"FontSpecification font"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return getFontResolver().resolveFont(this, font).getSize2D();",
"signature": "float getFontSize2D(FontSpecification font)"
},
{
"arguments": [
"FontSpecification font"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return getFontResolver().resolveFont(this, font);",
"signature": "Font getFont(FontSpecification font)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return uac.getBaseURL();",
"signature": "String getBaseURL()"
},
{
"arguments": [
"String url"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "uac.setBaseURL(url);",
"signature": "void setBaseURL(String url)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "if (media.equals(\"print\")) {\n return true;",
"signature": "boolean isPaged()"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return interactive;",
"signature": "boolean isInteractive()"
},
{
"arguments": [
"boolean interactive"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "this.interactive = interactive;",
"signature": "void setInteractive(boolean interactive)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return print;",
"signature": "boolean isPrint()"
},
{
"arguments": [
"boolean print"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "this.print = print;",
"signature": "void setPrint(boolean print)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return pageSize;",
"signature": "PageInfo getPageInfo()"
},
{
"arguments": [
"String name",
" Font font"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "getFontResolver().setFontMapping(name, font);",
"signature": "void setFontMapping(String name, Font font)"
},
{
"arguments": [
"RenderingContext c",
" CalculatedStyle activeStyle",
" boolean rendering"
],
"filename": "src/java/org/xhtmlrenderer/layout/block/Relative.java",
"implementation": "topLeft = extractLeftTopRelative(c, c.getBlockFormattingContext(), activeStyle);\n public static void translateRelative(LayoutContext c, CalculatedStyle activeStyle, boolean rendering) {\n topLeft = extractLeftTopRelative(c, c.getBlockFormattingContext(), activeStyle);\n if (topLeft != null) {\n top = topLeft[0];\n left = topLeft[1];\n c.translate(left, top);\n if (rendering) {\n c.getGraphics().translate(left, top);",
"signature": "void translateRelative(RenderingContext c, CalculatedStyle activeStyle, boolean rendering)"
},
{
"arguments": [
"RenderingContext c",
" CalculatedStyle activeStyle",
" boolean rendering"
],
"filename": "src/java/org/xhtmlrenderer/layout/block/Relative.java",
"implementation": "int top = 0;\n int left = 0;\n int topLeft[] = null;\n topLeft = extractLeftTopRelative(c, c.getBlockFormattingContext(), activeStyle);\n if (topLeft != null) {\n top = topLeft[0];\n left = topLeft[1];\n c.translate(-left, -top);\n if (rendering) {\n c.getGraphics().translate(-left, -top);",
"signature": "void untranslateRelative(RenderingContext c, CalculatedStyle activeStyle, boolean rendering)"
},
{
"arguments": [
"Box box"
],
"filename": "src/java/org/xhtmlrenderer/swing/HoverListener.java",
"implementation": "if (box == null) {\n return null;",
"signature": "Box getDeepestHover(Box box)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/swing/RootPanel.java",
"implementation": "return sharedContext;\n protected SharedContext sharedContext;\n //TODO: layout_context should not be stored!\n protected volatile LayoutContext layout_context;\n getSharedContext().setBaseURL(url);\n getSharedContext().setNamespaceHandler(nsh);\n getSharedContext().setMedia(pageInfo == null ? \"screen\" : \"print\");\n getSharedContext().getCss().setDocumentContext(getSharedContext(), getSharedContext().getNamespaceHandler(), doc, this);\n\n\n\n protected RenderingContext newRenderingContext(PageInfo pageInfo, Graphics2D g) {\n getSharedContext().setCanvas(this);\n getSharedContext().setMaxWidth(0);\n //getSharedContext().setMaxHeight(0);\n RenderingContext result = getSharedContext().newRenderingContextInstance(extents);\n result.setGraphics(g);\n result.setPrint(pageInfo != null);\n result.setInteractive(pageInfo == null);\n\n return result;",
"signature": "SharedContext getSharedContext()"
},
{
"arguments": [
"PageInfo pageInfo",
" Graphics2D g"
],
"filename": "src/java/org/xhtmlrenderer/swing/RootPanel.java",
"implementation": "XRLog.layout(Level.FINEST, \"new context begin\");\n\n getSharedContext().setCanvas(this);\n\n Rectangle extents;\n\n if (pageInfo != null) {\n extents = new Rectangle(0, 0,\n (int) pageInfo.getContentWidth(), (int) pageInfo.getContentHeight());",
"signature": "LayoutContext newLayoutContext(PageInfo pageInfo, Graphics2D g)"
},
{
"arguments": [
"enclosingScrollPane != null"
],
"filename": "src/java/org/xhtmlrenderer/swing/RootPanel.java",
"implementation": "Rectangle bnds = enclosingScrollPane.getViewportBorderBounds();\n extents = new Rectangle(0, 0, bnds.width, bnds.height);\n //Uu.p(\"bnds = \" + bnds);",
"signature": "else if (enclosingScrollPane != null)"
}
] | [
{
"arguments": [
"RenderingContext ctx",
" String[] families",
" float size",
" IdentValue weight",
" IdentValue style",
" IdentValue variant"
],
"filename": "src/java/org/xhtmlrenderer/context/FontResolver.java",
"implementation": "try {\n Font fnt = createFont(ctx, (Font) available_fonts_hash.get(family), size, weight, style, variant);\n instance_hash.put(getFontInstanceHashName(family, size, weight, style, variant), fnt);\n //Uu.p(\"subbing in base sans : \" + fnt);\n return fnt;",
"signature": "Font resolveFont(RenderingContext ctx, String[] families, float size, IdentValue weight, IdentValue style, IdentValue variant)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "public Context newContextInstance(Rectangle extents) {\n Context c = new ContextImpl(this, extents);\n /**\n * Description of the Field\n */\n protected Graphics2D graphics;\n\n /**\n * Gets the graphics attribute of the Context object\n *\n * @return The graphics value\n */\n public Graphics2D getGraphics() {\n return graphics;",
"signature": "public SharedContext()"
},
{
"arguments": [
"Graphics2D graphics"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "this.graphics = graphics;",
"signature": "void setGraphics(Graphics2D graphics)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return getCtx();",
"signature": "RenderingContext getRenderingContext()"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "return ctx;",
"signature": "RenderingContext getCtx()"
},
{
"arguments": [
"RenderingContext ctx"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "this.ctx = ctx;",
"signature": "void setCtx(RenderingContext ctx)"
},
{
"arguments": [
"String id",
" Box box"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "if(id_map == null) {\n\t\t\tid_map = new HashMap();",
"signature": "void addIDBox(String id, Box box)"
},
{
"arguments": [
"String id"
],
"filename": "src/java/org/xhtmlrenderer/layout/SharedContext.java",
"implementation": "if(id_map == null) {\n\t\t\tid_map = new HashMap();",
"signature": "Box getIDBox(String id)"
},
{
"arguments": [
"Context c"
],
"filename": "src/java/org/xhtmlrenderer/render/Box.java",
"implementation": "double absTop = getAbsY(c);\n protected double getAbsY(Context c) {\n return c.getOriginOffset().y;",
"signature": "boolean crossesPageBreak(Context c)"
},
{
"arguments": [
"Context c",
" InlineBox ib"
],
"filename": "src/java/org/xhtmlrenderer/render/LineBox.java",
"implementation": "public void moveToNextPage(Context c, Rectangle bounds) {\n protected double getAbsY(Context c) {\n return c.getOriginOffset().y + y;",
"signature": "void addInlineChild(Context c, InlineBox ib)"
},
{
"arguments": [
"Context c",
" Box root"
],
"filename": "src/java/org/xhtmlrenderer/swing/BasicPanel.java",
"implementation": "return getPageCount(layout_context);\n private int getPageCount(Context c) {\n private void renderPagedView(Context c, Box box) {\n int pageCount = getPageCount(c);\n setPreferredSize(new Dimension(c.getMaxWidth(),\n public void setRenderingContext(RenderingContext ctx) {\n this.ctx = ctx;\n String url = getRenderingContext().getUac().resolveURI(filename);\n Box bxx = getContext().getIDBox(id);\n getRenderingContext().getStyleReference().flushStyleSheets();\n setDocument(this.doc, getRenderingContext().getBaseURL(), getContext().getNamespaceHandler());\n base = new URL(getRenderingContext().getUac().getBaseURL());\n return getContext().getNamespaceHandler().getDocumentTitle(doc);\n return ctx.getUac().getXMLResource(uri).getDocument();\n /**\n * Gets the renderingContext attribute of the BasicPanel object\n *\n * @return The renderingContext value\n */\n public RenderingContext getRenderingContext() {\n return ctx;",
"signature": "void executeRenderThread(Context c, Box root)"
},
{
"arguments": [
"Box box"
],
"filename": "src/java/org/xhtmlrenderer/swing/HoverListener.java",
"implementation": "if(box == null) {\n\t\t\treturn null;",
"signature": "Box getDeepestHover(Box box)"
},
{
"arguments": [],
"filename": "src/java/org/xhtmlrenderer/swing/RootPanel.java",
"implementation": "return getRenderingContext().getContext();\n protected RenderingContext ctx;\n /**\n * Gets the renderingContext attribute of the BasicPanel object\n *\n * @return The renderingContext value\n */\n public RenderingContext getRenderingContext() {\n return ctx;",
"signature": "SharedContext getContext()"
}
] |
57c83e7e85803434057d66d9dcd0d3ef12a4e6e2 | [
{
"arguments": [
"IEditorInput input"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/editor/OPEditor.java",
"implementation": "super.setInput(input);\r\n\t @Override\r\n\t public void commandStackChanged(EventObject event) {\r\n\t firePropertyChange(PROP_DIRTY);\r\n\t super.commandStackChanged(event);",
"signature": "void setInput(IEditorInput input)"
},
{
"arguments": [
"int value",
" String name",
" String literal"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/OPProceduralLinkKind.java",
"implementation": "this.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;",
"signature": "private OPProceduralLinkKind(int value, String name, String literal)"
},
{
"arguments": [],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/OPProceduralLinkKind.java",
"implementation": "return value;",
"signature": "int getValue()"
},
{
"arguments": [],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/OPProceduralLinkKind.java",
"implementation": "return name;",
"signature": "String getName()"
},
{
"arguments": [],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/OPProceduralLinkKind.java",
"implementation": "return literal;",
"signature": "String getLiteral()"
},
{
"arguments": [
"String name"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/OPProceduralLinkKind.java",
"implementation": "for(OPProceduralLinkKind kind:values) {\r\n\t\t\tif(kind.name.equals(name))\r\n\t\t\t\treturn kind;",
"signature": "OPProceduralLinkKind getByName(String name)"
},
{
"arguments": [
"OPLink link"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/impl/OPSystemImpl.java",
"implementation": "links.add(link);",
"signature": "void addLink(OPLink link)"
},
{
"arguments": [
"OPLink link"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/impl/OPSystemImpl.java",
"implementation": "links.remove(link);",
"signature": "void removeLink(OPLink link)"
},
{
"arguments": [
"JsonObject json"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "//\t\tOPSystem system = OPModelFactory.createOPSystem();\r\n//\t\tsystem.setName(json.get(\"name\").asString());\r\n//\t\tsystem.setNextId(json.get(\"nexId\").asInt());\r\n//\t\tsystem.setSD(readOPObjectProcessDiagram(json.get(\"SD\").asObject()));\r\n//\t\treturn system;\r\n//",
"signature": "OPSystem readOPSystem(JsonObject json)"
},
{
"arguments": [
"JsonObject json"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "//\t\tOPObjectProcessDiagram opd = OPModelFactory.createObjectProcessDiagram();\r\n//\t\treadOPModelBase(opd, json);\r\n//\t\treadOPElementViewContainer(opd, json);\r\n//\r\n//\t\tMap<Integer, OPLinkView> idToLink = Maps.newHashMap();\r\n//\t\tMap<OPLinkView, Integer> linkToSource = Maps.newHashMap();\r\n//\t\tMap<OPLinkView, Integer> linkToTarget = Maps.newHashMap();\r\n//\t\t\r\n//\t\tfor(JsonValue link : json.get(\"links\").asArray()) {\r\n//\t\t\topd.addLinkView(readOPLinkView(link.asObject(), idToLink, linkToSource, linkToTarget));\r\n//",
"signature": "OPObjectProcessDiagram readOPObjectProcessDiagram(JsonObject json)"
},
{
"arguments": [
"JsonObject json",
" Map<Integer",
" OPLinkView> idToLink",
" Map<OPLinkView",
" Integer> linkToSource",
" Map<OPLinkView",
" Integer> linkToTarget"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "//\t\tOPLinkView link = OPModelFactory.createLinkView();\r\n//\t\treadOPModelBase(link, json);\r\n//\t\tidToLink.put(link.getId(), link);\r\n//\t\tlinkToSource.put(link, json.get(\"source\").asInt());\r\n//\t\tlinkToTarget.put(link, json.get(\"target\").asInt());\r\n//\t\treturn link;\r\n//",
"signature": "OPLinkView readOPLinkView(JsonObject json, Map<Integer, OPLinkView> idToLink, Map<OPLinkView, Integer> linkToSource, Map<OPLinkView, Integer> linkToTarget)"
},
{
"arguments": [
"OPElementViewContainer container",
" JsonObject json"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "//\t\tJsonArray nodes = json.get(\"nodes\").asArray();\r\n//\t\tfor (JsonValue node : nodes) {\r\n////\t\t\tcontainer.addNode(readOPNodeView(node.asObject()));\r\n//",
"signature": "void readOPElementViewContainer(OPElementViewContainer container, JsonObject json)"
},
{
"arguments": [
"OPElement base",
" JsonObject json"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "//\t\tbase.setId(json.get(\"id\").asInt());\r\n//",
"signature": "void readOPModelBase(OPElement base, JsonObject json)"
}
] | [
{
"arguments": [
"OPLinkView link"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/impl/OPObjectProcessDiagramImpl.java",
"implementation": "links.add(link);\r\n\t\tnotifyObservers();",
"signature": "void addLinkView(OPLinkView link)"
},
{
"arguments": [
"OPLinkView link"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/impl/OPObjectProcessDiagramImpl.java",
"implementation": "links.remove(link);\r\n\t\tnotifyObservers();",
"signature": "void removeLinkView(OPLinkView link)"
},
{
"arguments": [
"JsonObject json"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "OPSystem system = OPModelFactory.createOPSystem();\r\n\t\tsystem.setName(json.get(\"name\").asString());\r\n\t\tsystem.setNextId(json.get(\"nexId\").asInt());\r\n\t\tsystem.setSD(readOPObjectProcessDiagram(json.get(\"SD\").asObject()));\r\n\t\treturn system;",
"signature": "OPSystem readOPSystem(JsonObject json)"
},
{
"arguments": [
"JsonObject json"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "OPObjectProcessDiagram opd = OPModelFactory.createObjectProcessDiagram();\r\n\t\treadOPModelBase(opd, json);\r\n\t\treadOPElementViewContainer(opd, json);\r\n\r\n\t\tMap<Integer, OPLinkView> idToLink = Maps.newHashMap();\r\n\t\tMap<OPLinkView, Integer> linkToSource = Maps.newHashMap();\r\n\t\tMap<OPLinkView, Integer> linkToTarget = Maps.newHashMap();\r\n\t\t\r\n\t\tfor(JsonValue link : json.get(\"links\").asArray()) {\r\n\t\t\topd.addLinkView(readOPLinkView(link.asObject(), idToLink, linkToSource, linkToTarget));",
"signature": "OPObjectProcessDiagram readOPObjectProcessDiagram(JsonObject json)"
},
{
"arguments": [
"JsonObject json",
" Map<Integer",
" OPLinkView> idToLink",
" Map<OPLinkView",
" Integer> linkToSource",
" Map<OPLinkView",
" Integer> linkToTarget"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "OPLinkView link = OPModelFactory.createLinkView();\r\n\t\treadOPModelBase(link, json);\r\n\t\tidToLink.put(link.getId(), link);\r\n\t\tlinkToSource.put(link, json.get(\"source\").asInt());\r\n\t\tlinkToTarget.put(link, json.get(\"target\").asInt());\r\n\t\treturn link;",
"signature": "OPLinkView readOPLinkView(JsonObject json, Map<Integer, OPLinkView> idToLink, Map<OPLinkView, Integer> linkToSource, Map<OPLinkView, Integer> linkToTarget)"
},
{
"arguments": [
"OPElementViewContainer container",
" JsonObject json"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "JsonArray nodes = json.get(\"nodes\").asArray();\r\n\t\tfor (JsonValue node : nodes) {\r\n//\t\t\tcontainer.addNode(readOPNodeView(node.asObject()));",
"signature": "void readOPElementViewContainer(OPElementViewContainer container, JsonObject json)"
},
{
"arguments": [
"OPElement base",
" JsonObject json"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/io/OPJSONReader.java",
"implementation": "base.setId(json.get(\"id\").asInt());",
"signature": "void readOPModelBase(OPElement base, JsonObject json)"
},
{
"arguments": [],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/view/impl/OPLinkViewImpl.java",
"implementation": "return opd;",
"signature": "OPObjectProcessDiagram getObjectProcessDiagram()"
},
{
"arguments": [
"OPObjectProcessDiagram opd"
],
"filename": "com.vainolo.opm.editor/src/com/vainolo/opm/model/view/impl/OPLinkViewImpl.java",
"implementation": "this.opd = opd;\r\n\t\topd.addLinkView(this);\r\n\t\tnotifyObservers();",
"signature": "void setObjectProcessDiagram(OPObjectProcessDiagram opd)"
}
] |
5e015b37c1f051bc98013ea7924b1fdd6bb6c7dd | [
{
"arguments": [
"String idToFind"
],
"filename": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"implementation": "if (!actual.id().equals(idToFind)) {\n failWithMessage(\"The element does not have the id: \" + idToFind + \" . Actual id found : \" + actual.id());\n * @param classToFind class to find\n * @return {@code this",
"signature": "FluentWebElementAssert hasId(String idToFind)"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/configuration/ConfigurationFactoryProvider.java",
"implementation": "// Utility class",
"signature": "private ConfigurationFactoryProvider()"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/AbstractFluentListConditions.java",
"implementation": "return negation;",
"signature": "boolean isNegation()"
},
{
"arguments": [
"boolean negation"
],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/AbstractFluentListConditions.java",
"implementation": "this.negation = negation;",
"signature": "void setNegation(boolean negation)"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/message/MessageProxy.java",
"implementation": "// Utility class",
"signature": "private MessageProxy()"
},
{
"arguments": [
"invocationHandler == null"
],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/message/MessageProxy.java",
"implementation": "",
"signature": "proxy\n if (invocationHandler == null)"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/wait/WaitConditionProxy.java",
"implementation": "//Utility class",
"signature": "private WaitConditionProxy()"
},
{
"arguments": [
"FluentConditions.class",
" wait",
" context",
"\n new Supplier<FluentConditions>"
],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/wait/WaitConditionProxy.java",
"implementation": "@Override\n public FluentConditions get() {\n return new WebElementConditions(elementSupplier.get());",
"signature": "new WaitConditionInvocationHandler(FluentConditions.class, wait, context,\n new Supplier<FluentConditions>()"
},
{
"arguments": [
"this == o"
],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/core/proxy/AbstractLocatorHandler.java",
"implementation": "",
"signature": "IllegalThrows\n if (this == o)"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/core/proxy/LocatorProxies.java",
"implementation": "// Utility class",
"signature": "private LocatorProxies()"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/utils/ReflectionUtils.java",
"implementation": "// Utility class",
"signature": "private ReflectionUtils()"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/test/java/org/fluentlenium/core/search/SearchTest.java",
"implementation": "assertThat(fluentWebElement).isInstanceOf(FluentWebElement.class);\n Filter[] filters = new Filter[] {filter1, filter2",
"signature": "void canLoopIntoFluentWebElementAfterASearch()"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/test/java/org/fluentlenium/integration/PageInPageTest.java",
"implementation": "private IncludedPage pageWithCreatePage;\n public IncludedPage getPageWithCreatePage() {\n return pageWithCreatePage;",
"signature": "void pagesShouldBeInjected()"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/test/java/org/fluentlenium/utils/ResourceUtils.java",
"implementation": "// Utility class",
"signature": "private ResourceUtils()"
}
] | [
{
"arguments": [
"FluentConditions.class",
" wait",
" context",
"\n new Supplier<FluentConditions>"
],
"filename": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/wait/WaitConditionProxy.java",
"implementation": "@Override\n public FluentConditions get() {\n return new WebElementConditions(elementSupplier.get());",
"signature": "new WaitConditionInvocationHandler(FluentConditions.class, wait, context,\n new Supplier<FluentConditions>()"
},
{
"arguments": [],
"filename": "fluentlenium-core/src/test/java/org/fluentlenium/core/search/SearchTest.java",
"implementation": "Filter[] filters = new Filter[] { filter1, filter2",
"signature": "void can_loop_into_fluentWebElement_after_a_search()"
},
{
"arguments": [],
"filename": "fluentlenium-testng/src/test/java/org/fluentlenium/adapter/testng/integration/DontRunTestsWhenInitFailTest.java",
"implementation": "testNG.setTestClasses(new Class[] { TestClass.class",
"signature": "public TestClass()"
}
] |
5ee14c8d3218c2cfbb7afc6d1b6c9bf452258b51 | [
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "putObject(CoreConstants.EVALUATOR_MAP, new HashMap<String, EventEvaluator<?>>());",
"signature": "public LogbackValve()"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return started;",
"signature": "boolean isStarted()"
},
{
"arguments": [
"File configFile"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "try {\n return configFile.toURI().toURL();",
"signature": "URL fileToUrl(File configFile)"
},
{
"arguments": [
"String filename"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "URL result = Loader.getResource(filename, getClass().getClassLoader());\n if (result != null)\n addInfo(\"Found [\" + filename + \"] as a resource.\");\n else\n addInfo(\"Could NOT find [\" + filename + \"] as a resource.\");\n return result;",
"signature": "URL searchAsResource(String filename)"
},
{
"arguments": [
"String filename",
" String propertyKey"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "String propertyValue = OptionHelper.getSystemProperty(propertyKey);\n String candidatePath = propertyValue + File.separatorChar + filename;\n if (propertyValue == null) {\n addInfo(\"System property \\\"\" + propertyKey + \"\\\" is not set. Skipping configuration file search with ${\" + propertyKey + \"",
"signature": "File searchForConfigFileTomcatProperty(String filename, String propertyKey)"
},
{
"arguments": [
"Status status"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "StatusManager sm = getStatusManager();\n if (sm != null) {\n sm.add(status);",
"signature": "void addStatus(Status status)"
},
{
"arguments": [
"String msg"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "addStatus(new InfoStatus(msg, this));",
"signature": "void addInfo(String msg)"
},
{
"arguments": [
"String msg"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "addStatus(new WarnStatus(msg, this));",
"signature": "void addWarn(String msg)"
},
{
"arguments": [
"String msg",
" Throwable t"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "addStatus(new ErrorStatus(msg, this, t));",
"signature": "void addError(String msg, Throwable t)"
},
{
"arguments": [
"URL resourceURL"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "JoranConfigurator jc = new JoranConfigurator();\n jc.setContext(this);\n jc.doConfigure(resourceURL);\n addInfo(\"Done configuring\");\n addError(\"Failed to configure LogbackValve\", e);",
"signature": "void configureAsResource(URL resourceURL)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return filenameOption;",
"signature": "String getFilename()"
},
{
"arguments": [
"String filename"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "this.filenameOption = filename;",
"signature": "void setFilename(String filename)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return quiet;",
"signature": "boolean isQuiet()"
},
{
"arguments": [
"boolean quiet"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "this.quiet = quiet;",
"signature": "void setQuiet(boolean quiet)"
},
{
"arguments": [
"Appender<IAccessEvent> newAppender"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "aai.addAppender(newAppender);",
"signature": "void addAppender(Appender<IAccessEvent> newAppender)"
},
{
"arguments": [
"Appender<IAccessEvent> appender"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return aai.isAttached(appender);",
"signature": "boolean isAttached(Appender<IAccessEvent> appender)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "aai.detachAndStopAllAppenders();",
"signature": "void detachAndStopAllAppenders()"
},
{
"arguments": [
"Appender<IAccessEvent> appender"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return aai.detachAppender(appender);",
"signature": "boolean detachAppender(Appender<IAccessEvent> appender)"
},
{
"arguments": [
"String name"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return aai.detachAppender(name);",
"signature": "boolean detachAppender(String name)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return \"Logback's implementation of ValveBase\";",
"signature": "String getInfo()"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return sm;",
"signature": "StatusManager getStatusManager()"
},
{
"arguments": [
"String key",
" String val"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "this.propertyMap.put(key, val);",
"signature": "void putProperty(String key, String val)"
},
{
"arguments": [
"String key"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return (String) this.propertyMap.get(key);",
"signature": "String getProperty(String key)"
},
{
"arguments": [
"String key"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return objectMap.get(key);",
"signature": "Object getObject(String key)"
},
{
"arguments": [
"String key",
" Object value"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "objectMap.put(key, value);",
"signature": "void putObject(String key, Object value)"
},
{
"arguments": [
"Filter<IAccessEvent> newFilter"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "fai.addFilter(newFilter);",
"signature": "void addFilter(Filter<IAccessEvent> newFilter)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "fai.clearAllFilters();",
"signature": "void clearAllFilters()"
},
{
"arguments": [
"IAccessEvent event"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return fai.getFilterChainDecision(event);",
"signature": "FilterReply getFilterChainDecision(IAccessEvent event)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return executorService;",
"signature": "ExecutorService getExecutorService()"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return name;",
"signature": "String getName()"
},
{
"arguments": [
"String name"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "if (this.name != null) {\n throw new IllegalStateException(\"LogbackValve has been already given a name\");\n this.name = name;",
"signature": "void setName(String name)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return birthTime;",
"signature": "long getBirthTime()"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return configurationLock;",
"signature": "Object getConfigurationLock()"
},
{
"arguments": [
"LifeCycle component"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "lifeCycleManager.register(component);",
"signature": "void register(LifeCycle component)"
},
{
"arguments": [
"LifecycleListener arg0"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "// dummy NOP implementation",
"signature": "void addLifecycleListener(LifecycleListener arg0)"
},
{
"arguments": [
"LifecycleListener arg0"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "// dummy NOP implementation",
"signature": "void removeLifecycleListener(LifecycleListener arg0)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "StringBuilder sb = new StringBuilder(this.getClass().getName());\n sb.append('[');\n sb.append(getName());\n sb.append(']');\n return sb.toString();",
"signature": "String toString()"
},
{
"arguments": [
"String resourceName",
" ClassLoader classLoader"
],
"filename": "logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java",
"implementation": "Set<URL> urlSet = null;\n StatusManager sm = loggerContext.getStatusManager();\n try {\n urlSet = Loader.getResources(resourceName, classLoader);",
"signature": "void multiplicityWarning(String resourceName, ClassLoader classLoader)"
}
] | [
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "putObject(CoreConstants.EVALUATOR_MAP, new HashMap<String, EventEvaluator<?>>());",
"signature": "public LogbackValve()"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return started;",
"signature": "boolean isStarted()"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return filename;",
"signature": "String getFilename()"
},
{
"arguments": [
"String filename"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "this.filename = filename;",
"signature": "void setFilename(String filename)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return quiet;",
"signature": "boolean isQuiet()"
},
{
"arguments": [
"boolean quiet"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "this.quiet = quiet;",
"signature": "void setQuiet(boolean quiet)"
},
{
"arguments": [
"Appender<IAccessEvent> newAppender"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "aai.addAppender(newAppender);",
"signature": "void addAppender(Appender<IAccessEvent> newAppender)"
},
{
"arguments": [
"Appender<IAccessEvent> appender"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return aai.isAttached(appender);",
"signature": "boolean isAttached(Appender<IAccessEvent> appender)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "aai.detachAndStopAllAppenders();",
"signature": "void detachAndStopAllAppenders()"
},
{
"arguments": [
"Appender<IAccessEvent> appender"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return aai.detachAppender(appender);",
"signature": "boolean detachAppender(Appender<IAccessEvent> appender)"
},
{
"arguments": [
"String name"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return aai.detachAppender(name);",
"signature": "boolean detachAppender(String name)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return \"Logback's implementation of ValveBase\";",
"signature": "String getInfo()"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return sm;",
"signature": "StatusManager getStatusManager()"
},
{
"arguments": [
"String key",
" String val"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "this.propertyMap.put(key, val);",
"signature": "void putProperty(String key, String val)"
},
{
"arguments": [
"String key"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return (String) this.propertyMap.get(key);",
"signature": "String getProperty(String key)"
},
{
"arguments": [
"String key"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return objectMap.get(key);",
"signature": "Object getObject(String key)"
},
{
"arguments": [
"String key",
" Object value"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "objectMap.put(key, value);",
"signature": "void putObject(String key, Object value)"
},
{
"arguments": [
"Filter<IAccessEvent> newFilter"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "fai.addFilter(newFilter);",
"signature": "void addFilter(Filter<IAccessEvent> newFilter)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "fai.clearAllFilters();",
"signature": "void clearAllFilters()"
},
{
"arguments": [
"IAccessEvent event"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return fai.getFilterChainDecision(event);",
"signature": "FilterReply getFilterChainDecision(IAccessEvent event)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return executorService;",
"signature": "ExecutorService getExecutorService()"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return name;",
"signature": "String getName()"
},
{
"arguments": [
"String name"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "if (this.name != null) {\n throw new IllegalStateException(\n \"LogbackValve has been already given a name\");",
"signature": "void setName(String name)"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return birthTime;",
"signature": "long getBirthTime()"
},
{
"arguments": [],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "return configurationLock;",
"signature": "Object getConfigurationLock()"
},
{
"arguments": [
"LifeCycle component"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "lifeCycleManager.register(component);",
"signature": "void register(LifeCycle component)"
},
{
"arguments": [
"LifecycleListener arg0"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "// dummy NOP implementation",
"signature": "void addLifecycleListener(LifecycleListener arg0)"
},
{
"arguments": [
"LifecycleListener arg0"
],
"filename": "logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java",
"implementation": "// dummy NOP implementation",
"signature": "void removeLifecycleListener(LifecycleListener arg0)"
},
{
"arguments": [
"String resourceName",
" ClassLoader classLoader"
],
"filename": "logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java",
"implementation": "Set<URL> urlSet = null;\n StatusManager sm = loggerContext.getStatusManager();\n try {\n urlSet = Loader.getResourceOccurrenceCount(resourceName, classLoader);",
"signature": "void multiplicityWarning(String resourceName, ClassLoader classLoader)"
}
] |
6124dc3a1efda7bf9d6054e9f3e7b441afc17064 | [
{
"arguments": [],
"filename": "src/main/java/org/hibernate/jpamodelgen/util/Constants.java",
"implementation": "",
"signature": "private Constants()"
}
] | [
{
"arguments": [],
"filename": "src/main/java/org/hibernate/jpamodelgen/util/Constants.java",
"implementation": "",
"signature": "private Constants()"
}
] |
648ae12ea5a9125b26073b7871cd25c583014eeb | [
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core.tests/src/net/sf/sveditor/core/tests/TestNullIndexCacheFactory.java",
"implementation": "fCacheList = new ArrayList<TestNullIndexCache>();",
"signature": "public TestNullIndexCacheFactory()"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core.tests/src/net/sf/sveditor/core/tests/content_assist/ContentAssistIndex.java",
"implementation": "return \"ContentAssistIndex\";",
"signature": "String getLogName()"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core.tests/src/net/sf/sveditor/core/tests/content_assist/TestContentAssistClass.java",
"implementation": "String testname = \"testContentAssistSuperSuperClass\";\n\t\tLogHandle log = LogFactory.getLogHandle(testname);\n\t\tString doc1 =\n\t\t\t\"class base;\\n\" +\n\t\t\t\"\tint\t\tAAAA;\\n\" +\n\t\t\t\"\tint\t\tAABB;\\n\" +\n\t\t\t\"endclass\\n\" +\n\t\t\t\"\\n\" +\n\t\t\t\"class super_1 extends base;\\n\" +\n\t\t\t\"\tint\t\tBBBB;\\n\" +\n\t\t\t\"\tint\t\tBBCC;\\n\" +\n\t\t\t\"endclass\\n\" +\n\t\t\t\"\\n\" +\n\t\t\t\"class super_2 extends super_1;\\n\" +\n\t\t\t\"\tint\t\tCCCC;\\n\" +\n\t\t\t\"\tint\t\tCCDD;\\n\" +\n\t\t\t\"endclass\\n\" +\n\t\t\t\"\\n\" +\n\t\t\t\"class my_class extends super_2;\\n\" +\n\t\t\t\"\\n\" +\n\t\t\t\"\tfunction void build();\\n\" +\n\t\t\t\"\t\tsuper.<<MARK>>\\n\" +\n\t\t\t\"\tendfunction\" +\n\t\t\t\"endclass\\n\" +\n\t\t\t\"\\n\"\n\t\t\t;\n\t\tSVCorePlugin.getDefault().enableDebug(false);\n\t\t\t\t\n\t\tTextTagPosUtils tt_utils = new TextTagPosUtils(new StringInputStream(doc1));\n\t\tISVDBFileFactory factory = SVCorePlugin.createFileFactory(null);\n\t\t\n\t\tList<SVDBMarker> markers = new ArrayList<SVDBMarker>();\n\t\tSVDBFile file = factory.parse(tt_utils.openStream(), testname, markers);\n\t\tStringBIDITextScanner scanner = new StringBIDITextScanner(tt_utils.getStrippedData());\n\t\t\n\t\t/*\n\t\tfor (ISVDBItemBase it : file.getChildren()) {\n\t\t\tlog.debug(\" it: \" + it.getType() + \" \" + SVDBItem.getName(it));",
"signature": "void testContentAssistSuperSuperClass()"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core.tests/src/net/sf/sveditor/core/tests/index/cache/TestIndexCache.java",
"implementation": "String testname = \"testFileCacheBasicsUVM\";\n\t\tBundleUtils utils = new BundleUtils(SVCoreTestsPlugin.getDefault().getBundle());\n\t\tFile tmp_dir = TestUtils.createTempDir();\n\t\tfinal File db_dir = new File(tmp_dir, \"db\");\n\t\tFile test_dir = new File(tmp_dir, \"test\");\n\t\tSVCorePlugin.getDefault().enableDebug(false);\n\t\tCoreReleaseTests.clearErrors();\n\t\tLogHandle log = LogFactory.getLogHandle(testname);\n\t\t\n\t\tassertTrue(db_dir.mkdirs());\n\t\tassertTrue(test_dir.mkdirs());\n\t\t\n\t\tutils.unpackBundleZipToFS(\"/uvm.zip\", test_dir);\t\t\n\t\tFile uvm = new File(test_dir, \"uvm\");\n\t\t\n\t\tIProject project_dir = TestUtils.createProject(\"uvm\", uvm);\n\n\t\tSVDBIndexRegistry rgy = new SVDBIndexRegistry();\n\t\tSVCorePlugin.getDefault().setSVDBIndexRegistry(rgy);\n\t\tISVDBIndexCacheFactory f = new ISVDBIndexCacheFactory() {\n\t\t\tpublic ISVDBIndexCache createIndexCache(String project_name,\n\t\t\t\t\tString base_location) {\n\t\t\t\tSVDBDirFS fs = new SVDBDirFS(db_dir);\n\t\t\t\tISVDBIndexCache cache = new SVDBFileIndexCache(fs);\n\t\t\t\treturn cache;",
"signature": "void testFileCacheBasicsUVM()"
},
{
"arguments": [
"List<ISVDBIndexCache> cache_list"
],
"filename": "plugins/net.sf.sveditor.core.tests/src/net/sf/sveditor/core/tests/index/cache/TestIndexCache.java",
"implementation": "",
"signature": "void compactCache(List<ISVDBIndexCache> cache_list)"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core.tests/src/net/sf/sveditor/core/tests/parser/TestParseClassBodyItems.java",
"implementation": "String testname = \"testRandomizeLocalVarRef\";\n\t\tString content =\n\t\t\t\"class myclass;\\n\" +\n\t\t\t\"\ttypedef enum bit {\\n\" +\n\t\t\t\"\t\tON,\\n\" +\n\t\t\t\"\t\tOFF\\n\" +\n\t\t\t\"",
"signature": "void testRandomizeLocalVarRef()"
},
{
"arguments": [
"it instanceof ISVDBNamedItem"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/content_assist/AbstractCompletionProcessor.java",
"implementation": "if (matcher.match((ISVDBNamedItem)it, ctxt.fLeaf)) {\n\t\t\t\t\t\t\taddProposal(it, ctxt.fLeaf, ctxt.fStart, ctxt.fLeaf.length());",
"signature": "else if (it instanceof ISVDBNamedItem)"
},
{
"arguments": [
"SVDBItemType type",
" String id"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/expr/SVDBIdentifierExpr.java",
"implementation": "super(type);\n\t\t\n\t\tfId = id;",
"signature": "public SVDBIdentifierExpr(SVDBItemType type, String id)"
},
{
"arguments": [
"ILogHandle handle"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/AbstractSVDBIndex.java",
"implementation": "fDebugEn = handle.isEnabled();",
"signature": "void logLevelChanged(ILogHandle handle)"
},
{
"arguments": [
"\n\t\t\tSVDBFileTree \t\t\t\t\tfile",
"\n\t\t\tMap<String",
" SVDBFileTree>\t\tworking_set"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/AbstractSVDBIndex.java",
"implementation": "fCache, working_set);\n\t\t\t\tif (fDebugEn) {\n\t\t\t\t\tfLog.debug(\"Searching for \\\"\" + leaf + \"\\\" in global (ret=\"\n\t\t\t\t\t\t\t+ ret + \")\");",
"signature": "IPreProcMacroProvider createPreProcMacroProvider(\n\t\t\tSVDBFileTree \t\t\t\t\tfile,\n\t\t\tMap<String, SVDBFileTree>\t\tworking_set)"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/SVDBIndexCollectionMgr.java",
"implementation": "for (ISVDBIndex i : getIndexList()) {\n\t\t\ti.dispose();",
"signature": "void dispose()"
},
{
"arguments": [
"String ref"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/SVDBIndexCollectionMgr.java",
"implementation": "if (!fProjectRefs.contains(ref)) {\n\t\t\tfProjectRefs.add(ref);",
"signature": "void addProjectRef(String ref)"
},
{
"arguments": [
"ISVDBProjectRefProvider p"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/SVDBIndexCollectionMgr.java",
"implementation": "fProjectRefProvider = p;",
"signature": "void setProjectRefProvider(ISVDBProjectRefProvider p)"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/SVDBIndexCollectionMgr.java",
"implementation": "return fProjectRefProvider;",
"signature": "ISVDBProjectRefProvider getProjectRefProvider()"
},
{
"arguments": [
"\n\t\t\tList<SVDBDeclCacheItem>\t\t\tret",
"\n\t\t\tString\t\t\t\t\t\t\tname",
"\n\t\t\tISVDBFindNameMatcher\t\t\tmatcher",
"\n\t\t\tSet<SVDBIndexCollectionMgr>\t\talready_searched",
"\n\t\t\tboolean\t\t\t\t\t\t\tsearch_local"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/SVDBIndexCollectionMgr.java",
"implementation": "if (!already_searched.contains(this)) {\n\t\t\talready_searched.add(this);",
"signature": "void findGlobalScopeDeclProjRef(\n\t\t\tList<SVDBDeclCacheItem>\t\t\tret,\n\t\t\tString\t\t\t\t\t\t\tname,\n\t\t\tISVDBFindNameMatcher\t\t\tmatcher,\n\t\t\tSet<SVDBIndexCollectionMgr>\t\talready_searched,\n\t\t\tboolean\t\t\t\t\t\t\tsearch_local)"
},
{
"arguments": [
"List<ISVDBIndex> index_l : fFileSearchOrder"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/SVDBIndexCollectionMgr.java",
"implementation": "for (ISVDBIndex index : index_l) {\n\t\t\t\t\tList<SVDBDeclCacheItem> tmp = index.findGlobalScopeDecl(\n\t\t\t\t\t\t\tnew NullProgressMonitor(), name, matcher);\n\t\t\t\t\tret.addAll(tmp);",
"signature": "indexes\n\t\t\tfor (List<ISVDBIndex> index_l : fFileSearchOrder)"
},
{
"arguments": [
"Set<String> file_list",
" ISVDBIndex index"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/SVDBIndexItemIterator.java",
"implementation": "Set<String> set_t = new HashSet<String>(file_list);\n\t\tfFilePathIterator = set_t.iterator();\n\t\t\t\tif (file == null) {\n\t\t\t\t\tcontinue;",
"signature": "public SVDBIndexItemIterator(Set<String> file_list, ISVDBIndex index)"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/SVDBLibIndex.java",
"implementation": "return \"SVDBLibIndex\";",
"signature": "String getLogName()"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/SVDBSourceCollectionIndex.java",
"implementation": "return \"SourceCollectionIndex\";",
"signature": "String getLogName()"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "fSVDBPreProcFile = new SoftReference<SVDBFile>(null);\n\t\t\tfSVDBFileTree = new SoftReference<SVDBFileTree>(null);\n\t\t\tfSVDBFile = new SoftReference<SVDBFile>(null);\n\t\t\tfMarkers = new SoftReference<List<SVDBMarker>>(null);\n\t\t\tfLastModified = -1;",
"signature": "public CacheFileInfo()"
},
{
"arguments": [
"String target_dir",
" String file_path",
" SVDBFile file"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "fTargetDir = target_dir;\n\t\t\tfFilePath = file_path;\n\t\t\tfFile = file;\n\t\t\tfType = SVDB_FILE;",
"signature": "public WriteBackInfo(String target_dir, String file_path, SVDBFile file)"
},
{
"arguments": [
"String target_dir",
" String file_path",
" SVDBFileTree file"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "fTargetDir = target_dir;\n\t\t\tfFilePath = file_path;\n\t\t\tfFileTree = file;\n\t\t\tfType = SVDB_FILE_TREE;",
"signature": "public WriteBackInfo(String target_dir, String file_path, SVDBFileTree file)"
},
{
"arguments": [
"String target_dir",
" String file_path",
" List<SVDBMarker> markers"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "fTargetDir = target_dir;\n\t\t\tfFilePath = file_path;\n\t\t\tfMarkers = markers;\n\t\t\tfType = MARKERS;",
"signature": "public WriteBackInfo(String target_dir, String file_path, List<SVDBMarker> markers)"
},
{
"arguments": [
"ISVDBFS fs"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "fFileCache = new HashMap<String, SVDBFileIndexCache.CacheFileInfo>();\n\t\tfDebugEn = fLog.isEnabled();\n\t\tfLog.addLogLevelListener(this);\n\t\tfPersistenceRdrSet = new ArrayList<IDBReader>(); \n\t\tfPersistenceWriterSet = new ArrayList<IDBWriter>();\n\t\tfWriteBackQueue = new ArrayList<SVDBFileIndexCache.WriteBackInfo>();\n\t\tif (fNumWriteBackThreads > 0) {\n\t\t\tfWriteBackThread = new Thread[fNumWriteBackThreads];\n\t\t\tfor (int i=0; i<fWriteBackThread.length; i++) {\n\t\t\t\tfWriteBackThread[i] = new Thread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\twriteBackWorker();",
"signature": "public SVDBFileIndexCache(ISVDBFS fs)"
},
{
"arguments": [
"ILogHandle handle"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "fDebugEn = handle.isEnabled();",
"signature": "void logLevelChanged(ILogHandle handle)"
},
{
"arguments": [
"String path",
" boolean create"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "synchronized (fFileCache) {\n\t\t\tif (!fFileCache.containsKey(path)) {\n\t\t\t\tif (create) {\n\t\t\t\t\tCacheFileInfo file = new CacheFileInfo();\n\t\t\t\t\tfFileCache.put(path, file);\n\t\t\t\t\treturn file;",
"signature": "CacheFileInfo getCacheFileInfo(String path, boolean create)"
},
{
"arguments": [
"true"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "synchronized (fWriteBackQueue) {\n\t\t\t\tif (fWriteBackQueue.size() == 0) {\n\t\t\t\t\tbreak;",
"signature": "complete\n\t\twhile (true)"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "IDBReader reader = null;\n\t\t\treader = new SVDBPersistenceRW();\n\tprivate void freeReader(IDBReader reader) {\n\tprivate IDBWriter allocWriter() {\n\t\tIDBWriter writer = null;\n\t\t\twriter = new SVDBPersistenceRW();\n\tprivate void freeWriter(IDBWriter writer) {\n\tprivate void writeBackPreProcFile(String path, SVDBFile file) {\n\t\t\n\t\tString target_dir = computePathDir(path);\n\t\tString file_path = target_dir + \"/preProcFile\";\n\t\n\t\tif (fNumWriteBackThreads > 0) {\n\t\t\tWriteBackInfo info = new WriteBackInfo(target_dir, file_path, file);\n\t\t\tsynchronized (fWriteBackQueue) {\n\t\t\t\t// First, go through and look for any duplicates\n\t\t\t\tfor (int i=0; i<fWriteBackQueue.size(); i++) {\n\t\t\t\t\tif (fWriteBackQueue.get(i).fType == WriteBackInfo.SVDB_FILE &&\n\t\t\t\t\t\t\tfWriteBackQueue.get(i).fTargetDir.equals(target_dir) &&\n\t\t\t\t\t\t\tfWriteBackQueue.get(i).fFilePath.equals(file_path)) {\n\t\t\t\t\t\tfWriteBackQueue.remove(i);\n\t\t\t\t\t\ti--;",
"signature": "IDBReader allocReader()"
},
{
"arguments": [
"String path",
" SVDBFile file"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "String target_dir = computePathDir(path);\n\t\tString file_path = target_dir + \"/file\";\n\t\t\n\t\tif (fNumWriteBackThreads > 0) {\n\t\t\tWriteBackInfo info = new WriteBackInfo(target_dir, file_path, file);\n\t\t\tsynchronized (fWriteBackQueue) {\n\t\t\t\tfWriteBackQueue.add(info);\n\t\t\t\tfWriteBackQueue.notify();",
"signature": "void writeBackFile(String path, SVDBFile file)"
},
{
"arguments": [
"String path",
" SVDBFileTree file_tree"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "String target_dir = computePathDir(path);\n\t\tString file_path = target_dir + \"/fileTreeMap\";\n\n\t\tif (fNumWriteBackThreads > 0) {\n\t\t\tWriteBackInfo info = new WriteBackInfo(target_dir, file_path, file_tree);\n\t\t\tsynchronized (fWriteBackQueue) {\n\t\t\t\t// First, go through and look for any duplicates\n\t\t\t\tfor (int i=0; i<fWriteBackQueue.size(); i++) {\n\t\t\t\t\tif (fWriteBackQueue.get(i).fType == WriteBackInfo.SVDB_FILE_TREE &&\n\t\t\t\t\t\t\tfWriteBackQueue.get(i).fTargetDir.equals(target_dir) &&\n\t\t\t\t\t\t\tfWriteBackQueue.get(i).fFilePath.equals(file_path)) {\n\t\t\t\t\t\tfWriteBackQueue.remove(i);\n\t\t\t\t\t\ti--;",
"signature": "void writeBackFileTree(String path, SVDBFileTree file_tree)"
},
{
"arguments": [
"String path",
" List<SVDBMarker> markers"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "String target_dir = computePathDir(path);\n\t\tString file_path = target_dir + \"/markers\";\n\n\t\tif (fNumWriteBackThreads > 0) {\n\t\t\tWriteBackInfo info = new WriteBackInfo(target_dir, file_path, markers);\n\t\t\tsynchronized (fWriteBackQueue) {\n\t\t\t\tfWriteBackQueue.add(info);\n\t\t\t\tfWriteBackQueue.notify();",
"signature": "void writeBackMarkerList(String path, List<SVDBMarker> markers)"
},
{
"arguments": [],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "while (true) {\n\t\t\tWriteBackInfo info = null;\n\t\t\t\n\t\t\tsynchronized (fWriteBackQueue) {\n\t\t\t\twhile (fWriteBackQueue.size() == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfWriteBackQueue.wait();",
"signature": "void writeBackWorker()"
},
{
"arguments": [
"String target_dir",
" String file_path",
" SVDBFile file"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "IDBWriter writer = allocWriter();\n\t\t\n\t\tfSVDBFS.mkdirs(target_dir);\n\t\ttry {\n\t\t\tRandomAccessFile out = fSVDBFS.openChannelWrite(file_path);\n\t\t\t\n\t\t\twriter.init(out);\n\t\t\twriter.writeObject(file.getClass(), file);\n\t\t\twriter.close();\n\t\t\tfSVDBFS.closeChannel(out);",
"signature": "void writeBackFileWorker(String target_dir, String file_path, SVDBFile file)"
},
{
"arguments": [
"String target_dir",
" String file_path",
" SVDBFileTree file_tree"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "fSVDBFS.mkdirs(target_dir);\n\t\t\n\t\tIDBWriter writer = allocWriter();\n\t\t\n\t\ttry {\n\t\t\tRandomAccessFile out = fSVDBFS.openChannelWrite(file_path);\n\t\t\twriter.init(out);\n\t\t\tsynchronized (file_tree) {\n\t\t\t\twriter.writeObject(file_tree.getClass(), file_tree);",
"signature": "void writeBackFileTreeWorker(String target_dir, String file_path, SVDBFileTree file_tree)"
},
{
"arguments": [
"String target_dir",
" String file_path",
" List<SVDBMarker> markers"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "fSVDBFS.mkdirs(target_dir);\n\n\t\tIDBWriter writer = allocWriter();\n\t\ttry {\n\t\t\tRandomAccessFile out = fSVDBFS.openChannelWrite(file_path);\n\t\t\twriter.init(out);\n\t\t\twriter.writeItemList(markers);\n\t\t\twriter.close();\n\t\t\tfSVDBFS.closeChannel(out);",
"signature": "void writeBackMarkerListWorker(String target_dir, String file_path, List<SVDBMarker> markers)"
},
{
"arguments": [
"String path"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/project/SVDBProjectData.java",
"implementation": "IWorkspace ws = ResourcesPlugin.getWorkspace();\n\t\tIWorkspaceRoot root = ws.getRoot();\n\t\tSVDBIndexCollectionMgr mgr = null;\n\t\tSVDBProjectManager p_mgr = SVCorePlugin.getDefault().getProjMgr(); \n\t\t\n\t\tIProject p = root.getProject(path);\n\t\tif (p != null) {\n\t\t\tSVDBProjectData p_data = p_mgr.getProjectData(p);\n\t\t\tif (p_data != null) {\n\t\t\t\tmgr = p_data.getProjectIndexMgr();",
"signature": "SVDBIndexCollectionMgr resolveProjectRef(String path)"
},
{
"arguments": [
"fProject != null"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/project/SVDBProjectData.java",
"implementation": "IProject refs[] = null;\n\t\t\ttry {\n\t\t\t\trefs = fProject.getReferencedProjects();",
"signature": "project\n\t\tif (fProject != null)"
},
{
"arguments": [
"String ref"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/project/SVProjectFileWrapper.java",
"implementation": "SVDBPath p = new SVDBPath(ref);\n\t\tfProjectReferences.add(p);\n\t\tfArgFilePaths.clear();\n\t\tfProjectReferences.clear();",
"signature": "void addProjectRef(String ref)"
},
{
"arguments": [
"\n\t\t\tISVDBIndexCache \t\t\t\tcache",
"\n\t\t\tMap<String",
" SVDBFileTree>\t\tworking_set"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/scanner/FileContextSearchMacroProvider.java",
"implementation": "fWorkingSet = working_set;\n\t\t\t\t\tSVDBFileTree ib; \n\t\t\t\t\tif (fWorkingSet.containsKey(ib_s)) {\n\t\t\t\t\t\tib = fWorkingSet.get(ib_s);",
"signature": "public FileContextSearchMacroProvider(\n\t\t\tISVDBIndexCache \t\t\t\tcache,\n\t\t\tMap<String, SVDBFileTree>\t\tworking_set)"
}
] | [
{
"arguments": [
"it instanceof ISVDBNamedItem"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/content_assist/AbstractCompletionProcessor.java",
"implementation": "if (matcher.match((ISVDBNamedItem)it, ctxt.fLeaf)) {\n\t\t\t\t\t\taddProposal(it, ctxt.fLeaf, ctxt.fStart, ctxt.fLeaf.length());",
"signature": "else if (it instanceof ISVDBNamedItem)"
},
{
"arguments": [
"SVDBFileTree file"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/AbstractSVDBIndex.java",
"implementation": "fCache);\n\t\t\t\tfLog.debug(\"Searching for \\\"\" + leaf + \"\\\" in global (ret=\"\n\t\t\t\t\t\t+ ret + \")\");\n\t\t\t\tfLog.debug(\"IncludeFileProvider not set\");\n\t\tfLog.debug(\"Processed pre-proc file\");\n\t\t\t\n\t\t\tif (ft_root == null) {",
"signature": "IPreProcMacroProvider createPreProcMacroProvider(SVDBFileTree file)"
},
{
"arguments": [
"ISVDBFS fs"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "fSVDBFS = fs;\n\t\tfFileList = new ArrayList<String>();\n\t\tfLastModifiedMap = new HashMap<String, Long>(fCacheSize);\n\t\tfPreProcFileMap = new WeakHashMap<String, SVDBFile>(fCacheSize);\n\t\tfFileTreeMap = new WeakHashMap<String, SVDBFileTree>(fCacheSize);\n\t\tfFileMap = new WeakHashMap<String, SVDBFile>(fCacheSize);\n\t\tfMarkerMap = new WeakHashMap<String, List<SVDBMarker>>(fCacheSize);\n\t\tfLog = LogFactory.getLogHandle(\"SVDBFileIndexCache\");\n\t\tfPersistenceRdrSet = new ArrayList<SVDBPersistenceReader>(); \n\t\tfPersistenceWriterSet = new ArrayList<SVDBPersistenceWriter>();\n\n\tpublic SVDBFileIndexCache(ISVDBFS fs, int cache_sz) {\n\t\tfFileList = new ArrayList<String>();\n\t\tfLastModifiedMap = new HashMap<String, Long>();\n\t\tfPreProcFileMap = new WeakHashMap<String, SVDBFile>(cache_sz);\n\t\tfFileTreeMap = new WeakHashMap<String, SVDBFileTree>(cache_sz);\n\t\tfFileMap = new WeakHashMap<String, SVDBFile>(cache_sz);\n\t\tfMarkerMap = new WeakHashMap<String, List<SVDBMarker>>(cache_sz);\n\t\tdebug(\"Create Cache: \" + fs.getRoot());\n\t\tfLog.debug(\"clear\");\n\t\tfFileList.clear();\n\t\tfLastModifiedMap.clear();\n\t\tfPreProcFileMap.clear();\n\t\tfFileTreeMap.clear();\n\t\tfFileMap.clear();\n\t\tfMarkerMap.clear();\n\t\tsynchronized (fFileList) {\n\t\t\tif (!fFileList.contains(path)) {\n\t\t\t\tfFileList.add(path);\n\t\tif (fMarkerMap.containsKey(path)) {\n\t\t\tfMarkerMap.remove(path);",
"signature": "public SVDBFileIndexCache(ISVDBFS fs)"
},
{
"arguments": [
"String path",
" List<SVDBMarker> marker_list"
],
"filename": "plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/index/cache/SVDBFileIndexCache.java",
"implementation": "SVDBPersistenceWriter writer = allocWriter();\n\t\ttry {\n\t\t\tRandomAccessFile out = fSVDBFS.openChannelWrite(path);\n\t\t\twriter.init(out);\n\t\t\twriter.writeItemList(marker_list);\n\t\t\twriter.close();\n\t\t\tfSVDBFS.closeChannel(out);",
"signature": "void writeMarkerList(String path, List<SVDBMarker> marker_list)"
}
] |
697248db7da07100b8ef8e8caaf77905144e5ba2 | [
{
"arguments": [
"String colorName"
],
"filename": "src/net/nodebox/graphics/Color.java",
"implementation": "// TODO: Implement",
"signature": "public Color(String colorName)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Expression.java",
"implementation": "Object value = evaluate();\n Object value = evaluate();\n Object value = evaluate();\n public Color asColor() {\n Object value = evaluate();\n if (value instanceof Color) {\n return (Color) value;",
"signature": "int asInt()"
},
{
"arguments": [
"Parameter.Type outputType"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "public Network(Parameter.Type outputType, String name) {\n super(outputType, name);",
"signature": "public Network(Parameter.Type outputType)"
},
{
"arguments": [
"ProcessingContext ctx"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "addError(\"No node to render\");\n return false;\n assert (contains(renderedNode));\n // TODO: place output of rendered node into network output.\n return true;",
"signature": "boolean process(ProcessingContext ctx)"
},
{
"arguments": [
"NetworkListener l"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "listenerList.add(NetworkListener.class, l);",
"signature": "void addNetworkListener(NetworkListener l)"
},
{
"arguments": [
"NetworkListener l"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "listenerList.remove(NetworkListener.class, l);",
"signature": "void removeNetworkListener(NetworkListener l)"
},
{
"arguments": [
"Node node"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "Object[] listeners = listenerList.getListenerList();\n NetworkEvent e = new NetworkEvent(this, node);\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == NetworkListener.class) {\n ((NetworkListener) listeners[i + 1]).nodeAdded(e);",
"signature": "void fireNodeAdded(Node node)"
},
{
"arguments": [
"Node node"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "Object[] listeners = listenerList.getListenerList();\n NetworkEvent e = new NetworkEvent(this, node);\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == NetworkListener.class) {\n ((NetworkListener) listeners[i + 1]).nodeRemoved(e);",
"signature": "void fireNodeRemoved(Node node)"
},
{
"arguments": [
"Parameter input",
" Parameter output"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "Object[] listeners = listenerList.getListenerList();\n NetworkEvent e = new NetworkEvent(this, input, output);\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == NetworkListener.class) {\n ((NetworkListener) listeners[i + 1]).connectionAdded(e);",
"signature": "void fireConnectionAdded(Parameter input, Parameter output)"
},
{
"arguments": [
"Parameter input",
" Parameter output"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "Object[] listeners = listenerList.getListenerList();\n NetworkEvent e = new NetworkEvent(this, input, output);\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == NetworkListener.class) {\n ((NetworkListener) listeners[i + 1]).connectionRemoved(e);",
"signature": "void fireConnectionRemoved(Parameter input, Parameter output)"
},
{
"arguments": [
"Node node",
" String oldName",
" String newName"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "Object[] listeners = listenerList.getListenerList();\n NetworkEvent e = new NetworkEvent(this, node, oldName, newName);\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == NetworkListener.class) {\n ((NetworkListener) listeners[i + 1]).nodeRenamed(e);",
"signature": "void fireNodeRenamed(Node node, String oldName, String newName)"
},
{
"arguments": [
"Node oldNode",
" Node newNode"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "Object[] listeners = listenerList.getListenerList();\n NetworkEvent e = new NetworkEvent(this, oldNode, newNode);\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == NetworkListener.class) {\n ((NetworkListener) listeners[i + 1]).renderedNodeChanged(e);",
"signature": "void fireRenderedNodeChanged(Node oldNode, Node newNode)"
},
{
"arguments": [
"ProcessingListener l"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "listenerList.add(ProcessingListener.class, l);",
"signature": "void addProcessingListener(ProcessingListener l)"
},
{
"arguments": [
"ProcessingListener l"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "listenerList.remove(ProcessingListener.class, l);",
"signature": "void removeProcessingListener(ProcessingListener l)"
},
{
"arguments": [
"Network network"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "Object[] listeners = listenerList.getListenerList();\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == ProcessingListener.class) {\n ((ProcessingListener) listeners[i + 1]).startProcessing(network);",
"signature": "void fireStartProcessing(Network network)"
},
{
"arguments": [
"Network network"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "Object[] listeners = listenerList.getListenerList();\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == ProcessingListener.class) {\n ((ProcessingListener) listeners[i + 1]).endProcessing(network);",
"signature": "void fireEndProcessing(Network network)"
},
{
"arguments": [
"DirtyListener l"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "listenerList.add(DirtyListener.class, l);",
"signature": "void addDirtyListener(DirtyListener l)"
},
{
"arguments": [
"DirtyListener l"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "listenerList.remove(DirtyListener.class, l);",
"signature": "void removeDirtyListener(DirtyListener l)"
},
{
"arguments": [
"Network network"
],
"filename": "src/net/nodebox/node/Network.java",
"implementation": "Object[] listeners = listenerList.getListenerList();\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == DirtyListener.class) {\n ((DirtyListener) listeners[i + 1]).networkDirty(network);",
"signature": "void fireNetworkDirty(Network network)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return level;",
"signature": "MessageLevel getLevel()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return message;",
"signature": "String getMessage()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return level == MessageLevel.DEBUG;",
"signature": "boolean isDebug()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return level == MessageLevel.INFO;",
"signature": "boolean isInfo()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return level == MessageLevel.WARNING;",
"signature": "boolean isWarning()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return level == MessageLevel.ERROR;",
"signature": "boolean isError()"
},
{
"arguments": [
"Network network",
" String nodeName"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "this.network = network;\n this.nodeName = nodeName;",
"signature": "public NotFound(Network network, String nodeName)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return network;",
"signature": "Network getNetwork()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return nodeName;",
"signature": "String getNodeName()"
},
{
"arguments": [
"Node node",
" String name"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "this(node, name, \"Invalid name \\\"\" + name + \"\\\" for node \\\"\" + node.getName() + \"\\\"\");",
"signature": "public InvalidName(Node node, String name)"
},
{
"arguments": [
"Node node",
" String name",
" String message"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "super(message);\n this.node = node;\n this.name = name;",
"signature": "public InvalidName(Node node, String name, String message)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return node;",
"signature": "Node getNode()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return name;",
"signature": "String getName()"
},
{
"arguments": [
"Parameter.Type outputType"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "this(outputType, null);",
"signature": "public Node(Parameter.Type outputType)"
},
{
"arguments": [
"Parameter.Type outputType",
" String name"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "outputParameter = new Parameter(this, \"output\", outputType);\n public void validateName(String name) {\n throw new InvalidName(this, name, \"Name does contain other characters than a-z0-9 or underscore, or is longer than 29 characters.\");\n throw new InvalidName(this, name, \"Names starting with double underscore are reserved for internal use.\");\n public void setName(String name) throws InvalidName {\n protected void _setName(String name) {\n this.name = name;\n setChanged();\n public Collection<Parameter> getParameters() {\n return parameters.values();\n return parameters.get(name);\n return parameters.containsKey(name);\n public Parameter addParameter(String name, Parameter.Type type) {\n parameters.put(name, p);\n public void renameParameter(Parameter parameter, String name) {\n String oldName = parameter.getName();\n if (oldName.equals(name)) return;\n if (hasParameter(oldName)) {\n parameters.remove(oldName);\n parameter._setName(name);\n parameters.put(name, parameter);\n setChanged();",
"signature": "public Node(Parameter.Type outputType, String name)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return outputParameter;\n protected void _setNetwork(Network network) {\n public void setNetwork(Network network) throws InvalidName {\n public Color asColor(String name) {\n return getParameter(name).asColor();\n public Object getValue(String name) {\n return getParameter(name).getValue();\n public void set(String name, String value) {\n getParameter(name).set(value);\n public void set(String name, Color value) {\n public void setValue(String name, Object value) {\n getParameter(name).setValue(value);\n //// Output value shortcuts ////\n\n public Object getOutputValue() {\n return outputParameter.getValue();\n protected void setOutputValue(Object value) throws ValueError {\n outputParameter.setValue(value);\n public boolean connectTo(Node inputNode, String parameterName) {\n Parameter p = inputNode.getParameter(parameterName);\n Connection c = new Connection(this, inputNode, p);\n downstreams.add(c);\n inputNode.upstreams.put(p, c);\n return true;",
"signature": "Parameter getOutputParameter()"
},
{
"arguments": [
"String parameterName"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "Parameter p = getParameter(parameterName);\n return isInputConnected(p);",
"signature": "boolean isInputConnected(String parameterName)"
},
{
"arguments": [
"Parameter p"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return getInputConnection(p) != null;\n * @param parameterName the name of the parameter\n * @see #isInputConnected(String)\n public Connection getInputConnection(String parameterName) {\n return getInputConnection(getParameter(parameterName));",
"signature": "boolean isInputConnected(Parameter p)"
},
{
"arguments": [
"Parameter parameter"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return upstreams.get(parameter);\n return new ArrayList<Connection>(upstreams.values());\n * @param parameterName the name of the parameter you want to disconnect\n public boolean disconnectInput(String parameterName) {\n return disconnectInput(getParameter(parameterName));",
"signature": "Connection getInputConnection(Parameter parameter)"
},
{
"arguments": [
"Parameter parameter"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "Connection c = getInputConnection(parameter);\n upstreams.remove(parameter);\n for (Connection c : upstreams.values()) {\n removedSomething = disconnectInput(c.getInputParameter()) | removedSomething;\n removedSomething = c.getInputNode().disconnectInput(c.getInputParameter()) | removedSomething;\n // TODO: Implement finer-grained change notification\n //// Error handling ////\n\n public void addDebug(String msg) {\n messages.add(new Message(MessageLevel.DEBUG, msg));",
"signature": "boolean disconnectInput(Parameter parameter)"
},
{
"arguments": [
"String msg"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "messages.add(new Message(MessageLevel.DEBUG, msg));",
"signature": "void addInfo(String msg)"
},
{
"arguments": [
"String msg"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "messages.add(new Message(MessageLevel.DEBUG, msg));",
"signature": "void addWarning(String msg)"
},
{
"arguments": [
"String msg"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "messages.add(new Message(MessageLevel.DEBUG, msg));",
"signature": "void addError(String msg)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "for (Message msg : messages) {\n if (msg.isError())\n return true;",
"signature": "boolean hasError()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "for (Message msg : messages) {\n if (msg.isWarning())\n return true;",
"signature": "boolean hasWarning()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return update(new ProcessingContext());",
"signature": "boolean update()"
},
{
"arguments": [
"ProcessingContext ctx"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "if (!dirty) return true;\n for (Parameter p : parameters.values()) {\n p.update();",
"signature": "boolean update(ProcessingContext ctx)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "StringBuffer name = new StringBuffer(\"/\");\n Network parent = getNetwork();\n while (parent != null) {\n name.insert(1, parent.getName() + \"/\");\n parent = parent.getNetwork();",
"signature": "String getAbsolutePath()"
},
{
"arguments": [
"String key",
" String label"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "this.key = key;\n this.label = label;",
"signature": "public MenuEntry(String key, String label)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "return key;",
"signature": "String getKey()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "return label;",
"signature": "String getLabel()"
},
{
"arguments": [
"Node node",
" String name",
" Type type"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "setType(type); // this sets the core type, default values, and value.\n if (node.hasParameter(name) && node.getParameter(name) != this) return false;\n node.renameParameter(this, name);\n public void _setName(String name) {\n this.name = name;",
"signature": "public Parameter(Node node, String name, Type type)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "public void setType(Type type) {\n if (this.type == type) return;\n this.type = type;\n assert(TYPE_REGISTRY.containsKey(type));\n this.coreType = TYPE_REGISTRY.get(type);\n this.defaultValue = CORE_TYPE_DEFAULTS.get(this.coreType);\n // TODO: Change the value to something reasonable.\n this.value = this.defaultValue;\n node.setChanged();\n markDirty();",
"signature": "Type getType()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "public void setBoundingMethod(BoundingMethod boundingMethod) {\n this.boundingMethod = boundingMethod;\n if (boundingMethod == BoundingMethod.HARD) {\n node.setChanged();\n if (boundingMethod == BoundingMethod.HARD) {\n node.setChanged();\n if (boundingMethod == BoundingMethod.HARD) {\n node.setChanged();\n if (boundingMethod != BoundingMethod.HARD) {\n if (coreType == CoreType.INT) {\n int v = (Integer) value;\n if (v < minimum) {\n set((int) minimum);",
"signature": "CoreType getCoreType()"
},
{
"arguments": [
"v > maximum"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "set((int) maximum);",
"signature": "else if (v > maximum)"
},
{
"arguments": [
"coreType == CoreType.FLOAT"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "double v = (Double) value;\n if (v < minimum) {\n set(minimum);",
"signature": "else if (coreType == CoreType.FLOAT)"
},
{
"arguments": [
"v > maximum"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "set(maximum);\n\n public void setDisplayLevel(DisplayLevel displayLevel) {\n node.setChanged();\n\n public void addMenuItem(String key, String label) {\n menuItems.add(new MenuEntry(key, label));\n node.setChanged();\n\n node.setChanged();\n node.setChanged();\n public int asInt() {\n if (coreType == CoreType.INT) {\n return (Integer) value;",
"signature": "else if (v > maximum)"
},
{
"arguments": [
"coreType == CoreType.FLOAT"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "double v = (Double) value;\n if (coreType == CoreType.FLOAT) {\n return (Double) value;",
"signature": "else if (coreType == CoreType.FLOAT)"
},
{
"arguments": [
"coreType == CoreType.INT"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "int v = (Integer) value;\n if (coreType == CoreType.STRING) {\n return (String) value;\n return value.toString();\n public Color asColor() {\n if (coreType == CoreType.COLOR) {\n return (Color) value;",
"signature": "else if (coreType == CoreType.INT)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "return value;\n if (coreType != CoreType.INT) {\n if (asInt() == value) return;\n this.value = value;\n markDirty();\n if (coreType != CoreType.FLOAT) {\n if (asFloat() == value) return;\n this.value = value;\n markDirty();\n if (value == null) return;\n if (coreType != CoreType.STRING) {\n if (asString().equals(value)) return;\n this.value = value;\n markDirty();\n public void set(Color value) {\n if (value == null) return;\n if (coreType != CoreType.COLOR) {\n throw new ValueError(\"Tried setting color value on parameter with type \" + type);",
"signature": "Object getValue()"
},
{
"arguments": [
"coreType == CoreType.FLOAT"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (value instanceof Float) {\n set((Float)value);",
"signature": "else if (coreType == CoreType.FLOAT)"
},
{
"arguments": [
"value instanceof Double"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "set((Double)value);",
"signature": "else if (value instanceof Double)"
},
{
"arguments": [
"coreType == CoreType.STRING"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (value instanceof String) {\n set((String)value);",
"signature": "else if (coreType == CoreType.STRING)"
},
{
"arguments": [
"coreType == CoreType.COLOR"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (value instanceof Color) {\n set((Color)value);",
"signature": "else if (coreType == CoreType.COLOR)"
},
{
"arguments": [
"String value"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "switch (coreType) {\n case INT:\n return Integer.parseInt(value);\n case FLOAT:\n return Float.parseFloat(value);\n case STRING:\n return value;\n case COLOR:\n return new Color(value);\n default:\n return value;\n return hasExpression() ? expression.getExpression() : \"\";\n if (hasExpression() && expression.equals(getExpression())) {\n return;\n if (expression == null || expression.trim().length() == 0) {\n this.expression = null;\n setExpressionEnabled(false);",
"signature": "Object parseValue(String value)"
},
{
"arguments": [],
"filename": "test/net/nodebox/node/ConnectTest.java",
"implementation": "",
"signature": "void testValuePropagation()"
},
{
"arguments": [],
"filename": "test/net/nodebox/node/ConnectTest.java",
"implementation": "",
"signature": "void testDisconnect()"
},
{
"arguments": [
"Node inputNode",
" String inputParameter",
" Node outputNode",
" String message"
],
"filename": "test/net/nodebox/node/ConnectTest.java",
"implementation": "",
"signature": "void assertConnectionError(Node inputNode, String inputParameter, Node outputNode, String message)"
},
{
"arguments": [],
"filename": "test/net/nodebox/node/ParameterTest.java",
"implementation": "Node n = new TestNode();\r\n Parameter angle = n.addParameter(\"angle\", Parameter.Type.ANGLE);\r\n assertEquals(Parameter.CoreType.FLOAT, angle.getCoreType());",
"signature": "void testType()"
}
] | [
{
"arguments": [],
"filename": "src/net/nodebox/node/Expression.java",
"implementation": "return asInt(0);",
"signature": "int asInt()"
},
{
"arguments": [
"int channel"
],
"filename": "src/net/nodebox/node/Expression.java",
"implementation": "Object value = evaluateForChannel(channel);\n return asFloat(0);",
"signature": "int asInt(int channel)"
},
{
"arguments": [
"int channel"
],
"filename": "src/net/nodebox/node/Expression.java",
"implementation": "Object value = evaluateForChannel(channel);\n return asString(0);",
"signature": "double asFloat(int channel)"
},
{
"arguments": [
"int channel"
],
"filename": "src/net/nodebox/node/Expression.java",
"implementation": "Object value = evaluateForChannel(channel);\n public Object asData() {\n return asData(0);\n public Object asData(int channel) {\n return evaluateForChannel(channel);",
"signature": "String asString(int channel)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Expression.java",
"implementation": "return MVEL.executeExpression(compiledExpression);",
"signature": "Object evaluate()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "this(null);\n public Node(String name) {\n notifyObservers();\n notifyObservers();\n public static void validateName(String name) {\n throw new ValueError(\"Name does contain other characters than a-z0-9 or underscore, or is longer than 29 characters.\");\n throw new ValueError(\"Names starting with double underscore are reserved for internal use.\");\n public void setName(String name) {\n notifyObservers();\n //// Ports ////\n\n public int getMinimumInputs() {\n return minimumInputs;",
"signature": "public Node()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return maximumInputs;",
"signature": "int getMaximumInputs()"
},
{
"arguments": [
"int minimumInputs"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "this.minimumInputs = minimumInputs;\n // TODO: Check the amount of connections, and disconnect if necessary.",
"signature": "void setMinimumInputs(int minimumInputs)"
},
{
"arguments": [
"int maximumInputs"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "this.maximumInputs = maximumInputs;\n // TODO: Check the amount of connections, and disconnect if necessary.\n public List<Parameter> getParameters() {\n return parameters;\n return parameterMap.get(name);\n return parameterMap.containsKey(name);\n public Parameter addParameter(String name, String type) {\n parameterMap.put(name, p);\n parameters.add(p);\n public Parameter addParameter(String name, String type, ParameterGroup g) {\n Parameter p = new Parameter(this, name, type);\n parameterMap.put(name, p);\n g.addParameter(p);\n return p;\n public void _setNetwork(Network network) {\n public void setNetwork(Network network) {\n public int asInt(String name, int channel) {\n return getParameter(name).asInt(channel);",
"signature": "void setMaximumInputs(int maximumInputs)"
},
{
"arguments": [
"String name",
" int channel"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return getParameter(name).asFloat(channel);",
"signature": "double asFloat(String name, int channel)"
},
{
"arguments": [
"String name",
" int channel"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return getParameter(name).asString(channel);\n public Object asData(String name) {\n return getParameter(name).asData();",
"signature": "String asString(String name, int channel)"
},
{
"arguments": [
"String name",
" int channel"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "return getParameter(name).asData(channel);\n public void set(String name, int value, int channel) {\n getParameter(name).set(value, channel);",
"signature": "Object asData(String name, int channel)"
},
{
"arguments": [
"String name",
" double value",
" int channel"
],
"filename": "src/net/nodebox/node/Node.java",
"implementation": "getParameter(name).set(value, channel);\n public void set(String name, String value) {\n public void set(String name, String value, int channel) {\n getParameter(name).set(value, channel);\n public void set(String name, Object value) {\n getParameter(name).set(value);\n public void set(String name, Object value, int channel) {\n getParameter(name).set(value, channel);\n * @param port the port index\n public boolean isInputConnected(int port) {\n return getInputConnection(port) != null;\n * @param port the port index for this connection\n * @see #isInputConnected(int)\n public Connection getInputConnection(int port) {\n if (port < 0 | port > maximumInputs) return null;\n for (Connection c : upstreams) {\n if (c.getInputPort() == port)\n return c;",
"signature": "void set(String name, double value, int channel)"
},
{
"arguments": [
"Node node",
" String name",
" String type"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "this.type = type;\n\n if (type.equals(TYPE_ANGLE)) {\n coreType = CORE_TYPE_FLOAT;\n channelCount = 1;",
"signature": "public Parameter(Node node, String name, String type)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "return channelCount;",
"signature": "int getChannelCount()"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "int getCoreType() {\n public void setBoundingType(int boundingType) {\n this.boundingType = boundingType;\n if (boundingType == BOUNDING_HARD) {\n if (boundingType == BOUNDING_HARD) {\n if (boundingType == BOUNDING_HARD) {\n if (boundingType != BOUNDING_HARD) {\n if (coreType == CORE_TYPE_INT) {\n for (int i = 0; i < channelCount; i++) {\n int v = (Integer) channels[i];\n if (v < minimum) {\n set((int) minimum, i);",
"signature": "String getType()"
},
{
"arguments": [
"v > maximum"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "set((int) maximum, i);",
"signature": "else if (v > maximum)"
},
{
"arguments": [
"coreType == CORE_TYPE_FLOAT"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "for (int i = 0; i < channelCount; i++) {\n double v = (Double) channels[i];\n if (v < minimum) {\n set(minimum, i);",
"signature": "else if (coreType == CORE_TYPE_FLOAT)"
},
{
"arguments": [
"v > maximum"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "set(maximum, i);",
"signature": "else if (v > maximum)"
},
{
"arguments": [
"int displayLevel"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "// TODO: notify\n public void addMenuItem(int key, String label) {\n // TODO: implement\n public int asInt() {\n return asInt(0);",
"signature": "void setDisplayLevel(int displayLevel)"
},
{
"arguments": [
"int channel"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (coreType == CORE_TYPE_INT) {\n return (Integer) channels[channel];",
"signature": "int asInt(int channel)"
},
{
"arguments": [
"coreType == CORE_TYPE_FLOAT"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "double v = (Double) channels[channel];\n return asFloat(0);",
"signature": "else if (coreType == CORE_TYPE_FLOAT)"
},
{
"arguments": [
"int channel"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (coreType == CORE_TYPE_FLOAT) {\n return (Double) channels[channel];",
"signature": "double asFloat(int channel)"
},
{
"arguments": [
"coreType == CORE_TYPE_INT"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "int v = (Integer) channels[channel];\n return asString(0);",
"signature": "else if (coreType == CORE_TYPE_INT)"
},
{
"arguments": [
"int channel"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (coreType == CORE_TYPE_STRING) {\n return (String) channels[channel];\n return \"\";\n public Object asData() {\n return asData(0);\n public Object asData(int channel) {\n return channels[channel];\n set(value, 0);",
"signature": "String asString(int channel)"
},
{
"arguments": [
"int value",
" int channel"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (channel < 0 || channel > channelCount) {\n throw new ValueError(\"Invalid channel \" + channel);",
"signature": "void set(int value, int channel)"
},
{
"arguments": [
"double value",
" int channel"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (channel < 0 || channel >= channelCount) {\n throw new ValueError(\"Invalid channel \" + channel);",
"signature": "void set(double value, int channel)"
},
{
"arguments": [
"String value",
" int channel"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (channel < 0 || channel > channelCount) {\n throw new ValueError(\"Invalid channel \" + channel);",
"signature": "void set(String value, int channel)"
},
{
"arguments": [
"Object value"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "set(value, 0);\n public void set(Object value, int channel) {\n if (channel < 0 || channel > channelCount) {\n throw new ValueError(\"Invalid channel \" + channel);\n if (coreType != CORE_TYPE_DATA) {\n throw new ValueError(\"Tried setting object value on parameter with type \" + type);\n // TODO: lazy setting\n preSet();\n channels[channel] = value;\n postSet();\n return hasExpression() ? expression.getExpression() : null;\n if (coreType == CORE_TYPE_DATA) {\n throw new ValueError(\"Cannot set expression on data type\");\n if (hasExpression()) {\n if (expression.equals(getExpression())) {\n return;",
"signature": "void set(Object value)"
},
{
"arguments": [],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "if (expressionEnabled) {",
"signature": "void evaluate()"
},
{
"arguments": [
"coreType == CORE_TYPE_FLOAT"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "channels[i] = new Double(0);",
"signature": "else if (coreType == CORE_TYPE_FLOAT)"
},
{
"arguments": [
"coreType == CORE_TYPE_STRING"
],
"filename": "src/net/nodebox/node/Parameter.java",
"implementation": "channels[i] = new String();",
"signature": "else if (coreType == CORE_TYPE_STRING)"
},
{
"arguments": [],
"filename": "test/net/nodebox/node/ConnectTest.java",
"implementation": "",
"signature": "void testValuePropagation()"
},
{
"arguments": [],
"filename": "test/net/nodebox/node/ConnectTest.java",
"implementation": "",
"signature": "void testDisconnect()"
},
{
"arguments": [
"Node inputNode",
" String inputParameter",
" Node outputNode",
" String message"
],
"filename": "test/net/nodebox/node/ConnectTest.java",
"implementation": "",
"signature": "void assertConnectionError(Node inputNode, String inputParameter, Node outputNode, String message)"
},
{
"arguments": [],
"filename": "test/net/nodebox/node/ParameterTest.java",
"implementation": "Node n = new Node(Parameter.TYPE_INT);\r\n Parameter color = n.addParameter(\"color\", Parameter.TYPE_COLOR);\r\n assertEquals(4, color.channelCount());\r\n checkValidSet(color, 0.2, 0);\r\n checkValidSet(color, 0.4, 1);\r\n checkValidSet(color, 0.7, 2);\r\n checkValidSet(color, 1.0, 3);\r\n\r\n checkInvalidSet(color, 0.5, 4);\r\n checkInvalidSet(color, 0.5, -1);",
"signature": "void testChannels()"
},
{
"arguments": [
"Parameter p",
" double value",
" int channel"
],
"filename": "test/net/nodebox/node/ParameterTest.java",
"implementation": "p.set(value, channel);\r\n fail(\"Value \" + value + \" on channel \" + channel + \" should have been accepted.\");\r\n checkInvalidSet(p, value, 0);",
"signature": "void checkValidSet(Parameter p, double value, int channel)"
}
] |
69c68081622b9683f3e1f42d2dd3f5fcb60aab80 | [
{
"arguments": [],
"filename": "nuget-common/src/jetbrains/buildServer/nuget/common/FeedConstants.java",
"implementation": "public boolean accept(File pathname) {\r\n return pathname.isFile() && EXE_FILE_NAME_FILTER.accept(pathname.getName());",
"signature": "new FileFilter()"
},
{
"arguments": [],
"filename": "nuget-common/src/jetbrains/buildServer/nuget/common/FeedConstants.java",
"implementation": "public boolean accept(File pathname) {\r\n return pathname.isFile() && PACKAGE_FILE_NAME_FILTER.accept(pathname.getName()) || EXE_FILE_NAME_FILTER.accept(pathname.getName());",
"signature": "new FileFilter()"
},
{
"arguments": [
"@NotNull String data"
],
"filename": "nuget-common/src/jetbrains/buildServer/nuget/common/FeedConstants.java",
"implementation": "return data.toLowerCase().endsWith(FeedConstants.EXE_EXTENSION.toLowerCase());",
"signature": "boolean accept(@NotNull String data)"
},
{
"arguments": [
"String name"
],
"filename": "nuget-tests/src/jetbrains/buildServer/nuget/tests/server/tools/ToolsRegistryTest.java",
"implementation": "file(myPackagesHome, name + \".nupkg\");\r\n file(myAgentHome, name + \".nupkg.zip\");\r\n file(myToolsHome, name + \".nupkg/tools/nuget.exe\");\r\n return new InstalledTool() {\r\n @NotNull\r\n public File getAgentPluginFile() {\r\n return myAgentHome;",
"signature": "InstalledTool tool(String name)"
},
{
"arguments": [],
"filename": "nuget-tests/src/jetbrains/buildServer/nuget/tests/server/tools/ToolsRegistryTest.java",
"implementation": "",
"signature": "void install()"
},
{
"arguments": [],
"filename": "nuget-tests/src/jetbrains/buildServer/nuget/tests/server/tools/ToolsRegistryTest.java",
"implementation": "",
"signature": "void delete()"
},
{
"arguments": [],
"filename": "nuget-tests/src/jetbrains/buildServer/nuget/tests/server/tools/ToolsRegistryTest.java",
"implementation": "return null;",
"signature": "File getNuGetExePath()"
},
{
"arguments": [],
"filename": "nuget-tests/src/jetbrains/buildServer/nuget/tests/server/tools/ToolsRegistryTest.java",
"implementation": "return false;",
"signature": "boolean isDefaultTool()"
},
{
"arguments": [],
"filename": "nuget-tests/src/jetbrains/buildServer/nuget/tests/server/tools/ToolsRegistryTest.java",
"implementation": "return null;",
"signature": "String getId()"
},
{
"arguments": [],
"filename": "nuget-tests/src/jetbrains/buildServer/nuget/tests/server/tools/ToolsRegistryTest.java",
"implementation": "return null;",
"signature": "String getVersion()"
}
] | [
{
"arguments": [],
"filename": "nuget-server/src/jetbrains/buildServer/nuget/server/toolRegistry/impl/PluginNaming.java",
"implementation": "return FeedConstants.NUGET_COMMANDLINE;",
"signature": "String getNuGetCommandLinePackageName()"
},
{
"arguments": [
"@NotNull final File plugin"
],
"filename": "nuget-server/src/jetbrains/buildServer/nuget/server/toolRegistry/impl/PluginNaming.java",
"implementation": "String name = plugin.getName();\r\n\r\n if (name.toLowerCase().endsWith(FeedConstants.NUGET_EXTENSION.toLowerCase())) {\r\n name = name.substring(0, name.length() - FeedConstants.NUGET_EXTENSION.length());\r\n\r\n if (name.toLowerCase().startsWith(getNuGetCommandLinePackageName().toLowerCase() + \".\")) {\r\n name = name.substring(getNuGetCommandLinePackageName().length()+1);",
"signature": "String getVersion(@NotNull final File plugin)"
},
{
"arguments": [
"@NotNull final InstalledTool nupkg"
],
"filename": "nuget-server/src/jetbrains/buildServer/nuget/server/toolRegistry/impl/impl/ToolsWatcherImpl.java",
"implementation": "myExecutors.getNormalExecutorService().submit(ExceptionUtil.catchAll(\"update installed package\", new Runnable() {\n installPackage(nupkg);\n new InstalledToolImpl(myNaming, file).delete();\n installPackage(new InstalledToolImpl(myNaming, file));",
"signature": "void updatePackage(@NotNull final InstalledTool nupkg)"
},
{
"arguments": [
"@NotNull final InstalledTool file"
],
"filename": "nuget-server/src/jetbrains/buildServer/nuget/server/toolRegistry/impl/impl/ToolsWatcherImpl.java",
"implementation": "try {\n file.removeUnpackedFiles();\n\n FileUtil.createParentDirs(file.getAgentPluginFile());\n FileUtil.createDir(file.getUnpackFolder());\n myUnpacker.extractPackage(file.getPackageFile(), file.getUnpackFolder());\n myPacker.packTool(file.getAgentPluginFile(), file.getUnpackFolder());",
"signature": "void installPackage(@NotNull final InstalledTool file)"
},
{
"arguments": [
"String name"
],
"filename": "nuget-tests/src/jetbrains/buildServer/nuget/tests/server/tools/ToolsRegistryTest.java",
"implementation": "File pkg = file(myPackagesHome, name + \".nupkg\");\r\n file(myAgentHome, name + \".nupkg.zip\");\r\n file(myToolsHome, name + \".nupkg/tools/nuget.exe\");\r\n return new InstalledToolImpl(myNaming, pkg);",
"signature": "InstalledTool nupkg(String name)"
}
] |
6bd46e2fb28192ee2d52e95873239b5421b1a60c | [
{
"arguments": [
"File confDirectory"
],
"filename": "src/java/com/splunk/shuttl/server/mbeans/JMXSplunk.java",
"implementation": "super(confDirectory);\n\tprivate JMXSplunk(String confFilePath) {\n\t\tsuper(confFilePath);\n\t@Override\n\tprotected String getDefaultConfFileName() {\n\t\treturn \"splunk.xml\";\n\n\tpublic static JMXSplunk createWithConfDirectory(File confDirectory) {\n\t\treturn new JMXSplunk(confDirectory);",
"signature": "private JMXSplunk(File confDirectory)"
},
{
"arguments": [
"File confFile"
],
"filename": "src/java/com/splunk/shuttl/server/mbeans/JMXSplunk.java",
"implementation": "return new JMXSplunk(confFile.getAbsolutePath());",
"signature": "JMXSplunk createWithConfFile(File confFile)"
},
{
"arguments": [],
"filename": "src/java/com/splunk/shuttl/server/mbeans/MBeanBase.java",
"implementation": "this(getDefaultConfDirectory());",
"signature": "public MBeanBase()"
},
{
"arguments": [
"File confDirectory"
],
"filename": "src/java/com/splunk/shuttl/server/mbeans/MBeanBase.java",
"implementation": "this.confFile = new File(confDirectory, getDefaultConfFileName());\n\t\trefresh();",
"signature": "public MBeanBase(File confDirectory)"
},
{
"arguments": [
"String confFilePath"
],
"filename": "src/java/com/splunk/shuttl/server/mbeans/MBeanBase.java",
"implementation": "this.confFile = new File(confFilePath);\n\t\trefresh();",
"signature": "public MBeanBase(String confFilePath)"
},
{
"arguments": [
"File confDirectory"
],
"filename": "src/java/com/splunk/shuttl/server/mbeans/ShuttlArchiver.java",
"implementation": "super(confDirectory);\n\t/**\n\t * Used for testing and needs to be a String instead of a File, because the\n\t * File constructor is already taken.\n\t */\n\tprivate ShuttlArchiver(String confFilePath) {\n\t\tsuper(confFilePath);\n\t@Override\n\tprotected String getDefaultConfFileName() {\n\t\treturn \"archiver.xml\";\n\tpublic static ShuttlArchiver createWithConfDirectory(File confDirectory) {\n\t\treturn new ShuttlArchiver(confDirectory);",
"signature": "private ShuttlArchiver(File confDirectory)"
},
{
"arguments": [
"File confFile"
],
"filename": "src/java/com/splunk/shuttl/server/mbeans/ShuttlArchiver.java",
"implementation": "return new ShuttlArchiver(confFile.getAbsolutePath());",
"signature": "ShuttlArchiver createWithConfFile(File confFile)"
},
{
"arguments": [],
"filename": "src/java/com/splunk/shuttl/server/mbeans/ShuttlServer.java",
"implementation": "super();\n\tpublic ShuttlServer(File confDirectory) {\n\t\tsuper(confDirectory);",
"signature": "public ShuttlServer()"
},
{
"arguments": [
"\n\t\t\tString shuttlConfDirPath"
],
"filename": "test/java/com/splunk/shuttl/FileSystemCleaner.java",
"implementation": "cleanConfiguredLocalFileSystemPaths(new File(shuttlConfDirPath));\n\tpublic void cleanConfiguredLocalFileSystemPaths(File confsDir) {\n\t\tif (confsDir.exists()) {\n\t\t\tTUtilsMBean.runWithRegisteredMBeans(confsDir, new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tFileUtils.deleteQuietly(LocalFileSystemPaths.create()\n\t\t\t\t\t\t\t.getArchiverDirectory());",
"signature": "void cleanFileSystemFromCreatedFilesDuringTests(\n\t\t\tString shuttlConfDirPath)"
},
{
"arguments": [
"String shuttlConfsDirPath"
],
"filename": "test/java/com/splunk/shuttl/archiver/LocalFileSystemPathsWithRealConfTest.java",
"implementation": "File confsDir = new File(shuttlConfsDirPath);\n\t\tTUtilsMBean.runWithRegisteredMBeans(confsDir, new Runnable() {\n\t@Test(groups = { \"end-to-end\"",
"signature": "void setUp(String shuttlConfsDirPath)"
}
] | [
{
"arguments": [],
"filename": "src/java/com/splunk/shuttl/server/mbeans/JMXSplunk.java",
"implementation": "return \"splunk.xml\";\n\t/**\n\t * @param confFile\n\t */\n\tpublic JMXSplunk(File confFile) {\n\t\tthis.confFile = confFile.getAbsolutePath();\n\t\tcallRefreshWithErrorHandling();\n\tprivate void callRefreshWithErrorHandling() {\n\t\ttry {\n\t\t\trefresh();",
"signature": "String getConfFileName()"
},
{
"arguments": [],
"filename": "src/java/com/splunk/shuttl/server/mbeans/JMXSplunk.java",
"implementation": "return confFile;",
"signature": "String getPathToXmlFile()"
},
{
"arguments": [],
"filename": "src/java/com/splunk/shuttl/server/mbeans/MBeanBase.java",
"implementation": "return System.getenv(\"SPLUNK_HOME\") + File.separator + CONFIGURATION_PATH\n\t\t\t\t+ getConfFileName();\n\tpublic void save() throws ShuttlMBeanException {\n\t\t\tJAXBUtils.save(getConfClass(), getConfObject(), getPathToXmlFile());\n\tpublic void refresh() throws ShuttlMBeanException {\n\t\t\tT conf = (T) JAXBUtils.refresh(getConfClass(), getPathToXmlFile());\n\tprotected abstract String getConfFileName();\n\n\t/**\n\t * Implement this method by looking at {@link ShuttlArchiver",
"signature": "String getPathToDefaultConfFile()"
},
{
"arguments": [],
"filename": "src/java/com/splunk/shuttl/server/mbeans/ShuttlArchiver.java",
"implementation": "return \"archiver.xml\";\n\t// used by tests\n\tpublic ShuttlArchiver(String confFilePath) throws ShuttlMBeanException {\n\t\tthis.xmlFilePath = confFilePath;\n\t\trefreshWithConf();\n\tprivate void refreshWithConf() {\n\t\ttry {\n\t\t\trefresh();",
"signature": "String getConfFileName()"
},
{
"arguments": [],
"filename": "src/java/com/splunk/shuttl/server/mbeans/ShuttlArchiver.java",
"implementation": "return this.xmlFilePath;",
"signature": "String getPathToXmlFile()"
},
{
"arguments": [],
"filename": "src/java/com/splunk/shuttl/server/mbeans/ShuttlServer.java",
"implementation": "return \"server.xml\";\n\t// this signature used by tests\n\tpublic ShuttlServer(String confFilePath) throws ShuttlMBeanException {\n\t\ttry {\n\t\t\tthis.xmlFilePath = confFilePath;\n\t\t\trefresh();",
"signature": "String getConfFileName()"
},
{
"arguments": [],
"filename": "src/java/com/splunk/shuttl/server/mbeans/ShuttlServer.java",
"implementation": "return xmlFilePath;",
"signature": "String getPathToXmlFile()"
},
{
"arguments": [],
"filename": "test/java/com/splunk/shuttl/FileSystemCleaner.java",
"implementation": "cleanConfiguredLocalFileSystemPaths();\n\tpublic void cleanConfiguredLocalFileSystemPaths() {\n\t\tTUtilsMBean.runWithRegisteredMBeans(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tFileUtils.deleteQuietly(LocalFileSystemPaths.create()\n\t\t\t\t\t\t.getArchiverDirectory());",
"signature": "void cleanFileSystemFromCreatedFilesDuringTests()"
},
{
"arguments": [],
"filename": "test/java/com/splunk/shuttl/archiver/LocalFileSystemPathsWithRealConfTest.java",
"implementation": "TUtilsMBean.runWithRegisteredMBeans(new Runnable() {\n\t@Test(groups = { \"slow-unit\"",
"signature": "void setUp()"
}
] |
8b63b065e0ec7465a976083466565744f750375e | [
{
"arguments": [
"File path"
],
"filename": "ztools-core/src/main/java/org/gitools/model/Workspace.java",
"implementation": "this.path = path;",
"signature": "public Workspace(File path)"
},
{
"arguments": [],
"filename": "ztools-core/src/main/java/org/gitools/model/Workspace.java",
"implementation": "return path;",
"signature": "File getPath()"
},
{
"arguments": [
"File file"
],
"filename": "ztools-core/src/main/java/org/gitools/persistence/PersistenceManager.java",
"implementation": "this.file = file;",
"signature": "public FileKey(File file)"
},
{
"arguments": [],
"filename": "ztools-core/src/main/java/org/gitools/persistence/PersistenceManager.java",
"implementation": "return (int) (37 * file.hashCode() + file.lastModified());",
"signature": "int hashCode()"
},
{
"arguments": [
"Object obj"
],
"filename": "ztools-core/src/main/java/org/gitools/persistence/PersistenceManager.java",
"implementation": "if (obj == null)\n\t\t\t\treturn false;\n\t\t\telse if (!(obj instanceof FileKey))\n\t\t\t\treturn false;\n\t\t\tFileKey f = (FileKey) obj;\n\t\t\treturn file.hashCode() == f.file.hashCode()\n\t\t\t\t&& file.lastModified() == f.file.lastModified();",
"signature": "boolean equals(Object obj)"
},
{
"arguments": [],
"filename": "ztools-core/src/main/java/org/gitools/persistence/PersistenceManager.java",
"implementation": "if (defaultManager == null)\n\t\t\tdefaultManager = new PersistenceManager();\n\t\treturn defaultManager;",
"signature": "PersistenceManager getDefault()"
},
{
"arguments": [],
"filename": "ztools-core/src/main/java/org/gitools/persistence/PersistenceManager.java",
"implementation": "persistenceMap.put(MimeTypes.PROJECT, ProjectXmlPersistence.class);\n\t\tpersistenceMap.put(MimeTypes.ENRICHMENT_ANALYSIS, EnrichmentAnalysisXmlPersistence.class);\n\t\tpersistenceMap.put(MimeTypes.CONTENT, ContainerXmlPersistence.class);\n\t\tpersistenceMap.put(MimeTypes.MATRIX_FIGURE, MatrixFigureXmlPersistence.class);\n\t\tpersistenceMap.put(MimeTypes.TABLE_FIGURE, TableFigureXmlPersistence.class);\n\t\tpersistenceMap.put(MimeTypes.OBJECT_MATRIX, ObjectMatrixTextPersistence.class);\n\t\tpersistenceMap.put(MimeTypes.DOUBLE_MATRIX, DoubleMatrixTextPersistence.class);\n\t\tpersistenceMap.put(MimeTypes.ANNOTATION_MATRIX, AnnotationMatrixTextPersistence.class);\n\t\tpersistenceMap.put(MimeTypes.MODULE_MAP, ModuleMapTextIndicesPersistence.class);",
"signature": "public PersistenceManager()"
}
] | [
{
"arguments": [],
"filename": "ztools-core/src/main/java/org/gitools/model/Artifact.java",
"implementation": "return resource;",
"signature": "FileObject getResource()"
},
{
"arguments": [
"FileObject resource"
],
"filename": "ztools-core/src/main/java/org/gitools/model/Artifact.java",
"implementation": "this.resource = resource;",
"signature": "void setResource(FileObject resource)"
},
{
"arguments": [],
"filename": "ztools-core/src/main/java/org/gitools/model/Workspace.java",
"implementation": "FileObject resource;\n\t\ttry {\n\t\t\tresource = getResource().resolveFile(name);\n\t\t\tresource.createFolder();\n\t\t\tresource = resource.resolveFile(ResourceNameSuffixes.PROJECT);",
"signature": "public Workspace()"
}
] |
a236ab1292ee369c464ffdaa61f5059954c6fa71 | [
{
"arguments": [
"final EntityTree entityTree",
" final List<Entity> operationComponents"
],
"filename": "mes-plugins/mes-plugins-products/src/main/java/com/qcadoo/mes/products/print/ReportDataService.java",
"implementation": "addOperationsFromSubtechnologiesToList(\n public final Map<Entity, BigDecimal> prepareTechnologySeries(final Entity entity) {\n public final void countQuantityForProductsIn(final Map<Entity, BigDecimal> products, final Entity technology,\n public final void addSeries(final Document document, final Entity entity, final Locale locale, final String type)\n throws DocumentException {\n DecimalFormat decimalFormat = (DecimalFormat) DecimalFormat.getInstance(locale);\n decimalFormat.setMaximumFractionDigits(3);\n decimalFormat.setMinimumFractionDigits(3);\n boolean firstPage = true;\n for (Entry<Entity, Map<Pair<Entity, Entity>, Pair<Map<Entity, BigDecimal>, Map<Entity, BigDecimal>>>> entry : prepareOperationSeries(\n entity, type).entrySet()) {\n if (!firstPage) {\n document.newPage();",
"signature": "void addOperationsFromSubtechnologiesToList(final EntityTree entityTree, final List<Entity> operationComponents)"
},
{
"arguments": [
"\n final Map<Entity",
" Map<Pair<Entity",
" Entity>",
" Pair<Map<Entity",
" BigDecimal>",
" Map<Entity",
" BigDecimal>>>> operations",
"\n final Map<Entity",
" Map<Pair<Entity",
" Entity>",
" Pair<Map<Entity",
" BigDecimal>",
" Map<Entity",
" BigDecimal>>>> orderOperations"
],
"filename": "mes-plugins/mes-plugins-products/src/main/java/com/qcadoo/mes/products/print/ReportDataService.java",
"implementation": "if (operations.size() == 0) {\n operations.putAll(orderOperations);",
"signature": "void concatenateOperationsList(\n final Map<Entity, Map<Pair<Entity, Entity>, Pair<Map<Entity, BigDecimal>, Map<Entity, BigDecimal>>>> operations,\n final Map<Entity, Map<Pair<Entity, Entity>, Pair<Map<Entity, BigDecimal>, Map<Entity, BigDecimal>>>> orderOperations)"
},
{
"arguments": [
"final BigDecimal totalQuantity",
"\n final Entry<Entity",
" Map<Pair<Entity",
" Entity>",
" Pair<Map<Entity",
" BigDecimal>",
" Map<Entity",
" BigDecimal>>>> entry",
"\n final Locale locale",
" final String type"
],
"filename": "mes-plugins/mes-plugins-products/src/main/java/com/qcadoo/mes/products/print/ReportDataService.java",
"implementation": "Paragraph title = new Paragraph();\n if (type.equals(\"machine\")) {\n Entity machine = entry.getKey();\n title.add(new Phrase(translationService.translate(\"products.workPlan.report.paragrah3\", locale), PdfUtil\n .getArialBold11Light()));\n String name = \"\";\n if (machine != null) {\n name = machine.getField(\"name\").toString();\n title.add(new Phrase(\" \" + name, PdfUtil.getArialBold19Dark()));",
"signature": "Paragraph prepareTitle(final BigDecimal totalQuantity,\n final Entry<Entity, Map<Pair<Entity, Entity>, Pair<Map<Entity, BigDecimal>, Map<Entity, BigDecimal>>>> entry,\n final Locale locale, final String type)"
},
{
"arguments": [
"final List<Entity> orders",
"\n final Entry<Entity",
" Map<Pair<Entity",
" Entity>",
" Pair<Map<Entity",
" BigDecimal>",
" Map<Entity",
" BigDecimal>>>> entry"
],
"filename": "mes-plugins/mes-plugins-products/src/main/java/com/qcadoo/mes/products/print/ReportDataService.java",
"implementation": "BigDecimal totalQuantity = new BigDecimal(\"0\");\n for (Pair<Entity, Entity> pair : entry.getValue().keySet()) {\n if (!orders.contains(pair.getValue())) {\n totalQuantity = totalQuantity.add((BigDecimal) pair.getValue().getField(\"plannedQuantity\"));\n orders.add(pair.getValue());\n return totalQuantity;\n private List<String> prepareOrderHeader(final Document document, final Entity entity, final Locale locale)\n throws DocumentException {\n String documenTitle = translationService.translate(\"products.workPlan.report.title\", locale);\n String documentAuthor = translationService.translate(\"products.materialRequirement.report.author\", locale);\n UsersUser user = securityService.getCurrentUser();\n PdfUtil.addDocumentHeader(document, entity.getField(\"name\").toString(), documenTitle, documentAuthor,\n (Date) entity.getField(\"date\"), user);\n document.add(generateBarcode(entity.getField(\"name\").toString()));\n document.add(new Paragraph(translationService.translate(\"products.workPlan.report.paragrah\", locale), PdfUtil\n .getArialBold11Dark()));\n List<String> orderHeader = new ArrayList<String>();\n orderHeader.add(translationService.translate(\"products.order.number.label\", locale));\n orderHeader.add(translationService.translate(\"products.order.name.label\", locale));\n orderHeader.add(translationService.translate(\"products.order.product.label\", locale));\n orderHeader.add(translationService.translate(\"products.order.plannedQuantity.label\", locale));\n orderHeader.add(translationService.translate(\"products.product.unit.label\", locale));\n orderHeader.add(translationService.translate(\"products.order.dateTo.label\", locale));\n return orderHeader;",
"signature": "BigDecimal createUniqueOrdersList(final List<Entity> orders,\n final Entry<Entity, Map<Pair<Entity, Entity>, Pair<Map<Entity, BigDecimal>, Map<Entity, BigDecimal>>>> entry)"
}
] | [
{
"arguments": [
"final EntityTree entityTree",
" final List<Entity> operationComponents"
],
"filename": "mes-plugins/mes-plugins-products/src/main/java/com/qcadoo/mes/products/print/ReportDataService.java",
"implementation": "addOperationsFromSubtechnologies(\n public final Map<Entity, BigDecimal> getTechnologySeries(final Entity entity) {\n public void countQuantityForProductsIn(final Map<Entity, BigDecimal> products, final Entity technology,\n\n quantity = ((BigDecimal) operationProductComponent.getField(\"quantity\")).multiply(plannedQuantity)\n .add(quantity);\n products.put(product,\n ((BigDecimal) operationProductComponent.getField(\"quantity\")).multiply(plannedQuantity));\n Entity productOutComponent = checkOutProducts(node);\n if (productOutComponent == null) {\n return false;",
"signature": "void addOperationsFromSubtechnologies(final EntityTree entityTree, final List<Entity> operationComponents)"
}
] |
ace6d95ab88d82689674a3978c51b9faac7573e7 | [
{
"arguments": [],
"filename": "engine/src/main/java/org/archive/crawler/framework/CrawlController.java",
"implementation": "return state == State.FINISHED;",
"signature": "boolean isFinished()"
},
{
"arguments": [],
"filename": "engine/src/main/java/org/archive/crawler/framework/CrawlJob.java",
"implementation": "// wait up to 3 seconds for stop\r\n for(int i = 0; i < 10; i++) {\r\n try {\r\n Thread.sleep(300);",
"signature": "boolean teardown()"
},
{
"arguments": [],
"filename": "engine/src/main/java/org/archive/crawler/util/BdbUriUniqFilter.java",
"implementation": "try {\n long cacheMiss = this.alreadySeen.getEnvironment().\n // FIXME: get shouldn't define intervals (should be idempotent)\n this.lastCacheMissDiff = cacheMiss - this.lastCacheMiss;\n this.lastCacheMiss = cacheMiss;\n return this.lastCacheMiss;",
"signature": "long getCacheMisses()"
}
] | [
{
"arguments": [],
"filename": "engine/src/main/java/org/archive/crawler/framework/CrawlJob.java",
"implementation": "",
"signature": "void reset()"
}
] |
ae5ec41d8935cfafcdb2528935124b381261bbb1 | [
{
"arguments": [
"Collection<TypeDeclaration> typeDeclarations"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateAnnotationProcessor.java",
"implementation": "EnunciateConfiguration config = this.enunciate.getConfig();\n AntPatternMatcher matcher = new AntPatternMatcher();\n matcher.setPathSeparator(\".\");\n if (!config.getApiExcludePatterns().isEmpty()) {\n Iterator<TypeDeclaration> typeDeclarationIt = typeDeclarations.iterator();\n while (typeDeclarationIt.hasNext()) {\n TypeDeclaration typeDeclaration = typeDeclarationIt.next();\n boolean exclude = false;\n if (config.getApiExcludePatterns().contains(typeDeclaration.getQualifiedName())) {\n exclude = true;\n debug(\"%s was explicitly excluded.\", typeDeclaration.getQualifiedName());",
"signature": "void removeExcludedClasses(Collection<TypeDeclaration> typeDeclarations)"
},
{
"arguments": [
"Collection<TypeDeclaration> typeDeclarations"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateAnnotationProcessor.java",
"implementation": "EnunciateConfiguration config = this.enunciate.getConfig();\n AntPatternMatcher matcher = new AntPatternMatcher();\n matcher.setPathSeparator(\".\");\n if (!config.getApiIncludePatterns().isEmpty()) {\n Iterator<TypeDeclaration> typeDeclarationIt = typeDeclarations.iterator();\n while (typeDeclarationIt.hasNext()) {\n TypeDeclaration typeDeclaration = typeDeclarationIt.next();\n boolean include = false;\n if (config.getApiIncludePatterns().contains(typeDeclaration.getQualifiedName())) {\n include = true;\n debug(\"%s was explicitly included.\", typeDeclaration.getQualifiedName());",
"signature": "void trimNotIncludedClasses(Collection<TypeDeclaration> typeDeclarations)"
},
{
"arguments": [],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "return this.enunciateConfig == null || this.enunciateConfig.isIncludeReferencedClasses();\n int position = Collections.binarySearch(this.typeDefinitions, typeDef, CLASS_COMPARATOR);\n if (position < 0 && !isKnownType(typeDef)) {\n this.typeDefinitions.add(-position - 1, typeDef);\n add(typeDef.getSchema());\n String namespace = typeDef.getNamespace();\n String prefix = addNamespace(namespace);\n SchemaInfo schemaInfo = namespacesToSchemas.get(namespace);\n if (schemaInfo == null) {\n schemaInfo = new SchemaInfo();\n schemaInfo.setId(prefix);\n schemaInfo.setNamespace(namespace);\n namespacesToSchemas.put(namespace, schemaInfo);",
"signature": "boolean includeReferencedClasses()"
},
{
"arguments": [
"TypeDefinition typeDef"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "return knownTypes.containsKey(typeDef.getQualifiedName())\n || JAXBElement.class.getName().equals(typeDef.getQualifiedName())\n || ((DecoratedTypeMirror)typeDef.getSuperclass()).isInstanceOf(JAXBElement.class.getName());",
"signature": "boolean isKnownType(TypeDefinition typeDef)"
},
{
"arguments": [
"Attribute attribute"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "addSeeAlsoTypeDefinitions(attribute);\n addReferencedTypeDefinitions(attribute.isAdapted() ? attribute.getAdapterType() : attribute.getAccessorType());",
"signature": "void addReferencedTypeDefinitions(Attribute attribute)"
},
{
"arguments": [
"Value value"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "addSeeAlsoTypeDefinitions(value);\n addReferencedTypeDefinitions(value.isAdapted() ? value.getAdapterType() : value.getAccessorType());",
"signature": "void addReferencedTypeDefinitions(Value value)"
},
{
"arguments": [
"Element element"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "addSeeAlsoTypeDefinitions(element);\n for (Element chioce : element.getChoices()) {\n addReferencedTypeDefinitions(chioce.isAdapted() ? chioce.getAdapterType() : chioce.getAccessorType());\n\n\n if (includeReferencedClasses()) {\n addSeeAlsoTypeDefinitions(endpoint);\n addReferencedTypeDefinitions(restMethod);",
"signature": "void addReferencedTypeDefinitions(Element element)"
},
{
"arguments": [
"RESTMethod restMethod"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "addSeeAlsoTypeDefinitions(restMethod);\n RESTParameter nounValue = restMethod.getNounValue();\n if (nounValue != null) {\n TypeMirror nounValueType = nounValue.getType();\n if (nounValueType instanceof ClassType) {\n ClassDeclaration classDeclaration = ((ClassType) nounValueType).getDeclaration();\n if (classDeclaration.getAnnotation(XmlRootElement.class) != null) {\n //only add referenced type definitions for root elements.\n add(new RootElementDeclaration(classDeclaration, createTypeDefinition(classDeclaration)));",
"signature": "void addReferencedTypeDefinitions(RESTMethod restMethod)"
},
{
"arguments": [
"ResourceMethod resourceMethod"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "addSeeAlsoTypeDefinitions(resourceMethod);\n ParameterDeclaration ep = resourceMethod.getEntityParameter();\n if (ep != null) {\n TypeMirror type = ep.getType();\n if (type instanceof ClassType) {\n ClassDeclaration classDeclaration = ((ClassType) type).getDeclaration();\n if (classDeclaration.getAnnotation(XmlRootElement.class) != null) {\n //only add referenced type definitions for root elements.\n add(new RootElementDeclaration(classDeclaration, createTypeDefinition(classDeclaration)));",
"signature": "void addReferencedTypeDefinitions(ResourceMethod resourceMethod)"
},
{
"arguments": [
"RootElementDeclaration rootEl"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "TypeDefinition typeDefinition = rootEl.getTypeDefinition();\n if (typeDefinition != null) {\n add(typeDefinition);",
"signature": "void addReferencedTypeDefinitions(RootElementDeclaration rootEl)"
},
{
"arguments": [
"EndpointInterface ei"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "addSeeAlsoTypeDefinitions(ei);\n for (WebMethod webMethod : ei.getWebMethods()) {\n addReferencedTypeDefinitions(webMethod);",
"signature": "void addReferencedTypeDefinitions(EndpointInterface ei)"
},
{
"arguments": [
"WebMethod webMethod"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "addSeeAlsoTypeDefinitions(webMethod);\n WebResult result = webMethod.getWebResult();\n addReferencedTypeDefinitions(result.isAdapted() ? result.getAdapterType() : result.getType());\n for (WebParam webParam : webMethod.getWebParameters()) {\n addReferencedTypeDefinitions(webParam.isAdapted() ? webParam.getAdapterType() : webParam.getType());",
"signature": "void addReferencedTypeDefinitions(WebMethod webMethod)"
},
{
"arguments": [
"WebFault webFault"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "if (webFault.isImplicitSchemaElement()) {\n for (ImplicitChildElement childElement : webFault.getChildElements()) {\n WebFault.FaultBeanChildElement fbce = (WebFault.FaultBeanChildElement) childElement;\n addReferencedTypeDefinitions(fbce.isAdapted() ? fbce.getAdapterType() : fbce.getType());",
"signature": "void addReferencedTypeDefinitions(WebFault webFault)"
},
{
"arguments": [
"TypeMirror type"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "type.accept(new ReferencedTypeDefinitionVisitor());",
"signature": "void addReferencedTypeDefinitions(TypeMirror type)"
},
{
"arguments": [
"Declaration declaration"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "XmlSeeAlso seeAlso = declaration.getAnnotation(XmlSeeAlso.class);\n if (seeAlso != null) {\n try {\n Class[] classes = seeAlso.value();\n AnnotationProcessorEnvironment ape = Context.getCurrentEnvironment();\n for (Class clazz : classes) {\n ClassType type = (ClassType) ape.getTypeUtils().getDeclaredType(ape.getTypeDeclaration(clazz.getName()));\n ClassDeclaration typeDeclaration = type.getDeclaration();\n if (typeDeclaration != null) {\n add(createTypeDefinition(typeDeclaration));",
"signature": "void addSeeAlsoTypeDefinitions(Declaration declaration)"
},
{
"arguments": [
"ClassDeclaration declaration"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "if (isEnumType(declaration)) {\n return new EnumTypeDefinition((EnumDeclaration) declaration);",
"signature": "TypeDefinition createTypeDefinition(ClassDeclaration declaration)"
},
{
"arguments": [
"TypeDeclaration declaration"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "return !(declaration instanceof InterfaceDeclaration) && !isEnumType(declaration) && !isSimpleType(declaration);",
"signature": "boolean isComplexType(TypeDeclaration declaration)"
},
{
"arguments": [
"TypeDeclaration declaration"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "return (declaration instanceof EnumDeclaration);",
"signature": "boolean isEnumType(TypeDeclaration declaration)"
},
{
"arguments": [
"TypeDeclaration declaration"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "if (declaration instanceof InterfaceDeclaration) {\n if (declaration.getAnnotation(javax.xml.bind.annotation.XmlType.class) != null) {\n throw new ValidationException(declaration.getPosition(), \"An interface must not be annotated with @XmlType.\");",
"signature": "boolean isSimpleType(TypeDeclaration declaration)"
},
{
"arguments": [
"GenericTypeDefinition typeDef"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "boolean none = (typeDef.getAttributes().isEmpty()) && (typeDef.getElements().isEmpty());\n ClassDeclaration superDeclaration = ((ClassDeclaration) typeDef.getDelegate()).getSuperclass().getDeclaration();\n if (!Object.class.getName().equals(superDeclaration.getQualifiedName())) {\n none &= hasNeitherAttributesNorElements(new GenericTypeDefinition(superDeclaration));\n return none;\n addReferencedTypeDefinitions(registry);\n /**\n * Add the referenced type definitions for a registry..\n *\n * @param registry The registry.\n */\n protected void addReferencedTypeDefinitions(Registry registry) {\n addSeeAlsoTypeDefinitions(registry);\n for (MethodDeclaration methodDeclaration : registry.getInstanceFactoryMethods()) {\n addReferencedTypeDefinitions(methodDeclaration.getReturnType());",
"signature": "boolean hasNeitherAttributesNorElements(GenericTypeDefinition typeDef)"
},
{
"arguments": [
"LocalElementDeclaration led"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "addSeeAlsoTypeDefinitions(led);\n TypeDeclaration scope = led.getElementScope();\n if (scope instanceof ClassDeclaration) {\n add(createTypeDefinition((ClassDeclaration) scope));",
"signature": "void addReferencedTypeDefinitions(LocalElementDeclaration led)"
},
{
"arguments": [
"TypeMirror typeMirror"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "//no-op",
"signature": "void visitTypeMirror(TypeMirror typeMirror)"
},
{
"arguments": [
"PrimitiveType primitiveType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "//no-op",
"signature": "void visitPrimitiveType(PrimitiveType primitiveType)"
},
{
"arguments": [
"VoidType voidType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "//no-op",
"signature": "void visitVoidType(VoidType voidType)"
},
{
"arguments": [
"ReferenceType referenceType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "//no-op",
"signature": "void visitReferenceType(ReferenceType referenceType)"
},
{
"arguments": [
"DeclaredType declaredType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "//no-op",
"signature": "void visitDeclaredType(DeclaredType declaredType)"
},
{
"arguments": [
"ClassType classType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "if (classType instanceof AdapterType) {\n ((AdapterType)classType).getAdaptingType().accept(this);",
"signature": "void visitClassType(ClassType classType)"
},
{
"arguments": [
"EnumType enumType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "EnumDeclaration enumDeclaration = enumType.getDeclaration();\n if (enumDeclaration != null) {\n add(createTypeDefinition(enumDeclaration));",
"signature": "void visitEnumType(EnumType enumType)"
},
{
"arguments": [
"InterfaceType interfaceType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "MapType mapType = MapTypeUtil.findMapType(interfaceType);\n if (mapType != null) {\n mapType.getKeyType().accept(this);\n mapType.getValueType().accept(this);",
"signature": "void visitInterfaceType(InterfaceType interfaceType)"
},
{
"arguments": [
"AnnotationType annotationType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "//no-op",
"signature": "void visitAnnotationType(AnnotationType annotationType)"
},
{
"arguments": [
"ArrayType arrayType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "arrayType.getComponentType().accept(this);",
"signature": "void visitArrayType(ArrayType arrayType)"
},
{
"arguments": [
"TypeVariable typeVariable"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "Iterator<ReferenceType> bounds = typeVariable.getDeclaration().getBounds().iterator();\n if (bounds.hasNext()) {\n bounds.next().accept(this);",
"signature": "void visitTypeVariable(TypeVariable typeVariable)"
},
{
"arguments": [
"WildcardType wildcardType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateFreemarkerModel.java",
"implementation": "Iterator<ReferenceType> upperBounds = wildcardType.getUpperBounds().iterator();\n if (upperBounds.hasNext()) {\n upperBounds.next().accept(this);",
"signature": "void visitWildcardType(WildcardType wildcardType)"
},
{
"arguments": [],
"filename": "core/src/main/java/org/codehaus/enunciate/config/EnunciateConfiguration.java",
"implementation": "return includeReferencedClasses;",
"signature": "boolean isIncludeReferencedClasses()"
},
{
"arguments": [
"boolean includeReferencedClasses"
],
"filename": "core/src/main/java/org/codehaus/enunciate/config/EnunciateConfiguration.java",
"implementation": "this.includeReferencedClasses = includeReferencedClasses;",
"signature": "void setIncludeReferencedClasses(boolean includeReferencedClasses)"
},
{
"arguments": [],
"filename": "core/src/main/java/org/codehaus/enunciate/config/EnunciateConfiguration.java",
"implementation": "return excludeUnreferencedClasses;",
"signature": "boolean isExcludeUnreferencedClasses()"
},
{
"arguments": [
"boolean excludeUnreferencedClasses"
],
"filename": "core/src/main/java/org/codehaus/enunciate/config/EnunciateConfiguration.java",
"implementation": "this.excludeUnreferencedClasses = excludeUnreferencedClasses;",
"signature": "void setExcludeUnreferencedClasses(boolean excludeUnreferencedClasses)"
},
{
"arguments": [],
"filename": "core/src/main/java/org/codehaus/enunciate/main/Enunciate.java",
"implementation": "public void visit(File file) {\n String path = pathFile.toURI().relativize(file.toURI()).getPath();\n if (path.endsWith(\".class\")) {\n String classname = path.substring(0, path.length() - 6).replace('/', '.').replace('$', '.');\n debug(\"Noticed class %s at %s.\", classname, file);\n foundClasses2Sources.put(classname, foundClasses2Sources.get(classname));",
"signature": "new FileVisitor()"
},
{
"arguments": [
"Map<String",
" File> foundClasses2Sources",
" Map<String",
" File> classes2sources"
],
"filename": "core/src/main/java/org/codehaus/enunciate/main/Enunciate.java",
"implementation": "if (this.config != null && this.config.getAPIImports() != null\n && !this.config.getAPIImports().isEmpty() && !foundClasses2Sources.isEmpty()) {\n AntPatternMatcher matcher = new AntPatternMatcher();\n matcher.setPathSeparator(\".\");\n for (APIImport apiImport : this.config.getAPIImports()) {\n String pattern = apiImport.getPattern();\n if (pattern != null) {\n for (Map.Entry<String, File> foundEntry : foundClasses2Sources.entrySet()) {\n if (!classes2sources.containsKey(foundEntry.getKey())) {\n if (pattern.equals(foundEntry.getKey())) {\n debug(\"Class %s will be imported because it was explicitly listed.\", foundEntry.getKey());\n classes2sources.put(foundEntry.getKey(), apiImport.isSeekSource() ? foundEntry.getValue() : null);",
"signature": "void copyImportedClasses(Map<String, File> foundClasses2Sources, Map<String, File> classes2sources)"
},
{
"arguments": [
"File dir",
" FileFilter filter",
" final Collection<String> filenames"
],
"filename": "core/src/main/java/org/codehaus/enunciate/main/Enunciate.java",
"implementation": "visitFiles(dir, filter, new FileVisitor() {\n public void visit(File file) {\n filenames.add(file.getAbsolutePath());",
"signature": "void findFiles(File dir, FileFilter filter, final Collection<String> filenames)"
},
{
"arguments": [
"File dir",
" FileFilter filter",
" FileVisitor visitor"
],
"filename": "core/src/main/java/org/codehaus/enunciate/main/Enunciate.java",
"implementation": "visitor.visit(file);\n visitFiles(subdir, filter, visitor);\n /**\n * A scratch directory for Enunciate to use.\n *\n * @return A scratch directory for Enunciate to use.\n */\n public File getScratchDir() {\n return scratchDir;",
"signature": "void visitFiles(File dir, FileFilter filter, FileVisitor visitor)"
},
{
"arguments": [
"File scratchDir"
],
"filename": "core/src/main/java/org/codehaus/enunciate/main/Enunciate.java",
"implementation": "this.scratchDir = scratchDir;",
"signature": "void setScratchDir(File scratchDir)"
},
{
"arguments": [],
"filename": "core/src/main/java/org/codehaus/enunciate/main/Enunciate.java",
"implementation": "public boolean accept(File file) {\n return file.getName().endsWith(\".java\");",
"signature": "new FileFilter()"
},
{
"arguments": [
"File scratchDir"
],
"filename": "core/src/main/java/org/codehaus/enunciate/main/EnunciateTask.java",
"implementation": "this.scratchDir = scratchDir;",
"signature": "void setScratchDir(File scratchDir)"
},
{
"arguments": [
"typeMirror instanceof MapType"
],
"filename": "core/src/main/java/org/codehaus/enunciate/util/MapTypeUtil.java",
"implementation": "return (MapType) typeMirror;",
"signature": "else if (typeMirror instanceof MapType)"
},
{
"arguments": [
"ClassDeclaration declaration",
" EnunciateFreemarkerModel model"
],
"filename": "core/src/test/java/org/codehaus/enunciate/apt/TestEnunciateAnnotationProcessor.java",
"implementation": "/**\n * Tests getting the root model.\n */\n public void testGetRootModelExcludingUnreferenced() throws Exception {\n EnunciateConfiguration config = new EnunciateConfiguration();\n config.putNamespace(\"urn:test\", \"test\");\n config.putNamespace(\"http://enunciate.codehaus.org/samples/contract\", \"tContract\");\n\n final boolean[] validated = new boolean[]{false",
"signature": "TypeDefinition createTypeDefinition(ClassDeclaration declaration, EnunciateFreemarkerModel model)"
},
{
"arguments": [
"enunciate"
],
"filename": "core/src/test/java/org/codehaus/enunciate/apt/TestEnunciateAnnotationProcessor.java",
"implementation": "@Override\n protected void validate(EnunciateFreemarkerModel model) {\n validated[0] = true;",
"signature": "new EnunciateAnnotationProcessor(enunciate)"
},
{
"arguments": [
"TypeDeclaration declaration"
],
"filename": "core/src/test/java/org/codehaus/enunciate/apt/TestEnunciateAnnotationProcessor.java",
"implementation": "return \"org.codehaus.enunciate.samples.services.NamespacedWebService\".equals(declaration.getQualifiedName());",
"signature": "boolean isEndpointInterface(TypeDeclaration declaration)"
},
{
"arguments": [
"TypeDeclaration declaration"
],
"filename": "core/src/test/java/org/codehaus/enunciate/apt/TestEnunciateAnnotationProcessor.java",
"implementation": "boolean potentialSchemaType = \"org.codehaus.enunciate.samples.schema\".equals(declaration.getPackage().getQualifiedName());\n String simpleName = declaration.getSimpleName();\n potentialSchemaType &= (simpleName.equals(\"BeanOne\") || simpleName.equals(\"BeanTwo\") || simpleName.equals(\"BeanThree\"));\n return potentialSchemaType;",
"signature": "boolean isPotentialSchemaType(TypeDeclaration declaration)"
},
{
"arguments": [
"ClassDeclaration declaration",
" EnunciateFreemarkerModel model"
],
"filename": "core/src/test/java/org/codehaus/enunciate/apt/TestEnunciateAnnotationProcessor.java",
"implementation": "if (\"org.codehaus.enunciate.samples.schema.BeanOne\".equals(declaration.getQualifiedName())) {\n return new ComplexTypeDefinition(declaration);",
"signature": "TypeDefinition createTypeDefinition(ClassDeclaration declaration, EnunciateFreemarkerModel model)"
},
{
"arguments": [
"ClassDeclaration declaration",
" TypeDefinition typeDefinition"
],
"filename": "core/src/test/java/org/codehaus/enunciate/apt/TestEnunciateAnnotationProcessor.java",
"implementation": "if (\"org.codehaus.enunciate.samples.schema.BeanThree\".equals(declaration.getQualifiedName())) {\n return new RootElementDeclaration(declaration, typeDefinition);",
"signature": "RootElementDeclaration createRootElementDeclaration(ClassDeclaration declaration, TypeDefinition typeDefinition)"
},
{
"arguments": [],
"filename": "core/src/test/java/org/codehaus/enunciate/apt/TestEnunciateFreemarkerModel.java",
"implementation": "@Override\n protected boolean includeReferencedClasses() {\n return false;",
"signature": "new EnunciateFreemarkerModel()"
}
] | [
{
"arguments": [
"ClassDeclaration declaration"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateAnnotationProcessor.java",
"implementation": "if (isEnumType(declaration)) {\n return new EnumTypeDefinition((EnumDeclaration) declaration);",
"signature": "TypeDefinition createTypeDefinition(ClassDeclaration declaration)"
},
{
"arguments": [
"TypeDeclaration declaration"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateAnnotationProcessor.java",
"implementation": "return !(declaration instanceof InterfaceDeclaration) && !isEnumType(declaration) && !isSimpleType(declaration);",
"signature": "boolean isComplexType(TypeDeclaration declaration)"
},
{
"arguments": [
"TypeDeclaration declaration"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateAnnotationProcessor.java",
"implementation": "return (declaration instanceof EnumDeclaration);",
"signature": "boolean isEnumType(TypeDeclaration declaration)"
},
{
"arguments": [
"TypeDeclaration declaration"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateAnnotationProcessor.java",
"implementation": "if (declaration instanceof InterfaceDeclaration) {\n if (declaration.getAnnotation(XmlType.class) != null) {\n throw new ValidationException(declaration.getPosition(), \"An interface must not be annotated with @XmlType.\");",
"signature": "boolean isSimpleType(TypeDeclaration declaration)"
},
{
"arguments": [
"GenericTypeDefinition typeDef"
],
"filename": "core/src/main/java/org/codehaus/enunciate/apt/EnunciateAnnotationProcessor.java",
"implementation": "boolean none = (typeDef.getAttributes().isEmpty()) && (typeDef.getElements().isEmpty());\n ClassDeclaration superDeclaration = ((ClassDeclaration) typeDef.getDelegate()).getSuperclass().getDeclaration();\n if (!Object.class.getName().equals(superDeclaration.getQualifiedName())) {\n none &= hasNeitherAttributesNorElements(new GenericTypeDefinition(superDeclaration));",
"signature": "boolean hasNeitherAttributesNorElements(GenericTypeDefinition typeDef)"
},
{
"arguments": [],
"filename": "core/src/main/java/org/codehaus/enunciate/config/APIImport.java",
"implementation": "return clazz;",
"signature": "String getClassname()"
}
] |
b50308a6851b3f8ebb6327f80033319d10b7d1b9 | [
{
"arguments": [
"BlackBoard blackBoard"
],
"filename": "src/graphlab/extensions/algorithms/CholeskyFactorizationExtension.java",
"implementation": "super(blackBoard);",
"signature": "public CholeskyFactorizationExtension(BlackBoard blackBoard)"
},
{
"arguments": [
"BlackBoard b"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "blackboard = b;\n\n jta = new JEditorPane();\n jta.setEditable(false);\n jta.addHyperlinkListener(this);\n JViewport jvp = new JViewport();\n\n jta.setBackground(Color.white);\n jvp.add(jta);\n jta.setContentType(\"text/html\");\n\n this.setViewport(jvp);",
"signature": "public GHTMLPageComponent(BlackBoard b)"
},
{
"arguments": [
"URL page"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "try {\n jta.setPage(page);",
"signature": "void setPage(URL page)"
},
{
"arguments": [
"String html"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "jta.setText(html);",
"signature": "void setHTML(String html)"
},
{
"arguments": [],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "return jta;",
"signature": "JEditorPane getEditorPane()"
},
{
"arguments": [],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "jta.setEditable(true);\n DefaultCaret caret = (DefaultCaret) jta.getCaret();\n caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);",
"signature": "void makeEditable()"
},
{
"arguments": [
"String html"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "StringBuffer sb9 = new StringBuffer();\n String pointtext = jta.getText();\n\n sb9.append(\"<html><body>\");\n sb9.append(html);\n sb9.append(\"</body></html>\");\n\n\n try {\n Document doc = (Document) jta.getDocument();\n\n ((HTMLEditorKit) jta.getEditorKit()).read(\n new java.io.StringReader(sb9.toString())\n , jta.getDocument()\n , jta.getDocument().getLength());",
"signature": "void appendHTML(String html)"
},
{
"arguments": [
"String protocol",
" HyperlinkHandler h"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "handlers.put(protocol.toUpperCase(), h);",
"signature": "void registerHyperLinkHandler(String protocol, HyperlinkHandler h)"
},
{
"arguments": [
"HyperlinkEvent e"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\n String url = e.getDescription();\n if (!url.contains(\"=\"))\n normalHyperlinkUpdate(e);\n else {\n// String prefix = url.toUpperCase().substring(0, url.indexOf(\":\"));\n HyperlinkHandler han = null;\n String postfix;\n int pi = url.indexOf(\"handler\");\n if (pi != -1) {\n postfix = url.toUpperCase().substring(pi + 8);\n han = handlers.get(postfix);",
"signature": "void hyperlinkUpdate(HyperlinkEvent e)"
},
{
"arguments": [
"HyperlinkEvent e"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "JEditorPane pane = (JEditorPane) e.getSource();\n if (e instanceof HTMLFrameHyperlinkEvent) {\n HTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent) e;\n HTMLDocument doc = (HTMLDocument) pane.getDocument();\n doc.processHTMLFrameHyperlinkEvent(evt);",
"signature": "void normalHyperlinkUpdate(HyperlinkEvent e)"
},
{
"arguments": [
"String message"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "setHTML(message);",
"signature": "void showNotificationMessage(String message)"
},
{
"arguments": [
"String message"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "setHTML(message);\n this.message = message;",
"signature": "void setMessage(String message)"
},
{
"arguments": [],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "setHTML(message);",
"signature": "void hideNotificationMessage()"
},
{
"arguments": [
"ActionListener listener",
" BlackBoard blackboard"
],
"filename": "src/graphlab/plugins/algorithmanimator/AnimatorGUI.java",
"implementation": "this.blackboard = blackboard;\n pauseButton.addActionListener(listener);\n playButton.addActionListener(listener);\n playOneStepButton.addActionListener(listener);",
"signature": "public AnimatorGUI(ActionListener listener, BlackBoard blackboard)"
},
{
"arguments": [],
"filename": "src/graphlab/plugins/algorithmanimator/AnimatorGUI.java",
"implementation": "String html = \"<html>\" +\n \"<head>\" +\n \"<style type='text/css'>\" +\n \"body{ font-family: monospace;",
"signature": "void createUIComponents()"
},
{
"arguments": [
"BlackBoard blackBoard"
],
"filename": "src/graphlab/plugins/algorithmanimator/core/GraphAlgorithm.java",
"implementation": "this.blackBoard = blackBoard;\n this.graphData = new GraphData(blackBoard);\n \n public String getMatrixHTML(GraphModel g){\n return graphData.saveLoad.Graph2MatrixHTML(g);",
"signature": "public GraphAlgorithm(BlackBoard blackBoard)"
},
{
"arguments": [
"GraphModel g"
],
"filename": "src/graphlab/plugins/main/saveload/SaveLoadPluginMethods.java",
"implementation": "public String Graph2MatrixHTML(GraphModel g){\n return (Matrix.Matrix2HTML(Matrix.graph2Matrix(g)));",
"signature": "String Graph2MatrixString(GraphModel g)"
},
{
"arguments": [
"int[][] mat",
" GraphModel g"
],
"filename": "src/graphlab/plugins/main/saveload/matrix/Matrix.java",
"implementation": "int n = mat.length;\n int nn = mat[1].length;\n if (n != nn) {\n JOptionPane.showMessageDialog(null, \"not a valid matrix graph\");\n return;",
"signature": "void Matrix2Graph(int[][] mat, GraphModel g)"
},
{
"arguments": [
"Object[][] mat"
],
"filename": "src/graphlab/plugins/main/saveload/matrix/Matrix.java",
"implementation": "int a = mat.length;\n if (a == 0)\n return \"\";\n int b = mat[0].length;\n String ret = \"<table>\";\n for (int i = 0; i < a; i++) {\n ret += \"<tr>\";\n for (int j = 0; j < b; j++) {\n if(mat[i][j]!=null)\n ret += \"<td>\" + ((Number)(mat[i][j])).intValue() + \"</td>\";\n else\n ret += \"<td>0</td>\";\n// ret += (mat[i][j] ? \"1\" : \"0\");\n// ret += \" \";",
"signature": "String Matrix2HTML(Object[][] mat)"
},
{
"arguments": [
"Object[][] mat"
],
"filename": "src/graphlab/plugins/main/saveload/matrix/Matrix.java",
"implementation": "int a = mat.length;\n if (a == 0)\n return \"\";\n int b = mat[0].length;\n String ret = \"\";\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n \tif(mat[i][j]!=null)\n \t\tret += ((Number)(mat[i][j])).intValue() + \" \";\n \telse\n \t\tret += \"0 \";\n// ret += (mat[i][j] ? \"1\" : \"0\");\n// ret += \" \";",
"signature": "String Matrix2String(Object[][] mat)"
}
] | [
{
"arguments": [
"BlackBoard b"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "blackboard = b;\r\n\r\n jta = new JEditorPane();\r\n jta.setEditable(false);\r\n jta.addHyperlinkListener(this);\r\n JViewport jvp = new JViewport();\r\n\r\n jta.setBackground(Color.white);\r\n jvp.add(jta);\r\n jta.setContentType(\"text/html\");\r\n\r\n this.setViewport(jvp);",
"signature": "public GHTMLPageComponent(BlackBoard b)"
},
{
"arguments": [
"URL page"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "try {\r\n jta.setPage(page);",
"signature": "void setPage(URL page)"
},
{
"arguments": [
"String html"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "jta.setText(html);",
"signature": "void setHTML(String html)"
},
{
"arguments": [
"String protocol",
" HyperlinkHandler h"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "handlers.put(protocol.toUpperCase(), h);",
"signature": "void registerHyperLinkHandler(String protocol, HyperlinkHandler h)"
},
{
"arguments": [
"HyperlinkEvent e"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\r\n String url = e.getDescription();\r\n if (!url.contains(\"=\"))\r\n normalHyperlinkUpdate(e);\r\n else {\r\n// String prefix = url.toUpperCase().substring(0, url.indexOf(\":\"));\r\n HyperlinkHandler han = null;\r\n String postfix;\r\n int pi = url.indexOf(\"handler\");\r\n if (pi != -1) {\r\n postfix = url.toUpperCase().substring(pi + 8);\r\n han = handlers.get(postfix);",
"signature": "void hyperlinkUpdate(HyperlinkEvent e)"
},
{
"arguments": [
"HyperlinkEvent e"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "JEditorPane pane = (JEditorPane) e.getSource();\r\n if (e instanceof HTMLFrameHyperlinkEvent) {\r\n HTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent) e;\r\n HTMLDocument doc = (HTMLDocument) pane.getDocument();\r\n doc.processHTMLFrameHyperlinkEvent(evt);",
"signature": "void normalHyperlinkUpdate(HyperlinkEvent e)"
},
{
"arguments": [
"String message"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "setHTML(message);",
"signature": "void showNotificationMessage(String message)"
},
{
"arguments": [
"String message"
],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "setHTML(message);\r\n this.message = message;",
"signature": "void setMessage(String message)"
},
{
"arguments": [],
"filename": "src/graphlab/graph/ui/GHTMLPageComponent.java",
"implementation": "setHTML(message);",
"signature": "void hideNotificationMessage()"
},
{
"arguments": [
"ActionListener listener"
],
"filename": "src/graphlab/plugins/algorithmanimator/AnimatorGUI.java",
"implementation": "pauseButton.addActionListener(listener);\r\n playButton.addActionListener(listener);\r\n playOneStepButton.addActionListener(listener);",
"signature": "public AnimatorGUI(ActionListener listener)"
},
{
"arguments": [
"String lbl",
" Dimension d"
],
"filename": "src/graphlab/plugins/algorithmanimator/core/AlgorithmAnimator.java",
"implementation": "// JButton play = new JButton(lbl);\n// play.setSize(d);\n// play.addActionListener(this);\n// f.add(play);\n//",
"signature": "void addBtn(String lbl, Dimension d)"
},
{
"arguments": [
"int[][] mat",
" GraphModel g"
],
"filename": "src/graphlab/plugins/main/saveload/matrix/Matrix.java",
"implementation": "int n = mat.length;\r\n int nn = mat[1].length;\r\n if (n != nn) {\r\n JOptionPane.showMessageDialog(null, \"not a valid matrix graph\");\r\n return;",
"signature": "void Matrix2Graph(int[][] mat, GraphModel g)"
},
{
"arguments": [
"Object[][] mat"
],
"filename": "src/graphlab/plugins/main/saveload/matrix/Matrix.java",
"implementation": "int a = mat.length;\r\n if (a == 0)\r\n return \"\";\r\n int b = mat[0].length;\r\n String ret = \"\";\r\n for (int i = 0; i < a; i++) {\r\n for (int j = 0; j < b; j++) {\r\n \tif(mat[i][j]!=null)\r\n \t\tret += ((Number)(mat[i][j])).intValue() + \" \";\r\n \telse\r\n \t\tret += \"0 \";\r\n// ret += (mat[i][j] ? \"1\" : \"0\");\r\n// ret += \" \";",
"signature": "String Matrix2String(Object[][] mat)"
}
] |
End of preview. Expand
in Dataset Viewer.
- Downloads last month
- 37