query
stringlengths 8
1.54M
| document
stringlengths 9
312k
| negatives
sequencelengths 19
20
| metadata
dict |
---|---|---|---|
Creates a new range restriction listener. | private RangeRestrictionListener() {
} | [
"protected ChangeListener createListener() {\n return new RangeSliderChangeListener();\n }",
"ValueRangeConstraint createValueRangeConstraint();",
"public PortRange(int lowerBound, int upperBound) {\n this.lowerBound = lowerBound;\n this.upperBound = upperBound;\n }",
"private RangeFilter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public void setOnRangeBarChangeListener(OnRangeBarChangeListener listener) {\n mListener = listener;\n }",
"abstract public Range createRange();",
"public static void processRangeRestrictionEntry(TreeWalkListener lis,\n RangeStatementContext ctx) {\n\n // Check for stack to be non empty.\n ListenerValidation.checkStackIsNotEmpty(lis, ListenerErrorType.MISSING_HOLDER, RANGE_DATA,\n ctx.range().getText(), ListenerErrorLocation.ENTRY);\n\n Parsable tmpData = lis.getParsedDataStack().peek();\n if (tmpData.getYangConstructType() == TYPE_DATA) {\n YangType type = (YangType) tmpData;\n setRangeRestriction(lis, type, ctx);\n } else {\n throw new ParserException(ListenerErrorMessageConstruction.constructListenerErrorMessage(\n ListenerErrorType.INVALID_HOLDER, RANGE_DATA, ctx.range().getText(), ListenerErrorLocation.ENTRY));\n }\n }",
"public RangeConstraint(T min, T max) {\n this.min = min;\n this.max = max;\n }",
"public PortRange() {\n this(UNBOUND, UNBOUND);\n }",
"Range createRange();",
"RangeExpression createRangeExpression();",
"public void setValidRange (int lowerBounds, int upperBounds)\r\n\t{\r\n\t\tm_lowerBounds = lowerBounds;\r\n\t\tm_upperBounds = upperBounds;\r\n\t}",
"public Range(final T lowerBound, final T upperBound) {\n\t\tthis.lowerBound = lowerBound;\n\t\tthis.upperBound = upperBound;\n\t}",
"default void addPipExclusionBoundsChangeListener(Consumer<Rect> listener) { }",
"ListenerRequest create(Source source);",
"public static final InputValidator<Double> createRangeValidator(\n\t\t\tdouble beginInclusive, \n\t\t\tdouble endInclusive, \n\t\t\tString validationMessage\n\t) {\n\t\treturn new InputValidator<Double>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String getErrorMessage(Double input) {\n\t\t\t\treturn input <= endInclusive \n\t\t\t\t\t\t&& input>= beginInclusive ? DEFAULT_SUCCESS_MESSAGE : validationMessage;\n\t\t\t}\t\t\t\n\t\t};\n\t}",
"public VersionRange(\n @Nullable DelimitedVersion lowerBound,\n @Nullable DelimitedVersion upperBound) {\n mLowerBound = lowerBound;\n mUpperBound = upperBound;\n }",
"void setRange(int newRange);",
"public Range(int min, int max){\n this.min=min;\n this.max=max;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an aliased mplus_test_data.getmedirecord table reference | public Getmedirecord(Name alias) {
this(alias, GETMEDIRECORD);
} | [
"public Getmedirecord(String alias) {\n this(DSL.name(alias), GETMEDIRECORD);\n }",
"private static TableRef createAliasedTableRef( final TableMeta table,\n final String alias ) {\n return new TableRef() {\n public String getColumnName( String rawName ) {\n return alias + \".\" + rawName;\n }\n public String getIntroName() {\n return table.getName() + \" AS \" + alias;\n }\n };\n }",
"public String createTableRepresentationQueryTableColumn (QueryTable queryTable, boolean appendAlias);",
"public Getmedirecord() {\n this(DSL.name(\"getmedirecord\"), null);\n }",
"public Table<Integer, Integer, String> getAnonymizedData();",
"void copyFromDynamo(String fullDynamoTableName, String fullDwTableName);",
"@Test\n public void execMySqlTest() {\n String sql = \"select a.m as cc from (select c.mobile as m from (select mobile from card) c) a\";\n DruidSqlParser druidSqlParser = new DruidSqlParser();\n Map<String, ColumnItem> columnItems = druidSqlParser.parserSql(sql);\n System.out.println(columnItems);\n }",
"public abstract String getMetricIdSql();",
"public abstract String getExperimentTable();",
"public Table getJoinIntoTable();",
"public void testMetaDataCallOnSynonymsDERBY5244()\n throws SQLException\n {\n Statement st = createStatement();\n st.executeUpdate(\"create table t1Derby5422 \"+\n \t\t\"( c11 int not null, c12 char(2) )\");\n //Create a synonym on table t1Derby5422\n st.executeUpdate(\"create synonym s1Derby5422 for t1Derby5422\");\n st.executeUpdate(\"create view v1Derby5422 as select * from t1Derby5422\");\n \n //Verify that the synonym has been created successfully by\n // doing a select from it\n ResultSet rs = st.executeQuery(\"select * from S1DERBY5422\");\n JDBC.assertEmpty(rs);\n DatabaseMetaData dbmd = getConnection().getMetaData();\n //Derby can find metadata info for the base table\n rs = dbmd.getColumns(null, null, \"T1DERBY5422\", null);\n JDBC.assertDrainResultsHasData(rs);\n //Derby can find metadata info for the view\n rs = dbmd.getColumns(null, null, \"V1DERBY5422\", null);\n JDBC.assertDrainResultsHasData(rs);\n //But Derby does not locate the metadata info for synonym\n rs = dbmd.getColumns(null, null, \"S1DERBY5422\", null);\n JDBC.assertEmpty(rs);\n }",
"public Getmedirecordcontentdetail(Name alias) {\n this(alias, GETMEDIRECORDCONTENTDETAIL);\n }",
"Map<String, String> getTableAliasMap();",
"public Getmedirecordcontentdetail(String alias) {\n this(DSL.name(alias), GETMEDIRECORDCONTENTDETAIL);\n }",
"private String getQualifiedSrcDsTableName() {\n return sourceDB + \".\" + DATASET_TABLE_NAME;\n }",
"public String createColumRepresentationQueryTableColumn (QueryTableColumn queryTableColumn);",
"public abstract java.lang.String getUnd_medida_sap();",
"public void testGetQualifiedName() {\n DBTable instance = table;\n String expResult = \"SIMPLETABLE\";\n String result = instance.getQualifiedName(false);\n assertEquals(expResult, result);\n }",
"default String getAliasPrefix() {\n\t\treturn getDataSet() + \"_\";\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for BuildingRepository, used for testing purposes only. | public void setBuildingRepository(final BuildingRepository buildingRepo) {
this.buildingRepository = buildingRepo;
} | [
"public void setRepository(String repository) {\n this.repository = repository;\n }",
"public void setRepository(IRepository repository) {\r\n this.repository = repository;\r\n }",
"public void setRepository(Repository pRepository) {\n mRepository = pRepository;\n }",
"public void setRepository(Repository repo) {\n\t\tthis.repo = repo;\n\t}",
"public RepositoryBuilder() {\n\t\tthis(new LocalMemoryRepositorySupplier());\n\t}",
"public void setBuilding(Building building) {\n this.building = building;\n }",
"private Repository getRepository() {\n return REPOSITORY;\n }",
"public void setRepositoryConnection(Connection repositoryConnection) {\r\n this.repositoryConnection = repositoryConnection;\r\n }",
"public void setBuilding(int value) {\n this.building = value;\n }",
"SourceRepositoryProperties getSourceRepositoryProperties(String buildTaskName);",
"public void setRepositoryName(String repositoryName){\r\n this.repositoryName = repositoryName;\r\n }",
"public static void setRepositoryRoot(String repositoryRootVal) {\n \trepositoryRoot = repositoryRootVal ;\n }",
"public String getRepository() {\n\t\treturn _repository;\n\t}",
"void setDefaultRepository(String repository);",
"public void setRoof(Building building);",
"public Repository getRepository() {\n return mRepository;\n }",
"public void setBuilding(Building b){\r\n currentBuilding = b;\r\n }",
"public String getRepositoryId() {\n return repositoryId;\n }",
"public void setRepository(CollisionRepository repo) \n\t{ \n\t\tmRepo = repo; \n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encodes this state machine as a string | public String encode() {
return State.encodeStateSet(states) + "/" + alphabet.encode() + "/" + transitions.encode() + "/"
+ initialState.encode() + "/" + State.encodeStateSet(acceptingStates);
} | [
"public String toString() {\n\t\t//initializes a StringBuilder to build the string representation of the machine\n\t\tStringBuilder machineRepresentation = new StringBuilder();\n\t\t\n\t\t//for all states in the set of states in our machine\n\t\tfor (Node state : states.values()) {\n\t\t\t//we get the transitions for a given state\n\t\t\tMap<String, Node> transitions = state.getTransitions();\n\t\t\t\n\t\t\t//for all entries in a given state's transitions\n\t\t\tfor (Map.Entry<String, Node> entry : transitions.entrySet()) {\n\t\t\t\t//we add a string for each transition in the following format: \"symbol, from-state, to-state\"\n\t\t\t\t\n\t\t\t\t//state to which state leads on symbol\n\t\t\t\tNode toState = entry.getValue();\n\t\t\t\t\n\t\t\t\tif (toState != null) {\n\t\t\t\t\tmachineRepresentation.append(entry.getKey() + \",\" + state.toString() + \", \" + entry.getValue() + \"\\n\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\n\t\t//return string representation of machine\n\t\treturn machineRepresentation.toString();\n\t}",
"public String getStateAsString();",
"public String getStateAsString() {\n return storeStateIntoString();\n }",
"public String getStateString()\r\n\t{\r\n\t\treturn stateString;\r\n\t}",
"java.lang.String getState();",
"public String toString() {\n return \"STATE\\n\\tName: [\" + this.getName() + \"]\\n\" + \"\\tType: [\" + this.getType().toString() + \"]\\n\";\n }",
"String stateToString() {\n switch (state) {\n case STATE_PLAYING:\n return \"playing\";\n case STATE_PAUSED:\n return \"paused\";\n case STATE_STOPPED:\n default:\n return \"stopped\";\n }\n }",
"public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (String state : states) {\r\n\t\t\tsb.append(data.get(state));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public String toString(){\n \t\n \tString description = \"\";\n \t\n \tStateMachineState initialS = statesMap.keySet().iterator().next();\n\n\t\tList<StateMachineState> statesQueue = new ArrayList<>();\n\t\tstatesQueue.add(initialS); // start from first state\n\n\t\t// BFS to process the state graph\n\t\twhile (!statesQueue.isEmpty()) {\n\t\t\t//get state name\n\t\t\tStateMachineState state = statesQueue.remove(0);\n\t\t\tdescription += \"\\n State \" + state.getName() + \"->\";\n\t\t\t\n\t\t\t//for all state transitions, iterate\n\t\t\tfor (StateMachineStateTransition transition : state.getOutTransitions()) {\n\t\t\t\t//get target state from transition\n\t\t\t\tStateMachineState targetState = transition.getTargetState();\n\t\t\t\tstatesQueue.add(targetState);\n\t\t\t\tdescription += \"\\n\tgoes to \" + targetState.getName();\n\n\t\t\t\t//get all transition triggers\n\t\t\t\tList<Trigger> triggers = transition.getTransition().getTriggers();\n\t\t\t\tif (!triggers.isEmpty()){\n\t\t\t\t\tdescription += \"\\n\twith triggers:\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//for each trigger\n\t\t\t\tfor (Trigger trigger :triggers) {\n\t\t\t\t\t\n\t\t\t\t\t//get trigger event\n\t\t\t\t\tEvent event = trigger.getEvent();\n\t\t\t\t\t//if UML operation triggers event (so CLass method)\n\t\t\t\t\tif (event instanceof CallEvent){\n\t\t\t\t\t\tCallEvent callEvent = (CallEvent) event;\n\t\t\t\t\t\tOperation operation = callEvent.getOperation();\n\t\t\t\t\t\tClass operationClass = (Class) operation.eContainer();\n\t\t\t\t\t\tdescription += \"\\n\t\t= Trigger Operation: \" + operationClass.getName() +\".\"+ operation.getName();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t//get transition condition (could also be Rule, currently we get only Guard transitions)\n\t\t\t\tConstraint guard = transition.getTransition().getGuard();\n\t\t\t\tif (guard != null) {\n\t\t\t\t\tdescription += \"\\n\tunder Guard conditions \";\n\t\t\t\t\t\n\t\t\t\t\tfor (Element element : guard.allOwnedElements()) {\n\t\t\t\t\t\t//currently condition retrieved as plain text that will need to be parsed and evaluated\n\t\t\t\t\t\tOpaqueExpression expression = (OpaqueExpression) element;\n\t\t\t\t\t\tfor (String body : expression.getBodies()) {\n\t\t\t\t\t\t\tdescription += \"\\n\t\tCondition: \" + body;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn description;\n }",
"private String encode(String mnemonic) {\n\t\treturn EOT + group + unit + mnemonic + ENQ + '\\n' + '\\r';\n\t}",
"private void saveState() {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n try {\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(this);\n oos.flush();\n keyValStore.setValue(keyValStoreName, Hex.toHexString(bos.toByteArray()));\n bos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void saveState() {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n try {\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(this);\n oos.flush();\n keyValStore.setValue(keyValStoreName, Hex.toHexString(bos.toByteArray()));\n bos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public String encode() {\r\n\t\tString encoding = \"\";\r\n\t\t\r\n\t\tIterator<Character> p = symbols.iterator();\r\n\r\n\t\tif (p.hasNext())\r\n\t\t\tencoding = encoding + p.next();\r\n\t\t\r\n\t\twhile (p.hasNext()) {\r\n\t\t\tencoding = encoding + \" \" + p.next();\r\n\t\t}\r\n\t\treturn encoding;\r\n\t}",
"String getStateContainer();",
"@Override\n\tpublic java.lang.String getStateCode() {\n\t\treturn _state.getStateCode();\n\t}",
"@Override\n public void emit() {\n routeToProperty(Message.Property.ENCODER);\n }",
"public String encode() {\n return encodeToBase64(encKey.getEncoded()) + \":\" + encodeToBase64(macKey.getEncoded());\n }",
"@Override\n\tpublic String toString() {\n\t\tQueue<SimpleSFAState> worklist = new LinkedList<>();\n\t\tList<SimpleSFAState> seen = new ArrayList<>();\n\t\tworklist.add(ini);\n\t\tseen.add(ini);\n\t\tint numTransitions = 0;\n\t\tList<String> acceptingTransitionsList = new ArrayList<>();\n\t\tStringBuilder transitionsStr = new StringBuilder();\n\t\twhile (!worklist.isEmpty()) {\n\t\t\tSimpleSFAState s = worklist.remove();\n\t\t\tif (s.isAccepting()) {\n\t\t\t\tacceptingTransitionsList.add(\"s\" + seen.indexOf(s));\n\t\t\t}\n\n\t\t\t// add successors not checked yet\n\t\t\tfor (Map.Entry<SimpleSFAState, BDD> transition : s.getSucc().entrySet()) {\n\t\t\t\tif (!seen.contains(transition.getKey())) {\n\t\t\t\t\tworklist.add(transition.getKey());\n\t\t\t\t\tseen.add(transition.getKey());\n\t\t\t\t}\n\n\t\t\t\ttransitionsStr.append(\"s\" + seen.indexOf(s) + \" -> s\" + seen.indexOf(transition.getKey()) + \" : \"\n\t\t\t\t\t\t+ transition.getValue().toString() + System.lineSeparator());\n\t\t\t\t++numTransitions;\n\t\t\t}\n\t\t}\n\n\t\tStringBuilder prefix = new StringBuilder();\n\t\tprefix.append(\"Number of states: \" + seen.size() + System.lineSeparator());\n\t\tprefix.append(\"Number of accepting states: \" + acceptingTransitionsList.size() + System.lineSeparator());\n\t\tprefix.append(\"Accepting states:\" + System.lineSeparator() + acceptingTransitionsList + System.lineSeparator());\n\t\tprefix.append(\"Number of transitions: \" + numTransitions + System.lineSeparator());\n\t\tprefix.append(\"Transitions description:\" + System.lineSeparator());\n\n\t\treturn prefix.append(transitionsStr).toString();\n\t}",
"public String toString()\n {\n String out = \"<workflow name=\\\"\"+name+\"\\\">\\n\";\n for (int i=0;i<states.length;i++)\n {\n out += \"\\t\"+states[i].toString();\n }\n out += \"</workflow>\\n\";\n return out;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: com.google.android.gms.plus.internal.d | public interface C1326d extends IInterface {
/* renamed from: com.google.android.gms.plus.internal.d$a */
public static abstract class C1327a extends Binder implements C1326d {
/* renamed from: com.google.android.gms.plus.internal.d$a$a */
private static class C1328a implements C1326d {
/* renamed from: ky */
private IBinder f3425ky;
C1328a(IBinder iBinder) {
this.f3425ky = iBinder;
}
/* renamed from: a */
public void mo7372a(C0802fh fhVar) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
if (fhVar != null) {
obtain.writeInt(1);
fhVar.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
this.f3425ky.transact(4, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: a */
public void mo7373a(C1320b bVar) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
this.f3425ky.transact(8, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: a */
public void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
obtain.writeInt(i);
obtain.writeInt(i2);
obtain.writeInt(i3);
obtain.writeString(str);
this.f3425ky.transact(16, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: a */
public void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
obtain.writeInt(i);
obtain.writeString(str);
if (uri != null) {
obtain.writeInt(1);
uri.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
obtain.writeString(str2);
obtain.writeString(str3);
this.f3425ky.transact(14, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: a */
public void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
if (uri != null) {
obtain.writeInt(1);
uri.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
if (bundle != null) {
obtain.writeInt(1);
bundle.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
this.f3425ky.transact(9, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: a */
public void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
if (fhVar != null) {
obtain.writeInt(1);
fhVar.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
this.f3425ky.transact(45, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: a */
public void mo7378a(C1320b bVar, String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
obtain.writeString(str);
this.f3425ky.transact(1, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: a */
public void mo7379a(C1320b bVar, String str, String str2) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
obtain.writeString(str);
obtain.writeString(str2);
this.f3425ky.transact(2, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: a */
public void mo7380a(C1320b bVar, List<String> list) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
obtain.writeStringList(list);
this.f3425ky.transact(34, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
public IBinder asBinder() {
return this.f3425ky;
}
/* renamed from: b */
public void mo7381b(C1320b bVar) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
this.f3425ky.transact(19, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: b */
public void mo7382b(C1320b bVar, String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
obtain.writeString(str);
this.f3425ky.transact(3, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: c */
public void mo7383c(C1320b bVar, String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
obtain.writeString(str);
this.f3425ky.transact(18, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
public void clearDefaultAccount() throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
this.f3425ky.transact(6, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: d */
public void mo7385d(C1320b bVar, String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
obtain.writeString(str);
this.f3425ky.transact(40, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: e */
public void mo7386e(C1320b bVar, String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);
obtain.writeString(str);
this.f3425ky.transact(44, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
public String getAccountName() throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
this.f3425ky.transact(5, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readString();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: hl */
public String mo7388hl() throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
this.f3425ky.transact(41, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readString();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: hm */
public boolean mo7389hm() throws RemoteException {
boolean z = false;
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
this.f3425ky.transact(42, obtain, obtain2, 0);
obtain2.readException();
if (obtain2.readInt() != 0) {
z = true;
}
return z;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
/* renamed from: hn */
public String mo7390hn() throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
this.f3425ky.transact(43, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readString();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
public void removeMoment(String momentId) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
obtain.writeString(momentId);
this.f3425ky.transact(17, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
}
/* renamed from: aA */
public static C1326d m3858aA(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.plus.internal.IPlusService");
return (queryLocalInterface == null || !(queryLocalInterface instanceof C1326d)) ? new C1328a(iBinder) : (C1326d) queryLocalInterface;
}
/* JADX WARNING: type inference failed for: r4v0 */
/* JADX WARNING: type inference failed for: r4v1, types: [com.google.android.gms.internal.fh] */
/* JADX WARNING: type inference failed for: r4v2, types: [com.google.android.gms.internal.fh] */
/* JADX WARNING: type inference failed for: r4v4, types: [android.net.Uri] */
/* JADX WARNING: type inference failed for: r0v38, types: [android.net.Uri] */
/* JADX WARNING: type inference failed for: r4v5 */
/* JADX WARNING: type inference failed for: r4v6 */
/* JADX WARNING: Multi-variable type inference failed. Error: jadx.core.utils.exceptions.JadxRuntimeException: No candidate types for var: r4v0
assigns: [?[int, float, boolean, short, byte, char, OBJECT, ARRAY], ?[OBJECT, ARRAY], com.google.android.gms.internal.fh]
uses: [com.google.android.gms.internal.fh, android.net.Uri]
mth insns count: 188
at jadx.core.dex.visitors.typeinference.TypeSearch.fillTypeCandidates(TypeSearch.java:237)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at jadx.core.dex.visitors.typeinference.TypeSearch.run(TypeSearch.java:53)
at jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.runMultiVariableSearch(TypeInferenceVisitor.java:99)
at jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.visit(TypeInferenceVisitor.java:92)
at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:27)
at jadx.core.dex.visitors.DepthTraversal.lambda$visit$1(DepthTraversal.java:14)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)
at jadx.core.dex.visitors.DepthTraversal.lambda$visit$0(DepthTraversal.java:13)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:13)
at jadx.core.ProcessClass.process(ProcessClass.java:30)
at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)
at jadx.api.JavaClass.decompile(JavaClass.java:62)
at jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)
*/
/* JADX WARNING: Unknown variable types count: 3 */
/* Code decompiled incorrectly, please refer to instructions dump. */
public boolean onTransact(int r9, android.os.Parcel r10, android.os.Parcel r11, int r12) throws android.os.RemoteException {
/*
r8 = this;
r4 = 0
r7 = 1
switch(r9) {
case 1: goto L_0x0010;
case 2: goto L_0x0028;
case 3: goto L_0x0044;
case 4: goto L_0x005c;
case 5: goto L_0x0076;
case 6: goto L_0x0086;
case 8: goto L_0x0093;
case 9: goto L_0x00a8;
case 14: goto L_0x00de;
case 16: goto L_0x0113;
case 17: goto L_0x0139;
case 18: goto L_0x014a;
case 19: goto L_0x0163;
case 34: goto L_0x0178;
case 40: goto L_0x0191;
case 41: goto L_0x01aa;
case 42: goto L_0x01bb;
case 43: goto L_0x01d1;
case 44: goto L_0x01e2;
case 45: goto L_0x01fb;
case 1598968902: goto L_0x000a;
default: goto L_0x0005;
}
L_0x0005:
boolean r7 = super.onTransact(r9, r10, r11, r12)
L_0x0009:
return r7
L_0x000a:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r11.writeString(r0)
goto L_0x0009
L_0x0010:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
java.lang.String r1 = r10.readString()
r8.mo7378a(r0, r1)
r11.writeNoException()
goto L_0x0009
L_0x0028:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
java.lang.String r1 = r10.readString()
java.lang.String r2 = r10.readString()
r8.mo7379a(r0, r1, r2)
r11.writeNoException()
goto L_0x0009
L_0x0044:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
java.lang.String r1 = r10.readString()
r8.mo7382b(r0, r1)
r11.writeNoException()
goto L_0x0009
L_0x005c:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
int r0 = r10.readInt()
if (r0 == 0) goto L_0x0074
com.google.android.gms.internal.fi r0 = com.google.android.gms.internal.C0802fh.CREATOR
com.google.android.gms.internal.fh r0 = r0.createFromParcel(r10)
L_0x006d:
r8.mo7372a(r0)
r11.writeNoException()
goto L_0x0009
L_0x0074:
r0 = r4
goto L_0x006d
L_0x0076:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
java.lang.String r0 = r8.getAccountName()
r11.writeNoException()
r11.writeString(r0)
goto L_0x0009
L_0x0086:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
r8.clearDefaultAccount()
r11.writeNoException()
goto L_0x0009
L_0x0093:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
r8.mo7373a(r0)
r11.writeNoException()
goto L_0x0009
L_0x00a8:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r2 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
int r0 = r10.readInt()
if (r0 == 0) goto L_0x00da
android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR
java.lang.Object r0 = r0.createFromParcel(r10)
android.net.Uri r0 = (android.net.Uri) r0
r1 = r0
L_0x00c4:
int r0 = r10.readInt()
if (r0 == 0) goto L_0x00dc
android.os.Parcelable$Creator r0 = android.os.Bundle.CREATOR
java.lang.Object r0 = r0.createFromParcel(r10)
android.os.Bundle r0 = (android.os.Bundle) r0
L_0x00d2:
r8.mo7376a(r2, r1, r0)
r11.writeNoException()
goto L_0x0009
L_0x00da:
r1 = r4
goto L_0x00c4
L_0x00dc:
r0 = r4
goto L_0x00d2
L_0x00de:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
int r2 = r10.readInt()
java.lang.String r3 = r10.readString()
int r0 = r10.readInt()
if (r0 == 0) goto L_0x0102
android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR
java.lang.Object r0 = r0.createFromParcel(r10)
android.net.Uri r0 = (android.net.Uri) r0
r4 = r0
L_0x0102:
java.lang.String r5 = r10.readString()
java.lang.String r6 = r10.readString()
r0 = r8
r0.mo7375a(r1, r2, r3, r4, r5, r6)
r11.writeNoException()
goto L_0x0009
L_0x0113:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
int r2 = r10.readInt()
int r3 = r10.readInt()
int r4 = r10.readInt()
java.lang.String r5 = r10.readString()
r0 = r8
r0.mo7374a(r1, r2, r3, r4, r5)
r11.writeNoException()
goto L_0x0009
L_0x0139:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
java.lang.String r0 = r10.readString()
r8.removeMoment(r0)
r11.writeNoException()
goto L_0x0009
L_0x014a:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
java.lang.String r1 = r10.readString()
r8.mo7383c(r0, r1)
r11.writeNoException()
goto L_0x0009
L_0x0163:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
r8.mo7381b(r0)
r11.writeNoException()
goto L_0x0009
L_0x0178:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
java.util.ArrayList r1 = r10.createStringArrayList()
r8.mo7380a(r0, r1)
r11.writeNoException()
goto L_0x0009
L_0x0191:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
java.lang.String r1 = r10.readString()
r8.mo7385d(r0, r1)
r11.writeNoException()
goto L_0x0009
L_0x01aa:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
java.lang.String r0 = r8.mo7388hl()
r11.writeNoException()
r11.writeString(r0)
goto L_0x0009
L_0x01bb:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
boolean r0 = r8.mo7389hm()
r11.writeNoException()
if (r0 == 0) goto L_0x01cf
r0 = r7
L_0x01ca:
r11.writeInt(r0)
goto L_0x0009
L_0x01cf:
r0 = 0
goto L_0x01ca
L_0x01d1:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
java.lang.String r0 = r8.mo7390hn()
r11.writeNoException()
r11.writeString(r0)
goto L_0x0009
L_0x01e2:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
java.lang.String r1 = r10.readString()
r8.mo7386e(r0, r1)
r11.writeNoException()
goto L_0x0009
L_0x01fb:
java.lang.String r0 = "com.google.android.gms.plus.internal.IPlusService"
r10.enforceInterface(r0)
android.os.IBinder r0 = r10.readStrongBinder()
com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)
int r1 = r10.readInt()
if (r1 == 0) goto L_0x0214
com.google.android.gms.internal.fi r1 = com.google.android.gms.internal.C0802fh.CREATOR
com.google.android.gms.internal.fh r4 = r1.createFromParcel(r10)
L_0x0214:
r8.mo7377a(r0, r4)
r11.writeNoException()
goto L_0x0009
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.plus.internal.C1326d.C1327a.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean");
}
}
/* renamed from: a */
void mo7372a(C0802fh fhVar) throws RemoteException;
/* renamed from: a */
void mo7373a(C1320b bVar) throws RemoteException;
/* renamed from: a */
void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException;
/* renamed from: a */
void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException;
/* renamed from: a */
void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException;
/* renamed from: a */
void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException;
/* renamed from: a */
void mo7378a(C1320b bVar, String str) throws RemoteException;
/* renamed from: a */
void mo7379a(C1320b bVar, String str, String str2) throws RemoteException;
/* renamed from: a */
void mo7380a(C1320b bVar, List<String> list) throws RemoteException;
/* renamed from: b */
void mo7381b(C1320b bVar) throws RemoteException;
/* renamed from: b */
void mo7382b(C1320b bVar, String str) throws RemoteException;
/* renamed from: c */
void mo7383c(C1320b bVar, String str) throws RemoteException;
void clearDefaultAccount() throws RemoteException;
/* renamed from: d */
void mo7385d(C1320b bVar, String str) throws RemoteException;
/* renamed from: e */
void mo7386e(C1320b bVar, String str) throws RemoteException;
String getAccountName() throws RemoteException;
/* renamed from: hl */
String mo7388hl() throws RemoteException;
/* renamed from: hm */
boolean mo7389hm() throws RemoteException;
/* renamed from: hn */
String mo7390hn() throws RemoteException;
void removeMoment(String str) throws RemoteException;
} | [
"public interface C1881a {\n void m7943a(zzmk com_google_android_gms_internal_zzmk);\n }",
"public interface GoogleApiClient\n{\n public static final class Builder\n {\n\n private final Context mContext;\n private Account zzFN;\n private Looper zzMc;\n private final Set zzMe;\n private int zzMf;\n private View zzMg;\n private String zzMh;\n private String zzMi;\n private final Map zzMj;\n private final Map zzMk;\n private FragmentActivity zzMl;\n private int zzMm;\n private OnConnectionFailedListener zzMn;\n private Api.zzb zzMo;\n private final Set zzMp;\n private final Set zzMq;\n private com.google.android.gms.internal.zzus.zza zzMr;\n\n private GoogleApiClient zzhZ()\n {\n zzh zzh1 = zzh.zza(zzMl);\n GoogleApiClient googleapiclient = zzh1.zzar(zzMm);\n Object obj = googleapiclient;\n if (googleapiclient == null)\n {\n obj = new zzd(mContext.getApplicationContext(), zzMc, zzhY(), zzMo, zzMj, zzMk, zzMp, zzMq, zzMm);\n }\n zzh1.zza(zzMm, ((GoogleApiClient) (obj)), zzMn);\n return ((GoogleApiClient) (obj));\n }\n\n public Builder addApi(Api api)\n {\n zzMj.put(api, null);\n api = api.zzhU();\n int j = api.size();\n for (int i = 0; i < j; i++)\n {\n zzMe.add(((Scope)api.get(i)).zzio());\n }\n\n return this;\n }\n\n public Builder addApi(Api api, Api.ApiOptions.HasOptions hasoptions)\n {\n zzx.zzb(hasoptions, \"Null options are not permitted for this Api\");\n zzMj.put(api, hasoptions);\n api = api.zzhU();\n int j = api.size();\n for (int i = 0; i < j; i++)\n {\n zzMe.add(((Scope)api.get(i)).zzio());\n }\n\n return this;\n }\n\n public Builder addConnectionCallbacks(ConnectionCallbacks connectioncallbacks)\n {\n zzMp.add(connectioncallbacks);\n return this;\n }\n\n public Builder addOnConnectionFailedListener(OnConnectionFailedListener onconnectionfailedlistener)\n {\n zzMq.add(onconnectionfailedlistener);\n return this;\n }\n\n public Builder addScope(Scope scope)\n {\n zzMe.add(scope.zzio());\n return this;\n }\n\n public GoogleApiClient build()\n {\n boolean flag;\n if (!zzMj.isEmpty())\n {\n flag = true;\n } else\n {\n flag = false;\n }\n zzx.zzb(flag, \"must call addApi() to add at least one API\");\n if (zzMm >= 0)\n {\n return zzhZ();\n } else\n {\n return new zzd(mContext, zzMc, zzhY(), zzMo, zzMj, zzMk, zzMp, zzMq, -1);\n }\n }\n\n public Builder enableAutoManage(FragmentActivity fragmentactivity, int i, OnConnectionFailedListener onconnectionfailedlistener)\n {\n boolean flag;\n if (i >= 0)\n {\n flag = true;\n } else\n {\n flag = false;\n }\n zzx.zzb(flag, \"clientId must be non-negative\");\n zzMm = i;\n zzMl = (FragmentActivity)zzx.zzb(fragmentactivity, \"Null activity is not permitted.\");\n zzMn = onconnectionfailedlistener;\n return this;\n }\n\n public Builder requestServerAuthCode(String s, ServerAuthCodeCallbacks serverauthcodecallbacks)\n {\n zzMr.zza(s, serverauthcodecallbacks);\n return this;\n }\n\n public Builder setAccountName(String s)\n {\n if (s == null)\n {\n s = null;\n } else\n {\n s = new Account(s, \"com.google\");\n }\n zzFN = s;\n return this;\n }\n\n public Builder setGravityForPopups(int i)\n {\n zzMf = i;\n return this;\n }\n\n public Builder setHandler(Handler handler)\n {\n zzx.zzb(handler, \"Handler must not be null\");\n zzMc = handler.getLooper();\n return this;\n }\n\n public Builder setViewForPopups(View view)\n {\n zzMg = view;\n return this;\n }\n\n public Builder useDefaultAccount()\n {\n return setAccountName(\"<<default account>>\");\n }\n\n public zzf zzhY()\n {\n return new zzf(zzFN, zzMe, zzMf, zzMg, zzMh, zzMi, zzMr.zzsy());\n }\n\n public Builder(Context context)\n {\n zzMe = new HashSet();\n zzMj = new HashMap();\n zzMk = new HashMap();\n zzMm = -1;\n zzMp = new HashSet();\n zzMq = new HashSet();\n zzMr = new com.google.android.gms.internal.zzus.zza();\n mContext = context;\n zzMc = context.getMainLooper();\n zzMh = context.getPackageName();\n zzMi = context.getClass().getName();\n zzMo = zzup.zzGS;\n }\n\n public Builder(Context context, ConnectionCallbacks connectioncallbacks, OnConnectionFailedListener onconnectionfailedlistener)\n {\n this(context);\n zzx.zzb(connectioncallbacks, \"Must provide a connected listener\");\n zzMp.add(connectioncallbacks);\n zzx.zzb(onconnectionfailedlistener, \"Must provide a connection failed listener\");\n zzMq.add(onconnectionfailedlistener);\n }\n }\n\n public static interface ConnectionCallbacks\n {\n\n public static final int CAUSE_NETWORK_LOST = 2;\n public static final int CAUSE_SERVICE_DISCONNECTED = 1;\n\n public abstract void onConnected(Bundle bundle);\n\n public abstract void onConnectionSuspended(int i);\n }\n\n public static interface OnConnectionFailedListener\n {\n\n public abstract void onConnectionFailed(ConnectionResult connectionresult);\n }\n\n public static interface ServerAuthCodeCallbacks\n {\n\n public abstract CheckResult onCheckServerAuthorization(String s, Set set);\n\n public abstract boolean onUploadServerAuthCode(String s, String s1);\n }\n\n public static class ServerAuthCodeCallbacks.CheckResult\n {\n\n private Set zzMe;\n private boolean zzMs;\n\n public static ServerAuthCodeCallbacks.CheckResult newAuthNotRequiredResult()\n {\n return new ServerAuthCodeCallbacks.CheckResult(false, null);\n }\n\n public static ServerAuthCodeCallbacks.CheckResult newAuthRequiredResult(Set set)\n {\n boolean flag;\n if (set != null && !set.isEmpty())\n {\n flag = true;\n } else\n {\n flag = false;\n }\n zzx.zzb(flag, \"A non-empty scope set is required if further auth is needed.\");\n return new ServerAuthCodeCallbacks.CheckResult(true, set);\n }\n\n public boolean zzic()\n {\n return zzMs;\n }\n\n public Set zzid()\n {\n return zzMe;\n }\n\n private ServerAuthCodeCallbacks.CheckResult(boolean flag, Set set)\n {\n zzMs = flag;\n zzMe = set;\n }\n }\n\n public static interface zza\n {\n\n public abstract void zzia();\n\n public abstract void zzib();\n }\n\n\n public abstract ConnectionResult blockingConnect();\n\n public abstract ConnectionResult blockingConnect(long l, TimeUnit timeunit);\n\n public abstract PendingResult clearDefaultAccountAndReconnect();\n\n public abstract void connect();\n\n public abstract void disconnect();\n\n public abstract void dump(String s, FileDescriptor filedescriptor, PrintWriter printwriter, String as[]);\n\n public abstract Context getContext();\n\n public abstract Looper getLooper();\n\n public abstract int getSessionId();\n\n public abstract boolean isConnected();\n\n public abstract boolean isConnecting();\n\n public abstract boolean isConnectionCallbacksRegistered(ConnectionCallbacks connectioncallbacks);\n\n public abstract boolean isConnectionFailedListenerRegistered(OnConnectionFailedListener onconnectionfailedlistener);\n\n public abstract void reconnect();\n\n public abstract void registerConnectionCallbacks(ConnectionCallbacks connectioncallbacks);\n\n public abstract void registerConnectionFailedListener(OnConnectionFailedListener onconnectionfailedlistener);\n\n public abstract void stopAutoManage(FragmentActivity fragmentactivity);\n\n public abstract void unregisterConnectionCallbacks(ConnectionCallbacks connectioncallbacks);\n\n public abstract void unregisterConnectionFailedListener(OnConnectionFailedListener onconnectionfailedlistener);\n\n public abstract Api.zza zza(Api.zzc zzc);\n\n public abstract zza.zza zza(zza.zza zza1);\n\n public abstract boolean zza(Api api);\n\n public abstract boolean zza(Scope scope);\n\n public abstract zza.zza zzb(zza.zza zza1);\n\n public abstract boolean zzb(Api api);\n\n public abstract zze zzf(Object obj);\n}",
"@SuppressWarnings(\"deprecation\")\n\tprivate void setUpGooglePlus() {\n\t\tmGoogleApiClient = new GoogleApiClient.Builder(this)\n\t\t.addConnectionCallbacks(this)\n\t\t.addOnConnectionFailedListener(this)\n\t\t.addApi(Plus.API)\n\t\t.addScope(Plus.SCOPE_PLUS_LOGIN)\n\t\t.build();\n\n\t\tgBar = (LinearLayout) findViewById(R.id.google_plus_bar);\t\t\n\t\tgDisconnect = (ImageButton) findViewById(R.id.googlePlusDisconnect);\n\t\tgConnect = (ImageButton) findViewById(R.id.googlePlusConnect);\n\t\tgProfBtn = (ImageButton) findViewById(R.id.imgGooglePlus);\n\t\tgName = (TextView) findViewById(R.id.google_login_title);\n\n\t\tgDisconnect.setOnClickListener(this);\n\t\tgConnect.setOnClickListener(this);\n\t\tgProfBtn.setOnClickListener(this);\n\n\t\tif (!isConnected) {\n\t\t\tgConnect.setVisibility(View.GONE);\n\t\t\tgDisconnect.setVisibility(View.GONE);\n\t\t}\n\n\t\tif (googlePlusAuthorized && isConnected) {\n\t\t\tmGoogleApiClient.connect();\n\t\t}\n\t}",
"private void handle_GooglePlus_SignIn(GoogleSignInResult result) {\n Log.i(TAG , \"IN handle_GooglePlus_SignIn\") ;\n GoogleSignInAccount account = result.getSignInAccount();\n AuthCredential credential = GoogleAuthProvider.getCredential(account.getIdToken() , null);\n mAuth.signInWithCredential(credential)\n .addOnCompleteListener(SignIn.this ,new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.i(TAG , \"IN handle_GooglePlus_SignIn + OnComplete \") ;\n\n if(!task.isSuccessful()){\n Toast.makeText(SignIn.this ,\"Login Failed ... , Try Again !\" , Toast.LENGTH_SHORT ).show();\n }\n\n }\n }) ;\n }",
"private class <init>\n implements com.google.android.gms.common.api.eApiClient.OnConnectionFailedListener\n{\n\n final en zu;\n\n public void onConnectionFailed(ConnectionResult connectionresult)\n {\n en.i(zu);\n }",
"public final void zzh(@android.support.annotation.NonNull com.google.firebase.auth.FirebaseAuth r12) {\n /*\n r11 = this;\n com.google.android.gms.common.internal.Preconditions.checkNotNull(r12)\n com.google.firebase.FirebaseApp r0 = r12.zzcc()\n android.content.Context r0 = r0.getApplicationContext()\n r1 = 0\n java.lang.String r2 = \"com.google.firebase.auth.internal.ProcessDeathHelper\"\n android.content.SharedPreferences r0 = r0.getSharedPreferences(r2, r1)\n java.lang.String r2 = \"\"\n java.lang.String r3 = \"firebaseAppName\"\n java.lang.String r3 = r0.getString(r3, r2)\n com.google.firebase.FirebaseApp r4 = r12.zzcc()\n java.lang.String r4 = r4.getName()\n boolean r3 = r4.equals(r3)\n if (r3 != 0) goto L_0x002a\n return\n L_0x002a:\n java.lang.String r3 = \"verifyAssertionRequest\"\n boolean r4 = r0.contains(r3)\n r5 = 0\n java.lang.String r7 = \"timestamp\"\n if (r4 == 0) goto L_0x00f1\n java.lang.String r3 = r0.getString(r3, r2)\n android.os.Parcelable$Creator<com.google.android.gms.internal.firebase_auth.zzdr> r4 = com.google.android.gms.internal.firebase_auth.zzdr.CREATOR\n com.google.android.gms.common.internal.safeparcel.SafeParcelable r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer.deserializeFromString(r3, r4)\n com.google.android.gms.internal.firebase_auth.zzdr r3 = (com.google.android.gms.internal.firebase_auth.zzdr) r3\n java.lang.String r4 = \"operation\"\n java.lang.String r4 = r0.getString(r4, r2)\n r8 = 0\n java.lang.String r9 = \"tenantId\"\n java.lang.String r9 = r0.getString(r9, r8)\n long r5 = r0.getLong(r7, r5)\n r11.zzrv = r5\n java.lang.String r5 = \"firebaseUserUid\"\n java.lang.String r2 = r0.getString(r5, r2)\n if (r9 == 0) goto L_0x0061\n r12.zzc(r9)\n L_0x0061:\n r5 = -1\n int r6 = r4.hashCode()\n r7 = -1843829902(0xffffffff92196372, float:-4.8400863E-28)\n r9 = 2\n r10 = 1\n if (r6 == r7) goto L_0x008b\n r7 = -286760092(0xffffffffeee86364, float:-3.596034E28)\n if (r6 == r7) goto L_0x0081\n r7 = 1731327805(0x6731f73d, float:8.404196E23)\n if (r6 == r7) goto L_0x0078\n L_0x0077:\n goto L_0x0095\n L_0x0078:\n java.lang.String r6 = \"com.google.firebase.auth.internal.SIGN_IN\"\n boolean r4 = r4.equals(r6)\n if (r4 == 0) goto L_0x0077\n goto L_0x0096\n L_0x0081:\n java.lang.String r1 = \"com.google.firebase.auth.internal.LINK\"\n boolean r1 = r4.equals(r1)\n if (r1 == 0) goto L_0x0077\n r1 = 1\n goto L_0x0096\n L_0x008b:\n java.lang.String r1 = \"com.google.firebase.auth.internal.REAUTHENTICATE\"\n boolean r1 = r4.equals(r1)\n if (r1 == 0) goto L_0x0077\n r1 = 2\n goto L_0x0096\n L_0x0095:\n r1 = -1\n L_0x0096:\n if (r1 == 0) goto L_0x00e1\n if (r1 == r10) goto L_0x00c0\n if (r1 == r9) goto L_0x009f\n r11.zzru = r8\n goto L_0x00ed\n L_0x009f:\n com.google.firebase.auth.FirebaseUser r1 = r12.getCurrentUser()\n java.lang.String r1 = r1.getUid()\n boolean r1 = r1.equals(r2)\n if (r1 == 0) goto L_0x00bd\n com.google.firebase.auth.FirebaseUser r12 = r12.getCurrentUser()\n com.google.firebase.auth.zzd r1 = com.google.firebase.auth.zzd.zza(r3)\n com.google.android.gms.tasks.Task r12 = r12.reauthenticateAndRetrieveData(r1)\n r11.zzru = r12\n goto L_0x00ed\n L_0x00bd:\n r11.zzru = r8\n goto L_0x00ed\n L_0x00c0:\n com.google.firebase.auth.FirebaseUser r1 = r12.getCurrentUser()\n java.lang.String r1 = r1.getUid()\n boolean r1 = r1.equals(r2)\n if (r1 == 0) goto L_0x00de\n com.google.firebase.auth.FirebaseUser r12 = r12.getCurrentUser()\n com.google.firebase.auth.zzd r1 = com.google.firebase.auth.zzd.zza(r3)\n com.google.android.gms.tasks.Task r12 = r12.linkWithCredential(r1)\n r11.zzru = r12\n goto L_0x00ed\n L_0x00de:\n r11.zzru = r8\n goto L_0x00ed\n L_0x00e1:\n com.google.firebase.auth.zzd r1 = com.google.firebase.auth.zzd.zza(r3)\n com.google.android.gms.tasks.Task r12 = r12.signInWithCredential(r1)\n r11.zzru = r12\n L_0x00ed:\n zza(r0)\n return\n L_0x00f1:\n java.lang.String r12 = \"statusCode\"\n boolean r1 = r0.contains(r12)\n if (r1 == 0) goto L_0x011f\n r1 = 17062(0x42a6, float:2.3909E-41)\n int r12 = r0.getInt(r12, r1)\n java.lang.String r1 = \"statusMessage\"\n java.lang.String r1 = r0.getString(r1, r2)\n com.google.android.gms.common.api.Status r2 = new com.google.android.gms.common.api.Status\n r2.<init>(r12, r1)\n long r3 = r0.getLong(r7, r5)\n r11.zzrv = r3\n zza(r0)\n com.google.firebase.FirebaseException r12 = com.google.firebase.auth.api.internal.zzds.zzb(r2)\n com.google.android.gms.tasks.Task r12 = com.google.android.gms.tasks.Tasks.forException(r12)\n r11.zzru = r12\n return\n L_0x011f:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.auth.internal.zzac.zzh(com.google.firebase.auth.FirebaseAuth):void\");\n }",
"private GoogleApiClient buildGoogleApiClient() {\n GoogleApiClient.Builder builder = new GoogleApiClient.Builder(this);\n for (String scope : AUTH_SCOPES) {\n builder.addScope(new Scope(scope));\n }\n\n builder.addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(Plus.API);\n\n return builder.build();\n }",
"private void createGoogleApi() {\n Log.d(TAG, \"createGoogleApi()\");\n if (googleApiClient == null) {\n googleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n }",
"private void acquireGooglePlayServices() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n final int connectionStatusCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\r\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\r\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\r\n }\r\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t switch (requestCode) {\n\t case REQUEST_CODE_RECOVER_PLAY_SERVICES:\n\t if (resultCode == RESULT_CANCELED) {\n\t Toast.makeText(this, \"Google Play Services must be installed.\",\n\t Toast.LENGTH_SHORT).show();\n\t finish();\n\t }\n\t return;\n\t }\n\t super.onActivityResult(requestCode, resultCode, data);\n\t}",
"String getPlus4_contestable();",
"public interface GoogleApiClient\n{\n public static final class Builder\n {\n\n private Looper AS;\n private final Set AT;\n private int AU;\n private View AV;\n private String AW;\n private final Map AX;\n private final Set AY;\n private final Set AZ;\n private final Context mContext;\n private String wG;\n\n public Builder addApi(Api api)\n {\n AX.put(api, null);\n api = api.dZ();\n int j = api.size();\n for (int i = 0; i < j; i++)\n {\n AT.add(((Scope)api.get(i)).en());\n }\n\n return this;\n }\n\n public Builder addApi(Api api, Api.ApiOptions.HasOptions hasoptions)\n {\n fq.b(hasoptions, \"Null options are not permitted for this Api\");\n AX.put(api, hasoptions);\n api = api.dZ();\n int j = api.size();\n for (int i = 0; i < j; i++)\n {\n AT.add(((Scope)api.get(i)).en());\n }\n\n return this;\n }\n\n public Builder addConnectionCallbacks(ConnectionCallbacks connectioncallbacks)\n {\n AY.add(connectioncallbacks);\n return this;\n }\n\n public Builder addOnConnectionFailedListener(OnConnectionFailedListener onconnectionfailedlistener)\n {\n AZ.add(onconnectionfailedlistener);\n return this;\n }\n\n public Builder addScope(Scope scope)\n {\n AT.add(scope.en());\n return this;\n }\n\n public GoogleApiClient build()\n {\n return new b(mContext, AS, eh(), AX, AY, AZ);\n }\n\n public fc eh()\n {\n return new fc(wG, AT, AU, AV, AW);\n }\n\n public Builder setAccountName(String s)\n {\n wG = s;\n return this;\n }\n\n public Builder setGravityForPopups(int i)\n {\n AU = i;\n return this;\n }\n\n public Builder setHandler(Handler handler)\n {\n fq.b(handler, \"Handler must not be null\");\n AS = handler.getLooper();\n return this;\n }\n\n public Builder setViewForPopups(View view)\n {\n AV = view;\n return this;\n }\n\n public Builder useDefaultAccount()\n {\n return setAccountName(\"<<default account>>\");\n }\n\n public Builder(Context context)\n {\n AT = new HashSet();\n AX = new HashMap();\n AY = new HashSet();\n AZ = new HashSet();\n mContext = context;\n AS = context.getMainLooper();\n AW = context.getPackageName();\n }\n\n public Builder(Context context, ConnectionCallbacks connectioncallbacks, OnConnectionFailedListener onconnectionfailedlistener)\n {\n this(context);\n fq.b(connectioncallbacks, \"Must provide a connected listener\");\n AY.add(connectioncallbacks);\n fq.b(onconnectionfailedlistener, \"Must provide a connection failed listener\");\n AZ.add(onconnectionfailedlistener);\n }\n }\n\n public static interface ConnectionCallbacks\n {\n\n public static final int CAUSE_NETWORK_LOST = 2;\n public static final int CAUSE_SERVICE_DISCONNECTED = 1;\n\n public abstract void onConnected(Bundle bundle);\n\n public abstract void onConnectionSuspended(int i);\n }\n\n public static interface OnConnectionFailedListener\n extends com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener\n {\n\n public abstract void onConnectionFailed(ConnectionResult connectionresult);\n }\n\n\n public abstract Api.a a(Api.c c);\n\n public abstract a.b a(a.b b1);\n\n public abstract a.b b(a.b b1);\n\n public abstract ConnectionResult blockingConnect(long l, TimeUnit timeunit);\n\n public abstract void connect();\n\n public abstract void disconnect();\n\n public abstract Looper getLooper();\n\n public abstract boolean isConnected();\n\n public abstract boolean isConnecting();\n\n public abstract boolean isConnectionCallbacksRegistered(ConnectionCallbacks connectioncallbacks);\n\n public abstract boolean isConnectionFailedListenerRegistered(OnConnectionFailedListener onconnectionfailedlistener);\n\n public abstract void reconnect();\n\n public abstract void registerConnectionCallbacks(ConnectionCallbacks connectioncallbacks);\n\n public abstract void registerConnectionFailedListener(OnConnectionFailedListener onconnectionfailedlistener);\n\n public abstract void unregisterConnectionCallbacks(ConnectionCallbacks connectioncallbacks);\n\n public abstract void unregisterConnectionFailedListener(OnConnectionFailedListener onconnectionfailedlistener);\n}",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"private void createGoogleApi() {\n Log.d(TAG, \"createGoogleApi()\");\n if ( googleApiClient == null ) {\n googleApiClient = new GoogleApiClient.Builder( this )\n .addApi(Places.GEO_DATA_API)\n .addConnectionCallbacks( this )\n .addOnConnectionFailedListener( this )\n .addApi( LocationServices.API )\n .build();\n }\n\n }",
"public GoogleApiRecord() {\n super(GoogleApi.GOOGLE_API);\n }",
"private void createGoogleApiClient() {\n googleApiClient = new GoogleApiClient.Builder(getContext())\n .addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN)\n .addApi(Games.API).addScope(Games.SCOPE_GAMES)\n .build();\n\n }",
"public interface GooglePlayClientProvider {\n\n /**\n * @return The GoogleApiClient Object reference\n */\n GoogleApiClient getGoogleApiClient();\n\n}",
"public interface C0190d extends IInterface {\n\n /* renamed from: com.google.android.gms.dynamic.d$a */\n public static abstract class C0575a extends Binder implements C0190d {\n\n /* renamed from: com.google.android.gms.dynamic.d$a$a */\n private static class C0574a implements C0190d {\n private IBinder kn;\n\n C0574a(IBinder iBinder) {\n this.kn = iBinder;\n }\n\n public IBinder asBinder() {\n return this.kn;\n }\n }\n\n public C0575a() {\n attachInterface(this, \"com.google.android.gms.dynamic.IObjectWrapper\");\n }\n\n /* renamed from: K */\n public static C0190d m1749K(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.dynamic.IObjectWrapper\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C0190d)) ? new C0574a(iBinder) : (C0190d) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {\n switch (code) {\n case 1598968902:\n reply.writeString(\"com.google.android.gms.dynamic.IObjectWrapper\");\n return true;\n default:\n return super.onTransact(code, data, reply, flags);\n }\n }\n }\n}",
"public interface C5326a {\n\n /* renamed from: com.google.android.m4b.maps.dd.a$a */\n public static final class C7532a extends C6667b<C7532a> {\n /* renamed from: a */\n public final void mo5392a(C5301a c5301a) {\n super.mo5392a(c5301a);\n }\n\n /* renamed from: b */\n protected final int mo5393b() {\n return super.mo5393b();\n }\n }\n\n /* renamed from: com.google.android.m4b.maps.dd.a$b */\n public static final class C7533b extends C6667b<C7533b> {\n /* renamed from: a */\n public final void mo5392a(C5301a c5301a) {\n String str = null;\n if (!str.equals(\"\")) {\n c5301a.m23509a(2, str);\n }\n if (!str.equals(\"\")) {\n c5301a.m23509a(3, str);\n }\n super.mo5392a(c5301a);\n }\n\n /* renamed from: b */\n protected final int mo5393b() {\n int b = super.mo5393b();\n String str = null;\n if (!str.equals(\"\")) {\n b += C5301a.m23494b(2, str);\n }\n return !str.equals(\"\") ? b + C5301a.m23494b(3, str) : b;\n }\n }\n\n /* renamed from: com.google.android.m4b.maps.dd.a$c */\n public static final class C7534c extends C6667b<C7534c> {\n /* renamed from: a */\n public final void mo5392a(C5301a c5301a) {\n if (!Arrays.equals(null, C5309j.f19699a)) {\n c5301a.m23511a(1, null);\n }\n super.mo5392a(c5301a);\n }\n\n /* renamed from: b */\n protected final int mo5393b() {\n int b = super.mo5393b();\n return !Arrays.equals(null, C5309j.f19699a) ? b + C5301a.m23496b(1, null) : b;\n }\n }\n\n /* renamed from: com.google.android.m4b.maps.dd.a$d */\n public static final class C7535d extends C6667b<C7535d> {\n /* renamed from: a */\n public long f28127a;\n /* renamed from: b */\n public byte[] f28128b;\n /* renamed from: c */\n public long f28129c;\n /* renamed from: d */\n private long f28130d;\n /* renamed from: e */\n private String f28131e;\n /* renamed from: f */\n private int f28132f;\n /* renamed from: g */\n private int f28133g;\n /* renamed from: h */\n private boolean f28134h;\n /* renamed from: i */\n private C7536e[] f28135i;\n /* renamed from: j */\n private C7533b f28136j;\n /* renamed from: k */\n private byte[] f28137k;\n /* renamed from: l */\n private byte[] f28138l;\n /* renamed from: o */\n private C7532a f28139o;\n /* renamed from: p */\n private String f28140p;\n /* renamed from: q */\n private C7534c f28141q;\n /* renamed from: r */\n private byte[] f28142r;\n\n public C7535d() {\n this.f28127a = 0;\n this.f28130d = 0;\n this.f28131e = \"\";\n this.f28132f = 0;\n this.f28133g = 0;\n this.f28134h = false;\n this.f28135i = C7536e.m33212a();\n this.f28136j = null;\n this.f28128b = C5309j.f19699a;\n this.f28137k = C5309j.f19699a;\n this.f28138l = C5309j.f19699a;\n this.f28139o = null;\n this.f28140p = \"\";\n this.f28129c = DefaultFastMatchValues.PREVIEW_MIN_TIME_IN_MILLIS;\n this.f28141q = null;\n this.f28142r = C5309j.f19699a;\n this.m = null;\n this.n = -1;\n }\n\n /* renamed from: a */\n public final void mo5392a(C5301a c5301a) {\n if (this.f28127a != 0) {\n c5301a.m23507a(1, this.f28127a);\n }\n if (!this.f28131e.equals(\"\")) {\n c5301a.m23509a(2, this.f28131e);\n }\n if (this.f28135i != null && this.f28135i.length > 0) {\n for (C5306g c5306g : this.f28135i) {\n if (c5306g != null) {\n c5301a.m23508a(3, c5306g);\n }\n }\n }\n if (!Arrays.equals(this.f28128b, C5309j.f19699a)) {\n c5301a.m23511a(6, this.f28128b);\n }\n if (!Arrays.equals(this.f28137k, C5309j.f19699a)) {\n c5301a.m23511a(8, this.f28137k);\n }\n if (!Arrays.equals(this.f28138l, C5309j.f19699a)) {\n c5301a.m23511a(13, this.f28138l);\n }\n if (!this.f28140p.equals(\"\")) {\n c5301a.m23509a(14, this.f28140p);\n }\n if (this.f28129c != DefaultFastMatchValues.PREVIEW_MIN_TIME_IN_MILLIS) {\n c5301a.m23515b(15, this.f28129c);\n }\n if (!Arrays.equals(this.f28142r, C5309j.f19699a)) {\n c5301a.m23511a(18, this.f28142r);\n }\n super.mo5392a(c5301a);\n }\n\n /* renamed from: b */\n protected final int mo5393b() {\n int b = super.mo5393b();\n if (this.f28127a != 0) {\n b += C5301a.m23500c(1, this.f28127a);\n }\n if (!this.f28131e.equals(\"\")) {\n b += C5301a.m23494b(2, this.f28131e);\n }\n if (this.f28135i != null && this.f28135i.length > 0) {\n for (C5306g c5306g : this.f28135i) {\n if (c5306g != null) {\n b += C5301a.m23493b(3, c5306g);\n }\n }\n }\n if (!Arrays.equals(this.f28128b, C5309j.f19699a)) {\n b += C5301a.m23496b(6, this.f28128b);\n }\n if (!Arrays.equals(this.f28137k, C5309j.f19699a)) {\n b += C5301a.m23496b(8, this.f28137k);\n }\n if (!Arrays.equals(this.f28138l, C5309j.f19699a)) {\n b += C5301a.m23496b(13, this.f28138l);\n }\n if (!this.f28140p.equals(\"\")) {\n b += C5301a.m23494b(14, this.f28140p);\n }\n if (this.f28129c != DefaultFastMatchValues.PREVIEW_MIN_TIME_IN_MILLIS) {\n b += C5301a.m23502d(15, this.f28129c);\n }\n return !Arrays.equals(this.f28142r, C5309j.f19699a) ? b + C5301a.m23496b(18, this.f28142r) : b;\n }\n }\n\n /* renamed from: com.google.android.m4b.maps.dd.a$e */\n public static final class C7536e extends C6667b<C7536e> {\n /* renamed from: a */\n private static volatile C7536e[] f28143a;\n /* renamed from: b */\n private String f28144b;\n /* renamed from: c */\n private String f28145c;\n\n /* renamed from: a */\n public static C7536e[] m33212a() {\n if (f28143a == null) {\n synchronized (C5305f.f19695a) {\n if (f28143a == null) {\n f28143a = new C7536e[0];\n }\n }\n }\n return f28143a;\n }\n\n public C7536e() {\n this.f28144b = \"\";\n this.f28145c = \"\";\n this.m = null;\n this.n = -1;\n }\n\n /* renamed from: a */\n public final void mo5392a(C5301a c5301a) {\n if (!this.f28144b.equals(\"\")) {\n c5301a.m23509a(1, this.f28144b);\n }\n if (!this.f28145c.equals(\"\")) {\n c5301a.m23509a(2, this.f28145c);\n }\n super.mo5392a(c5301a);\n }\n\n /* renamed from: b */\n protected final int mo5393b() {\n int b = super.mo5393b();\n if (!this.f28144b.equals(\"\")) {\n b += C5301a.m23494b(1, this.f28144b);\n }\n return !this.f28145c.equals(\"\") ? b + C5301a.m23494b(2, this.f28145c) : b;\n }\n }\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Perform the exchange asynchronously, calling back success or failure on the callback that was passed to the constructor. | @Override
public void run() {
// The error-handling here tries to be as simple as possible: if anything
// goes wrong that causes an exception, we call the .failure() method on the
// callback. All the subroutines here (init/send/receive client/server message routines)
// store intermediate results in instance variables rather than passing them
// as arguments, and they all throw IOException if something goes wrong with
// sending/receiving (some subparts can throw other exceptions too, which are
// handled in the same way here, treated as fatal).
//
// When these subroutines called in the following try block fail, they set
// the error message and error state of the exchange to reasonable values
// before throwing their exceptions.
try {
// TODO(lerner): This (initializing PSIs) is costly, so we may want to
// do this offline if it's making exchanges slow.
initializePSIObjects();
// Send client message.
sendClientMessage();
// Receive client message.
receiveClientMessage();
// Send server message in response to remote client message.
sendServerMessage();
// Receive server message.
receiveServerMessage();
computeSharedFriends();
setExchangeStatus(Status.SUCCESS);
callback.success(this);
} catch (Exception e) { // Treat ALL exceptions as fatal.
// This status setting should be redundant (whoever threw the exception
// should have set the status to ERROR before throwing the exception) but
// this maintains the invariant that whenever callback.failure is called
// the error code is ERROR.
Log.e(TAG, "Exception while run()ing CryptographicExchange: " + e);
setExchangeStatus(Status.ERROR);
callback.failure(this, getErrorMessage());
}
} | [
"CompletableFuture<Exchange> asyncSend(String endpointUri, Exchange exchange);",
"CompletableFuture<Exchange> asyncSend(Endpoint endpoint, Exchange exchange);",
"void sendAsync(Message message, ResponseCallback cb);",
"CompletableFuture<Exchange> asyncSend(String endpointUri, Processor processor);",
"@Override\n public void execute() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n exportData();\n return null;\n }\n\n @Override\n protected void succeeded(){\n callback.onSuccess();\n super.succeeded();\n }\n\n @Override\n protected void failed(){\n callback.onFail(this.getException());\n super.failed();\n }\n };\n new Thread(task).start();\n }",
"CompletableFuture<Exchange> asyncSend(Endpoint endpoint, Processor processor);",
"@Override\n\tpublic void invoke(final Request request, final AsyncCallback<Response> callback) {\n\t\tcallback.callback(CallbackBus.super.invoke(request));\n\t}",
"@Override\n public void execute() {\n getReceiver().execute(this);\n }",
"public void run() {\n context = vertx.getOrCreateContext();\n\n Runnable runner = new Runnable() {\n public void run() {\n final DefaultFutureResult<T> res = new DefaultFutureResult<>();\n try {\n res.setResult(action());\n } catch (Exception e) {\n res.setFailure(e);\n }\n if (handler != null) {\n context.execute(new Runnable() {\n public void run() {\n res.setHandler(handler);\n }\n });\n }\n }\n };\n\n context.executeOnOrderedWorkerExec(runner);\n }",
"@Override\n protected void deliverResponse(T response) {\n requestCallback.onSuccessObject(taskType, response.toString());\n }",
"public Object call() throws Exception {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tif ( reference.asNativeRemoteFarReference().getTransmitting()){\n\t\t\t\t\t\t\t// if there is a thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future with a BlockingFuture to wait for the result of the transmission.\n\t\t\t\t\t\t\tBlockingFuture future = setRetractingFuture(reference);\n\t\t\t\t\t\t\treturn future.get();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// if there is no thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future immediately with the content of its oubox.\n\t\t\t\t\t\t\treturn reference.asNativeRemoteFarReference().impl_retractOutgoingLetters();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"public MessagePublication asynchronously();",
"private void maybeOnSucceededOnExecutor() {\n synchronized (mNativeStreamLock) {\n if (isDoneLocked()) {\n return;\n }\n if (!(mWriteState == State.WRITING_DONE && mReadState == State.READING_DONE)) {\n return;\n }\n mReadState = mWriteState = State.SUCCESS;\n // Destroy native stream first, so UrlRequestContext could be shut\n // down from the listener.\n destroyNativeStreamLocked(false);\n }\n try {\n mCallback.onSucceeded(CronetBidirectionalStream.this, mResponseInfo);\n } catch (Exception e) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception in onSucceeded method\", e);\n }\n mInflightDoneCallbackCount.decrement();\n }",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tif(callable == null) {\n\t\t\t\t\tdeferred().reject(new NullPointerException(\"Callable is empty.\"));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tR result = callable.call();\n\t\t\t\tdeferred().resolve(result);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tdeferred().reject(ex);\n\t\t\t}\n\t\t}",
"protected void awaitResult(){\t\n\t\ttry {\n\t\t\t/*place thread/tuple identifier in waitlist for future responses from web service*/\n\t\t\tResponses.getInstance().addToWaitList(this.transId, this);\n\t\t\tthis.latch.await();\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\n\t\t\tLogger.getLogger(\"RSpace\").log(Level.WARNING, \"Transaction #\" + transId + \" response listener was terminated\");\n\t\t}\n\t}",
"@Override\n\tpublic Response call() throws Exception {\n\t\tClientResponse response = callWebService(this.spaceEntry);\n\t\tthis.transId = (int) response.getEntity(Integer.class);\n\t\tresponse.close();\n\t\t/*wait for web service to provide tuple Object result*/\n\t\tawaitResult();\n\t\t\n\t\t/*return result*/\n\t\treturn result;\n\t}",
"public interface Callback {\n\t\t/**\n\t\t * Handles a task coming from the queue.\n\t\t * Successful completion of this function implies the task has been fully processed,\n\t\t * and can be safely removed from the queue.\n\t\t * @param data A binary representation of the task. It is up to the user to define the format.\n\t\t * @throws RecoverableError Processing failed, but should be retried.\n\t\t * @throws UnrecoverableError Processing failed and should not be retried.\n\t\t */\n\t\tvoid handleTask(byte[] data) throws RecoverableError, UnrecoverableError;\n\t}",
"public final void invoke() {\n synchronized (lock) {\n actionPerformed(null);\n\n try {\n taskFutureResult.get();\n } catch (InterruptedException ex) {\n } catch (ExecutionException ex) {\n }\n }\n\n }",
"public interface IBugReportRpcAsync {\r\n\r\n /**\r\n * Submit a bug report.\r\n * @param bugReport Bug report to submit\r\n * @param callback Callback to be invoked after method call completes\r\n */\r\n void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);\r\n\r\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reintrospect Data Source method reintrospects data sources for the passed in data source ids list found in the the passed in datasources.xml file for the target server Id | public void reIntrospectDataSources(String serverId, String dataSourceIds, String pathToDataSourceXML, String pathToServersXML); | [
"public void introspectDataSources(String serverId, String dataSourceIds, String pathToDataSourceXML, String pathToServersXML) throws CompositeException;",
"public void updateDataSources(String serverId, String dataSourceIds, String pathToDataSourceXML, String pathToServersXML);",
"void generateDataSourcesResourceListXML(String serverId, String startPath, String pathToDataSourceResourceListXML, String pathToServersXML)\tthrows CompositeException;",
"public void enableDataSources(String serverId, String dataSourceIds, String pathToDataSourceXML, String pathToServersXML);",
"void updateDataSouce(List<T> dataSource);",
"Source updateDatasourceZ3950IdFile(Source ds) throws RepoxException;",
"public void setDataSources(DataSources dataSources) {\r\n this.dataSources = dataSources;\r\n }",
"DataSources retrieveDataSources() throws RepoxException;",
"Source updateDatasourceOAI(Source ds) throws RepoxException;",
"public void setDataSources(ArrayList dataSources) {\n this.dataSources = dataSources;\n }",
"void generateDataSourceTypes(String serverId, String pathToDataSourceTypesXML, String pathToServersXML) throws CompositeException;",
"public void processConfigFile() {\r\n config = new ConfigFile(CONFIG_FILE);\r\n List<String> sources = config.getList(\"source\");\r\n for (Iterator<String> it = sources.iterator(); it.hasNext();) {\r\n String source = (String) it.next();\r\n ConfigFile sub = config.getSubConfig(source);\r\n String className = sub.getString(\"class\");\r\n String description = sub.getString(\"description\");\r\n sub.put(\"vdx.driver\", driver);\r\n sub.put(\"vdx.url\", url);\r\n sub.put(\"vdx.prefix\", prefix);\r\n SQLDataSourceDescriptor dsd =\r\n new SQLDataSourceDescriptor(source, className, description, sub);\r\n sqlDataSources.put(source, dsd);\r\n LOGGER.debug(\"read data source: {}\", source);\r\n }\r\n }",
"private void clearSourceIds() {\r\n DiscourseDao discourseDao = DiscourseDbDaoFactory.DEFAULT.getDiscourseDao();\r\n Integer rowsCleared = discourseDao.clearSourceIds();\r\n\r\n DataSourcesDao dsDao = DiscourseDbDaoFactory.DEFAULT.getDataSourcesDao();\r\n rowsCleared = dsDao.clearSourceIds();\r\n\r\n DUserDao userDao = DiscourseDbDaoFactory.DEFAULT.getDUserDao();\r\n rowsCleared = userDao.clearSourceIds();\r\n\r\n ContentDao contentDao = DiscourseDbDaoFactory.DEFAULT.getContentDao();\r\n rowsCleared = contentDao.clearSourceIds();\r\n\r\n DataSourceInstanceDao dsiDao = DiscourseDbDaoFactory.DEFAULT.getDataSourceInstanceDao();\r\n rowsCleared = dsiDao.clearSourceIds();\r\n\r\n ContributionDao contributionDao = DiscourseDbDaoFactory.DEFAULT.getContributionDao();\r\n rowsCleared = contributionDao.clearSourceIds();\r\n\r\n DiscoursePartDao discoursePartDao = DiscourseDbDaoFactory.DEFAULT.getDiscoursePartDao();\r\n rowsCleared = discoursePartDao.clearSourceIds();\r\n\r\n DiscourseRelationDao discourseRelationDao =\r\n DiscourseDbDaoFactory.DEFAULT.getDiscourseRelationDao();\r\n rowsCleared = discourseRelationDao.clearSourceIds();\r\n\r\n DiscoursePartRelationDao discoursePartRelationDao =\r\n DiscourseDbDaoFactory.DEFAULT.getDiscoursePartRelationDao();\r\n rowsCleared = discoursePartRelationDao.clearSourceIds();\r\n }",
"Source updateDatasourceFolder(Source ds) throws RepoxException;",
"public void replaceAllDataSources(Collection<DataSource> newsources) {\n datasources.clear();\n datasources.addAll(newsources);\n }",
"public void processConfigFile()\n\t{\n\t\tconfig = new ConfigFile(CONFIG_FILE);\n\t\tList sources = config.getList(\"source\");\n\t\tfor (Iterator it = sources.iterator(); it.hasNext(); ) {\n\t\t\tString source\t\t= (String)it.next();\n\t\t\tConfigFile sub\t\t= config.getSubConfig(source);\n\t\t\tString className\t= sub.getString(\"class\");\n\t\t\tString description\t= sub.getString(\"description\");\n\t\t\tsub.put(\"vdx.driver\", driver);\n\t\t\tsub.put(\"vdx.url\", url);\n\t\t\tsub.put(\"vdx.prefix\", prefix);\n\t\t\t\n\t\t\texportConfigs.put( source, new ExportConfig( source, sub ) );\n\n\t\t\tDataSourceDescriptor dsd = new DataSourceDescriptor(source, className, description, sub);\n\t\t\tdataSources.put(source, dsd);\n\t\t\tlogger.fine(\"read data source: \" + source);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n ConfigPropertyLoader config = ConfigPropertyLoader.getInstance();\n\n DataSourceFactory factory = new DataSourceFactory(config);\n\n try {\n if (factory.getDatasource(\"model1\") == null) {\n throw new TransactionRuntimeException(\"No datasource was not found\");\n }\n\n\n } catch (QueryTestFailedException e) {\n e.printStackTrace();\n }\n\n factory.cleanup();\n\n ConfigPropertyLoader.reset();\n\n\n // the following verifies that order of \"use\" datasources is applied to request for datasources.\n config = ConfigPropertyLoader.getInstance();\n\n config.setProperty(ConfigPropertyNames.USE_DATASOURCES_PROP, \"oracle,sqlserver\");\n\n factory = new DataSourceFactory(config);\n\n try {\n\n DataSource dsfind = factory.getDatasource( \"model2\");\n if (dsfind == null) {\n throw new TransactionRuntimeException(\"No datasource was not found as the 2nd datasource\");\n\n }\n\n if (dsfind.getConnectorType() == null) {\n throw new TransactionRuntimeException(\"Connector types was not defined\");\n }\n\n if (!dsfind.getName().equalsIgnoreCase(\"sqlserver\")) {\n throw new TransactionRuntimeException(\"Sqlserver was not found as the 2nd datasource\");\n\n }\n\n dsfind = factory.getDatasource( \"model1\");\n if (dsfind == null) {\n throw new TransactionRuntimeException(\"No datasource was not found as the 2nd datasource\");\n\n }\n if (!dsfind.getName().equalsIgnoreCase(\"oracle\")) {\n throw new TransactionRuntimeException(\"Oracle was not found as the 2nd datasource\");\n\n }\n System.out.println(\"Datasource :\" + dsfind.getName() + \" was found\");\n\n\n // the following test verifies that a sqlserver datasource is not\n // returned (excluded)\n factory.cleanup();\n\n ConfigPropertyLoader.reset();\n\n\n config = ConfigPropertyLoader.getInstance();\n config.setProperty(ConfigPropertyNames.EXCLUDE_DATASBASE_TYPES_PROP, \"sqlserver\");\n\n\n factory = new DataSourceFactory(config);\n\n int n = factory.getNumberAvailableDataSources();\n TestLogger.log(\"Num avail datasources: \" + n);\n\n for (int i=0; i<n; i++) {\n\n String k = String.valueOf(i);\n DataSource ds1 = factory.getDatasource( \"model\" + k);\n if (ds1 == null) {\n throw new TransactionRuntimeException(\"No datasource was found for: model:\" + k);\n\n } if (ds1.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.SQLSERVER)) {\n throw new TransactionRuntimeException(\"sqlserver dbtype should have been excluded\");\n }\n }\n\n\n DataSource reuse = factory.getDatasource( \"model1\");\n if (reuse != null) {\n\n } else {\n throw new TransactionRuntimeException(\"The process was not able to reassign an already used datasource\");\n\n }\n\n factory.cleanup();\n\n ConfigPropertyLoader.reset();\n\n\n // test required database types\n // test 1 source\n\n config = ConfigPropertyLoader.getInstance();\n\n config.setModelAssignedToDatabaseType(\"pm1\", DataSourceFactory.DataBaseTypes.ORACLE);\n\n factory = new DataSourceFactory(config);\n\n DataSource ds1 = factory.getDatasource(\"pm1\");\n if (!ds1.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.ORACLE)) {\n throw new TransactionRuntimeException(\"Required DB Type of oracle for model pm1 is :\" + ds1.getDBType());\n }\n\n TestLogger.log(\"Test1 Required DS1 \" + ds1.getDBType());\n factory.cleanup();\n\n ConfigPropertyLoader.reset();\n\n // test required database types\n // test 2 sources, 1 required and other ANY\n config = ConfigPropertyLoader.getInstance();\n\n\n config.setModelAssignedToDatabaseType(\"pm2\", DataSourceFactory.DataBaseTypes.SQLSERVER);\n config.setModelAssignedToDatabaseType(\"pm1\", DataSourceFactory.DataBaseTypes.ANY);\n\n factory = new DataSourceFactory(config);\n\n DataSource ds2 = factory.getDatasource(\"pm2\");\n if (!ds2.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.SQLSERVER)) {\n throw new TransactionRuntimeException(\"Required DB Type of sqlserver for model pm2 is :\" + ds2.getDBType());\n }\n TestLogger.log(\"Test2 Required DS2 \" + ds2.getDBType());\n\n factory.cleanup();\n ConfigPropertyLoader.reset();\n\n\n // test required database types\n // test 2 sources, 2 required\n config = ConfigPropertyLoader.getInstance();\n\n\n config.setModelAssignedToDatabaseType(\"pm2\", DataSourceFactory.DataBaseTypes.SQLSERVER);\n config.setModelAssignedToDatabaseType(\"pm1\", DataSourceFactory.DataBaseTypes.ORACLE);\n\n factory = new DataSourceFactory(config);\n\n DataSource ds3a = factory.getDatasource(\"pm2\");\n if (!ds3a.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.SQLSERVER)) {\n throw new TransactionRuntimeException(\"Required DB Type of sqlserver for model pm12 is :\" + ds3a.getDBType());\n }\n\n DataSource ds3b = factory.getDatasource(\"pm1\");\n if (!ds3b.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.ORACLE)) {\n throw new TransactionRuntimeException(\"Required DB Type of oracle for model pm1 is :\" + ds3b.getDBType());\n }\n TestLogger.log(\"Test3 Required DS3a \" + ds3a.getDBType());\n TestLogger.log(\"Test3 Required DS3b \" + ds3b.getDBType());\n\n factory.cleanup();\n\n\n } catch (QueryTestFailedException e) {\n e.printStackTrace();\n }\n }",
"public synchronized boolean reloadDataSources() {\n try {\n String dataSourcesConfigString = getContent();\n if (!hasDataSourcesContentChanged(dataSourcesConfigString)) {\n return false;\n }\n DataSourcesConfig.DataSources newDataSources = XmlaSupport.parseDataSources(\n dataSourcesConfigString, LOGGER);\n if (newDataSources == null) {\n return false;\n }\n flushObsoleteCatalogs(newDataSources);\n this.dataSources = newDataSources;\n this.lastDataSourcesConfigString = dataSourcesConfigString;\n return true;\n } catch (Exception e) {\n throw Util.newError(e, \"Failed to parse data sources config '\" + url + \"'\");\n }\n }",
"private void updateSourceList(List<String> sources, JSONObject sourcesResponseList, JobDataMap dataMap) {\n\t\tIterator<?> hostNames = sourcesResponseList.keys();\n\t\tsources.clear();\n\t\twhile (hostNames.hasNext()){\n\t\t\tString hostName = (String) hostNames.next();\n\t\t\tsources.add(hostName);\n\t\t}\n\n\t\tdataMap.put(\"sources\", sources);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a new entry and returns the new created id. Serializes the configuration only when specified. | protected UUID add(E entry, boolean persist) {
list.add(entry);
UUID guid = UUID.randomUUID();
dict.put(guid, entry);
if (entry.isEnable()) {
names.put(entry.getName(), guid);
}
if (persist) {
Config.serialize();
}
return guid;
} | [
"protected UUID add(E entry) {\n\t\treturn add(entry, true);\n\t}",
"String addEntry(final String serialization);",
"java.lang.String getEntryId();",
"public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);",
"public DataEntry create(long dataEntryId);",
"boolean addId(String id);",
"public long getEntryId() {\n\t\treturn entryId;\n\t}",
"org.hl7.fhir.Identifier addNewIdentifier();",
"void addEntry(String locale, String content, String id);",
"public abstract void addEntry(Object entry);",
"public ConfigEntry addConfigEntry(String name) {\n return addConfigEntry(name, null, null, null);\n }",
"void addId(String root);",
"public void addEntry() {\n\t\tnewID = JOptionPane.showInputDialog(\"Enter a new ID number\");\n\t\tnewName = JOptionPane.showInputDialog(\"Enter a new name\");\n\t\tnewName = newName.toUpperCase();\n\t\tnumber = Integer.parseInt(newID);\n\t\tstudents.put(number, newName);\n\t}",
"Entry createEntry();",
"String add(IndexEntry entry);",
"public void addEntry() {\n\t\tSystem.out.print(\"Name: \");\n\t\tString entryName = getInputForName();\n\t\tSystem.out.print(\"Number: \");\n\t\tint entryNumber = getInputForNumber();\n\t\t\n\t\tp = new PhoneEntry(entryName, entryNumber);\n\t\t\n\t\ttry {\n\t\t\tphoneList.add(p);\n\t\t\twriteFile();\n\t\t\t\n\t\t\tSystem.out.println(\"Entry \" + p.getName() + \" has been added.\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.err.println(\"Could not write item into array.\");\n\t\t}\n\t}",
"public void addApplicationId(ApplicationId applicationId);",
"public String getEntryID() {\r\n\r\n\t\treturn getStringProperty(\"EntryID\");\r\n\t}",
"public ocpp.IdTagInfo addNewIdTagInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdTagInfo target = null;\n target = (ocpp.IdTagInfo)get_store().add_element_user(IDTAGINFO$0);\n return target;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Abstraction of an entity which represents the functionality of ethCepPac. | public interface EthCepPac {
/**
* Identify the leaf of EthCepPac.
*/
public enum LeafIdentifier {
/**
* Represents vlanType.
*/
VLANTYPE(1),
/**
* Represents accessAction.
*/
ACCESSACTION(2),
/**
* Represents isMacAdressLearningEnabled.
*/
ISMACADRESSLEARNINGENABLED(3),
/**
* Represents macAdressLearningRange.
*/
MACADRESSLEARNINGRANGE(4),
/**
* Represents macAdressAgeingTime.
*/
MACADRESSAGEINGTIME(5),
/**
* Represents broadcastFilteringMode.
*/
BROADCASTFILTERINGMODE(6);
private int leafIndex;
public int getLeafIndex() {
return leafIndex;
}
LeafIdentifier(int value) {
this.leafIndex = value;
}
}
/**
* Returns the attribute vlanType.
*
* @return vlanType value of vlanType
*/
TapiVlanType vlanType();
/**
* Returns the attribute accessAction.
*
* @return accessAction value of accessAction
*/
TapiAccessAction accessAction();
/**
* Returns the attribute isMacAdressLearningEnabled.
*
* @return isMacAdressLearningEnabled value of isMacAdressLearningEnabled
*/
boolean isMacAdressLearningEnabled();
/**
* Returns the attribute macAdressLearningRange.
*
* @return macAdressLearningRange value of macAdressLearningRange
*/
Integer macAdressLearningRange();
/**
* Returns the attribute macAdressAgeingTime.
*
* @return macAdressAgeingTime value of macAdressAgeingTime
*/
Integer macAdressAgeingTime();
/**
* Returns the attribute broadcastFilteringMode.
*
* @return broadcastFilteringMode value of broadcastFilteringMode
*/
TapiBroadcastFilteringMode broadcastFilteringMode();
/**
* Returns the attribute broadcastFilteringTypeList.
*
* @return broadcastFilteringTypeList list of broadcastFilteringTypeList
*/
List<TapiBroadcastType> broadcastFilteringTypeList();
/**
* Returns the attribute valueLeafFlags.
*
* @return valueLeafFlags value of valueLeafFlags
*/
BitSet valueLeafFlags();
/**
* Returns the attribute yangEthCepPacOpType.
*
* @return yangEthCepPacOpType value of yangEthCepPacOpType
*/
OnosYangOpType yangEthCepPacOpType();
/**
* Returns the attribute selectLeafFlags.
*
* @return selectLeafFlags value of selectLeafFlags
*/
BitSet selectLeafFlags();
/**
* Returns the attribute yangAugmentedInfoMap.
*
* @return yangAugmentedInfoMap value of yangAugmentedInfoMap
*/
Map<Class<?>, Object> yangAugmentedInfoMap();
/**
* Returns the attribute vlanList.
*
* @return vlanList list of vlanList
*/
List<VlanList> vlanList();
/**
* Returns the attribute trafficConditioning.
*
* @return trafficConditioning value of trafficConditioning
*/
TrafficConditioning trafficConditioning();
/**
* Returns the attribute broadcastFilteringTraffic.
*
* @return broadcastFilteringTraffic value of broadcastFilteringTraffic
*/
BroadcastFilteringTraffic broadcastFilteringTraffic();
/**
* Returns the attribute yangAugmentedInfo.
*
* @param classObject value of yangAugmentedInfo
* @return yangAugmentedInfo
*/
Object yangAugmentedInfo(Class classObject);
/**
* Checks if the leaf value is set.
*
* @param leaf leaf whose value status needs to checked
* @return result of leaf value set in object
*/
boolean isLeafValueSet(LeafIdentifier leaf);
/**
* Checks if the leaf is set to be a selected leaf.
*
* @param leaf if leaf needs to be selected
* @return result of leaf value set in object
*/
boolean isSelectLeaf(LeafIdentifier leaf);
/**
* Builder for ethCepPac.
*/
interface EthCepPacBuilder {
/**
* Adds to the list of broadcastFilteringTypeList.
*
* @return builder object of broadcastFilteringTypeList
*/
EthCepPacBuilder addToBroadcastFilteringTypeList(TapiBroadcastType addTo);
/**
* Adds to the list of vlanList.
*
* @return builder object of vlanList
*/
EthCepPacBuilder addToVlanList(VlanList addTo);
/**
* Returns the attribute vlanType.
*
* @return vlanType value of vlanType
*/
TapiVlanType vlanType();
/**
* Returns the attribute accessAction.
*
* @return accessAction value of accessAction
*/
TapiAccessAction accessAction();
/**
* Returns the attribute isMacAdressLearningEnabled.
*
* @return isMacAdressLearningEnabled value of isMacAdressLearningEnabled
*/
boolean isMacAdressLearningEnabled();
/**
* Returns the attribute macAdressLearningRange.
*
* @return macAdressLearningRange value of macAdressLearningRange
*/
Integer macAdressLearningRange();
/**
* Returns the attribute macAdressAgeingTime.
*
* @return macAdressAgeingTime value of macAdressAgeingTime
*/
Integer macAdressAgeingTime();
/**
* Returns the attribute broadcastFilteringMode.
*
* @return broadcastFilteringMode value of broadcastFilteringMode
*/
TapiBroadcastFilteringMode broadcastFilteringMode();
/**
* Returns the attribute broadcastFilteringTypeList.
*
* @return broadcastFilteringTypeList list of broadcastFilteringTypeList
*/
List<TapiBroadcastType> broadcastFilteringTypeList();
/**
* Returns the attribute valueLeafFlags.
*
* @return valueLeafFlags value of valueLeafFlags
*/
BitSet valueLeafFlags();
/**
* Returns the attribute yangEthCepPacOpType.
*
* @return yangEthCepPacOpType value of yangEthCepPacOpType
*/
OnosYangOpType yangEthCepPacOpType();
/**
* Returns the attribute selectLeafFlags.
*
* @return selectLeafFlags value of selectLeafFlags
*/
BitSet selectLeafFlags();
/**
* Returns the attribute yangAugmentedInfoMap.
*
* @return yangAugmentedInfoMap value of yangAugmentedInfoMap
*/
Map<Class<?>, Object> yangAugmentedInfoMap();
/**
* Returns the attribute vlanList.
*
* @return vlanList list of vlanList
*/
List<VlanList> vlanList();
/**
* Returns the attribute trafficConditioning.
*
* @return trafficConditioning value of trafficConditioning
*/
TrafficConditioning trafficConditioning();
/**
* Returns the attribute broadcastFilteringTraffic.
*
* @return broadcastFilteringTraffic value of broadcastFilteringTraffic
*/
BroadcastFilteringTraffic broadcastFilteringTraffic();
/**
* Returns the builder object of vlanType.
*
* @param vlanType value of vlanType
* @return vlanType
*/
EthCepPacBuilder vlanType(TapiVlanType vlanType);
/**
* Returns the builder object of accessAction.
*
* @param accessAction value of accessAction
* @return accessAction
*/
EthCepPacBuilder accessAction(TapiAccessAction accessAction);
/**
* Returns the builder object of isMacAdressLearningEnabled.
*
* @param isMacAdressLearningEnabled value of isMacAdressLearningEnabled
* @return isMacAdressLearningEnabled
*/
EthCepPacBuilder isMacAdressLearningEnabled(boolean isMacAdressLearningEnabled);
/**
* Returns the builder object of macAdressLearningRange.
*
* @param macAdressLearningRange value of macAdressLearningRange
* @return macAdressLearningRange
*/
EthCepPacBuilder macAdressLearningRange(Integer macAdressLearningRange);
/**
* Returns the builder object of macAdressAgeingTime.
*
* @param macAdressAgeingTime value of macAdressAgeingTime
* @return macAdressAgeingTime
*/
EthCepPacBuilder macAdressAgeingTime(Integer macAdressAgeingTime);
/**
* Returns the builder object of broadcastFilteringMode.
*
* @param broadcastFilteringMode value of broadcastFilteringMode
* @return broadcastFilteringMode
*/
EthCepPacBuilder broadcastFilteringMode(TapiBroadcastFilteringMode broadcastFilteringMode);
/**
* Returns the builder object of broadcastFilteringTypeList.
*
* @param broadcastFilteringTypeList list of broadcastFilteringTypeList
* @return broadcastFilteringTypeList
*/
EthCepPacBuilder broadcastFilteringTypeList(List<TapiBroadcastType> broadcastFilteringTypeList);
/**
* Returns the builder object of yangEthCepPacOpType.
*
* @param yangEthCepPacOpType value of yangEthCepPacOpType
* @return yangEthCepPacOpType
*/
EthCepPacBuilder yangEthCepPacOpType(OnosYangOpType yangEthCepPacOpType);
/**
* Returns the builder object of vlanList.
*
* @param vlanList list of vlanList
* @return vlanList
*/
EthCepPacBuilder vlanList(List<VlanList> vlanList);
/**
* Returns the builder object of trafficConditioning.
*
* @param trafficConditioning value of trafficConditioning
* @return trafficConditioning
*/
EthCepPacBuilder trafficConditioning(TrafficConditioning trafficConditioning);
/**
* Returns the builder object of broadcastFilteringTraffic.
*
* @param broadcastFilteringTraffic value of broadcastFilteringTraffic
* @return broadcastFilteringTraffic
*/
EthCepPacBuilder broadcastFilteringTraffic(BroadcastFilteringTraffic broadcastFilteringTraffic);
/**
* Sets the value of yangAugmentedInfo.
*
* @param value value of yangAugmentedInfo
* @param classObject value of yangAugmentedInfo
*/
EthCepPacBuilder addYangAugmentedInfo(Object value, Class classObject);
/**
* Returns the attribute yangAugmentedInfo.
*
* @param classObject value of yangAugmentedInfo
* @return yangAugmentedInfo
*/
Object yangAugmentedInfo(Class classObject);
/**
* Set a leaf to be selected.
*
* @param leaf leaf needs to be selected
* @return builder object for select leaf
*/
EthCepPacBuilder selectLeaf(LeafIdentifier leaf);
/**
* Builds object of ethCepPac.
*
* @return ethCepPac
*/
EthCepPac build();
}
} | [
"public interface PacMan extends Entity {\n\t\n\t/**\n\t * returns health points of pacman\n\t * \n\t * @return hp of pacman\n\t */\n\tint getHP();\n\n\t/**\n\t* returns boolean value to know if pacman can eat a ghost\n\t*\n\t* @return boolean value to know if pacman can eat a ghost\n\t*/\n\tboolean getCanEat();\n\n\t/**\n\t* returns value of time that pacman can eat a ghost\n\t*\n\t* @return boolean value of time that pacman can eat a ghost\n\t*/\n\tint getTimeToEat();\n\n\t/**\n\t* sets number of HP of pacman\n\t*\n\t* @param healthPoints number of hp of pacman\n\t*\n\t* @pre hp >= 0\n\t* @post hp == healthPoints\n\t*/\n\tvoid setHP(int healthPoints);\n\n\t/**\n\t* sets value of time that pacman can eat a ghos\n\t*\n\t* @param time value of time that pacman can eat a ghost\n\t*\n\t* @pre time >= 0\n\t* @post timeToEat == time\n\t*/\n\tvoid setTimeToEat(int time);\n\n\t/**\n * toString method \n * @return It will put a yellow background behind the object pacman on the terminal for the debug\n */\n\tString toString ();\n}",
"public interface Clash extends EntityComponent {\r\n}",
"public interface ERPCWeakEntity extends ERPCEntity {\r\n}",
"public interface Entity {\r\n\t\r\n\t// @return entity name\r\n\tpublic abstract String getName();\r\n\t\r\n\t// @return entity token\r\n\tpublic abstract char getEntityToken();\r\n\t\r\n\t// @return entity hit points\r\n\tpublic abstract int getHP();\r\n\t\r\n\t/** @param modifier\r\n\t * \tchanges entity hit points based on modifier value\r\n\t */ \r\n\tpublic abstract void setHP(int modifier);\r\n\t\r\n\t// method to attack another entity\r\n\tpublic abstract void attack(Entity target);\r\n\t\r\n\t// method checks if entity is still alive\r\n\tpublic abstract boolean isAlive();\r\n\t\r\n}",
"EthCepPac build();",
"public interface Entity {\n\n /**\n * Returns the position of this entity in the simulation system.\n *\n * @return the position of this entity.\n * @see Pasture\n * @see Point\n */\n public Point getPosition();\n\n /**\n * Sets the position of this entity.\n *\n * @param newPosition the new position of this entity.\n * @see Point\n */\n public void setPosition(Point newPosition);\n\n /**\n * Performs the relevant actions of this entity, depending on what kind of\n * entity it is.\n */\n public void tick();\n\n /**\n * Returns the icon of this entity, to be displayed by the pasture gui.\n *\n * @see PastureGUI\n */\n public ImageIcon getImage();\n\n /**\n * Returns the name of the entity\n */\n public String type();\n}",
"public interface \nPEPiece \n{ \n public void setWritten(PEPeer peer,int blocNumber);\n \n public void unmarkBlock(int blocNumber);\n \n public void markBlock(int blocNumber);\n \n public int getAvailability();\n \n public int getPieceNumber();\n \n public int getLength();\n \n public int getNbBlocs(); \n \n public int getCompleted();\n \n public boolean[] getWritten();\n \n public boolean[] getRequested();\n \n public boolean[] getDownloaded(); \n \n public boolean isSlowPiece();\n \n public void setSlowPiece(boolean slowPiece);\n \n /**\n * record details of a piece's blocks that have been completed for bad peer detection purposes\n * @param blockNumber\n * @param sender\n * @param hash\n * @param correct\n */\n \n public void \n addWrite(\n \t\tint blockNumber,\n\t\tPEPeer sender, \n\t\tbyte[] hash,\n\t\tboolean correct\t);\n \n public long\n getLastWriteTime();\n\n public void reset();\n \n public PEPeer[] getWriters();\n \n public int getBlockSize(int blockNumber);\n \n public boolean isComplete();\n \n public void setBeingChecked();\n \n public void setBeingChecked(boolean checking);\n \n public boolean isBeingChecked();\n \n public int getAndMarkBlock();\n \n public PEPeerManager getManager();\n \n public boolean isWritten(int blockNumber);\n \n public void setBlockWritten(int blockNumber);\n \n //A Piece can be reserved by a peer, so that only him can\n //contribute to it.\n public void setReservedBy(PEPeer peer);\n \n public PEPeer getReservedBy();\n \n public void reDownloadBlock(int blockNumber);\n \n}",
"public interface IEnergy extends ICard {\n\n //region Properties\n\n /**\n * Returns the name of the energy card\n * @return Name of the energy card\n */\n String getName();\n\n /**\n * Returns the type of the energy card\n * @return Name of the energy card\n */\n IType getType();\n\n //endregion\n\n /**\n * Adds an energy card to the energy list of the pokémon.\n */\n void play();\n}",
"Object getEntity();",
"public interface CollATicket {\n \n /**\n * \n * @param ticket a numerical key to fetch a result from a CollAHost\n */\n public void setTicket(Integer ticket);\n \n /**\n * \n * @return a numerical key to fetch a result from a CollAHost.\n */\n public Integer getTicket();\n \n /**\n * Sets port number to which host is listening.\n * @param port port number to which the host is listening.\n */\n public void setHostPort(Integer port);\n \n /**\n * \n * @return the port number in which the host is listening.\n */\n public Integer getHostPort();\n \n /**\n * \n * @param ipAddress IP address of the host which stores the result.\n */\n public void setHostIPaddress(String ipAddress);\n \n /**\n * \n * @return IP address of the host which stores the result.\n */\n public String getHostIPAddress();\n \n}",
"public interface PigZombie extends Zombie {\r\n\r\n /**\r\n * Get the pig zombie's current anger level.\r\n *\r\n * @return The anger level.\r\n */\r\n int getAnger();\r\n\r\n /**\r\n * Set the pig zombie's current anger level.\r\n *\r\n * @param level The anger level. Higher levels of anger take longer to\r\n * wear off.\r\n */\r\n void setAnger(int level);\r\n\r\n /**\r\n * Shorthand; sets to either 0 or the default level.\r\n *\r\n * @param angry Whether the zombie should be angry.\r\n */\r\n void setAngry(boolean angry);\r\n\r\n /**\r\n * Shorthand; gets whether the zombie is angry.\r\n *\r\n * @return True if the zombie is angry, otherwise false.\r\n */\r\n boolean isAngry();\r\n\r\n /**\r\n * <b>Not applicable to this entity</b>\r\n *\r\n * @return false\r\n */\r\n @Override\r\n public boolean isConverting();\r\n\r\n /**\r\n * <b>Not applicable to this entity</b>\r\n *\r\n * @return UnsuppotedOperationException\r\n */\r\n @Override\r\n public int getConversionTime();\r\n\r\n /**\r\n * <b>Not applicable to this entity</b>\r\n *\r\n * @param time unused\r\n */\r\n @Override\r\n public void setConversionTime(int time);\r\n}",
"public interface ISchemaEntity {\n\t\n\tpublic static final String KEY_NAME = \"Name\";\n\t\n\t\n\t/**\n\t * Vraca sucelje sklopa koji se modelira\n\t * u schematicu - broj i vrstu portova.\n\t * \n\t */\n\tCircuitInterface getCircuitInterface(ISchemaInfo info);\n\t\n\t\n\t/**\n\t * Vraca mapu parametara komponente\n\t * koja se modelira u schematicu.\n\t * Na temelju dijela ove kolekcije biti ce kasnije\n\t * izgraden generic blok pri generiranju\n\t * strukturnog VHDLa.\n\t * \n\t */\n\tIParameterCollection getParameters();\n\t\n\t/**\n\t * Postavlja parametre (vidi metodu\n\t * getParameters()).\n\t * \n\t * @param parameters\n\t */\n\tvoid setParameters(IParameterCollection parameters);\n\t\n\t/**\n\t * Vraca vrijednost uvijek prisutnog parametra pod kljucem KEY_NAME,\n\t * koji oznacava ime entity-a.\n\t */\n\tCaseless getName();\n\t\n\t/**\n\t * Dohvaca portove sucelja modelirane komponente.\n\t * \n\t */\n\tpublic List<Port> getPorts(ISchemaInfo info);\n\t\n\t/**\n\t * Brise portove i ne-defaultne parametre.\n\t *\n\t */\n\tvoid reset();\n\t\n}",
"public NPC getNPC(Entity entity);",
"IMeeCreep getMeeCreep();",
"public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_ps_peticionLocal getEstado_ps_peticion();",
"public interface IEPCStorage\n{\n\t/**\n\t * Get the maximum amount of EPC that can be stored\n\t * \n\t * @param metadata\n\t * @return The maximum amount of EPC that can be stored in the capsule (or 0\n\t * in case of unknown metadata, not needed if the item does not have\n\t * any metadata)\n\t */\n\tpublic int getMaximumEPC(int metadata);\n\n\t/**\n\t * Gets the maximum amount of EPC that can be stored (from an item stack)\n\t * \n\t * @param stack\n\t * @return The maximum amount of EPC that can be stored in the capsule.\n\t */\n\tpublic int getMaximumEPC(ItemStack stack);\n\n\t/**\n\t * Gets the current amount of EPC stored\n\t * \n\t * @param stack\n\t */\n\tpublic int getCurrentEPC(ItemStack stack);\n\n\t/**\n\t * Specifies if the storage is able to store an amount of epc\n\t * \n\t * @param stack\n\t * @param amountOfEPC\n\t */\n\tpublic boolean canAddEPC(ItemStack stack, int amountOfEPC);\n\n\t/**\n\t * Specifies if the storage is able to remove an amount of epc\n\t * \n\t * @param stack\n\t * @param amountOfEPC\n\t */\n\tpublic boolean canRemoveEPC(ItemStack stack, int amountOfEPC);\n\n\t/**\n\t * Adds the specified amount of epc to the storage. Should be used with\n\t * {@link #canAddEPC(int)}\n\t * \n\t * @param stack\n\t * @param amountOfEPC\n\t */\n\tpublic void addToCurrentEPC(ItemStack stack, int amountOfEPC);\n\n\t/**\n\t * Removes the specified amount of epc to the storage. Must be used with\n\t * {@link #canAddEPC(int)}\n\t * \n\t * @param stack\n\t * @param amountOfEPC\n\t */\n\tpublic void removeToCurrentEPC(ItemStack stack, int amountOfEPC);\n\n\t/**\n\t * Sets the current epc value to the specified amount of epc\n\t * \n\t * @param stack\n\t * @param amountOfEPC\n\t */\n\tpublic void setCurrentEPC(ItemStack stack, int amountOfEPC);\n\n\t/**\n\t * This method is used by ET to define whether the capsule uses ET's default\n\t * Capsule Tootltip or not\n\t */\n\tpublic boolean usesEnergyTransformerTootltipModel(ItemStack stack);\n}",
"public interface PieceInformation {\r\n}",
"public interface CaesarAlgorithm extends CaesarAlgorithmOperations,\r\n org.omg.CORBA.Object,\r\n org.omg.CORBA.portable.IDLEntity\r\n{\r\n}",
"public interface EntityEffect extends Effect{\n\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines the payload of this AST: a string in case it's an inner node (which is the name of the parser rule), or a Token in case it is a leaf node. | private Object getPayload(ParseTree tree) {
if (tree.getChildCount() == 0) {
// A leaf node: return the tree's payload, which is a Token.
return tree.getPayload();
}
else {
// The name for parser rule `foo` will be `FooContext`. Strip `Context` and
// lower case the first character.
String ruleName = tree.getClass().getSimpleName().replace("Context", "");
return Character.toLowerCase(ruleName.charAt(0)) + ruleName.substring(1);
}
} | [
"java.lang.String getPayload();",
"public String getPayload() {\n return payload;\n }",
"private Object getTokenValue() {\n\t\treturn lexer.getToken().getTokenValue();\n\t}",
"public String stringValue() {\n return token.substring(1, token.length() - 1);\n }",
"public static String getTypeStringFromToken(Token token) {\n int type = token.getType();\n\n switch(type) {\n case FloydLexer.NEWLINE: return \"cr\";\n case FloydLexer.IDENT: return \"identifier\";\n case FloydLexer.STRING_LIT: return \"string lit\";\n case FloydLexer.INT_LIT: return \"integer lit\";\n case FloydLexer.ERR_UNRECOGNIZED: return \"Unrecognized char\";\n case FloydLexer.ERR_ILLEGAL_STRING: return \"Illegal string\";\n case FloydLexer.ERR_UNTERMINATED_STRING: return \"Unterminated string\";\n default: \n if(FloydLexer.KW_AND <= type && type <= FloydLexer.KW_WHILE) {\n return \"keyword\";\n } else if(FloydLexer.OP_CONCAT <= type && type <= FloydLexer.OP_EQ) {\n return \"operator\";\n } else {\n return null;\n }\n }\n }",
"public Object evaluateTree() {\n\t\tif (mSyntaxTree instanceof ListNode) {\n\t\t\t//System.out.println(evaluateList(mSyntaxTree));\n\t\t\treturn evaluateList(mSyntaxTree);\n\t\t} else if (mSyntaxTree instanceof NumberNode) {\n\t\t\t//System.out.println(evaluateNumber(mSyntaxTree));\n\t\t\treturn evaluateNumber((NumberNode) mSyntaxTree);\n\t\t} else if (mSyntaxTree instanceof SymbolNode) {\n\t\t\treturn evaluateSymbol((SymbolNode) mSyntaxTree);\n\t\t\t//System.out.println(\"Test\");\n\t\t\t//if (isValidOperator())\n\t\t\t//throw new InvalidInputError(\"Symbol has no value\");\n\t\t}\n\t\treturn mSyntaxTree;\n\t}",
"public String getTokenValue()\n\t{\n\t\treturn this.token.token_value;\n\t}",
"String getSourcePayload();",
"private Node parseExpression() {\n\t\tif (tokenIsType(TokenType.OPEN_BRACKET)) {\n\t\t\tgetNextToken();\n\t\t\t\n\t\t\tNode node = parseOr();\n\t\t\t\n\t\t\tif (!tokenIsType(TokenType.CLOSED_BRACKET)) {\n\t\t\t\tthrow new ParserException(\n\t\t\t\t\t\taddInfo(\"Expected ')' but found \"+lexer.getToken().getTokenType()+\".\")\n\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\tgetNextToken();\n\t\t\treturn node;\n\t\t}\n\t\t\n\t\tif (tokenIsType(TokenType.CONSTANT)) {\n\t\t\tboolean value = (boolean) getTokenValue();\n\t\t\tgetNextToken();\n\t\t\treturn new ConstantNode(value);\n\t\t}\n\t\t\n\t\tif (tokenIsType(TokenType.VARIABLE)) {\n\t\t\tString name = (String) getTokenValue();\n\t\t\tgetNextToken();\n\t\t\treturn new VariableNode(name);\n\t\t}\n\t\t\n\t\tthrow new ParserException(\n\t\t\t\taddInfo(\"Unexpected token found: \"+lexer.getToken())\n\t\t);\n\t}",
"@Override\n public Object create(Token payload) {\n return new SqlASTNode(payload);\n }",
"public ByteBuf getPayload() {\r\n\t\treturn payload;\r\n\t}",
"@Override\n\tpublic String visitArExpr(ArExprContext ctx) {\n\t\tint chNo=ctx.children.size();\n\t\tif(chNo == 3){\n\t\t\tParseTree cur = ctx.getChild(1);\n\t\t\tif(cur==ctx.MULT() || cur==ctx.DIV()|| cur==ctx.PLUS() || cur==ctx.MINUS()){\n\t\t\t\tString left = visit(ctx.getChild(0));\n\t\t\t\tString right = visit(ctx.getChild(2));\n\t\t\t\tif(!(right.equals(left) && right.equals(\"int\")) ){throw new RuntimeException(\"Arithmetic operations only with integers\");}\n\t\t\t\treturn(\"int\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn(visit(cur));\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tParseTree cur=ctx.getChild(0);\n\t\t\tif (cur instanceof TerminalNode) {\t\t\t\t\n\t\t\t\tif (cur==ctx.INTEG()) return \"int\";\n\t\t\t\telse if (cur==ctx.CH()) return \"char\";\n\t\t\t\telse if(cur==ctx.ID()){\n\t\t\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\t\t\tRecord id= table.lookup(key);\n\t\t\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\t\t\treturn id.getReturnType();\t\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t}else {\n\t\t\t\tString type=visit(ctx.getChild(0));\n\t\t\t\treturn type;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}",
"public String getPayloadType();",
"public String getValue() {\n\t\treturn this.m_token_value;\n\t}",
"public String wrap() {\r\n if (representationMode != Mode.REPLACE) {\r\n //Don't want to wrap a single leaf node for viz purposes.\r\n this.tokenStr = \"(\" + tokenStr + \")\";\r\n } \r\n \r\n return tokenStr;\r\n }",
"public com.google.protobuf.Any getPayload() {\n if (payloadBuilder_ == null) {\n return payload_ == null ? com.google.protobuf.Any.getDefaultInstance() : payload_;\n } else {\n return payloadBuilder_.getMessage();\n }\n }",
"@Override\n public String getParseTree() {\n StringBuilder out = getStringBuilder(this);\n appendIdentifier(out, identifier, 1);\n appendLine(out, \"AssignmentOperator\", 1);\n appendBinOp(out, op, 2);\n evaluateExpression(out, value, 1);\n appendKeyword(out, Keyword.STOP, 1);\n return out.toString();\n }",
"java.lang.String getNodeType();",
"private int tokenVal()\n\t{\n\t\t//check that token is keyword or special\n\t\tif( core.containsKey(token))\t\t\t\n\t\t{ \n\t\t\t//return the value\n\t\t\treturn core.get(token); \n\t\t}\n\t\telse\n\t\t{\n\t\t\t try{ //see if token is integer\n\t\t\t\t Integer.parseInt(token);\n\t\t\t return INTEGER;\n\t\t\t }\n\t\t\t catch(NumberFormatException e){\n\t\t\t \t //token must be an identifier\n\t\t\t \t return IDENTIFIER;\t \n\t\t\t }\n\t\t}\t\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that will find a href and click if because there are too many of them and selenium won't find it. | public static void clickLinkByHref(String href)
{
try {
List<WebElement> anchors = driver.findElements(By.tagName("a"));
java.util.Iterator<WebElement> i = anchors.iterator();
while(i.hasNext())
{
WebElement anchor = i.next();
if(anchor.getAttribute("href").contains(href))
{
anchor.click();
break;
}
}
waitForPageLoaded();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("Couldn't find the tab "+href);
}
} | [
"public void clickLinkByHref(String href) {\n List<WebElement> anchors = driver.findElements(By.tagName(\"a\"));\n Iterator<WebElement> i = anchors.iterator();\n try {\n while (i.hasNext()) {\n WebElement anchor = i.next();\n if (anchor.getAttribute(\"href\").contains(href)) {\n if (isClickable(anchor)) {\n anchor.click();\n }\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Test\r\n\tpublic void Links() {\n\t\tWebElement link1 = driver.findElement(By.partialLinkText(\"without\"));\r\n\t\tString getAtt = link1.getAttribute(\"href\");\r\n\t\tSystem.out.println(\"Link will redirect to => \"+getAtt);\r\n\t\t\r\n\t\t// How many links available in this page\r\n\t\tList<WebElement> link2 = driver.findElements(By.tagName(\"a\"));\r\n\t\tint totallinks = link2.size();\r\n\t\tSystem.out.println(\"No of links in this page => \"+totallinks);\r\n\t\t\r\n\t\t// Verify link is broken\t\t\r\n\t\tWebElement link3 = driver.findElement(By.partialLinkText(\"broken\"));\r\n\t\tlink3.click();\r\n\t\tString verifyBroken = driver.getTitle();\r\n\t\tSystem.out.println(\"Link is not working getting \"+verifyBroken);\r\n\t}",
"public static void clickLinkByIndex(String linkText, int index){\r\n\t try{\r\n\t WebDriverWait myWait = new WebDriverWait(driver, 60);\r\n\t myWait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(linkText)));\r\n\t driver.findElement(By.xpath(\"(//a[contains(text(),'\"+linkText+\"')])[\"+index+\"]\")).click();\r\n\t reportInfo(\"clicked on '\" + linkText + \"'\");\r\n\t }catch(Exception e){\r\n\t reportFail(\"element '\" + linkText + \"' is not displayed\");\r\n\t Assert.fail(\"element '\" + linkText + \"' is not displayed\");\r\n\t }\r\n\t }",
"public void checkLinkPresentByHref(String href) {\n String status;\n long startTime = System.currentTimeMillis();\n try {\n driver.findElement(By.xpath(\"//a[@href=\\\"\" + href + \"\\\"]\"));\n status = \"+\";\n } catch (NoSuchElementException e) {\n status = \"!\";\n }\n long finishTime = System.currentTimeMillis();\n double timeOfExecution = ((double) (finishTime - startTime)) / 1000;\n logger.addResultOfOperation(new ResultOfOperation(\"[CheckLinkPresentByHref \\\"\" + href + \"\\\"\", timeOfExecution, status));\n }",
"public void linkByHref(WebDriver driver, String text2) {\r\n double start = System.currentTimeMillis();\r\n double res = (System.currentTimeMillis() - start) / 1000;\r\n String result = String.valueOf(res);\r\n if (!driver.findElement(By.xpath(\"//a[@href='\" + text2 + \"']\")).getText().equals(driver.findElement(By.xpath(\"//a[@href='\" + \"\" + \"']\")))) {\r\n log = \"+\";\r\n PASSED_TEST++;\r\n } else {\r\n log = \"!\";\r\n FAILED_TEST++;\r\n }\r\n resultLinkByHref = log + \" [checkLinkPresentByHref \\\"\" + driver.findElement(By.xpath(\"//a[@href='\" + text2 + \"']\")).getText() + \"\\\"]\" + \" \" + result + \"\\n\";\r\n resTime += res;\r\n countTESTS++;\r\n }",
"private WebElement findRightElement(String linkPart){\n wait.until(ExpectedConditions.presenceOfElementLocated(By.id(\"resultStats\"))); //waiting to be sure that we got our results\n List<WebElement> results = driver.findElements(By.xpath(\"//*[@id='rso']//h3/a\"));\n\n for(WebElement result : results){\n if(result.getAttribute(\"href\").contains(linkPart)){\n return result;\n }\n }\n nextPage();\n return findRightElement(linkPart);\n }",
"public void findAlllinks(){\n\t\tList<WebElement> links = driver.findElements(By.tagName(\"a\"));\n\t\t//Verify there are four links displayed on the page\n\t//\tassertEquals(4, links.size());\n\t\t//Iterate though the list of links and print\n\t\t//target for each link\n\t\tfor(WebElement link : links)\n\t\tSystem.out.println(link.getAttribute(\"href\"));\n\t}",
"public void clickOnFindlocations() {\n\t\tsFunName = \"clickOnFindlocations\";\n\t\tLogger.info(\"Inside : clickOnFindlocations\");\n\t\tLogger.info(sFunName + \" : Verify and Click on Find Locations link\");\n\t\tbStatus = util.explicitlyWaitUntilElementIsPresent(findLlocationsLink);\n\t\tAssert.assertTrue(bStatus, \"Service Search Text field not Found\");\n\t\tfindLlocationsLink.click();\n\t}",
"public static void clickLink(String linkText) {\r\n\t\ttry\r\n\t\t{\r\n\t\tdriver.findElement(By.linkText(linkText)).click();\r\n\t log(linkText+\"clicked successfully=PASS\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t log(linkText+\"clicking failed=FAIL\");\r\n\r\n\t\t}\r\n\t}",
"@Test\n public void test(){\n List<WebElement> allElements=driver.findElements(By.tagName(\"a\"));\n int num=allElements.size();\n System.out.println(allElements.size()); //90\n int count=0;\n for(WebElement each: allElements){\n if(each.isDisplayed()){\n System.out.println(\"text : \"+each.getText()+\" ----- href : \"+each.getAttribute(\"href\"));\n count++;\n }\n }\n System.out.println(\"Number of elements displayed on the page: \"+count);\n Assert.assertFalse(num==count);\n }",
"public void clickEventpartialLinkText(String clickElement) throws Exception {\n\t\t\t\topenchrome.findElement(By.partialLinkText(clickElement)).click();\n\t\t\t}",
"HtmlPage clickSiteLink();",
"public void clickOnSellAMotorcycleLink() {\r\n\t\tprint(\"Click on Sell A Motorcycle Link\");\r\n\t\tlocator = Locator.MyTrader.Sell_A_Motorcycle.value;\r\n\t\twaitForElementPresentInDom(2);\r\n\t\tclickOn(locator);\r\n\t}",
"public void clickFavoritieslink(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Favorities Link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"lnkFavorities\"));\r\n\t\t\tclick(locator_split(\"lnkFavorities\")); \r\n\t\t\tsleep(1000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Favorities Link is clicked\");\r\n\t\t\tSystem.out.println(\"Favourites link clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Favorities is not clicked \"+elementProperties.getProperty(\"lnkFavorities\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkFavorities\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t}",
"public void click() {\n WebDriverWait wait = new WebDriverWait(webDriver, Duration.ofSeconds(timeOut));\n WebElement btn = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(xPath)));\n if (autoScroll) {\n navigateToElementLocation(btn);\n }\n try {\n Thread.sleep(waitForClick * 1000);\n } catch (InterruptedException ex) {\n LOGGER.error(ex.getMessage());\n Thread.currentThread().interrupt();\n }\n btn.click();\n }",
"public static void LinkClick(By locator) {\r\n\t\tString txt = sDriver.findElement(locator).getText();\r\n\t\tsDriver.findElement(locator).click();\r\n\t\tstaticWait(1);\r\n\t\tCustomReporter.MessageLogger(\"\" + logFormator(txt) + \" : Clicked ! \", CustomReporter.status.Information);\r\n\t}",
"public void clickFindOwnersLink() {\n LOGGER.info(\"Clicking on Find Owners link from main menu\");\n click(findOwnersLink);\n waitForFullPageOrJsAjaxToLoad();\n }",
"public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\",\"drivers/chromedriver\");\n WebDriver driver=new ChromeDriver();\n driver.get(\"https://www.amazon.com/\");\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\n\n int count=0;\n for (WebElement link: links\n ) {\n String fullLink = link.getAttribute(\"href\");\n String getText = link.getText();\n\n if(!getText.isEmpty()){\n System.out.println(getText+\" \"+fullLink);\n count++;\n\n }\n }\n System.out.println(\"Number of links that have text: \"+count);\n\n\n }",
"@Test\n public void hasLinkMultiple() {\n browseTo(\"/hasLink-2.html\", \"hasLink - 2\");\n assertTrue(\"Should have found link present\", driverWrapper.hasLink(\"test 1\"));\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new jamon monitor factory. | public JamonMonitorFactory(final SimpleProfileMonitor rootMonitor) {
super(rootMonitor);
} | [
"@Override\n\tprotected ProfileMonitorFactory createProfileMonitorFactory() {\n\t\treturn new JamonMonitorFactory(new SimpleProfileMonitor(\"JAMON-TEST\"));\n\t}",
"Monitor createMonitor();",
"JZLemurMonitor createJZLemurMonitor();",
"private static FaxJobMonitor createFaxJobMonitor(Map<String, String> systemConfig) {\n // get class name\n String className = systemConfig.get(FaxClientSpiFactory.FAX_JOB_MONITOR_CLASS_NAME_PROPERTY_KEY);\n if (className == null || className.length() == 0) {\n className = FaxJobMonitorImpl.class.getName();\n }\n\n // create new instance\n FaxJobMonitor faxJobMonitorInstance = (FaxJobMonitor) ReflectionHelper.createInstance(className);\n\n return faxJobMonitorInstance;\n }",
"public abstract Monitor newMonitor(Simulator s);",
"public Monitor newMonitor(Simulator s) {\n return new Mon(s);\n }",
"private ChainMonitor createMonitor(String monitorClassName) {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n try {\n return (ChainMonitor) classLoader.loadClass(monitorClassName)\n .newInstance();\n } catch (Exception e) {\n return new ConsoleChainMonitor();\n }\n }",
"private ChainMonitor createMonitor(String monitorClassName) {\n\t\tClassLoader classLoader = Thread.currentThread()\n\t\t\t\t.getContextClassLoader();\n\t\ttry {\n\t\t\treturn (ChainMonitor) classLoader.loadClass(monitorClassName)\n\t\t\t\t\t.newInstance();\n\t\t} catch (Exception e) {\n\t\t\treturn new ConsoleChainMonitor();\n\t\t}\n\t}",
"private static ModuleFactory getMonitor()\n {\n return AccessController.doPrivileged\n (\n new PrivilegedAction<ModuleFactory>()\n {\n public ModuleFactory run()\n {\n return Monitor.getMonitor();\n }\n }\n );\n }",
"public WorkerMonitor() {\n }",
"public Monitor() {\r\n}",
"public void newMonitor(Cluster serv) throws DockerException, InterruptedException {\n //DockerManager dm = DockerManager.getInstance();\n int newID = monitors.size() + 1;\n Monitor mon = new Monitor(newID, serv);\n mon.initiate();\n monitors.add(mon);\n }",
"protected MonitorFactory(String h) {\n super(\"monitor\", h);\n\n addSection(\"MONITOR OVERVIEW\", help);\n addOptionSection(\"Help for the options accepted by this monitor is below.\", options);\n }",
"public static synchronized IocMonitor createAndStartMonitor() {\n\t\tstopAndDisposeIocMonitor();\n\t\tiocMonitor = new IocMonitor();\n\t\ticsTracker = new InterconnectionServerTracker(iocMonitor);\n\t\t\n\t\tsessionServiceTracker = new ServiceTracker(\n\t\t\t\tActivator.getDefault().getBundleContext(),\n\t\t\t\tISessionService.class.getName(), null) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object addingService(ServiceReference reference) {\n\t\t\t\tObject service = super.addingService(reference);\n\t\t\t\ticsTracker.bindService((ISessionService) service);\n\t\t\t\treturn service;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void removedService(ServiceReference reference,\n\t\t\t\t\tObject service) {\n\t\t\t\ticsTracker.unbindService((ISessionService) service);\n\t\t\t\tsuper.removedService(reference, service);\n\t\t\t}\n\t\t};\n\t\tsessionServiceTracker.open();\n\t\treturn iocMonitor;\n\t}",
"public static MonitorManager getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new MonitorManager();\n\t\t}\n\t\treturn instance;\n\t}",
"public JamonPerformanceMonitorInterceptor() {\n }",
"public final static RuntimeMonitor createMonitor(String monitorName) {\r\n ReflectionFactory rf = new ReflectionFactory();\r\n \r\n List<String> packagePath = new ArrayList<String>();\r\n packagePath.add(\"simulator.elevatorcontrol.\");\r\n packagePath.add(\"simulator.elevatormodules.\");\r\n \r\n RuntimeMonitor monitor = null;\r\n try {\r\n monitor = (RuntimeMonitor)rf.createObject(monitorName, packagePath);\r\n } catch (Exception ex) {\r\n throw new RuntimeException(\"Exception while creating runtime monitor: \" + ex, ex);\r\n }\r\n return monitor;\r\n }",
"public ScreenMonitor(){\n this(Configuration.SCREEN_MONITOR_UPDATE_DELAY,\n\t \t\tConfiguration.SCREEN_MONITOR_LOGS_SIZE, \n\t \t\tConfiguration.SCREEN_MONITOR_LINE_SEPERATOR,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_MEMORY,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_POWER);\n }",
"public interface MonitoringActivator {\n\n /**\n * Initializes the monitoring and if not successfull defaults to a No-Op state.\n */\n public void initializeMonitoring();\n\n /**\n * Finishes the monitoring and frees all resources.\n */\n public void finishMonitoring();\n\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a TimeBoost Objective with the TimeBoost image. | public TimeBoost ()
{
super ("hats3/Images/GameImages/timebonus.png");
} | [
"@Override\n public void createPowerUp() {\n SpeedBoost speedBoost = new SpeedBoost(game, (float) Utility.randomDoubleFromRange(100, game.getWidth() - 100), (float) Utility.randomDoubleFromRange(100, game.getPlayHeight() - 100), this.whiteBall);\n game.getPowerups().add(speedBoost);\n game.addEntity(speedBoost);\n }",
"TimeEstimation createTimeEstimation();",
"public ObjectiveModel() {\n\t\tsuper(0,0,1,1);\n\t}",
"public CvBoostParams()\r\n {\r\n\r\n super( CvBoostParams_0() );\r\n\r\n return;\r\n }",
"private static EMBRPose createPose(long time, EMBRMorphKey target, double weight)\n {\n EMBRPose p = new EMBRPose(time);\n p.constraints.add(new EMBRMorphTargetConstraint(target, weight));\n\n // taking this out seemed to have helped the timing precision!\n //p.relativeTime = true;\n return p;\n }",
"Timing createTiming();",
"Speed createSpeed();",
"public AddGenericRtlibObject() {\n super();\n\n delay = defaultdelay;\n\n constructStandardValues();\n constructPorts();\n\n enableAnimationFlag = SetupManager.getBoolean(\n \"Hades.LayerTable.RtlibAnimation\", false);\n }",
"ShipmentTimeEstimate createShipmentTimeEstimate();",
"public FrameBodyTSOT()\n {\n }",
"public ConstantThroughputTimer()\n {\n }",
"public abstract Objective createObjective(Scoreboard parent,\n String identifier,\n String title);",
"GroundTemplate createGroundTemplate();",
"TAttribute createTAttribute();",
"LayerTaskTimes createLayerTaskTimes();",
"Hazard createHazard();",
"public TimeConstraint() {\n\t\t// Start of user code constructor for TimeConstraint)\n\t\tsuper();\n\t\t// End of user code\n\t}",
"BurstPattern createBurstPattern();",
"public Task makeTask() {\n Task genTask = new Task(this, state, generateLocationInNeighborhood());\n\n\n //state.printlnSynchronized(\"base bounty in neighborhood \" + id + \" is = \" + (totalTime / count));\n genTask.setBaseBounty(getBaseBounty(genTask.getJob().jobType, genTask));\n double br = getBountyRate(genTask.getLocation(),genTask.getJob().jobType);\n totalBr += br;\n genTask.setBountyRate(br);\n\n\n totalBaseBounty += genTask.getBounty();\n tasks.add(genTask);\n\n totalNumTasksGenerated++;\n return genTask;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the provided predicates as a Base64 encoded string. | static String base64EncodePredicates(List<KuduPredicate> predicates) throws IOException {
byte[] bytes = KuduPredicate.serialize(predicates);
return Base64.encodeBase64String(bytes);
} | [
"protected String buildAndEncodeConsentAttributes(final Map<String, List<Object>> attributes) {\n try {\n val json = MAPPER.writer(new MinimalPrettyPrinter()).writeValueAsString(Objects.requireNonNull(attributes));\n LOGGER.trace(\"Consentable attributes are [{}]\", json);\n val base64 = EncodingUtils.encodeBase64(Objects.requireNonNull(json));\n return this.consentCipherExecutor.encode(base64);\n } catch (final Exception e) {\n throw new IllegalArgumentException(\"Could not serialize attributes for consent decision\");\n }\n }",
"private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }",
"public static String toBase64(BloomFilter<?> source) {\n return toBase64(source.getBitSet().toByteArray());\n }",
"private static String base64Encode(byte[] bytes)\n {\n\n String outputString = new String(Base64.encodeBase64(bytes));\n\n return outputString;\n }",
"private String encodeEmails(Object[] emails) {\r\n StringBuffer sb = new StringBuffer();\r\n for (int i=0; i<emails.length; i++) sb.append('|').append(emails[i].toString());\r\n return sb.toString();\r\n }",
"public static String base64Encode(byte[] bytes)\n {\n return DatatypeConverter.printBase64Binary(bytes);\n }",
"private String buildPoliciesHtml(List<Policy> policies) {\n\n\t\tint totalLength = 0;\n\t\tfinal int count = policies.size();\n\t\tfinal String[] contents = new String[count];\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tcontents[i] = policies.get(i).getContent();\n\t\t\ttotalLength += contents[i].length();\n\t\t}\n\t\ttotalLength += (count * POLICIES_HTML_SEPARATOR.length());\n\t\tfinal StringBuilder strBuilder = new StringBuilder(totalLength);\n\n\t\tboolean first = true;\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tstrBuilder.append(contents[i]);\n\t\t\tif (first) {\n\t\t\t\tfirst = false;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tstrBuilder.append(POLICIES_HTML_SEPARATOR);\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\treturn Base64.encodeToString(strBuilder.toString()\n\t\t\t\t\t.getBytes(\"UTF-8\"), android.util.Base64.DEFAULT);\n\t\t} catch (UnsupportedEncodingException ignore) {\n\t\t\t/* Should not happen */\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public String base64Encode(String str) throws StoreFactoryException;",
"public static Filter base64() {\n return base64(Base64.getEncoder(), Base64.getDecoder());\n }",
"public String encode(List<String> strs) {\n \n StringBuilder ans = new StringBuilder(\"\");\n for(String str:strs) {\n ans.append(str.length()+\"@\");\n ans.append(str);\n }\n return ans.toString();\n }",
"public static String encodeCompactedProperties(Properties props) {\n List<String> parts = new ArrayList<>();\n for (Map.Entry<Object, Object> entry : props.entrySet()) {\n parts.add(EQUALS.join(entry.getKey(), entry.getValue()));\n }\n return SEMICOLON.join(parts);\n }",
"default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}",
"protected String createQueryString() {\r\n\t\tassert !this.hasBinaryAttachments;\r\n\t\t\r\n\t\tif (this.params.isEmpty())\r\n\t\t\treturn \"\";\r\n\t\t\r\n\t\tStringBuilder bld = null;\r\n\t\t\r\n\t\tfor (Map.Entry<String, Object> param: this.params.entrySet()) {\r\n\t\t\tif (bld == null)\r\n\t\t\t\tbld = new StringBuilder();\r\n\t\t\telse\r\n\t\t\t\tbld.append('&');\r\n\t\t\t\r\n\t\t\tbld.append(StringUtils.urlEncode(param.getKey()));\r\n\t\t\tbld.append('=');\r\n\t\t\tbld.append(StringUtils.urlEncode(param.getValue().toString()));\r\n\t\t}\r\n\t\t\r\n\t\treturn bld.toString();\r\n\t}",
"public static String base64Encode(byte[] input) {\n return DatatypeConverter.printBase64Binary(input);\n }",
"public CodePointIterator base64Encode() {\n return base64Encode(Base64Alphabet.STANDARD, true);\n }",
"public static String encodePayload(String payload){\n return new String(Base64.getEncoder().encode(payload.getBytes()));\n }",
"protected static String encodeSetting(DangerousFileType[] types)\n throws IOException {\n List<String> mime = new ArrayList<String>();\n List<List<String>> ext = new ArrayList<List<String>>();\n HashMap<String, List<?>> payload = new HashMap<String, List<?>>();\n payload.put(\"m\", mime);\n payload.put(\"e\", ext);\n\n for(DangerousFileType d : types) {\n mime.add(d.mimeType);\n ext.add(Arrays.asList(d.extensions));\n }\n\n ByteArrayOutputStream zipped = new ByteArrayOutputStream();\n DeflaterOutputStream zip = new DeflaterOutputStream(zipped);\n try {\n BEncoder.getEncoder(zip, true, false, \"UTF-8\").encodeDict(payload);\n zip.flush();\n } finally {\n IOUtils.close(zip);\n }\n return Base32.encode(zipped.toByteArray());\n }",
"private String buildEncodedUrlQuery(List<HtmlParameter> formDataSet) {\n\t\tStringBuilder request = new StringBuilder();\n\t\t// Build the query\n\t\tfor (HtmlParameter p : formDataSet) {\n\t\t\tString v;\n\t\t\ttry {\n\t\t\t\tv = URLEncoder.encode(p.getName(), ENCODING_TYPE);\n\t\t\t\trequest.append(v);\n\t\t\t\trequest.append(\"=\");\n\t\t\t\tv = URLEncoder.encode(p.getValue(), ENCODING_TYPE);\n\t\t\t\trequest.append(v);\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\tlog.warn(\"Error while encoding query for form.\", e);\n\t\t\t}\n\t\t\trequest.append(\"&\");\n\t\t}\n\t\t// Delete the last ampersand\n\t\tif (request.length() > 0) {\n\t\t\trequest.deleteCharAt(request.length() - 1);\n\t\t}\n\n\t\treturn request.toString();\n\t}",
"private String collect() {\n final Map<String, String> encoded = new HashMap<>();\n\n synchronized (parameters) {\n parameters.forEach((key, value) -> {\n try {\n for (String v : value) {\n encoded.put(CodecUtils.urlEncode(key), CodecUtils.urlEncode(v));\n }\n } catch (UnsupportedEncodingException e) {\n /* ignore unsupported encoded parameters. */\n logger.error(\"Failed to encode request, parameters: {}\", parameters);\n }\n });\n }\n\n return encoded.entrySet().stream().sorted(this::compareParameter)\n .map(entry -> entry.getKey() + \"=\" + entry.getValue())\n .collect(Collectors.joining(\"&\"));\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return an iterator for the nodes. You can use this if you need to iterate through the nodes. | public Iterator<Node> getNodeIter() {
return nodes.iterator();
} | [
"public Iterator<Node> getNodeIterator() {\n\t\treturn nodes.iterator();\n\t}",
"public Iterator<LayoutNode> nodeIterator() {\n\treturn nodeList.iterator();\n }",
"public final Iterator<MNode1D> getNodesIterator()\n\t{\n\t\treturn nodelist.iterator();\n\t}",
"public Iterator<Node> IteratorNode(){\n Collection collection = nodes_.values();\n Iterator i = collection.iterator();\n return i;\n }",
"public Iterator<GraphNode<N>> nodes() {\n\t\treturn _nodes.iterator();\n\t}",
"Iterable<Node<E>> nodes();",
"public abstract TreeIter<T> iterator();",
"public Iterator<String> listNodes(){\r\n\t\tArrayList<String> dummy_list = new ArrayList<String>();\r\n\t\tif (graph.num_nodes() == 0) {\r\n\t\t\treturn dummy_list.iterator(); \r\n\t\t}else {\r\n\t\t\tfor (Entry<String, TreeSet<Edge<? extends String, ? extends String>>> entry : graph.iterator()) {\r\n\t\t\t\tString tmp = entry.getKey();\r\n\t\t\t\tdummy_list.add(tmp);\r\n\t\t\t}\r\n\t\t\tList<String> dummy2 = dummy_list.subList(0,dummy_list.size());\r\n\t\t\tCollections.sort(dummy2);\r\n\t\t\treturn dummy2.iterator();\r\n\t\t}\r\n\t}",
"public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllInterpretedBy_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}",
"@Override\n public OctreeIterator iterator()\n {\n Stack<CelestialBody> stack = new Stack<>();\n stack = this.root.iterate(stack);\n\n OctreeIterator iterator = new OctreeIterator(stack);\n return iterator;\n }",
"@Override\n\tpublic Iterator<CommitTreeNode> iterator() {\n\t\treturn new NodeIterator();\n\t}",
"public interface NodeIterator {\n /**\n * The root node of the Iterator, as specified when it was created.\n */\n public Node getRoot();\n\n /**\n * This attribute determines which node types are presented via the \n * iterator. The available set of constants is defined in the \n * <code>NodeFilter</code> interface.\n */\n public int getWhatToShow();\n\n /**\n * The filter used to screen nodes.\n */\n public NodeFilter getFilter();\n\n /**\n * The value of this flag determines whether the children of entity \n * reference nodes are visible to the iterator. If false, they will be \n * skipped over.\n * <br> To produce a view of the document that has entity references \n * expanded and does not expose the entity reference node itself, use the \n * whatToShow flags to hide the entity reference node and set \n * expandEntityReferences to true when creating the iterator. To produce \n * a view of the document that has entity reference nodes but no entity \n * expansion, use the whatToShow flags to show the entity reference node \n * and set expandEntityReferences to false.\n */\n public boolean getExpandEntityReferences();\n\n /**\n * Returns the next node in the set and advances the position of the \n * iterator in the set. After a NodeIterator is created, the first call \n * to nextNode() returns the first node in the set.\n * @return The next <code>Node</code> in the set being iterated over, or\n * <code>null</code> if there are no more members in that set.\n * @exception DOMException\n * INVALID_STATE_ERR: Raised if this method is called after the\n * <code>detach</code> method was invoked.\n */\n public Node nextNode()\n throws DOMException;\n\n /**\n * Returns the previous node in the set and moves the position of the \n * iterator backwards in the set.\n * @return The previous <code>Node</code> in the set being iterated over, \n * or<code>null</code> if there are no more members in that set. \n * @exception DOMException\n * INVALID_STATE_ERR: Raised if this method is called after the\n * <code>detach</code> method was invoked.\n */\n public Node previousNode()\n throws DOMException;\n\n /**\n * Detaches the iterator from the set which it iterated over, releasing \n * any computational resources and placing the iterator in the INVALID \n * state. After<code>detach</code> has been invoked, calls to \n * <code>nextNode</code> or<code>previousNode</code> will raise the \n * exception INVALID_STATE_ERR.\n */\n public void detach();\n\n}",
"public ReadOnlyIterator<ContextNode> getContextNodes();",
"public Iterator treeNodes() {\n return FlatProjectView.getInstance().flattenProjectTree(this).iterator();\n }",
"@Override\n public Iterator<XMLNode> iterator() {\n return Collections.unmodifiableList(sub).iterator();\n }",
"@Override\n public NodeIterator getNodes() throws RepositoryException {\n if (properties == null) {\n return new RssNodeIterator((RssSessionImpl) getSession());\n } else {\n return new RssNodeIterator(null);\n }\n }",
"IIterator<ITrieNode<TKey>> getChildrenIterator();",
"@Override\n public Iterator<T> iterator() {\n return new IteratorTree(this.root, this.modCount);\n }",
"public Iterator<Node> getInputLayerIterator() {\n\t\treturn inNodes.iterator();\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the batch corresponding to the given range. If the supplied range does not fall within the available range, the results returned correspond to the intersection of the two. If no items are found, the supplied range does not intersect the available range, or the supplied range has length zero, then an empty array is returned. Calling this method does not affect the position of the iterator. | public NSArray<E> batchWithRange(NSRange requestedRange) {
EOEditingContext ec = editingContext();
if ( ec == null) {
throw new IllegalStateException("ERXFetchSpecificationBatchIterator: Calling nextBatch with a null editing context!");
}
NSArray<E> nextBatch = null;
NSRange range = requestedRange.rangeByIntersectingRange( new NSRange(0, count()) ); //intersect with legal range
if ( range.length() > 0 ) {
NSArray primaryKeys = primaryKeys();
NSArray primaryKeysToFetch = primaryKeys.subarrayWithRange(range);
log.debug("Of primaryKey count: {} fetching range: {} which is: {}", primaryKeys.count(), range, primaryKeysToFetch.count());
ERXInQualifier qual = new ERXInQualifier(primaryKeyAttributeName, primaryKeysToFetch);
EOFetchSpecification batchFS = new EOFetchSpecification(fetchSpecification.entityName(), qual, fetchSpecification.sortOrderings());
if (fetchSpecification.prefetchingRelationshipKeyPaths() != null) {
batchFS.setPrefetchingRelationshipKeyPaths(fetchSpecification.prefetchingRelationshipKeyPaths());
}
batchFS.setRefreshesRefetchedObjects(fetchSpecification.refreshesRefetchedObjects());
batchFS.setRawRowKeyPaths(fetchSpecification.rawRowKeyPaths());
nextBatch = ec.objectsWithFetchSpecification(batchFS);
if (log.isDebugEnabled()) {
log.debug("Actually fetched: {} with fetch specification: {}", nextBatch.count(), batchFS);
if (primaryKeysToFetch.count() > nextBatch.count()) {
NSArray missedKeys = ERXArrayUtilities.arrayMinusArray(primaryKeysToFetch, (NSArray)nextBatch.valueForKey(primaryKeyAttributeName));
log.debug("Primary Keys that were not found for this batch: {}", missedKeys);
}
}
if (shouldFilterBatches) {
EOQualifier originalQualifier = fetchSpecification.qualifier();
if (originalQualifier != null) {
nextBatch = EOQualifier.filteredArrayWithQualifier(nextBatch, originalQualifier);
log.debug("Filtered batch to: {}", nextBatch.count());
}
}
}
return nextBatch != null ? nextBatch : NSArray.EmptyArray;
} | [
"@VisibleForTesting\n List<MutableCodepointRange> intersection(CodepointRange intersecting) {\n List<MutableCodepointRange> intersection = new ArrayList<>();\n\n MutableCodepointRange start = MutableCodepointRange.createPoint(intersecting.start());\n MutableCodepointRange end = MutableCodepointRange.createPoint(intersecting.end() + 1);\n // All intervals that start strictly after the intersecting (but not after its end)\n SortedSet<MutableCodepointRange> subset = mRanges.subSet(start, end);\n\n // Also consider the last interval which was starting before\n try {\n SortedSet<MutableCodepointRange> prevRanges =\n subset.isEmpty() ? mRanges.headSet(end) : mRanges.headSet(subset.first());\n MutableCodepointRange prevRange = prevRanges.last();\n if (prevRange.start < intersecting.start() && intersecting.start() <= prevRange.end) {\n intersection.add(0, prevRange);\n }\n } catch (NoSuchElementException e) {\n // lastRange remains null\n }\n\n intersection.addAll(subset);\n\n return intersection;\n }",
"@NotNull\n public static long[] getChunksInRange(@NotNull Position position, int range) {\n range = range * 2;\n long[] visibleChunks = new long[MathUtils.square(range + 1)];\n final int startLoop = -(range / 2);\n final int endLoop = range / 2 + 1;\n int counter = 0;\n for (int x = startLoop; x < endLoop; x++) {\n for (int z = startLoop; z < endLoop; z++) {\n final int chunkX = getChunkCoordinate((int) (position.getX() + Chunk.CHUNK_SIZE_X * x));\n final int chunkZ = getChunkCoordinate((int) (position.getZ() + Chunk.CHUNK_SIZE_Z * z));\n visibleChunks[counter++] = getChunkIndex(chunkX, chunkZ);\n }\n }\n return visibleChunks;\n }",
"public List<T> findRange(int[] range) {\n\t\tCriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();\n\t\tcq.select(cq.from(entityClass));\n\t\tQuery q = getEntityManager().createQuery(cq);\n\t\tq.setMaxResults(range[1] - range[0] + 1);\n\t\tq.setFirstResult(range[0]);\n\t\treturn q.getResultList();\n\t}",
"protected abstract Iterable<E> getIntersecting(D lower, D upper);",
"private Iterable<ValueRange<T>> overlappingScan(final ValueRange<T> queryRange, Authorizations auths) throws TableNotFoundException {\n\n T maxDistance = getMaxDistance(auths);\n\n //No point of running this check if the criteria range has spanned the max distance.\n if (maxDistance == null || helper.distance(queryRange).compareTo(maxDistance) >= 0)\n return emptySet();\n\n //We do [(high - maxdistance) -> low] on the forward table as it would only\n //account for large intervals that are close but outside the range of the ranges already scanned.\n final Scanner scanner = connector.createScanner(tableName, auths);\n scanner.setRange(new org.apache.accumulo.core.data.Range(\n LOWER_BOUND_INDEX + NULL_BYTE + helper.encode(helper.distance(new ValueRange<T>(maxDistance, queryRange.getStop()))) + NULL_BYTE, true,\n LOWER_BOUND_INDEX + NULL_BYTE + helper.encode(queryRange.getStart()) + NULL_BYTE, false\n ));\n\n //Configure Filter to filter out any ranges that don't overlap the criteria range as they\n //either are outside the criteria range or have already been picked up by the forward and reverse scans.\n IteratorSetting setting = new IteratorSetting(DEFAULT_ITERATOR_PRIORITY, OverlappingScanFilter.class);\n OverlappingScanFilter.setQueryUpperBound(setting, helper.encode(queryRange.getStop()));\n scanner.addScanIterator(setting);\n\n return transform(scanner, new RangeTransform<T>(helper, true));\n }",
"@Override public byte[][] recordRangeSearch(byte[] queryBegin, byte[] queryEnd) {\n Set<Integer> recordIds = new HashSet<Integer>();\n ArrayList<byte[]> results = new ArrayList<byte[]>();\n Range rangeBegin = bwdSearch(queryBegin);\n Range rangeEnd = bwdSearch(queryEnd);\n\n long sp = rangeBegin.first, ep = rangeEnd.second;\n if (ep - sp + 1 <= 0) {\n return new byte[0][0];\n }\n\n for (long i = 0; i < ep - sp + 1; i++) {\n long saVal = lookupSA(sp + i);\n int recordId = offsetToRecordId((int) saVal);\n if (!recordIds.contains(recordId)) {\n results.add(getPartitionRecord(recordId));\n recordIds.add(recordId);\n }\n }\n\n return results.toArray(new byte[results.size()][]);\n }",
"public ArrayList<QuadTreeNode<E>> getIntersecting(Circle range) {\n\t\tif (!divided) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tArrayList<QuadTreeNode<E>> intersecting = new ArrayList<QuadTreeNode<E>>();\n\t\t\n\t\tfor (QuadTreeNode<E> n : nodes) {\n\t\t\tif (n.intersects(range)) {\n\t\t\t\tintersecting.add(n);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn intersecting;\n\t}",
"public Set<Entry<Range<Integer>, String>> getOverlappingChunks(Range<Integer> range) {\n return chunks.getOverlapping(range).entrySet();\n }",
"pb.lyft.datacatalog.Datacatalog.IntRangeFilter getRange();",
"public double[] getXRange() {\n double [] a = boxT.getXRange();\n double [] b = boxB.getXRange();\n double [] c = {a[0], a[1], b[0], b[1]};\n return c;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n assertNull(rect);\n Stack<Point2D> pointsInRange = new Stack<>();\n for (Point2D point : points) {\n if ((point.x() <= rect.xmax() && point.x() >= rect.xmin()) &&\n (point.y() <= rect.ymax() && point.y() >= rect.ymin())\n ) {\n pointsInRange.push(point);\n }\n }\n\n return pointsInRange;\n }",
"pb.lyft.datacatalog.Datacatalog.IntRangeFilterOrBuilder getRangeOrBuilder();",
"public static Entity[] getEntityArrayWithin(Rectangle selectionArea)\n {\n ArrayList<Entity> selection = new ArrayList<Entity>();\n synchronized(entities)\n {\n for(Entity e : entities)\n {\n if(e.boundsTest(selectionArea))\n {\n selection.add(e);\n }\n }\n }\n return selection.toArray(new Entity[selection.size()]);\n }",
"public static void test_inRange() {\n\t\tSystem.out.println(\"\\nTesting inRange ...\");\n\n\t\tint[] results;\n\n\t\tint[] testArray = {1,2,3,4};\n\n\t\tresults = inRange(testArray,5,7);\n\t\tif (null != results) {\n\t\t\tSystem.out.println(\"Nothing in range. Expected null.\");\n\t\t}\n\n\t\tresults = inRange(testArray,2,2);\n\t\tif (null == results) {\n\t\t\tSystem.out.println(\"One value in range. Expect 1. Results null.\");\n\t\t} else {\n\t\t\tAssert.assertEquals(1,results.length,\"One value in range - size.\");\n\t\t\tif (1 <= results.length) {\n\t\t\t\tAssert.assertEquals(2,results[0],\"One value in range - value.\");\n\t\t\t}\n\t\t}\n\n\t\tresults = inRange(testArray,3,4);\n\t\tif (null == results) {\n\t\t\tSystem.out.println(\"2 vals in range. Expect size 2. Results null.\");\n\t\t} else {\n\t\t\tAssert.assertEquals(2,results.length,\"2 values in range - size.\");\n\t\t\tif (2 <= results.length) {\n\t\t\t\tAssert.assertEquals(3,results[0],\"2 values in range - value.\");\n\t\t\t\tAssert.assertEquals(4,results[1],\"2 values in range - value.\");\n\t\t\t}\n\t\t}\n\t}",
"public Range intersect(Range other) throws InvalidRangeException {\n if ((length() == 0) || (other.length() == 0)) {\n return EMPTY;\n }\n if (this == VLEN || other == VLEN) {\n return VLEN;\n }\n Preconditions.checkArgument(other.stride == 1, \"other stride must be 1\");\n\n int first = Math.max(this.first(), other.first());\n int last = Math.min(this.last(), other.last());\n\n if (first > last) {\n return EMPTY;\n }\n\n if (first() < other.first()) {\n int incr = (other.first() - first()) / this.stride;\n first = first() + incr * this.stride;\n if (first < other.first()) {\n first += this.stride;\n }\n }\n\n return new Range(name, first, last, this.stride);\n }",
"Range getRange();",
"public Player[] queryRange(PlayerAttribute field, Comparable<?> start, Comparable<?> end);",
"public IgniteQuery getRangeQuery(String label, String key, Object inclusiveFrom, Object exclusiveTo) {\n return new IgniteRangeQuery(name, admin, label, key, inclusiveFrom, exclusiveTo);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Places tooltip on n | private void placeTooltip(@NotNull Node n) {
Tooltip.install(n, getTooltip());
} | [
"void showTooltip();",
"private void setTooltip() {\r\n\tproductsTableView.setTooltip(new Tooltip(\"k: Zeilenindex\\n\"\r\n\t\t+ \"D: Nachfragerate\\n\" + \"p: Produktionsrate\\n\"\r\n\t\t+ \"τ: Rüstzeit\\n\" + \"s: Rüstkostensatz\\n\"\r\n\t\t+ \"h: Lagerkostensatz\"));\r\n }",
"public void showAddToolTip(){\n\t}",
"java.lang.String getTooltip();",
"String getTooltip();",
"public String getToolTipText(double x, double y);",
"private void drawTip() {\n if (!node.hasMetadata() || node.getMetadata().getSequence().length() <= MAX_SEQUENCE_LENGTH) {\n return;\n }\n\n graphicsContext.setFill(Color.GREY);\n graphicsContext.fillText(\n \"Click the node to see the full sequence.\",\n middleX - (DEFAULT_WIDTH / 2) + X_PADDING,\n belowY + LINE_HEIGHT + Y_PADDING + offset\n );\n\n offset += LINE_HEIGHT * 1.5;\n }",
"String getTooltipLabel();",
"public String topNAttributesToSplitTipText() {\n return \"Value of N to use for top-N attributes to choose randomly from.\";\n }",
"private void updateTooltip(int index)\n {\n String text = null;\n if(index >= 0 \n && index < this.list.getItemCount()\n && (text = this.textLookup.get(index)) != null)\n {\n this.tooltip.setText(text); \n // calculate the location\n Point size = this.list.getSize();\n this.tooltip.show(new Point(size.x-2, 0));\n // set the selection idx\n this.previousSelectionIdx = index;\n }\n else\n {\n this.tooltip.hide();\n }\n }",
"public void setTooltipText() { tooltip.setText(name); }",
"@Override\r\n public Point getToolTipLocation(MouseEvent e) {\r\n return new Point(this.getWidth(), 0);\r\n }",
"private void initTooltip() {\n\t\ttooltip = new Tooltip(tooltipText());\n\t\ttooltip.setGraphic(new ImageView(icon));\n\t\ttooltip.setPrefWidth(250);\n\t\ttooltip.setWrapText(true);\n\t\tsetTooltip(tooltip);\n\t}",
"public String randomTip() {\n int pos = random.nextInt(numberOfTips) + 1;\n return printTip(pos);\n }",
"public static Tooltip intTooltip(){\n return intTooltip;\n }",
"public String getToolTipText(MouseEvent ev) {\n if(as!=null && as.nominalCounts!=null) {\n float intervalWidth = this.getWidth()/(float)as.nominalCounts.length, heightRatio;\n int barWidth, x=0, y=0;\n if(intervalWidth>5)\n\tbarWidth = (int)Math.floor(intervalWidth*0.8F);\n else\n\tbarWidth = 1;\n\n x = x + (int)( (Math.floor(intervalWidth*0.1F))<1 ? 1:(Math.floor(intervalWidth*0.1F)) );\n if( this.getWidth() - \n\t (x + as.nominalCounts.length*barWidth \n\t +(int)( (Math.floor(intervalWidth*0.2F))<1 ? 1:(Math.floor(intervalWidth*0.2F)) )*as.nominalCounts.length) > 5 )\n\tx += (this.getWidth() - \n\t (x + as.nominalCounts.length*barWidth + \n\t (int)( (Math.floor(intervalWidth*0.2F))<1 ? 1:(Math.floor(intervalWidth*0.2F)) )*as.nominalCounts.length))/2;\n for(int i=0; i<as.nominalCounts.length; i++) {\n\theightRatio = (this.getHeight()-(float)fm.getHeight())/maxValue;\n\ty = this.getHeight()-Math.round(as.nominalCounts[i]*heightRatio);\n\tif(ev.getX()>=x && ev.getX()<=x+barWidth\n\t && ev.getY()>=this.getHeight()-Math.round(as.nominalCounts[i]*heightRatio) )\n\t return(m_data.attribute(attribIndex).value(i)+\" [\"+as.nominalCounts[i]+\"]\");\n\tx = x+barWidth+(int)( (Math.floor(intervalWidth*0.2F))<1 ? 1:(Math.floor(intervalWidth*0.2F)) );\n }\n }\n else if(histBarCounts!=null && threadRun==false) {\n float heightRatio, intervalWidth;\n int x=0, y=0, barWidth;\n double bar = as.numericStats.min;\n\t\n barWidth = ((this.getWidth()-6)/histBarCounts.length)<1 ? 1:((this.getWidth()-6)/histBarCounts.length);\n\t\n x = 3;\n if( (this.getWidth() - (x + histBarCounts.length*barWidth)) > 5 )\n\tx += (this.getWidth() - (x + histBarCounts.length*barWidth))/2;\n\t\n heightRatio = (this.getHeight()-(float)fm.getHeight())/maxValue;\n\n if( ev.getX()-x >= 0) {\n\tint temp = (ev.getX()-x)/barWidth;\n\tif(temp == 0)\n\t return (\"<html><center><font face=Dialog size=-1>\"\n\t\t +histBarCounts[0]+\"<br>[\"\n\t\t +Utils.doubleToString(bar+m_barRange*temp,3)+\", \"+Utils.doubleToString((bar+m_barRange*(temp+1)),3)\n\t\t +\"]</font></center></html>\");\n\telse if( temp < histBarCounts.length )\n\t return (\"<html><center><font face=Dialog size=-1>\"\n\t\t +histBarCounts[temp]+\"<br>(\"\n\t\t +Utils.doubleToString(bar+m_barRange*temp,3)+\", \"+Utils.doubleToString((bar+m_barRange*(temp+1)),3)\n\t\t +\"]</font></center></html>\"); \n }\n }\n return \"\"; \n }",
"public void addToolTip(String text, Shape area);",
"private void setLineChartToolTip() {\n int i = 1;\n for (XYChart.Series<String, Number> s : lineChart.getData()) {\n for (XYChart.Data<String, Number> d : s.getData()) {\n Tooltip tooltip = new Tooltip();\n // set first half part of series with the tooltip of open\n if (i <= 1) {\n tooltip.setGraphic(new ToolTipContent(\"OPEN:\"));\n\n d.getNode().setOnMouseEntered(new EventHandler<MouseEvent>() {\n /**\n * set the style of symbol to change when the mouse hovers the point\n * @param event MouseEvent, the mouse event of hover\n */\n @Override\n public void handle(MouseEvent event) {\n double radius = Math.round(5 / Math.log10(CsvData.TickerData.size()));\n String style = \"-fx-background-radius: \" + radius + \"px; -fx-padding: \" + radius + \"px\";\n d.getNode().setStyle(\"-fx-background-color: #95a5a6;\" + style);\n }\n });\n d.getNode().setOnMouseExited(new EventHandler<MouseEvent>() {\n /**\n * set the style of symbol to change when the mouse leaves the point\n * @param event MouseEvent, the mouse event of leave\n */\n @Override\n public void handle(MouseEvent event) {\n double radius = Math.round(5 / Math.log10(CsvData.TickerData.size()));\n String style = \"-fx-background-radius: \" + radius + \"px; -fx-padding: \" + radius + \"px\";\n d.getNode().setStyle(\"-fx-background-color: #bdc3c7, white;\" + style);\n }\n });\n } else {\n // set last half part of series with the tooltip of close\n tooltip.setGraphic(new ToolTipContent(\"CLOSE:\"));\n\n d.getNode().setOnMouseEntered(new EventHandler<MouseEvent>() {\n /**\n * set the style of symbol to change when the mouse hovers the point\n * @param event MouseEvent, the mouse event\n */\n @Override\n public void handle(MouseEvent event) {\n double radius = Math.round(5 / Math.log10(CsvData.TickerData.size()));\n String style = \"-fx-background-radius: \" + radius + \"px; -fx-padding: \" + radius + \"px\";\n d.getNode().setStyle(\"-fx-background-color: #34495e;\" + style);\n }\n });\n d.getNode().setOnMouseExited(new EventHandler<MouseEvent>() {\n /**\n * set the style of symbol to change when the mouse leaves the point\n * @param event MouseEvent, the mouse event\n */\n @Override\n public void handle(MouseEvent event) {\n double radius = Math.round(5 / Math.log10(CsvData.TickerData.size()));\n String style = \"-fx-background-radius: \" + radius + \"px; -fx-padding: \" + radius + \"px\";\n d.getNode().setStyle(\"-fx-background-color: #7f8c8d, white;\" + style);\n }\n });\n }\n\n // register the tooltip\n Tooltip.install(d.getNode(), tooltip);\n // set the tooltip content\n ToolTipContent toolTipContent = (ToolTipContent) tooltip.getGraphic();\n // update the data in the tooltip content\n try {\n toolTipContent.update(d.getXValue(), d.getYValue());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n i = i + 1;\n }\n }",
"public TooltipDisplay getTooltipDisplay();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AmbienteDespliegue__RecursosAssignment_4_2" $ANTLR start "rule__AmbienteDespliegue__RecursosAssignment_4_3_1" InternalCeffective.g:8423:1: rule__AmbienteDespliegue__RecursosAssignment_4_3_1 : ( ( ruleEString ) ) ; | public final void rule__AmbienteDespliegue__RecursosAssignment_4_3_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCeffective.g:8427:1: ( ( ( ruleEString ) ) )
// InternalCeffective.g:8428:2: ( ( ruleEString ) )
{
// InternalCeffective.g:8428:2: ( ( ruleEString ) )
// InternalCeffective.g:8429:3: ( ruleEString )
{
before(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoCrossReference_4_3_1_0());
// InternalCeffective.g:8430:3: ( ruleEString )
// InternalCeffective.g:8431:4: ruleEString
{
before(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoEStringParserRuleCall_4_3_1_0_1());
pushFollow(FOLLOW_2);
ruleEString();
state._fsp--;
after(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoEStringParserRuleCall_4_3_1_0_1());
}
after(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoCrossReference_4_3_1_0());
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__AmbienteDespliegue__RecursosAssignment_4_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8408:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:8409:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:8409:2: ( ( ruleEString ) )\n // InternalCeffective.g:8410:3: ( ruleEString )\n {\n before(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoCrossReference_4_2_0()); \n // InternalCeffective.g:8411:3: ( ruleEString )\n // InternalCeffective.g:8412:4: ruleEString\n {\n before(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoEStringParserRuleCall_4_2_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoEStringParserRuleCall_4_2_0_1()); \n\n }\n\n after(grammarAccess.getAmbienteDespliegueAccess().getRecursosRecursoCrossReference_4_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Almacenamiento__RecursosAssignment_7_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8762:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:8763:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:8763:2: ( ( ruleEString ) )\n // InternalCeffective.g:8764:3: ( ruleEString )\n {\n before(grammarAccess.getAlmacenamientoAccess().getRecursosRecursoCrossReference_7_3_1_0()); \n // InternalCeffective.g:8765:3: ( ruleEString )\n // InternalCeffective.g:8766:4: ruleEString\n {\n before(grammarAccess.getAlmacenamientoAccess().getRecursosRecursoEStringParserRuleCall_7_3_1_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAlmacenamientoAccess().getRecursosRecursoEStringParserRuleCall_7_3_1_0_1()); \n\n }\n\n after(grammarAccess.getAlmacenamientoAccess().getRecursosRecursoCrossReference_7_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Almacenamiento__RecursosAssignment_7_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8743:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:8744:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:8744:2: ( ( ruleEString ) )\n // InternalCeffective.g:8745:3: ( ruleEString )\n {\n before(grammarAccess.getAlmacenamientoAccess().getRecursosRecursoCrossReference_7_2_0()); \n // InternalCeffective.g:8746:3: ( ruleEString )\n // InternalCeffective.g:8747:4: ruleEString\n {\n before(grammarAccess.getAlmacenamientoAccess().getRecursosRecursoEStringParserRuleCall_7_2_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAlmacenamientoAccess().getRecursosRecursoEStringParserRuleCall_7_2_0_1()); \n\n }\n\n after(grammarAccess.getAlmacenamientoAccess().getRecursosRecursoCrossReference_7_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Subred__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:9064:1: ( ( ruleEString ) )\n // InternalCeffective.g:9065:2: ( ruleEString )\n {\n // InternalCeffective.g:9065:2: ( ruleEString )\n // InternalCeffective.g:9066:3: ruleEString\n {\n before(grammarAccess.getSubredAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getSubredAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Servidor_Impl__RecursosAssignment_7_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:9026:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:9027:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:9027:2: ( ( ruleEString ) )\n // InternalCeffective.g:9028:3: ( ruleEString )\n {\n before(grammarAccess.getServidor_ImplAccess().getRecursosRecursoCrossReference_7_3_1_0()); \n // InternalCeffective.g:9029:3: ( ruleEString )\n // InternalCeffective.g:9030:4: ruleEString\n {\n before(grammarAccess.getServidor_ImplAccess().getRecursosRecursoEStringParserRuleCall_7_3_1_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getServidor_ImplAccess().getRecursosRecursoEStringParserRuleCall_7_3_1_0_1()); \n\n }\n\n after(grammarAccess.getServidor_ImplAccess().getRecursosRecursoCrossReference_7_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Almacenamiento__NombreAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8683:1: ( ( ruleEString ) )\n // InternalCeffective.g:8684:2: ( ruleEString )\n {\n // InternalCeffective.g:8684:2: ( ruleEString )\n // InternalCeffective.g:8685:3: ruleEString\n {\n before(grammarAccess.getAlmacenamientoAccess().getNombreEStringParserRuleCall_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAlmacenamientoAccess().getNombreEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ServidorAplicaciones__RecursosAssignment_8_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8645:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:8646:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:8646:2: ( ( ruleEString ) )\n // InternalCeffective.g:8647:3: ( ruleEString )\n {\n before(grammarAccess.getServidorAplicacionesAccess().getRecursosRecursoCrossReference_8_3_1_0()); \n // InternalCeffective.g:8648:3: ( ruleEString )\n // InternalCeffective.g:8649:4: ruleEString\n {\n before(grammarAccess.getServidorAplicacionesAccess().getRecursosRecursoEStringParserRuleCall_8_3_1_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getServidorAplicacionesAccess().getRecursosRecursoEStringParserRuleCall_8_3_1_0_1()); \n\n }\n\n after(grammarAccess.getServidorAplicacionesAccess().getRecursosRecursoCrossReference_8_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Servidor_Impl__RecursosAssignment_7_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:9007:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:9008:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:9008:2: ( ( ruleEString ) )\n // InternalCeffective.g:9009:3: ( ruleEString )\n {\n before(grammarAccess.getServidor_ImplAccess().getRecursosRecursoCrossReference_7_2_0()); \n // InternalCeffective.g:9010:3: ( ruleEString )\n // InternalCeffective.g:9011:4: ruleEString\n {\n before(grammarAccess.getServidor_ImplAccess().getRecursosRecursoEStringParserRuleCall_7_2_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getServidor_ImplAccess().getRecursosRecursoEStringParserRuleCall_7_2_0_1()); \n\n }\n\n after(grammarAccess.getServidor_ImplAccess().getRecursosRecursoCrossReference_7_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ServidorBD__RecursosAssignment_9_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8909:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:8910:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:8910:2: ( ( ruleEString ) )\n // InternalCeffective.g:8911:3: ( ruleEString )\n {\n before(grammarAccess.getServidorBDAccess().getRecursosRecursoCrossReference_9_3_1_0()); \n // InternalCeffective.g:8912:3: ( ruleEString )\n // InternalCeffective.g:8913:4: ruleEString\n {\n before(grammarAccess.getServidorBDAccess().getRecursosRecursoEStringParserRuleCall_9_3_1_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getServidorBDAccess().getRecursosRecursoEStringParserRuleCall_9_3_1_0_1()); \n\n }\n\n after(grammarAccess.getServidorBDAccess().getRecursosRecursoCrossReference_9_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AutenticacionFirma__CorreoAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8506:1: ( ( ruleEString ) )\n // InternalCeffective.g:8507:2: ( ruleEString )\n {\n // InternalCeffective.g:8507:2: ( ruleEString )\n // InternalCeffective.g:8508:3: ruleEString\n {\n before(grammarAccess.getAutenticacionFirmaAccess().getCorreoEStringParserRuleCall_4_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAutenticacionFirmaAccess().getCorreoEStringParserRuleCall_4_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AutenticacionBasica__CorreoAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8461:1: ( ( ruleEString ) )\n // InternalCeffective.g:8462:2: ( ruleEString )\n {\n // InternalCeffective.g:8462:2: ( ruleEString )\n // InternalCeffective.g:8463:3: ruleEString\n {\n before(grammarAccess.getAutenticacionBasicaAccess().getCorreoEStringParserRuleCall_4_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAutenticacionBasicaAccess().getCorreoEStringParserRuleCall_4_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ServidorAplicaciones__RecursosAssignment_8_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8626:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:8627:2: ( ( ruleEString ) )\n {\n // InternalCeffective.g:8627:2: ( ( ruleEString ) )\n // InternalCeffective.g:8628:3: ( ruleEString )\n {\n before(grammarAccess.getServidorAplicacionesAccess().getRecursosRecursoCrossReference_8_2_0()); \n // InternalCeffective.g:8629:3: ( ruleEString )\n // InternalCeffective.g:8630:4: ruleEString\n {\n before(grammarAccess.getServidorAplicacionesAccess().getRecursosRecursoEStringParserRuleCall_8_2_0_1()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getServidorAplicacionesAccess().getRecursosRecursoEStringParserRuleCall_8_2_0_1()); \n\n }\n\n after(grammarAccess.getServidorAplicacionesAccess().getRecursosRecursoCrossReference_8_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AutenticacionFirma__UsuarioAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8491:1: ( ( ruleEString ) )\n // InternalCeffective.g:8492:2: ( ruleEString )\n {\n // InternalCeffective.g:8492:2: ( ruleEString )\n // InternalCeffective.g:8493:3: ruleEString\n {\n before(grammarAccess.getAutenticacionFirmaAccess().getUsuarioEStringParserRuleCall_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAutenticacionFirmaAccess().getUsuarioEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Atributo__ValorAtributoAssignment_5_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3631:1: ( ( ruleEString ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3632:1: ( ruleEString )\n {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3632:1: ( ruleEString )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:3633:1: ruleEString\n {\n before(grammarAccess.getAtributoAccess().getValorAtributoEStringParserRuleCall_5_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_rule__Atributo__ValorAtributoAssignment_5_17154);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAtributoAccess().getValorAtributoEStringParserRuleCall_5_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EDependencies__Relative_pathAssignment_4_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:26077:1: ( ( RULE_STRING ) )\n // InternalAADMParser.g:26078:2: ( RULE_STRING )\n {\n // InternalAADMParser.g:26078:2: ( RULE_STRING )\n // InternalAADMParser.g:26079:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEDependenciesAccess().getRelative_pathSTRINGTerminalRuleCall_4_2_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEDependenciesAccess().getRelative_pathSTRINGTerminalRuleCall_4_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Vista__ColorFondoAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1473:1: ( ( ruleEString ) )\n // ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1474:1: ( ruleEString )\n {\n // ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1474:1: ( ruleEString )\n // ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1475:1: ruleEString\n {\n before(grammarAccess.getVistaAccess().getColorFondoEStringParserRuleCall_3_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_rule__Vista__ColorFondoAssignment_3_12888);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getVistaAccess().getColorFondoEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Subred__ZonaDisponibilidadAssignment_5_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:9094:1: ( ( ruleEString ) )\n // InternalCeffective.g:9095:2: ( ruleEString )\n {\n // InternalCeffective.g:9095:2: ( ruleEString )\n // InternalCeffective.g:9096:3: ruleEString\n {\n before(grammarAccess.getSubredAccess().getZonaDisponibilidadEStringParserRuleCall_5_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getSubredAccess().getZonaDisponibilidadEStringParserRuleCall_5_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AutenticacionUsuario_Impl__CorreoAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8378:1: ( ( ruleEString ) )\n // InternalCeffective.g:8379:2: ( ruleEString )\n {\n // InternalCeffective.g:8379:2: ( ruleEString )\n // InternalCeffective.g:8380:3: ruleEString\n {\n before(grammarAccess.getAutenticacionUsuario_ImplAccess().getCorreoEStringParserRuleCall_4_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAutenticacionUsuario_ImplAccess().getCorreoEStringParserRuleCall_4_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AutenticacionBasica__UsuarioAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8446:1: ( ( ruleEString ) )\n // InternalCeffective.g:8447:2: ( ruleEString )\n {\n // InternalCeffective.g:8447:2: ( ruleEString )\n // InternalCeffective.g:8448:3: ruleEString\n {\n before(grammarAccess.getAutenticacionBasicaAccess().getUsuarioEStringParserRuleCall_3_1_0()); \n pushFollow(FOLLOW_2);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getAutenticacionBasicaAccess().getUsuarioEStringParserRuleCall_3_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a list of service association links for a subnet. | @ServiceMethod(returns = ReturnType.SINGLE)
public Mono<ServiceAssociationLinksListResult> list(
String resourceGroupName, String virtualNetworkName, String subnetName, Context context) {
return this.serviceClient.listAsync(resourceGroupName, virtualNetworkName, subnetName, context);
} | [
"@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<ServiceAssociationLinksListResult> list(\n String resourceGroupName, String virtualNetworkName, String subnetName) {\n return this.serviceClient.listAsync(resourceGroupName, virtualNetworkName, subnetName);\n }",
"@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<Response<ServiceAssociationLinksListResult>> listWithResponse(\n String resourceGroupName, String virtualNetworkName, String subnetName, Context context) {\n return this.serviceClient.listWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName, context);\n }",
"@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<Response<ServiceAssociationLinksListResult>> listWithResponse(\n String resourceGroupName, String virtualNetworkName, String subnetName) {\n return this.serviceClient.listWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName);\n }",
"@GET\n @PermitAll\n @Produces({ VendorMediaType.APPLICATION_DHCP_SUBNET_COLLECTION_JSON,\n VendorMediaType.APPLICATION_DHCP_SUBNET_COLLECTION_JSON_V2})\n public List<DhcpSubnet> list()\n throws StateAccessException, SerializationException {\n\n if (!authorizer.authorize(context, AuthAction.READ, bridgeId)) {\n throw new ForbiddenHttpException(\n \"Not authorized to view DHCP config of this bridge.\");\n }\n\n List<Subnet> subnetConfigs =\n dataClient.dhcpSubnetsGetByBridge(bridgeId);\n\n List<DhcpSubnet> subnets = new ArrayList<>();\n URI dhcpsUri = ResourceUriBuilder.getBridgeDhcps(getBaseUri(),\n bridgeId);\n for (Subnet subnetConfig : subnetConfigs) {\n DhcpSubnet subnet = new DhcpSubnet(subnetConfig);\n subnet.setParentUri(dhcpsUri);\n subnets.add(subnet);\n }\n\n return subnets;\n }",
"public List<Subnets> getSubnets() {\n\tList<Map<String,Object>> secondary = mASPService.getSecondaryASP(\"subnets\");\n\tif(secondary == null) return Collections.emptyList();\n\tList<Subnets> values = new ArrayList<Subnets>();\n\tfor(Map<String,Object> row : secondary) {\n\t\tvalues.add(new Subnets(\n\t\t\t(String)row.get(\"address\"),\n\t\t\t(String)row.get(\"mask\")));\n\t}\n\treturn Collections.unmodifiableList(values);\n}",
"public List<Subnet> getSubnets()\n {\n return subnets;\n }",
"List<Association> getAssociations();",
"List<String> associatedNetworkIds();",
"public List<String> getAtmServicesLink()\n {\n \treturn elementUtil.getDropdownValueWithoutSelectClass(atmServicesList);\n \t/*List<String>AtmServicesLink=new ArrayList<String>();\n \tList<WebElement> servicesList=driver.findElements(atmServicesList);\n \t\n \tfor(WebElement ele:servicesList)\n \t{\n \t\tString text=ele.getText();\n \t\tAtmServicesLink.add(text);\n \t}\n \treturn AtmServicesLink;*/\n }",
"Map<String, String> getNetworkServiceURLs();",
"public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }",
"@Retry\n public List<AggregationServiceDescription> listAggregationServices();",
"List<InterledgerAddress> getConnectorAddresses();",
"Collection<Service> getAllSubscribeService();",
"Collection<AssociationEnd> getAssociations();",
"@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }",
"ServiceReference[] getServiceReferences();",
"public VRL[] getLinksTo() throws VrsException;",
"public List<Address> getAddresses();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Locate and return the verification point OrderEmails object in the SUT. | protected IFtVerificationPoint OrderEmailsVP()
{
return vp("OrderEmails");
} | [
"String getEmailLocation();",
"public void lookupOrderByEmail(JSONObject returnOrderDetails) {\n Wait.untilElementPresent(Elements.element(\"order_status.view_order_details\"));\n logger.info(\"Entering order number for order lookup \" + returnOrderDetails.get(\"order_number\").toString());\n TextBoxes.typeTextbox(Elements.element(\"order_status.order_number\"), returnOrderDetails.get(\"order_number\").toString());\n logger.info(\"Entering email for order lookup \" + returnOrderDetails.get(\"email\").toString());\n TextBoxes.typeTextbox(Elements.element(\"order_status.email\"), returnOrderDetails.get(\"email\").toString());\n Clicks.click(Elements.element(\"order_status.view_order_details\"));\n }",
"public java.util.List<java.lang.String> getEmails() {\n return emails;\n }",
"public java.util.List<java.lang.String> getEmails() {\n return emails;\n }",
"private static Set<EMailAddress> getSequencingSampleTrackingRecipients(\n Collection<Sample> sequencingSamples)\n {\n assert sequencingSamples != null;\n\n final Set<EMailAddress> recipients = new HashSet<EMailAddress>();\n\n // Recipients are taken from properties of the sequencing sample.\n final Set<String> recipientPropertyTypeCodes = new HashSet<String>();\n recipientPropertyTypeCodes.add(CONTACT_PERSON_EMAIL);\n recipientPropertyTypeCodes.add(PRINCIPAL_INVESTIGATOR_EMAIL);\n recipientPropertyTypeCodes.add(CONTACT_DATA_MANAGER_EMAIL);\n\n for (Sample sequencingSample : sequencingSamples)\n {\n for (Map.Entry<String, String> space : recipientsBySpace.entrySet())\n {\n if (sequencingSample.getSpace().getCode().equals(space.getKey()))\n {\n String spaceRecipientOrNull =\n recipientsBySpace.get(space.getKey());\n if (spaceRecipientOrNull != null)\n {\n EMailAddress myEmail = new EMailAddress(spaceRecipientOrNull);\n recipients.add(myEmail);\n }\n }\n }\n\n for (IEntityProperty property : sequencingSample.getProperties())\n {\n final String propertyCode = property.getPropertyType().getCode();\n final String propertyValue = property.tryGetAsString();\n if (recipientPropertyTypeCodes.contains(propertyCode))\n {\n EMailAddress myEmail = new EMailAddress(propertyValue);\n recipients.add(myEmail);\n }\n }\n }\n\n return recipients;\n }",
"@Override\n public java.lang.String getRecipientEmails() {\n return _remindInfo.getRecipientEmails();\n }",
"public String getEmailAddresses()\n {\n return this.emailAddresses;\n }",
"Collection lookupTransactions(String email);",
"public Collection<? extends Email> getAllEmailInstances() {\n\t\treturn delegate.getWrappedIndividuals(Vocabulary.CLASS_EMAIL, DefaultEmail.class);\n }",
"public MonitorEmail[] ReceiveEmailsFrom(String emailRecipient, boolean isSeen) throws MessagingException {\n List<MonitorEmail> emailList = new LinkedList<>();\n\n if (this.disableEmail){\n String fakeContent = \"Your Order Has Been Executed!\\n\" +\n \"\\n\" +\n \"Hi Zhuoli, \\n\" +\n \"\\n\" +\n \"Your market order to buy 10 shares of JKS was executed at an average price of $19.95 on July 6th 2017 at 3:27 PM. \\n\" +\n \"\\n\" +\n \"Your trade confirmation will be available in your account settings on Robinhood in one trading day. \\n\" +\n \"\\n\" +\n \"If you have any questions, please contact support@robinhood.com. \\n\" +\n \"\\n\" +\n \"Sincerely,\\n\" +\n \"The Robinhood Team \\n\" +\n \"robinhood.com\";\n MonitorEmail monitorEmail = new MonitorEmail(\"inbox\", \"Fake robinhood order\", \"nicai@nicai.com\", emailRecipient, fakeContent);\n emailList.add(monitorEmail);\n return emailList.toArray(new MonitorEmail[0]);\n }\n\n if (this.receiveStore == null)\n this.Authenticate();\n\n if (!this.receiveStore.isConnected())\n this.receiveStore.connect(\"imap.exmail.qq.com\", 993, this.username, this.password);\n\n Folder[] allFolders = this.receiveStore.getDefaultFolder().list(\"*\");\n Optional<Folder> optionalInboxFolder =\n Arrays.stream(allFolders)\n .filter(folder -> EmailManager.INBOX_FOLDER_REGX_PATTERN.matcher(folder.getFullName()).matches())\n .findAny();\n\n String[] names = Arrays.stream(allFolders).map(folder -> folder.getFullName()).toArray(String[]::new);\n Assert.assertTrue(\"Inbox doesn't exit in target mailbox: \" + Arrays.toString(names), optionalInboxFolder.isPresent());\n\n Folder infolder = optionalInboxFolder.get();\n\n try {\n\n infolder.open(Folder.READ_WRITE);\n\n /* Get the messages which is unread in the Inbox*/\n Message messages[] = infolder.search(new FlagTerm(new Flags(Flags.Flag.SEEN), isSeen));\n\n if (!infolder.isOpen())\n infolder.open(Folder.READ_ONLY);\n\n for (Message msg : messages) {\n try {\n // Reopen folder if close\n if (!infolder.isOpen())\n infolder.open(Folder.READ_WRITE);\n Address[] addresses = msg.getFrom();\n\n // Skip the unrelated emails\n if (!addresses[0].toString().toLowerCase().contains(emailRecipient)) {\n continue;\n }\n String content = \"\";\n Multipart multipart = (Multipart) msg.getContent();\n for (int i = 0; i < multipart.getCount(); i++) {\n BodyPart part = multipart.getBodyPart(i);\n if (part.getContentType().toLowerCase().contains(\"text/plain\") || part.getContentType().toLowerCase().contains(\"text/html\")) {\n content += part.getContent() + \"\\n\\n\";\n }\n }\n\n // You might think the way to do this is to get the message, set the Flags.Flag.SEEN flag to true, and then call message.saveChanges(). Oddly, this is not the case.\n // Instead, the JavaMail API Design Specification, Chapter 4, section \"The Flags Class\" states that the SEEN flag is implicitly set when the contents of a message are retrieved.\n // http://stackoverflow.com/questions/7678919/javamail-mark-gmail-message-as-read\n msg.getContent();\n MonitorEmail email = new MonitorEmail(\"INBOX\", msg.getSubject(), this.username, addresses[0].toString(), content);\n emailList.add(email);\n } catch (Exception exc) {\n Logger.getGlobal().log(Level.WARNING, \"Failed to receive email from: \" + emailRecipient, exc);\n }\n }\n } finally {\n if (infolder!=null && infolder.isOpen())\n infolder.close(false);\n if (this.receiveStore != null && this.receiveStore.isConnected())\n this.receiveStore.close();\n }\n return emailList.toArray(new MonitorEmail[0]);\n }",
"private static Set<EMailAddress> getDataSetTrackingRecipients(AbstractExternalData dataSet)\n {\n // Recipients are taken from properties of sequencing sample\n // that is a parent of a flow lane sample connected directly with the data set.\n assert dataSet != null;\n return getFlowLaneSampleTrackingRecipients(dataSet.getSample());\n }",
"public List<String> customEmails() {\n return this.customEmails;\n }",
"public String getWebOrderEMail();",
"public String getSpEmail() {\r\n return spEmail;\r\n }",
"@Accessor(qualifier = \"emails\", type = Accessor.Type.GETTER)\n\tpublic List<EmailMessageModel> getEmails()\n\t{\n\t\tif (this._emails!=null)\n\t\t{\n\t\t\treturn _emails;\n\t\t}\n\t\treturn _emails = getPersistenceContext().getValue(EMAILS, _emails);\n\t}",
"boolean sendOrderReturnEmail(final EmailProperties emailProperties) throws EmailException;",
"public String getOrdermail() {\n return ordermail;\n }",
"public String getOrdermailsite() {\n return ordermailsite;\n }",
"private List<Address> getNotificationAddresses(Download download) {\n List<Address> emails = Lists.newArrayList();\n if (download.getRequest().getNotificationAddresses() == null\n || download.getRequest().getNotificationAddresses().isEmpty()) {\n GbifUser user = identityAccessService.get(download.getRequest().getCreator());\n if (user != null) {\n try {\n emails.add(new InternetAddress(user.getEmail()));\n } catch (AddressException e) {\n // bad address?\n LOG.warn(\"Ignore corrupt email address {}\", user.getEmail());\n }\n }\n } else {\n emails = toInternetAddresses(download.getRequest().getNotificationAddresses());\n }\n return emails;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TRSSETLMT_NIDC_DET.TENOR_PERIODICITY_NBR_OLD | public BigDecimal getTENOR_PERIODICITY_NBR_OLD() {
return TENOR_PERIODICITY_NBR_OLD;
} | [
"public void setTENOR_PERIODICITY_NBR_OLD(BigDecimal TENOR_PERIODICITY_NBR_OLD) {\r\n this.TENOR_PERIODICITY_NBR_OLD = TENOR_PERIODICITY_NBR_OLD;\r\n }",
"public BigDecimal getIBOR_PERIODICITY_NUMBER_OLD()\r\n {\r\n\treturn IBOR_PERIODICITY_NUMBER_OLD;\r\n }",
"public String getTENOR_PERIODICITY_TYPE_OLD() {\r\n return TENOR_PERIODICITY_TYPE_OLD;\r\n }",
"public BigDecimal getTENOR_PERIODICITY_NBR() {\r\n return TENOR_PERIODICITY_NBR;\r\n }",
"public void setIBOR_PERIODICITY_NUMBER_OLD(BigDecimal IBOR_PERIODICITY_NUMBER_OLD)\r\n {\r\n\tthis.IBOR_PERIODICITY_NUMBER_OLD = IBOR_PERIODICITY_NUMBER_OLD;\r\n }",
"public String getIBOR_PERIODICITY_TYPE_OLD()\r\n {\r\n\treturn IBOR_PERIODICITY_TYPE_OLD;\r\n }",
"public BigDecimal getPERIODICITY_NBR()\r\n {\r\n\treturn PERIODICITY_NBR;\r\n }",
"public void setTENOR_PERIODICITY_NBR(BigDecimal TENOR_PERIODICITY_NBR) {\r\n this.TENOR_PERIODICITY_NBR = TENOR_PERIODICITY_NBR;\r\n }",
"public BigDecimal getPERIODICITY_NB() {\r\n return PERIODICITY_NB;\r\n }",
"public Long getTncDid() {\n return tncDid;\n }",
"public BigDecimal getIBOR_PERIODICITY_NUMBER()\r\n {\r\n\treturn IBOR_PERIODICITY_NUMBER;\r\n }",
"public BigDecimal getTRX_NBR() {\r\n return TRX_NBR;\r\n }",
"public BigDecimal getOLD_LINE_NO() {\r\n return OLD_LINE_NO;\r\n }",
"public Long getBillDtlNo() {\n return billDtlNo;\n }",
"public String getTallaNbr() {\n return (String)getAttributeInternal(TALLANBR);\n }",
"public String getLEASE_NO() {\n return LEASE_NO;\n }",
"public BigDecimal getTRX_NO() {\r\n return TRX_NO;\r\n }",
"public java.lang.CharSequence getLASTCHGDT() {\n return LAST_CHG_DT;\n }",
"public void setTENOR_PERIODICITY_TYPE_OLD(String TENOR_PERIODICITY_TYPE_OLD) {\r\n this.TENOR_PERIODICITY_TYPE_OLD = TENOR_PERIODICITY_TYPE_OLD == null ? null : TENOR_PERIODICITY_TYPE_OLD.trim();\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method traverses a list to evaluate the terms of a polynomial expression, and returns the result as a double precision floating point number. | static Double evaluate(SinglyLinkedList<Double> polynomial, Double variable) {
Element element = polynomial.getHead();
int order = polynomial.getSize() - 1;
Double solution = 0.0;
while (element != null) {
solution += element.getData() * (Math.pow(variable, order));
element = element.getNext();
--order;
}
return solution;
} | [
"public static double evaluate(double[] a, double x) {\n if (a == null || a.length == 0) throw new Error(\"polynomial not defined\");\n double result = a[0];\n double p = 1.;\n for (int i = 1; i < a.length; i++) {\n p = p * x;\n //System.out.println(\"\"+a[i]+\"*\"+p+\"=\"+(a[i]*p));\n result = result + (a[i] * p);\n }\n return result;\n }",
"public static double f (double[] poly, double x) //TZ - 208514265 NADAV MOYAL\n{\n\t double sum = poly[0];\n\t sum = sum + poly[1]*x;\n\t\tfor (int i=2; i < poly.length;++i)\n\t\t{\n\t\t\tdouble v = Math.pow(x,i);\n\t v = v*poly[i];\n\t\t\tsum=sum+v;\n}\n\t\n\treturn sum;\n\n \t}",
"static void display(SinglyLinkedList<Double> polynomial) {\n Element element = polynomial.getHead();\n // The exponent of the high order term is one less than the number of elements in the list.\n int order = polynomial.getSize() - 1;\n String operator;\n while (element != null) {\n if (element.getData() != 0.0) {\n if (polynomial.getSize() == order + 1) { // Is this the constant for the first term?\n operator = element.getData() >= 0.0 ? \"\" : \"-\";\n } else if (element.getData() >= 0.0) {\n operator = \" + \";\n } else {\n operator = \" - \";\n }\n String term = String.format(\"%.2fx^%d\", Math.abs(element.getData()), order)\n .replaceAll(\"[\\\\^][1]$|x[\\\\^][0]$\", \"\");\n System.out.print(operator + term);\n }\n element = element.getNext();\n --order;\n }\n }",
"static public final double[] evalPoly(double[] a, int nd, double x)\n {\n int nc = a.length - 1; // degree of polynomial\n double[] pd = new double[1 + nd];\n pd[0] = a[nc];\n for (int i = 1; i <= nd; i++)\n pd[i] = 0.0;\n for (int i = nc - 1; i >= 0; i--)\n {\n int nnd = (nd < (nc - i) ? nd : nc - i);\n for (int j = nnd; j >= 1; j--)\n pd[j] = pd[j] * x + pd[j - 1];\n pd[0] = pd[0] * x + a[i];\n }\n double c = 1.0;\n // after first derivate, factorial constants come in\n for (int i = 2; i <= nd; i++)\n {\n c *= i;\n pd[i] *= c;\n }\n return pd;\n }",
"public float evaluate(float x) {\r\n\t\tfloat sum = 0;\r\n\t\tfor(Node ptr = this.poly; ptr != null; ptr = ptr.next){\r\n\t\t\tsum += ptr.term.coeff * Math.pow(x, ptr.term.degree);\r\n\t\t}\r\n\t\t\treturn sum;\r\n\t}",
"private static double calcExp(ArrayList<String> eqs) {\n ArrayList<String> eqs0 = new ArrayList<String>();\n eqs = filterNeg(eqs);\n // calculate: \"^\" operators\n for (int i = 0; i < eqs.size(); i++) {\n String t = eqs.get(i);\n if (t.matches(\"\\\\^\") && (i - 1 >= 0 && i + 1 < eqs.size())) {\n double r = -1;\n double a = Double.parseDouble(eqs.get(i - 1));\n double b = Double.parseDouble(eqs.get(i + 1));\n r = Math.pow(a, b);\n eqs0.remove(eqs0.size() - 1);\n eqs.set(i + 1, r + \"\");\n eqs0.add(r + \"\");\n i++;\n } else {\n eqs0.add(t);\n }\n }\n eqs = eqs0;\n // From: \"2.02 * 1.0 ^ 2 * 2 + 4 * 1.0 - 1 / 2\"\n // To: \"2.02 * 1.0 * 2 + 4 * 1.0 - 1 / 2\"\n ArrayList<String> eqs1 = new ArrayList<String>();\n // calculate: \"*\", \"/\" operators\n for (int i = 0; i < eqs.size(); i++) {\n String t = eqs.get(i);\n if (t.matches(\"\\\\*|\\\\/\") && (i - 1 >= 0 && i + 1 < eqs.size())) {\n double r = -1;\n double a = Double.parseDouble(eqs.get(i - 1));\n double b = Double.parseDouble(eqs.get(i + 1));\n if (t.matches(\"\\\\*\")) r = a * b;\n if (t.matches(\"\\\\/\")) r = a / b;\n eqs1.remove(eqs1.size() - 1);\n eqs.set(i + 1, r + \"\");\n eqs1.add(r + \"\");\n i++;\n } else {\n eqs1.add(t);\n }\n }\n eqs = eqs1;\n // From: \"2.02 * 1.0 * 2 + 4 * 1.0 - 1 / 2\"\n // To: \"4.04 + 4 - 0.5\"\n // calculate: \"*\", \"/\" operators\n double result = 0;\n for (int i = 0; i < eqs.size(); i++) {\n String t = eqs.get(i);\n if (t.matches(\"\\\\+|\\\\-\") && (i - 1 >= 0 && i + 1 < eqs.size())) {\n result = 0;\n double r = 0;\n double a = Double.parseDouble(eqs.get(i - 1));\n double b = Double.parseDouble(eqs.get(i + 1));\n if (t.matches(\"\\\\+\")) r = a + b;\n if (t.matches(\"\\\\-\")) r = a - b;\n result += r;\n eqs.set(i + 1, r + \"\");\n i++;\n } else {\n try {\n result += Double.parseDouble(t);\n } catch (Exception e) {}\n }\n }\n // From: \"4.04 + 4 - 0.5\"\n // To: 7.54\n return result;\n }",
"public Double calcularPromedio(LinkedList<Double> listaValores) throws NumberFormatException {\n Double sumatoria = new Double(0);\n\n for (Double valor : listaValores) {\n sumatoria = operateBinary(sumatoria, valor, addition);\n }\n\n return operateBinary(sumatoria, listaValores.size(), division);\n }",
"double evaluate(double[] values);",
"private Double calcularSumatoriaPotencias(LinkedList<Double> listaValores) throws NumberFormatException {\n\n Double sumatoria = new Double(0);\n for (Double valor : listaValores) {\n sumatoria = operateBinary(sumatoria, operateBinary(valor, 2, pow), addition);\n }\n return sumatoria;\n }",
"public void testEvaluation() {\n PolynomialTerm term = new PolynomialTerm(0.5, new int[]{0, 1, 1, 2});\n double[] values = new double[]{1.0, 2.0, 3.0};\n assertEquals(6.0, term.evaluate(values), 0.00001);\n }",
"public static double getSummation(List<Double> list) {\n double accumulated = 0;\n for (int i = 0; i < list.size(); i++) {\n accumulated = accumulated + list.get(i);\n }\n return accumulated;\n }",
"public Polynomial() {\n\t\tlist = new LinkedList<Double>();\n\t}",
"public Double eval(Double... operands);",
"private void compute(ArrayList<Character> list) {\r\n\t\t\r\n\t\tdouble k = 0;\r\n\t\tdouble l = list.size();\r\n\t\tfor(int i = 0; i<list.size();i++){\r\n\t\t\tif(list.get(i).equals(ONE)){\r\n\t\t\t\tk++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tdouble p = k/l;\r\n\t\tdouble p1 = 1-p;\r\n\t\tdouble p2 = p == 0 ? 0 : (-p * (Math.log(p)/Math.log(2)));\r\n\t\tdouble q = p1 == 0 ? 0 : (-p1 * (Math.log(p1)/Math.log(2)));\r\n\t\tdouble bien = p2+q;\r\n\t\r\n\t\tdouble r = binaryExpansion.size() - (list.size() - 1);\r\n\t\tdouble r1 = Math.pow(2, r-1);\r\n\t\tdouble u = bien*r1;\r\n\t\t\r\n\t\tT+=r1;\r\n\t\tU+=u;\r\n\t\t\r\n\t//\tSystem.err.println(\"binaryExpansion=\"+list+\", BiEn=\"+format.format(bien)+\", k=\"+r+\", (r-1)^2=\"+r1+\", bien*(r-1)^2=\"+format.format(u));\r\n\t\t\t\r\n\t\t// don't do a list of 1 item or less - escape recurse\r\n\t\tif( list.size() == 2) return;\r\n\t\t\r\n\t\t// build the derivative binary expansion\r\n\t\tArrayList<Character> derivative = new ArrayList<Character>();\r\n\t\tfor(int i = 0; i<list.size()-1;i++){\r\n\t\t\tCharacter c0 = list.get(i);\r\n\t\t\tCharacter c1 = list.get(i+1);\r\n\t\t\tif(c0.equals(c1)) derivative.add(ZERO);\r\n\t\t\telse derivative.add(ONE);\r\n\t\t}\r\n\t\t\r\n\t\tcompute(derivative);\r\n\t\t\r\n\t}",
"double evaluate(double x);",
"public double polyAddEval(double x) {\n double y;\n y = this.aadd * Math.pow(x, 3) + this.badd * Math.pow(x, 2) + this.cadd * x + this.dadd;\n return y;\n }",
"private Double calcularSumatoria(LinkedList<Double> listaValores) {\n Double sumatoria = new Double(0);\n\n for (Double valor : listaValores) {\n sumatoria = operateBinary(sumatoria, valor, addition);\n }\n\n return sumatoria;\n }",
"public double evaluateAsDouble();",
"public static double calDoublePV(ArrayList<String> arL){\r\n ArrayList<String> postV = new ArrayList<String>();\r\n postV = arL;\r\n Stack<String> st2 = new Stack<String>();//Operands are stored temporarily on string stack st2\r\n double summ=0; //Stores the answer to the expression \r\n \r\n for(int i=0;i<postV.size();i++){\r\n String s = postV.get(i);\r\n \r\n //Deals with the operands (identifiers and numerical values) in the expressions\r\n //If operand, push them in the stack\r\n if(s.matches(\"[a-zA-Z].*\")||s.matches(\"-?\\\\d+(\\\\.\\\\d+)?\")){st2.push(s);}\r\n \r\n //Deals with the operators in the expression\r\n //If operator, pop two operands from the stack\r\n else{\r\n double n1=0,n2=0;int index1=-1,index2=-1;\r\n String ss2 = st2.pop();\r\n String ss1 = st2.pop();\r\n \r\n //If the operands are identifiers\r\n if(!ss1.matches(\"-?\\\\d+(\\\\.\\\\d+)?\")){\r\n for(int j=0;j<var.size();j++){\r\n if(ss1.equals(var.get(j))){\r\n index1=j;\r\n break;\r\n }\r\n }\r\n // System.out.println(\"index1 is \"+index1);\r\n if(intDoubChk.get(index1).equals(\"int\")){String nTemp= num.get(index1);n1=Integer.parseInt(nTemp);}\r\n if(intDoubChk.get(index1).equals(\"double\")){String nTemp= num.get(index1);n1=Double.parseDouble(nTemp);}\r\n } \r\n if(!ss2.matches(\"-?\\\\d+(\\\\.\\\\d+)?\")){\r\n for(int j=0;j<var.size();j++){\r\n if(ss2.equals(var.get(j))){\r\n index2=j;\r\n break;\r\n }\r\n }\r\n //System.out.println(\"index2 is \"+index2);\r\n if(intDoubChk.get(index2).equals(\"int\")){String nTemp= num.get(index2);n2=Integer.parseInt(nTemp);}\r\n if(intDoubChk.get(index2).equals(\"double\")){String nTemp= num.get(index2);n2=Double.parseDouble(nTemp);}\r\n }\r\n \r\n //If the operands are numerical values\r\n if(ss1.matches(\"-?\\\\d+\")){ n1=Integer.parseInt(ss1);}\r\n if(ss1.matches(\"-?\\\\d+(\\\\.\\\\d+)?\")){ n1=Double.parseDouble(ss1);}\r\n \r\n if(ss2.matches(\"-?\\\\d+\")){ n2=Integer.parseInt(ss2);}\r\n if(ss2.matches(\"-?\\\\d+(\\\\.\\\\d+)?\")){ n2=Double.parseDouble(ss2);}\r\n \r\n //Calculates the operands by the operator\r\n if(s.equals(\"+\")){summ=n1+n2;st2.push(Double.toString(summ));}\r\n if(s.equals(\"-\")){summ=n1-n2;st2.push(Double.toString(summ));}\r\n if(s.equals(\"/\")){summ=n1/n2;st2.push(Double.toString(summ));}\r\n if(s.equals(\"*\")){summ=n1*n2;st2.push(Double.toString(summ));}\r\n if(s.equals(\"%\")){summ=n1%n2;st2.push(Double.toString(summ));} \r\n if(s.equals(\"^\")){summ=Math.pow(n1, n2);st2.push(Double.toString(summ));}\r\n \r\n } \r\n } return summ; //Returns the answer to the expression\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
replaces Item at index with newItem, returning the old Item | public Item replaceItem (int index, Item newItem) {
if ( (index < 0) || (index > (numItems-1) ) )
throw new TFNodeException();
Item returnItem = nodeItems[index];
nodeItems[index] = newItem;
return returnItem;
} | [
"public Item replaceItem(Item newItem, int index) {\r\n\t\tItem old = getItem(index);\r\n\t\t\r\n\t\tstorage[index] = newItem;\r\n\t\t\r\n\t\treturn old;\r\n\t}",
"public void set(int index, Item newItem){\n\t\tif (remove(index) != null)\n\t\t\tadd(newItem);\n\t}",
"private BeanItem addItemAtInternalIndex(int index, Object newItemId) {\n // Make sure that the Item has not been created yet\n if (allItems.contains(newItemId)) {\n return null;\n }\n if (type.isAssignableFrom(newItemId.getClass())) {\n BT pojo = (BT) newItemId;\n // \"list\" will be updated in filterAll()\n allItems.add(index, pojo);\n BeanItem beanItem = new BeanItem(pojo, model);\n beanToItem.put(pojo, beanItem);\n // add listeners to be able to update filtering on property changes\n for (Filter filter : filters) {\n // addValueChangeListener avoids adding duplicates\n addValueChangeListener(beanItem, filter.propertyId);\n }\n \n // it is somewhat suboptimal to filter all items\n filterAll();\n return beanItem;\n } else {\n return null;\n }\n }",
"@Override\n public void refreshIndex(int index) {\n T item = getItems().get(index);\n getItems().remove(index);\n getItems().add(index, item);\n }",
"public BeanItem addItemAt(int index, Object newItemId)\n throws UnsupportedOperationException {\n if (index < 0 || index > size()) {\n return null;\n } else if (index == 0) {\n // add before any item, visible or not\n return addItemAtInternalIndex(0, newItemId);\n } else {\n // if index==size(), adds immediately after last visible item\n return addItemAfter(getIdByIndex(index - 1), newItemId);\n }\n }",
"private void insertItemAt(IItem item, int index) { \n // Iterate over array contents and shuffle elements down\n for(int i=index; i<this.contents.length; i++) {\n // If we find a null item, we can stop early. We're at the end of \n // the list of items\n if ( item == null ) {\n break;\n }\n IItem temp = this.contents[i];\n this.contents[i] = item;\n item = temp;\n }\n }",
"Item getItem(int index) {\r\n return new Item(this, index);\r\n }",
"@Override\n public void refreshItem(T item) {\n int index = getItems().indexOf(item);\n getItems().remove(item);\n getItems().add(index, item);\n }",
"public Item swapItem(Item i){\r\n if(size()!=1) throw new IllegalStateException(\"Trying to swap item of\"\r\n + \"large container\");\r\n add(i);\r\n return remove(0);\r\n }",
"@Override\n public void replace(int index, E e) {\n modCount++;\n int relativeIndex = getRelativeIndex(index);\n checkIndexForCorrectness(relativeIndex);\n elements[relativeIndex] = e;\n }",
"@Override\n public Object set(int index, Object element) {\n indexValid(index);\n checkIndexOfChange(index);\n Object oldElement = modifList.set(index - fixedList.size(), element);\n return oldElement;\n }",
"public Copiable replace(int index, Copiable obj) throws IndexRangeException {\r\n if (count == 0) {\r\n throw new IndexRangeException(-1, -1, index);\r\n }\r\n if (index >= 0 && index <= count) {\r\n Copiable temp = list[index];\r\n list[index] = obj;\r\n return temp;\r\n } else {\r\n throw new IndexRangeException(0, count - 1, index);\r\n }\r\n }",
"public T replace(int index, T value){\r\n if (index < 0 || index > dataSize) {\r\n throw new IndexOutOfBoundsException(\"Invalid index\");\r\n }\r\n T oldData = data[index];\r\n this.data[index] = value;\r\n return oldData;\r\n }",
"@Override\n\tpublic void replace(Object data, int index) throws IndexOutOfBoundsException {\n\t\t// Check for valid size first\n\t\tif (index > this.size() || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\n\t\t// traverse through list\n\t\tNode current = head;\n\t\tint currentIndexPosistion = 0;\n\n\t\twhile (!(current == null) && currentIndexPosistion < index) {\n\t\t\tcurrentIndexPosistion++;\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\tcurrent.setElement(data);\n\t}",
"public native String insertItemBefore(String newItem, Number index);",
"protected abstract void mutateElement(int index);",
"public void updateItemTag(int index, String tag) {\n int correctIndex = index - 1;\n this.listItems.get(correctIndex).addNewTagMutable(tag);\n }",
"@Override\r\n public Copiable replace(int index, Copiable obj) throws IndexRangeException {\r\n if (count == 0) {\r\n throw new IndexRangeException(-1, -1, index);\r\n }\r\n if (index < 0 || index >= count) {\r\n throw new IndexRangeException(0, count - 1, index);\r\n }\r\n Node newNode = new Node(obj);\r\n if (index == 0) {\r\n Node temp = firstNode;\r\n newNode.setNextNode(firstNode);\r\n firstNode = newNode;\r\n return temp.getValue();\r\n } else {\r\n Node currentNode = firstNode;\r\n for (int i = 0; i < index; i++) {\r\n currentNode = currentNode.getNextNode();\r\n }\r\n Copiable temp = currentNode.getValue();\r\n currentNode.setValue(obj);\r\n return temp;\r\n }\r\n }",
"public JListItemFixture item(int index) {\r\n return new JListItemFixture(this, index);\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to check whether we are allowd to make any configuration changes at this time. If the class has been compiled, then no further changes to the configuration are allowed. | protected void checkIfConfigurationModificationIsAllowed() {
if (isCompiled()) {
throw new InvalidDataAccessApiUsageException("Configuration can't be altered once the class has been compiled or used.");
}
} | [
"protected void checkIfConfigurationModificationIsAllowed() {\r\n\t\tif (this.isCompiled()) {\r\n\t\t\tthrow new InvalidDataAccessApiUsageException(\r\n\t\t\t\t\t\"Configuration can't be altered once the class has been compiled or used\");\r\n\t\t}\r\n\t}",
"protected void checkConfiguration() {\n \tsuper.checkConfiguration();\n \t\n if (this.customizations == null) {\n this.customizations = new ArrayList<String>();\n }\n if (this.options == null) {\n this.options = new HashMap<String, String>();\n }\n if (this.sourceDirectories == null) {\n \tthis.sourceDirectories = new ArrayList<String>();\n \tthis.sourceDirectories.add(DEFAULT_SOURCE_DIRECTORY);\n }\n }",
"private void check() {\n try {\n this.readOnly = !configFile.canWrite();\n }\n catch (final SecurityException se) {\n if(LOGGER.isWarnEnabled()) {\n LOGGER.warn(\"Error on checking the configuration file.\");\n }\n if(LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Error on checking the configuration file.\", se);\n }\n this.readOnly = true;\n }\n \n /*\n * If file is read-only, log informational message as configuration\n * changes will not persist.\n */\n if (this.readOnly) {\n LOGGER.info(Messages.getMessage(\"readOnlyConfigFile\"));\n }\n }",
"protected void checkCompiled() {\r\n\t\tif (!isCompiled()) {\r\n\t\t\tlogger.debug(\"JdbcUpdate not compiled before execution - invoking compile\");\r\n\t\t\tcompile();\r\n\t\t}\r\n\t}",
"private final void checkForChanges() {\n \n WeavingContext.getWeaver().scanForAddedClasses();\n \n //TODO move this code also into the weaver so that\n //we have it centralized\n for (Map.Entry<String, ReloadingMetadata> it : this.classMap.entrySet()) {\n //if (!it.getValue().isTainted()) {\n \n File proxyFile = new File(it.getValue().getSourcePath() + File.separator + it.getValue().getFileName());\n if (/*!it.getValue().isTainted() &&*/ isModified(it, proxyFile)) {\n \n systemRecompileMap.put(it.getValue().getScriptingEngine(), Boolean.TRUE);\n ReloadingMetadata meta = it.getValue();\n meta.setTainted(true);\n meta.setTaintedOnce(true);\n printInfo(it, proxyFile);\n meta.setTimestamp(proxyFile.lastModified());\n dependencyTainted(meta.getAClass().getName());\n \n //we add our log entry for further reference\n WeavingContext.getRefreshContext().addTaintLogEntry(meta);\n }\n //}\n }\n //we clean up the taint log\n WeavingContext.getRefreshContext().gcTaintLog();\n }",
"public void checkConfig()\n\t{\n\t\tif (cfgFile.lastModified() > lastLoadMillis)\n\t\t{\n\t\t\ttry { loadConfig(); }\n\t\t\tcatch(IOException ex)\n\t\t\t{\n\t\t\t\tLogger.instance().log(Logger.E_FAILURE,\n\t\t\t\t \"Cannot load config file '\" + cfgFile.getPath()\n\t\t\t\t + \"': \" + ex);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic boolean hasConfigChanged() {\n\t\treturn false;\n\t}",
"protected void validateConfiguration() {}",
"public void checkAndUpdate(){\n\t\tif(!canMove() && !canAttack())\n\t\t\tsetEnabled(false);\n\t}",
"public boolean hasConfigurationError();",
"private boolean checkFilesChanged() {\n File config = new File(configFileName);\n File input = new File(inputFileName);\n long configLastModified = config.lastModified();\n long inputLastModified = input.lastModified();\n\n boolean result = (lastFilesCheck < configLastModified\n || lastFilesCheck < inputLastModified);\n updateLastCheckFiles();\n return result;\n }",
"protected boolean needsCompile(ResourceFile sourceFile, File classFile) {\n if (!classFile.exists()) {\n return true;\n }\n\n // Need to compile if the script's source file is newer than its corresponding class file.\n if (sourceFile.lastModified() > classFile.lastModified()) {\n return true;\n }\n\n // Need to compile if parent classes are not up to date.\n return !areAllParentClassesUpToDate(sourceFile);\n }",
"boolean isConfigurationReload();",
"private void checkState(DebuggeeState state) {\n String qualifiedMethodSignature =\n state.getClassSignature() + \"->\" + state.getMethodName() + state.getMethodSignature();\n boolean holderIsCompanionClass = state.getClassName().endsWith(COMPANION_CLASS_NAME_SUFFIX);\n if (!holderIsCompanionClass) {\n assertThat(qualifiedMethodSignature, not(containsString(\"$classmerging$\")));\n }\n }",
"public boolean configurationIsValid() {\n\t\tif (this.maxThreadNumberResourceWorker + this.maxThreadNumberSeedWorker != this.maxThreadNumber) {\n\t\t\tlog.error(Logging.format(\"Confirguation error: Thread number configuration is wrong.\"));\n\t\t\treturn false;\n\t\t} else if (seedList == null || seedList.size() == 0) {\n\t\t\tlog.error(Logging.format(\"Confirguation error: Seed list is empty.\"));\n\t\t\treturn false;\n\t\t} else if (StringUtils.isEmpty(workspacePath)) {\n\t\t\tlog.error(Logging.format(\"Confirguation error: Workspace path is not set correctly.\"));\n\t\t\treturn false;\n\t\t} else if (!Files.exists(runtimeBasePath)) {\n\t\t\tlog.error(Logging.format(\"Confirguation error: Runtime directory ({}) does not exist.\", runtimeBasePath));\n\t\t\treturn false;\n\t\t}\n\t\tlog.info(Logging.format(\"Configuration check is passed.\"));\n\t\treturn true;\n\t}",
"private void validateConfigurationMethods(MethodWrapper function) {\n Arrays.stream(function.getTargetClass().getMethods())\n .filter(this::isConfigurationMethod)\n .filter((m) -> !m.getReturnType().equals(Void.TYPE))\n .forEach((m) -> {\n throw new FunctionConfigurationException(\"Configuration method '\" +\n m.getName() +\n \"' does not have a void return type\");\n });\n\n // If target method is static, configuration methods cannot be non-static.\n if (Modifier.isStatic(function.getTargetMethod().getModifiers())) {\n Arrays.stream(function.getTargetClass().getMethods())\n .filter(this::isConfigurationMethod)\n .filter((m) -> !(Modifier.isStatic(m.getModifiers())))\n .forEach((m) -> {\n throw new FunctionConfigurationException(\"Configuration method '\" +\n m.getName() +\n \"' cannot be an instance method if the function method is a static method\");\n });\n }\n }",
"private boolean configUpdated() {\r\n try {\r\n URL url = ctx.getResource(XHP_CONFIG);\r\n URLConnection con;\r\n if (url == null) return false ;\r\n con = url.openConnection(); \r\n long lastModified = con.getLastModified();\r\n long XHP_LAST_MODIFIEDModified = 0;\r\n if (ctx.getAttribute(XHP_LAST_MODIFIED) != null) {\r\n XHP_LAST_MODIFIEDModified = ((Long)ctx.getAttribute(XHP_LAST_MODIFIED)).longValue();\r\n } else {\r\n ctx.setAttribute(XHP_LAST_MODIFIED, new Long(lastModified));\r\n return false;\r\n }\r\n if (XHP_LAST_MODIFIEDModified < lastModified) {\r\n ctx.setAttribute(XHP_LAST_MODIFIED, new Long(lastModified));\r\n return true;\r\n }\r\n } catch (Exception ex) {\r\n getLogger().severe(\"XmlHttpProxyServlet error checking configuration: \" + ex);\r\n }\r\n return false;\r\n }",
"public boolean isClean(){\n return affectedClasses.isEmpty();\n }",
"public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
interface to get a callback when the login finished. | public interface LoginCallback {
public void success ();
public void error (NSError error);
} | [
"void login(String username,String password, OnLoginFinishedListener listener);",
"void notifyLoginSucceeded();",
"void loginDone();",
"public interface LoginOperationCallback {\n public void callbackLoginOperation(boolean successfulLogin);\n}",
"public static interface FLoginResultCallBack extends StdCallCallback {\n public int invoke(NativeLong lUserID, int dwResult, NET_DVR_DEVICEINFO_V30 lpDeviceinfo, Pointer pUser);\n }",
"@Override\n public void onSuccess()\n {\n //TODO Do something after the user successfully logs into Facebook!\n }",
"public void performLogin(String username, String password, NetworkCallback networkCallback) {\n }",
"public interface AuthenticationListener extends EventListener\r\n{\r\n /**\r\n * Invoked after a user has successfully logged in.\r\n */\r\n void loginSucceeded(AuthenticationEvent event);\r\n \r\n /**\r\n * Invoked after a user has successfully logged out.\r\n */\r\n void logoutSucceeded(AuthenticationEvent event);\r\n}",
"public void setLoginCallback (LoginCallback callback) {\n\t\tloginCallback = callback;\n\t}",
"void onOnlineLoginSuccess(User user);",
"void signInComplete();",
"public abstract int callback(Credential[] cred);",
"@Override\n\tpublic void registerCallbackSubscriberLogin(ISubscriberLoginCallback callback)\n\t{\n\t\tm_subscriberLoginCallback = callback;\n\t}",
"public void onLoginFail(int errorcode, String erroMsg);",
"void onOfflineLoginSuccess(User user);",
"public interface LockoutResetCallback {\n void onLockoutReset(int userId);\n }",
"public static interface OAuthAccessHandler {\n public void onLoginSuccess();\n\n public void onLoginFailure(Exception e);\n }",
"public void performDeviceAuthentication(DeviceAuthenticationCallback callback);",
"public void postLogin(SessionEvent event);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Elimina una cursada de la lista de cursadas. pre: La cursada existe en la lista de cursadas. post: Se elimina una cursada de la lista de cursadas. | public void removeCursada(Cursada cursada) {
assert cursadas.contains(cursada) : "La cursada no existe en la lista de cursadas.";
cursadas.remove(cursada);
assert !cursadas.contains(cursada) : "La cursada no ha sido eliminada de la lista de cursadas.";
verificarInvariante();
} | [
"public void eliminarCurs(int codiCurs) {\r\n// int codiCurs = llegirNum(\"Codi del curs a eliminar: \");\r\n Curs curs = (Curs) this.llistCurs.cercar(codiCurs);\r\n if (curs != null) {\r\n Assignatura assAux = curs.getList().getCap();\r\n while (assAux != null) {\r\n curs.eliminarAssignautra(assAux.getCodi());\r\n assAux = curs.getList().getCap();\r\n }\r\n this.llistCurs.eliminar(codiCurs);\r\n JOptionPane.showMessageDialog(new JFrame(),\r\n \"Curs eliminat correctament\");\r\n\r\n } else {\r\n// System.out.println(\"Curs no existent.\");\r\n JOptionPane.showMessageDialog(new JFrame(),\r\n \"Curs no exsistent\",\r\n \"ERROR\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n }",
"public void eliminaCircuitoRutero (){\n\t\n\tfor (OpeCircuito circuito: listaCircuitoSeleccionado){\n\t\t\n\t\tservicioRutero.eliminaCircuitoRutero(circuito.getIdCircuito(), tripulacion.getFechaOperacion() );\n\t\t\t\t\n\t\t}\n\t\n\t\n\t\n\t\n}",
"public void removerCarro() {\n\n if (carrosCadastrados.size() > 0) {//verifica se existem carros cadastrados\n listarCarros();\n System.out.println(\"Digite o id do carro que deseja excluir\");\n int idCarro = verifica();\n for (int i = 0; i < carrosCadastrados.size(); i++) {\n if (carrosCadastrados.get(i).getId() == idCarro) {\n if (carrosCadastrados.get(i).getEstado()) {//para verificar se o querto está sendo ocupado\n System.err.println(\"O carrp está sendo utilizado por um hospede nesse momento\");\n } else {\n carrosCadastrados.remove(i);\n System.err.println(\"cadastro removido\");\n }\n }\n\n }\n } else {\n System.err.println(\"Não existem carros cadastrados\");\n }\n }",
"public void finalizarCiclo(){\r\n getListaCiclos().remove(firstCiclo());\r\n}",
"public void removerLista() {\n\t\t\n\t\ttry {\n\t\t\n\t\t\tif (listaSelecionada != null) {\n\t\t\t\tListaComprasController ls = DependencyManager.GetListaComprasController(this);\n\t\t\t\tif (ls.deleteListaCompras(listaSelecionada.getId())) {\n\t\t\t\t\tFillListaCompras();\n\t\t\t\t\tToast.makeText(this, \"Lista \" + listaSelecionada.getNome() + \" deletada\", Toast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(this, \"ERRO\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tToast.makeText(this, \"Erro ao deletar lista de compras\", Toast.LENGTH_LONG).show();\n\t\t}\n\t\tlistaSelecionada = null;\n\t}",
"@Override\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se eliminó el resultado de la base de datos\");\n\n\t}",
"public void eliminarcola(){\n Cola_banco actual=new Cola_banco();// se crea un metodo actual para indicar los datos ingresado\r\n actual=primero;//se indica que nuestro dato ingresado va a ser actual\r\n if(primero != null){// se usa una condiccion si nuestro es ingresado es diferente de null\r\n while(actual != null){//se usa el while que recorra la cola indicando que actual es diferente de null\r\n System.out.println(\"\"+actual.nombre);// se imprime un mensaje con los datos ingresado con los datos ingresado desde el teclado\r\n actual=actual.siguiente;// se indica que el dato actual pase a ser igual con el apuntador siguente\r\n }\r\n }else{// se usa la condicion sino se cumple la condicion\r\n System.out.println(\"\\n la cola se encuentra vacia\");// se indica al usuario que la cola esta vacia\r\n }\r\n }",
"private static Trainee deleteCourse(boolean isLogged,List<Course> courses,Trainee currentTrainee,String wish){\r\n if(currentTrainee.enrolled.isEmpty()){\r\n return currentTrainee;\r\n }\r\n int index=-1;\r\n for (Course course:currentTrainee.enrolled) {\r\n index++;\r\n if(course.getName().equals(wish)){\r\n currentTrainee.enrolled.remove(index);\r\n System.out.println(\"Course removed succesfully!\");\r\n break;\r\n }\r\n }\r\n\r\n\r\n\r\n return currentTrainee;\r\n }",
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino el resultado de la BD\");\r\n\t}",
"public void eliminarDiasOcupados(){\r\n try{\r\n List<BeanDia> lstDias = sessionGestionarHorario.getLstDia();\r\n List<BeanDia> lstAux = new ArrayList();\r\n for(BeanDia dia : lstDias){\r\n if(dia.getHoras() == 0){\r\n lstAux.add(dia);\r\n }\r\n }\r\n for(BeanDia dia : lstAux){\r\n lstDias.remove(dia);\r\n }\r\n }catch(Exception e){\r\n ln_T_SFLoggerLocal.registrarLogErroresSistema(beanUsuario.getNidUsuario(), \"LOG\", CLASE, \r\n \"eliminarDiasOcupados()\", \r\n \"Error al eliminar los dias ocupados\", \r\n Utils.getStack(e));\r\n e.printStackTrace();\r\n } \r\n }",
"private void removeDuplicateCursors() {\n this.cursors = new ArrayList<>(new LinkedHashSet<>(this.cursors));\n }",
"void delete(){\r\n\t\t// if cursor is defined\r\n\t\tif( length()<=0 || index()<0 ){\r\n\t\t\tthrow new RuntimeException(\"Error: delete() called on an empty list or cursor is undefined\");\r\n\t\t}else{\r\n\t\t\tif( length() == 1 ){\r\n\t\t\t\thead = tail = cursor = null;\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tindex = -1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If cursor is at head\r\n\t\t\telse if( index == 0 ){\r\n\t\t\t\thead = head.next;\r\n\t\t\t\thead.linkPrev(null);\r\n\t\t\t\tcursor = null;\r\n\t\t\t\tindex = -1;\r\n\t\t\t\tlength--;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If cursor is at tail\r\n\t\t\telse if( index == length-1 ){\r\n\t\t\t\ttail = tail.prev;\r\n\t\t\t\tcursor = null;\r\n\t\t\t\tindex = -1;\r\n\t\t\t\tlength--;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\telse{\r\n\t\t\t\tNode before = cursor.prev;\r\n\t\t\t\tNode after = cursor.next;\r\n\t\t\t\r\n\t\t\t\tbefore.next = after.prev;\r\n\t\t\t\tafter.prev = before.next;\r\n\t\t\t\r\n\t\t\t\tcursor = null;\r\n\t\t\t\tindex = -1;\r\n\t\t\t\tlength--;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void eliminarRutas() {\n try {\n con = new Conexion();\n final String SQL = \"DELETE FROM ruta_escalas WHERE id_RutaEscala = ?\";\n PreparedStatement sentencia = con.obtenerConexion().prepareStatement(SQL);\n //Mecanismo para evitar un conexion SQL\n sentencia.setInt(1, id_RutaEscala);\n sentencia.execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"void delete()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tdeleteFront(); //deletes the front if the cursor is at the front\n\n\t\t}\n\t\telse if(cursor == back)\n\t\t{\n\t\t\tdeleteBack(); //deletes the back if the cursor is at the back\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcursor.prev.next=cursor.next; \n\t\t\tcursor.next.prev=cursor.prev;\n\t\t\tcursor = null; \n\t\t\tindex = -1;\n\t\t\tlength--;\n\t\t}\n\t\t\n\t}",
"public void eliminarConjunto(){\n\t\tfinal ArrayList<Integer> mSelectedItems = new ArrayList<>(); //indices de val[]\n\t\tfinal String[] val = new String[values.size()]; //arreglo donde guardamos los valores de values\n\t\tfor(int i=0; i<values.size(); i++){\n\t\t\tval[i] = values.get(i); //inicializamos el arreglo\n\t\t}\n\t AlertDialog.Builder builder = new AlertDialog.Builder(Postre.this);\n builder.setCancelable(false);\n\t builder.setTitle(\"Eliminar\")\n\t .setMultiChoiceItems(val, null,\n\t new DialogInterface.OnMultiChoiceClickListener() {\n\t @Override\n\t public void onClick(DialogInterface dialog, int which,\n\t boolean isChecked) {\n\t if (isChecked) {\n\t // If the user checked the item, add it to the selected items\n\t mSelectedItems.add(which);\n\t } else if (mSelectedItems.contains(which)) {\n\t // Else, if the item is already in the array, remove it \n\t mSelectedItems.remove(Integer.valueOf(which));\n\t }\n\t }\n\t })\n\t // Set the action buttons\n\t .setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n\t @Override\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t SQLiteDatabase db = bbdd.getWritableDatabase();\n\t for(int i=0; i<mSelectedItems.size(); i++){\n\t \t values.remove(val[mSelectedItems.get(i)]);\n\t \t \n\t \t db.execSQL(\"DELETE FROM postre WHERE nombre='\"+val[mSelectedItems.get(i)]+\"';\");\n\n\t }\n\t db.close(); \n\t adapter1.notifyDataSetChanged(); \n\t \n\t }\n\t })\n\t .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n\t @Override\n\t public void onClick(DialogInterface dialog, int id) {\n\t \n\t }\n\t });\n\t builder.show();\t\t\n\t}",
"public void eliminarTarefas() {\n lista.clearTarefas();\n }",
"public void rellenarCursos() {\n\n cbCurso.removeAllItems();\n\n //cbCurso.addItem(new Curso(\"Seleccione curso\", \"Seleccione curso\", \"Seleccione curso\", \"Seleccione curso\", \"Seleccione curso\", \" \"));\n //Rellenamos los cursos\n if (listaCursos.size() > 0) {\n for (int i = 0; i < listaCursos.size(); i++) {\n cbCurso.addItem(listaCursos.get(i));\n }\n } else {\n new FramePopup(this, \"No hay cursos en la base de datos.\",\n Imagenes.getImagen(\"alert-black.png\"),\n \"Aceptar\").setVisible(true);\n }\n rellenarLista((Curso) cbCurso.getSelectedItem());\n //cbCurso.setSelectedIndex(0);\n }",
"public void eliminarDistribuidores(){\n DistribuidoresModelo modelo = new DistribuidoresModelo();\n RespuestaDistribuidores rs = modelo.eliminarDistribuidores(idDistribuidor);\n if(rs.getRespuesta().getIdRespuesta() == 0){\n listaDistribuidorFiltro = rs.getListaDistribuidores();\n listarDistribuidoresFiltro();\n FacesMessage msg = new FacesMessage(\"Registro eliminado correctamente.\", \"\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }else{\n System.out.println(rs.getRespuesta().getMsgRespuesta());\n }\n }",
"private void vaciarRecursos() {\r\n\t\twhile (!listaDeRecursos.isEmpty()) {\r\n\t\t\tlistaDeRecursos.poll();\r\n\t\t}\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check generate template list empty | @Test
public void generateTemplateListEmpty() throws Exception {
// Mock
when(templateDao.generateTaglistXml(anyList())).thenReturn("Template [value] tutu lala [otherValue]");
// Run
List<String> templates = templateService.generateTaglistTemplate(new TagList(), new DataList());
// Assert
assertEquals(0, templates.size());
} | [
"private void checkAppendDone(boolean listDone){\n if(mTemplateSources.size() == 0){\n return;\n }\n Set<Map.Entry<String,WXCell>> cells = mTemplateSources.entrySet();\n for(Map.Entry<String,WXCell> entry : cells){\n if(!entry.getValue().isAppendTreeDone()){\n return;\n }\n }\n hasAppendTreeDone = true;\n if(hasLayoutDone) {\n notifyUpdateList();\n }\n }",
"void ensureTemplatesHaveNoLifecycle() throws RecipeTransformerException {\n for (Map.Entry<String, ComponentIdentifier> templateEntry :\n mapOfTemplateNameToTemplateIdentifier.entrySet()) {\n ComponentRecipe templateRecipe = mapOfComponentIdentifierToRecipe.get(templateEntry.getValue());\n for (PlatformSpecificManifest manifest : templateRecipe.getManifests()) {\n if (manifest.getLifecycle() != null && manifest.getLifecycle().size() != 0) {\n throw new RecipeTransformerException(\"Templates must have empty lifecycle. \"\n + templateEntry.getValue().getName() + \" has a lifecycle map with \"\n + manifest.getLifecycle().size() + \" key/value pairs.\");\n }\n }\n if (templateRecipe.getLifecycle() != null && templateRecipe.getLifecycle().size() != 0) {\n throw new RecipeTransformerException(\"Templates must have empty lifecycle. \"\n + templateEntry.getValue().getName() + \" has a lifecycle map with \"\n + templateRecipe.getLifecycle().size() + \" key/value pairs.\");\n }\n }\n }",
"public void verifyEmptyToDoList() {\n getLogger().info(\"Verify empty todo list\");\n if (verifyEmptyToDoImage()) {\n NXGReports.addStep(\"All ToDo deleted, Image Empty exist\", LogAs.PASSED, null);\n } else {\n NXGReports.addStep(\"Fail: Delete all fail, Image Empty not exist\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"boolean isEmpty() {\n return mapped_vms.isEmpty();\n }",
"public boolean hasTemplates() {\n\t\treturn loader.<TemplateController>getController().hasTemplates();\n\t}",
"public boolean isEmpty(){\n return list.isEmpty();\n }",
"public boolean isEmpty() {\n return attestationsByValidatorCount.isEmpty();\n }",
"public boolean isEmpty() {\n return this.listOfTasks.isEmpty();\n }",
"public boolean isNoSubstitutionSet()\n {\n return _objSubstitutionSet.size() == 0;\n }",
"public static boolean emptyTempTables() {\n ArrayList temp_tables = new ArrayList();\n // Since the mrblock depends on mrfile it actually\n // could be skipped but this way the program will also\n // check if the tables exist and give an error back if any doesn't.\n temp_tables.add( \"mrfile\" );\n temp_tables.add( \"mrblock\" );\n boolean status = sql_epiII.emptyTables( temp_tables, false );\n return status;\n }",
"boolean isEmpty() {\n return backupFileInfos.isEmpty();\n }",
"@Test\r\n public void testGetListTemplates() throws Exception {\r\n System.out.println(\"getListTemplates\");\r\n SPListTemplateCollection result = instance.getListTemplates();\r\n assertNotNull(result);\r\n }",
"@Override\n public boolean isTemplate() {\n return templateDescriptor != null;\n }",
"private boolean isRecipeEmpty() {\n return binding.etxtRecipeName.getText().length() == 0 &&\n recipeDuration == 0 &&\n recipeKcalPerPerson == 0 &&\n newIngredients.size() == 0 &&\n newSteps.size() == 0 &&\n currentImagePath == null;\n }",
"public ResourcesPage checkIsBodyEmpty(){\n Assert.assertTrue(!resources().isEmpty());\n return this;\n }",
"@Override\n public boolean canFinish() {\n ITemplateSection[] sections = fSelectionPage.getSelectedTemplates();\n for (int i = 0; i < sections.length; i++) {\n int pageCount = sections[i].getPageCount();\n for (int j = 0; j < pageCount; j++) {\n WizardPage page = sections[i].getPage(j);\n if (page != null && !page.isPageComplete())\n return false;\n }\n }\n return true;\n }",
"boolean isListRemainingEmpty();",
"public boolean isEmpty()\n {\n \n return listaElementos.length == 0;\n \n }",
"public boolean isTagListEmpty() {\n\t\treturn tags.getText().isEmpty();\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns this viewer's sorter, or null if it does not have one. If this viewer has a comparator that was set via setComparator(ViewerComparator) then this method will return null if the comparator is not an instance of ViewerSorter. It is recommended to use getComparator() instead. | public ViewerSorter getSorter() {
if (sorter instanceof ViewerSorter)
return (ViewerSorter) sorter;
return null;
} | [
"public ViewerComparator getComparator() {\n return sorter;\n }",
"public void setComparator(ViewerComparator comparator) {\n if (this.sorter != comparator) {\n this.sorter = comparator;\n refresh();\n }\n }",
"public String getComparator() {\n\t\treturn comparator;\n\t}",
"public Comparator getComparator() {\n return comparator;\n }",
"public void setSorter(ViewerSorter sorter) {\n if (this.sorter != sorter) {\n this.sorter = sorter;\n refresh();\n }\n }",
"public String getComparatorForNull() {\n return comparatorForNull;\n }",
"public VoucherSorter(Comparator<TravelVoucher> comparator){\n this.comparator = comparator;\n }",
"public DominanceComparator getComparator() {\r\n\t\treturn comparator;\r\n\t}",
"public AttributeComparator getComparator() {\n\t\treturn comparator;\n\t}",
"protected Comparator<?> getInitialSortOrderComparator() {\n MetaData md = PmTableImpl.this.getOwnMetaDataWithoutPmInitCall();\n return (md.initialBeanSortComparatorClass != null)\n ? (Comparator<?>)ClassUtil.newInstance(md.initialBeanSortComparatorClass)\n : null;\n }",
"public Expression makeConditionalDocumentSorter(DocumentSorter sorter, PathExpression path) {\r\n return sorter;\r\n }",
"public Comparator<FileLine> getComparator() {\n\t\treturn new ThesaurusLineComparator();\n\t}",
"void setupSorter(TableRowSorter<MatcherTableModel> sorter) {\n sorter.setComparator(Columns.Left.ordinal(), (AudioTarget o1, AudioTarget o2) -> {\n if (o1==null) return 1;\n if (o2==null) return -1;\n return o1.getTitle().compareToIgnoreCase(o2.getTitle());\n });\n sorter.setComparator(Columns.Right.ordinal(), (ImportableFile o1, ImportableFile o2) -> {\n if (o1==null) return 1;\n if (o2==null) return -1;\n return o1.getTitle().compareToIgnoreCase(o2.getTitle());\n });\n sorter.setComparator(Columns.Update.ordinal(), (Boolean o1, Boolean o2) -> {\n if (o1==null) return 1;\n if (o2==null) return -1;\n return o1.compareTo(o2);\n });\n\n }",
"public void setSorter(PropertySheetSorter sorter) {\r\n\t\tif (null == sorter) {\r\n\t\t\tsorter = new PropertySheetSorter();\r\n\t\t}\r\n\t\tthis.sorter = sorter;\r\n\t}",
"public TreeViewer getViewer() {\n\t\treturn viewer;\n\t}",
"public void sort() {\n if (sorter != null)\n sort(sorter);\n }",
"public Viewer getViewer() {\n\t\treturn viewer;\n\t}",
"public TableViewer getTableViewer() {\n\t\treturn _viewer;\n\t}",
"protected TableViewer getTableViewer() {\n\t\treturn tableViewer;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the GroupCacheAccess object | public GroupCacheAccess( CompositeCache cacheControl )
{
super( cacheControl );
} | [
"public CacheAccess( final CompositeCache<K, V> cacheControl )\n {\n super(cacheControl);\n }",
"public Group() {}",
"protected GroupStatementImpl(GroupStatementImpl<R, F, T> group) {\n super(group);\n this.cacheList = group.cacheList;\n this.cacheSB = group.cacheSB;\n this.parallelFactor = group.parallelFactor;\n }",
"public AbstractCache() {\n }",
"public Group() {\n\n }",
"public CacheRecord() {\n super(Cache.CACHE);\n }",
"public TrafficIPGroupsLocator() {\n }",
"public Grouping() {\n\n\t}",
"public IndexedDiskCacheAttributes()\n {\n }",
"public GroupResource() {\n }",
"public HostGroup(){\n\t\t\n\t}",
"CacheSecurityGroup createCacheSecurityGroup(CreateCacheSecurityGroupRequest createCacheSecurityGroupRequest);",
"public ImageCache() {}",
"public Cab2bGroup() {\r\n super(new Group());\r\n // this.group = Group.Factory.newInstance();\r\n // this.mutable = true;\r\n associations = new ArrayList<Association>();\r\n attributes = new ArrayList<Attribute>();\r\n myGroups = new ArrayList<ImmutableCab2bGroup>();\r\n foreignAssociations = new ArrayList<ForeignAssociation>();\r\n numElements = 0;\r\n }",
"CacheParameterGroup createCacheParameterGroup(CreateCacheParameterGroupRequest createCacheParameterGroupRequest);",
"public ConcurrentMapCacheManager() {\n\t}",
"public ZNameGroup() { }",
"public Group()\r\n {\r\n endpoints = new ArrayList<>();\r\n name = \"NewGroup\";\r\n }",
"public CacheSecuritySettings() {\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes all the components of the flight selection panel. | private void initializeFlightSelectionPanel()
{
// This is the ActionListener for the JComboBox which holds the list of
// available planes:
planeComboBox.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
// Change's the image displayed to the currently selected
// plane's avatar:
changePlaneAvatar(String.valueOf(planeComboBox.getSelectedItem()));
// Updates the displayed plane details to those of the
// currently selected plane:
fetchPlaneDetails(String.valueOf(planeComboBox.getSelectedItem()));
}
});
// This is the ActionListener for the JComboBox which holds the list of
// available locations:
locationComboBox.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
// Change's the image displayed to the currently selected
// location's avatar:
changeLocationAvatar(String.valueOf(locationComboBox.getSelectedItem()));
// Updates the displayed location details to those of the
// currently selected location:
fetchLocationDetails(String.valueOf(locationComboBox.getSelectedItem()));
}
});
// This is the ActionListener for the JComboBox which holds the list of
// available crosshairs:
crosshairComboBox.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
// Change's the image displayed to that of the currently
// selected crosshair:
changeCrosshairImage(String.valueOf(crosshairComboBox.getSelectedItem()));
optionsChanged = true; // Signal to the program that a game
// option
// has been changed.
applyOptionsButton.setEnabled(true); // Allow the user to apply
// the changed options.
}
});
// Initialize the JPanels which are used to hold all the components
// associated with plane selection:
planePanel.setLayout(new BorderLayout());
JPanel planeTop = new JPanel();
planeTop.setLayout(new BorderLayout());
JPanel planeBottom = new JPanel();
planeBottom.setLayout(new BorderLayout());
JPanel planeStatsPanel = new JPanel();
planeStatsPanel.setLayout(new GridLayout(7, 2));
// Initialize the JTextField objects used to output the statistics of
// the currently selected plane (they are all set to be non-editable and
// have their colour changed to distinguish them from fields where input
// it expected):
pitchOutput = new JTextField();
pitchOutput.setEditable(false);
pitchOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
pitchOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
rollOutput = new JTextField();
rollOutput.setEditable(false);
rollOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
rollOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
speedOutput = new JTextField();
speedOutput.setEditable(false);
speedOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
speedOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
// Set up the panels which allow the user to choose a plane:
JLabel selectPlaneLabel = new JLabel("Select Your Plane: ");
selectPlaneLabel.setForeground(Color.white);
planeTop.add(selectPlaneLabel, BorderLayout.NORTH);
planeImageLabel.setToolTipText("The avatar of your selected plane.");
planeTop.add(planeImageLabel, BorderLayout.SOUTH);
planeComboBox.setToolTipText("Choose a plane from this list of available ones.");
planeBottom.add(planeComboBox);
// Set up the plane statistics output panel (when adding a new
// JLabel(""), a visually blank component is being used to fill a
// space):
JLabel pitchLabel = new JLabel("Pitch Constant: ");
pitchLabel.setForeground(Color.white);
JLabel rollLabel = new JLabel("Roll Constant: ");
rollLabel.setForeground(Color.white);
JLabel speedLabel = new JLabel("Speed Constant: ");
speedLabel.setForeground(Color.white);
planeStatsPanel.add(new JLabel(""));
planeStatsPanel.add(new JLabel(""));
planeStatsPanel.add(pitchLabel);
planeStatsPanel.add(pitchOutput);
planeStatsPanel.add(new JLabel(""));
planeStatsPanel.add(new JLabel(""));
planeStatsPanel.add(rollLabel);
planeStatsPanel.add(rollOutput);
planeStatsPanel.add(new JLabel(""));
planeStatsPanel.add(new JLabel(""));
planeStatsPanel.add(speedLabel);
planeStatsPanel.add(speedOutput);
planeStatsPanel.add(new JLabel(""));
planeStatsPanel.add(new JLabel(""));
planeBottom.add(planeStatsPanel, BorderLayout.SOUTH);
// Add the separate component holder panels to the main plane selection
// panel:
planePanel.add(planeTop, BorderLayout.NORTH);
planePanel.add(planeBottom, BorderLayout.SOUTH);
// Initialize the JPanels which are used to hold all the components
// associated with location selection:
locationPanel.setLayout(new BorderLayout());
JPanel locationTop = new JPanel();
locationTop.setLayout(new BorderLayout());
JPanel locationBottom = new JPanel();
locationBottom.setLayout(new BorderLayout());
JPanel locationStatsPanel = new JPanel();
locationStatsPanel.setLayout(new GridLayout(7, 2));
// Initialize the JTextField objects used to output the statistics of
// the currently selected location (they are all set to be non-editable
// and have their colour changed to distinguish them from fields where
// input it expected):
theatreOutput = new JTextField();
theatreOutput.setEditable(false);
theatreOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
theatreOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
locationOutput = new JTextField();
locationOutput.setEditable(false);
locationOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
locationOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
heightRangeOutput = new JTextField();
heightRangeOutput.setEditable(false);
heightRangeOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
heightRangeOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
objectsOutput = new JTextField();
objectsOutput.setEditable(false);
objectsOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
objectsOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
waterOutput = new JTextField();
waterOutput.setEditable(false);
waterOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
waterOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
nightOutput = new JTextField();
nightOutput.setEditable(false);
nightOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
nightOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
fogOutput = new JTextField();
fogOutput.setEditable(false);
fogOutput.setBackground(OUTPUT_FIELD_BACKGROUND);
fogOutput.setForeground(OUTPUT_FIELD_FOREGROUND);
// Set up the panels which allow the user to choose a location:
JLabel selectLocationLabel = new JLabel("Select Your Location: ");
selectLocationLabel.setForeground(Color.white);
locationTop.add(selectLocationLabel);
locationImageLabel.setToolTipText("The avatar of your selected location.");
locationTop.add(locationImageLabel, BorderLayout.SOUTH);
locationComboBox.setToolTipText("Choose a location from this list of available ones.");
locationBottom.add(locationComboBox);
// Set up the location statistics output panel:
JLabel theatreLabel = new JLabel("Theatre: ");
theatreLabel.setForeground(Color.white);
JLabel locationLabel = new JLabel("Start Location: ");
locationLabel.setForeground(Color.white);
JLabel heightRangeLabel = new JLabel("Height Range: ");
heightRangeLabel.setForeground(Color.white);
JLabel objectsLabel = new JLabel("Ground Objects: ");
objectsLabel.setForeground(Color.white);
JLabel waterLabel = new JLabel("Water Level: ");
waterLabel.setForeground(Color.white);
JLabel nightLabel = new JLabel("Night Time: ");
nightLabel.setForeground(Color.white);
JLabel fogLabel = new JLabel("Fog: ");
fogLabel.setForeground(Color.white);
// Add the statistics output components to this panel:
locationStatsPanel.add(theatreLabel);
locationStatsPanel.add(theatreOutput);
locationStatsPanel.add(locationLabel);
locationStatsPanel.add(locationOutput);
locationStatsPanel.add(heightRangeLabel);
locationStatsPanel.add(heightRangeOutput);
locationStatsPanel.add(objectsLabel);
locationStatsPanel.add(objectsOutput);
locationStatsPanel.add(waterLabel);
locationStatsPanel.add(waterOutput);
locationStatsPanel.add(nightLabel);
locationStatsPanel.add(nightOutput);
locationStatsPanel.add(fogLabel);
locationStatsPanel.add(fogOutput);
locationBottom.add(locationStatsPanel, BorderLayout.SOUTH);
// Add the separate component holder panels to the main location
// selection panel:
locationPanel.add(locationTop, BorderLayout.NORTH);
locationPanel.add(locationBottom, BorderLayout.SOUTH);
// Set the ToolTip text of each of the JTextFields used to output
// statistics:
pitchOutput.setToolTipText("The pitch constant of this plane.");
rollOutput.setToolTipText("The roll constant of this plane.");
speedOutput.setToolTipText("The speed constant of this plane.");
theatreOutput.setToolTipText("The Theatre of this location.");
locationOutput.setToolTipText("Your starting location.");
heightRangeOutput.setToolTipText("The height range of this location.");
objectsOutput.setToolTipText("The number of ground objects.");
waterOutput.setToolTipText("The water level of this location.");
nightOutput.setToolTipText("The time setting of this location.");
fogOutput.setToolTipText("The fog setting of this location.");
// Make sure that all the component's used on this panel (and the panel
// itself) have transparent backgrounds so that the BackgroundPanel will
// show up behind:
planePanel.setOpaque(false);
planeTop.setOpaque(false);
planeBottom.setOpaque(false);
planeStatsPanel.setOpaque(false);
locationPanel.setOpaque(false);
locationTop.setOpaque(false);
locationBottom.setOpaque(false);
locationStatsPanel.setOpaque(false);
flightSelectionPanel.setOpaque(false);
} | [
"public preselectSensorPanel() {\n initComponents();\n }",
"public ScoutAndAttackerInitPanel() {\n initComponents();\n initSpinnerValue();\n }",
"public void init() {\n initPanels();\n initFrame();\n }",
"public TravelAgencyJPanel() throws ParseException {\n airlinerlist=new ArrayList<Airliner>();\n cuslist=new ArrayList<Customer>();\n flightDir = new FlightDirectory();\n cusDir=new CustomerDirectory();\n airlinerDir=new AirlinerDirectory();\n initComponents();\n initialAirliner();\n initialData();\n }",
"private void initializeComponents() {\n createLabel();\n createList();\n createComposite();\n initAcarsSounding();\n }",
"protected void init() {\r\n\t\tsetBackground(Color.black);\r\n\t\tsetForeground(Color.white);\r\n\t\taddMouseListener(this);\r\n\t\taddMouseMotionListener(this);\r\n\t\tcreateSelection();\r\n\t\tsel.addListener(this);\r\n\t\tcreateSection();\r\n\t\tsection.addListener(this);\r\n\t\tsetOpaque(true);\r\n\t\tremoveAll();\r\n\t}",
"public FlightStatus() {\n initComponents();\n reloadTable();\n loadComboBox();\n }",
"private Offce_select1() {\n initComponents();\n \n }",
"public AreaSelection() {\n initComponents();\n }",
"public FTPRunningPanel() {\n initComponents();\n }",
"private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n //SEARCH PANE COMPONENTS\n initSearchComponents();\n \n //RESULTS PANE COMPONENTS\n initResultComponents();\n \n // CRAWLER CONTROLS\n initCrawlerControlsComponents();\n \n // KEYWORD BAR\n initKeywordBarComponents();\n \n //WORKER CONTROLS\n initWorkerComponents();\n \n //URL COMPONENTS\n initURLMenuComponents();\n\n //BASE LAYOUT COMPONENTS\n initBaseLayout();\n }",
"public UpdateFlight() {\n initComponents();\n }",
"public HotelPanel() {\n initComponents();\n showAllHotelToTable();\n }",
"private void initComponents() {\n\t\taddComponent(getTextField(NAME_CAPTION, NAME));\n\t\taddComponent(getComboBox(DEPT_CAPTION, DEPT, getDeptList()));\n\t\taddComponent(getTextField(CITY_CAPTION, CITY));\n\t\taddComponent(getDateField(DATE_OF_BIRTH_CAPTION, DATE_OF_BIRTH));\n\t\taddComponent(getCheckBox(IS_PERMANENT_EMPLOYEE_CAPTION,\n\t\t\t\tIS_PERMANENT_EMPLOYEE));\n\t\taddComponent(getButtonLayout());\n\t\tinitCommitHandler();\n\n\t}",
"private void initComponents()\r\n\t{\n\t\tmodelNameComboBox.getItems().addAll(getModelNames());\r\n\t\tidComboBox.getItems().addAll(getProbes());\r\n\r\n\t\tlogDosesCheckBox.setSelected(true);\r\n\r\n\t\tidComboBox.valueProperty().addListener(new ChangeListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void changed(ObservableValue ov, Object t1, Object t2)\r\n\t\t\t{\r\n\t\t\t\tsetBestModel();\r\n\t\t\t\tupdateGraphs();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tmodelNameComboBox.valueProperty().addListener(new ChangeListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void changed(ObservableValue ov, Object t1, Object t2)\r\n\t\t\t{\r\n\t\t\t\tupdateGraphs();\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t}",
"public TableauPanel() {\n initComponents();\n initMyComponents();\n }",
"private void init() {\n\t\tallDeliveryAreas.setCellFactory(param -> new ListCell<DeliveryArea>() {\n\t\t @Override\n\t\t protected void updateItem(DeliveryArea item, boolean empty) {\n\t\t super.updateItem(item, empty);\n\n\t\t if (empty || item == null) {\n\t\t setText(null);\n\t\t } else {\n\t\t setText(item.getAreaName());\n\t\t }\n\t\t }\n\t\t});\n\t\t\t\t\n\t\t//Add all delivery people\n\t\tallDeliveryAreas.getItems().addAll(FXCollections.observableArrayList(\n\t\t\t\tRestaurant.getInstance().getAreas().entrySet().stream().map(c -> c.getValue()).collect(Collectors.toList())));\n\t\t\n\t\t//Event listener for listview\n\t\tallDeliveryAreas.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<DeliveryArea>() {\n\t\t @Override\n\t\t public void changed(ObservableValue<? extends DeliveryArea> observable, DeliveryArea oldValue, DeliveryArea newValue) {\n\t\t \tupdateCustomerDetailsFields();\n\t\t }\n\t\t});\n\t}",
"private void init() {\n\t\t\t// set layout for the reservation page\n\t\t\tFlowLayout overallLayout = new FlowLayout();\n\t\t\toverallLayout.setAlignment(0);\n\t\t\tsetLayout(overallLayout);\n\t\t\t\n\t\t\t// create the 3 panels\n\t\t\tmakeReservationPanel();\n\t\t\tmakePersonPanel();\n\t\t\tmakePaymentPanel();\n\t}",
"public void initialize() {\n removeAll();\n \n MouseAdapter mouseAdapter = new MouseAdapter() {\n public void mousePressed(MouseEvent e) {\n getCanvas().showSubPanel(new BuildQueuePanel(colony, getCanvas()));\n }\n };\n ASingleBuildingPanel aSingleBuildingPanel;\n \n List<Building> buildings = getColony().getBuildings();\n sortBuildings(buildings);\n for (Building building : buildings) {\n aSingleBuildingPanel = new ASingleBuildingPanel(building);\n if (colonyPanel.isEditable()) {\n aSingleBuildingPanel.addMouseListener(releaseListener);\n aSingleBuildingPanel.setTransferHandler(defaultTransferHandler);\n }\n aSingleBuildingPanel.setOpaque(false);\n aSingleBuildingPanel.addMouseListener(mouseAdapter);\n add(aSingleBuildingPanel);\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the dataset replacement policy for existing datasets. | @Override
public HDF5GenericStorageFeatureBuilder datasetReplacementPolicy(
DataSetReplacementPolicy datasetReplacementPolicy)
{
super.datasetReplacementPolicy(datasetReplacementPolicy);
return this;
} | [
"public void setDataset(Dataset dataset){\r\n this.dataset = dataset;\r\n originalDataset = new Dataset(dataset);\r\n }",
"public synchronized void setDataset(final String newValue) {\n checkWritePermission();\n dataset = newValue;\n }",
"public void setPolicy(PO newPolicy);",
"public void replace(PermissionGrant[] policyPermissions) throws IOException;",
"public abstract void setPrimaryDataset(Dataset d);",
"org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);",
"public void cacheSetConflictPolicy(int policy);",
"public void cacheSetStoragePolicy(int policy);",
"public void setPolicy(entity.Policy value);",
"public void setAttributePolicy(String attributePolicy)\r\n\t{\r\n\t\t_sAttributePolicy = attributePolicy;\r\n\t}",
"public void setDataSet(DataSet dataSet) {\r\n this.dataSet = dataSet;\r\n autoDetect = (dataSet == null);\r\n userSetDataAwareComponents = null;\r\n updateCurrentDataSet(dataSet);\r\n }",
"void upgradeDatasetLockToWrite(LockList locks, DataverseName dataverseName, String datasetName)\n throws AlgebricksException;",
"@Override\n public void replaceInstance(ThrottlePolicyProvider newTPP) {\n logger.info(\"Replacing ThrottlePolicyProvider with an instance of {}\", newTPP.getClass());\n newTPP.seedTPCLs(backingProvider.get().getAllTPCLs());\n backingProvider.set(newTPP);\n }",
"public void setDataSet(DataSet dataSet) {\r\n dataBinder.setDataSet(dataSet);\r\n }",
"void acquireDatasetModifyLock(LockList locks, DataverseName dataverseName, String datasetName)\n throws AlgebricksException;",
"void downgradeDatasetLockToExclusiveModify(LockList locks, DataverseName dataverseName, String datasetName)\n throws AlgebricksException;",
"void modifySecurityFeatureAttribute( VariableTree var,\n WorkingCopy workingCopy, TreeMaker make, String id, \n Set<String> policyIds );",
"public void setOldResourceName ( String OldResourceName )\n throws DataObjectException;",
"public void setDatabasePolicyFinder(final DatabasePolicyFinderModule databasePolicyFinder) {\r\n this.databasePolicyFinder = databasePolicyFinder;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the help box refreshed status | public void setHelpBoxRefreshed(boolean d_helpBoxRefreshed)
{
helpBoxRefreshed = d_helpBoxRefreshed;
} | [
"public boolean isHelpBoxRefreshed()\r\n\t{\r\n\t\treturn helpBoxRefreshed;\r\n\t}",
"public void help() {\n help.showAndWait();\n }",
"public void setHelpText(String help);",
"public void updateHelp() {\n\tif (help != null) {\n\t help.setTitle(helpPrefix + title);\n\t help.setContent(getHelp());\n\t if (followPos) {\n\t\thelp.focusOn(this, helpYoffset);\n\t } else {\n\t\thelp.setDefaultPos();\n\t\thelp.hideArrow();\n\t }\n\t}\n }",
"private void updateHelpText(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\t((QuestionDef)propertiesObj).setHelpText(txtHelpText.getText());\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}",
"private void addHelp() {\n JButton help = view.addButton(\"?\", 400, 20, 20, 20);\n help.setForeground(new Color(0xFF1E62EA, true));\n help.setToolTipText(\"<html> - Threshold result count must be an integer between \"\n + model.getLowerBound() + \"-\" + model.getUpperBound() + \". <p>\" +\n \"- Any time you search for a character with more quotes than the threshold you specify, the display will blink. <p>\" +\n \"- Any time you request a report on a character that meets this criteria, the report will start with *. </html>\");\n ToolTipManager.sharedInstance().setDismissDelay(Integer.MAX_VALUE);\n }",
"private void setHelp() {\n\t\tHelpOpt.add(\"-h\");\n\t\tHelpOpt.add(\"/h\");\n\t\tHelpOpt.add(\"help\");\n\t}",
"public void loadHelpMessage()\n {\n Text helpText;\n helpText = createHelpText();\n historyAccess.updateUserHistory(helpText);\n }",
"public void doHelp() {\n\t\tHelp(ADMIN_HELP_FXML);\n\t}",
"@VTID(78)\r\n void setHelpButton(\r\n boolean rhs);",
"private void doHelp()\r\n {\r\n Help.showHelp(page, ref, null);\r\n }",
"public void showHelp() {\n\n\t\tview.showHelpDialog();\n\t}",
"void setHelpSummary(String helpSummary);",
"private void btn_HelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_HelpActionPerformed\n // go to help screen\n SIHS = new HelpScreen(value);\n SIHS.setVisible(true);\n\n\n }",
"public void updateToolsbarStatus();",
"public void setHelp(Data help)\n\t{ this.help = help; }",
"public void help() {\n\t\tthis.sendMessageToServer(\"help\");\n\t}",
"private void mnHelpActionPerformed(java.awt.event.ActionEvent evt) {\n\n }",
"public void requestHelpCurrentGame() {\n domainController.getGameController().provideHelp();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Return True if this is an ARM device. | public boolean isArm() {
return getFamily() == Family.ARM32BIT;
} | [
"public boolean isDeviceDevice() {\n return type == Type.DEVICE_DEVICE;\n }",
"boolean hasDevicebrand();",
"public boolean isDevice() {\n return (fileType == DEVICE_TYPE);\n }",
"public boolean supportsArmIsa() {\r\n TargetArch arch = getArch();\r\n\r\n return (TargetArch.ARMV7A == arch || TargetArch.ARMV8A == arch);\r\n }",
"public boolean isValid(){\n\t\treturn this.arm.isValid();\n\t}",
"public abstract boolean isRTCTLSpec();",
"boolean isNilManufacturer();",
"public boolean supportsThumbIsa() {\r\n return isArm();\r\n }",
"public boolean isRegionDevice() {\n return type == Type.REGION_DEVICE;\n }",
"public boolean isSetDeviceType() {\n return this.DeviceType != null;\n }",
"public static boolean isMediaRenderDevice(Device device) {\n if (device != null\n && MEDIARENDER.equalsIgnoreCase(device.getDeviceType())) {\n return true;\n }\n\n return false;\n }",
"public boolean isTargetRC() { return isTargetRC; }",
"boolean isPeripheralAccess();",
"public boolean isTouchingRightArm() {\n \treturn rightArmLimit.get();\n }",
"public boolean isIsPhysicalDevice() {\n return isPhysicalDevice;\n }",
"public boolean isArm(int loc) {\n return (loc == Mech.LOC_LARM) || (loc == Mech.LOC_RARM);\n }",
"boolean isPlatform();",
"public boolean getArmState(){\n \treturn isArmOpen;\n }",
"private boolean checkDeviceResourcePermissions() {\n // Check if the user agrees to access the microphone\n boolean hasMicrophonePermission = checkPermissions(\n Manifest.permission.RECORD_AUDIO,\n REQUEST_MICROPHONE);\n boolean hasWriteExternalStorage = checkPermissions(\n Manifest.permission.WRITE_EXTERNAL_STORAGE,\n REQUEST_EXTERNAL_PERMISSION);\n\n if (hasMicrophonePermission && hasWriteExternalStorage) {\n return true;\n } else {\n return false;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the hlsSettings value for this LiveStreamEvent. | public void setHlsSettings(com.google.api.ads.admanager.axis.v201808.HlsSettings hlsSettings) {
this.hlsSettings = hlsSettings;
} | [
"public com.google.api.ads.admanager.axis.v201808.HlsSettings getHlsSettings() {\n return hlsSettings;\n }",
"public void setSettings(Settings settings)\r\n\t{\r\n\t\tthis.settings = settings;\r\n\t}",
"public void setSettings(UserSettings settings) {\r\n\t\tmySettings = settings;\r\n\t}",
"public void setSettings(Map<String, String> settings) {\n // safeguard against misuse to avoid NPE\n this.settings = settings == null ? Maps.newHashMap() : settings;\n }",
"public static void setSettings(final HashMap<String, String> settings) {\n\n m_Settings.putAll(settings);\n\n }",
"T setStockEventsSettings(StockEventsSettings stockEventsSettings);",
"void set(final Map<String, String> settings) {\n for (Map.Entry<String, String> entry : settings.entrySet())\n set(entry.getKey(), entry.getValue());\n }",
"public void setRemoteSettings(final RemoteSettings remoteSettings)\n {\n m_RemoteSettings = remoteSettings;\n }",
"public Settings(Settings settings) {\n\t\tthis(settings.getMasterVolume(), settings.getForward(), settings.getBackward(), settings.getStrafe_left(),\n\t\t\t\tsettings.getStrafe_right(), settings.getInteract(), settings.getPause(), settings.getMouseSens());\n\t}",
"public void setUserSettings(UserSettings userSettings) {\n\t\tthis.userSettings = userSettings;\n\t}",
"public void setMp4Settings(Mp4Settings mp4Settings) {\n this.mp4Settings = mp4Settings;\n }",
"public void setMovSettings(MovSettings movSettings) {\n this.movSettings = movSettings;\n }",
"void setStreamSession(StreamSession streamSession);",
"public void setPerformanceTuningSettings(Properties aPerformanceTuningSettings) {\n mPerformanceTuningSettings = aPerformanceTuningSettings;\n }",
"public void setThrottleSettings(ThrottleSettings throttleSettings)\n {\n settings = throttleSettings;\n if (settings.isDestinationThrottleEnabled())\n {\n inboundDestinationMark = new ThrottleMark(settings.getDestinationName());\n outboundDestinationMark = new ThrottleMark(settings.getDestinationName());\n }\n if (settings.isClientThrottleEnabled())\n {\n inboundClientMarks = new HashMap<Object, ThrottleMark>();\n outboundClientMarks = new HashMap<Object, ThrottleMark>();\n }\n }",
"public void setStreamHandler(ExecuteStreamHandler streamHandler) {\n this.streamHandler = streamHandler;\n }",
"@RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)\n public void setVoWiFiSettingEnabled(boolean isEnabled) {\n try {\n getITelephony().setVoWiFiSettingEnabled(mSubId, isEnabled);\n return;\n } catch (RemoteException e) {\n throw e.rethrowAsRuntimeException();\n }\n }",
"public void setStream(int streamMode) { \n NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"stream\").setNumber(streamMode);\n }",
"public void setSettingsId(Long settingsId) {\n\t\tthis.settingsId = settingsId;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Creates AWT PopupMenu for CameraComposite | private void createPopupMenu()
{
final Camera camera = SrvHal.getCamera();
final PopupMenu menu = new PopupMenu();
final MenuItem setColour = new MenuItem("Set colour to selected bin");
setColour.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
camera.getDetector().updateColourBinFromCoords();
camera.getDetector().setSampleLock(false);
}
});
menu.add(setColour);
final Component canvas = this;
add(menu);
addMouseListener(new MouseAdapter()
{
@Override
public void mouseClicked(MouseEvent e)
{
// show the context menu when right-click detected within image bounds
if (e.getButton() == MouseEvent.BUTTON3)
{
int x = e.getX();
int y = e.getY();
Rectangle bounds = getOffsetBounds();
if (bounds.contains(x, y))
{
camera.getDetector().setSampleLock(true);
menu.show(canvas, x, y);
}
}
}
});
} | [
"JPopupMenu createPopupMenu();",
"public void createPopupMenu() {\n\t\tJPopupMenu popup = new JPopupMenu();\r\n\t\tmenuItem = new JMenuItem(\"刷新频道\");\r\n\t\tmenuItem.addActionListener(this);\r\n\t\tpopup.add(menuItem);\r\n\r\n\t\thideMenuItem = new JMenuItem(\"隐藏公共频道\");\r\n\t\thideMenuItem.addActionListener(this);\r\n\t\tpopup.add(hideMenuItem);\r\n\t\t// Add listener to the text area so the popup menu can come up.\r\n\t\tMouseListener popupListener = new PopupListener(popup);\r\n\t\tcommonArea.addMouseListener(popupListener);\r\n\t\tmyMsgArea.addMouseListener(popupListener);\r\n\t}",
"private JPopupMenu getJPopupMenuCamaras() {\r\n\t\tif (jPopupMenuCamaras == null) {\r\n\t\t\tjPopupMenuCamaras = new JPopupMenu();\r\n\t\t\tjPopupMenuCamaras.add(getJMenuItemEliminarCamara());\r\n\t\t\tjPopupMenuCamaras.add(getJMenuItemAgregarCamara());\r\n\t\t\tjPopupMenuCamaras.add(getJMenuItemPropiedadesCamara());\r\n\t\t\tjPopupMenuCamaras.add(getJMenuItemAgregarMidifProps());\r\n\t\t\t\r\n\t\t}\r\n\t\treturn jPopupMenuCamaras;\r\n\t}",
"private void createPopupMenu() {\r\n // pride inspector context\r\n DesktopContext context = Desktop.getInstance().getDesktopContext();\r\n\r\n // create a popup menu\r\n popMenu = new JPopupMenu();\r\n\r\n // select all rows\r\n JMenuItem selectAllItem = new JMenuItem(context.getProperty(\"select.all.title\"));\r\n selectAllItem.setActionCommand(SELECT_ALL_ACTION);\r\n selectAllItem.addActionListener(this);\r\n popMenu.add(selectAllItem);\r\n\r\n // deselect all rows\r\n JMenuItem deselectAllItem = new JMenuItem(context.getProperty(\"deselect.all.title\"));\r\n deselectAllItem.setActionCommand(DESELECT_ALL_ACTION);\r\n deselectAllItem.addActionListener(this);\r\n popMenu.add(deselectAllItem);\r\n\r\n // add copy cell menu item\r\n JMenuItem copyCellItem = new JMenuItem(context.getProperty(\"copy.cell.title\"),\r\n GUIUtilities.loadIcon(context.getProperty(\"copy.cell.small.icon\")));\r\n copyCellItem.setActionCommand(COPY_CELL_ACTION);\r\n copyCellItem.addActionListener(this);\r\n popMenu.add(copyCellItem);\r\n\r\n // add copy row menu item\r\n JMenuItem copyRowItem = new JMenuItem(context.getProperty(\"copy.row.title\"),\r\n GUIUtilities.loadIcon(context.getProperty(\"copy.row.small.icon\")));\r\n copyRowItem.setActionCommand(COPY_ROW_ACTION);\r\n copyRowItem.addActionListener(this);\r\n popMenu.add(copyRowItem);\r\n\r\n // add popup menu listener\r\n PopupListener listener = new PopupListener();\r\n this.addMouseListener(listener);\r\n\r\n // listener to ctrl + c from keyboard\r\n registerKeyboardStroke();\r\n }",
"KnowtatorSwatchChooserPanel() {\n super();\n setInheritsPopupMenu(true);\n }",
"public void createSwitchButtonPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t}",
"public void createPopupMenu() {\r\n\t\tJMenuItem menuItem;\r\n\r\n\t\tMenuListener menuListener = new MenuListener(this);\r\n\r\n\t\t// Create the popup menu.\r\n\t\tJPopupMenu popup = new JPopupMenu();\r\n\t\tmenuItem = new JMenuItem(\"new survivor\");\r\n\t\tmenuItem.addActionListener(menuListener);\r\n\t\tpopup.add(menuItem);\r\n\t\tmenuItem = new JMenuItem(\"new axe\");\r\n\t\tmenuItem.addActionListener(menuListener);\r\n\t\tpopup.add(menuItem);\r\n\t\tmenuItem = new JMenuItem(\"new wall\");\r\n\t\tmenuItem.addActionListener(menuListener);\r\n\t\tpopup.add(menuItem);\r\n\t\t// menuItem = new JMenuItem(\"Tower:Poison\");\r\n\t\t// menuItem.addActionListener(menuListener);\r\n\t\t// popup.add(menuItem);\r\n\r\n\t\t// Add listener to the text area so the popup menu can come up.\r\n\t\tpopupListener = new PopupListener(popup, this);\r\n\r\n\t}",
"public static void initializePopup(){\n\n popup = new PopupMenu();\n\n // Initialize menu items\n MenuItem exitItem = new MenuItem(\"Exit\");\n MenuItem pauseItem = new MenuItem(\"Pause\");\n MenuItem resumeItem = new MenuItem(\"Resume\");\n\n // Exit listener\n exitItem.addActionListener(arg0 -> System.exit(0));\n\n // Pause listener\n pauseItem.addActionListener(arg0 -> {\n paused = true;\n pauseItem.setEnabled(false);\n resumeItem.setEnabled(true);\n });\n\n // Resume listener\n resumeItem.addActionListener(arg0 -> {\n paused = false;\n pauseItem.setEnabled(true);\n resumeItem.setEnabled(false);\n });\n\n resumeItem.setEnabled(false);\n\n popup.add(resumeItem);\n popup.add(pauseItem);\n popup.add(exitItem);\n }",
"protected void createContextMenuFor(StructuredViewer viewer) {\n //$NON-NLS-1$\n MenuManager contextMenu = new MenuManager(\"#PopUp\");\n //$NON-NLS-1$\n contextMenu.add(new Separator(\"additions\"));\n contextMenu.setRemoveAllWhenShown(true);\n Menu menu = contextMenu.createContextMenu(viewer.getControl());\n viewer.getControl().setMenu(menu);\n getSite().registerContextMenu(contextMenu, viewer);\n }",
"private PopupListener createRightClickMenu() {\n\t\tJMenuItem delete = new JMenuItem(\"Remove Cards\", IconFactory.loadIcon(IconType.DELETE, 12, false));\n\t\tdelete.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tremoveSelectedCards();\n\t\t\t}\n\t\t});\n\t\treturn new PopupListener(delete);\n\t}",
"JZMenuItem createJZMenuItem();",
"private void createContextMenu() {\r\n\t\t// Create menu manager.\r\n\t\tMenuManager menuMgr = new MenuManager();\r\n\t\tmenuMgr.setRemoveAllWhenShown(true);\r\n\t\tmenuMgr.addMenuListener(new IMenuListener() {\r\n\t\t\tpublic void menuAboutToShow(IMenuManager mgr) {\r\n\t\t\t\tfillLocalMenu(mgr);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Create menu.\r\n\t\tMenu menu = menuMgr.createContextMenu(imageCanvas.getAccessible()\r\n\t\t\t\t.getControl());\r\n\t\timageCanvas.getAccessible().getControl().setMenu(menu);\r\n\r\n\t\t// Register menu for extension.\r\n\t\t// getSite().registerContextMenu(menuMgr,\r\n\t\t// canvasComposite.getAccessible());\r\n\t}",
"private void createContextMenu() {\n MenuManager menuMgr = new MenuManager(\"#PopupMenu\");\n menuMgr.setRemoveAllWhenShown(true);\n menuMgr.addMenuListener(new IMenuListener() {\n public void menuAboutToShow(IMenuManager menuMgr) {\n visualEditor.populateContextMenu(menuMgr);\n }\n });\n Menu menu = menuMgr.createContextMenu(visualEditor);\n visualEditor.setMenu(menu);\n getSite().registerContextMenu(menuMgr, visualEditor);\n }",
"JZLemurMenu createJZLemurMenu();",
"private void initEdgePopup() {\r\n edgeMenuItem = new MenuItem[4];\r\n edgeMenuItem[0] = new MenuItem(\"Select All\");\r\n edgeMenuItem[1] = new MenuItem(\"Create Split Point\");\r\n edgeMenuItem[2] = new MenuItem(\"Edit Label\");\r\n edgeMenuItem[3] = new MenuItem(\"Properties\");\r\n\r\n edgePopupMenu = new PopupMenu();\r\n\r\n edgePopupMenu.add(edgeMenuItem[0]);\r\n edgePopupMenu.addSeparator();\r\n edgePopupMenu.add(edgeMenuItem[1]);\r\n edgePopupMenu.add(edgeMenuItem[2]);\r\n edgePopupMenu.add(edgeMenuItem[3]);\r\n\r\n edgePopupMenu.addActionListener(this);\r\n\r\n this.add(edgePopupMenu);\r\n }",
"public LoginPopupMenu() {\n\t\tinitUI();\n\t\tinitInPlaceController();\n\t}",
"private void addMenus(PopupSettings settings) {\n JMenuItem FileExport = new JMenuItem(\"Export\");\n FileExport.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent actionEvent) {\n System.out.println(\"Export to video file\");\n }\n });\n FileExport.setEnabled(false);\n\n //The settings will transfer between the Morph JFrame and the PreviewWindow JFrame\n JMenuItem FileSettings = new JMenuItem(\"Settings\");\n FileSettings.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent actionEvent) {\n settings.setVisible(true);\n settings.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent windowEvent) {\n //call member functions of settings page here\n framesPerSecond = settings.getTweenImageValue();\n seconds = settings.getSeconds();\n }\n });\n }\n });\n FileSettings.setEnabled(false); //Disabled control\n\n\n //close the PreviewWindow JFrame\n JMenuItem FileExit = new JMenuItem(\"Exit\");\n FileExit.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent actionEvent) {\n MorphWindow.this.dispatchEvent(new WindowEvent(\n MorphWindow.this, WindowEvent.WINDOW_CLOSING\n ));\n }\n });\n\n //Initialize the File menu and add it's child controls\n JMenu File = new JMenu(\"File\");\n File.add(FileExport);\n File.add(FileSettings);\n File.add(FileExit);\n\n //Initialize the buttons on the menubar (no submenus)\n JMenuItem startButton = new JMenuItem(\"Start Animation\");\n startButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n animate.start();\n status.setText(\"Status: Running\");\n }\n });\n\n JMenuItem stopButton = new JMenuItem(\"Stop Animation\");\n stopButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n animate.stop();\n status.setText(\"Status: Stopped\");\n }\n });\n\n status = new JMenuItem(\"Status: Not Running\");\n\n //Initialize the menubar and add it to the JFrame\n JMenuBar menuBar = new JMenuBar();\n this.setJMenuBar(menuBar);\n menuBar.add(File);\n menuBar.add(startButton);\n menuBar.add(stopButton);\n menuBar.add(status);\n }",
"private Popup createRightPanelPopup() {\n descriptionPane = createPopUp(600, 600, \"sample text\");\n descriptionPane.setAutoHide(true);\n descriptionPane.setOnAutoHide(event -> {\n setDefaultRightPanelChoiceBox();\n });\n return descriptionPane;\n }",
"private void createPopup() {\r\n \r\n this.captureThisSectionsTabEditorPopUpMenu = this;\r\n \r\n JMenuItem menuItem01 = this.add(new JMenuItem(\"Insert New Section Before\"));\r\n menuItem01.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n insertNewSection(sectionsTab.getSelectedIndex());\r\n Main.getController().getBaseScreen().\r\n getMySaveButton().setWarning(); \r\n captureThisSectionsTabEditorPopUpMenu.setVisible(false);\r\n }\r\n });\r\n\r\n JMenuItem menuItem02 = this.add(new JMenuItem(\"Insert New Section After\"));\r\n menuItem02.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n insertNewSection(sectionsTab.getSelectedIndex() + 1);\r\n Main.getController().getBaseScreen().\r\n getMySaveButton().setWarning();\r\n captureThisSectionsTabEditorPopUpMenu.setVisible(false);\r\n }\r\n });\r\n\r\n JMenuItem menuItem03 = this.add(new JMenuItem(\"Delete Selected Section\"));\r\n menuItem03.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n sectionPanels.remove(sectionsTab.getSelectedIndex());\r\n sectionsTab.remove(sectionsTab.getSelectedIndex());\r\n Main.getController().getBaseScreen().\r\n getMySaveButton().setWarning();\r\n captureThisSectionsTabEditorPopUpMenu.setVisible(false);\r\n }\r\n });\r\n\r\n JMenuItem menuItem04 = this.add(new JMenuItem(\"Edit Section Title\"));\r\n menuItem04.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n SectionDataEditor sectionDataEditor\r\n = new SectionDataEditor(sectionsTab,\r\n sectionsTab.getSelectedIndex(), sectionPanels);\r\n captureThisSectionsTabEditorPopUpMenu.setVisible(false);\r\n }\r\n });\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the function draws most of the game, links multiple functions | private void drawGame(){
drawBackGroundImage();
drawWalls();
drawPowerups();
drawBullet();
} | [
"protected abstract void drawGame();",
"public void draw()\r\n {\n \tif (won)\r\n \t{\r\n \t}else\r\n \t{\r\n\t canvas.clear();\r\n\t if (square.x() > 136 && square.x() < 164)\r\n\t {\r\n\t \tif (square.y() > 124 && square.y() < 172)\r\n\t \t{\r\n\t \t\twin();\r\n\t \t}\r\n\t }\r\n\t goal.draw();\r\n\t maze.draw();\r\n\t square.draw();\r\n \t}\r\n }",
"public static void graphicGame() {\n\t\tApplication.run(new Color(20, 20, 20), context -> {\n\t\t\tScreenInfo screenInfo = context.getScreenInfo();\n\t\t\tint width = (int) screenInfo.getWidth();\n\t\t\tint height = (int) screenInfo.getHeight();\n\t\t\tint score = -1;\n\t\t\tvar playerNumber = 0;\n\t\t\t\n\t\t\tnew SimpleGameView(width, height);\n\t\t\tcontext.renderFrame(graphics -> SimpleGameView.drawMainScreen(graphics, context));\n\t\t\tplayerNumber = SimpleGameData.retrieveNumberOfPlayers(context, GraphicsData.menuButtonPosX, GraphicsData.menuButtonWidth, GraphicsData.menuButtonHeight);\n\t\t\tscore = fullGame(playerNumber, context, null);\n\t\t\tSimpleGameView.endGame(score, context);\n\t\t\twaitEvent(context);\t\n\t\t\tcontext.exit(0);\n\t\t});\n\t}",
"public void draw() {\n if (!myTurn()) {\n return;\n }\n draw(4 - handPile.size());\n }",
"public void draw()\n {\n play( _drawPile.top() );\n }",
"public void draw( GameState state, Graphics2D gr, Scene scene );",
"public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }",
"private void render() {\n // get the buffer strategy from the display\n bs = display.getCanvas().getBufferStrategy();\n\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n\n g = bs.getDrawGraphics();\n\n if (state == STATE.GAME) {\n g.setColor(Color.black);\n g.fillRect(0, 0, this.getWidth(), this.getHeight());\n map.render(g);\n\n g.setColor(Color.white);\n this.DrawStats();\n\n g.setColor(Color.red);\n for(Item ite : items) {\n ite.render(g);\n }\n player.render(g);\n for (Enemy enemy : enemies) {\n enemy.render(g);\n }\n \n \n for (int i = 0; i < enemyBullets.size(); i++) {\n Bullet bullet = enemyBullets.get(i);\n bullet.render(g);\n }\n if (playerBullet != null) {\n playerBullet.render(g);\n }\n if (player.getLife() <= 0) {\n state = STATE.GAME_OVER;\n }\n\n // if player is standing on stairs\n if(onStair) {\n g.drawImage(Assets.stairMessage, (this.getWidth() - 187)/2, 20, 187, 13, null);\n }\n hud.render(g);\n\n } else if (state == STATE.GAME_OVER) {\n g.drawImage(Assets.gameOver, 0, 0, this.getWidth(), this.getHeight(), null);\n\n } else if (state == STATE.MENU) {\n\n // Render menu\n menu.render(g);\n\n int tempMX = mouseManager.getX(), tempMY = mouseManager.getY();\n // Check if start\n if (menu.getNGbutton().contains(tempMX, tempMY)) {\n Assets.gates.play();\n state = STATE.GAME;\n }\n\n //Check if cargar\n if (pause.load.contains(tempMX, tempMY)) {\n // load game\n loadFile(this);\n Assets.gates.play();\n state = STATE.GAME;\n }\n //Check if exit\n if (menu.getEbutton().contains(tempMX, tempMY)) {\n\n System.exit(0);\n }\n } else if (state == STATE.PAUSE) {\n pause.render(g);\n if(mouseManager.isLeft()) {\n int tempMX = mouseManager.getX(), tempMY = mouseManager.getY();\n if (pause.resume.contains(tempMX, tempMY)) {\n state = STATE.GAME;\n } else if (pause.exit.contains(tempMX, tempMY)) {\n System.exit(0);\n } else if (pause.load.contains(tempMX, tempMY)) {\n // load game\n loadFile(this);\n } else if (pause.save.contains(tempMX, tempMY)) {\n // save game\n saveFile(this);\n }\n }\n }\n\n bs.show();\n g.dispose();\n }\n\n }",
"public void Draw (Graphics graphics, MainJPanel JPanel){ // draw the player game pieces\n for(Piece piece : pieces.values())\n piece.Draw(graphics,JPanel);\n }",
"public void draw() {\n\t\t/* Clear the screen */\n\t\tZombieSim.dp.clear(Color.black);\n\t\tdrawWalls();\n\t\tZombieSim.dp.setPenColor(Color.GREEN);//sets the color of the humans\n\t\tfor (int i = 0; i < arrayH.size(); i++)//goes through the loop to draw each human at its coordinates\n\t\t{\n\t\t\tint x = arrayH.get(i).getXcoord();\n\t\t\tint y = arrayH.get(i).getYcoord();\n\t\t\tZombieSim.dp.drawDot(x, y);\n\n\t\t}\n\t\tfor (int j = 0; j < arrayZ.size(); j++) {\n\n\t\t\tZombieSim.dp.setPenColor(Color.red);\n\t\t\tint x = arrayZ.get(j).getXcoord();\n\t\t\tint y = arrayZ.get(j).getYcoord();\n\t\t\tZombieSim.dp.drawDot(x, y);\n\t\t}\n\t}",
"public static void mainDraw(Graphics graphics) {\n\n int squaresSize = 1280;\n HashMap<Integer, Color> hashColors = new HashMap<>();\n\n hashColors.put(1, Color.RED);\n hashColors.put(2, Color.ORANGE);\n hashColors.put(3, Color.YELLOW);\n hashColors.put(4, Color.GREEN);\n hashColors.put(5, Color.BLUE);\n hashColors.put(6, new Color(111, 0, 255));\n hashColors.put(7, new Color(127, 0, 255));;\n\n squareDrawingFunction(squaresSize,hashColors,graphics );\n\n }",
"private void render() {\r\n // get the buffer strategy from the display\r\n bs = display.getCanvas().getBufferStrategy();\r\n /* if it is null, we define one with 3 buffers to display images of\r\n the game, if not null, then we display every image of the game but\r\n after clearing the Rectanlge, getting the graphic object from the \r\n buffer strategy element. \r\n show the graphic and dispose it to the trash system\r\n */\r\n if (bs == null) {\r\n display.getCanvas().createBufferStrategy(3);\r\n } else {\r\n \r\n g = bs.getDrawGraphics();\r\n g.drawImage(Assets.background, 0, 0, width, height, null);\r\n \r\n String s = (\"Score: \" + score + \" lives: \" + lives);\r\n g.drawString(s, 10, 490);\r\n \r\n if (win) { \r\n player.render(g);\r\n box.render(g);\r\n\r\n for (int i = 0; i < bads.size(); i++) {\r\n Bad bad = bads.get(i);\r\n bad.render(g);\r\n }\r\n\r\n bs.show();\r\n g.dispose();\r\n }\r\n else {\r\n g.drawImage(Assets.gameOver, 0, 0, width, height, null);\r\n bs.show();\r\n g.dispose();\r\n \r\n int count = 0;\r\n \r\n while (count < 100) {\r\n count++;\r\n }\r\n }\r\n }\r\n }",
"public void displayGameMode (Graphics g1)\n {\n if (state == 1)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/1/2player2.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/1/1player2.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/1/plain2.png\").getImage(), 0, 0, null);\n }\n \n else if (state == 2)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/2/2player2.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/2/1player2.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/2/plain2.png\").getImage(), 0, 0, null);\n }\n \n else if (state == 3)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/3/2player.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/3/1player.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/3/plain.png\").getImage(), 0, 0, null);\n }\n \n else if (state == 4)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/4/2player.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/4/1player.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/4/plain.png\").getImage(), 0, 0, null);\n }\n \n bird1.displayDisplayCharacter (g1);\n bird2.displayDisplayCharacter (g1);\n bird3.displayDisplayCharacter (g1);\n }",
"private void drawEntities() {\n \tdrawWalls();\n \tdrawDoors();\n \tdrawButtons();\n \tdrawExit();\n \tdrawBall();\n }",
"private void draw(){\n for(int i = 0; i < boardSize; i++){\n for(int j = 0; j < boardSize; j++){\n if(selected != null && gameBoard[i][j] == selected)\n StdDrawPlus.setPenColor(StdDrawPlus.WHITE);\n else if ((i + j) % 2 == 0) \n StdDrawPlus.setPenColor(StdDrawPlus.GRAY);\n else\n StdDrawPlus.setPenColor(StdDrawPlus.RED);\n StdDrawPlus.filledSquare(i + .5, j + .5, .5);\n StdDrawPlus.setPenColor(StdDrawPlus.WHITE);\n if(gameBoard[i][j] != null){\n StdDrawPlus.picture(i + .5, j + .5, buildPath(gameBoard[i][j]), 1, 1);\n }\n }\n }\n }",
"public void drawPokemon() {\n setAttackText();\n drawImage();\n }",
"public void draw()\r\n {\r\n\tfinal GraphicsLibrary g = GraphicsLibrary.getInstance();\r\n\t_level.draw(g);\r\n\t_printText.draw(\"x\" + Mario.getTotalCoins(), 30, _height - 36, false);\r\n\t_printText.draw(\"C 000\", _width - 120, _height - 36, false);\r\n\t_printText.draw(Mario.getLives() + \"UP\", 240, _height - 36, false);\r\n\t_printText.draw(Mario.getPoints() + \"\", 400, _height - 36, false);\r\n\t_coin.draw();\r\n\t_1UP.draw();\r\n }",
"private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }",
"public void paint(Graphics g){\r\n // Draw the field according to the state of the char array\r\n for (int a=0; a<10; a++){\r\n for (int b=0; b<10;b++){\r\n switch (currentState[a][b]){\r\n case 'a':\r\n g.drawImage(field,tile[a][b].x,tile[a][b].y,tile[a][b].width,tile[a][b].height,this);\r\n break;\r\n\r\n case 'b':\r\n g.drawImage(fieldCurrent,tile[a][b].x,tile[a][b].y,tile[a][b].width,tile[a][b].height,this);\r\n break;\r\n\r\n case'c':\r\n g.drawImage(fieldUncovered,tile[a][b].x,tile[a][b].y,tile[a][b].width,tile[a][b].height,this);\r\n break;\r\n\r\n case'd':\r\n g.drawImage(fieldUncoveredCurrent,tile[a][b].x,tile[a][b].y,tile[a][b].width,tile[a][b].height,this);\r\n break;\r\n\r\n case'e':\r\n g.drawImage(goodImage,tile[a][b].x,tile[a][b].y,tile[a][b].width,tile[a][b].height,this);\r\n break;\r\n\r\n case'f':\r\n g.drawImage(evilImage,tile[a][b].x,tile[a][b].y,tile[a][b].width,tile[a][b].height,this);\r\n break;\r\n\r\n }\r\n }\r\n }\r\n\r\n // Check the game status and draw good and evil if win/lose\r\n //game status : \r\n //0 - in play\r\n //1 - won\r\n //2 - lost\r\n //3 - gave up\r\n if(gameStatus==1) //won game\r\n {\r\n\r\n complete=true;\r\n g.drawImage(goodImage,tile[userA][userB].x,tile[userA][userA].y,tile[userA][userB].width,tile[userA][userB].height,this);\r\n\r\n }\r\n else if(gameStatus==2) //lost game\r\n {\r\n\r\n complete=true;\r\n g.drawImage(evilImage,tile[userA][userB].x,tile[userA][userB].y,tile[userA][userB].width,tile[userA][userB].height,this);\r\n\r\n }\r\n\r\n // Request focus\r\n requestFocus();\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Redirect print to logger | public static void setupLogger() {
System.setOut(createLoggingProxy(System.out));
System.setErr(createLoggingProxy(System.err));
} | [
"public void doLogging() {\n\t}",
"public static void setToClassicLogging() {\n removeHandlers();\n Handler ch = new StreamHandler(System.err, new JdrasilLogFormatter()) {\n @Override\n public synchronized void publish(final LogRecord record) {\n super.publish(record);\n flush();\n }\n };\n ch.setLevel(java.util.logging.Level.ALL);\n LOGGER.addHandler(ch);\n }",
"public void print() {\n // Use same code with execute() to keep same stack level\n //add try-catch block to avoid crash from library if any internal exception is thrown.\n try {\n LogEngine.handleLogRequest(this);\n } catch (Throwable t) {\n t.printStackTrace();\n }\n }",
"protected void log(final LogEntryImpl le) {\n AccessController.doPrivileged(new PrivilegedAction<Object>() {\n public Object run() {\n synchronized(LogReaderServiceFactory.this) {\n if (le.getLevel() <= getFilterLevel(le.getBundle())) {\n if (fileLog != null) {\n fileLog.logged(le);\n }\n if (configuration.getOut()) {\n System.out.println(le);\n }\n history[historyInsertionPoint] = le;\n historyInsertionPoint++;\n if (historyInsertionPoint == history.length) {\n historyInsertionPoint = 0;\n }\n }\n }\n for (Enumeration<LogReaderServiceImpl> e = logReaderServicies.keys();\n e.hasMoreElements();) {\n try {\n e.nextElement().callback(le);\n } catch (Exception ce) {\n // TBD Log error?\n }\n }\n return null;}\n });\n }",
"public static void setLogPrintsActivated(boolean printToLog) {\r\n logPrintsActivated = printToLog;\r\n }",
"private static void recordPrints() {\n\t\tSystem.setOut(printsRecorder);\n\t\tSystem.setErr(ErrorsRecorder);\n\t}",
"public static void setToDimacsLogging() {\n removeHandlers();\n Handler ch = new StreamHandler(System.out, new DimacsLogFormatter()) {\n @Override\n public synchronized void publish(final LogRecord record) {\n super.publish(record);\n flush();\n }\n };\n ch.setLevel(java.util.logging.Level.ALL);\n LOGGER.addHandler(ch);\n }",
"public void print() {\n\t\tlog.debug(toString());\n\t}",
"protected void log(String str){\n if(log != null)\n log.print(str);\n else\n System.out.println(str);\n }",
"public abstract void print (PrintWriter printer, LogItem entry);",
"public abstract void print(Level level, Object logMessage);",
"public Logger() {\n\t\tlogTo = System.out;\n\t}",
"public void enableLogging();",
"public static void dumpLog() {\n\t\t\n\t\tif (log == null) {\n\t\t\t// We have no log! We must be accessing this entirely statically. Create a new log. \n\t\t\tnew Auditor(); // This will create the log for us. \n\t\t}\n\n\t\t// Try to open the log for writing.\n\t\ttry {\n\t\t\tFileWriter logOut = new FileWriter(log);\n\n\t\t\t// Write to the log.\n\t\t\tlogOut.write( trail.toString() );\n\n\t\t\t// Close the log writer.\n\t\t\tlogOut.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Close the log file itself.\n\t\t// Apparently we can't? TODO: Look into this. \n\n\t}",
"public static void setLogStream(PrintStream log) {\n out = log;\n }",
"void resetLogging();",
"private void writeToLog(Response response) {\n responseLogger.addLog(response.getResponseLine());\n }",
"private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }",
"public static void enableLogging() {\n setLogLevel(Level.FINER);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Container's getter for eventinterviewer_interviewer. | public ViewLinkImpl geteventinterviewer_interviewer() {
return (ViewLinkImpl) findViewLink("eventinterviewer_interviewer");
} | [
"public ViewObjectImpl getEventInterviewerDetails1() {\n return (ViewObjectImpl) findViewObject(\"EventInterviewerDetails1\");\n }",
"public String getInterviewerUserId() {\n\t\treturn interviewerUserId;\n\t}",
"public ViewObjectImpl getEventInterviewerDetailsVO1() {\n return (ViewObjectImpl) findViewObject(\"EventInterviewerDetailsVO1\");\n }",
"public ViewObjectImpl getEventInterviewerDetailsVO2() {\n return (ViewObjectImpl) findViewObject(\"EventInterviewerDetailsVO2\");\n }",
"public interviewersImpl getinterviewers1() {\n return (interviewersImpl) findViewObject(\"interviewers1\");\n }",
"public approinterviewerImpl getapprointerviewer1() {\n return (approinterviewerImpl) findViewObject(\"approinterviewer1\");\n }",
"public UserDetails getUserDetailsInterviewer() {\r\n\r\n\t\tUserDetails interviewer = new UserDetails();\r\n\t\tinterviewer.setUserDetailsId(INTERVIEWER_ID);\r\n\t\tinterviewer.setDepartment(INTERVIEWER_DEPARTMENT);\r\n\t\tinterviewer.setDesignation(INTERVIWER_DESIGNATION);\r\n\t\tinterviewer.setDateOfBirth(DOB);\r\n\t\tinterviewer.setExperience(EXPERIENCE);\r\n\t\tinterviewer.setContactNumber(MOBILE_NUMBER);\r\n\t\tinterviewer.setActiveFlag(FLAG);\r\n\t\tinterviewer.setAvailableDate(AVAILABLE_DATE);\r\n\t\tinterviewer.setAvailableTimeFrom(AVAILABLE_TIME_FROM);\r\n\t\tinterviewer.setAvailableTimeTo(AVAILABLE_TIME_TO);\r\n\t\tinterviewer.setUser(getInterviewerUser());\r\n\t\treturn interviewer;\r\n\r\n\t}",
"public String getReviewer() {\n return reviewer;\n }",
"IntervieweeList getIntervieweeList();",
"public Viewer getViewer() {\n\t\treturn viewer;\n\t}",
"@Override\n public long getReviewerId() {\n return _review.getReviewerId();\n }",
"public User getInterviewerUser() {\r\n\t\tUser user = new User();\r\n\t\tuser.setUserId(INTERVIEWER_ID);\r\n\t\tuser.setUsername(USERNAME);\r\n\t\tuser.setPassword(PASSWORD);\r\n\t\tuser.setUser_type(USER_INTERVIEWER);\r\n\t\treturn user;\r\n\t}",
"public Date getInterviewDate() {\n\t\treturn interviewDate;\n\t}",
"public interviewerdataforeventpageImpl getinterviewerdataforeventpage1() {\n return (interviewerdataforeventpageImpl) findViewObject(\"interviewerdataforeventpage1\");\n }",
"public Long getViewerid() {\n return viewerid;\n }",
"public long getReviewerId() {\r\n return reviewerId;\r\n }",
"public java.lang.String getRelatedIMEventOriginalID() {\n return relatedIMEventOriginalID;\n }",
"public java.lang.String getRelatedIMEventOriginalID() {\n return relatedIMEventOriginalID;\n }",
"public ViewObjectImpl getInterviewerDataVO1() {\n return (ViewObjectImpl) findViewObject(\"InterviewerDataVO1\");\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Goat Constructor Sets the default coin count of each color, the goat's color, the default wait time, and the default decision to pay being no. | public Goat(String color){
this.color = color;
this.blackCoins = 100;
this.whiteCoins = 100;
this.greyCoins = 100;
this.waitTime = 1;
this.willPay = false;
} | [
"public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }",
"public Jumper()\n {\n\t\t// set turn time and color\n turnTime = 5;\n safeGuard = 0;\n setColor(Color.BLUE);\n }",
"public CowMeat(){\n\t\tsuper(\"CowMeat\", 100000);\n\t}",
"public CoinLabel (int coins)\n {\n this(\"\", coins);\n }",
"public CoinTossSimulator() {\n num = 0;\n numTwoHeads = 0;\n numTwoTails = 0;\n numHeadTails = 0;\n }",
"public void addCoins(Goat goat){\r\n\t\t\r\n\t\tgoat.setBlackCoins(goat.getBlackCoins() + 100);\r\n\t\tgoat.setGreyCoins(goat.getGreyCoins() + 100);\r\n\t\tgoat.setWhiteCoins(goat.getWhiteCoins() + 100);\r\n\t\t\r\n\t}",
"Money(MoneyType coin)\r\n\t{\r\n\t\tthis(coin,0);\r\n\t}",
"public Knight(boolean colorChoice) {\n super(colorChoice);\n }",
"public Coin()\r\n\t{\r\n\t\tthis.value = 0.0;\r\n\t\tthis.name = \"N/A\";\r\n\t}",
"public Candy() {\n\t\tthis(\"\");\n\t}",
"public CoinTossSimulator() \n {\n cumulativeTrials = 0;\n\t numTwoHeads = 0;\n\t numTwoTails = 0;\n\t numHeadTails = 0;\n }",
"public CountdownAnimation(SpriteCollection gameScreen) {\r\n this(3, gameScreen);\r\n }",
"public ChainGun()\r\n\t{\r\n\r\n\t\tthis.baseDamage = 15;\r\n\t\tthis.maxRange = 30;\r\n\t\tthis.rateOfFire = 4;\r\n\t\tthis.maxAmmo = 40;\r\n\t\tthis.currentAmmo = this.maxAmmo;\r\n\t\tthis.shotCounter = this.rateOfFire;\r\n\r\n\t}",
"public GoldCoin(){\r\n\t\tcoinNumber = ++totalCoin; //prefix so that coinNumber would start with 1\r\n\t}",
"public TrafficLight(int id, int numberOfLights) {\n this.id = id;\n this.numberOfLights = numberOfLights;\n\n //random light color\n setCurrentColor(createRandomNumber(3) + 1);\n\n}",
"public CoinLabel (Value<Integer> coins)\n {\n this(\"\", coins);\n }",
"private void initCoins(){\n\t\tint[] xCoordCoins = new int[] {813, 1337, 1702, 2250, 2582, 2630, 2822, 2664, 2988, 3012, 3760, 4497, 5251, 5579, 3836, 4311, 3977, 4750, 5699, 6232, 6401, 7031, 6647, 5781, 5514, 7449, 8209, 8699, 7849, 7868, 5334, 4943, 5082}; \n\t\tint[] yCooordCoins = new int[] {-94, -152, -335, -356, -130, 87, 294, -667, -881, -1245, -1619, -1769, -1832, -2239, 421, 600, 15, -344, -596, -2531, -2615, -2300, -1887, -1454, -917, -1445, -1418, -1846, -1681, -1975, -481, 0, 568}; \n\n\t\tfor (int i = 0; i < xCoordCoins.length; i++) {\n\t\t\tCoin coin = new Coin(xCoordCoins[i], yCooordCoins[i]); \n\t\t\tcoin.setBoundary(150, 150, 150, 150);\n\t\t\tproperty.add(coin); \n\t\t\tcoin.create();\n\t\t}\n\t}",
"@JsonCreator\n public KnockOutContinuous(\n @JsonProperty(\"type\") OptionType type,\n @JsonProperty(\"strike\") double strike,\n @JsonProperty(\"expiry\") LocalDateTime expiry,\n @JsonProperty(\"delivery\") LocalDateTime delivery,\n @JsonProperty(\"barrier\") double barrier,\n @JsonProperty(\"barrierDirection\") BarrierDirection barrierDirection,\n @JsonProperty(\"barrierStart\") LocalDateTime barrierStart,\n @JsonProperty(\"barrierEnd\") LocalDateTime barrierEnd,\n @JsonProperty(\"rebateAmount\") double rebateAmount,\n @JsonProperty(\"rebateType\") RebateType rebateType,\n @JsonProperty(\"exercise\") ExerciseType exercise) {\n this.type = type;\n this.strike = strike;\n this.barrier = barrier;\n this.barrierDirection = barrierDirection;\n this.barrierStart = barrierStart;\n this.barrierEnd = barrierEnd;\n this.rebateAmount = rebateAmount;\n this.rebateType = rebateType;\n this.expiry = expiry;\n this.delivery = delivery;\n this.exercise = exercise;\n }",
"public CollisionGauge() {}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unregister the callback formerly registered with the Predictive Back system. | private void unregisterBackCallback() {
if (mIsBackCallbackRegistered) {
ViewRootImpl viewRoot = getViewRootImpl();
if (viewRoot != null) {
viewRoot.getOnBackInvokedDispatcher().unregisterOnBackInvokedCallback(
mOnBackInvokedCallback);
mIsBackCallbackRegistered = false;
} else {
if (DEBUG) {
Log.d(TAG, "view root was null, could not unregister back callback");
}
}
} else {
if (DEBUG) {
Log.d(TAG, "prevented unregistering back callback twice");
}
}
} | [
"public void unregisterCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"unregisterCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(null);\n mLocalManager.getEventManager().unregisterCallback(this);\n mLocalManager.getProfileManager().removeServiceListener(this);\n }",
"public void unregisterCallback() {\n mMediaController.unregisterCallback(mMediaControllerCallback);\n }",
"@Override\n public void unregisterCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.remove(callback);\n }",
"public void unregisterCallbacks() {\n getConnection().getParser().map(Parser::getCallbackManager).ifPresent(cm -> cm.unsubscribe(this));\n }",
"public void removeCallback(ITrafficStateCallback callback) {\n mRegisteredCallbacks.unregister(callback);\n mCallbackFirstInvocationTracker.delete(callback.hashCode());\n }",
"public synchronized void removeCallback(MaestroNoteCallback callback) {\n callbacks.remove(callback);\n }",
"public synchronized void removeCallbackListener(ratingservice.CreditRatingServiceControl.Callback listener)\r\n {\r\n CallbackNotifier __bc_notifier = (CallbackNotifier)getEventNotifier(ratingservice.CreditRatingServiceControl.Callback.class);\r\n __bc_notifier.removeListener(listener);\r\n }",
"@Implementation(minSdk = N)\n protected void unregisterAudioRecordingCallback(AudioManager.AudioRecordingCallback cb) {\n audioRecordingCallbacks.remove(cb);\n }",
"void unhook();",
"public void\t\tremoveUCallbackListener(String\t\ttag);",
"public void removeEnumerateCallback(OctaveReference listener) {\n\t\tlistenerEnumerate.remove(listener);\n\t}",
"public void removeDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.remove(listener);\n\t}",
"@UiThread\n public void deactivate() {\n activationCounter--;\n if (activationCounter == 0) {\n context.unregisterReceiver(INSTANCE);\n }\n }",
"@Implementation(minSdk = O)\n protected void unregisterAudioPlaybackCallback(AudioManager.AudioPlaybackCallback cb) {\n audioPlaybackCallbacks.remove(cb);\n }",
"public void unsubscribe(ProcessRegisterCallback processRegisterCallback) {\n processRegisterCallbacks.remove(processRegisterCallback);\n }",
"public void\t\tremoveUCallbackListener(String tag)\n\t{\n\t\ttab.remove(tag);\n\t}",
"@Override\n public void onDetach() {\n if (callbackManager != null) callbackManager.setActivity(null);\n super.onDetach();\n }",
"public void unregister()\n\t{\n\t\tcancelPrevRegisterTask();\n\n\t\tpushRegistrar.unregisterPW(mContext);\n\t}",
"public synchronized void unregisterCallback(CarHvacEventCallback callback) {\n mCallbacks.remove(callback);\n try {\n List<CarPropertyConfig> configs = getPropertyList();\n for (CarPropertyConfig c : configs) {\n // Register each individual propertyId\n mCarPropertyMgr.unregisterListener(mListenerToBase, c.getPropertyId());\n }\n } catch (Exception e) {\n Log.e(TAG, \"getPropertyList exception \", e);\n }\n if (mCallbacks.isEmpty()) {\n mCarPropertyMgr.unregisterListener(mListenerToBase);\n mListenerToBase = null;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println ("In get11 pathParam " + beanParam.getPathParam()); | @GET
@Path("/get11/{pathparam1}")
@Produces(MediaType.TEXT_PLAIN)
public String get11(@BeanParam ParamBean beanParam, String entity) {
return ("In get11 - " + beanParam.getPathParam());
} | [
"String getParam();",
"java.lang.String getParam();",
"java.lang.String getParams1();",
"String getValParam();",
"java.lang.String getParam1();",
"java.lang.String getParam2();",
"java.lang.String getParams5();",
"java.lang.String getParams();",
"java.lang.String getParams2();",
"private void getPropertyAction(StringBuffer buffer) throws JspParseException {\n String property = startTag.getAttributeValue(\"property\");\n String name = startTag.getAttributeValue(\"name\");\n Class beanClass;\n String beanClassName = \"\";\n try {\n beanClassName = (String) parser.getAllBeanNames().get(name);\n beanClass = parser.getApplicationClassLoader().loadClass(beanClassName);\n } catch (Exception cnfex) {\n buffer.append(\"\\t\\t\\tout.print(com.sap.engine.services.servlets_jsp.lib.jspruntime.RunLibrary.getProp(_jspx_pageContext.findAttribute(\\\"\").append(name).append(\"\\\"), \\\"\").append(property).append(\"\\\"));\\r\\n\");\n return;\n }\n try {\n Method m = beanClass.getDeclaredMethod(\"is\" + parser.firstCap(property), new Class[0]);\n\n if (m.getReturnType().getName().equals(\"boolean\")) {\n buffer.append(\"\\t\\t\\tout.print(\").append(name).append(\".is\").append(parser.firstCap(property)).append(\"());\\r\\n\");\n } else {\n throw new JspParseException(JspParseException.METHOD_MUST_RETURN_BOOLEAN, new Object[]{\"is\" + parser.firstCap(property)});\n }\n } catch (JspParseException ex) {\n throw ex;\n } catch (Exception nsfex) {\n buffer.append(\"\\t\\t\\tout.print(\").append(name).append(\".get\").append(parser.firstCap(property)).append(\"());\\r\\n\");\n }\n }",
"public static Object getPathValue(String key) {\n Object object = pathParamMap.get(key);\n if(null == object)\n return \"\";\n return object;\n }",
"int getParam1();",
"int getParam2();",
"public String getAllParam() { return this.allParam; }",
"public String getParam() {\n return param;\n }",
"public String getWebParam2();",
"@Override\n public String toString() {\n return paramName;\n }",
"public String getWebParam1();",
"@Test\n public void testPersonReturn(){\n// System.out.println(\"------->\"+ mHbParam.getId());\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds all merged users and puts them into the output map. | public static Map<String, Set<String>> mergeAll(Map<String, Set<String>> inputMap) {
Map<String, Set<String>> outputMap = new LinkedHashMap<>();
/*get "adjacency list"*/
Set<User> users = getUsersAndLinks(inputMap);
Iterator<User> it = users.iterator();
while (it.hasNext()) {
User user = it.next();
List<User> mergedUsers = mergeByUser(user);
Set<String> emails = new LinkedHashSet<>();
/*collect all the emails from the merged users*/
for (User u: mergedUsers) {
emails.addAll(inputMap.get(u.getName()));
/*delete the already merged user from the initial list of users*/
users.remove(u);
}
outputMap.put(user.name, emails);
/*get new iterator from the initial list of users*/
it = users.iterator();
}
return outputMap;
} | [
"private void getAllUsers(HttpServletRequest request, HttpServletResponse response) \n\t{\n\t\tList<UserInterface> users = BeanManager.getAllUsers();\n\t\tUserWrapper userWrapper = new UserWrapper();\n\t\tList< Map<String, Object> > mapList = new ArrayList<>();\n\t\tString data = \"[]\";\n\t\t\n\t\tusers.stream()\n\t\t\t.filter( user -> {\n\t\t\t\t/*\n\t\t\t\t * check to see if authenticated user can view\n\t\t\t\t * the user indicated\n\t\t\t\t */\n\t\t\t\treturn this.authorizeRequest(request, \"read\", user);\n\t\t\t})\n\t\t\t.forEach((user) -> {\n\t\t\t\tuserWrapper.setSubject( user );\n\t\t\t\tmapList.add( userWrapper.getPropertyMap() );\n\t\t\t});\n\t\t\n\t\tdata = Json.encode( mapList );\n\t\t\n\t\tthis.writeToResponse(response, data);\n\t}",
"public static Map getAllUsers() {\r\n \treturn USERS;\r\n }",
"private void searchUsers() throws IOException, ClassNotFoundException {\n\tString searchFor = (String) clientIn.readObject();\n\tSet<String> userNames = Server.allUsers.keySet();\n\tIterator<String> itr = userNames.iterator();\n\tList<String> foundUsers = new ArrayList<String>();\n\tString temp;\n\twhile (itr.hasNext()) {\n\t if ((temp = itr.next()).contains(searchFor)) {\n\t\tfoundUsers.add(temp);\n\t }\n\t}\n\tclientOut.writeObject(foundUsers);\n }",
"public void userLogInInfoRead(String filepath2, HashMap<String, EmpInfo> mergeData) {\n String data;\n String[] userLogInInfoToken;\n File userLogInInfoFile = new File(filepath2);\n Scanner scanner = null;\n try {\n scanner = new Scanner(userLogInInfoFile);\n } catch (FileNotFoundException e) {\n out.println(\"file not found\");\n }\n if (scanner != null) {\n while (scanner.hasNextLine()) {\n data = scanner.nextLine();\n userLogInInfoToken = data.split(\",\");\n // store userid in mergeData as a key\n EmpInfo empInfo = new EmpInfo(Integer.parseInt(userLogInInfoToken[0]),\n userLogInInfoToken[1], userLogInInfoToken[2], userLogInInfoToken[3]);\n EmpInfo uRole = mergeData.get(userLogInInfoToken[0]);\n uRole.setUserRole(userLogInInfoToken[3]);\n /* merge data have already 6 key and 6 emp information if new key is equal to old key\n then hash map not put new key and hashmap put userRole at old key,hashmap allowed only unique kay*/\n mergeData.put(userLogInInfoToken[0], uRole);\n // all employee log in information add in arraylist for printing information\n userLogInInfo.add(empInfo);\n }\n }\n }",
"public void dumpUsers() {\r\n\t\tuserList.removeAll(userList);\r\n\t\ttry {\r\n\t\t\texportUserList();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private Map<String, Set<String>> getUsersToGroupMap(Set<UserEntity> usersToCreate) {\n Map<String, Set<String>> usersToGroups = new HashMap<>();\n\n for (UserEntity userEntity : usersToCreate) {\n\n // make sure user entities are refreshed so that membership is updated\n userEntity = userDAO.findByPK(userEntity.getUserId());\n\n usersToGroups.put(userEntity.getUserName(), new HashSet<>());\n\n for (MemberEntity memberEntity : userEntity.getMemberEntities()) {\n usersToGroups.get(userEntity.getUserName()).add(memberEntity.getGroup().getGroupName());\n }\n }\n\n return usersToGroups;\n }",
"private void getUsers() {\n\n users = new String[statistics.getUserStats().size()];\n for(int index = 0; index < statistics.getUserStats().size(); index++) {\n users[index] = statistics.getUserStats().keySet().toArray()[index].toString().split(\" \")[0];\n }\n }",
"public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getString(\"username\"),\n rs.getString(\"password\"),\n rs.getBoolean(\"log\"),\n rs.getBoolean(\"medicine\"),\n rs.getBoolean(\"appointment\"),\n rs.getBoolean(\"caseAccess\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"protected Set createUserSet(XMLLogHelper logHelper) throws CruiseControlException {\n \n Set users = skipUsers ? new HashSet() : logHelper.getBuildParticipants();\n \n //add always addresses\n for (int i = 0; i < alwaysAddresses.length; i++) {\n users.add(alwaysAddresses[i].getAddress());\n }\n \n //if build failed, add failure addresses\n if (!logHelper.isBuildSuccessful()) {\n for (int i = 0; i < failureAddresses.length; i++) {\n users.add(failureAddresses[i].getAddress());\n }\n }\n \n //If build fixed, add failure addresses that want to know about the fix\n if (logHelper.isBuildFix()) {\n for (int i = 0; i < failureAddresses.length; i++) {\n if (failureAddresses[i].shouldReportWhenFixed()) {\n users.add(failureAddresses[i].getAddress());\n }\n }\n }\n \n //if build succeeded, add success addresses\n if (logHelper.isBuildSuccessful()) {\n for (int i = 0; i < successAddresses.length; i++) {\n users.add(successAddresses[i].getAddress());\n }\n }\n \n Set emails = new TreeSet();\n mapperHelper.mapUsers(this, users, emails);\n return emails;\n }",
"public Map<Integer, List<String>> getUsers() {\n\t\tMap<Integer, List<String>> userMap = new HashMap<Integer, List<String>>();\n\t\tList<String> userData = new ArrayList<String>();\n\t\t\n\t\t// Step 1: read the data.csv file\n\t\t// STep 2: fill out the userMap and userData\n\t\t// userID is the key, everything else is userData\n\t\t\n\t\treturn userMap;\n\t}",
"public synchronized Set<User> getUsers() {\r\n Set<User> userSet = new HashSet<User>(userSetSize); \r\n userSet.addAll(this.email2user.values());\r\n return userSet;\r\n }",
"Map<Date, Set<String>> getFullUsers(Step step) throws SQLException;",
"private void writeAllUsers(){\n try{\n FileWriter writer = new FileWriter(\"phase2/phase2/Data/UserDataFiles/ListOfNames.txt\");\n writer.close();\n } catch (Exception e){\n e.getStackTrace();\n }\n for(User user: ATM.bankUsers){\n writeUserData(user);\n }\n }",
"public List<List<String>> accountsMerge(List<List<String>> accounts) {\n HashMap<String, Set<String>> graph = new HashMap<>();\n HashMap<String, String> emailToName = new HashMap<>();\n \n buildGraph(graph, emailToName, accounts);\n List<List<String>> res = new ArrayList<>(); // to store the results\n Set<String> visited = new HashSet<>(); // to check if a node is visited or not\n \n for (String mail: emailToName.keySet()) {\n if (visited.add(mail)) { // if it's not in the hashset, it's not visited\n List<String> list = new ArrayList<>();\n list.add(mail); // adding current node and then finding connected nodes\n dfs(graph, list, mail, visited);\n Collections.sort(list); // to sort the emails\n list.add(0, emailToName.get(mail)); // adding name at the start of the list\n res.add(list);\n }\n }\n return res; \n }",
"public void mergeUser(User otherUser, boolean mergeNullData) {\n if (mergeNullData || StringUtils.isNotBlank(otherUser.getUsername())) {\n setUsername(otherUser.getUsername());\n }\n if (mergeNullData || StringUtils.isNotBlank(otherUser.getSurname())) {\n setSurname(otherUser.getSurname());\n }\n if (mergeNullData || StringUtils.isNotBlank(otherUser.getName())) {\n setName(otherUser.getName());\n }\n if (mergeNullData || StringUtils.isNotBlank(otherUser.getOrganisation())) {\n setOrganisation(otherUser.getOrganisation());\n }\n if (mergeNullData || StringUtils.isNotBlank(otherUser.getKind())) {\n setKind(otherUser.getKind());\n }\n if (mergeNullData || StringUtils.isNotBlank(otherUser.getProfile().name())) {\n setProfile(otherUser.getProfile());\n }\n\n if (mergeNullData || !otherUser.getEmailAddresses().isEmpty()) {\n _email.clear();\n _email.addAll(otherUser.getEmailAddresses());\n }\n\n ArrayList<Address> otherAddresses = new ArrayList<Address>(otherUser.getAddresses());\n if (mergeNullData || !otherAddresses.isEmpty()) {\n for (Iterator<Address> iterator = _addresses.iterator(); iterator.hasNext(); ) {\n Address address = iterator.next();\n boolean found = false;\n\n for (Iterator<Address> iterator2 = otherAddresses.iterator(); iterator.hasNext(); ) {\n Address otherAddress = iterator2.next();\n if (otherAddress.getId() == address.getId()) {\n address.mergeAddress(otherAddress, mergeNullData);\n found = true;\n iterator2.remove();\n break;\n }\n }\n\n if (!found) {\n iterator.remove();\n }\n }\n _addresses.addAll(otherAddresses);\n }\n\n getSecurity().mergeSecurity(otherUser.getSecurity(), mergeNullData);\n }",
"public List consolidateReportUserAttributes()\n {\n List result = null;\n List groups = getReportGroups();\n if (groups != null && !groups.isEmpty()) \n {\n for (Iterator i = groups.iterator(); i.hasNext();) \n {\n ReportGroup group = (ReportGroup)i.next();\n List users = group.getReportUserAttributes();\n if (users != null && !users.isEmpty()) \n {\n for (Iterator j = users.iterator(); j.hasNext();)\n {\n if (result == null) \n {\n result = new ArrayList();\n }\n result.add(j.next());\n }\n }\n }\n }\n \n List users = getReportUserAttributes();\n if (users != null && !users.isEmpty()) \n {\n for (Iterator j = users.iterator(); j.hasNext();)\n {\n if (result == null) \n {\n result = new ArrayList();\n }\n result.add(j.next());\n }\n }\n if (result == null) \n {\n result = Collections.EMPTY_LIST;\n }\n\n return result;\n }",
"public void printAllUsers() {\n\t\tfor (User u : getUserSet()) {\n\t\t\tSystem.out.println(u);\n\t\t}\n\t}",
"@Override\n public void updateUserJson() {\n synchronized (lockUpdateUserJson) {\n try (PrintWriter printer = new PrintWriter(\"Database/Users.json\")) {\n ArrayList<User> userAsArray = new ArrayList<>();\n for (Map.Entry<String, User> entry : mapOfRegisteredUsersByUsername.entrySet()) {\n userAsArray.add(entry.getValue());\n }\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.setLongSerializationPolicy(LongSerializationPolicy.STRING);\n Gson writer = gsonBuilder.create();\n JsonObject jsonObject = new JsonObject();\n jsonObject.add(\"users\", writer.toJsonTree(userAsArray));\n printer.print(jsonObject);\n } catch (IOException ex) {\n }\n }\n }",
"public List<List<String>> accountsMerge(List<List<String>> accounts) {\n List<List<String>> ans = new ArrayList<>();\n Map<Integer, Node> disjointSetMap = new HashMap<>(); // index-Node pair to later identify DJS array indices with email Nodes\n int counter = -1;\n for(int i = 0; i < accounts.size(); i++) {\n List<String> list = accounts.get(i);\n String name = list.get(0);\n\n for(int j = 1; j < list.size(); j++) {\n String email = list.get(j);\n disjointSetMap.put(++counter, new Node(name, email, i));\n }\n }\n\n // 1. make sets according to index in orginal accounts list. i.e. All emails in any index i in \"accounts\" are one set\n // 2. Note down duplicate email's indices\n Map<String, List<Integer>> emailIndices = new HashMap<>(); // email<->List of indices in DJS\n DisjointSet djs = new DisjointSet(disjointSetMap.size());\n int prevIndexInOriginalList = 0;\n for(int i = 0; i < disjointSetMap.size(); i++) {\n Node node = disjointSetMap.get(i);\n int indexInOriginalList = node.indexInOriginalList;\n String email = node.email;\n\n if(!emailIndices.containsKey(email)){\n emailIndices.put(email, new ArrayList<>());\n }\n emailIndices.get(email).add(i);\n\n if(i > 0 && indexInOriginalList == prevIndexInOriginalList) { // same set\n djs.union(i-1, i);\n }\n\n prevIndexInOriginalList = indexInOriginalList;\n }\n\n //make union sets for duplicates emails. This is the constraint on problem statement\n for(List<Integer> indicesList : emailIndices.values()) {\n if(indicesList.size() > 1) { //duplicates\n for(int i = 1; i < indicesList.size(); i++) {\n djs.union(indicesList.get(i), indicesList.get(i-1));\n }\n }\n }\n\n // now get merged sets from djs, add them to map(root-list of elements in that set)\n Map<Integer, TreeSet<Node>> map = new HashMap<>(); // root-list (root indicates same set)\n for(int i = 0; i < djs.id.length; i++) {\n Node node = disjointSetMap.get(i);\n int root = djs.getRoot(i);\n\n if(!map.containsKey(root)) {\n TreeSet<Node> sortedSet = new TreeSet<>();\n map.put(root, sortedSet);\n }\n\n map.get(root).add(node);\n }\n\n\n //load above map to answer\n for(TreeSet<Node> sortedSet : map.values()) {\n List<String> list = new ArrayList<>();\n String name = sortedSet.first().name;\n list.add(name);\n\n Iterator it = sortedSet.iterator();\n while(it.hasNext()) {\n Node node = (Node) it.next();\n list.add(node.email);\n }\n ans.add(list);\n }\n\n return ans;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert tenths of seconds to a lessprecise humanreadable string (xx:xx) | public static String tenthsToStringShort(int time) {
// If we have negative time, just return zero
if ( time < 0 ) {
return "0:00";
}
int sec = (time / 10) % 60;
int min = (time / 10) / 60;
return String.format("%d:%02d", min, sec);
} | [
"public static String tenthsToString(int time) {\r\n\t\t// If we have negative time, just return zero\r\n\t\tif ( time < 0 ) {\r\n\t\t\treturn \"0:00.0\";\r\n\t\t}\r\n\t\t\r\n\t\tint tenths = time % 10;\r\n\t\tint sec = (time / 10) % 60;\r\n\t\tint min = (time / 10) / 60;\r\n\t\treturn String.format(\"%d:%02d.%d\", min, sec, tenths);\r\n\t}",
"private String formatTime(int seconds){\n return String.format(\"%02d:%02d\", seconds / 60, seconds % 60);\n }",
"public static String buildTimeString(int seconds)\n\t{\n\t\tint m = Math.floor(seconds/60);\n\t\tint s = seconds%60;\n if (s>=10)\n {\treturn m+\":\"+s;\n }\n else\n {\treturn m+\":0\"+s;\n }\t\t\t\n\t}",
"public static String standaloneSecondsRemainderTime(int seconds) {\n if (seconds <= 60) {\n return \"\";\n }\n return (seconds % 60) + \"s\";\n }",
"private String secondsToMinutesAndSeconds(double seconds) {\n\t\tint numberOfminutes = (int) (seconds / 60);\n\t\tint numberOfSeconds = (int) (seconds % 60);\n\t\tif (numberOfSeconds < 10) {\n\t\t\treturn numberOfminutes + \":0\" + numberOfSeconds;\n\t\t} else {\n\t\t\treturn numberOfminutes + \":\" + numberOfSeconds;\n\t\t}\n\t}",
"private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }",
"private String formatTime(int time) {\n String timeTxt;\n\n if (time >= 60) {\n int minutes = time / 60;\n int seconds = time % 60;\n if (seconds < 10) { timeTxt = minutes + \":0\" + seconds; }\n else { timeTxt = minutes + \":\" + seconds; }\n }\n else {\n if (time < 10) { timeTxt = \"0:0\" + time; }\n else { timeTxt = \"0:\" + time; }\n }\n return timeTxt;\n }",
"private String formatTime(long ms) {\n String format = String.format(\"%%.%df s\", decimals);\n return String.format(format, ms > 0 ? ms/1000f : 0f);\n }",
"private String formatTime(final long time) {\n if ( time == 0 ) {\n return \"-\";\n }\n if ( time < 1000 ) {\n return time + \" ms\";\n } else if ( time < 1000 * 60 ) {\n return time / 1000 + \" secs\";\n }\n final long min = time / 1000 / 60;\n final long secs = (time - min * 1000 * 60);\n return min + \" min \" + secs / 1000 + \" secs\";\n }",
"public static String formatSeconds(int seconds) {\n SimpleDateFormat sf = new SimpleDateFormat(\"m:ss\");\n Date date = new Date(seconds*1000);\n return sf.format(date);\n }",
"private String convert_timer_to_time_string(long timer){\n long minutes, seconds;\n String seconds_string;\n if(timer < 3600){\n minutes = timer/60;\n seconds = timer%60;\n if(seconds<10) seconds_string = \"0\"+seconds;\n else seconds_string = \"\"+seconds;\n return \"\"+minutes+\":\"+seconds_string;\n }\n else throw new IllegalStateException(\"timer exceeds an hour\");\n }",
"public String convertTime(long ms) {\n\t\tint ms1 = (int) ms;\n\t\tint secs = ms1 / 1000;\n\t\tint mins = secs / 60;\n\t\tint hours = mins / 60;\n\n\t\thours %= 24;\n\t\tsecs %= 60;\n\t\tmins %= 60;\n\t\tms1 %= 1000;\n\n\t\tString hoursS = Integer.toString(hours);\n\t\tString secsS = Integer.toString(secs);\n\t\tString minsS = Integer.toString(mins);\n\t\tString ms2 = Integer.toString(ms1);\n\n\t\tif (secs < 10) {\n\t\t\tsecsS = \"0\" + secsS;\n\t\t}\n\t\tif (mins < 10) {\n\t\t\tminsS = \"0\" + minsS;\n\t\t}\n\t\tif (hours < 10) {\n\t\t\thoursS = \"0\" + hoursS;\n\t\t}\n\n\t\treturn hoursS + \"h : \" + minsS + \"m : \" + secsS + \"s : \" + ms2 + \"ms\";\n\t}",
"private void formatTime(){\n int hours = (int) (time / 3600000);\n int minutes = (int) (time - hours * 3600000) / 60000;\n int seconds = (int) (time - hours * 3600000 - minutes * 60000) / 1000;\n if (hours != 0){\n actualTime = \"\"+hours+\":\"+minutes+\":\"+seconds;\n }\n else if (minutes != 0){\n actualTime = \"\"+minutes+\":\"+seconds;\n }\n else {\n if (seconds < 10)\n actualTime = \"00:0\"+seconds;\n else\n actualTime = \"00:\"+seconds;\n }\n }",
"public static String format(double seconds) {\r\n return format(seconds, \"%h2:%m2:%s\", (int)3);\r\n }",
"public static String formatTime(int seconds){\n\t\tTimeZone tz = TimeZone.getTimeZone(\"UTC\");\n\t SimpleDateFormat df = new SimpleDateFormat(\"HH:mm:ss\");\n\t df.setTimeZone(tz);\n\t return df.format(new Date((long)(seconds * 1000)));\n\t}",
"protected String displayTime(){\r\n\t\t\tfloat time = getTime();\r\n\t\t\tint hours = (int)(time / 3600);\r\n\t\t\tint minutes = (int)((time - 3600 * hours) / 60);\r\n\t\t\tint seconds = (int)(time - 3600 * hours - 60 * minutes);\r\n\t\t\tString printString = \"\";\r\n\t\t\tif(hours > 0){ printString = hours + \":\"; }\r\n\t\t\tif(minutes < 10){ printString += \"0\"; }\r\n\t\t\tprintString += (minutes + \":\");\r\n\t\t\tif(seconds < 10){ printString += \"0\"; }\r\n\t\t\tprintString += seconds;\r\n\t\t\treturn printString;\r\n\t\t}",
"private static String timeToString(double time) {\r\n\t\t/*Find the number of full minutes by diving the time by 60 and then casting to an int*/\r\n\t\tint minutes = (int) (time / SECONDS_IN_MINUTE);\r\n\t\tDecimalFormat secondsFormat = new DecimalFormat(\"00.000\");\r\n\t\t/*Find the number of left over seconds by taking the time modulus 60*/\r\n\t\tString seconds = secondsFormat.format(time % SECONDS_IN_MINUTE);\r\n\t\treturn minutes + \":\" + seconds;\r\n\t}",
"public String CreateTimeText() {\n int min = (int) cookingTime / 60000;\n int sec = (int) cookingTime % 60000 / 1000;\n\n RemainingTimeText = \"\";\n\n if (min < 10) RemainingTimeText += \"0\";\n\n RemainingTimeText += min + \":\";\n\n if (sec < 10) RemainingTimeText += \"0\";\n\n RemainingTimeText += sec;\n return RemainingTimeText;\n }",
"public static String TimeConvert(int num) {\n\n int hours;\n int minutes;\n\n if (num < 60){\n\n return \"0:\" + num;\n }\n else {\n\n hours = num / 60;\n minutes = num % 60;\n\n return hours + \":\" + minutes;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if passed class name is a byte code classname. | public static boolean isByteCodeClassName(String className) {
return ((className.startsWith("L") || className.startsWith("[")) && className.endsWith(";")
&& ((className.indexOf('/') != -1 || className.indexOf('.') == -1)));
} | [
"public static boolean isJavaClass(String name) {\n String className = name.replace(\".\", File.separator) + \".class\";\n URL classLoc = ClassLoader.getSystemClassLoader().getResource(className);\n return isJavaClass.test(classLoc,name);\n }",
"boolean shouldProcessClass(String className);",
"public static boolean isValidClass(String className) {\n\t\treturn UserLibraryClassFactory.getClass(className) != null;\n\t}",
"private static boolean validateClass(String className)\n {\n Class cls = null;\n try\n {\n cls = Class.forName(className);\n }\n catch (ClassNotFoundException e)\n {\n }\n\n return cls == null ? false : validateClass(cls);\n }",
"public static boolean isPossiblyJavaClass(String s) {\n // Only match a small subset of possible class names to prevent false\n // positives:\n // - class must be qualified with a package name\n // - only letters in package name, starting with lower case\n // - class name must be in CamelCase, starting with upper case\n return javaClassPattern.matcher(s).matches();\n }",
"boolean isClassAvailable(String name);",
"private void checkClassName(String className) throws ClassNotFoundException {\n StringTokenizer tokenizer = new StringTokenizer(className, \".\");\n boolean first = true;\n while (tokenizer.hasMoreTokens()) {\n String token = tokenizer.nextToken();\n // Each dot-separated piece must be a valid identifier\n // and the first token can also be \"*\". (Note that\n // numeric class ids are not permitted. They must\n // match a loaded class.)\n if (!Utils.isJavaIdentifier(token) && !(first && token.equals(\"*\"))) {\n throw new ClassNotFoundException();\n }\n first = false;\n }\n }",
"public static boolean classAllowed(String className) {\n for (String name : BLACK_LIST) {\n if (className.startsWith(name)) {\n return false;\n }\n }\n return true;\n }",
"protected abstract byte[] loadClassBytes(String name);",
"private Class isPrimitive(String className) {\n Class result = null;\n switch (className) {\n case (\"Byte\"):\n case (\"byte\"):\n result = Byte.class;\n break;\n\n case (\"Short\"):\n case (\"short\"):\n result = Short.class;\n break;\n\n case (\"Integer\"):\n case (\"int\"):\n result = Integer.class;\n break;\n\n case (\"Long\"):\n case (\"long\"):\n result = Long.class;\n break;\n\n case (\"Float\"):\n case (\"float\"):\n result = Float.class;\n break;\n\n case (\"Double\"):\n case (\"double\"):\n result = Double.class;\n break;\n\n case (\"Boolean\"):\n case (\"boolean\"):\n result = Boolean.class;\n break;\n\n case (\"Character\"):\n case (\"char\"):\n result = Character.class;\n break;\n case(\"String\"):\n result = String.class;\n break;\n\n }\n return result;\n }",
"public static boolean isClassSupport (String clzName) {\n try {\n Class.forName(clzName);\n return true;\n } catch (ClassNotFoundException e) {\n return false;\n }\n }",
"public static String toByteCodeClassName(String className) {\n return (char)TYPE_CLASS + toSlashSeparatedName(className) + (char)CLASS_END;\n }",
"private boolean isValidClassName( String fileName )\r\n {\r\n\t\tString className = getClassName(fileName);\r\n\t\t\r\n\t if(!className.matches(\"[^0-9][0-9a-zA-Z_$]*\"))\r\n\t \treturn false;\r\n\r\n\t return true;\r\n }",
"public static boolean isBootImageClass(String className) {\n BootImagePackage pkg = BOOT_IMAGE_CODE_BASE_PACKAGES.get(getPackageName(className));\n if (pkg != null) {\n // check for explicit class\n return pkg.isBootImageClass(className);\n }\n return false;\n }",
"private boolean Restricted_class(AST.class_ name)\n\t{\n\t\treturn \"IO\" == name.toString() || \"Int\" == name.toString() || \"String\" == name.toString() || \"Bool\" == name.toString();\n\t}",
"private static boolean classNameMatchesFileName(ClassSymbol c,\n Env<AttrContext> env) {\n return env.toplevel.sourcefile.isNameCompatible(c.name.toString(),\n JavaFileObject.Kind.SOURCE);\n }",
"public boolean isInstanceOfG2Class (Symbol g2ClassName_);",
"public static boolean isClassName(String value) {\n boolean result;\n \n if (value == null) {\n result = false;\n } else {\n result = true;\n for (String item : value.split(\"\\\\.\")) { //NOI18N\n if (isIdentifier(item) == false) {\n result = false;\n break;\n }\n }\n }\n \n return result;\n }",
"boolean isClass();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
testBA1_4 1.4 CannotComplete The PA sends CannotComplete before completing its work on behalf of the activity. | public void testBA1_4()
throws Exception
{
final String conversationId = getConversationId() ;
final InteropWaitState state = new InteropWaitState(BusinessActivityConstants.WSBA_ACTION_NOT_COMPLETED) ;
ProxyConversation.setConversationState(conversationId, state) ;
try
{
final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;
final CoordinationContextType context = BAInteropUtil.createAtomicOutcomeCoordinationContext(getSourceCoordinatorURI()) ;
getParticipantStub().cannotComplete(serviceURI, context) ;
state.waitForCompletion(getTestTimeout()) ;
final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;
terminator.cancel() ;
}
finally
{
ProxyConversation.clearConversationState(conversationId) ;
}
assertTrue("Conversation did not complete successfully", state.isSuccessful()) ;
} | [
"public void testBA1_9()\n throws Exception\n {\n final String conversationId = getConversationId() ;\n final BAInteropParticipantCompletedState state = new BAInteropParticipantCompletedState(BusinessActivityConstants.WSBA_ACTION_FAILED) ;\n ProxyConversation.setConversationState(conversationId, state) ;\n try\n {\n final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;\n final CoordinationContextType context = BAInteropUtil.createAtomicOutcomeCoordinationContext(getSourceCoordinatorURI()) ;\n getParticipantStub().compensationFail(serviceURI, context) ;\n\n assertTrue(\"Participant did not issue Completed\", state.waitForParticipantCompleted(getTestTimeout())) ;\n \n final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;\n terminator.cancel() ;\n \n state.waitForCompletion(getTestTimeout()) ;\n }\n finally\n {\n ProxyConversation.clearConversationState(conversationId) ;\n }\n assertTrue(\"Conversation did not complete successfully\", state.isSuccessful()) ;\n }",
"public void testBA1_3()\n throws Exception\n {\n final String conversationId = getConversationId() ;\n final InteropWaitState state = new InteropWaitState(BusinessActivityConstants.WSBA_ACTION_FAILED) ;\n ProxyConversation.setConversationState(conversationId, state) ;\n try\n {\n final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;\n final CoordinationContextType context = BAInteropUtil.createAtomicOutcomeCoordinationContext(getSourceCoordinatorURI()) ;\n getParticipantStub().fail(serviceURI, context) ;\n \n state.waitForCompletion(getTestTimeout()) ;\n \n final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;\n terminator.cancel() ;\n }\n finally\n {\n ProxyConversation.clearConversationState(conversationId) ;\n }\n assertTrue(\"Conversation did not complete successfully\", state.isSuccessful()) ;\n }",
"@Test(priority = 1, dependsOnMethods = { \"testAttachFileWithMandatoryParameters\" },\n description = \"podio {incompleteTask} integration test with negative case.\")\n public void testIncompleteTaskWithNegativeCase() throws IOException, JSONException, InterruptedException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:incompleteTask\");\n \n Thread.sleep(timeOut);\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_incompleteTask_negative.json\");\n \n String apiEndPoint = apiUrl + \"/task/Invalid/incomplete\";\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n }",
"public void testIllegalJumpInStatus() {\n DomainConfiguration dc = TestInfo.getDefaultConfig(TestInfo.getDefaultDomain());\n Job job = Job.createJob(TestInfo.HARVESTID, highChan, dc, 0);\n job.setStatus(JobStatus.DONE);\n try {\n job.setStatus(JobStatus.NEW);\n fail(\"Changed job from DONE to NEW\");\n } catch (ArgumentNotValid e) {\n //expected\n }\n }",
"public void testBA1_10()\n throws Exception\n {\n final String conversationId = getConversationId() ;\n final BAInteropDroppedParticipantCompletedState state = new BAInteropDroppedParticipantCompletedState(BusinessActivityConstants.WSBA_ACTION_COMPENSATED) ;\n ProxyConversation.setConversationState(conversationId, state) ;\n try\n {\n final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;\n final CoordinationContextType context = BAInteropUtil.createAtomicOutcomeCoordinationContext(getSourceCoordinatorURI()) ;\n getParticipantStub().participantCancelCompletedRace(serviceURI, context) ;\n \n assertTrue(\"Participant did not issue Completed\", state.waitForParticipantCompleted(getTestTimeout())) ;\n \n final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;\n terminator.cancel() ;\n \n state.waitForCompletion(getTestTimeout()) ;\n }\n finally\n {\n ProxyConversation.clearConversationState(conversationId) ;\n }\n assertTrue(\"Conversation did not complete successfully\", state.isSuccessful()) ;\n }",
"@Test(dependsOnMethods = { \"testUpdateTaskWithNegativeCase\" },\n description = \"podio {completeTask} integration test with mandatory parameters.\")\n public void testCompleteTaskWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:completeTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_completeTask_mandatory.json\");\n \n String apiEndPoint = apiUrl + \"/task/\" + connectorProperties.getProperty(\"taskId\");\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 200);\n Assert.assertEquals(apiRestResponse.getBody().getString(\"status\"), \"completed\");\n }",
"@Test \n\tpublic void testCancelPersonUnavailabilityCommandsAreSent() throws OpsBoardError{\n\t}",
"@Test(priority = 1, dependsOnMethods = { \"testAttachFileWithNegativeCase\" },\n description = \"podio {incompleteTask} integration test with mandatory parameters.\")\n public void testIncompleteTaskWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:incompleteTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_incompleteTask_mandatory.json\");\n \n String apiEndPoint = apiUrl + \"/task/\" + connectorProperties.getProperty(\"taskId\");\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 204);\n Assert.assertEquals(apiRestResponse.getBody().getString(\"status\"), \"active\");\n }",
"public void testBadResubmission()\n {\n // Test resubmitting the wrong one in a sequential task\n ArrayList<ITask> al = new ArrayList<ITask>(jobCount);\n for (int i = 0; i < jobCount; i++)\n {\n al.add(new BasicTask(i));\n }\n\n BadResubmitListener listener = new BadResubmitListener(al.size(), 0);\n jobManager.submitJobs(al, true, listener);\n\n listener.sleepUntilDone();\n assertTrue(listener.isSuccess());\n\n // Test resubmitting a completely bogus task\n listener = new BadResubmitListener(al.size(), 1);\n jobManager.submitJobs(al, true, listener);\n\n listener.sleepUntilDone();\n assertTrue(listener.isSuccess());\n\n // Test resubmitting a task on a bogus batch\n listener = new BadResubmitListener(al.size(), 2);\n jobManager.submitJobs(al, true, listener);\n\n listener.sleepUntilDone();\n assertTrue(listener.isSuccess());\n }",
"public void testDefinitionOfDoneNotSet() {\n parallelTasks.start().waitForTasks();\n verifyAllTasksAndCallbacksExecuted();\n }",
"public void beforeComplete1641( )\n {\n }",
"private CSFailMission() {}",
"public void failed() {\n updateState( Status.IN_PROGRESS, \"Attempted to fail job not in progress\", Status.FAILED );\n }",
"SendFailure() {\n super(ACLMessage.FAILURE);\n }",
"public void beforeComplete0Q28( )\n {\n }",
"private SCCompleteMissionEndRet() {}",
"@Test\n public void testCompleteMissing() {\n Event evt1 = new FireOutbreakEvent(0, \"Lorem\", \"Ipsum\", 0, 0, 50);\n object.getEvents().add(evt1);\n object.complete(EventTypes.ASTEROID_IMPACT, new ArrayList<EventParameter>(), mockedGame);\n assertEquals(1, object.getEvents().size());\n }",
"public void fail() \n {\n if (this.retries == 0) \n {\n this.state = CcdpTaskState.FAILED;\n } \n else \n {\n this.retries--;\n this.state = CcdpTaskState.PENDING;\n this.submitted = false;\n this.hostId = null;\n }\n }",
"@Override\n public boolean waitToProceed() {\n return false;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the number of PropertyValue entries in the list. | public int size() {
return propertyValueList.size();
} | [
"public int getPropertyCount()\n {\n return _propertyList.size();\n }",
"public int getMetricPropertyCount()\n {\n return _metricPropertyList.size();\n }",
"public int getPropertyCount() {\n return (properties == null)? 0 : properties.size();\n }",
"int getPropertiesCount();",
"public int getNumProperties()\n {\n\treturn propertyDictionary.size();\n }",
"public int valueCount() {\n return (int) Stream.of(interner).filter(Objects::nonNull).count();\n }",
"public int getSize() {\n return this.listOfProperties.size();\n }",
"@JsonIgnore\n public Long countValues() {\n return values.stream().filter(v -> v.name != null && StringUtils.isNotBlank(v.name.value)).count();\n }",
"public int CountItems(){\n if (startOfList == null)\n {\n return 0;\n }\n\n\t\tint i = 1;\n\t\tMyData j = startOfList;\n\t\twhile (j.Next() != null)\n {\n i += 1;\n j = j.Next();\n }\n\n\t\treturn i;\n }",
"public int sizeOfPointPropertyArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(POINTPROPERTY$4);\n }\n }",
"int sizeOfConfigPropertySettingArray();",
"public int valueCount(K key);",
"public int getCount() {\n\t\tint count = 0;\n\t\tSet<Entry<Object, Boolean>> entrySet = this.entrySet();\n\t\tIterator<Map.Entry<Object, Boolean>> iterator = entrySet.iterator();\n\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry<Object, Boolean> mapEntry = iterator.next();\n\n\t\t\tif (mapEntry.getValue()) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}",
"public int getLength() {\n Element[] propertyElems =\n XMLUtils.selectDsNodes(getFirstChild(), Constants._TAG_SIGNATUREPROPERTY);\n\n return propertyElems.length;\n }",
"public int getNumberOfElementValuePairs() {\n\t\treturn numberOfElementValuePairs & 0xffff;\n\t}",
"int getMemberListCount();",
"@VTID(22)\r\n int getListCount();",
"public static int getLength ()\n {\n return List.size();\n }",
"public int ListLength(){\n int j = 0;\n // Get index of the first element with value\n int i = StaticLinkList[MAXSIZE-1].cur;\n while (i!=0)\n {\n i = StaticLinkList[i].cur;\n j++;\n }\n return j;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of Gen_SendKeys(String data, String value) ===========password / 4 > Method to perform send keys operation for Only password | public static void Gen_SendPassword(String data, String value)
{
try
{
TestRunner.App_Log.debug("Password entered.");
TestRunner.driver.findElement(By.xpath(data)).click();
TestRunner.driver.findElement(By.xpath(data)).clear();
TestRunner.driver.findElement(By.xpath(data)).sendKeys(value);
//TestRunner.test.log(Status.PASS, "Password entered successfully. : "+data);
}catch (Exception e){
//TestRunner.test.log(Status.FAIL, "Failed");
TestRunner.App_Log.debug("Password entered operation failed." +" Reason : "+ e.getMessage());
Assert.fail("Password entered operation failed."+ " Reason : "+ e.getMessage());
}// End of Try_Catch statement
} | [
"public void sendKeys(int... keys) {\n final int count = keys.length;\n final Instrumentation instrumentation = getInstrumentation();\n\n for (int i = 0; i < count; i++) {\n try {\n instrumentation.sendKeyDownUpSync(keys[i]);\n } catch (SecurityException e) {\n // Ignore security exceptions that are now thrown\n // when trying to send to another app, to retain\n // compatibility with existing tests.\n }\n }\n\n instrumentation.waitForIdleSync();\n }",
"public void Accesscode_sendkeys(String Accesscode) throws InterruptedException\r\n\t{\r\n\t\ttry {\r\n\t\t//System.out.println(Accesscode);\r\n\t\tExplicitWait(OfferCode_textfeild);\r\n\t\tif(OfferCode_textfeild.isDisplayed())\r\n\t\t{\r\n\t\t\t//System.out.println(\"entring into accesscode\");\r\n\t\t\t//OfferCode_button.click();\r\n\t\t\tJavascriptexecutor(OfferCode_textfeild);\r\n\t\t\tOfferCode_textfeild.sendKeys(Accesscode);\r\n\t\t\tJavascriptexecutor(Checkavailability);\r\n\t\t\tThread.sleep(4000);\r\n\r\n\t\t\t//\tOfferCode_textfeild.sendKeys(Keys.ENTER);\r\n\t\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\t\t//System.out.println(\"Offercode \"+ Accesscode+\" placed successfully\");\r\n\t\t\ttest.log(Status.INFO, \"Offercode \"+ Accesscode+\" placed successfully\");\r\n\r\n\t\t\tThread.sleep(2000);\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"Accesscode text field is not displayed\");\r\n\t\t\tlogger.error(\"Accesscode text field is not displayed\");\r\n\t\t\ttest.log(Status.FAIL, \"Accesscode text field is not displayed\");\r\n\r\n\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"public void typePassword() {\r\n\t\tpasswordFieldElement.sendKeys(PropertyLoader.loadProperty(\"user.password\"));\r\n\t}",
"@Test(priority=3)\r\n\tpublic void EditPassword() {\r\n\t\thomePagePOM.clickAccIcon();\r\n\t\thomePagePOM.clickRegitration();\r\n\t\thomePagePOM.clickLogin1();\r\n\t\thomePagePOM.sendEmail(\"neha123@gmail.com\");\r\n\t\thomePagePOM.clickmyPasswd(\"schari123\");\r\n\t\thomePagePOM.clickLogin2();\r\n\t\thomePagePOM.clickchngPassword();\r\n\t\thomePagePOM.sendnewPasswd(\"Neha123\");\r\n\t\thomePagePOM.sendcnfPasswd(\"Neha123\");\r\n\t\thomePagePOM.clicksubmitChng();\r\n\t\tscreenShot.captureScreenShot(\"First\");\r\n\t}",
"void Send_Key(int Address, int Key_Id) throws InterruptedException, IOException\r\n\t{\r\n\t\tint Para = (0x1 << (Key_Id - 1));\r\n\r\n\t \tchar[] tosend = { 0x80, 0x04, 0x00, 0x00, (char)Address, 0x07, 0x41, (char)Para};\r\n\t\tcrc16_Manip(tosend,8);\r\n\t\t\r\n\t\tSendTelegram(tosend, 8);\r\n\t}",
"public void sendKeys(CharSequence... keysToSend) {\n getElement().sendKeys(keysToSend);\n }",
"public void generateNewPassword() {\n\n }",
"private void pack_key(String password) {\r\n \r\n key[0] = 0x20202020; // Pre-fill key with empty spaces\r\n key[1] = 0x20202020;\r\n key[2] = 0x20202020;\r\n key[3] = 0x20202020;\r\n \r\n /* INSERT YOUR CODE HERE */\r\n for (int i = 0; i < password.length(); i++) {\r\n char c = password.charAt(i);\r\n int index = (i % 4);\r\n key[index] = key[index] << 8;\r\n key[index] = key[index] | (c & 0x00FF);\r\n }\r\n\r\n }",
"boolean sendNewPassword(String mail);",
"public void sendKeys(String keysSequence) {\n final String[] keys = keysSequence.split(\" \");\n final int count = keys.length;\n\n final Instrumentation instrumentation = getInstrumentation();\n\n for (int i = 0; i < count; i++) {\n String key = keys[i];\n int repeater = key.indexOf('*');\n\n int keyCount;\n try {\n keyCount = repeater == -1 ? 1 : Integer.parseInt(key.substring(0, repeater));\n } catch (NumberFormatException e) {\n Log.w(\"ActivityTestCase\", \"Invalid repeat count: \" + key);\n continue;\n }\n\n if (repeater != -1) {\n key = key.substring(repeater + 1);\n }\n\n for (int j = 0; j < keyCount; j++) {\n try {\n final Field keyCodeField = KeyEvent.class.getField(\"KEYCODE_\" + key);\n final int keyCode = keyCodeField.getInt(null);\n try {\n instrumentation.sendKeyDownUpSync(keyCode);\n } catch (SecurityException e) {\n // Ignore security exceptions that are now thrown\n // when trying to send to another app, to retain\n // compatibility with existing tests.\n }\n } catch (NoSuchFieldException e) {\n Log.w(\"ActivityTestCase\", \"Unknown keycode: KEYCODE_\" + key);\n break;\n } catch (IllegalAccessException e) {\n Log.w(\"ActivityTestCase\", \"Unknown keycode: KEYCODE_\" + key);\n break;\n }\n }\n }\n\n instrumentation.waitForIdleSync();\n }",
"public void enterPassword() {\n\t\ttry {\n\t\t\tString password = excel.getCellData(\"Credentials\", \"Password\", 2);\n\t\t\tsendKeysWait(Elements.passwordTextBox, password);\n\t\t\tlog.info(\"Password \" + password + \" entered\");\n\t\t\textTestObj.createNode(\"Password \" + password + \" entered\").pass(\"PASSED\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Could not enter password\");\n\t\t\textTestObj.createNode(\"Enter password\")\n\t\t\t\t\t.fail(\"Method Name : \" + Thread.currentThread().getStackTrace()[1].getMethodName() + \"()\").error(e);\n\t\t\tlog.error(e.getMessage());\n\n\t\t\tstopTest();\n\t\t}\n\n\t}",
"public void clickchangepassword() {\r\n\t\t\tthis.chgpwd.click();\r\n\t\t}",
"public void sendKeysAirportInput(String keysToSend) {\n\t\tcarsAirportInput.sendKeys(keysToSend);\n\t}",
"public String askPassword();",
"@Test\n public void testSendKeysToElement() {\n LOG.entering(CLASS, \"testSendKeysToElement\");\n try{\n setUrl(URL);\n String elementId =new WebElement().fromJson(POST(\n getUri(\"findElement\", sessionId)\n , Json.createObjectBuilder().add(\"using\", Marionette.SearchMethod.CSS_SELECTOR.name()).add(\"value\", \"input[name='username']\").build().toString()\n ).body()).getId();\n JsonObject result = MarionetteUtil.parseJsonObject(POST(\n getUri(\"sendKeysToElement\", sessionId, elementId)\n , MarionetteUtil.createJson(\"keys\", \"userName\")\n ).body());\n Assertions.assertTrue(null != result);\n LOG.exiting(CLASS, \"testSendKeysToElement\", result);\n } catch(Exception e){\n LOG.throwing(CLASS, \"testSendKeysToElement\", e);\n throw e;\n }\n }",
"public void sendRepeatedKeys(int... keys) {\n final int count = keys.length;\n if ((count & 0x1) == 0x1) {\n throw new IllegalArgumentException(\"The size of the keys array must \"\n + \"be a multiple of 2\");\n }\n\n final Instrumentation instrumentation = getInstrumentation();\n\n for (int i = 0; i < count; i += 2) {\n final int keyCount = keys[i];\n final int keyCode = keys[i + 1];\n for (int j = 0; j < keyCount; j++) {\n try {\n instrumentation.sendKeyDownUpSync(keyCode);\n } catch (SecurityException e) {\n // Ignore security exceptions that are now thrown\n // when trying to send to another app, to retain\n // compatibility with existing tests.\n }\n }\n }\n\n instrumentation.waitForIdleSync();\n }",
"private static void sendScanCodeEvent (int keyScanCode, int modifierScanCode) {\n INPUT input = new INPUT();\n // Common properties\n input.input.setType(\"ki\");\n input.type = new WinDef.DWORD(WinUser.INPUT.INPUT_KEYBOARD);\n input.input.ki.time = new WinDef.DWORD(0);\n input.input.ki.wVk = new WinDef.WORD(0);\n\n // Not really needed. Can be used to identify generated keyboard inputs\n input.input.ki.dwExtraInfo = new BaseTSD.ULONG_PTR(0xBAADC0FE);\n\n // \"keyDown\": Modifier\n input.input.ki.wScan = new WinDef.WORD(modifierScanCode);\n input.input.ki.dwFlags = new WinDef.DWORD(KEYEVENTF_SCANCODE); // default key down\n User32.INSTANCE.SendInput(new WinDef.DWORD(1), (WinUser.INPUT[]) input.toArray(1), input.size());\n\n // \"keyDown\": Key\n input.input.ki.wScan = new WinDef.WORD(keyScanCode);\n input.input.ki.dwFlags = new WinDef.DWORD(KEYEVENTF_SCANCODE); // default key down\n User32.INSTANCE.SendInput(new WinDef.DWORD(1), (WinUser.INPUT[]) input.toArray(1), input.size());\n\n // \"keyUp\" : Key\n input.input.ki.dwFlags = new WinDef.DWORD(KEYEVENTF_SCANCODE | KEYEVENTF_KEYUP);\n User32.INSTANCE.SendInput(new WinDef.DWORD(1), (WinUser.INPUT[]) input.toArray(1), input.size());\n\n // \"keyUp\": Modifier\n input.input.ki.wScan = new WinDef.WORD(modifierScanCode);\n input.input.ki.dwFlags = new WinDef.DWORD(KEYEVENTF_SCANCODE | KEYEVENTF_KEYUP);\n User32.INSTANCE.SendInput(new WinDef.DWORD(1), (WinUser.INPUT[]) input.toArray(1), input.size());\n }",
"public void submit() {\r\n password.sendKeys(Keys.ENTER);\r\n }",
"@When (\"^Enter email and password$\")\t\t\t\t\t\n public void Enter_email_and_password() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n driver.findElement(By.id(\"identifierId\")).sendKeys(\"halamohamed86757556\");\n driver.findElement(By.xpath(\"//*[@id='identifierNext']/content/span\")).click();\n driver.findElement(By.name(\"password\")).sendKeys(\"halamohamed12345\");\t\t\t\t\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves array of integers from decoding board. The conversion is given in the Pegs enum | public int[] getCodeMakerPegs() {
Color[] colors = decodingBoard.getCMakeRowColor();
return changeColorToInt(colors);
} | [
"private int[] getIntPebbleArray() {\r\n removeNulls();\r\n Object[] object = this.pebbles.toArray();\r\n int[] ints = new int[object.length]; //int array to hold value of each pebble\r\n \r\n for (int i = 0; i < object.length; i++) {\r\n Pebble pebble = (Pebble) object[i];\r\n ints[i] = pebble.getValue();\r\n }\r\n \r\n return ints;\r\n }",
"public int[] codePointsToInts () {\n int[] cpa = new int[cpcount];\n String text = toString();\n for (int i = cpcount - 1; i >= 0; --i) cpa[i] = text.codePointAt(cpcindices[i]);\n return cpa;\n }",
"private static int[] convertToIntArray() {\n int[] barcodeInt = new int[BARCODE.length() + 1];\n for (int i = 0; i < BARCODE.length(); i++) {\n barcodeInt[i] = Integer.parseInt(BARCODE.charAt(i) + \"\");\n }\n return barcodeInt;\n }",
"private int[] extractIntArray(final ToIntFunction<PileupElement> map) {\n return getElementStream().mapToInt(map).toArray();\n }",
"private static int [] yy_unpack() {\n int [] trans = new int[5476];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }",
"public int[][] getPipPositions(){\n\t\tint[][] representation = new int[28][];\n\t\t\n\t\t//Set all arrays to 15 -1s (15 is max number of pips on a point)\n\t\t// -1 because there is no pip with this id\n\t\tfor(int i = 0; i <= 27; i ++) {\n\t\t\trepresentation[i] = new int[] {\n\t\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1\n\t\t\t};\n\t\t}\n\t\t\n\t\t//Go through each stack, and fill the appropriate element with the pip id \n\t\tfor(int i = 0; i <= 27; i++) {\n\t\t\tStack<GameLogicPip> stack = gameBoard.getPoint(i);\n\t\t\tStack<GameLogicPip> tmp = new Stack<GameLogicPip>();\n\t\t\t\n\t\t\tint size = stack.size();\n\t\t\tfor(int j = size; j > 0; j--) {\n\t\t\t\trepresentation[i][stack.size()-1] = stack.peek().pipId;\n\t\t\t\t//save pip objects as they are pushed off\n\t\t\t\t\ttmp.push(stack.pop());\n\t\t\t}\n\t\t\t\n\t\t\t//Push the elements back on to the stack\n\t\t\tfor(int j = size; j > 0; j--) {\n\t\t\t\tstack.push(tmp.pop());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn representation;\n\t}",
"private static int [] yy_unpack() {\n int [] trans = new int[4641];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }",
"int[] toIntArray() {\n int[] result = new int[intLen];\n for(int i=0; i < intLen; i++)\n result[i] = value[offset+i];\n return result;\n }",
"public static int[] turnEncodedMessageIntoArrayOfChars(String encodedMessage) {\n String[] array = encodedMessage.split(\";\");\n int[] arrayOfIntegers = new int[array.length];\n\n for (int i = 0; i < array.length; i++) {\n arrayOfIntegers[i] = Integer.parseInt(array[i]);\n }\n\n return arrayOfIntegers;\n }",
"private int[] byteArrayToIntArray(byte[] buf) {\r\n int[] array = new int[count];\r\n int zeroHiByteMask = 0x00FF;\r\n for (int i = 0; i < count; i++) {\r\n array[i] = (int) (buf[i] & zeroHiByteMask);\r\n }\r\n return array;\r\n\r\n }",
"public int[] toIntArray() {\r\n int[] tmp = new int[this.getLen()];\r\n for (int i = 0; i<tmp.length;i++){\r\n tmp[i] = data[i] & 0xFF;\r\n }\r\n return tmp;\r\n }",
"private static int [] yy_unpack() {\n int [] trans = new int[15288];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }",
"public int[] byte2intArray(byte[] bytes){\n ByteBuffer buf = ByteBuffer.wrap(bytes);\n\n int[] result = new int[bytes.length / Integer.BYTES];\n for (int i = 0; i < result.length; i++) {\n result[i] = buf.getInt();\n }\n\n return result;\n }",
"private static int[] convertLineToArray(String line) {\n\t\tString[] tokens = line.split(\" \");\n\t\tint[] tiles = new int[tokens.length];\n\n\t\tfor (int i = 0; i < tokens.length; ++i) {\n\t\t\ttiles[i] = Integer.parseInt(tokens[i]);\n\t\t}\n\t\t\n\t\treturn tiles;\n\t}",
"private static int[] convertToPixels(byte[] bytes) {\n int[] pixels = new int[bytes.length];\n\n for (int i = 0; i < bytes.length; i++) {\n pixels[i] = bytes[i] & 0xFF;\n }\n\n return pixels;\n }",
"public static int[] createBoard(Gamepiece[][] gBoard){\n\t\tint[] ret = new int[100];\n\t\tfor(int x = 0; x < GRID; x++){\n\t\t\tfor(int y = 0; y < GRID; y++){\n\t\t\t\tret[y*GRID+x] = gBoard[y][x].val();\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}",
"@Override\r\n public Integer[] getRedPaletteLookupTableDescriptor() throws DIException {\n DValue dataElement = dicomDataSet.getValueByGroupElementString(\"0028,1101\");\r\n if (dataElement == null) {\r\n return null;\r\n }\r\n Integer[] ans = getMultipleIntegerAnswer(dataElement);\r\n if (ans.length != 3) {\r\n throw new DIException(\"Length of int array is \" + ans.length + \" instead of 3\");\r\n }\r\n return ans;\r\n }",
"@Override\r\n public Integer[] getBluePaletteLookupTableDescriptor() throws DIException {\n DValue dataElement = dicomDataSet.getValueByGroupElementString(\"0028,1103\");\r\n if (dataElement == null) {\r\n return null;\r\n }\r\n Integer[] ans = getMultipleIntegerAnswer(dataElement);\r\n if (ans.length != 3) {\r\n throw new DIException(\"Length of int array is \" + ans.length + \" instead of 3\");\r\n }\r\n return ans;\r\n }",
"private static int [] yy_unpack(String packed) {\n int [] trans = new int[13978];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 4356) {\n int count = packed.charAt(i++);\n int value = packed.charAt(i++);\n value--;\n do trans[j++] = value; while (--count > 0);\n }\n return trans;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a human readable string based on the time elapsed between startMillis and endMillis. | public static final String getReadableMillisShort(long startMillis, long endMillis) {
Duration d = Duration.between(Instant.ofEpochMilli(startMillis), Instant.ofEpochMilli(endMillis));
String days = d.toDays() > 9 ? String.valueOf(d.toDays()) : "0" + d.toDays();
String hours = d.toHours() - d.toDays() * 24 > 9 ? String.valueOf(d.toHours() - d.toDays() * 24) : "0" + (d.toHours() - d.toDays() * 24);
String minutes = d.toMinutes() - d.toHours() * 60 > 9 ? String.valueOf(d.toMinutes() - d.toHours() * 60) : "0" + (d.toMinutes() - d.toHours() * 60);
String seconds = d.getSeconds() - d.toMinutes() * 60 < 0 ? "00" : d.getSeconds() - d.toMinutes() * 60 > 9 ? String.valueOf(d.getSeconds() - d.toMinutes() * 60) : "0" + (d.getSeconds() - d.toMinutes() * 60);
return "" + days + ":" + hours + ":" + minutes + ":" + seconds + "";
} | [
"public static final String getReadableMillis(long startMillis, long endMillis) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tdouble elapsedSeconds = TimeUtil.getSecondsBetween(startMillis, endMillis);\r\n\t\tint elapsedSecs = TimeUtil.getSecondsBetween(startMillis, endMillis) % 60;\r\n\t\tint elapsedMinutes = TimeUtil.getMinutesBetween(startMillis, endMillis);\r\n\t\tint elapsedMins = TimeUtil.getMinutesBetween(startMillis, endMillis) % 60;\r\n\t\tint elapsedHours = TimeUtil.getHoursBetween(startMillis, endMillis) % 60;\r\n\t\tint elapsedDays = TimeUtil.getDaysBetween(startMillis, endMillis);\r\n\t\tif (elapsedDays > 0) {\r\n\t\t\tboolean mins = elapsedHours > 0;\r\n\t\t\tsb.append(elapsedDays);\r\n\t\t\tsb.append(\" day\" + (elapsedDays > 1 ? \"s\" : \"\") + (mins ? \", \" : \".\"));\r\n\t\t\tif (mins) {\r\n\t\t\t\tboolean secs = elapsedMins > 0;\r\n\t\t\t\tif (!secs) {\r\n\t\t\t\t\tsb.append(\"and \");\r\n\t\t\t\t}\r\n\t\t\t\tsb.append(elapsedHours);\r\n\t\t\t\tsb.append(\" hour\" + (elapsedHours > 1 ? \"s\" : \"\") + (secs ? \", \" : \".\"));\r\n\t\t\t\tif (secs) {\r\n\t\t\t\t\tboolean millis = elapsedSecs > 0;\r\n\t\t\t\t\tif (!millis) {\r\n\t\t\t\t\t\tsb.append(\"and \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsb.append(elapsedMins);\r\n\t\t\t\t\tsb.append(\" minute\" + (elapsedMins > 1 ? \"s\" : \"\") + (millis ? \", \" : \".\"));\r\n\t\t\t\t\tif (millis) {\r\n\t\t\t\t\t\tsb.append(\"and \");\r\n\t\t\t\t\t\tsb.append(elapsedSecs);\r\n\t\t\t\t\t\tsb.append(\" second\" + (elapsedSecs > 1 ? \"s\" : \"\") + \".\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (elapsedHours > 0) {\r\n\t\t\tboolean mins = elapsedMins > 0;\r\n\t\t\tsb.append(elapsedHours);\r\n\t\t\tsb.append(\" hour\" + (elapsedHours > 1 ? \"s\" : \"\") + (mins ? \", \" : \".\"));\r\n\t\t\tif (mins) {\r\n\t\t\t\tboolean secs = elapsedSecs > 0;\r\n\t\t\t\tif (!secs) {\r\n\t\t\t\t\tsb.append(\"and \");\r\n\t\t\t\t}\r\n\t\t\t\tsb.append(elapsedMins);\r\n\t\t\t\tsb.append(\" minute\" + (elapsedMins > 1 ? \"s\" : \"\") + (secs ? \", \" : \".\"));\r\n\t\t\t\tif (secs) {\r\n\t\t\t\t\tsb.append(\"and \");\r\n\t\t\t\t\tsb.append(elapsedSecs);\r\n\t\t\t\t\tsb.append(\" second\" + (elapsedSecs > 1 ? \"s\" : \"\") + \".\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (elapsedMinutes > 0) {\r\n\t\t\tboolean secs = elapsedSecs > 0;\r\n\t\t\tsb.append(elapsedMinutes);\r\n\t\t\tsb.append(\" minute\" + (elapsedMinutes > 1 ? \"s\" : \"\") + (secs ? \" \" : \".\"));\r\n\t\t\tif (secs) {\r\n\t\t\t\tsb.append(\"and \");\r\n\t\t\t\tsb.append(elapsedSecs);\r\n\t\t\t\tsb.append(\" second\" + (elapsedSecs > 1 ? \"s\" : \"\") + \".\");\r\n\t\t\t}\r\n\t\t} else if (elapsedSeconds > 0) {\r\n\t\t\tsb.append((int) elapsedSeconds);\r\n\t\t\tsb.append(\" second\" + (elapsedSeconds > 1 ? \"s\" : \"\") + \".\");\r\n\t\t} else {\r\n\t\t\tsb.append(\"Now.\");\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"String getRelativeElapsedString(long elapsedTimeMillis);",
"public void GenerateStartTimeStringGivenMilliseconds(){\n\n int hours = (int) startingTimeInMilliseconds / 3600000;\n int minutes = (int) startingTimeInMilliseconds % 3600000 / 60000;\n int seconds = (int) startingTimeInMilliseconds % 60000 / 1000;\n\n // Display hours, minutes, and seconds to screen\n mTimerLength = \"\";\n\n if(hours > 1){\n mTimerLength += hours + \" hours, \";\n } else if (hours == 1){\n mTimerLength += hours + \" hour, \";\n }\n\n if(minutes > 1){\n mTimerLength += minutes + \" minutes, \";\n } else if (minutes == 1){\n mTimerLength += minutes + \" minute, \";\n }\n\n if(seconds > 1){\n mTimerLength += seconds + \" seconds\";\n } else if (seconds == 1){\n mTimerLength += seconds + \" second\";\n }\n }",
"public static String format( long elapsedMillis ) {\n String s = \"\";\n int hours = (int) ( elapsedMillis / ( 1000 * 60 * 60 ) );\n int minutes = (int) ( ( elapsedMillis % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) );\n int seconds = (int) ( ( ( elapsedMillis % ( 1000 * 60 * 60 ) ) % ( 1000 * 60 ) ) / 1000 );\n if ( hours > 0 ) {\n // hours:minutes:seconds\n Object[] args = { ONE_DIGIT_TIME_FORMAT.format( hours ), TWO_DIGIT_TIME_FORMAT.format( minutes ), TWO_DIGIT_TIME_FORMAT.format( seconds ) };\n s = MessageFormat.format( \"{0}:{1}:{2}\", args );\n }\n else {\n // minutes:seconds\n Object[] args = { ONE_DIGIT_TIME_FORMAT.format( minutes ), TWO_DIGIT_TIME_FORMAT.format( seconds ) };\n s = MessageFormat.format( \"{0}:{1}\", args );\n }\n return s;\n }",
"static String formatElapsedTime(long elapsedTimeMs) {\n long seconds = TimeUnit.MILLISECONDS.toSeconds(elapsedTimeMs) % 60;\n long minutes = TimeUnit.MILLISECONDS.toMinutes(elapsedTimeMs) % 60;\n long hours = TimeUnit.MILLISECONDS.toHours(elapsedTimeMs);\n StringBuilder time = new StringBuilder();\n if (hours > 0) {\n time.append(hours);\n time.append(\"h \");\n }\n if (minutes > 0) {\n time.append(minutes);\n time.append(\"m \");\n }\n time.append(seconds);\n time.append(\"s\");\n\n return time.toString();\n }",
"public String getElapsedTime() {\n\n long elapsed;\n int mins;\n int secs;\n int millis;\n\n if (running) {\n elapsed = System.currentTimeMillis() - startTime;\n } else {\n elapsed = stopTime - startTime;\n }\n\n mins = (int) (elapsed / 60000);\n secs = (int) (elapsed - mins * 60000) / 1000;\n millis = (int) (elapsed - mins * 60000 - secs * 1000);\n\n //Keeps 3 digits when a second rolls over. Perhaps find a better way of doing this\n return (String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs) + \":\"\n + String.format(\"%03d\", millis));\n }",
"public static long getMillisBetween(long startMillis, long endMillis) {\r\n\t\treturn endMillis - startMillis;\r\n\t}",
"long getElapsedMillis();",
"@Override\n public String toString() {\n if (timeEnd == null) {\n stop();\n }\n return task + \" in \" + (timeEnd - timeStart) + \"ms\";\n }",
"public String getElapsed() {\n String timeFormatted = \"\";\n timeFormatted = formatTime(getElapsedMilliseconds()); \n return timeFormatted;\n }",
"private static String timeElapsed(long timeinms){\n double s=(double)(System.currentTimeMillis()-timeinms)/1000;\n \n int h=(int)Math.floor(s/((double)3600));\n \n s-=(h*3600);\n \n int m=(int)Math.floor(s/((double)60));\n \n s-=(m*60);\n \n return \"\"+h+\"hr \"+m+\"m \"+s+\"sec\";\n }",
"public String fnTimeDiffference(long startTime, long endTime) {\r\n\r\n\t\t//Finding the difference in milliseconds\r\n\t\tlong delta = endTime - startTime;\r\n\r\n\t\t//Finding number of days\r\n\t\tint days = (int) delta / (24 * 3600 * 1000);\r\n\r\n\t\t//Finding the remainder\r\n\t\tdelta = (int) delta % (24 * 3600 * 1000);\r\n\r\n\t\t//Finding number of hrs\r\n\t\tint hrs = (int) delta / (3600 * 1000);\r\n\r\n\t\t//Finding the remainder\r\n\t\tdelta = (int) delta % (3600 * 1000);\r\n\r\n\t\t//Finding number of minutes\r\n\t\tint min = (int) delta / (60 * 1000);\r\n\r\n\t\t//Finding the remainder\r\n\t\tdelta = (int) delta % (60 * 1000);\r\n\r\n\t\t//Finding number of seconds\r\n\t\tint sec = (int) delta / 1000;\r\n\r\n\t\t//Concatenting to get time difference in the form day:hr:min:sec \r\n\t\t//String strTimeDifference = days + \":\" + hrs + \":\" + min + \":\" + sec;\r\n\t\tString strTimeDifference = days + \"d \" + hrs + \"h \" + min + \"m \" + sec + \"s\";\r\n\t\treturn strTimeDifference;\r\n\t}",
"public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }",
"private static void printElapsedTime(final long pStarted) {\r\n\t\tfinal StringBuilder result = new StringBuilder();\r\n\t\tresult.append(EXECUTION_TIME_MESSAGE);\r\n\t\tresult.append((System.currentTimeMillis() - pStarted) / 1000);\r\n\t\tlog.info(result.toString());\r\n\t}",
"private void calculate(){\n this.endTime = System.nanoTime();\n this.milliseconds = (endTime - startTime) / 1000000;\n }",
"public static String getPrettyEllapsedTimeString(double milliseconds) {\n lazyload();\n return getPrettyEllapsedTimeString((long) milliseconds);\n }",
"@Override\n\tpublic String genResult() {\n\t\tCollections.sort(meanTimes, new Comparator<Time>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Time a, Time b) {\n\t\t\t\treturn a.toString().compareTo(b.toString());\n\t\t\t}\n\t\t});\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(realLaps()).append(\"; \");\n\t\tsb.append(totalTime()).append(\"; \");\n\t\tLinkedList<Time> times = new LinkedList<>();\n\t\tif(!startTimes.isEmpty()) times.add(startTimes.getFirst());\n\t\tfor(Time t: meanTimes) times.addLast(t);\n\t\tif(!finishTimes.isEmpty()) times.addLast(finishTimes.getFirst());\n\t\tint i = 0;\n\t\tif(startTimes.isEmpty()) {\n\t\t\ti++;\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tfor (; i < maxLaps; i++) {\n\t\t\tif (times.size() > 1) {\n\t\t\t\tTime t = times.removeFirst();\n\t\t\t\tsb.append(Time.diff(times.getFirst(), t).toString());\n\t\t\t}\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tString out = sb.toString();\n\t\treturn out.substring(0, out.length() - 2);\n\n\t}",
"@Override\n public String toString(){\n final StringBuilder sb = new StringBuilder();\n long elapsed = 0;\n long days = 0;\n long hours = 0;\n long minutes = 0;\n long seconds = 0;\n if(isRunning){\n elapsed = System.currentTimeMillis()-t0;\n }else{\n elapsed = t1-t0;\n }\n while(elapsed >= 86400000L){\n days += 1;\n elapsed -= 86400000L;\n }\n if(days>0){\n sb.append(days);\n sb.append(\" days \");\n }\n while(elapsed >= 3600000L){\n hours += 1;\n elapsed -= 3600000L;\n }\n if(hours > 0){\n sb.append(hours);\n sb.append(\"h \");\n }\n while(elapsed >= 60000L){\n minutes += 1;\n elapsed -= 60000L;\n }\n if(minutes > 0){\n sb.append(minutes);\n sb.append(\"min \");\n }\n while(elapsed >= 1000L){\n seconds += 1;\n elapsed -= 1000L;\n }\n if(seconds > 0){\n sb.append(seconds);\n sb.append(\"s \");\n }\n if(elapsed > 0){\n sb.append(elapsed);\n sb.append(\"ms\");\n }\n final String res = sb.toString();\n return (res.isEmpty() ? \"0\" : res);\n }",
"long getStartTimeMillis();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Http client register repository. | public HttpClientRegisterRepository(final ShenyuRegisterCenterConfig config) {
init(config);
} | [
"public HttpClientRegisterRepository() {\n }",
"public ClientRepositoryFactory() {\n this(new ClientAdapterFactory());\n }",
"Register createRegister();",
"public HalShopClient() {\n httpclient = createDefault();\n }",
"private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }",
"public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }",
"Retrofit register(String identity, Retrofit retrofit);",
"public Factory() {\n this(getInternalClient());\n }",
"Repository createRepository();",
"@Override\n public java.lang.AutoCloseable createInstance() {\n logger.info(\"Creating the Registry Handler Implementation Instance...\");\n\n DataBroker dataBrokerService = getDataBrokerDependency();\n RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();\n RegistryHandlerProvider provider = new RegistryHandlerProvider(dataBrokerService, rpcProviderRegistry);\n\n logger.info(\"Creating the Registry Handler Implementation created...\");\n\n return provider;\n }",
"public interface RepoxRestClientFactory {\n /**\n * @param url\n * determining location of a Repox installation\n * @return instance of repox client connected to given url\n */\n RepoxRestClient getInstance(String url);\n}",
"public GithubClient() {\n// client = ClientBuilder.newClient();\n// userTarget = client.target(\"https://api.github.com/users/{username}\");\n// userRepoTarget = client.target(\"https://api.github.com/users/{username}/repos\");\n// releaseCountTarget = client.target(\"https://api.github.com/repos/{owner}/{repo}/releases\");\n }",
"@Override\n public RegisterClientResult registerClient(RegisterClientRequest request) {\n request = beforeClientExecution(request);\n return executeRegisterClient(request);\n }",
"private HttpClientInfra() {}",
"DbxClientV2 createClient(DbxAuthInfo auth, StandardHttpRequestor.Config config, String clientUserAgentId);",
"public UsuarioRest() {\n usuarioRepository = new UsuarioRepository();\n usuario = new Usuario();\n }",
"public void constructRegisterRequest(RegisterRequest request);",
"public BaseController(HttpClient _client) {\n clientInstance = _client;\n }",
"public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
END FIELDS Parameter is a variable in a method declaration; Argument is actual value passed to parameter For example, `integer' is a parameter of the constructor declared below, whereas the `3' in `new Java_Experiment_File(3)' is an argument Source: Constructor; Invoked upon instantiation of object from class Absence of return type is how a constructor is distinguished from a method with the same name as the class Source: | public Java_Experiment_File(int integer) /* Declaration */ {
// Begin definition
// In this constructor, `this(1)' results in compile-time exception as it makes constructor recursive, which is *not* allowed!
F = integer;
System.out.println("Instance variable `F' is set to " + F + "!");
// NO `return' statements allowed in constructors!
// End definiton
} | [
"public FileParameter() { }",
"public JParameterRecord() {\n super(JParameter.PARAMETER);\n }",
"public VariableArityParameterDeclaration() {\n super();\n\r\n\r\n }",
"Parameter() {\n }",
"public Snippet visit(FormalParameterRest n, Snippet argu) {\n\t \n\t n.nodeToken.accept(this, argu);\n\t Snippet _ret = n.finalFormalParameter.accept(this, argu);\n\t \n\t\t\t_ret.returnTemp = \", \"+_ret.returnTemp;\n\t\t\tfieldsCode += _ret.returnTemp;\n\t return _ret;\n\t }",
"public Snippet visit(FinalFormalParameter n, Snippet argu) {\n\t Snippet _ret=new Snippet(\"\",\"\", null, false);;\n\t n.nodeToken.accept(this, argu);\n\t Snippet type = n.type.accept(this, argu);\n\t Snippet f1 = n.identifier.accept(this, argu);\n\t _ret.returnTemp = \"final \"+type.expType.getTypeName()+\" \"+f1.returnTemp;\n\t return _ret;\n\t }",
"public FunctionParameter() {\n }",
"MethodEnd createMethodEnd();",
"public Method(String line, int lineNum) {\n\t\tthis.start = lineNum + 1; \n\t\tthis.end = GUIDuckMain.advanceToEnd(lineNum);\n\t\tthis.name = GUIDuckMain.code.line(lineNum)[1];\n\t\t//PARSE PARAMS\n\t}",
"public Parameter() {\n }",
"double getEndParameter();",
"public File()\n {\n is = new BufferedReader(new InputStreamReader(System.in));\n popFront();\n lineNumber = 1;\n }",
"public interface QAForFileReader {\r\n\r\n /** The Q a_ SIZ e_ CLASSNAME. */\r\n public static String QA_SIZE_CLASSNAME = \"com.kni.etl.ketl.qa.QAFileSize\";\r\n\r\n /** The Q a_ STRUCTUR e_ CLASSNAME. */\r\n public static String QA_STRUCTURE_CLASSNAME = null;\r\n\r\n /** The Q a_ AMOUN t_ CLASSNAME. */\r\n public static String QA_AMOUNT_CLASSNAME = \"com.kni.etl.ketl.qa.QAFileAmount\";\r\n\r\n /** The Q a_ VALU e_ CLASSNAME. */\r\n public static String QA_VALUE_CLASSNAME = \"com.kni.etl.ketl.qa.QAValue\";\r\n\r\n /** The Q a_ AG e_ CLASSNAME. */\r\n public static String QA_AGE_CLASSNAME = \"com.kni.etl.ketl.qa.QAFileAge\";\r\n\r\n /** The Q a_ ITE m_ CHEC k_ CLASSNAME. */\r\n public static String QA_ITEM_CHECK_CLASSNAME = \"com.kni.etl.ketl.qa.QAItem\";\r\n\r\n /** The Q a_ RECOR d_ CHEC k_ CLASSNAME. */\r\n public static String QA_RECORD_CHECK_CLASSNAME = \"com.kni.etl.ketl.qa.QARecord\";\r\n\r\n /**\r\n * Gets the open files.\r\n * \r\n * @return the open files\r\n */\r\n public abstract List getOpenFiles();\r\n\r\n // Returns the number of actually opened paths...\r\n\r\n /**\r\n * Gets the character set.\r\n * \r\n * @return the character set\r\n */\r\n public abstract String getCharacterSet();\r\n\r\n /**\r\n * Gets the skip lines.\r\n * \r\n * @return the skip lines\r\n */\r\n public abstract int getSkipLines();\r\n\r\n /**\r\n * Gets the source field definition.\r\n * \r\n * @return the source field definition\r\n */\r\n public abstract SourceFieldDefinition[] getSourceFieldDefinition();\r\n\r\n /**\r\n * Gets the default field delimeter.\r\n * \r\n * @return the default field delimeter\r\n */\r\n public abstract String getDefaultFieldDelimeter();\r\n\r\n /**\r\n * Gets the default record delimter.\r\n * \r\n * @return the default record delimter\r\n */\r\n public abstract char getDefaultRecordDelimter();\r\n\r\n /**\r\n * Ignore last record.\r\n * \r\n * @return true, if successful\r\n */\r\n public abstract boolean ignoreLastRecord();\r\n\r\n}",
"public JavaWriter endConstructor() throws IOException {\n popScope(Scope.CONSTRUCTOR);\n indent();\n out.write(\"}\\n\");\n return this;\n }",
"int getDeclarationSourceEnd();",
"public ExtractionParameters(){\n\t\tif (!subset){\n\t\t\tstartFrame = 1;\n\t\t}\n\t}",
"public NewRGFileHeader(){\r\n this(0,0,0,0,0);\r\n }",
"MultilineParameters() {\n this(0);\n }",
"InputParameterDeclaration createInputParameterDeclaration();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__InterfaceDefinition__Group__1__Impl" $ANTLR start "rule__InterfaceDefinition__Group__2" ../org.ow2.mindEd.idt.editor.textual.ui/srcgen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4794:1: rule__InterfaceDefinition__Group__2 : rule__InterfaceDefinition__Group__2__Impl rule__InterfaceDefinition__Group__3 ; | public final void rule__InterfaceDefinition__Group__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4798:1: ( rule__InterfaceDefinition__Group__2__Impl rule__InterfaceDefinition__Group__3 )
// ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4799:2: rule__InterfaceDefinition__Group__2__Impl rule__InterfaceDefinition__Group__3
{
pushFollow(FollowSets000.FOLLOW_rule__InterfaceDefinition__Group__2__Impl_in_rule__InterfaceDefinition__Group__210008);
rule__InterfaceDefinition__Group__2__Impl();
state._fsp--;
if (state.failed) return ;
pushFollow(FollowSets000.FOLLOW_rule__InterfaceDefinition__Group__3_in_rule__InterfaceDefinition__Group__210011);
rule__InterfaceDefinition__Group__3();
state._fsp--;
if (state.failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__InterfaceDefinition__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4767:1: ( rule__InterfaceDefinition__Group__1__Impl rule__InterfaceDefinition__Group__2 )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4768:2: rule__InterfaceDefinition__Group__1__Impl rule__InterfaceDefinition__Group__2\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__InterfaceDefinition__Group__1__Impl_in_rule__InterfaceDefinition__Group__19946);\r\n rule__InterfaceDefinition__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FollowSets000.FOLLOW_rule__InterfaceDefinition__Group__2_in_rule__InterfaceDefinition__Group__19949);\r\n rule__InterfaceDefinition__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7242:1: ( ( ( rule__Interface__Group_2__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7243:1: ( ( rule__Interface__Group_2__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7243:1: ( ( rule__Interface__Group_2__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7244:1: ( rule__Interface__Group_2__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceAccess().getGroup_2()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7245:1: ( rule__Interface__Group_2__0 )?\r\n int alt63=2;\r\n int LA63_0 = input.LA(1);\r\n\r\n if ( (LA63_0==67) ) {\r\n alt63=1;\r\n }\r\n switch (alt63) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7245:2: rule__Interface__Group_2__0\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_2__0_in_rule__Interface__Group__2__Impl15302);\r\n rule__Interface__Group_2__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getInterfaceAccess().getGroup_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7231:1: ( rule__Interface__Group__2__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7232:2: rule__Interface__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group__2__Impl_in_rule__Interface__Group__215275);\r\n rule__Interface__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__InterfaceDefinition__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4779:1: ( ( 'interface' ) )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4780:1: ( 'interface' )\r\n {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4780:1: ( 'interface' )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4781:1: 'interface'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceDefinitionAccess().getInterfaceKeyword_1()); \r\n }\r\n match(input,64,FollowSets000.FOLLOW_64_in_rule__InterfaceDefinition__Group__1__Impl9977); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getInterfaceDefinitionAccess().getInterfaceKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group_0__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5453:1: ( ( ( rule__Interface__Group_0_2__0 )* ) )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5454:1: ( ( rule__Interface__Group_0_2__0 )* )\r\n {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5454:1: ( ( rule__Interface__Group_0_2__0 )* )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5455:1: ( rule__Interface__Group_0_2__0 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceAccess().getGroup_0_2()); \r\n }\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5456:1: ( rule__Interface__Group_0_2__0 )*\r\n loop38:\r\n do {\r\n int alt38=2;\r\n int LA38_0 = input.LA(1);\r\n\r\n if ( (LA38_0==33) ) {\r\n alt38=1;\r\n }\r\n\r\n\r\n switch (alt38) {\r\n \tcase 1 :\r\n \t // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5456:2: rule__Interface__Group_0_2__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__Interface__Group_0_2__0_in_rule__Interface__Group_0__2__Impl11080);\r\n \t rule__Interface__Group_0_2__0();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop38;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getInterfaceAccess().getGroup_0_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void ruleInterfaceDefinition() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:832:2: ( ( ( rule__InterfaceDefinition__Group__0 ) ) )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:833:1: ( ( rule__InterfaceDefinition__Group__0 ) )\r\n {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:833:1: ( ( rule__InterfaceDefinition__Group__0 ) )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:834:1: ( rule__InterfaceDefinition__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceDefinitionAccess().getGroup()); \r\n }\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:835:1: ( rule__InterfaceDefinition__Group__0 )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:835:2: rule__InterfaceDefinition__Group__0\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__InterfaceDefinition__Group__0_in_ruleInterfaceDefinition1721);\r\n rule__InterfaceDefinition__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getInterfaceDefinitionAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group_2__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7296:1: ( rule__Interface__Group_2__1__Impl rule__Interface__Group_2__2 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7297:2: rule__Interface__Group_2__1__Impl rule__Interface__Group_2__2\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_2__1__Impl_in_rule__Interface__Group_2__115401);\r\n rule__Interface__Group_2__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Interface__Group_2__2_in_rule__Interface__Group_2__115404);\r\n rule__Interface__Group_2__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group_2__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7325:1: ( rule__Interface__Group_2__2__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7326:2: rule__Interface__Group_2__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_2__2__Impl_in_rule__Interface__Group_2__215462);\r\n rule__Interface__Group_2__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5252:1: ( rule__Interface__Group__2__Impl rule__Interface__Group__3 )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5253:2: rule__Interface__Group__2__Impl rule__Interface__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group__2__Impl_in_rule__Interface__Group__210675);\r\n rule__Interface__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Interface__Group__3_in_rule__Interface__Group__210678);\r\n rule__Interface__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__EInterfaceDefinition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:14685:1: ( rule__EInterfaceDefinition__Group__2__Impl rule__EInterfaceDefinition__Group__3 )\n // InternalAADMParser.g:14686:2: rule__EInterfaceDefinition__Group__2__Impl rule__EInterfaceDefinition__Group__3\n {\n pushFollow(FOLLOW_45);\n rule__EInterfaceDefinition__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__EInterfaceDefinition__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__InterfaceDef__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:20445:1: ( rule__InterfaceDef__Group__2__Impl rule__InterfaceDef__Group__3 )\n // InternalDsl.g:20446:2: rule__InterfaceDef__Group__2__Impl rule__InterfaceDef__Group__3\n {\n pushFollow(FOLLOW_120);\n rule__InterfaceDef__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__InterfaceDef__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Interface__Group_2__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7265:1: ( rule__Interface__Group_2__0__Impl rule__Interface__Group_2__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7266:2: rule__Interface__Group_2__0__Impl rule__Interface__Group_2__1\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_2__0__Impl_in_rule__Interface__Group_2__015339);\r\n rule__Interface__Group_2__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Interface__Group_2__1_in_rule__Interface__Group_2__015342);\r\n rule__Interface__Group_2__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5441:1: ( rule__Interface__Group_0__2__Impl rule__Interface__Group_0__3 )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5442:2: rule__Interface__Group_0__2__Impl rule__Interface__Group_0__3\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_0__2__Impl_in_rule__Interface__Group_0__211050);\r\n rule__Interface__Group_0__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Interface__Group_0__3_in_rule__Interface__Group_0__211053);\r\n rule__Interface__Group_0__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__InterfaceDefinition__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4738:1: ( rule__InterfaceDefinition__Group__0__Impl rule__InterfaceDefinition__Group__1 )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4739:2: rule__InterfaceDefinition__Group__0__Impl rule__InterfaceDefinition__Group__1\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__InterfaceDefinition__Group__0__Impl_in_rule__InterfaceDefinition__Group__09886);\r\n rule__InterfaceDefinition__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FollowSets000.FOLLOW_rule__InterfaceDefinition__Group__1_in_rule__InterfaceDefinition__Group__09889);\r\n rule__InterfaceDefinition__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group_0_2__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5539:1: ( rule__Interface__Group_0_2__1__Impl )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5540:2: rule__Interface__Group_0_2__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_0_2__1__Impl_in_rule__Interface__Group_0_2__111240);\r\n rule__Interface__Group_0_2__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group_2__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7336:1: ( ( '}' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7337:1: ( '}' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7337:1: ( '}' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7338:1: '}'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceAccess().getRightCurlyBracketKeyword_2_2()); \r\n }\r\n match(input,68,FOLLOW_68_in_rule__Interface__Group_2__2__Impl15490); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getInterfaceAccess().getRightCurlyBracketKeyword_2_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7202:1: ( rule__Interface__Group__1__Impl rule__Interface__Group__2 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7203:2: rule__Interface__Group__1__Impl rule__Interface__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group__1__Impl_in_rule__Interface__Group__115215);\r\n rule__Interface__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Interface__Group__2_in_rule__Interface__Group__115218);\r\n rule__Interface__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Interface__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5221:1: ( rule__Interface__Group__1__Impl rule__Interface__Group__2 )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5222:2: rule__Interface__Group__1__Impl rule__Interface__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group__1__Impl_in_rule__Interface__Group__110613);\r\n rule__Interface__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Interface__Group__2_in_rule__Interface__Group__110616);\r\n rule__Interface__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__InterfaceDefinition__Group__4__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4870:1: ( ( ( rule__InterfaceDefinition__Group_4__0 )? ) )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4871:1: ( ( rule__InterfaceDefinition__Group_4__0 )? )\r\n {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4871:1: ( ( rule__InterfaceDefinition__Group_4__0 )? )\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4872:1: ( rule__InterfaceDefinition__Group_4__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceDefinitionAccess().getGroup_4()); \r\n }\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4873:1: ( rule__InterfaceDefinition__Group_4__0 )?\r\n int alt43=2;\r\n int LA43_0 = input.LA(1);\r\n\r\n if ( (LA43_0==53) ) {\r\n alt43=1;\r\n }\r\n switch (alt43) {\r\n case 1 :\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4873:2: rule__InterfaceDefinition__Group_4__0\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__InterfaceDefinition__Group_4__0_in_rule__InterfaceDefinition__Group__4__Impl10163);\r\n rule__InterfaceDefinition__Group_4__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getInterfaceDefinitionAccess().getGroup_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate function list for slip rate along fault | private void generateSlipRateAlongFaultFuncList(A_FaultSegmentedSourceGenerator segmentedSource,
UnsegmentedSource unsegmentedSource) {
this.slipRatesAlongFaultList = new ArrayList<ArbitrarilyDiscretizedFunc>();
slipRatesAlongFaultPlottingFeatures = new ArrayList<PlotCurveCharacterstics>();
slipRatesAlongFaultList.add(unsegmentedSource.getOrigSlipRateAlongFault());
slipRatesAlongFaultPlottingFeatures.add(PLOT_CHAR5);
slipRatesAlongFaultList.add(unsegmentedSource.getFinalSlipRateAlongFault());
slipRatesAlongFaultPlottingFeatures.add(PLOT_CHAR2);
// contribution by magnitude
ArrayList<ArbitrarilyDiscretizedFunc> magBasedFuncs = unsegmentedSource.getMagBasedFinalSlipRateListAlongFault();
slipRatesAlongFaultList.addAll(magBasedFuncs);
for(int i=0; i<magBasedFuncs.size(); ++i) slipRatesAlongFaultPlottingFeatures.add(PLOT_CHAR6);
} | [
"private void generateSlipRateFuncList(A_FaultSegmentedSourceGenerator segmentedSource, \n\t\t\tUnsegmentedSource unsegmentedSource, FaultSegmentData faultSegmentData) {\n\t\tArbitrarilyDiscretizedFunc origSlipRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\torigSlipRateFunc.setName(\"Orig Slip Rate\");\n\t\tArbitrarilyDiscretizedFunc origMinSlipRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\torigMinSlipRateFunc.setName(\"Min Orig Slip Rate\");\n\t\tArbitrarilyDiscretizedFunc origMaxSlipRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\torigMaxSlipRateFunc.setName(\"Max Orig Slip Rate\");\n\t\tArbitrarilyDiscretizedFunc modSlipRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\tmodSlipRateFunc.setName(\"Modified Slip Rate\");\n\t\tArbitrarilyDiscretizedFunc modMinSlipRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\tmodMinSlipRateFunc.setName(\"Min Modified Slip Rate\");\n\t\tArbitrarilyDiscretizedFunc modMaxSlipRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\tmodMaxSlipRateFunc.setName(\"Max Modified Slip Rate\");\n\t\tArbitrarilyDiscretizedFunc finalSlipRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\tfinalSlipRateFunc.setName(\"Final Slip Rate\");\n\t\tArbitrarilyDiscretizedFunc aPrioriSlipRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\taPrioriSlipRateFunc.setName(\"A_Priori Slip Rate\");\n\t\tdouble origSlipRate, origSlipRateStdDev, finalSlipRate, fraction;\n\t\t// Modified Slip Rates\n\t\tif(segmentedSource!=null)\n\t\t\tfraction = 1-segmentedSource.getMoRateReduction();\n\t\telse fraction = 1 - unsegmentedSource.getMoRateReduction();\n\t\t\n\t\tfor(int seg=0; seg<faultSegmentData.getNumSegments(); ++seg) {\n\t\t\t // Original Slip Rates\n\t\t\torigSlipRate = faultSegmentData.getSegmentSlipRate(seg)*1e3;\n\t\t\torigSlipRateStdDev = faultSegmentData.getSegSlipRateStdDev(seg)*1e3;\n\t\t\torigSlipRateFunc.set((double)seg+1, origSlipRate);\n\t\t\torigMinSlipRateFunc.set((double)seg+1, origSlipRate-2*origSlipRateStdDev);\n\t\t\torigMaxSlipRateFunc.set((double)seg+1, origSlipRate+2*origSlipRateStdDev);\n\t\t\t// Modified Slip Rates\n\t\t\tmodSlipRateFunc.set((double)seg+1, origSlipRate*fraction);\n\t\t\tmodMinSlipRateFunc.set((double)seg+1, (origSlipRate-2*origSlipRateStdDev)*fraction);\n\t\t\tmodMaxSlipRateFunc.set((double)seg+1, (origSlipRate+2*origSlipRateStdDev)*fraction);\n\t\t\t// Final slip Rate\n\t\t\tif(segmentedSource!=null) {\n\t\t\t\tfinalSlipRate = segmentedSource.getFinalSegSlipRate(seg);\n\t\t\t\taPrioriSlipRateFunc.set((double)seg+1, segmentedSource.get_aPrioriSegSlipRate(seg)*1e3);\n\t\t\t}\n\t\t\telse finalSlipRate = unsegmentedSource.getFinalAveSegSlipRate(seg);\n\t\t\tfinalSlipRateFunc.set((double)seg+1, finalSlipRate*1e3);\n\t\t }\n\t\tslipRatesList = new ArrayList<ArbitrarilyDiscretizedFunc>();\n\t\t//slipRatesList.add(origSlipRateFunc);\n\t\t//slipRatesList.add(origMinSlipRateFunc);\n\t\t//slipRatesList.add(origMaxSlipRateFunc);\n\t\t\n\t\tslipRatesList.add(modSlipRateFunc);\n\t\tslipRatesList.add(modMinSlipRateFunc);\n\t\tslipRatesList.add(modMaxSlipRateFunc);\n\t\tif(segmentedSource!=null) slipRatesList.add(aPrioriSlipRateFunc);\n\t\tslipRatesList.add(finalSlipRateFunc);\n\t}",
"private void generateEventRateFuncList(A_FaultSegmentedSourceGenerator segmentedSource, \n\t\t\tFaultSegmentData faultSegmentData) {\n\t\tArbitrarilyDiscretizedFunc origEventRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\torigEventRateFunc.setName(\"Data Event Rate\");\n\t\tArbitrarilyDiscretizedFunc minEventRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\tminEventRateFunc.setName(\"Min Event Rate\");\n\t\tArbitrarilyDiscretizedFunc maxEventRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\tmaxEventRateFunc.setName(\"Max Event Rate\");\n\t\tArbitrarilyDiscretizedFunc finalEventRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\tfinalEventRateFunc.setName(\"Final (Post-Inversion) Event Rate\");\n\t\tArbitrarilyDiscretizedFunc predEventRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\tpredEventRateFunc.setName(\"Predicted Event Rate from Apriori Rupture Rates\");\n\t\tdouble predEventRate, finalEventRate;\n\t\tdouble smallVal = 0.1;\n\t\tint index = 0;\n\t\tfor(int seg=0; seg<faultSegmentData.getNumSegments(); ++seg) {\n\t\t\tindex = seg+1;\n\t\t\t//origEventRate = faultSegmentData.getSegRateMean(seg);\n\t\t\tArrayList<SegRateConstraint> segRateConstraints = faultSegmentData.getSegRateConstraints(seg);\n\t\t\tfor(int i=0; i<segRateConstraints.size(); ++i) {\n\t\t\t\tSegRateConstraint segRateconstraint = segRateConstraints.get(i);\n\t\t\t\torigEventRateFunc.set((double)index+i*smallVal, segRateconstraint.getMean());\n\t\t\t\tminEventRateFunc.set((double)index+i*smallVal, segRateconstraint.getLower95Conf());\n\t\t\t\tmaxEventRateFunc.set((double)index+i*smallVal, segRateconstraint.getUpper95Conf());\n\t\t\t}\n\t\t\tfinalEventRate = segmentedSource.getFinalSegmentRate(seg);\n\t\t\tpredEventRate = segmentedSource.getSegRateFromAprioriRates(seg);\n\t\t\tpredEventRateFunc.set((double)index, predEventRate);\n\t\t\tfinalEventRateFunc.set((double)index, finalEventRate);\n\t\t }\n\t\tthis.eventRatesList = new ArrayList<ArbitrarilyDiscretizedFunc>();\n//\t\teventRatesList.add(origEventRateFunc);\n\t\teventRatesList.add(minEventRateFunc);\n\t\teventRatesList.add(maxEventRateFunc);\n\t\teventRatesList.add(predEventRateFunc);\n\t\teventRatesList.add(finalEventRateFunc);\n\t}",
"private void generateEventRateRatioFuncList(A_FaultSegmentedSourceGenerator segmentedSource) {\n\t\tArbitrarilyDiscretizedFunc eventRateRatioFunc = new ArbitrarilyDiscretizedFunc();\n\t\teventRateRatioFunc.setName(\"Normalized Event Rate Residuals - (Final_ER-Data_ER)/ER_Sigma\");\n\t\tdouble normResids[] = segmentedSource.getNormDataER_Resids();\n\t\tfor(int seg=0; seg<normResids.length; ++seg) {\n\t\t\tif(Double.isNaN(normResids[seg])) continue;\n\t\t\teventRateRatioFunc.set((double)seg+1, normResids[seg]);\n\t\t }\n\t\tthis.eventRatesRatioList = new ArrayList<ArbitrarilyDiscretizedFunc>();\n\t\teventRatesRatioList.add(eventRateRatioFunc);\n\t}",
"private List<SfcServiceFunction> createSfcServiceFunctionList() {\n\n List<SfcServiceFunction> sfcServiceFunctionList = new ArrayList<>();\n\n // first entry\n // XXX Note SFC YANG model says that this Service Function Name IS NOT\n // the name of a Service\n // Function, so\n // not sure exactly what this is testing.\n SfcServiceFunctionBuilder sfcServiceFunctionBuilder = new SfcServiceFunctionBuilder();\n sfcServiceFunctionBuilder.setName(SF_NAME1.getValue()).withKey(new SfcServiceFunctionKey(SF_NAME1.getValue()))\n .setType(new SftTypeName(\"firewall\"));\n sfcServiceFunctionList.add(sfcServiceFunctionBuilder.build());\n\n // second entry\n sfcServiceFunctionBuilder = new SfcServiceFunctionBuilder();\n sfcServiceFunctionBuilder.setName(SF_NAME2.getValue()).withKey(new SfcServiceFunctionKey(SF_NAME2.getValue()))\n .setType(new SftTypeName(\"dpi\"));\n sfcServiceFunctionList.add(sfcServiceFunctionBuilder.build());\n\n return sfcServiceFunctionList;\n }",
"private List<Matrix> obtainTransitions(List<Matrix>probs){\n\t\tList<Matrix> output = new ArrayList<Matrix>();\n\t\tfor (int i =0;i<probs.size();i++) {\n\t\t\toutput.add(genTransFunction(probs.get(i)));\n\t\t}\n\t\treturn output;\n\t}",
"@Override\n\tpublic Deque<PseudoInstruction> visit(FuncAST func) {\n\t\tDeque<PseudoInstruction> instrList = new LinkedList<PseudoInstruction>();\n\t\t// frame needs to be offset by one because lr is stored there on the\n\t\t// stack\n\t\tint frameOffset = 1;\n\t\tTemporaryRegister temporary;\n\t\tfor (Param p : func.getParamList()) {\n\t\t\ttemporary = trg.generate(weight);\n\t\t\tinstrList.add(new Ldr(temporary, new Address(ArmRegister.lr,\n\t\t\t\t\tframeOffset * 4)));\n\t\t\tp.getScope().lookup(p.getIdent()).setTemporaryRegister(temporary);\n\t\t\tframeOffset++;\n\t\t}\n\t\tinstrList.addAll(func.getStat().accept(this));\n\t\t// this is done by return\n\t\t// instrList.add(new Mov(ArmRegister.r0, returnedOperand));\n\n\t\treturn instrList;\n\t}",
"private List<RatTerm> list(RatPoly p) {\n List<RatTerm> r = new ArrayList<RatTerm>();\n // {Inv: r = r + rt_0 + rt_1 + ... + rt_{i-1} where rt_i is the ith term in p.terms}\n for (RatTerm rt : p.terms) {\n r.add(rt);\n }\n return r;\n }",
"org.globus.swift.language.Function getFunctionArray(int i);",
"public void testGetFunctionList() throws Throwable {\r\n XINSCallRequest request = new XINSCallRequest(\"_GetFunctionList\", null);\r\n TargetDescriptor descriptor = new TargetDescriptor(AllTests.url());\r\n XINSServiceCaller caller = new XINSServiceCaller(descriptor);\r\n XINSCallResult result = caller.call(request);\r\n assertNull(\"The function returned a result code.\", result.getErrorCode());\r\n assertNull(\"The function returned some parameters.\", result.getParameters());\r\n assertNotNull(\"The function did not return a data element.\", result.getDataElement());\r\n ElementList functions = new ElementList(result.getDataElement());\r\n int size = functions.size();\r\n for (int i = 0; i < size; i++) {\r\n Element nextFunction = (Element) functions.get(i);\r\n assertEquals(\"Element other than a function found.\", \"function\", nextFunction.getTagName());\r\n String version = nextFunction.getAttribute(\"version\");\r\n String name = nextFunction.getAttribute(\"name\");\r\n String enabled = nextFunction.getAttribute(\"enabled\");\r\n assertNotNull(version);\r\n assertNotNull(name);\r\n assertNotNull(enabled);\r\n try {\r\n if (!\"?.?\".equals(version)) {\r\n Double.parseDouble(version);\r\n }\r\n } catch (NumberFormatException exception) {\r\n fail(\"Incorrect version number: \" + exception.getMessage());\r\n }\r\n // By default all function are enabled\r\n assertEquals(\"The function is not enabled.\", \"true\", enabled);\r\n }\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.RateBookCalcRoutine[] getRateBookCalcRoutines();",
"public List<String> getFunc() {\n List<String> funcs = new ArrayList<>();\n funcs.add(\"Delete\");\n funcs.add(\"Edit\");\n funcs.add(\"Add\");\n funcs.add(\"Sort A-Z\");\n funcs.add(\"Sort Z-A\");\n\n return funcs;\n }",
"private List<Condition> generate(Expression exp)\n {\n return generate(exp, fun, callers);\n }",
"hep.io.root.interfaces.TList getFunctions();",
"public List<Integer> generateOutcome();",
"public abstract void generateSynthFuns();",
"void populateFaultTable()\n\t{\n\t\tm_faultTable.addAction(\"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.addAction(\"print\"); //$NON-NLS-1$\n\n\t\t// the faults we support\n\t\tm_faultTable.add(InvalidTargetFault.name);\n\t\tm_faultTable.add(RecursionLimitFault.name);\n\t\tm_faultTable.add(InvalidWithFault.name);\n\t\tm_faultTable.add(ProtoLimitFault.name);\n\t\tm_faultTable.add(InvalidURLFault.name);\n\t\tm_faultTable.add(ExceptionFault.name);\n\t\tm_faultTable.add(StackUnderFlowFault.name);\n\t\tm_faultTable.add(DivideByZeroFault.name);\n\t\tm_faultTable.add(ScriptTimeoutFault.name);\n//\t\tm_faultTable.add(ConsoleErrorFault.name);\n\n\t\t// nice description of the faults\n\t\tm_faultTable.putDescription(InvalidTargetFault.name, getLocalizationManager().getLocalizedTextString(\"invalidTargetFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(RecursionLimitFault.name, getLocalizationManager().getLocalizedTextString(\"recursionLimitFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(InvalidWithFault.name, getLocalizationManager().getLocalizedTextString(\"invalidWithFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(ProtoLimitFault.name, getLocalizationManager().getLocalizedTextString(\"protoLimitFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(InvalidURLFault.name, getLocalizationManager().getLocalizedTextString(\"invalidUrlFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(ExceptionFault.name, getLocalizationManager().getLocalizedTextString(\"exceptionFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(StackUnderFlowFault.name, getLocalizationManager().getLocalizedTextString(\"stackUnderflowFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(DivideByZeroFault.name, getLocalizationManager().getLocalizedTextString(\"divideByZeroFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(ScriptTimeoutFault.name, getLocalizationManager().getLocalizedTextString(\"scriptTimeoutFault\")); //$NON-NLS-1$\n//\t\tm_faultTable.putDescription(ConsoleErrorFault.name, \"ActionScript recoverable error\");\n\n\t\t// default values for the faults\n\t\tm_faultTable.action(InvalidTargetFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidTargetFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(RecursionLimitFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(RecursionLimitFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidWithFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidWithFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ProtoLimitFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ProtoLimitFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidURLFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidURLFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ExceptionFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ExceptionFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(StackUnderFlowFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(StackUnderFlowFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(DivideByZeroFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(DivideByZeroFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ScriptTimeoutFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ScriptTimeoutFault.name, \"print\"); //$NON-NLS-1$\n//\t\tm_faultTable.action(ConsoleErrorFault.name, \"print\"); //$NON-NLS-1$\n//\t\tm_faultTable.action(ConsoleErrorFault.name, \"stop\"); //$NON-NLS-1$\n\t}",
"java.util.List<org.mydotey.codec.benchmark.data.proto.UnfixedData> \n getFList10List();",
"public static List<Function> getFunctions() { return allFunctions; }",
"private static HashMap<Method, Double> getActionTaggedMethods(FsmModel fsm) {\n HashMap<Method, Double> ret = new HashMap<Method, Double>();\n for (Method m : fsm.getClass().getDeclaredMethods()) {\n Annotation[] ta = m.getDeclaredAnnotations();\n for (int i=0; i < ta.length; i++) {\n if (ta[i] instanceof Action) {\n Method actProba = null;\n double proba = 0;\n try {\n actProba = fsm.getClass().getDeclaredMethod(m.getName() + \"Proba\");\n proba = (Double) actProba.invoke(fsm);\n } catch (NoSuchMethodException e) {\n System.err.println(\"Warning: method \" + m.getName() + \" has no probability. Considered 0.\");\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n System.err.println(\"Illegal access to \" + m.getName() + \"Proba\");\n System.err.println(\"Shouldn't have happened\");\n // e.printStackTrace(System.err);\n } catch (InvocationTargetException e) {\n System.err.println(\"Exception on target invocation on \" + m.getName() + \"Proba\");\n System.err.println(\"Shouldn't have happened\");\n // e.printStackTrace(System.err);\n }\n ret.put(m, proba);\n }\n }\n }\n return ret;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Panel__Group__2__Impl" $ANTLR start "rule__Panel__Group__3" InternalMyDsl.g:1976:1: rule__Panel__Group__3 : rule__Panel__Group__3__Impl rule__Panel__Group__4 ; | public final void rule__Panel__Group__3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:1980:1: ( rule__Panel__Group__3__Impl rule__Panel__Group__4 )
// InternalMyDsl.g:1981:2: rule__Panel__Group__3__Impl rule__Panel__Group__4
{
pushFollow(FOLLOW_14);
rule__Panel__Group__3__Impl();
state._fsp--;
pushFollow(FOLLOW_2);
rule__Panel__Group__4();
state._fsp--;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__Rules__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:8592:1: ( rule__Rules__Group__3__Impl rule__Rules__Group__4 )\n // InternalDsl.g:8593:2: rule__Rules__Group__3__Impl rule__Rules__Group__4\n {\n pushFollow(FOLLOW_16);\n rule__Rules__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Rules__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Component__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:4116:1: ( rule__Component__Group__3__Impl rule__Component__Group__4 )\n // InternalMyDsl.g:4117:2: rule__Component__Group__3__Impl rule__Component__Group__4\n {\n pushFollow(FOLLOW_7);\n rule__Component__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Component__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Dashboard__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1602:1: ( rule__Dashboard__Group__3__Impl rule__Dashboard__Group__4 )\n // InternalMyDsl.g:1603:2: rule__Dashboard__Group__3__Impl rule__Dashboard__Group__4\n {\n pushFollow(FOLLOW_14);\n rule__Dashboard__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Dashboard__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Robot__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:382:1: ( rule__Robot__Group__3__Impl rule__Robot__Group__4 )\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:383:2: rule__Robot__Group__3__Impl rule__Robot__Group__4\n {\n pushFollow(FOLLOW_rule__Robot__Group__3__Impl_in_rule__Robot__Group__3727);\n rule__Robot__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Robot__Group__4_in_rule__Robot__Group__3730);\n rule__Robot__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Language__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1475:1: ( ( ( rule__Language__Group_3__0 )? ) )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1476:1: ( ( rule__Language__Group_3__0 )? )\n {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1476:1: ( ( rule__Language__Group_3__0 )? )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1477:1: ( rule__Language__Group_3__0 )?\n {\n before(grammarAccess.getLanguageAccess().getGroup_3()); \n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1478:1: ( rule__Language__Group_3__0 )?\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==25) ) {\n alt4=1;\n }\n switch (alt4) {\n case 1 :\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1478:2: rule__Language__Group_3__0\n {\n pushFollow(FollowSets000.FOLLOW_rule__Language__Group_3__0_in_rule__Language__Group__3__Impl2883);\n rule__Language__Group_3__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getLanguageAccess().getGroup_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Mission__Group_3__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDronesDsl.g:601:1: ( rule__Mission__Group_3__3__Impl )\n // InternalDronesDsl.g:602:2: rule__Mission__Group_3__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Mission__Group_3__3__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Css__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:10782:1: ( rule__Css__Group__3__Impl rule__Css__Group__4 )\n // InternalMyDsl.g:10783:2: rule__Css__Group__3__Impl rule__Css__Group__4\n {\n pushFollow(FOLLOW_73);\n rule__Css__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Css__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Lane__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9456:1: ( rule__Lane__Group__3__Impl rule__Lane__Group__4 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9457:2: rule__Lane__Group__3__Impl rule__Lane__Group__4\r\n {\r\n pushFollow(FOLLOW_rule__Lane__Group__3__Impl_in_rule__Lane__Group__319671);\r\n rule__Lane__Group__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Lane__Group__4_in_rule__Lane__Group__319674);\r\n rule__Lane__Group__4();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Rule__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:8727:1: ( rule__Rule__Group__3__Impl rule__Rule__Group__4 )\n // InternalDsl.g:8728:2: rule__Rule__Group__3__Impl rule__Rule__Group__4\n {\n pushFollow(FOLLOW_34);\n rule__Rule__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Rule__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Opt__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:25872:1: ( rule__Opt__Group__3__Impl )\n // InternalDsl.g:25873:2: rule__Opt__Group__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Opt__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__End__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10636:1: ( rule__End__Group__3__Impl rule__End__Group__4 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10637:2: rule__End__Group__3__Impl rule__End__Group__4\r\n {\r\n pushFollow(FOLLOW_rule__End__Group__3__Impl_in_rule__End__Group__321994);\r\n rule__End__Group__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__End__Group__4_in_rule__End__Group__321997);\r\n rule__End__Group__4();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Component__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:24090:1: ( rule__Component__Group__3__Impl rule__Component__Group__4 )\n // InternalDsl.g:24091:2: rule__Component__Group__3__Impl rule__Component__Group__4\n {\n pushFollow(FOLLOW_11);\n rule__Component__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Component__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ASTNode__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.irisa.cairn.model.mathematica.xtext.ui/src-gen/fr/irisa/cairn/model/ui/contentassist/antlr/internal/InternalMathematica.g:464:1: ( rule__ASTNode__Group__3__Impl )\n // ../fr.irisa.cairn.model.mathematica.xtext.ui/src-gen/fr/irisa/cairn/model/ui/contentassist/antlr/internal/InternalMathematica.g:465:2: rule__ASTNode__Group__3__Impl\n {\n pushFollow(FOLLOW_rule__ASTNode__Group__3__Impl_in_rule__ASTNode__Group__3931);\n rule__ASTNode__Group__3__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Element3__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.group.unchanged.ui/src-gen/org/xtext/example/mydsl/group/unchanged/ui/contentassist/antlr/internal/InternalMyDsl.g:1106:1: ( rule__Element3__Group__3__Impl rule__Element3__Group__4 )\n // ../org.xtext.example.mydsl.group.unchanged.ui/src-gen/org/xtext/example/mydsl/group/unchanged/ui/contentassist/antlr/internal/InternalMyDsl.g:1107:2: rule__Element3__Group__3__Impl rule__Element3__Group__4\n {\n pushFollow(FollowSets000.FOLLOW_rule__Element3__Group__3__Impl_in_rule__Element3__Group__32127);\n rule__Element3__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__Element3__Group__4_in_rule__Element3__Group__32130);\n rule__Element3__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Role__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:7044:1: ( rule__Role__Group__3__Impl rule__Role__Group__4 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:7045:2: rule__Role__Group__3__Impl rule__Role__Group__4\n {\n pushFollow(FOLLOW_rule__Role__Group__3__Impl_in_rule__Role__Group__314309);\n rule__Role__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Role__Group__4_in_rule__Role__Group__314312);\n rule__Role__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Go__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:2297:1: ( rule__Go__Group__3__Impl )\n // InternalBrowser.g:2298:2: rule__Go__Group__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Go__Group__3__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Predicate__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:3652:1: ( rule__Predicate__Group__3__Impl )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:3653:2: rule__Predicate__Group__3__Impl\n {\n pushFollow(FOLLOW_rule__Predicate__Group__3__Impl_in_rule__Predicate__Group__37215);\n rule__Predicate__Group__3__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__JeeProject__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:5230:1: ( rule__JeeProject__Group__3__Impl rule__JeeProject__Group__4 )\n // InternalMyDsl.g:5231:2: rule__JeeProject__Group__3__Impl rule__JeeProject__Group__4\n {\n pushFollow(FOLLOW_7);\n rule__JeeProject__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__JeeProject__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Predicate__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3368:1: ( rule__Predicate__Group__3__Impl )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3369:2: rule__Predicate__Group__3__Impl\n {\n pushFollow(FOLLOW_rule__Predicate__Group__3__Impl_in_rule__Predicate__Group__36631);\n rule__Predicate__Group__3__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ amplification of org.apache.ibatis.builder.XmlMapperBuilderTestmappedStatementWithOptions | @org.junit.Test
public void mappedStatementWithOptions_literalMutation5_failAssert0_literalMutation12_failAssert1_literalMutation45() throws java.lang.Exception {
// AssertGenerator generate try/catch block with fail statement
try {
// AssertGenerator generate try/catch block with fail statement
try {
org.apache.ibatis.session.Configuration configuration = new org.apache.ibatis.session.Configuration();
java.lang.String resource = "cc";
// AssertGenerator add assertion
org.junit.Assert.assertEquals(resource, "cc");
java.io.InputStream inputStream = org.apache.ibatis.io.Resources.getResourceAsStream(resource);
org.apache.ibatis.builder.xml.XMLMapperBuilder builder = new org.apache.ibatis.builder.xml.XMLMapperBuilder(inputStream, configuration, resource, configuration.getSqlFragments());
builder.parse();
org.apache.ibatis.mapping.MappedStatement mappedStatement = configuration.getMappedStatement("selectWithOptions");
org.junit.Assert.assertThat(mappedStatement.getFetchSize(), org.hamcrest.CoreMatchers.is(200));
org.junit.Assert.assertThat(mappedStatement.getTimeout(), org.hamcrest.CoreMatchers.is(10));
org.junit.Assert.assertThat(mappedStatement.getStatementType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.StatementType.PREPARED));
org.junit.Assert.assertThat(mappedStatement.getResultSetType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.ResultSetType.SCROLL_SENSITIVE));
org.junit.Assert.assertThat(mappedStatement.isFlushCacheRequired(), org.hamcrest.CoreMatchers.is(false));
org.junit.Assert.assertThat(mappedStatement.isUseCache(), org.hamcrest.CoreMatchers.is(false));
org.junit.Assert.fail("mappedStatementWithOptions_literalMutation5 should have thrown BuilderException");
} catch (org.apache.ibatis.builder.BuilderException eee) {
}
org.junit.Assert.fail("mappedStatementWithOptions_literalMutation5_failAssert0_literalMutation12 should have thrown IOException");
} catch (java.io.IOException eee) {
}
} | [
"@org.junit.Test\n public void mappedStatementWithOptions_literalMutation5_failAssert0() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n org.apache.ibatis.session.Configuration configuration = new org.apache.ibatis.session.Configuration();\n java.lang.String resource = \"\";\n java.io.InputStream inputStream = org.apache.ibatis.io.Resources.getResourceAsStream(resource);\n org.apache.ibatis.builder.xml.XMLMapperBuilder builder = new org.apache.ibatis.builder.xml.XMLMapperBuilder(inputStream, configuration, resource, configuration.getSqlFragments());\n builder.parse();\n org.apache.ibatis.mapping.MappedStatement mappedStatement = configuration.getMappedStatement(\"selectWithOptions\");\n org.junit.Assert.assertThat(mappedStatement.getFetchSize(), org.hamcrest.CoreMatchers.is(200));\n org.junit.Assert.assertThat(mappedStatement.getTimeout(), org.hamcrest.CoreMatchers.is(10));\n org.junit.Assert.assertThat(mappedStatement.getStatementType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.StatementType.PREPARED));\n org.junit.Assert.assertThat(mappedStatement.getResultSetType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.ResultSetType.SCROLL_SENSITIVE));\n org.junit.Assert.assertThat(mappedStatement.isFlushCacheRequired(), org.hamcrest.CoreMatchers.is(false));\n org.junit.Assert.assertThat(mappedStatement.isUseCache(), org.hamcrest.CoreMatchers.is(false));\n org.junit.Assert.fail(\"mappedStatementWithOptions_literalMutation5 should have thrown BuilderException\");\n } catch (org.apache.ibatis.builder.BuilderException eee) {\n }\n }",
"@org.junit.Test(timeout = 1000)\n public void mappedStatementWithOptions_literalMutation5_failAssert0_add10_add37() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n org.apache.ibatis.session.Configuration configuration = new org.apache.ibatis.session.Configuration();\n java.lang.String resource = \"\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(resource, \"\");\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(resource, \"\");\n java.io.InputStream inputStream = org.apache.ibatis.io.Resources.getResourceAsStream(resource);\n org.apache.ibatis.builder.xml.XMLMapperBuilder builder = new org.apache.ibatis.builder.xml.XMLMapperBuilder(inputStream, configuration, resource, configuration.getSqlFragments());\n // MethodCallAdder\n builder.parse();\n // MethodCallAdder\n builder.parse();\n builder.parse();\n org.apache.ibatis.mapping.MappedStatement mappedStatement = configuration.getMappedStatement(\"selectWithOptions\");\n org.junit.Assert.assertThat(mappedStatement.getFetchSize(), org.hamcrest.CoreMatchers.is(200));\n org.junit.Assert.assertThat(mappedStatement.getTimeout(), org.hamcrest.CoreMatchers.is(10));\n org.junit.Assert.assertThat(mappedStatement.getStatementType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.StatementType.PREPARED));\n org.junit.Assert.assertThat(mappedStatement.getResultSetType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.ResultSetType.SCROLL_SENSITIVE));\n org.junit.Assert.assertThat(mappedStatement.isFlushCacheRequired(), org.hamcrest.CoreMatchers.is(false));\n org.junit.Assert.assertThat(mappedStatement.isUseCache(), org.hamcrest.CoreMatchers.is(false));\n org.junit.Assert.fail(\"mappedStatementWithOptions_literalMutation5 should have thrown BuilderException\");\n } catch (org.apache.ibatis.builder.BuilderException eee) {\n }\n }",
"@org.junit.Test\n public void mappedStatementWithOptions_literalMutation6_failAssert1() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n org.apache.ibatis.session.Configuration configuration = new org.apache.ibatis.session.Configuration();\n java.lang.String resource = \"org/apache/ibatis/bilder/AuthorMapper.xml\";\n java.io.InputStream inputStream = org.apache.ibatis.io.Resources.getResourceAsStream(resource);\n org.apache.ibatis.builder.xml.XMLMapperBuilder builder = new org.apache.ibatis.builder.xml.XMLMapperBuilder(inputStream, configuration, resource, configuration.getSqlFragments());\n builder.parse();\n org.apache.ibatis.mapping.MappedStatement mappedStatement = configuration.getMappedStatement(\"selectWithOptions\");\n org.junit.Assert.assertThat(mappedStatement.getFetchSize(), org.hamcrest.CoreMatchers.is(200));\n org.junit.Assert.assertThat(mappedStatement.getTimeout(), org.hamcrest.CoreMatchers.is(10));\n org.junit.Assert.assertThat(mappedStatement.getStatementType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.StatementType.PREPARED));\n org.junit.Assert.assertThat(mappedStatement.getResultSetType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.ResultSetType.SCROLL_SENSITIVE));\n org.junit.Assert.assertThat(mappedStatement.isFlushCacheRequired(), org.hamcrest.CoreMatchers.is(false));\n org.junit.Assert.assertThat(mappedStatement.isUseCache(), org.hamcrest.CoreMatchers.is(false));\n org.junit.Assert.fail(\"mappedStatementWithOptions_literalMutation6 should have thrown IOException\");\n } catch (java.io.IOException eee) {\n }\n }",
"@org.junit.Test(timeout = 1000)\n public void mappedStatementWithOptions_literalMutation5_failAssert0_add10() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n org.apache.ibatis.session.Configuration configuration = new org.apache.ibatis.session.Configuration();\n java.lang.String resource = \"\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(resource, \"\");\n java.io.InputStream inputStream = org.apache.ibatis.io.Resources.getResourceAsStream(resource);\n org.apache.ibatis.builder.xml.XMLMapperBuilder builder = new org.apache.ibatis.builder.xml.XMLMapperBuilder(inputStream, configuration, resource, configuration.getSqlFragments());\n // MethodCallAdder\n builder.parse();\n builder.parse();\n org.apache.ibatis.mapping.MappedStatement mappedStatement = configuration.getMappedStatement(\"selectWithOptions\");\n org.junit.Assert.assertThat(mappedStatement.getFetchSize(), org.hamcrest.CoreMatchers.is(200));\n org.junit.Assert.assertThat(mappedStatement.getTimeout(), org.hamcrest.CoreMatchers.is(10));\n org.junit.Assert.assertThat(mappedStatement.getStatementType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.StatementType.PREPARED));\n org.junit.Assert.assertThat(mappedStatement.getResultSetType(), org.hamcrest.CoreMatchers.is(org.apache.ibatis.mapping.ResultSetType.SCROLL_SENSITIVE));\n org.junit.Assert.assertThat(mappedStatement.isFlushCacheRequired(), org.hamcrest.CoreMatchers.is(false));\n org.junit.Assert.assertThat(mappedStatement.isUseCache(), org.hamcrest.CoreMatchers.is(false));\n org.junit.Assert.fail(\"mappedStatementWithOptions_literalMutation5 should have thrown BuilderException\");\n } catch (org.apache.ibatis.builder.BuilderException eee) {\n }\n }",
"@Test\n\tpublic void testMapsCorrectAliasInMappedResult() {\n\t\t\n\t\t\n\t\tassertThat(true).isEqualTo(false);\n\t}",
"boolean isSetSqlMapping();",
"@org.junit.Test(timeout = 10000)\n public void shouldFindPropertyName_sd439870_add440155() {\n boolean __DSPOT_useCamelCaseMapping_87051 = true;\n java.lang.String __DSPOT_name_87050 = \"O>/zvD!UA(WlHI3O$@?g\";\n org.apache.ibatis.reflection.ReflectorFactory reflectorFactory = new org.apache.ibatis.reflection.DefaultReflectorFactory();\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.DefaultReflectorFactory)reflectorFactory).isClassCacheEnabled());\n org.apache.ibatis.reflection.MetaClass meta = org.apache.ibatis.reflection.MetaClass.forClass(org.apache.ibatis.domain.misc.RichType.class, reflectorFactory);\n // AssertGenerator create local variable with return value of invocation\n java.lang.String o_shouldFindPropertyName_sd439870__7 = meta.findProperty(\"RICHfield\");\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(\"richField\", o_shouldFindPropertyName_sd439870__7);\n // AssertGenerator create local variable with return value of invocation\n java.lang.String o_shouldFindPropertyName_sd439870_add440155__10 = // StatementAdd: add invocation of a method\n // MethodCallAdder\n meta.findProperty(__DSPOT_name_87050, __DSPOT_useCamelCaseMapping_87051);\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(o_shouldFindPropertyName_sd439870_add440155__10);\n // AssertGenerator create local variable with return value of invocation\n java.lang.String o_shouldFindPropertyName_sd439870__8 = // StatementAdd: add invocation of a method\n meta.findProperty(__DSPOT_name_87050, __DSPOT_useCamelCaseMapping_87051);\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(o_shouldFindPropertyName_sd439870__8);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(\"richField\", o_shouldFindPropertyName_sd439870__7);\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.MetaClass)meta).hasDefaultConstructor());\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(o_shouldFindPropertyName_sd439870_add440155__10);\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.DefaultReflectorFactory)reflectorFactory).isClassCacheEnabled());\n }",
"@Override\n public boolean sqlMapGenerated(GeneratedXmlFile sqlMap,\n IntrospectedTable introspectedTable) {\n StringBuilder sb = new StringBuilder();\n sb.append(sqlMap.getTargetPackage());\n sb.append('.');\n String temp = sb.toString();\n sb.setLength(0);\n sb.append(temp.replace('.', '/'));\n sb.append(sqlMap.getFileName());\n mapperFiles.add(sb.toString());\n\n return true;\n }",
"@Test\n public void shouldIgnorePartialAutoMappingBehavior_InlineNestedResultMap() {\n AutomappingTest.sqlSessionFactory.getConfiguration().setAutoMappingBehavior(PARTIAL);\n SqlSession sqlSession = AutomappingTest.sqlSessionFactory.openSession();\n try {\n Mapper mapper = sqlSession.getMapper(Mapper.class);\n User user = mapper.getUserWithPets_Inline(2);\n Assert.assertEquals(Integer.valueOf(2), user.getId());\n Assert.assertEquals(\"User2\", user.getName());\n Assert.assertNull(\"should not inherit auto-mapping\", user.getPets().get(0).getPetName());\n Assert.assertEquals(\"John\", user.getPets().get(0).getBreeder().getBreederName());\n } finally {\n sqlSession.close();\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void shouldFindPropertyName_sd439879_add440272() {\n java.lang.String __DSPOT_name_87057 = \"jwV@.idj-?kK(aDi)HVG\";\n org.apache.ibatis.reflection.ReflectorFactory reflectorFactory = new org.apache.ibatis.reflection.DefaultReflectorFactory();\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.DefaultReflectorFactory)reflectorFactory).isClassCacheEnabled());\n // AssertGenerator create local variable with return value of invocation\n org.apache.ibatis.reflection.MetaClass o_shouldFindPropertyName_sd439879_add440272__4 = // MethodCallAdder\n org.apache.ibatis.reflection.MetaClass.forClass(org.apache.ibatis.domain.misc.RichType.class, reflectorFactory);\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.MetaClass)o_shouldFindPropertyName_sd439879_add440272__4).hasDefaultConstructor());\n org.apache.ibatis.reflection.MetaClass meta = org.apache.ibatis.reflection.MetaClass.forClass(org.apache.ibatis.domain.misc.RichType.class, reflectorFactory);\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.MetaClass)meta).hasDefaultConstructor());\n // AssertGenerator create local variable with return value of invocation\n java.lang.String o_shouldFindPropertyName_sd439879__6 = meta.findProperty(\"RICHfield\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldFindPropertyName_sd439879__7 = // StatementAdd: add invocation of a method\n meta.hasSetter(__DSPOT_name_87057);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(\"richField\", o_shouldFindPropertyName_sd439879__6);\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.MetaClass)meta).hasDefaultConstructor());\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.MetaClass)o_shouldFindPropertyName_sd439879_add440272__4).hasDefaultConstructor());\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.DefaultReflectorFactory)reflectorFactory).isClassCacheEnabled());\n }",
"@SuppressWarnings(\"unused\")\n @Deprecated(since = \"2.0\", forRemoval = true)\n public void setOptions(MapperOptions options) {\n }",
"@Test\n public void ItemMapperTest(){\n// item.setItemCode(UUID.randomUUID().toString().substring(0,5));\n// itemMapper.updateByPrimaryKeySelective(item);\n// System.out.println(item.toString());\n\n ItemMapper itemMapper1 = sqlSession.getMapper(ItemMapper.class);\n//\n for(int i=22;i<25;i++){\n Item item1 = new Item(UUID.randomUUID().toString().substring(0,5),\"米\",\"无\",new Date(),new Date());\n// item1.setItemId((long)i);\n// Item item1 = new Item();\n item1.setItemId((long)i);\n item1.setItemCode(\"ITEM00\"+i);\n itemMapper1.insertBatch(item1);\n// System.out.println(itemMapper1.selectByPrimaryKey((long)i).toString());\n }\n }",
"public interface HealthCheckMapper {\n\n /**\n * Perform a healthcheck using provided select\n *\n * @return\n */\n @Select(\"/* MyBatis Health Check */ SELECT 1\")\n int healthCheck();\n}",
"public interface ConfigInfoBetaMapper extends Mapper {\n \n /**\n * Update beta configuration information.\n * UPDATE config_info_beta SET content=?, md5=?, beta_ips=?, src_ip=?,src_user=?,gmt_modified=?,app_name=?\n * WHERE data_id=? AND group_id=? AND tenant_id=? AND (md5=? or md5 is null or md5='')\n *\n * @return The sql of updating beta configuration information.\n */\n default String updateConfigInfo4BetaCas() {\n return \"UPDATE config_info_beta SET content = ?,md5 = ?,beta_ips = ?,src_ip = ?,src_user = ?,gmt_modified = ?,app_name = ? \"\n + \"WHERE data_id = ? AND group_id = ? AND tenant_id = ? AND (md5 = ? OR md5 is null OR md5 = '')\";\n }\n \n /**\n * Query all beta config info for dump task.\n * The default sql:\n * SELECT t.id,data_id,group_id,tenant_id,app_name,content,md5,gmt_modified,beta_ips,encrypted_data_key\n * FROM ( SELECT id FROM config_info_beta ORDER BY id LIMIT startRow,pageSize ) g, config_info_beta t WHERE g.id = t.id\n *\n * @param startRow The start index.\n * @param pageSize The size of page.\n * @return The sql of querying all beta config info for dump task.\n */\n String findAllConfigInfoBetaForDumpAllFetchRows(int startRow, int pageSize);\n \n /**\n * 获取返回表名.\n *\n * @return 表名\n */\n default String getTableName() {\n return TableConstant.CONFIG_INFO_BETA;\n }\n}",
"@Test\n public void selectMaps2() {\n QueryWrapper<People> queryWrapper = new QueryWrapper<>();\n queryWrapper.select(\"avg(age) avg_age\", \"min(age) min_age\", \"max(age) max_age\").groupBy(\"manager_id\").having(\"sum(age) < {0}\", 500);\n List<Map<String, Object>> list = peopleMapper.selectMaps(queryWrapper);\n list.forEach(System.out::println);\n }",
"public void testConcvert_WithMapper_BadMapping() throws Exception {\r\n SimpleResultSetMetaData srsmd = new SimpleResultSetMetaData();\r\n SimpleResultSet srs = new SimpleResultSet(srsmd);\r\n List<Integer> row = new ArrayList<Integer>();\r\n Mapper mapper = new Mapper();\r\n Map<String, Converter> map = new HashMap<String, Converter>();\r\n\r\n map.put(\"INTEGER\", new Converter() {\r\n public Object convert(Object value, int column, CustomResultSetMetaData md) throws IllegalMappingException {\r\n throw new IllegalMappingException();\r\n }\r\n });\r\n mapper.setMap(map);\r\n\r\n srsmd.addColumn(\"column 1\", Types.INTEGER, \"INTEGER\", \"java.lang.Integer\", 0, 0);\r\n row.add(new Integer(0));\r\n srs.addRow(row);\r\n try {\r\n abstractor.convertResultSet(srs, mapper);\r\n fail(\"Expected an IllegalMappingException\");\r\n } catch (IllegalMappingException ime) {\r\n // The expected case\r\n }\r\n }",
"@org.junit.Test(timeout = 1000)\n public void shouldSuccessfullyLoadXMLMapperFile_literalMutation384_failAssert0_add388() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n org.apache.ibatis.session.Configuration configuration = new org.apache.ibatis.session.Configuration();\n java.lang.String resource = \"\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(resource, \"\");\n java.io.InputStream inputStream = org.apache.ibatis.io.Resources.getResourceAsStream(resource);\n org.apache.ibatis.builder.xml.XMLMapperBuilder builder = new org.apache.ibatis.builder.xml.XMLMapperBuilder(inputStream, configuration, resource, configuration.getSqlFragments());\n // MethodCallAdder\n builder.parse();\n builder.parse();\n org.junit.Assert.fail(\"shouldSuccessfullyLoadXMLMapperFile_literalMutation384 should have thrown BuilderException\");\n } catch (org.apache.ibatis.builder.BuilderException eee) {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void shouldCheckSetterExistance_sd40909_add49692() {\n boolean __DSPOT_useCamelCaseMapping_7045 = true;\n java.lang.String __DSPOT_name_7044 = \"(VY(Wm -y&a0p..W(2v#\";\n org.apache.ibatis.reflection.ReflectorFactory reflectorFactory = new org.apache.ibatis.reflection.DefaultReflectorFactory();\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.DefaultReflectorFactory)reflectorFactory).isClassCacheEnabled());\n // AssertGenerator create local variable with return value of invocation\n org.apache.ibatis.reflection.MetaClass o_shouldCheckSetterExistance_sd40909_add49692__5 = // MethodCallAdder\n org.apache.ibatis.reflection.MetaClass.forClass(org.apache.ibatis.domain.misc.RichType.class, reflectorFactory);\n org.apache.ibatis.reflection.MetaClass meta = org.apache.ibatis.reflection.MetaClass.forClass(org.apache.ibatis.domain.misc.RichType.class, reflectorFactory);\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.MetaClass)meta).hasDefaultConstructor());\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__7 = meta.hasSetter(\"richField\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__8 = meta.hasSetter(\"richProperty\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__9 = meta.hasSetter(\"richList\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__10 = meta.hasSetter(\"richMap\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__11 = meta.hasSetter(\"richList[0]\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__12 = meta.hasSetter(\"richType\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__13 = meta.hasSetter(\"richType.richField\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__14 = meta.hasSetter(\"richType.richProperty\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__15 = meta.hasSetter(\"richType.richList\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__16 = meta.hasSetter(\"richType.richMap\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__17 = meta.hasSetter(\"richType.richList[0]\");\n // AssertGenerator create local variable with return value of invocation\n boolean o_shouldCheckSetterExistance_sd40909__18 = meta.hasSetter(\"[0]\");\n // AssertGenerator create local variable with return value of invocation\n java.lang.String o_shouldCheckSetterExistance_sd40909__19 = // StatementAdd: add invocation of a method\n meta.findProperty(__DSPOT_name_7044, __DSPOT_useCamelCaseMapping_7045);\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(o_shouldCheckSetterExistance_sd40909__19);\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.DefaultReflectorFactory)reflectorFactory).isClassCacheEnabled());\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.MetaClass)meta).hasDefaultConstructor());\n // AssertGenerator add assertion\n org.junit.Assert.assertTrue(((org.apache.ibatis.reflection.MetaClass)o_shouldCheckSetterExistance_sd40909_add49692__5).hasDefaultConstructor());\n }",
"void setSqlMapping(org.lindbergframework.schema.LinpMappingDocument.LinpMapping.SqlMapping sqlMapping);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
find departure flights by airport code and date | public List<Flight> getDepartureFlights(String airportCode, String date) {
List<Flight> flights = new ArrayList<Flight>();
try {
Flight flight;
DateFormat formatter = new SimpleDateFormat("YYYY-MM-dd");
Date inputDate = formatter.parse(date);
for (int i = 0; i < this.flights.size(); i++) {
flight = this.flights.get(i);
formatter = new SimpleDateFormat("YYYY-MM-dd'T'hh:mm:ss");
if (flight.getDepartureAirportIATACode().equals(airportCode)
&& isSameDay(inputDate,formatter.parse(flight.getDepartureDate().split(" ")[0]))) {
flights.add(flight);
}
}
} catch (Exception e) {
e.printStackTrace();
}
return flights;
} | [
"public List<Flight> getArriveFlights(String airportCode, String date){\n\t\tList<Flight> flights = new ArrayList<Flight>();\n\t\ttry {\n\t\t\tFlight flight;\n\t\t\tDateFormat formatter = new SimpleDateFormat(\"YYYY-MM-dd\");\n\t\t\tDate inputDate = formatter.parse(date);\n\t\t\tfor (int i = 0; i < this.flights.size(); i++) {\n\t\t\t\tflight = this.flights.get(i);\n\t\t\t\tformatter = new SimpleDateFormat(\"YYYY-MM-dd'T'hh:mm:ss\");\n\t\t\t\tif (flight.getArrivalAirportIATACode().equals(airportCode)\n\t\t\t\t\t\t&& isSameDay(inputDate,formatter.parse(flight.getDepartureDate().split(\" \")[0]))) {\n\t\t\t\t\tflights.add(flight);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn flights;\n\t}",
"public List<flight> timeSwich(List<flight> FlightInfo, List<airportInformation> airport){\n\t flight ThisInfo = new flight();\n\t airportInformation ai = new airportInformation();\n\t Iterator AllInfo = FlightInfo.iterator();\n\t \n\t SimpleDateFormat OTime = new SimpleDateFormat(\"yyyy_MM_dd HH:mm\");\n\t OTime.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t SimpleDateFormat NTime = new SimpleDateFormat(\"yyyy_MM_dd HH:mm\");\n\t String[] parts;\n\t String ThisTime;\n\t String[] airportName = ai.sortAirportName(airport);\n\t \n\t while (AllInfo.hasNext())\n\t { \n\t ThisInfo= (flight)AllInfo.next();//From this we can get the arriving airport and departing airport\n\t String date = ThisInfo.getDepartingDate()+\" \"+ThisInfo.getDepartingTime();\n\t Date FTime = null;\n\t switch (ai.getAirportRank(airportName, ThisInfo.getDepartingAirport())){\n\t case 0:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Anchorage\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 1:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 2:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 3:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 4:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 5:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 6:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 7:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 8:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 9:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 10:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 11:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 12:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Denver\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 13:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Detroit\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 14:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 15:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 16:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 17:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"Pacific/Honolulu\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 18:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 19:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 20:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Indiana/Indianapolis\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 21:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 22:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 23:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Los_Angeles\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 24:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 25:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 26:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 27:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 28:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 29:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 30:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 31:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 32:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 33:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 34:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 35:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 36:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Phoenix\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 37:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 38:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 39:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 40:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Mountain\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 41:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 42:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 43:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 44:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 45:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Paciifc\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 46:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 47:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 48:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 49:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 50:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t \n\t }\n\t }\n\t Iterator AllInf = FlightInfo.iterator(); \n\t while (AllInf.hasNext())\n\t { ThisInfo=(flight)AllInf.next();\n\t String date = ThisInfo.getArrivingDate()+\" \"+ThisInfo.getArrivingTime();\n\t Date FTim = null;\n\t switch (ai.getAirportRank(airportName, ThisInfo.getArrivingAirport())){\n\t case 0:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Anchorage\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 1:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 2:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 3:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 4:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 5:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 6:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 7:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 8:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 9:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 10:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 11:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 12:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Denver\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 13:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Detroit\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 14:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 15:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 16:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 17:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"Pacific/Honolulu\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 18:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 19:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 20:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Indiana/Indianapolis\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 21:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 22:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 23:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Los_Angeles\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 24:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 25:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 26:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 27:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 28:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 29:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 30:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 31:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 32:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 33:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 34:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 35:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 36:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Phoenix\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 37:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 38:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 39:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 40:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Mountain\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 41:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 42:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 43:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 44:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 45:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Paciifc\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 46:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 47:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 48:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 49:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 50:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t \n\t }\n\t }\n\t \n\t return FlightInfo;\n\t }",
"public ArrayList<Flight> getDepartureFlightByAirport(Airport airport, String departTime){\n\t ArrayList<Flight> list = new ArrayList<Flight>();\n \t for (int i=0; i<flights.size();i++){\n\t \t if (flights.get(i).departureAirport.equals(airport) & (flights.get(i).getDepartureTime().equals(departTime)))\n\t \t\t list.add(flights.get(i));\n\t } \n\t \n return list;\n \n }",
"public List<FlightSchedule> getCustSearchResult(String sourceAirport, String destinationAirport, String departureDate, String arrivalDate ) throws FlightScheduleException {\n\t\t try {\n\t\t \t\n\t\t \t\n\t\t \tif (arrivalDate.equals(\"\"))\n\t\t \t{\n\t\t begin(); \n\t\t Criteria criteria = getSession().createCriteria(FlightSchedule.class);\n\t\t \n\t\t Criterion matchSourceAir = Restrictions.ilike(\"sourceAirport\",sourceAirport,MatchMode.EXACT);\n\t\t Criterion matchDestAir = Restrictions.ilike(\"destinationAirport\",destinationAirport,MatchMode.EXACT);\n\t\t Criterion matchDepartDate = Restrictions.eq(\"departureDate\",departureDate);\n\t\t \n\t\t Conjunction conjn = Restrictions.conjunction();\n\t\t conjn.add(matchDestAir);\n\t\t conjn.add(matchSourceAir);\n\t\t conjn.add(matchDepartDate);\n\t\t \n\t\t criteria.add(conjn);\n\t\t \n\t\t \n\t\t List<FlightSchedule> result= criteria.list();\n\t\t commit();\n\t\t return result;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\tbegin(); \n\t\t\t Criteria criteria = getSession().createCriteria(FlightSchedule.class);\n\t\t\t \n\t\t\t Criterion matchSourceAir = Restrictions.eq(\"sourceAirport\",sourceAirport);\n\t\t\t Criterion matchDestAir = Restrictions.eq(\"destinationAirport\",destinationAirport);\n\t\t\t Criterion matchDepartDate = Restrictions.eq(\"departureDate\",departureDate);\n\t\t\t Criterion matchArrivalDate = Restrictions.eq(\"arrivalDate\",arrivalDate);\n\t\t\t \n\t\t\t Conjunction conjn = Restrictions.conjunction();\n\t\t\t conjn.add(matchDestAir);\n\t\t\t conjn.add(matchSourceAir);\n\t\t\t conjn.add(matchDepartDate);\n\t\t\t conjn.add(matchArrivalDate);\n\t\t\t \n\t\t\t criteria.add(conjn);\n\t\t\t \n\t\t\t List<FlightSchedule> result= criteria.list();\n\t\t\t commit();\n\t\t\t return result;\n\t\t \t}\n\t\t } \n\t\t catch (HibernateException e) \n\t\t {\n\t\t rollback();\n\t\t throw new FlightScheduleException(\"Exception while getting customer desired flight schedule: \" + e.getMessage());\n\t\t }\n\t\t }",
"List<AirportDTO> getAirportsByCountry(String country);",
"DestinationDTO findDestinationByAirportCode(String airportCode);",
"public ArrayList<Flight> getArrivalFlightByAirport(Airport airport, String arrivalTime){\n\t ArrayList<Flight> list = new ArrayList<Flight>();\n \t for (int i=0; i<flights.size();i++){\n\t \t if (flights.get(i).arrivalAirport.equals(airport) & (flights.get(i).getArrivalTime().equals(arrivalTime)))\n\t \t\t list.add(flights.get(i));\n\t } \n\t \n return list;\n \n }",
"Destination findByAirportCode(String code);",
"public static ArrayList<Flight> GetAllFlightsForLocation(String departure, String destination, java.util.Date travelDate){\n \n ArrayList<Flight> Flights = new ArrayList<>();\n \n try ( \n Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM flight WHERE DepartureAirport = ' \" + departure + \" ' AND ' \" + \"DestinationAirport = ' \" + destination +\"'\")){\n \n while(resultSet.next())\n {\n Flight flight = new Flight();\n \n //sql date required\n flight.setFlightNumber(resultSet.getString(\"FlightNumber\"));\n flight.setDepartureAirport(resultSet.getString(\"DepartureAirport\"));\n flight.setDestinationAirport(resultSet.getString(\"DestinationAirport\"));\n flight.setPrice(resultSet.getDouble(\"Price\"));\n flight.setDatetime(resultSet.getDate(\"datetime\"));\n flight.setPlane(resultSet.getString(\"Plane\"));\n flight.setSeatsTaken(resultSet.getInt(\"SeatsTaken\"));\n\n Flights.add(flight);\n }\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n return Flights;\n \n \n \n }",
"@Override\n\tpublic List<Flight> findByDA_AA_DD(\n\t\tString departureAirport, String arrivalAirport, String departureDate,\n\t\tint start, int end, OrderByComparator<Flight> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tdepartureAirport = Objects.toString(departureAirport, \"\");\n\t\tarrivalAirport = Objects.toString(arrivalAirport, \"\");\n\t\tdepartureDate = Objects.toString(departureDate, \"\");\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindByDA_AA_DD;\n\t\t\t\tfinderArgs = new Object[] {\n\t\t\t\t\tdepartureAirport, arrivalAirport, departureDate\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindByDA_AA_DD;\n\t\t\tfinderArgs = new Object[] {\n\t\t\t\tdepartureAirport, arrivalAirport, departureDate, start, end,\n\t\t\t\torderByComparator\n\t\t\t};\n\t\t}\n\n\t\tList<Flight> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Flight>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (Flight flight : list) {\n\t\t\t\t\tif (!departureAirport.equals(\n\t\t\t\t\t\t\tflight.getDepartureAirport()) ||\n\t\t\t\t\t\t!arrivalAirport.equals(flight.getArrivalAirport()) ||\n\t\t\t\t\t\t!departureDate.equals(flight.getDepartureDate())) {\n\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler sb = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tsb = new StringBundler(\n\t\t\t\t\t5 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsb = new StringBundler(5);\n\t\t\t}\n\n\t\t\tsb.append(_SQL_SELECT_FLIGHT_WHERE);\n\n\t\t\tboolean bindDepartureAirport = false;\n\n\t\t\tif (departureAirport.isEmpty()) {\n\t\t\t\tsb.append(_FINDER_COLUMN_DA_AA_DD_DEPARTUREAIRPORT_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindDepartureAirport = true;\n\n\t\t\t\tsb.append(_FINDER_COLUMN_DA_AA_DD_DEPARTUREAIRPORT_2);\n\t\t\t}\n\n\t\t\tboolean bindArrivalAirport = false;\n\n\t\t\tif (arrivalAirport.isEmpty()) {\n\t\t\t\tsb.append(_FINDER_COLUMN_DA_AA_DD_ARRIVALAIRPORT_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindArrivalAirport = true;\n\n\t\t\t\tsb.append(_FINDER_COLUMN_DA_AA_DD_ARRIVALAIRPORT_2);\n\t\t\t}\n\n\t\t\tboolean bindDepartureDate = false;\n\n\t\t\tif (departureDate.isEmpty()) {\n\t\t\t\tsb.append(_FINDER_COLUMN_DA_AA_DD_DEPARTUREDATE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindDepartureDate = true;\n\n\t\t\t\tsb.append(_FINDER_COLUMN_DA_AA_DD_DEPARTUREDATE_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tsb, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsb.append(FlightModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = sb.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery query = session.createQuery(sql);\n\n\t\t\t\tQueryPos queryPos = QueryPos.getInstance(query);\n\n\t\t\t\tif (bindDepartureAirport) {\n\t\t\t\t\tqueryPos.add(departureAirport);\n\t\t\t\t}\n\n\t\t\t\tif (bindArrivalAirport) {\n\t\t\t\t\tqueryPos.add(arrivalAirport);\n\t\t\t\t}\n\n\t\t\t\tif (bindDepartureDate) {\n\t\t\t\t\tqueryPos.add(departureDate);\n\t\t\t\t}\n\n\t\t\t\tlist = (List<Flight>)QueryUtil.list(\n\t\t\t\t\tquery, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"FlightResponse getDirectFlights(String departure, String arrival, LocalDateTime departureDate,\n LocalDateTime arrivalDate) throws ValidationException, ServiceException {\n\n List<Schedule> schedules = scheduleService.getSchedules(departure, arrival, departureDate, arrivalDate);\n List<Leg> legs = new ArrayList<>();\n\n // Extract the flights from every day of every schedule.\n for (Schedule schedule : schedules) {\n for (Day day : schedule.getDays()) {\n for (Flight flight : day.getFlights()) {\n LocalDateTime dep = getLocalDateTime(schedule, day, flight.getDepartureTime());\n LocalDateTime arr = getLocalDateTime(schedule, day, flight.getArrivalTime());\n\n legs.add(new Leg(departure, arrival, dep, arr));\n }\n }\n }\n return new FlightResponse(0, legs);\n }",
"@Query(\"select f from Flight f inner join f.departureAirport a \" +\n \"where f.departure >= :departureDate \" +\n \"and a.city = :departureCity\")\n List<Flight> findFlightsByCustomRules(@Param(\"departureDate\") LocalDateTime departureDate,\n @Param(\"departureCity\") String departureCity);",
"List<AirportDTO> getAirportsByName(String name);",
"List<AirportDTO> getAirportsByIata(String iata);",
"List<AirlineFlightDelays> listArrivalFlightDelaysByAirlineAsAirlineFlightDelays();",
"java.lang.String getDepartureAirportCode();",
"List<Airline> findAirlines(String criteria);",
"public Map<String,Flight> getAllDepartureFlights() {\n\t\tMap<String,Flight> allFlights = new HashMap<String,Flight> ();\n\t\twaitForElementToAppear(departureFlightSection);\n\t\tList<WebElement> flights = departureFlightSection.findElements(By.tagName(\"li\"));\n\t\tif (!flights.isEmpty()) {\n\t\t for (WebElement flight:flights) {\n\t\t \tString flightInformation = flight.getText();\n\t\t \tString[] flightInformationElements = flightInformation.split(\"\\n\");\n\t\t \tfor (int j = 0; j < flightInformationElements.length; j++) {\n\t\t \t\tSystem.out.println(flightInformationElements[j]);\n\t\t \t}\n\t\t \tFlight newFlight = new Flight();\n\t\t \tString flightNumber = flightInformationElements[0].trim();\n\t\t \tnewFlight.setFlightNumber(flightNumber);\n\t\t \tnewFlight.setStop(flightInformationElements[1].trim());\n\t\t \tnewFlight.setDepartureTime(flightInformationElements[2].trim());\n\t\t \tnewFlight.setArrivalTime(flightInformationElements[3].trim());\n\t\t \tnewFlight.setDuration(flightInformationElements[4].trim());\n\t\t \tnewFlight.setDurationTime(flightInformationElements[5].trim());\n\t\t \tnewFlight.setBusinessPrice(flightInformationElements[6].trim());\n\t\t \tnewFlight.setAnytimePrice(flightInformationElements[7].trim());\n\t\t \tnewFlight.setGetAwayPrice(flightInformationElements[8].trim());\n\t\t \tif (!allFlights.containsKey(flightNumber))\n\t\t \t\tallFlights.put(flightNumber , newFlight);\n\t\t }\n\t\t}\n\t\treturn allFlights;\n\t}",
"public static ArrayList<Flight> search(ArrayList<Flight> flights,String departure,String arrival){\n\t\t//sort through the array to match the departure and arrival cities and puts it in a new array\n\t\tArrayList<Flight> filtered = new ArrayList<Flight>();\n\t\t// search through the array for particular flight information\n\t\tfor(Flight i: flights ){\n\t\t\t//\n\t\t\t\tif((i.departureCity.equals(departure))&&(i.destinationCity.equals(arrival))){\n\t\t\t\t\t// if they both match then add it to the new array\n\t\t\t\t\tfiltered.add(i);\n\t\t\t\t}\n\t\t}\n\t\treturn filtered;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getParameters method, of class Eval. | @Test
public void testGetParameters() {
System.out.println("getParameters");
Eval instance = new Eval();
FunctionParameter[] result = instance.getParameters();
assertEquals(this.parameters[0].getValueType(), result[0].getValueType());
assertEquals(this.parameters[0].getName(), result[0].getName());
} | [
"Parameter[] getParameters();",
"public abstract String getParameters();",
"public PA getParameters();",
"public void testGetParam() {\n Map<String, String> map = context.getParam();\n assertTrue(\"The parameters do not contain a set value\", \"value1\"\n .equals(map.get(\"myParam\"))\n || \"value2\".equals(map.get(\"myParam\")));\n doTestReadMap(map, String.class, String.class, \"parameter map\");\n }",
"@Test\n\tpublic void testParameters() {\n\t\tassertEquals(par, myReply.getParameters());\n\t}",
"public Map getParameters();",
"@Test\n public void testGetParameters() {\n System.out.println(\"getParameters\");\n DataItem instance = new DataItemImpl();\n ArrayList expResult = null;\n ArrayList result = instance.getParameters();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public Variable[] getParameters();",
"@Test\r\n\tpublic void testGetCellParameters() {\r\n\t\tdouble[] params = lattice1.getCellParameters();\r\n\t\tDoubleTestBase.assertEquals(\"params\", new double[] {\r\n\t\t\t\t12.328828005937952, 13.96424004376894, 11.968291440301744,\r\n\t\t\t\t104.34229064539636, 86.89206686722031, 25.025508299339933 },\r\n\t\t\t\tparams, EPS);\r\n\t}",
"public Iterator getParametersIterator();",
"Map<String, String> getParameters();",
"java.lang.String getParameterValue();",
"public void testParametersNumber() {\n System.out.println(\"parametersNumber\");\n int expResult = 3;\n int result = instance.parametersNumber();\n assertEquals(expResult, result);\n }",
"public Parameters getParameters() {\r\n return params;\r\n }",
"java.lang.String getParams();",
"@Test\n public void testGetValue() {\n System.out.println(\"getValue\");\n Parameter instance = new Parameter(\"key\", \"value\");\n String expResult = \"value\";\n String result = instance.getValue();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n\n }",
"public void testGetParamValues() {\n Map<String, String[]> map = context.getParamValues();\n String[] array = map.get(\"myParam\");\n assertTrue(\n \"The parameters not contain a set value\",\n array.length == 2\n && ((\"value1\".equals(array[0]) && \"value2\"\n .equals(array[1])) || (\"value1\"\n .equals(array[1]) && \"value2\".equals(array[0]))));\n doTestReadMap(map, String.class, String[].class, \"parameter values map\");\n }",
"public void checkParameters() {\n }",
"ActualParameters createActualParameters();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reacts to the cookie classes change calls enable on asociated action | public void propertyChange(PropertyChangeEvent ev) {
// filter only cookie classes changes
if (!Node.PROP_COOKIE.equals(ev.getPropertyName())) {
return;
}
// find asociated action
final CookieAction a = action.get();
if (a == null) {
return;
}
List<Reference<Node>> _nodes = this.nodes;
if (_nodes != null) {
ArrayList<Node> nonNullNodes = new ArrayList<Node>(_nodes.size());
Iterator<Reference<Node>> it = _nodes.iterator();
while (it.hasNext()) {
Node node = it.next().get();
if (node != null) {
nonNullNodes.add(node);
} else {
// If there is really a selection, it should not have been collected.
return;
}
}
final Node[] nodes2 = new Node[nonNullNodes.size()];
nonNullNodes.toArray(nodes2);
Mutex.EVENT.writeAccess(
new Runnable() {
public void run() {
a.setEnabled(a.enable(nodes2));
}
}
);
}
} | [
"public static void acceptCookies() {\n WebElement acceptButton = Browser.driver.findElement(ACCEPT_COOKIES_BUTTON);\n if(acceptButton.isDisplayed()){\n click(ACCEPT_COOKIES_BUTTON);\n }\n }",
"public void acceptCookies()\n {\n driver.findElement(By.xpath(\"//div[@class='actions couple']/button[@name='agree']\")).click();\n }",
"protected void enableActionFadeInc()\n {\n Action action = new Action(\"FadeInc\");\n iDelegateFadeInc = new DoFadeInc();\n enableAction(action, iDelegateFadeInc);\n }",
"@Test\n @SmallTest\n @Feature({\"Preferences\"})\n @Policies.Add({ @Policies.Item(key = \"DefaultCookiesSetting\", string = \"1\") })\n public void testDefaultCookiesSettingManagedAllow() throws Exception {\n checkDefaultCookiesSettingManaged(true);\n checkThirdPartyCookieBlockingManaged(false);\n // The ContentSetting is managed (and set to ALLOW) while ThirdPartyCookieBlocking is not\n // managed. This means that every button other than BLOCK is enabled.\n SettingsActivity settingsActivity =\n SiteSettingsTestUtils.startSiteSettingsCategory(SiteSettingsCategory.Type.COOKIES);\n checkFourStateCookieToggleButtonState(\n settingsActivity, CookieSettingsState.ALLOW, ToggleButtonState.EnabledUnchecked);\n checkFourStateCookieToggleButtonState(settingsActivity,\n CookieSettingsState.BLOCK_THIRD_PARTY_INCOGNITO, ToggleButtonState.EnabledChecked);\n checkFourStateCookieToggleButtonState(settingsActivity,\n CookieSettingsState.BLOCK_THIRD_PARTY, ToggleButtonState.EnabledUnchecked);\n checkFourStateCookieToggleButtonState(\n settingsActivity, CookieSettingsState.BLOCK, ToggleButtonState.Disabled);\n onView(getManagedViewMatcher(/*activeView=*/true)).check(matches(isDisplayed()));\n onView(getManagedViewMatcher(/*activeView=*/false)).check(matches(not(isDisplayed())));\n settingsActivity.finish();\n }",
"public void enableAuthentication() {\n accountNonExpired = true;\n accountNonLocked = true;\n credentialsNonExpired = true;\n enabled = true;\n }",
"@Override\n protected void updateEnabled() {\n // Try to enable actions subject to setters' logic.\n setCreateEnabled(true);\n setEditEnabled(true);\n setCopyEnabled(true);\n setCompareEnabled(true);\n setExportRejectedEnabled(true);\n setDeleteEnabled(true);\n setUnlockEnabled(true);\n setLockEnabled(true);\n setMarkUplinkedEnabled(true);\n }",
"@Test\n @SmallTest\n @Feature({\"Preferences\"})\n @Policies.Add({ @Policies.Item(key = \"DefaultCookiesSetting\", string = \"1\") })\n public void testDefaultCookiesSettingManagedAllowWithIncognitoDisabled() throws Exception {\n IncognitoUtils.setEnabledForTesting(false);\n setFourStateCookieToggle(CookieSettingsState.BLOCK_THIRD_PARTY_INCOGNITO);\n checkDefaultCookiesSettingManaged(true);\n checkThirdPartyCookieBlockingManaged(false);\n // The ContentSetting is managed (and set to ALLOW) while ThirdPartyCookieBlocking managed.\n // Cookie toggle is set to block third party incognito but since\n // incognito is disabled the button should be disabled and the allow\n // toggle should be checked.\n SettingsActivity settingsActivity =\n SiteSettingsTestUtils.startSiteSettingsCategory(SiteSettingsCategory.Type.COOKIES);\n checkFourStateCookieToggleButtonState(\n settingsActivity, CookieSettingsState.ALLOW, ToggleButtonState.EnabledChecked);\n checkFourStateCookieToggleButtonState(settingsActivity,\n CookieSettingsState.BLOCK_THIRD_PARTY_INCOGNITO, ToggleButtonState.Disabled);\n checkFourStateCookieToggleButtonState(settingsActivity,\n CookieSettingsState.BLOCK_THIRD_PARTY, ToggleButtonState.EnabledUnchecked);\n checkFourStateCookieToggleButtonState(\n settingsActivity, CookieSettingsState.BLOCK, ToggleButtonState.Disabled);\n onView(getManagedViewMatcher(/*activeView=*/true)).check(matches(isDisplayed()));\n onView(getManagedViewMatcher(/*activeView=*/false)).check(matches(not(isDisplayed())));\n settingsActivity.finish();\n }",
"protected void enterActiveState() { }",
"public boolean useCookiesForLogin();",
"public CookiesChangeListener(CookieAction a) {\n listener = org.openide.nodes.NodeOp.weakNodeListener(this, null);\n action = new WeakReference<CookieAction>(a);\n }",
"protected void enableActionSetFade()\n {\n Action action = new Action(\"SetFade\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyFade));\n iDelegateSetFade = new DoSetFade();\n enableAction(action, iDelegateSetFade);\n }",
"public void setActive(){\n paycheckController.setActive();\n }",
"public void preActive();",
"public void clickAcceptCookies() throws InterruptedException {\n Thread.sleep(1500);\n if(driver.findElements(acceptCookies).size()>0){\n driver.findElement(acceptCookies).click();\n }\n }",
"protected void enableActionBalanceInc()\n {\n Action action = new Action(\"BalanceInc\");\n iDelegateBalanceInc = new DoBalanceInc();\n enableAction(action, iDelegateBalanceInc);\n }",
"public void on(Class<?> cls) {\n\t if (cls!=null) {\n\t enabled.add(cls);\n\t disabled.remove(cls);\n\t }\n\t}",
"protected void enableActionFade()\n {\n Action action = new Action(\"Fade\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyFade));\n iDelegateFade = new DoFade();\n enableAction(action, iDelegateFade);\n }",
"public abstract void updateActionEnablement();",
"public\n\tSetCCookieInterceptor (final Map<String, String> props)\n\t{\n\t\tsuper (props); \n\t\treturn; \n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build cursor from an image name. | private Cursor buildCursor(String imgName) {
return buildCursor(imgName, false);
} | [
"public static Cursor buildCursor(String imgName, Point hotPoint) {\n if (Controller.getController().isMac()) {\n imgName += MAC_CURSOR_SUFFIX;\n } else if (Controller.getController().isWindows()) {\n imgName += WINDOWS_CURSOR_SUFFIX;\n } else {\n imgName += INACTIVE_SUFFIX;\n }\n Toolkit toolkit = Toolkit.getDefaultToolkit();\n return toolkit.createCustomCursor(toolkit.createImage(ClassLoader.getSystemResource(imgName)), hotPoint, \"\");\n }",
"private Cursor buildCursor(String imgName, boolean isAlt) {\n Point hotPoint;\n if (Controller.getController().isMac()) {\n if (isAlt) {\n hotPoint = hotPointMacAlt;\n } else {\n hotPoint = hotPointMac;\n }\n } else if (Controller.getController().isWindows()) {\n if (isAlt) {\n hotPoint = hotPointWinAlt; \n } else {\n hotPoint = hotPointWin ; \n } \n } else {\n if (isAlt) {\n hotPoint = hotPointOtherAlt; \n } else {\n hotPoint = hotPointOther; \n }\n } \n return buildCursor(imgName, hotPoint);\n }",
"@Override\n public Cursor createCustomCursor(Image cursor, Point hotSpot, String name)\n throws IndexOutOfBoundsException {\n return new WCustomCursor(cursor, hotSpot, name);\n }",
"public static Cursor getCursor(String name, Class clazz, int x, int y)\n {\n if (name.indexOf('.') >= 0) return getCursor(clazz.getResource(name), x, y);\n\n for (int i=0; i<imageExtensions.length; i++)\n {\n URL url = clazz.getResource(name+imageExtensions[i]);\n if (url != null) return getCursor(url, x, y);\n }\n return brokenCursor;\n }",
"private String makeImageUri(String name) {\n\t\tString image = name;\n\t\t// remove all white spaces\n\t\tString in = image.replaceAll(\"\\\\s+\", \"\");\n\t\t// turn to lower case\n\t\tString iname = in.toLowerCase();\n\t\tSystem.out.println(\"iName is: \" + iname);\n\t\tString mDrawableName = iname;\n\t\t// get the resId of the image\n\t\tint resID = getResources().getIdentifier(mDrawableName, \"drawable\",\n\t\t\t\tgetPackageName());\n\n\t\t// resID is notfound show default image\n\t\tif (resID == 0) {\n\t\t\tresID = getResources().getIdentifier(\"default_place\", \"drawable\",\n\t\t\t\t\tgetPackageName());\n\t\t}\n\n\t\t// make the uri\n\t\tUri imageURI = Uri.parse(\"android.resource://\" + getPackageName() + \"/\"\n\t\t\t\t+ resID);\n\t\timage = imageURI.toString();\n\t\treturn image;\n\t}",
"PlaceIcon createPlaceIconFromCursor(Cursor cursor) {\r\n int id = cursor.getInt(0);\r\n return new PlaceIcon(id, cursor.getString(1), cursor.getString(2));\r\n }",
"String getCursorName();",
"@JsonCreator\n public static ImageCropType fromString(String name) {\n return fromString(name, ImageCropType.class);\n }",
"WindowImage createImage(String image);",
"public void initialImage(String name){\n imageName = new String (name);\n imageNameField.setText(name);\n}",
"public static String imgSrc(String name, int num) {\r\n return \"img/\" + name.toLowerCase().replaceAll(\"\\\\s+\",\"\") + \r\n Integer.toString(num) +\".jpg\";\r\n \r\n }",
"public void setCursorName(String name) throws SQLException {\n currentPreparedStatement.setCursorName(name);\n }",
"private Bitmap loadImage(String name) {\r\n return BitmapFactory.decodeResource(activity.getResources(),\r\n activity.getResources().getIdentifier(name, \"drawable\", getClass().getPackage().getName()));\r\n }",
"void setCursorName(String name) throws SQLException;",
"void setCursor(ImageNode newCursor) {\n cursor = newCursor;\n }",
"ICursor createCursor();",
"public native static GameObject cursorTarget();",
"public ImageProxyOJ(String imageName) {\r\n this.imageName = imageName;\r\n }",
"public EsserImage openImage(String filename) {\r\n\t\treturn EsserParser.parse(filename);\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the portfolio record from the database corresponding to the provided portfolioCode | public static void removePortfolio(String portfolioCode) {
conn = mySQL.connectToSQL();
int portfolioId = Database.getPortfolioId(portfolioCode, conn);
PreparedStatement ps =null;
try {
ps = conn.prepareStatement("delete from Account where portfolioId =?;");
ps.setInt(1, portfolioId);
ps.executeUpdate();
ps.close();
ps = conn.prepareStatement("delete from Portfolio where portfolioId =?;");
ps.setInt(1, portfolioId);
ps.executeUpdate();
ps.close();
}catch (SQLException e) {
throw new RuntimeException(e);
}
mySQL.clean(conn, ps, null);
return;
} | [
"public static void removePortfolio(String portfolioCode) {}",
"public static void removeAsset(String assetCode) {\n\t\t\tconn = mySQL.connectToSQL();\n\t\t\tint assetId = Database.getAssetId(assetCode,conn);\n\t\t\tPreparedStatement ps =null;\n\t\t\ttry {\n\t\t\t\tps = conn.prepareStatement(\"delete from Account where assetId=?;\");\n\t\t\t\tps.setInt(1, assetId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"delete from Stock where assetId =?;\");\n\t\t\t\tps.setInt(1, assetId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"delete from PrivateInvestment where assetId =?;\");\n\t\t\t\tps.setInt(1, assetId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"delete from DepositAccount where assetId =?;\");\n\t\t\t\tps.setInt(1, assetId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"delete from Asset where assetId =?;\");\n\t\t\t\tps.setInt(1, assetId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\t\n\t\t\t\t\n\t\t\t}catch (SQLException e) {\n\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t\tmySQL.clean(conn, ps, null);\n\t\t\treturn;\n\t\t}",
"public static void removePerson(String personCode) {\r\n\t\tDatabaseInfo data = new DatabaseInfo();\r\n\t\ttry{\r\n\t\t\tPreparedStatement ps = null;\r\n\t\t\tConnection conn = data.getCon();\r\n\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT PriKey, Code FROM Persons\");\r\n\t\t\tint personKey = 0;\r\n\t\t\tArrayList<Integer> array1 = new ArrayList<Integer>();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tString code = rs.getString(\"Code\");\r\n\t\t\t\tif(code.equals(personCode)){\r\n\t\t\t\t\tpersonKey = rs.getInt(\"PriKey\");\r\n\t\t\t\t\tStatement stmt1 = conn.createStatement();\r\n\t\t\t\t\tResultSet rs1 = stmt1.executeQuery(\"SELECT PriKey, OwnerCode, ManagerCode, BeneficiaryCode FROM Portfolio\");\r\n\t\t\t\t\twhile(rs1.next()){\r\n\t\t\t\t\t\tint owner = rs1.getInt(\"OwnerCode\");\r\n\t\t\t\t\t\tint manager = rs1.getInt(\"ManagerCode\");\r\n\t\t\t\t\t\tint beneficiary = rs1.getInt(\"BeneficiaryCode\");\r\n\t\t\t\t\t\tif(owner == personKey || manager == personKey || beneficiary == personKey){\r\n\t\t\t\t\t\t\tarray1.add(rs1.getInt(\"PriKey\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString PortfolioAssets = \"DELETE FROM PortfolioAssets WHERE PortfolioAssets.PortfolioCode = ?\";\r\n\t\t\tString PersonEmail = \"DELETE FROM PersonEmail WHERE PersonEmail.PersonCode = ?\";\r\n\t\t\tString Portfolio = \"DELETE FROM Portfolio WHERE Portfolio.PriKey = ?\";\r\n\t\t\tString Person = \"DELETE FROM Persons WHERE Persons.PriKey = ?\";\r\n\t\t\tfor(int i : array1){\r\n\t\t\t\tps = conn.prepareStatement(PortfolioAssets);\r\n\t\t\t\tps.setInt(1, i);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t}\r\n\t\t\tps = conn.prepareStatement(PersonEmail);\r\n\t\t\tps.setInt(1, personKey);\r\n\t\t\tps.executeUpdate();\r\n\t\t\tfor(int i : array1){\r\n\t\t\t\tps = conn.prepareStatement(Portfolio);\r\n\t\t\t\tps.setInt(1, i);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t}\r\n\t\t\tps = conn.prepareStatement(Person);\r\n\t\t\tps.setInt(1, personKey);\r\n\t\t\tps.executeUpdate();\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\tSystem.out.println(\"InstantiationException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}",
"private void removePortfolio(String portfolioName) {\n\t\tfolioTracker.removePortfolio(portfolioName);\n\t\tgui.removePortfolioTab(portfolioName);\n\t\tgui.getButton(portfolioName, \"Add\").removeActionListener(this);\n\t\tgui.getButton(portfolioName, \"Delete Portfolio\").removeActionListener(this);\n\t}",
"public static void removePerson(String personCode) {\n\t\t\tconn = mySQL.connectToSQL();\n\t\t\tint personId = Database.getPersonId(personCode,conn);\n\t\t\tInteger brokerId = Database.getBrokerId(personId, conn);\n\t\t\tPreparedStatement ps = null;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tps = conn.prepareStatement(\"delete from Account where portfolioId = \"\n\t\t\t\t\t\t + \"(select portfolioId from Portfolio where ownerId=?);\");\n\t\t\t\tps.setInt(1, personId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"delete from Portfolio where ownerId = ?\");\n\t\t\t\tps.setInt(1, personId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"delete from Address where personId =?\");\n\t\t\t\tps.setInt(1, personId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"delete from Email where personId =?\");\n\t\t\t\tps.setInt(1, personId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"update Portfolio set beneficiaryId = null where beneficiaryId =?;\");\n\t\t\t\tps.setInt(1, personId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"delete from Person where personId =?\");\n\t\t\t\tps.setInt(1, personId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tif(brokerId!=null) {\n\t\t\t\t\tremoveBroker(brokerId);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}catch (SQLException e) {\n\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t\tmySQL.clean(conn, ps, null);\n\t\t\treturn;\n\t\t}",
"@Query(\"UPDATE Coins SET holding=0, portfolio_rank=-1 WHERE coinId=:coinId\")\n void removeCoinFromPortfolio(String coinId);",
"public static void removeAllPortfolios() {\r\n\t\tDatabaseInfo data = new DatabaseInfo();\r\n\t\ttry{\r\n\t\t\tPreparedStatement ps = null;\r\n\t\t\tConnection conn = data.getCon();\r\n\t\tps = conn.prepareStatement(\"SET SQL_SAFE_UPDATES=0\");\r\n\t\tResultSet rs = ps.executeQuery();\r\n\t\tps = conn.prepareStatement(\"DELETE FROM PortfolioAssets\");\r\n\t\tps.executeUpdate();\r\n\t\tps = conn.prepareStatement(\"DELETE FROM Portfolio\");\r\n\t\tps.executeUpdate();\r\n\t\tps = conn.prepareStatement(\"SET SQL_SAFE_UPDATES=1\");\r\n\t\trs = ps.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\tSystem.out.println(\"InstantiationException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}",
"public static void removeAllPortfolios() {\n\t\t\tconn = mySQL.connectToSQL();\n\t\t\tint numberOfPortfolio = MaxSQL.numberOfPortfolio(conn);\n\t\t\tPreparedStatement ps =null;\n\t\t\ttry {\n\t\t\t\tfor(int portfolioId =1; portfolioId<numberOfPortfolio+1;portfolioId++) {\n\t\t\t\tps = conn.prepareStatement(\"delete from Account where portfolioId =?;\");\n\t\t\t\tps.setInt(1, portfolioId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\tps = conn.prepareStatement(\"delete from Portfolio where portfolioId =?;\");\n\t\t\t\tps.setInt(1, portfolioId);\n\t\t\t\tps.executeUpdate();\n\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}catch (SQLException e) {\n\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t\tmySQL.clean(conn, ps, null);\n\t\t\treturn;\n\t\t}",
"public Object deletePortfolio(String scope, String code, DateTime effectiveAt) {\n return deletePortfolioWithServiceResponseAsync(scope, code, effectiveAt).toBlocking().single().body();\n }",
"public void removeBycode(String code);",
"@Transactional\n public void removeByCode(final String code) {\n// final Query query = new Query().setFilter(new PropertyFilter(Verifycode.CODE, FilterOperator.EQUAL, code));\n try {\n final List<Verifycode> results = verifycodeMapper.getByCode(code);\n if (1 > results.size()) {\n return;\n }\n\n verifycodeMapper.deleteByPrimaryKey(results.get(0).getOid());\n } catch (final Exception e) {\n LOGGER.error( \"Removes by code [\" + code + \"] failed\", e);\n }\n }",
"public void removeByCompanyId(long companyId);",
"public int deleteByProjectCode(String projectCode) throws DataAccessException {\n\n return getSqlMapClientTemplate().delete(\"MS-PROJECT-VIRTUAL-DELETE-BY-PROJECT-CODE\", projectCode);\n }",
"public it.ethica.esf.model.ESFMatch removeByCode(java.lang.String code)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tit.ethica.esf.NoSuchMatchException;",
"public Object deletePortfolioDetails(String scope, String code) {\n return deletePortfolioDetailsWithServiceResponseAsync(scope, code).toBlocking().single().body();\n }",
"public int deleteByProjectCode(String projectCode) throws DataAccessException {\n\n return getSqlMapClientTemplate().delete(\"MS-F-LOAN-USE-APPLY-RECEIPT-HI-DELETE-BY-PROJECT-CODE\", projectCode);\n }",
"@Override\n\tpublic void removeByCode(String code) {\n\t\tfor (Arret arret :\n\t\t\t\tfindByCode(code, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(arret);\n\t\t}\n\t}",
"public void deleteSchool(String code) {\r\n\t\tDBCollection dbCollection = getDB().getCollection(\"Schools\");\r\n\t\tBasicDBObject basicDBObject = new BasicDBObject();\r\n\t\tbasicDBObject.put(\"code\", code);\r\n\t\tDBCursor dbCursor = dbCollection.find(basicDBObject);\r\n\t\t\r\n\t\tif (dbCursor.hasNext()) {\r\n\t\t\tBasicDBObject objectFound = (BasicDBObject) dbCursor.next();\r\n\t\t\tdbCollection.remove(objectFound);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void removeProject(int index){\n\t\tprojects.remove(index);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
we load here all images to draw map when user clicks on client or deliverer, window appears with some details contains timer to refresh the map | public MapDisplay(Canvas mapCanvas, ImageView clientImageView, ImageView delivererImageView, ImageView moneyImageView, Text clientCountText, Text delivererCountText, Text moneyCountText){
//canvas = new Canvas(600,600);
this.canvas = mapCanvas;
clientsDataBaseSingleton = ClientsDataBaseSingleton.getInstance();
mapSingleton = MapSingleton.getInstance();
map = mapSingleton.getMap();
deliverersDataBaseSingleton = DeliverersDataBaseSingleton.getInstance();
//stage = new Stage();
//stage.setTitle("City Map");
Image icon = new Image("map.png");
//stage.getIcons().add(icon);
//Group root = new Group();
GraphicsContext gc = canvas.getGraphicsContext2D();
ground = new Image("/sample/Map/ground.png");
clientHouse = new Image("/sample/Map/clientHouse.jpg");
grass = new Image("/sample/Map/grass.jpg");
tree = new Image("/sample/Map/tree.jpg");
restaurant = new Image("/sample/Map/restaurant.jpg");
car = new Image("/sample/Map/car.png");
cars = new Image("/sample/Map/cars.png");
money = new Image("/sample/Map/money.png");
clientImageView.setImage(clientHouse);
clientCountText.setText(String.valueOf(clientsDataBaseSingleton.getClientDataBase().size()));
delivererImageView.setImage(car);
delivererCountText.setText(String.valueOf(deliverersDataBaseSingleton.getDelivererDataBase().size()));
moneyImageView.setImage(money);
moneyCountText.setText(String.valueOf(mapSingleton.getCashInRestaurant()));
drawMap(gc);
canvas.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event){
drawMap(gc);
int[] location = new int[2];
getTileFromMouse(event.getX(), event.getY(), location);
for(int i=0;i<clientsDataBaseSingleton.getClientDataBase().size();i++){
if(Arrays.equals(location,clientsDataBaseSingleton.getClientDataBase().get(i).getLocation())){
clientsDataBaseSingleton.getClientDataBase().get(i).introduction();
try {
if(showClientInfo(clientsDataBaseSingleton.getClientDataBase().get(i),i)){
drawMap(gc);
}
}catch(Exception ex){
System.out.println(ex);
}
break;
}
}
for(int i=0;i<deliverersDataBaseSingleton.getDelivererDataBase().size();i++){
if(Arrays.equals(location,deliverersDataBaseSingleton.getDelivererDataBase().get(i).getLocation())){
deliverersDataBaseSingleton.getDelivererDataBase().get(i).introduction();
try {
if(showClientInfo(deliverersDataBaseSingleton.getDelivererDataBase().get(i),i)){
drawMap(gc);
}
}catch(Exception ex){
System.out.println(ex);
}
break;
}
}
}
});
new AnimationTimer(){
@Override
public void handle(long now) {
clientCountText.setText(String.valueOf(clientsDataBaseSingleton.getClientDataBase() .size()));
delivererCountText.setText(String.valueOf(deliverersDataBaseSingleton.getDelivererDataBase().size()));
moneyCountText.setText(String.valueOf(mapSingleton.getCashInRestaurant()));
drawMap(gc);
}
}.start();
//root.getChildren().add(canvas);
//stage.setScene(new Scene(root));
//stage.showAndWait();
} | [
"private void loadImage()\n {\n defaultImage = new Image(\"file:resources/map2.png\");\n height = (int)defaultImage.getHeight();\n width = (int)defaultImage.getWidth();\n\n displayedMap = new Canvas(width,height);\n double minScale = Math.min(600 / width,600 / height);\n displayedMap.setScaleX(minScale);\n displayedMap.setScaleY(minScale);\n\n overlay = new Canvas(width,height);\n overlay.setScaleX(minScale);\n overlay.setScaleY(minScale);\n }",
"private void loadMapImage() {\r\n\t\t// Run service API using the url with project id and contact id\r\n\t\tnew LoadMapTask().execute(Utils.getActionAPIString(Action.MAP, null, null));\r\n\t}",
"private void updateMapPreview() {\n\n if (mapBox.getSelected().equals(Map.DemoMap.name())) {\n window.setBackground(new TextureRegionDrawable(new TextureRegion(\n new Texture(\"assets/maps/example.png\"))));\n }\n if (mapBox.getSelected().equals(Map.TwoPlayerDemo.name())) {\n window.setBackground(new TextureRegionDrawable(new TextureRegion(\n new Texture(\"assets/maps/2player2flag.png\"))));\n }\n if (mapBox.getSelected().equals(Map.BigMap.name())) {\n window.setBackground(new TextureRegionDrawable(new TextureRegion(\n new Texture(\"assets/maps/bigMap.png\"))));\n }\n\n }",
"public void showMaps() throws Exception{\r\n MapMaintenanceBaseWindow mapMaintenanceBaseWindow = null;\r\n String unitNumber=mdiForm.getUnitNumber();\r\n \r\n if( ( mapMaintenanceBaseWindow = (MapMaintenanceBaseWindow)mdiForm.getFrame(\r\n CoeusGuiConstants.MAPS_BASE_FRAME_TITLE+\" \"+unitNumber))!= null ){\r\n if( mapMaintenanceBaseWindow.isIcon() ){\r\n mapMaintenanceBaseWindow.setIcon(false);\r\n }\r\n mapMaintenanceBaseWindow.setSelected( true );\r\n return;\r\n }\r\n \r\n MapMaintenanceBaseWindowController mapMaintenanceBaseWindowController = new MapMaintenanceBaseWindowController(unitNumber,false);\r\n mapMaintenanceBaseWindowController.display();\r\n \r\n }",
"public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private synchronized void drawMap(){\n\t\t\n\t\tthis.removeAll();\n\t\tint width = map.length;\n\t\tint height = map[0].length;\n\t\t\n\t\tJPanel mapPanel = new innerPanel(new GridLayout(height, width));\n\t\tvisualMap = new VisualTile[width][height];\n\t\t\n\t\tfor(int i = 0; i < height; i++) {\n\t\t\tfor(int j = 0; j < width; j++) {\n\t\t\t\t\tvisualMap[j][i] = createTile(map[j][i]);\n\t\t\t\t\tvisualMap[j][i].setActionCommand(ActionCommandHelper.encodeActionCommand(new String[]{Integer.toString(j), Integer.toString(i)}));\n\t\t\t\t\tvisualMap[j][i].addMouseListener(this);\n\t\t\t\t\tmapPanel.add(visualMap[j][i]);\n\t\t\t\t}\n\t\t\t}\n\t\tthis.add(mapPanel);\n\t}",
"public void mapChanged(){\r\n\t\tmapView.setImageBitmap(map.getMap());\r\n\t}",
"@Override\n public void runPolygons() {\n try {\n mmc_.displaySLMImage(slm_);\n } catch (Exception ex) {\n app_.logs().showError(ex);\n }\n }",
"@Override\r\n public void mapshow() {\r\n showMap l_showmap = new showMap(d_playerList, d_country);\r\n l_showmap.check();\r\n }",
"public void drawMap() {\n\t\t//draws initital map with ocean squares and islands based\n\t\tfor(int x = 0; x < dimensionsX; x++){\n\t\tfor(int y = 0; y < dimensionsY; y++){\n\t\t\tRectangle rect = new Rectangle(x*scale,y*scale,scale,scale);\n\t\t\trect.setStroke(Color.GREY); // We want the black outline\n\t\t\tif(OceanMap.getInstance().getMap()[x][y]==1) {\n\t\t\t\t//Image islandImage = new Image(\"columbusGame//island.jpg\",scale,scale,true,true);\n\t\t\t\t\n\t\t\t\tImage islandImage;\n\t\t\t\ttry{\n\t\t\t\t\tislandImage = new Image(OceanLayout.class.getResourceAsStream(\"/resources/island.jpg\"), scale, scale, true, true);\n\t\t\t\t\t//Image islandImage = new Image(\"columbusGame//resources//island.jpg\",scale,scale,true,true);\n\t\t\t\t\t//creates and adds an island image to the root\n\t\t\t\t\trect.setFill(new ImagePattern(islandImage)); \n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(\"Amine got an exception: \" + e);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//Neutral squares or ocean == 0\n\t\t\t\trect.setFill(Color.PALETURQUOISE); \n\n\t\t\t}\n\t\t\troot.getChildren().add(rect); // Add to the node tree in the pane\n\t\t}\n\t\t}\n\t}",
"private void init() {\n\t\trunning = true;\n\t\timage = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);\n\t\tg = (Graphics2D) image.getGraphics();\n\t\ttheMap.loadTiles(\"resizedTiles2.png\");\n\t}",
"@FXML\r\n public void openMap() throws IOException {\r\n Image image = new Image(\"/sample/WC.jpg\");\r\n img.setImage(image);\r\n\r\n\r\n setPlaceList(loadList());\r\n setEdgeList(loadEdgeList());\r\n\r\n for(int i = 0; i < placeList.size(); i++){\r\n From.getItems().add(placeList.get(i));\r\n }\r\n From.setValue(placeList.get(0));\r\n\r\n for(int i = 0; i < placeList.size(); i++){\r\n Through.getItems().add(placeList.get(i));\r\n }\r\n Through.setValue(placeList.get(0));\r\n\r\n for(int i = 0; i < placeList.size(); i++){\r\n To.getItems().add(placeList.get(i));\r\n }\r\n To.setValue(placeList.get(1));\r\n\r\n\r\n connectEdges();\r\n }",
"public void reDrawMap() {\n\t\tThread t = new Thread(renderer);\n\t\tt.setPriority(1);\n\t\tt.start();\n\t}",
"private void loadSpashScreen() {\n\t\t//Création de la fenêtre\n \tJWindow window = new JWindow();\n \t\n \twindow.getContentPane().add(\n\t\t new JLabel(\"\", new ImageIcon(this.getClass().getResource(\"/ageofmottu.png\")), SwingConstants.CENTER));\n \t\n \t//Chargement au milieu de l'écran\n \tDimension d = Toolkit.getDefaultToolkit().getScreenSize();\n \twindow.setSize(290, 347);\n \tint x = (int) ((d.getWidth() - window.getWidth())/ 2);\n \tint y = (int) ((d.getHeight() - window.getHeight())/ 2);\n \twindow.setLocation(x, y);\n \twindow.setVisible(true);\n \t\n \t//On attend 2 secondes pour la fermeture du splashscreen\n \ttry {\n \t Thread.sleep(2000);\n \t} catch (InterruptedException e) {\n \t e.printStackTrace();\n \t}\n \t\n \t//On ferme le slashScreen\n \twindow.setVisible(false);\n \twindow.dispose();\t\t\n\t}",
"private void drawFloorMap() {\n viewModel.setMapModelFloor(floorNum);\n viewModel.setPossibleLocations(viewModel.getPossibleCellIds());\n imageAreaMap.startDrawing();\n }",
"@Override\n public void onMapLoaded() {\n LoadSpots();\n }",
"public void LoadSpots() {\n LatLngBounds bounds = gMap.getProjection().getVisibleRegion().latLngBounds;\n double nelat = bounds.northeast.latitude;\n double swlat = bounds.southwest.latitude;\n BackgroundTask backgroundTask = new BackgroundTask(getActivity());\n backgroundTask.execute(nelat, swlat);\n }",
"private void setOverlay() {\n //Initial Map\n mapOverlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(R.drawable.kmuttmap))\n .position(position_Initmap, map_wide, map_high);\n\n //Red Line\n red_lineOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(R.drawable.red_line))\n .position(position_Redline, redline_wide, redline_high);\n\n //Yellow Line\n yellow_lineOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(R.drawable.yellow_line))\n .position(position_Yellowline, yellowline_wide, yellowline_high);\n\n //Map with label\n map_labelOverlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(R.drawable.kmuttmap_label2))\n .position(position_Initmap, map_wide, map_high);\n\n }",
"public void run() {\n mMap.animateCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 50));\n showArea(sizeofgps);\n // mMap.getUiSettings().setScrollGesturesEnabled(false);\n\n\n /* back_to_farm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 18));\n mMap.animateCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 50));\n //mMap.setLatLngBoundsForCameraTarget();\n }\n });*/\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AxiosRequest__Group__6__Impl" $ANTLR start "rule__AxiosRequest__Group__7" InternalMyDsl.g:12729:1: rule__AxiosRequest__Group__7 : rule__AxiosRequest__Group__7__Impl rule__AxiosRequest__Group__8 ; | public final void rule__AxiosRequest__Group__7() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:12733:1: ( rule__AxiosRequest__Group__7__Impl rule__AxiosRequest__Group__8 )
// InternalMyDsl.g:12734:2: rule__AxiosRequest__Group__7__Impl rule__AxiosRequest__Group__8
{
pushFollow(FOLLOW_122);
rule__AxiosRequest__Group__7__Impl();
state._fsp--;
pushFollow(FOLLOW_2);
rule__AxiosRequest__Group__8();
state._fsp--;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__AxiosRequest__Group__7__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:12745:1: ( ( ( rule__AxiosRequest__Group_7__0 )? ) )\n // InternalMyDsl.g:12746:1: ( ( rule__AxiosRequest__Group_7__0 )? )\n {\n // InternalMyDsl.g:12746:1: ( ( rule__AxiosRequest__Group_7__0 )? )\n // InternalMyDsl.g:12747:2: ( rule__AxiosRequest__Group_7__0 )?\n {\n before(grammarAccess.getAxiosRequestAccess().getGroup_7()); \n // InternalMyDsl.g:12748:2: ( rule__AxiosRequest__Group_7__0 )?\n int alt79=2;\n int LA79_0 = input.LA(1);\n\n if ( (LA79_0==134) ) {\n alt79=1;\n }\n switch (alt79) {\n case 1 :\n // InternalMyDsl.g:12748:3: rule__AxiosRequest__Group_7__0\n {\n pushFollow(FOLLOW_2);\n rule__AxiosRequest__Group_7__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAxiosRequestAccess().getGroup_7()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AxiosRequest__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:12706:1: ( rule__AxiosRequest__Group__6__Impl rule__AxiosRequest__Group__7 )\n // InternalMyDsl.g:12707:2: rule__AxiosRequest__Group__6__Impl rule__AxiosRequest__Group__7\n {\n pushFollow(FOLLOW_122);\n rule__AxiosRequest__Group__6__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__AxiosRequest__Group__7();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AxiosRequest__Group_7__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:12814:1: ( rule__AxiosRequest__Group_7__1__Impl )\n // InternalMyDsl.g:12815:2: rule__AxiosRequest__Group_7__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__AxiosRequest__Group_7__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AxiosRequest__Group_7__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:12787:1: ( rule__AxiosRequest__Group_7__0__Impl rule__AxiosRequest__Group_7__1 )\n // InternalMyDsl.g:12788:2: rule__AxiosRequest__Group_7__0__Impl rule__AxiosRequest__Group_7__1\n {\n pushFollow(FOLLOW_123);\n rule__AxiosRequest__Group_7__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__AxiosRequest__Group_7__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AxiosRequest__Group__8() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:12760:1: ( rule__AxiosRequest__Group__8__Impl )\n // InternalMyDsl.g:12761:2: rule__AxiosRequest__Group__8__Impl\n {\n pushFollow(FOLLOW_2);\n rule__AxiosRequest__Group__8__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AxiosRequest__Group_7__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:12799:1: ( ( 'data:' ) )\n // InternalMyDsl.g:12800:1: ( 'data:' )\n {\n // InternalMyDsl.g:12800:1: ( 'data:' )\n // InternalMyDsl.g:12801:2: 'data:'\n {\n before(grammarAccess.getAxiosRequestAccess().getDataKeyword_7_0()); \n match(input,134,FOLLOW_2); \n after(grammarAccess.getAxiosRequestAccess().getDataKeyword_7_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Action__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:2244:1: ( rule__Action__Group__7__Impl )\n // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:2245:2: rule__Action__Group__7__Impl\n {\n pushFollow(FOLLOW_rule__Action__Group__7__Impl_in_rule__Action__Group__74576);\n rule__Action__Group__7__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Action__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:9621:1: ( rule__Action__Group__7__Impl rule__Action__Group__8 )\n // InternalMyDsl.g:9622:2: rule__Action__Group__7__Impl rule__Action__Group__8\n {\n pushFollow(FOLLOW_32);\n rule__Action__Group__7__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Action__Group__8();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Rule__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:8835:1: ( rule__Rule__Group__7__Impl )\n // InternalDsl.g:8836:2: rule__Rule__Group__7__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Rule__Group__7__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Company__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1089:1: ( rule__Company__Group__7__Impl rule__Company__Group__8 )\n // InternalMyDsl.g:1090:2: rule__Company__Group__7__Impl rule__Company__Group__8\n {\n pushFollow(FOLLOW_9);\n rule__Company__Group__7__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Company__Group__8();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Action__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:11322:1: ( rule__Action__Group__7__Impl )\n // InternalMyDsl.g:11323:2: rule__Action__Group__7__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Action__Group__7__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__RequestHandler__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentDefinition.g:3571:1: ( rule__RequestHandler__Group__7__Impl )\n // InternalComponentDefinition.g:3572:2: rule__RequestHandler__Group__7__Impl\n {\n pushFollow(FOLLOW_2);\n rule__RequestHandler__Group__7__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AxiosRequest__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:12679:1: ( rule__AxiosRequest__Group__5__Impl rule__AxiosRequest__Group__6 )\n // InternalMyDsl.g:12680:2: rule__AxiosRequest__Group__5__Impl rule__AxiosRequest__Group__6\n {\n pushFollow(FOLLOW_73);\n rule__AxiosRequest__Group__5__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__AxiosRequest__Group__6();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Empresa__Group__7__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:693:1: ( ( ( rule__Empresa__Group_7__0 )? ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:694:1: ( ( rule__Empresa__Group_7__0 )? )\n {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:694:1: ( ( rule__Empresa__Group_7__0 )? )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:695:1: ( rule__Empresa__Group_7__0 )?\n {\n before(grammarAccess.getEmpresaAccess().getGroup_7()); \n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:696:1: ( rule__Empresa__Group_7__0 )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==22) ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:696:2: rule__Empresa__Group_7__0\n {\n pushFollow(FollowSets000.FOLLOW_rule__Empresa__Group_7__0_in_rule__Empresa__Group__7__Impl1371);\n rule__Empresa__Group_7__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getEmpresaAccess().getGroup_7()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Operation__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalXModel.g:2023:1: ( rule__Operation__Group__7__Impl rule__Operation__Group__8 )\n // InternalXModel.g:2024:2: rule__Operation__Group__7__Impl rule__Operation__Group__8\n {\n pushFollow(FOLLOW_16);\n rule__Operation__Group__7__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Operation__Group__8();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClass__Group__7__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalXModel.g:901:1: ( ( ( rule__XClass__Group_7__0 )? ) )\n // InternalXModel.g:902:1: ( ( rule__XClass__Group_7__0 )? )\n {\n // InternalXModel.g:902:1: ( ( rule__XClass__Group_7__0 )? )\n // InternalXModel.g:903:2: ( rule__XClass__Group_7__0 )?\n {\n before(grammarAccess.getXClassAccess().getGroup_7()); \n // InternalXModel.g:904:2: ( rule__XClass__Group_7__0 )?\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( (LA9_0==31) ) {\n alt9=1;\n }\n switch (alt9) {\n case 1 :\n // InternalXModel.g:904:3: rule__XClass__Group_7__0\n {\n pushFollow(FOLLOW_2);\n rule__XClass__Group_7__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getXClassAccess().getGroup_7()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Operation__Group__7__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:6071:1: ( ( ( rule__Operation__Group_7__0 )? ) )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:6072:1: ( ( rule__Operation__Group_7__0 )? )\r\n {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:6072:1: ( ( rule__Operation__Group_7__0 )? )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:6073:1: ( rule__Operation__Group_7__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOperationAccess().getGroup_7()); \r\n }\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:6074:1: ( rule__Operation__Group_7__0 )?\r\n int alt46=2;\r\n int LA46_0 = input.LA(1);\r\n\r\n if ( (LA46_0==RULE_ID||(LA46_0>=12 && LA46_0<=23)||LA46_0==27||LA46_0==51||LA46_0==71||(LA46_0>=78 && LA46_0<=79)) ) {\r\n alt46=1;\r\n }\r\n switch (alt46) {\r\n case 1 :\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:6074:2: rule__Operation__Group_7__0\r\n {\r\n pushFollow(FOLLOW_rule__Operation__Group_7__0_in_rule__Operation__Group__7__Impl12314);\r\n rule__Operation__Group_7__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOperationAccess().getGroup_7()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__AxiosRequest__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:12556:1: ( ( 'axiosRequest' ) )\n // InternalMyDsl.g:12557:1: ( 'axiosRequest' )\n {\n // InternalMyDsl.g:12557:1: ( 'axiosRequest' )\n // InternalMyDsl.g:12558:2: 'axiosRequest'\n {\n before(grammarAccess.getAxiosRequestAccess().getAxiosRequestKeyword_0()); \n match(input,131,FOLLOW_2); \n after(grammarAccess.getAxiosRequestAccess().getAxiosRequestKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClass__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalXModel.g:889:1: ( rule__XClass__Group__7__Impl rule__XClass__Group__8 )\n // InternalXModel.g:890:2: rule__XClass__Group__7__Impl rule__XClass__Group__8\n {\n pushFollow(FOLLOW_10);\n rule__XClass__Group__7__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__XClass__Group__8();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleAttribute" $ANTLR start "entryRuleReference" ../metabup.mm.texteditor/srcgen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:424:1: entryRuleReference returns [EObject current=null] : iv_ruleReference= ruleReference EOF ; | public final EObject entryRuleReference() throws RecognitionException {
EObject current = null;
EObject iv_ruleReference = null;
try {
// ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:425:2: (iv_ruleReference= ruleReference EOF )
// ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:426:2: iv_ruleReference= ruleReference EOF
{
newCompositeNode(grammarAccess.getReferenceRule());
pushFollow(FollowSets000.FOLLOW_ruleReference_in_entryRuleReference821);
iv_ruleReference=ruleReference();
state._fsp--;
current =iv_ruleReference;
match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleReference831);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
} | [
"public final EObject entryRuleAttribute() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAttribute = null;\n\n\n try {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:206:2: (iv_ruleAttribute= ruleAttribute EOF )\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:207:2: iv_ruleAttribute= ruleAttribute EOF\n {\n newCompositeNode(grammarAccess.getAttributeRule()); \n pushFollow(FOLLOW_ruleAttribute_in_entryRuleAttribute377);\n iv_ruleAttribute=ruleAttribute();\n\n state._fsp--;\n\n current =iv_ruleAttribute; \n match(input,EOF,FOLLOW_EOF_in_entryRuleAttribute387); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject entryRuleEAttributePropertyReference() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEAttributePropertyReference = null;\n\n\n try {\n // InternalDsl.g:2772:2: (iv_ruleEAttributePropertyReference= ruleEAttributePropertyReference EOF )\n // InternalDsl.g:2773:2: iv_ruleEAttributePropertyReference= ruleEAttributePropertyReference EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getEAttributePropertyReferenceRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleEAttributePropertyReference=ruleEAttributePropertyReference();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleEAttributePropertyReference; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject entryRuleAttribute() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAttribute = null;\n\n\n try {\n // ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:306:2: (iv_ruleAttribute= ruleAttribute EOF )\n // ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:307:2: iv_ruleAttribute= ruleAttribute EOF\n {\n newCompositeNode(grammarAccess.getAttributeRule()); \n pushFollow(FollowSets000.FOLLOW_ruleAttribute_in_entryRuleAttribute596);\n iv_ruleAttribute=ruleAttribute();\n\n state._fsp--;\n\n current =iv_ruleAttribute; \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleAttribute606); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject entryRuleAttribute() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAttribute = null;\n\n\n try {\n // InternalIfcBrick.g:479:50: (iv_ruleAttribute= ruleAttribute EOF )\n // InternalIfcBrick.g:480:2: iv_ruleAttribute= ruleAttribute EOF\n {\n newCompositeNode(grammarAccess.getAttributeRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAttribute=ruleAttribute();\n\n state._fsp--;\n\n current =iv_ruleAttribute; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final EObject entryRuleAttribute() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAttribute = null;\n\n\n try {\n // InternalPlayMorphiaModel.g:301:50: (iv_ruleAttribute= ruleAttribute EOF )\n // InternalPlayMorphiaModel.g:302:2: iv_ruleAttribute= ruleAttribute EOF\n {\n newCompositeNode(grammarAccess.getAttributeRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAttribute=ruleAttribute();\n\n state._fsp--;\n\n current =iv_ruleAttribute; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final EObject entryRuleAttribute() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAttribute = null;\n\n\n try {\n // InternalDotLanguage.g:490:50: (iv_ruleAttribute= ruleAttribute EOF )\n // InternalDotLanguage.g:491:2: iv_ruleAttribute= ruleAttribute EOF\n {\n newCompositeNode(grammarAccess.getAttributeRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAttribute=ruleAttribute();\n\n state._fsp--;\n\n current =iv_ruleAttribute; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final EObject entryRuleAttribute() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAttribute = null;\n\n\n try {\n // InternalDsl.g:3531:50: (iv_ruleAttribute= ruleAttribute EOF )\n // InternalDsl.g:3532:2: iv_ruleAttribute= ruleAttribute EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getAttributeRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleAttribute=ruleAttribute();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleAttribute; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final EObject entryRuleReferenceTerm() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleReferenceTerm = null;\n\n\n try {\n // ../org.osate.xtext.aadl2.properties/src-gen/org/osate/xtext/aadl2/properties/parser/antlr/internal/InternalPropertiesParser.g:752:2: (iv_ruleReferenceTerm= ruleReferenceTerm EOF )\n // ../org.osate.xtext.aadl2.properties/src-gen/org/osate/xtext/aadl2/properties/parser/antlr/internal/InternalPropertiesParser.g:753:2: iv_ruleReferenceTerm= ruleReferenceTerm EOF\n {\n newCompositeNode(grammarAccess.getReferenceTermRule()); \n pushFollow(FollowSets000.FOLLOW_ruleReferenceTerm_in_entryRuleReferenceTerm1659);\n iv_ruleReferenceTerm=ruleReferenceTerm();\n\n state._fsp--;\n\n current =iv_ruleReferenceTerm; \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleReferenceTerm1669); \n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }",
"public final EObject entryRuleAttribute() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleAttribute = null;\r\n\r\n\r\n try {\r\n // ../at.ac.tuwien.big.forms.entity/src-gen/at/ac/tuwien/big/forms/entity/parser/antlr/internal/InternalEntity.g:285:2: (iv_ruleAttribute= ruleAttribute EOF )\r\n // ../at.ac.tuwien.big.forms.entity/src-gen/at/ac/tuwien/big/forms/entity/parser/antlr/internal/InternalEntity.g:286:2: iv_ruleAttribute= ruleAttribute EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getAttributeRule()); \r\n }\r\n pushFollow(FollowSets000.FOLLOW_ruleAttribute_in_entryRuleAttribute566);\r\n iv_ruleAttribute=ruleAttribute();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleAttribute; \r\n }\r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleAttribute576); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public final EObject entryRuleReferenceTerm() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleReferenceTerm = null;\n\n\n try {\n // InternalJsonParser.g:1347:54: (iv_ruleReferenceTerm= ruleReferenceTerm EOF )\n // InternalJsonParser.g:1348:2: iv_ruleReferenceTerm= ruleReferenceTerm EOF\n {\n newCompositeNode(grammarAccess.getReferenceTermRule()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleReferenceTerm=ruleReferenceTerm();\n\n state._fsp--;\n\n current =iv_ruleReferenceTerm; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final EObject entryRuleReferenceType() throws RecognitionException {\n EObject current = null;\n int entryRuleReferenceType_StartIndex = input.index();\n EObject iv_ruleReferenceType = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 29) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1760:2: (iv_ruleReferenceType= ruleReferenceType EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1761:2: iv_ruleReferenceType= ruleReferenceType EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getReferenceTypeRule()); \n }\n pushFollow(FOLLOW_ruleReferenceType_in_entryRuleReferenceType3263);\n iv_ruleReferenceType=ruleReferenceType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleReferenceType; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleReferenceType3273); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 29, entryRuleReferenceType_StartIndex); }\n }\n return current;\n }",
"public final EObject ruleFeature() throws RecognitionException {\n EObject current = null;\n\n EObject this_Attribute_0 = null;\n\n EObject this_Reference_1 = null;\n\n\n enterRule(); \n \n try {\n // ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:164:28: ( (this_Attribute_0= ruleAttribute | this_Reference_1= ruleReference ) )\n // ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:165:1: (this_Attribute_0= ruleAttribute | this_Reference_1= ruleReference )\n {\n // ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:165:1: (this_Attribute_0= ruleAttribute | this_Reference_1= ruleReference )\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0==18) ) {\n alt2=1;\n }\n else if ( (LA2_0==23) ) {\n alt2=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 2, 0, input);\n\n throw nvae;\n }\n switch (alt2) {\n case 1 :\n // ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:166:5: this_Attribute_0= ruleAttribute\n {\n \n newCompositeNode(grammarAccess.getFeatureAccess().getAttributeParserRuleCall_0()); \n \n pushFollow(FollowSets000.FOLLOW_ruleAttribute_in_ruleFeature288);\n this_Attribute_0=ruleAttribute();\n\n state._fsp--;\n\n \n current = this_Attribute_0; \n afterParserOrEnumRuleCall();\n \n\n }\n break;\n case 2 :\n // ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:176:5: this_Reference_1= ruleReference\n {\n \n newCompositeNode(grammarAccess.getFeatureAccess().getReferenceParserRuleCall_1()); \n \n pushFollow(FollowSets000.FOLLOW_ruleReference_in_ruleFeature315);\n this_Reference_1=ruleReference();\n\n state._fsp--;\n\n \n current = this_Reference_1; \n afterParserOrEnumRuleCall();\n \n\n }\n break;\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject entryRuleReferenceTerm() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleReferenceTerm = null;\n\n\n try {\n // InternalSafetyParser.g:10575:54: (iv_ruleReferenceTerm= ruleReferenceTerm EOF )\n // InternalSafetyParser.g:10576:2: iv_ruleReferenceTerm= ruleReferenceTerm EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getReferenceTermRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleReferenceTerm=ruleReferenceTerm();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleReferenceTerm; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final EObject entryRuleReferenceTerm() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleReferenceTerm = null;\n\n\n try {\n // InternalAgreeParser.g:8971:2: (iv_ruleReferenceTerm= ruleReferenceTerm EOF )\n // InternalAgreeParser.g:8972:2: iv_ruleReferenceTerm= ruleReferenceTerm EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getReferenceTermRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleReferenceTerm=ruleReferenceTerm();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleReferenceTerm; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }",
"public final String entryRuleFunctionReference() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleFunctionReference = null;\n\n\n try {\n // InternalUclid.g:5049:57: (iv_ruleFunctionReference= ruleFunctionReference EOF )\n // InternalUclid.g:5050:2: iv_ruleFunctionReference= ruleFunctionReference EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getFunctionReferenceRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleFunctionReference=ruleFunctionReference();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleFunctionReference.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final String entryRuleItemRef() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleItemRef = null;\n\n\n try {\n // InternalSitemap.g:6331:47: (iv_ruleItemRef= ruleItemRef EOF )\n // InternalSitemap.g:6332:2: iv_ruleItemRef= ruleItemRef EOF\n {\n newCompositeNode(grammarAccess.getItemRefRule()); \n pushFollow(FOLLOW_1);\n iv_ruleItemRef=ruleItemRef();\n\n state._fsp--;\n\n current =iv_ruleItemRef.getText(); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public final EObject entryRuleEntityReference() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEntityReference = null;\n\n\n try {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:422:2: (iv_ruleEntityReference= ruleEntityReference EOF )\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:423:2: iv_ruleEntityReference= ruleEntityReference EOF\n {\n newCompositeNode(grammarAccess.getEntityReferenceRule()); \n pushFollow(FOLLOW_ruleEntityReference_in_entryRuleEntityReference954);\n iv_ruleEntityReference=ruleEntityReference();\n\n state._fsp--;\n\n current =iv_ruleEntityReference; \n match(input,EOF,FOLLOW_EOF_in_entryRuleEntityReference964); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject entryRuleFieldReference() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFieldReference = null;\n\n\n try {\n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:254:2: (iv_ruleFieldReference= ruleFieldReference EOF )\n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:255:2: iv_ruleFieldReference= ruleFieldReference EOF\n {\n newCompositeNode(grammarAccess.getFieldReferenceRule()); \n pushFollow(FOLLOW_ruleFieldReference_in_entryRuleFieldReference479);\n iv_ruleFieldReference=ruleFieldReference();\n\n state._fsp--;\n\n current =iv_ruleFieldReference; \n match(input,EOF,FOLLOW_EOF_in_entryRuleFieldReference489); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject entryRuletypeReference() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruletypeReference = null;\n\n\n try {\n // InternalMASL.g:199:54: (iv_ruletypeReference= ruletypeReference EOF )\n // InternalMASL.g:200:2: iv_ruletypeReference= ruletypeReference EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTypeReferenceRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruletypeReference=ruletypeReference();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruletypeReference; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes one of two listeners added before and and fires event by mean of object relation. Has OK status if the removed listener wasn't called. The following method tests are to be completed successfully before : addEventListener() : to have added listeners | public boolean _removeEventListener() {
list.notifiedEvent = null;
System.out.println("remove first listener");
oObj.removeEventListener(list);
System.out.println("fire event");
prod.fireEvent() ;
try {
Thread.sleep(500);
}
catch (InterruptedException ex) {
}
if (list.notifiedEvent == null) {
System.out.println("listener wasn't called -- OK");
}
return list.notifiedEvent == null;
} | [
"private void testRemoveEventListener002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRemoveEventListener002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(TestExecPluginActivator.ROOT,\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tDmtEventListenerImpl event = new DmtEventListenerImpl();\n\t\t\t// Does not compile anymore\n\t\t\t\n//\t\t\ttbc.getDmtAdmin().addEventListener(DmtConstants.ALL_DMT_EVENTS,\n//\t\t\t\t\tTestExecPluginActivator.ROOT,event);\n//\t\t\t\n//\t\t\ttbc.getDmtAdmin().removeEventListener(event);\n//\t\t\t\n//\t\t\tsession.createInteriorNode(TestExecPluginActivator.INEXISTENT_NODE);\n//\t\t\t\n//\t\t\tsynchronized (tbc) {\n//\t\t\t\ttbc.wait(DmtConstants.WAITING_TIME);\n//\t\t\t}\n//\t\t\t\n//\t\t\ttbc.assertEquals(\"Asserts that the listener does not receive change notifications after DmtAdmin.removeEventListener() is called\",0,event.getCount());\n\n\t\t\tTestCase.fail(\"API changed - pkriens\");\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}",
"public void testWrongListenerRemove()\n {\n testListenerAdd();\n testObject.removeRecordListener(new MockListener());\n }",
"public void testListenerRemove()\n {\n testListenerAdd();\n testObject.removeRecordListener(listener);\n try\n {\n testObject.addRecordListener(new MockListener());\n }\n catch (TooManyListenersException e)\n {\n fail(\"Threw TooManyListener Exception\\n\" + e.toString());\n }\n }",
"public void testNullListenerRemove()\n {\n testListenerAdd();\n testObject.removeRecordListener(null);\n }",
"public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }",
"public void testDoubleAdd()\n {\n testListenerAdd();\n try\n {\n testObject.addRecordListener(new MockListener());\n fail(\"Was able to add two RecordListener objects\");\n }\n catch (TooManyListenersException e)\n {\n }\n }",
"public void testMultipleListeners() {\n\n SessionListener l1 = new SessionAdapter() {\n\n /**\n * This method is called when a node is added.\n */\n @Override\n\t\t\tpublic void nodeAdded(SessionEvent event) {\n System.out.println(\"HERE\");\n setEvent1Received(true);\n }\n };\n SessionListener l2 = new SessionAdapter() {\n\n /**\n * This method is called when a node is added.\n */\n @Override\n\t\t\tpublic void nodeAdded(SessionEvent event) {\n setEvent2Received(true);\n }\n };\n\n //Add both listeners.\n this.sessionSupport.addSessionListener(l1);\n this.sessionSupport.addSessionListener(l2);\n setEvent1Received(false);\n setEvent2Received(false);\n this.sessionSupport.fireNodeAdded(node1);\n assertTrue(isEvent1Received());\n assertTrue(isEvent2Received());\n\n // Remove one of the listeners.\n //Add both listeners.\n this.sessionSupport.removeSessionListener(l1);\n setEvent1Received(false);\n setEvent2Received(false);\n this.sessionSupport.fireNodeAdded(node1);\n assertTrue(!isEvent1Received());\n assertTrue(isEvent2Received());\n }",
"public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }",
"public void testEventAfterDetach() {\n \n BadGuyLook look = new BadGuyLook( \"BAD_GUY_LOOK\" );\n BadGuy ro = new BadGuy( \"First name\", new ArrayList() );\n BadGuyLookListener ll = new BadGuyLookListener();\n \n org.netbeans.modules.looks.Accessor.DEFAULT.addLookListener( look, ro, ll ); \n ro.setName( \"Second name\" );\n \n assertEquals( \"There should be one name change\", 1, ll.names.size() );\n \n org.netbeans.modules.looks.Accessor.DEFAULT.removeLookListener( look, ro, ll );\n \n ro.setName( \"Third name\" );\n \n assertEquals( \"There should be still only one name change\", 1, ll.names.size() );\n }",
"@Test\n public void testAddRemoveNodeNavigatorListener() {\n MyNodeNavigatorListener myNodeNavigatorListener = new MyNodeNavigatorListener();\n assertEquals( 0, myNodeNavigatorListener.nodeLayoutChangedCount );\n\n NodeNavigatorImpl nodeNavigatorImpl = new NodeNavigatorImpl();\n nodeNavigatorImpl.notifyNodeNavigatorListeners();\n assertEquals( 0, myNodeNavigatorListener.nodeLayoutChangedCount );\n\n nodeNavigatorImpl.addNodeNavigatorListener( myNodeNavigatorListener );\n nodeNavigatorImpl.notifyNodeNavigatorListeners();\n assertEquals( 1, myNodeNavigatorListener.nodeLayoutChangedCount );\n\n nodeNavigatorImpl.notifyNodeNavigatorListeners();\n assertEquals( 2, myNodeNavigatorListener.nodeLayoutChangedCount );\n\n nodeNavigatorImpl.removeNodeNavigatorListener( myNodeNavigatorListener );\n nodeNavigatorImpl.notifyNodeNavigatorListeners();\n assertEquals( 2, myNodeNavigatorListener.nodeLayoutChangedCount );\n }",
"public void testRemoveGUIEventListener1_Accuracy() {\n Map<Class, Set<GUIEventListener>> map = (Map<Class, Set<GUIEventListener>>) getPrivateField(EventManager.class,\n eventManager, \"guiEventListeners\");\n Set<GUIEventListener> listeners1 = new HashSet<GUIEventListener>();\n listeners1.add(gUIEventListener1);\n listeners1.add(gUIEventListener2);\n map.put(RedoChangesEvent.class, listeners1);\n\n Set<GUIEventListener> listeners2 = new HashSet<GUIEventListener>();\n listeners2.add(gUIEventListener3);\n map.put(UndoChangesEvent.class, listeners2);\n\n // Check all the listeners have been added correctly\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener1));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener2));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, UndoChangesEvent.class, gUIEventListener3));\n // Remove the listeners\n eventManager.removeGUIEventListener(gUIEventListener1, RedoChangesEvent.class);\n eventManager.removeGUIEventListener(gUIEventListener2, RedoChangesEvent.class);\n eventManager.removeGUIEventListener(gUIEventListener3, UndoChangesEvent.class);\n\n // Check all the listeners have been removed correctly\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener1));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener2));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, UndoChangesEvent.class, gUIEventListener3));\n }",
"@Test\n public void testListenerManagement() throws Exception {\n SimpleEventListenerClient client1 = new SimpleEventListenerClient();\n SimpleEventListenerClient client2 = new SimpleEventListenerClient();\n SimpleEventListenerClient client3 = new SimpleEventListenerClient();\n SimpleEventListenerClient client4 = new SimpleEventListenerClient();\n\n try (EventStream streamEvents = new WebSocketEventStream(uri, new Token(\"token\"), 0, 0, 0, client1, client2)) {\n streamEvents.addEventListener(client3);\n streamEvents.removeEventListener(client2);\n streamEvents.removeEventListener(client3);\n streamEvents.addEventListener(client4);\n\n Assert.assertTrue(streamEvents.getListenerCount() == 2);\n }\n }",
"@Test\n public void testAddEventListener() {\n List<SimulatorEventListener> eventListeners = eventDispatcher.getSimulatorEventListeners();\n assertTrue(eventListeners.size() == 0);\n SimulatorEventListener listener = new SimulatorEventListener() {\n\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n\n }\n };\n eventDispatcher.addSimulatorEventListener(listener);\n assertTrue(eventListeners.size() == 1);\n }",
"public void testListenerAdd()\n {\n listener = new MockListener();\n try\n {\n testObject.addRecordListener(listener);\n }\n catch (TooManyListenersException e)\n {\n fail(\"Threw TooManyListener Exception\\n\" + e.toString());\n }\n }",
"@Test\r\n\tpublic void testAddListener() {\r\n\t\t// workspace listener\n\t\tMockWorkspaceListener listener = new MockWorkspaceListener();\r\n\t\tworkspace.addListener(listener);\r\n\t\tworkspace.addSubModule(eBuffer);\r\n\t\tcontent.addDefaultNode(node1);\r\n\r\n\t\tworkspace.receiveLocalAssociation(content);\r\n\r\n\t\tassertEquals(ModuleName.EpisodicBuffer, listener.originatingBuffer);\r\n\t\tassertTrue(listener.content.containsNode(node1));\r\n\r\n\t\t// cue listener\n\t\tMockCueListener cueListener = new MockCueListener();\r\n\t\tworkspace.addListener(cueListener);\r\n\t\tcontent.addDefaultNode(node2);\r\n\r\n\t\tworkspace.cueEpisodicMemories(content);\r\n\r\n\t\tNodeStructure ns = cueListener.ns;\r\n\t\tassertNotNull(ns);\r\n\t\tassertTrue(ns.containsNode(node1));\r\n\t\tassertTrue(ns.containsNode(node2));\r\n\t}",
"public void testRemoveAllModelElementSelectionListeners() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeAllModelElementSelectionListeners();\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }",
"public void testListenerHook02() {\n\t\tfinal BundleContext testContext = getContext();\n\t\tfinal Collection<ListenerInfo> added = new ArrayList<ListenerHook.ListenerInfo>();\n\t\tfinal Collection<ListenerInfo> removed = new ArrayList<ListenerHook.ListenerInfo>();\n\t\tfinal int[] hookCalled = new int[] {0, 0};\n\n\t\tListenerHook hook1 = new ListenerHook() {\n\t\t\tpublic void added(Collection<ListenerInfo> listeners) {\n\t\t\t\thookCalled[0]++;\n\t\t\t\tadded.addAll(listeners);\n\t\t\t}\n\n\t\t\tpublic void removed(Collection<ListenerInfo> listeners) {\n\t\t\t\thookCalled[1]++;\n\t\t\t\tadded.removeAll(listeners);\n\t\t\t\tremoved.addAll(listeners);\n\t\t\t}\n\t\t};\n\n\t\tHashtable<String, Object> props = new Hashtable<String, Object>();\n\t\tprops.put(\"name\", getName());\n\t\t// register listener hook 1\n\t\tprops.put(Constants.SERVICE_DESCRIPTION, \"listener hook 1\");\n\t\tServiceRegistration<ListenerHook> regHook = testContext\n\t\t\t\t.registerService(ListenerHook.class, hook1, props);\n\n\t\ttry {\n\t\t\tassertFalse(\"no service listeners found\", added.isEmpty());\n\t\t\tassertEquals(\"added not called\", 1, hookCalled[0]);\n\t\t\tassertEquals(\"removed called\", 0, hookCalled[1]);\n\n\t\t\tint size = added.size();\n\t\t\tServiceListener testSL = new ServiceListener() {\n\t\t\t\tpublic void serviceChanged(ServiceEvent event) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t};\n\t\t\tString filterString1 = \"(\" + Constants.OBJECTCLASS + \"=bar)\"; //$NON-NLS-2$\n\t\t\ttestContext.addServiceListener(testSL, filterString1);\n\t\t\tassertEquals(\"added not called\", 2, hookCalled[0]);\n\t\t\tassertEquals(\"removed called\", 0, hookCalled[1]);\n\t\t\tassertEquals(\"listener not added\", size + 1, added.size());\n\t\t\tboolean found = false;\n\t\t\tfor (Iterator<ListenerInfo> iter = added.iterator(); iter.hasNext();) {\n\t\t\t\tListenerHook.ListenerInfo info = iter.next();\n\t\t\t\tassertFalse(\"isRemoved true\", info.isRemoved());\n\t\t\t\tBundleContext c = info.getBundleContext();\n\t\t\t\tString f = info.getFilter();\n\t\t\t\tif ((testContext.equals(c)) && (filterString1.equals(f))) {\n\t\t\t\t\tif (found) {\n\t\t\t\t\t\tfail(\"found more than once\");\n\t\t\t\t\t}\n\t\t\t\t\tfound = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) {\n\t\t\t\tfail(\"listener not found\");\n\t\t\t}\n\t\t\tfor (Iterator<ListenerInfo> iter = removed.iterator(); iter\n\t\t\t\t\t.hasNext();) {\n\t\t\t\tListenerHook.ListenerInfo info = iter.next();\n\t\t\t\tassertTrue(\"isRemoved true\", info.isRemoved());\n\t\t\t}\n\n\t\t\tString filterString2 = null;\n\t\t\ttestContext.addServiceListener(testSL);\n\t\t\tassertEquals(\"added not called\", 3, hookCalled[0]);\n\t\t\tassertEquals(\"removed not called\", 1, hookCalled[1]);\n\t\t\tassertEquals(\"listener not removed and added\", size + 1, added\n\t\t\t\t\t.size());\n\t\t\tfound = false;\n\t\t\tfor (Iterator<ListenerInfo> iter = added.iterator(); iter.hasNext();) {\n\t\t\t\tListenerHook.ListenerInfo info = iter.next();\n\t\t\t\tassertFalse(\"isRemoved true\", info.isRemoved());\n\t\t\t\tBundleContext c = info.getBundleContext();\n\t\t\t\tString f = info.getFilter();\n\t\t\t\tif ((testContext.equals(c)) && (f == filterString2)) {\n\t\t\t\t\tif (found) {\n\t\t\t\t\t\tfail(\"found more than once\");\n\t\t\t\t\t}\n\t\t\t\t\tfound = true;\n\t\t\t\t}\n\t\t\t\tif ((testContext.equals(c)) && (filterString1.equals(f))) {\n\t\t\t\t\tfail(\"first listener not removed\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) {\n\t\t\t\tfail(\"listener not found\");\n\t\t\t}\n\t\t\tfor (Iterator<ListenerInfo> iter = removed.iterator(); iter\n\t\t\t\t\t.hasNext();) {\n\t\t\t\tListenerHook.ListenerInfo info = iter.next();\n\t\t\t\tassertTrue(\"isRemoved true\", info.isRemoved());\n\t\t\t}\n\n\t\t\ttestContext.removeServiceListener(testSL);\n\t\t\tassertEquals(\"added called\", 3, hookCalled[0]);\n\t\t\tassertEquals(\"removed not called\", 2, hookCalled[1]);\n\t\t\tassertEquals(\"listener not removed\", size, added.size());\n\t\t\tfor (Iterator<ListenerInfo> iter = added.iterator(); iter.hasNext();) {\n\t\t\t\tListenerHook.ListenerInfo info = iter.next();\n\t\t\t\tassertFalse(\"isRemoved true\", info.isRemoved());\n\t\t\t\tBundleContext c = info.getBundleContext();\n\t\t\t\tString f = info.getFilter();\n\t\t\t\tif ((testContext.equals(c)) && (f == filterString2)) {\n\t\t\t\t\tfail(\"second listener not removed\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Iterator<ListenerInfo> iter = removed.iterator(); iter\n\t\t\t\t\t.hasNext();) {\n\t\t\t\tListenerHook.ListenerInfo info = iter.next();\n\t\t\t\tassertTrue(\"isRemoved true\", info.isRemoved());\n\t\t\t}\n\n\t\t\ttestContext.removeServiceListener(testSL);\n\t\t\tassertEquals(\"added called\", 3, hookCalled[0]);\n\t\t\tassertEquals(\"removed called\", 2, hookCalled[1]);\n\t\t\tassertEquals(\"listener removed\", size, added.size());\n\n\t\t}\n\t\tcatch (InvalidSyntaxException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\tif (regHook != null) {\n\t\t\t\tregHook.unregister();\n\t\t\t}\n\t\t}\n\t}",
"public void testGetListenersAfterDelete() throws Exception {\n try {\n String typeName = \"HitCountLooper\";\n IJavaLineBreakpoint bp = createLineBreakpoint(16, typeName);\n String[] listeners = bp.getBreakpointListeners();\n assertEquals(0, listeners.length);\n bp.addBreakpointListener(\"a\");\n bp.addBreakpointListener(\"b\");\n listeners = bp.getBreakpointListeners();\n assertEquals(2, listeners.length);\n assertEquals(\"a\", listeners[0]);\n assertEquals(\"b\", listeners[1]);\n bp.delete();\n listeners = bp.getBreakpointListeners();\n assertEquals(2, listeners.length);\n assertEquals(\"a\", listeners[0]);\n assertEquals(\"b\", listeners[1]);\n } finally {\n removeAllBreakpoints();\n }\n }",
"private void cleanBasicListener() {\n if (mSouthKernUserListener != null) {\n mSouthKernUserRef.removeEventListener(mSouthKernUserListener);\n }\n\n if (mStatusUpdatesListener != null) {\n mStatusUpdatesRef.removeEventListener(mStatusUpdatesListener);\n }\n // [END clean_basic_listen]\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Completely remove the specified ItemStack | public boolean removeItemStack(ItemStack itemStack) {
boolean success = false;
if (this.ITEMS.contains(itemStack)) {
this.ITEMS.remove(itemStack);
success = true;
} else {
boolean containItem = false;
int index = 0;
for (ItemStack itemStack1 : this.ITEMS) {
if (itemStack1.getItem() == itemStack.getItem()) {
index = this.ITEMS.lastIndexOf(itemStack1);
containItem = true;
}
}
if (containItem) {
ItemStack itemStack1 = this.ITEMS.get(index);
itemStack1.addAmount(-itemStack.getAmount());
if (itemStack1.getAmount() <= 0)
this.ITEMS.remove(itemStack1);
success = true;
}
}
for (InventoryChangedEvent listener : listeners)
listener.onInventoryChanged(this);
return success;
} | [
"public void removeItemStack(int index) {\r\n\t\titems.set(index, new ItemStack(new Nothing(), 0));\r\n\t}",
"void removeFromInventory(IEquipableItem item);",
"ItemStack removePage(EntityPlayer player, ItemStack itemstack, int index);",
"public void removeShopItem(int slot) throws ShopsystemException;",
"public void removeItem(Item theItem) {\n\t\tinventory.remove(theItem);\t\n\t}",
"public default ItemStack removeEnchant(ItemStack item, CustomEnchantment ench) {\n\t\t//Resetting responses\n\t\tresponseManager.setResponseId(0);\n\t\tresponseManager.setResponseId(0);\n\t\t\n\t\tif (!enchantManager.nullCheck(item)) {\n\t\t\treturn item;\n\t\t}\n\t\t\n\t\tItemStack clone = item.clone();\n\t\t\n\t\t//Tag should be removed before the lore\n\t\tclone = tagWrapper.removeTag(clone, ench);\n\t\tclone = loreAdder.removeLore(clone, ench);\n\n\t\tif (responseManager.getResponseId() == 0) {\n\t\t\titem = clone;\n\t\t}\n\t\t\n\t\treturn item;\n\t}",
"public final ItemStack removeItem(Predicate<ItemStack> filter) {\n return removeItem(filter, 1, InvOp.EXECUTE);\n }",
"void removeFromInventory(Item item) {\n inventory.remove(item);\n }",
"public void removeItemFromScene(){\n this.currentPlayer.getPlayerCurrentScene().getSceneInventory().removeItemFromInventory(this.currentItem);\n }",
"default ItemStack removeOneItem(Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n ItemStack stack = im.removeItem(filter);\n if (!InvTools.isEmpty(stack))\n return stack;\n }\n return InvTools.emptyStack();\n }",
"public void removeQRItem(Player player) {\n player.getInventory().forEach(itemStack -> {\n if(isQRCodeItem(itemStack))\n player.getInventory().remove(itemStack);\n });\n }",
"public void remove() {\n if (this.fastInventory != null)\n this.fastInventory.buttons.remove(this);\n }",
"public static ItemStack removeEnchantments(ItemStack item) {\n ItemMeta meta = item.getItemMeta();\n if (meta == null) return item;\n if (!meta.hasLore()) return item;\n List<String> lore = meta.getLore();\n for (Map.Entry<CustomEnchantment, Integer> entry : getEnchantments(item).entrySet()) {\n lore.remove(ChatColor.GRAY + entry.getKey().name() + \" \" + ERomanNumeral.numeralOf(entry.getValue()));\n }\n meta.setLore(lore);\n item.setItemMeta(meta);\n return item;\n }",
"void dropMissileAsItem();",
"boolean drop(IItem item);",
"public void removeTreasure(Treasure treasure);",
"public void removeItem(ShopItem i) {\n items.remove(i);\n }",
"public void remove(String item) {\n Inventory removeItem = em.find(Inventory.class, item);\n inventoryList.remove(removeItem);\n em.remove(removeItem);\n }",
"public static int removeItem(Inventory inventory, ItemStack itemStack, Boolean force) {\n\t\tif (itemStack.getAmount() <= 0)\n\t\t\treturn 0;\n\t\tItemStack[] contents = inventory.getContents();\n\t\tint amount = itemStack.getAmount();\n for (ItemStack is : contents) {\n if (is != null) {\n if (is.isSimilar(itemStack)) {\n if (is.getAmount() > amount) {\n is.setAmount(is.getAmount() - amount);\n inventory.setContents(contents);\n return 0;\n } else if (is.getAmount() == amount) {\n is.setType(Material.AIR);\n inventory.setContents(contents);\n return 0;\n } else {\n \tif (force) {\n\t\t\t\t\t\t\tamount -= is.getAmount();\n\t\t\t\t\t\t\tis.setType(Material.AIR);\n\t\t\t\t\t\t} else {\n \t\treturn amount - is.getAmount();\n\t\t\t\t\t\t}\n }\n }\n }\n }\n\t\tinventory.setContents(contents);\n\t\treturn amount;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Paints the cells in all invalid rows, columns and subgrids red You have to call model.isValid() before calling this method to ensure, that the model is updated | public void updateValidationStatus() {
model.isValid();
for (int row = 0; row < model.getSudokuMatrix().length; row++) {
for (int col = 0; col < model.getSudokuMatrix()[0].length; col++) {
cells[row][col].setWrongNumber(model.getInvalidRows().contains(row) || model.getInvalidColumns().contains(col) || model.getInvalidSubGrids().contains(row / 3 * 3 + col / 3));
}
}
} | [
"void Invalidate() \r\n { \r\n CellsStructureDirty = true;\r\n InvalidateMeasure(); \r\n }",
"protected void validateCell( int row, int column )\n {\n }",
"public void tableInvalidate() {\r\n runForAllRows(new GroupTableRowVisibilityRunner() {\r\n public void run(TableRowCore row, boolean bVisible) {\r\n row.invalidate();\r\n row.refresh(true, bVisible);\r\n }\r\n });\r\n }",
"private void fixCells() {\n // For all columns\n for(int i = 0; i < loadedData.numAttributes(); i++) {\n // If not in the input/output lists\n if(!inputs.contains(i) && !outputs.contains(i)) {\n // Get the table column\n TableColumn col = (TableColumn) dataTable.getColumns().get(i);\n // Set the cell factor\n col.setCellFactory(e -> new TableCell<Double, String>() {\n @Override\n public void updateItem(String item, boolean empty) {\n // Update the item to the same value\n super.updateItem(item, empty);\n // Set the style of the cell\n setStyle(\"-fx-background-color: rgba(255, 255, 255, 0.3);\");\n // If the item is null or empty\n if (item == null || empty) {\n // Set text accordingly\n setText(null);\n // Otherwise\n } else {\n // Set the text to the item\n setText(item);\n }\n }\n });\n }\n }\n }",
"private void ValidateCellsCore()\r\n { \r\n UIElementCollection children = InternalChildren; \r\n ExtendedData extData = ExtData;\r\n\r\n extData.CellCachesCollection = new CellCache[children.Count];\r\n extData.CellGroup1 = int.MaxValue;\r\n extData.CellGroup2 = int.MaxValue;\r\n extData.CellGroup3 = int.MaxValue; \r\n extData.CellGroup4 = int.MaxValue;\r\n\r\n boolean hasStarCellsU = false; \r\n boolean hasStarCellsV = false;\r\n boolean hasGroup3CellsInAutoRows = false; \r\n\r\n for (int i = PrivateCells.Length - 1; i >= 0; --i)\r\n {\r\n UIElement child = children[i]; \r\n if (child == null)\r\n { \r\n continue; \r\n }\r\n\r\n CellCache cell = new CellCache();\r\n\r\n //\r\n // read and cache child positioning properties \r\n //\r\n\r\n // read indices from the corresponding properties \r\n // clamp to value < number_of_columns\r\n // column >= 0 is guaranteed by property value validation callback \r\n cell.ColumnIndex = Math.Min(GetColumn(child), DefinitionsU.Length - 1);\r\n // clamp to value < number_of_rows\r\n // row >= 0 is guaranteed by property value validation callback\r\n cell.RowIndex = Math.Min(GetRow(child), DefinitionsV.Length - 1); \r\n\r\n // read span properties \r\n // clamp to not exceed beyond right side of the grid \r\n // column_span > 0 is guaranteed by property value validation callback\r\n cell.ColumnSpan = Math.Min(GetColumnSpan(child), DefinitionsU.Length - cell.ColumnIndex); \r\n\r\n // clamp to not exceed beyond bottom side of the grid\r\n // row_span > 0 is guaranteed by property value validation callback\r\n cell.RowSpan = Math.Min(GetRowSpan(child), DefinitionsV.Length - cell.RowIndex); \r\n\r\n Debug.Assert(0 <= cell.ColumnIndex && cell.ColumnIndex < DefinitionsU.Length); \r\n Debug.Assert(0 <= cell.RowIndex && cell.RowIndex < DefinitionsV.Length); \r\n\r\n // \r\n // calculate and cache length types for the child\r\n //\r\n\r\n cell.SizeTypeU = GetLengthTypeForRange(DefinitionsU, cell.ColumnIndex, cell.ColumnSpan); \r\n cell.SizeTypeV = GetLengthTypeForRange(DefinitionsV, cell.RowIndex, cell.RowSpan);\r\n\r\n hasStarCellsU |= cell.IsStarU; \r\n hasStarCellsV |= cell.IsStarV;\r\n\r\n //\r\n // distribute cells into four groups.\r\n //\r\n\r\n if (!cell.IsStarV)\r\n { \r\n if (!cell.IsStarU) \r\n {\r\n cell.Next = extData.CellGroup1; \r\n extData.CellGroup1 = i;\r\n }\r\n else\r\n { \r\n cell.Next = extData.CellGroup3;\r\n extData.CellGroup3 = i; \r\n\r\n // remember if this cell belongs to auto row\r\n hasGroup3CellsInAutoRows |= cell.IsAutoV; \r\n }\r\n }\r\n else\r\n { \r\n if ( cell.IsAutoU\r\n // note below: if spans through Star column it is NOT Auto \r\n && !cell.IsStarU ) \r\n {\r\n cell.Next = extData.CellGroup2; \r\n extData.CellGroup2 = i;\r\n }\r\n else\r\n { \r\n cell.Next = extData.CellGroup4;\r\n extData.CellGroup4 = i; \r\n } \r\n }\r\n\r\n PrivateCells[i] = cell;\r\n }\r\n\r\n HasStarCellsU = hasStarCellsU; \r\n HasStarCellsV = hasStarCellsV;\r\n HasGroup3CellsInAutoRows = hasGroup3CellsInAutoRows; \r\n }",
"private void paintGrid() {\r\n\r\n\t\tGraphics2D g2 = ( Graphics2D ) boardRep;\r\n\t\tg2.setColor( blackBG );\r\n\t\tg2.setStroke( new BasicStroke( 1, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER ) );\r\n\t\t// paint horizontal lines\r\n\t\tfor ( int i = 0; i <= rows; i++ ) {\r\n\r\n\t\t\tboardRep.drawLine( 1, ( i * rectSize ) + 1, ( cols * rectSize ) + 1 + LEFTLEGEND_SPACE, ( i * rectSize ) + 1 );\r\n }\r\n\r\n\t\t// paint vertical lines\r\n\t\tfor ( int i = 0; i <= cols; i++ ) {\r\n\r\n\t\t\tboardRep.drawLine( ( i * rectSize ) + 1 + LEFTLEGEND_SPACE, 1, ( i * rectSize ) + 1 + LEFTLEGEND_SPACE,\r\n\t\t\t\t\t( rows * rectSize ) + 1 + LEFTLEGEND_SPACE );\r\n\t\t}\r\n\t}",
"public void drawGrid()\n {\n noStroke();\n for(int i = 0; i < xCells; i++)\n {\n for(int j = 0; j < yCells; j++)\n {\n if(pattern[i][j])\n fill(0);\n else\n fill(255);\n rect(firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize,cellSize-1,cellSize-1);\n }\n }\n }",
"@Override\n public void redCell() {\n gCell.setFill(Color.ORANGERED);\n }",
"private void colorizeGrid() {\n for (int x = 0; x < field.length; x++) {\n for (int y = 0; y < field[0].length; y++) {\n field[x][y].setStyle(intersection.getColorCode(x, y));\n }\n }\n }",
"private void setCellColour(int row, int col, PuzzleControl puzzleControl)\n\t{\n\t\tif (puzzleControl.getCell(row, col).isFixed())\n\t\t{\n\t\t\tcells.get(row).get(col).setEnabled(false);\n\t\t\tif ((row < 3 && col < 3) || (row < 3 && col > 5) || (row > 5 && col < 3) || (row > 5 && col > 5) || (row >= 3 && row <= 5 && col >= 3 && col <= 5))\n\t\t\t{\n\t\t\t\tcells.get(row).get(col).setBackground(colorFixedCell1);\n\t\t\t\tcells.get(row).get(col).setForeground(Color.BLACK);\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcells.get(row).get(col).setBackground(colorFixedCell2);\n\t\t\t\tcells.get(row).get(col).setForeground(Color.WHITE);\t\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ((row < 3 && col < 3) || (row < 3 && col > 5) || (row > 5 && col < 3) || (row > 5 && col > 5) || (row >= 3 && row <= 5 && col >= 3 && col <= 5))\n\t\t\t{\n\t\t\t\tcells.get(row).get(col).setBackground(colorNormalCell1);\n\t\t\t\tcells.get(row).get(col).setForeground(Color.BLACK);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcells.get(row).get(col).setBackground(colorNormalCell2);\n\t\t\t\tcells.get(row).get(col).setForeground(Color.BLACK);\t\t\n\t\t\t}\n\t\t\tincrementTotalEmptyBoxes(puzzleControl, 1);\n\t\t}\t\t\n\t}",
"@Override protected void invalidated() {\n // set all children columns to be the same visibility. This isn't ideal,\n // for example if a child column is hidden, then the parent hidden and\n // shown, all columns will be visible again.\n //\n // TODO It may make sense for us to cache the visibility so that we may\n // return to exactly the same state.\n for (TableColumnBase<S,?> col : getColumns()) {\n col.setVisible(isVisible());\n }\n }",
"private void redrawBoard()\n\t{\n\t\t//Get the value of each cell from the data manager and set the cells to the correct number\n\t\t//0 values are displayed as blanks\n\t\tfor(int i=1; i<=9; i++)\n\t\t{\n\t\t\tfor(int j=1; j<=9; j++)\n\t\t\t{\n\t\t\t\tif(manager.getValueAt(i, j)!=0)\n\t\t\t\t\tcells[i-1][j-1].setText(String.valueOf(manager.getValueAt(i, j)));\n\t\t\t\telse\n\t\t\t\t\tcells[i-1][j-1].setText(\"\");\n\t\t\t\t//if(manager.getWriteStatus(i, j))\n\t\t\t\t //cells[i-1][j-1].setToolTipText(getValues(i, j));\n\t\t\t}\n\t\t}\n\t}",
"private void applyCellStyles()\n\t{\n\t\tfor (Cell rCell : getCells())\n\t\t{\n\t\t\tif (!rCell.isEmpty())\n\t\t\t{\n\t\t\t\tUiStyle rStyle = rCell.getComponent().style();\n\n\t\t\t\tapplyCellPosition(\"gridColumn\",\n\t\t\t\t\t\t\t\t rCell.getColumn().getIndex(),\n\t\t\t\t\t\t\t\t rCell.get(COLUMN_SPAN, 1),\n\t\t\t\t\t\t\t\t rStyle);\n\t\t\t\tapplyCellPosition(\"gridRow\",\n\t\t\t\t\t\t\t\t rCell.getRow().getIndex(),\n\t\t\t\t\t\t\t\t rCell.get(ROW_SPAN, 1),\n\t\t\t\t\t\t\t\t rStyle);\n\n\t\t\t\tapplyAlignment(\"justifySelf\",\n\t\t\t\t\t\t\t rCell.get(HORIZONTAL_ALIGN, null),\n\t\t\t\t\t\t\t rStyle);\n\t\t\t\tapplyAlignment(\"alignSelf\",\n\t\t\t\t\t\t\t rCell.get(VERTICAL_ALIGN, null),\n\t\t\t\t\t\t\t rStyle);\n\t\t\t}\n\t\t}\n\t}",
"public void updateCells() throws Exception {\n\t\tvalidate();\n\t\tfor (byte i = 0; i < 9; i++) {\n\t\t\tfor (byte j = 0; j < 9; j++) {\n\t\t\t\tif (cells[i][j].isEmpty()) {\n\t\t\t\t\tupdateCell(i, j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void drawGrid(Graphics g) {\n int rMax;\n int cMax;\n if (model.length() * GuiViewFrame.NOTE_W < GuiViewFrame.SCROLL_W) {\n cMax = GuiViewFrame.SCROLL_W / GuiViewFrame.NOTE_W / model.getSig().bpm;\n }\n else {\n cMax = model.length() / model.getSig().bpm;\n }\n if (model.getPitchRange().size() * GuiViewFrame.NOTE_H < GuiViewFrame.SCROLL_H) {\n rMax = GuiViewFrame.SCROLL_H / GuiViewFrame.NOTE_H;\n }\n else {\n rMax = model.getPitchRange().size();\n }\n g.setColor(Color.black);\n for (int r = 0; r <= rMax; r++) {\n g.drawLine(0, r * GuiViewFrame.NOTE_H, (cMax + 1) * GuiViewFrame.MEASURE_W,\n r * GuiViewFrame.NOTE_H);\n }\n for (int c = 0; c <= cMax; c++) {\n g.drawLine(c * GuiViewFrame.MEASURE_W, 0, c * GuiViewFrame.MEASURE_W, (rMax + 1) * GuiViewFrame.NOTE_H);\n }\n for (int i : model.getRepeats().keySet()) {\n g.fillRect((i + 1) * GuiViewFrame.NOTE_W - 5, 0, 5, GuiViewFrame.NVP_H);\n g.fillRect(model.getRepeats().get(i).getGoBack() * GuiViewFrame.NOTE_W, 0, 5, GuiViewFrame.NVP_H);\n }\n if (model.getMultiEnding() != null) {\n g.fillRect(model.getMultiEnding().getBuildUp().getGoBack() * GuiViewFrame.NOTE_W, 0, 5, GuiViewFrame.NVP_H);\n for (Repeat r : model.getMultiEnding().getEndings()) {\n g.fillRect(r.getGoBack() * GuiViewFrame.NOTE_W - 5, 0, 5, GuiViewFrame.NVP_H);\n }\n }\n }",
"@Override\n public void normalCell() {\n gCell.setFill(Color.BLACK);\n }",
"public void createErrorsForWholeModel() {\r\n\t\tSet<Object> keySet = elementToWidgetMap.keySet();\r\n\t\tfor (Object object : keySet) {\r\n\t\t\tvalidate(object, ((IValuesContentProvider) getContentProvider())\r\n\t\t\t\t\t.getValue(object));\r\n\t\t}\r\n\t}",
"public void update(){\n\t\tif ( updateCellsState() ){ //repaint only if some cells were changed\n\t\t\tcellsShape = null;\n\t\t\trepaint();\n\t\t}\n\t}",
"private void paintGrid() {\n\n g2d.setColor(_BOARDCOLOR); //Set the color to specific color of the board.\n\n for(int i = 0; i < grids.size(); i++) { //Iterating the 16 grids while drawing each on JComponent.\n\n g2d.draw(grids.get(i));\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XClosure__Group__0" $ANTLR start "rule__XClosure__Group__0__Impl" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8414:1: rule__XClosure__Group__0__Impl : ( ( rule__XClosure__Group_0__0 ) ) ; | public final void rule__XClosure__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8418:1: ( ( ( rule__XClosure__Group_0__0 ) ) )
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8419:1: ( ( rule__XClosure__Group_0__0 ) )
{
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8419:1: ( ( rule__XClosure__Group_0__0 ) )
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8420:1: ( rule__XClosure__Group_0__0 )
{
if ( state.backtracking==0 ) {
before(grammarAccess.getXClosureAccess().getGroup_0());
}
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8421:1: ( rule__XClosure__Group_0__0 )
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8421:2: rule__XClosure__Group_0__0
{
pushFollow(FOLLOW_rule__XClosure__Group_0__0_in_rule__XClosure__Group__0__Impl17284);
rule__XClosure__Group_0__0();
state._fsp--;
if (state.failed) return ;
}
if ( state.backtracking==0 ) {
after(grammarAccess.getXClosureAccess().getGroup_0());
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__XClosure__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8531:1: ( rule__XClosure__Group_0__0__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8532:2: rule__XClosure__Group_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XClosure__Group_0__0__Impl_in_rule__XClosure__Group_0__017502);\n rule__XClosure__Group_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7822:1: ( rule__XClosure__Group_0__0__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7823:2: rule__XClosure__Group_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XClosure__Group_0__0__Impl_in_rule__XClosure__Group_0__016061);\n rule__XClosure__Group_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8592:1: ( rule__XClosure__Group_0_0__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8593:2: rule__XClosure__Group_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XClosure__Group_0_0__1__Impl_in_rule__XClosure__Group_0_0__117622);\n rule__XClosure__Group_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9428:1: ( rule__XClosure__Group_0__0__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9429:2: rule__XClosure__Group_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XClosure__Group_0__0__Impl_in_rule__XClosure__Group_0__019315);\n rule__XClosure__Group_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7883:1: ( rule__XClosure__Group_0_0__1__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7884:2: rule__XClosure__Group_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XClosure__Group_0_0__1__Impl_in_rule__XClosure__Group_0_0__116181);\n rule__XClosure__Group_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8406:1: ( rule__XClosure__Group__0__Impl rule__XClosure__Group__1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8407:2: rule__XClosure__Group__0__Impl rule__XClosure__Group__1\n {\n pushFollow(FOLLOW_rule__XClosure__Group__0__Impl_in_rule__XClosure__Group__017254);\n rule__XClosure__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XClosure__Group__1_in_rule__XClosure__Group__017257);\n rule__XClosure__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8668:1: ( ( ( rule__XClosure__Group_1_0_0__0 )? ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8669:1: ( ( rule__XClosure__Group_1_0_0__0 )? )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8669:1: ( ( rule__XClosure__Group_1_0_0__0 )? )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8670:1: ( rule__XClosure__Group_1_0_0__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXClosureAccess().getGroup_1_0_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8671:1: ( rule__XClosure__Group_1_0_0__0 )?\n int alt69=2;\n int LA69_0 = input.LA(1);\n\n if ( (LA69_0==RULE_ID||LA69_0==29||LA69_0==52) ) {\n alt69=1;\n }\n switch (alt69) {\n case 1 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8671:2: rule__XClosure__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XClosure__Group_1_0_0__0_in_rule__XClosure__Group_1_0__0__Impl17774);\n rule__XClosure__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXClosureAccess().getGroup_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9489:1: ( rule__XClosure__Group_0_0__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9490:2: rule__XClosure__Group_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XClosure__Group_0_0__1__Impl_in_rule__XClosure__Group_0_0__119435);\n rule__XClosure__Group_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8746:1: ( rule__XClosure__Group_1_0_0__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8747:2: rule__XClosure__Group_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XClosure__Group_1_0_0__1__Impl_in_rule__XClosure__Group_1_0_0__117926);\n rule__XClosure__Group_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8656:1: ( rule__XClosure__Group_1_0__0__Impl rule__XClosure__Group_1_0__1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8657:2: rule__XClosure__Group_1_0__0__Impl rule__XClosure__Group_1_0__1\n {\n pushFollow(FOLLOW_rule__XClosure__Group_1_0__0__Impl_in_rule__XClosure__Group_1_0__017744);\n rule__XClosure__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XClosure__Group_1_0__1_in_rule__XClosure__Group_1_0__017747);\n rule__XClosure__Group_1_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8037:1: ( rule__XClosure__Group_1_0_0__1__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8038:2: rule__XClosure__Group_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XClosure__Group_1_0_0__1__Impl_in_rule__XClosure__Group_1_0_0__116485);\n rule__XClosure__Group_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7959:1: ( ( ( rule__XClosure__Group_1_0_0__0 )? ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7960:1: ( ( rule__XClosure__Group_1_0_0__0 )? )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7960:1: ( ( rule__XClosure__Group_1_0_0__0 )? )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7961:1: ( rule__XClosure__Group_1_0_0__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXClosureAccess().getGroup_1_0_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7962:1: ( rule__XClosure__Group_1_0_0__0 )?\n int alt62=2;\n int LA62_0 = input.LA(1);\n\n if ( (LA62_0==RULE_ID||LA62_0==29||LA62_0==60) ) {\n alt62=1;\n }\n switch (alt62) {\n case 1 :\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7962:2: rule__XClosure__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XClosure__Group_1_0_0__0_in_rule__XClosure__Group_1_0__0__Impl16333);\n rule__XClosure__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXClosureAccess().getGroup_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8637:1: ( ( ( rule__XClosure__Group_1_0__0 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8638:1: ( ( rule__XClosure__Group_1_0__0 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8638:1: ( ( rule__XClosure__Group_1_0__0 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8639:1: ( rule__XClosure__Group_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXClosureAccess().getGroup_1_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8640:1: ( rule__XClosure__Group_1_0__0 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8640:2: rule__XClosure__Group_1_0__0\n {\n pushFollow(FOLLOW_rule__XClosure__Group_1_0__0_in_rule__XClosure__Group_1__0__Impl17712);\n rule__XClosure__Group_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXClosureAccess().getGroup_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7709:1: ( ( ( rule__XClosure__Group_0__0 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7710:1: ( ( rule__XClosure__Group_0__0 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7710:1: ( ( rule__XClosure__Group_0__0 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7711:1: ( rule__XClosure__Group_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXClosureAccess().getGroup_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7712:1: ( rule__XClosure__Group_0__0 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7712:2: rule__XClosure__Group_0__0\n {\n pushFollow(FOLLOW_rule__XClosure__Group_0__0_in_rule__XClosure__Group__0__Impl15843);\n rule__XClosure__Group_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXClosureAccess().getGroup_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8757:1: ( ( ( rule__XClosure__Group_1_0_0_1__0 )* ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8758:1: ( ( rule__XClosure__Group_1_0_0_1__0 )* )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8758:1: ( ( rule__XClosure__Group_1_0_0_1__0 )* )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8759:1: ( rule__XClosure__Group_1_0_0_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXClosureAccess().getGroup_1_0_0_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8760:1: ( rule__XClosure__Group_1_0_0_1__0 )*\n loop70:\n do {\n int alt70=2;\n int LA70_0 = input.LA(1);\n\n if ( (LA70_0==53) ) {\n alt70=1;\n }\n\n\n switch (alt70) {\n \tcase 1 :\n \t // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8760:2: rule__XClosure__Group_1_0_0_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XClosure__Group_1_0_0_1__0_in_rule__XClosure__Group_1_0_0__1__Impl17953);\n \t rule__XClosure__Group_1_0_0_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop70;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXClosureAccess().getGroup_1_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_2_0_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:20699:1: ( rule__XClosure__Group_2_0_0__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:20700:2: rule__XClosure__Group_2_0_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XClosure__Group_2_0_0__1__Impl_in_rule__XClosure__Group_2_0_0__141803);\r\n rule__XClosure__Group_2_0_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XClosure__Group_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7833:1: ( ( ( rule__XClosure__Group_0_0__0 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7834:1: ( ( rule__XClosure__Group_0_0__0 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7834:1: ( ( rule__XClosure__Group_0_0__0 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7835:1: ( rule__XClosure__Group_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXClosureAccess().getGroup_0_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7836:1: ( rule__XClosure__Group_0_0__0 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:7836:2: rule__XClosure__Group_0_0__0\n {\n pushFollow(FOLLOW_rule__XClosure__Group_0_0__0_in_rule__XClosure__Group_0__0__Impl16088);\n rule__XClosure__Group_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXClosureAccess().getGroup_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9565:1: ( ( ( rule__XClosure__Group_1_0_0__0 )? ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9566:1: ( ( rule__XClosure__Group_1_0_0__0 )? )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9566:1: ( ( rule__XClosure__Group_1_0_0__0 )? )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9567:1: ( rule__XClosure__Group_1_0_0__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXClosureAccess().getGroup_1_0_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9568:1: ( rule__XClosure__Group_1_0_0__0 )?\n int alt75=2;\n int LA75_0 = input.LA(1);\n\n if ( (LA75_0==RULE_ID||LA75_0==30||LA75_0==56) ) {\n alt75=1;\n }\n switch (alt75) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:9568:2: rule__XClosure__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XClosure__Group_1_0_0__0_in_rule__XClosure__Group_1_0__0__Impl19587);\n rule__XClosure__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXClosureAccess().getGroup_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XClosure__Group_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8048:1: ( ( ( rule__XClosure__Group_1_0_0_1__0 )* ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8049:1: ( ( rule__XClosure__Group_1_0_0_1__0 )* )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8049:1: ( ( rule__XClosure__Group_1_0_0_1__0 )* )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8050:1: ( rule__XClosure__Group_1_0_0_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXClosureAccess().getGroup_1_0_0_1()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8051:1: ( rule__XClosure__Group_1_0_0_1__0 )*\n loop63:\n do {\n int alt63=2;\n int LA63_0 = input.LA(1);\n\n if ( (LA63_0==52) ) {\n alt63=1;\n }\n\n\n switch (alt63) {\n \tcase 1 :\n \t // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:8051:2: rule__XClosure__Group_1_0_0_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XClosure__Group_1_0_0_1__0_in_rule__XClosure__Group_1_0_0__1__Impl16512);\n \t rule__XClosure__Group_1_0_0_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop63;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXClosureAccess().getGroup_1_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the identifiers declared in rule complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1 | private String[] getDeclaredIdentifiers_complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1() {
return identifiers_complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1;
} | [
"private String[] getDeclaredIdentifiers_complementaryRoles_PATH_2_GOAL_5_COMPONENT_txtParcela1_14() {\r\n return identifiers_complementaryRoles_PATH_2_GOAL_5_COMPONENT_txtParcela1_14;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_1_COMPONENT_txtParcela1_0() {\r\n return identifiers_constrainInterpretation01_PATH_1_GOAL_1_COMPONENT_txtParcela1_0;\r\n }",
"private Object[] getObjects_complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1() {\r\n return new Object[] {\r\n module_entity_Action_1,\r\n module_entity_MERFunction_1,\r\n module_entity_RuleToHuman_1\r\n };\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15;\r\n }",
"private String[] getDeclaredIdentifiers_complementaryRoles_PATH_2_GOAL_8_COMPONENT_txtResp_23() {\r\n return identifiers_complementaryRoles_PATH_2_GOAL_8_COMPONENT_txtResp_23;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_5_COMPONENT_txtParcela1_13() {\r\n return identifiers_constrainInterpretation01_PATH_2_GOAL_5_COMPONENT_txtParcela1_13;\r\n }",
"private String[] getDeclaredIdentifiers_complementaryRoles_PATH_1_GOAL_4_COMPONENT_txtResp_10() {\r\n return identifiers_complementaryRoles_PATH_1_GOAL_4_COMPONENT_txtResp_10;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20() {\r\n return identifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_3_COMPONENT_txtParcela2_6() {\r\n return identifiers_constrainInterpretation01_PATH_1_GOAL_3_COMPONENT_txtParcela2_6;\r\n }",
"private Object[] getObjects_complementaryRoles_PATH_2_GOAL_5_COMPONENT_txtParcela1_14() {\r\n return new Object[] {\r\n module_entity_Action_1,\r\n module_entity_MERFunction_1,\r\n module_entity_RuleToHuman_1\r\n };\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_7_COMPONENT_txtParcela2_19() {\r\n return identifiers_constrainInterpretation01_PATH_2_GOAL_7_COMPONENT_txtParcela2_19;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_3_COMPONENT_txtParcela2_7() {\r\n return identifiers_constrainInterpretation02_PATH_1_GOAL_3_COMPONENT_txtParcela2_7;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_7_COMPONENT_txtParcela2_21() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_2_GOAL_7_COMPONENT_txtParcela2_21;\r\n }",
"private String[] getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3() {\r\n return identifiers_constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3;\r\n }",
"public String[] getDeclaredIdentifiers(int ruleIndex) {\r\n switch (ruleIndex) {\r\n case 0: return getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_1_COMPONENT_txtParcela1_0();\r\n case 1: return getDeclaredIdentifiers_complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1();\r\n case 2: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2();\r\n case 3: return getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3();\r\n case 4: return getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_2_COMPONENT_txtOp_4();\r\n case 5: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5();\r\n case 6: return getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_3_COMPONENT_txtParcela2_6();\r\n case 7: return getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_3_COMPONENT_txtParcela2_7();\r\n case 8: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8();\r\n case 9: return getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9();\r\n case 10: return getDeclaredIdentifiers_complementaryRoles_PATH_1_GOAL_4_COMPONENT_txtResp_10();\r\n case 11: return getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_4_COMPONENT_txtResp_11();\r\n case 12: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12();\r\n case 13: return getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_5_COMPONENT_txtParcela1_13();\r\n case 14: return getDeclaredIdentifiers_complementaryRoles_PATH_2_GOAL_5_COMPONENT_txtParcela1_14();\r\n case 15: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15();\r\n case 16: return getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_2_GOAL_6_COMPONENT_txtOp_16();\r\n case 17: return getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_6_COMPONENT_txtOp_17();\r\n case 18: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtOp_18();\r\n case 19: return getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_7_COMPONENT_txtParcela2_19();\r\n case 20: return getDeclaredIdentifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20();\r\n case 21: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_7_COMPONENT_txtParcela2_21();\r\n case 22: return getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_22();\r\n case 23: return getDeclaredIdentifiers_complementaryRoles_PATH_2_GOAL_8_COMPONENT_txtResp_23();\r\n case 24: return getDeclaredIdentifiers_constrainInterpretation02_PATH_2_GOAL_8_COMPONENT_txtResp_24();\r\n case 25: return getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_8_COMPONENT_txtResp_25();\r\n default: return new String[0];\r\n }\r\n }",
"private void complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Interpretação Equivocada \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_PAPEIS_COMPLEMENTARES);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Papéis Complementares\");\n\t\t\tflush();\n\n\t }",
"private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_4_COMPONENT_txtResp_11() {\r\n return identifiers_constrainInterpretation02_PATH_1_GOAL_4_COMPONENT_txtResp_11;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialise and show gallery selection bottom sheet | private void OpenGallery() {
BSImagePicker addGalleryFrag = new BSImagePicker.Builder(getString(R.string.gallery_provider_authority))
.setSpanCount(3)
.setGridSpacing(0)
.setPeekHeight(Utility.dpToPx(500))
.hideCameraTile()
.hideGalleryTile()
.build();
addGalleryFrag.show(getSupportFragmentManager(), FRAG_TAG_IMAGE_GALLERY);
} | [
"private void setGalleryDisplay() {\n // ArrayList<model.Photo> photos = model.DirectoryManager.getTree().getDir().getPhotos();\n ArrayList<Photo> photos = User.getGalleryPhotos();\n if (photos != null) {\n for (model.Photo photo : photos) {\n Image imageOrigin = new Image(\"File:\" + photo.getPath());\n ImageView displayImage = new ImageView(imageOrigin);\n displayImage.setId(photo.getPath());\n\n double imageHeight = imageOrigin.getHeight();\n double imageWidth = imageOrigin.getWidth();\n displayImage.setPreserveRatio(true);\n if (imageHeight <= imageWidth) {\n displayImage.setFitWidth(190);\n } else if (imageHeight > imageWidth) {\n displayImage.setFitHeight(120);\n }\n\n displayImage.setFitWidth(190);\n displayImage.getStyleClass().add(\"photoElement\");\n displayImage.setOnMouseClicked(\n (MouseEvent e) -> {\n model.User.setPhoto(model.PhotoManager.getPhoto(displayImage.getId()));\n try {\n loadNextScene(rootPane, \"/views/focusPhotoPane.fxml\");\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n });\n galleryDisplay.getChildren().add(displayImage);\n }\n }\n }",
"private void initialBottomPart() {\n //Initializing buttons for food group\n HBox bottomMenu = new HBox(buttonVeg, buttonGrain, buttonMilk, buttonMeat);\n\n //Customize HBox\n bottomMenu.setPadding(new Insets(10, 0, 10, 0));\n bottomMenu.setSpacing(5);\n bottomMenu.setAlignment(Pos.CENTER);\n\n bPane.setBottom(bottomMenu);\n }",
"public void show() {\n HiLog.debug(Constants.LABEL, \"1st image url : \" + imageUrls.get(0));\n Intent galleryIntent = new Intent();\n Operation systemOperation = new Intent.OperationBuilder()\n .withAction(\"ability.intent.GALLERY_IMAGES\")\n .build();\n galleryIntent.setOperation(systemOperation);\n galleryIntent.setParam(Constants.IntentPassingParams.IMAGES, (Serializable) imageUrls);\n galleryIntent.setParam(Constants.IntentPassingParams.TITLE, title);\n galleryIntent.setParam(Constants.IntentPassingParams.TOOLBAR_COLOR_ID, toolbarColor);\n galleryIntent.setParam(Constants.IntentPassingParams.TOOLBAR_TITLE_COLOR, color);\n galleryIntent.setParam(Constants.IntentPassingParams.SELECTED_IMG_POS, selectedImgPosition);\n galleryIntent.setParam(Constants.IntentPassingParams.BG_COLOR, backgroundColor);\n mAbility.startAbility(galleryIntent);\n }",
"private void showGalleryChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"private void displayFirstPage() {\r\n\t\tint imageButNo = 0;\r\n\t\tpanelBottom1.removeAll();\r\n\r\n\t\tfor (int i = 1; i < 21; i++) {\r\n\t\t\t// System.out.println(button[i]);\r\n\t\t\timageButNo = buttonOrder[i];\r\n\t\t\tpanelBottom1.add(button[imageButNo]);\r\n\t\t\tif (relevantSelected) {\r\n\t\t\t\tpanelBottom1.add(relevantButton[imageButNo]);\r\n\t\t\t}\r\n\t\t\timageCount++;\r\n\t\t}\r\n\t\tpanelBottom1.revalidate();\r\n\t\tpanelBottom1.repaint();\r\n\r\n\t}",
"public PhotoOrganizer() {\n\t\t\n\n\t\t// set up the panel on the left with two subpanels in a vertical layout\n\t\tJPanel catalogPanel = new JPanel();\n\t\tcatalogPanel.setLayout(new BoxLayout(catalogPanel,\n\t\t\t\tBoxLayout.PAGE_AXIS));\n\t\t\n\t\t// make the row of buttons \n\t\tJPanel buttonPanel = makeButtonPanel();\n\t\tcatalogPanel.add(buttonPanel);\n\t\t\n\t\t// make the album tree\n\t\t\n\t\talbumTree = makeCatalogTree();\n\t\talbumTree.setEditable(true);\n\t\tcatalogPanel.add(new JScrollPane(albumTree));\n\t\t\n\t\t// make the image previewer\n\t\tpreviewPane = new PreviewPane();\n\n\t\t// put the catalog tree and image previewer side by side, \n\t\t// with an adjustable splitter between\n\t\tJSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n\t\t\t\tcatalogPanel, previewPane);\n\t\tsplitPane.setDividerLocation(1200);\n\t\tthis.add(splitPane);\n\t\t\n\t\t/*SlideShowWindow slideShowWindow = new SlideShowWindow();\n\t\tslideShowWindow.setVisible(true); */\n\t\t\n\t\t// give the whole window a good default size\n\t\tthis.setTitle(\"Photo Organizer\");\n this.setSize(1600,600);\n \n \n \n this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent event) {\n \tif(POamount==1){\n \t\t\n \t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n \t\tSystem.exit(0);\n \t}\n \telse{\n \t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n \t\tpoc.closingWindow(po);\n \t}\n \n }\n });\n\n // end the program when the user presses the window's Close button\n\t\t\n\t\t\n\t\t\n\t\taddSearchAlbums();\n\t\tallAlbumsList= allCurrentAlbums();\n\t\t\n\t\tpreviewPane.display(root);\n\t\t\n\t\tpoc = new PhotoOrganizerController(this);\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t}",
"public void initialPanes()\r\n\t{\n\t\t\t\tlmg.setLayout(null);\r\n\t\t\t\tlmg.setBounds(0, 0, 1280, 720);\r\n\t\t\t\t\r\n\t\t//adding child panes\r\n\t\t\t\t//World background pane\r\n\t\t\t\t\tlmg.add(wB, new Integer(0));\r\n\t\t\t\t//World pane\r\n\t\t\t\t\tlmg.add(w, new Integer(1));\r\n\t\t\t\t\t\r\n\t\t//DisplayPanel adds the layered pane which holds all child pane\r\n\t\t\t\tadd(lmg);\r\n\t}",
"public ImageDataSetVisualPanel3() {\n initComponents();\n fillComboBox();\n }",
"void updateDisplayedPhotoSet() {\n // Ignore events fired during initialisation before the window is set up\n if (browsePanel == null)\n return;\n\n setTitle(\"Photo Library: \" + browsePanel.getSelectionDescription());\n thumbnailsPanel.refresh();\n }",
"private void setupBottomPane() {\r\n\t\tbottomPane = new JPanel();\r\n\t\t\r\n\t\t// The list that will be shown in the dropdown box\r\n\t\tString[] array = { \"Control Panels\", \r\n\t\t\t\t\t\t \"Max site-source distance\",\r\n\t\t\t\t\t\t \"Portfolios of interest\",\r\n\t\t\t\t\t\t \"Set Site Params from Web Services\" };\r\n\t\t// The dropdown box with optional settings\r\n\t\tJComboBox controlPanels = new JComboBox(array);\r\n\t\t// The compute EAL button\r\n\t\tcomputeButton = new JButton(\"Compute\");\r\n\t\t// The cancel button to stop computations\r\n\t\t// It starts not visible, but becomes visible when the \"Compute\" button is hit\r\n\t\tcancelButton = new JButton(\"Cancel\");\r\n\t\tcancelButton.setVisible(false);\r\n\t\t// The clear I/O screen button\r\n\t\tclearButton = new JButton(\"Clear Results\");\r\n\t\tJCheckBox progressCheckBox = new JCheckBox(\"Show Progress Bar\");\r\n\t\t\r\n\t\t// Add action/item listeners to the objects.\r\n\t\t// This occurs by all of them being added to a list of components.\r\n\t\t// This list will get iterated over and that is when the listeners get added\r\n\t\t// to the components.\r\n\t\tcomponentList.add(controlPanels);\r\n\t\tcomponentList.add(computeButton);\r\n\t\tcomponentList.add(cancelButton);\r\n\t\tcomponentList.add(clearButton);\r\n\t\tcomponentList.add(progressCheckBox);\r\n\t\t\r\n\t\tbottomPane.add(controlPanels);\r\n\t\tbottomPane.add(computeButton);\r\n\t\tbottomPane.add(cancelButton);\r\n\t\tbottomPane.add(clearButton);\r\n\t\tbottomPane.add(progressCheckBox);\r\n\t}",
"public PhotosFromPanel_Example() {\n initComponents();\n }",
"public SlideshowEditor()\n {\n // INITIALIZING THE WINDOW\n \t\n try { //set theme for SlideshowEditors\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n setTitle(\"Slideshow Editor\");\n setLayout(new BorderLayout());\n\n // CREATING THE TIMELINE\n\n timeline = Timeline.getInstance();\n add(timeline, BorderLayout.EAST);\n\n // CREATING THE MEDIA LIBRARIES\n\n libraries = new JTabbedPane();\n\n m_ImageLibrary = ImageLibrary.getInstance(timeline, null); //initialize libraries with null since user has not selected a directory\n JScrollPane spImages = new JScrollPane(m_ImageLibrary);\n spImages.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n spImages.getVerticalScrollBar().setUnitIncrement(20);\n libraries.add(\"Images\", spImages);\n\n m_AudioLibrary = AudioLibrary.getInstance(timeline, null);\n JScrollPane spAudio = new JScrollPane(m_AudioLibrary);\n spAudio.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n spAudio.getVerticalScrollBar().setUnitIncrement(20);\n libraries.add(\"Audio\", spAudio);\n\n libraries.setPreferredSize(new Dimension(1000,750));\n add(libraries, BorderLayout.WEST);\n\n libraries.setBorder(BorderFactory.createTitledBorder(\"Media\"));\n\n libraries.addChangeListener(new ChangeListener() {\n public void stateChanged(ChangeEvent e) {\n timeline.setActivePane(libraries.getSelectedIndex()); //makes sure Timeline tab matches selected library\n }\n });\n\n timeline.enablePaneMatch(libraries);\n\n // CONFIGURING THE WINDOW\n\n JMenuBar topMenu = new JMenuBar(); //create a menu bar for the window\n setJMenuBar(topMenu);\n\n JMenu fileMenu = new JMenu(\"File\");\n topMenu.add(fileMenu);\n\n JMenuItem newDirectory = new JMenuItem(\"Set Directory\"); //allow user to set directory for Slideshow creation\n newDirectory.addActionListener(event -> changeDirectory());\n newDirectory.setAccelerator(\n KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK)); //add keyboard shortcut Ctrl + O\n fileMenu.add(newDirectory);\n\n JMenuItem exportSlideshow = new JMenuItem(\"Export Slideshow\");\n exportSlideshow.addActionListener(event -> timeline.exportSlideshow(automated));\n exportSlideshow.setAccelerator(\n KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK)); //add keyboard shortcut Ctrl + S\n fileMenu.add(exportSlideshow);\n\n JMenuItem closeProgram = new JMenuItem(\"Exit\"); //add Exit Program button to File menu\n closeProgram.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }\n });\n fileMenu.add(closeProgram);\n\n JMenu settingsMenu = new JMenu(\"Settings\");\n topMenu.add(settingsMenu);\n\n JMenuItem changeSettings = new JMenuItem(\"Change Playback Settings\");\n changeSettings.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (!settingsPresent)\n {\n settingsPresent = true;\n settingsPopup();\n }\n else\n settingsFrame.toFront();\n }\n });\n\n settingsMenu.add(changeSettings);\n\n JMenu helpMenu = new JMenu(\"Help\");\n topMenu.add(helpMenu);\n\n JMenuItem tutorial = new JMenuItem(\"Tutorial\");\n String tutorialMsg = \"<html>Creating a slideshow is easy!<br><ol><li>Open the folder containing the image and audio files you'd like to use. (File -> Set Directory)</li>\" +\n \"<li>To add image and audio files to your slideshow, just click \\\"Add\\\" under the given image/audio file.</li>\" +\n \"<li>To set your slideshow to play back automatically, open the settings window (Settings -> Change Playback Settings) and click the \\\"Automatic Slideshow\\\" checkbox. <br>From there, click the \\\"Submit Changes\\\" button to save your settings. (To set it back to manual, just do the reverse!)</li>\" +\n \"<li>To change the default slide duration of an automatic slideshow, open the settings window and change the value in the \\\"Default Slide Duration\\\" textbox. <br>From there, click the \\\"Submit Changes\\\" button to save your settings.</li>\" +\n \"<li>To change the duration of an individual slide in an automatic slideshow, uncheck the \\\"Use Default Slide Duration\\\" at the bottom of the slide item in the Timeline.<br>From there, click the \\\"Change Duration\\\" button to the right of the slide duration value and enter a new value.<br>(To set it back to the default slide duration, just recheck the \\\"Use Default Slide Duration\\\" checkbox!)</li>\" +\n \"<li>To set a transition to play at the beginning of a slide, select a transition type from the \\\"Transition Type\\\" dropdown at the top of a slide item.</li>\" +\n \"<li>To change the duration of a slide's transition, select a transition duration from the \\\"Transition Duration\\\" dropdown at the top of a slide item.<br>(This dropdown will only be enabled if a transition has been set.)</li>\" +\n \"<li>To move a slide up/down the timeline, click the \\\"Move Up/Down\\\" button at the bottom of a slide item.</li>\" +\n \"<li>To remove a slide from your slideshow, click the \\\"Remove\\\" button at the bottom on a slide item.</li>\" +\n \"<li>Audio items in the Timeline work the same as slide items, except they can't use transitions.</li>\" +\n \"<li>To export your slideshow, navigate to File -> Export Slideshow. From there, give your slideshow a name and click save!<br>Your slideshow is now stored in the same folder as your image and audio files.</li></ol>\" +\n \"NOTE: The left column of blocks in the \\\"Timing\\\" area of the screen, present when creating an automatic slideshow, represents slides. The right column represents audio clips.<br></html>\";\n tutorial.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(null, tutorialMsg, \"Tutorial\", JOptionPane.INFORMATION_MESSAGE);\n }\n });\n\n helpMenu.add(tutorial);\n\n ImageIcon windowIcon = new ImageIcon(\"images\\\\SlideshowIcon.png\");\n // TODO: Uncomment below for JAR\n //ImageIcon windowIcon = new ImageIcon(getClass().getClassLoader().getResource(\"SlideshowIcon.png\"));\n Image icon = windowIcon.getImage();\n setIconImage(icon);\n setSize(new Dimension(1500, 750));\n setResizable(false);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n pack();\n setLocationRelativeTo(null);\n setVisible(true);\n\n\n String welcomeMsg = \"<html><div style='text-align: center;'>Welcome to the greatest slideshow creator ever made.<br>To start creating a slideshow, \" +\n \"use the \\\"File\\\" menu in the top left corner<br>and select \\\"Set Directory\\\" and find the directory containing the images and audio you'd like to work with.<br>\" +\n \"This will also be the directory you'll save your slideshow into.<br>Go ahead. Select one. (You know you want to.)</div></html>\";\n JOptionPane.showMessageDialog(null, welcomeMsg, \"Welcome to Slideshow Editor!\", JOptionPane.INFORMATION_MESSAGE);\n }",
"public void initKnowledgePointPopupLayout() {\n System.out.println(\"mmmmmmmm\"+choice);\n //knowledgePointPopup = new MovieKnowledgePointPopup(this.getContext(), choice);\n //set up the knowledge background according to choice\n if (choice == 1) {\n MovieKnowledgePointPopup knowledgePointPopup = new MovieKnowledgePointPopup(this.getContext());\n knowledgePointPopup.showPopupWindow();\n }\n else if (choice == 2){\n MovieKnowledgePointPopupChoice2 knowledgePointPopup = new MovieKnowledgePointPopupChoice2(this.getContext());\n knowledgePointPopup.showPopupWindow();\n }\n }",
"private void setupInitialStage(){\r\n\t\thelpPage = new ImageView();\r\n\t\tbuttons = new Group();\r\n\t\thelpStage = new Stage();\r\n\t\thelpStage.initStyle(StageStyle.UNDECORATED);\r\n\t\thelpStage.setWidth(600);\r\n\t\thelpStage.setHeight(750);\r\n\t\tRectangle2D screenBounds = Screen.getPrimary().getVisualBounds();\r\n\t\thelpStage.setX((screenBounds.getWidth() - helpStage.getWidth()) / 2);\r\n\t\thelpStage.setY((screenBounds.getHeight() - helpStage.getHeight()) / 2);\r\n\t\thelpStage.setTitle(\"iDo Help Page\");\r\n\t\thelpStage.getIcons().add(\r\n\t\t\t\tnew Image(getClass().getResource(\"iDo_traybar.png\")\r\n\t\t\t\t\t\t.toExternalForm()));\r\n\t\tsetupButtons();\r\n\t\tchangeToFirstPage();\r\n\t}",
"public void initializePane(){\n\t\tmakePane();\n\t\tshowing.setValue(true);\n\t}",
"public void showCollagePicture() {\n\n\t collage.show();\n }",
"private void showImagePicker() {\n // initialising intent\n Intent intent = new Intent();\n\n // setting type to select to be image\n intent.setType(\"image/*\");\n\n // allowing multiple image to be selected\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n imagePickerResultLauncher.launch(Intent.createChooser(intent, \"Select Images\"));\n }",
"void fillInnerParts() {\n infoPanel = new InfoPanel(animated);\n infoPanePlaceholder.getChildren().add(infoPanel.getRoot());\n\n pdfPanel = new PdfPanel();\n resumePanePlaceholder.getChildren().add(pdfPanel.getRoot());\n\n ObservableList<Person> personList = logic.getActivePersonList();\n personListPanel = new PersonListPanel(personList, logic, animated);\n listPersonsPlaceholder.getChildren().add(personListPanel.getRoot());\n\n ResultDisplay resultDisplay = new ResultDisplay();\n centerPanePlaceholder.getChildren().add(resultDisplay.getRoot());\n\n TitleBar titleBar = new TitleBar(prefs.getAddressBookFilePath());\n topTitlePlaceholder.getChildren().add(titleBar.getRoot());\n setAccelerator(titleBar.getControlHelp(), KeyCombination.valueOf(\"F1\"));\n\n CommandBox commandBox = new CommandBox(logic, floatParseRealTime, floatParseLabel, animated);\n topCommandPlaceholder.getChildren().add(commandBox.getRoot());\n }",
"protected void buildChooser() {\n setLayout(new BorderLayout());\n Color color = getColorFromModel();\n\n\tGridBagLayout gridbag = new GridBagLayout();\n JPanel panel = new JPanel(gridbag);\n\tGridBagConstraints constraints = new GridBagConstraints();\n\n\tconstraints.fill = GridBagConstraints.NONE;\n\tconstraints.gridheight = 1;\n\tconstraints.ipadx = 10;\n\tconstraints.ipady = 10;\n\n add(panel, BorderLayout.CENTER);\n\n\tredSlider = createSlider(color.getRed());\n\tredSpinner = createSpinner(color.getRed());\n\tsetRow(new JLabel(\"Red\"),redSlider,redSpinner,panel,gridbag,constraints);\n\n\tgreenSlider = createSlider(color.getGreen());\n\tgreenSpinner = createSpinner(color.getGreen());\n\tsetRow(new JLabel(\"Green\"),greenSlider,greenSpinner,panel,gridbag,constraints);\n\n\tblueSlider = createSlider(color.getBlue());\n\tblueSpinner = createSpinner(color.getBlue());\n\tsetRow(new JLabel(\"Blue\"),blueSlider,blueSpinner,panel,gridbag,constraints);\n\n\talphaSlider = createSlider(color.getAlpha());\n\talphaSpinner = createSpinner(color.getAlpha());\n\tif (doAlpha) setRow(new JLabel(\"Alpha\"),alphaSlider,alphaSpinner,panel,gridbag,constraints);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the POAutoApprovalLimit value for this Account. | public java.lang.String getPOAutoApprovalLimit() {
return POAutoApprovalLimit;
} | [
"public void setPOAutoApprovalLimit(java.lang.String POAutoApprovalLimit) {\n this.POAutoApprovalLimit = POAutoApprovalLimit;\n }",
"public java.lang.String getCreditAutoApprovalLimit() {\n return creditAutoApprovalLimit;\n }",
"public int getLimit(){\n return ACCOUNT_LIMIT;\n }",
"public java.lang.Long getAutoPayMaxAmt() {\r\n return autoPayMaxAmt;\r\n }",
"public double getOverdraftLimit() {\n\t\treturn overdraftLimit;\n\t}",
"public Integer getApproval() {\n return approval;\n }",
"public String getAccountLimit() {\n return accountLimit;\n }",
"public java.lang.String getPOAutoApprovalCurrencyCode() {\n return POAutoApprovalCurrencyCode;\n }",
"public long getRatelimit() {\n\t\t\n\t\treturn this.rateLimitValue;\n\t}",
"@ApiModelProperty(value = \"The maximum number of payments to return in a single response. This value cannot exceed 200.\")\n public Integer getLimit() {\n return limit;\n }",
"public Integer getLoapplylimit() {\r\n return loapplylimit;\r\n }",
"public BigDecimal getApprovalAmt() {\n if (isReceipt()) {\n return getWriteOffAmt();\n }\n return getPayAmt();\n }",
"public Long getForLimit() {\r\n return forLimit;\r\n }",
"public Integer getLoanLimitId() {\n return loanLimitId;\n }",
"public BigDecimal getApprovalAmt()\r\n\t{\r\n\t\tif (isReceipt())\r\n\t\t\treturn getWriteOffAmt();\r\n\t\treturn getPayAmt();\r\n\t}",
"public java.lang.String getPOAutoApprovalDate() {\n return POAutoApprovalDate;\n }",
"public String getLIMIT_EXCEED_APPROVE()\r\n {\r\n\treturn LIMIT_EXCEED_APPROVE;\r\n }",
"public java.lang.Integer getLoanMaxAlreadyRepayPeriod() {\n return loanMaxAlreadyRepayPeriod;\n }",
"public String getProLimit() {\r\n return proLimit;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
use it to access to the wizard "New definition..." (menu DEvelopement>Connectors>New definition...) | public static void activateConnectorDefinitionShell(SWTBot bot) {
bot.waitUntil(Conditions.widgetIsEnabled(bot.menu("Development")),10000);
bot.menu("Development").menu("Connectors").menu("New definition...")
.click();
bot.waitUntil(Conditions.shellIsActive("New definition..."),10000);
} | [
"private void addNewConnection() {\n\t\t IWizard wizard = new NewJmxConnectionWizard();\n\t\t WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);\n\t\t dialog.open();\n\t\t\n\t}",
"public void initContactCreation() {\n click(By.linkText(\"add new\"));\n //wd.findElement(By.linkText(\"add new\")).click();\n }",
"public SAXGeneratorVersionPanel() {\n// try {\n// this.putClientProperty(WizardDescriptor.PROP_HELP_URL, new URL(\"nbresloc:/org/netbeans/modules/xml/tools/generator/SAXGeneratorVersionPanel.html\")); //NOI18N \n// } catch (MalformedURLException ex) {\n// } \n }",
"public WizardDialog(XMultiServiceFactory xMSF, int hid_)\n {\n super(xMSF);\n hid = hid_;\n oWizardResource = new Resource(xMSF, \"Common\", \"dbw\");\n sMsgEndAutopilot = oWizardResource.getResText(UIConsts.RID_DB_COMMON + 33);\n\n //new Resource(xMSF,\"Common\",\"com\");\n }",
"protected void openGenerateSchemaDialog() {\n hide();\n FileOutputStream fileOutput = null;\n try {\n Class<?> loadClass =\n Class.forName(getConnectorOperationLoadClasses(cmbConnectorOperation.getText()));\n Constructor<?> cons = loadClass.getConstructor(Shell.class);\n Object object = cons.newInstance(getParentShell());\n Method method = object.getClass().getMethod(\"getResponse\", new Class<?>[0]);\n ((Dialog) object).create();\n ((Window) object).getShell().setText(SELECT_GENERATE_DYNAMIC_SCHEMA);\n ((Window) object).open();\n\n if (((Window) object).getReturnCode() == Window.OK) {\n dynamicSchemaObject = (String) method.invoke(object);\n file = new File(rootWorkspaceLocation);\n fileOutput = new FileOutputStream(file);\n\n if (!file.exists()) {\n file.createNewFile();\n file.getAbsolutePath();\n }\n byte[] contentInBytes = dynamicSchemaObject.getBytes();\n fileOutput.write(contentInBytes);\n fileOutput.flush();\n }\n } catch (IOException e) {\n log.error(\"Error occurred while reading selected response file\", e);\n } catch (ClassNotFoundException e) {\n MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),\n \"ClassNotFoundException\",\n \"Miss the feature installation of Dynamic Schema Creation for the Operation. \\n\" +\n \"Install the feature and add the plugin via MANIFEST.MF -> dependency tab -> Add -> plugin for dynamic schema generation for connector\");\n } catch (NoSuchMethodException e) {\n MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),\n \"NoSuchMethodException\",\n \"Miss the operation to getting the response to create the dynamic operation\");\n } catch (SecurityException e) {\n MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),\n \"SecurityException\", \"Error thrown by the Security Manager.\");\n } catch (IllegalAccessException e) {\n MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),\n \"IllegalAccessException\", \"Error while creating an Instance.\");\n } catch (IllegalArgumentException e) {\n MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),\n \"IllegalArgumentException\",\n \"Error in the calling of invoke() method in the generic part of Dynamic Schema Creation.\");\n } catch (InvocationTargetException e) {\n MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),\n \"InvocationTargetException\",\n \"Error in the invoked method to generate the dynamic Schema.\");\n } catch (InstantiationException e) {\n MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),\n \"InstantiationException\",\n \"Error in the constructor in Dynamic Schema Creation Class for the Operation.\");\n } finally {\n try {\n if (fileOutput != null) {\n fileOutput.close();\n }\n } catch (IOException e) {\n log.error(\"Error occurred while closing OutputStream: \", e);\n }\n show();\n }\n }",
"com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();",
"public static void activateConnectorDefEditionShell(SWTBot bot) {\r\n bot.waitUntil(Conditions.widgetIsEnabled(bot.menu(\"Development\")),10000);\r\n bot.menu(\"Development\").menu(\"Connectors\").menu(\"Edit definition...\")\r\n .click();\r\n bot.waitUntil(Conditions.shellIsActive(\"Select a connector definition\"),10000);\r\n }",
"@Override\n public void onNewWorkspaceButtonClicked() {\n }",
"protected abstract void createDesignEditorPage() throws PartInitException;",
"public ExportDsmlWizard()\n {\n super( WIZARD_TITLE );\n }",
"org.openxmlformats.schemas.presentationml.x2006.main.CTGuide addNewGuide();",
"public void testWizards() {\n // open new file wizard\n NewFileWizardOperator nfwo = NewFileWizardOperator.invoke();\n nfwo.selectProject(\"SampleProject\");\n nfwo.selectCategory(\"Java\");\n nfwo.selectFileType(\"Java Class\");\n // go to next page\n nfwo.next();\n // create operator for the next page\n NewJavaFileNameLocationStepOperator nfnlso = new NewJavaFileNameLocationStepOperator();\n nfnlso.txtObjectName().typeText(\"MyNewClass\");\n // finish wizard\n //nfnlso.finish();\n // cancel wizard\n nfnlso.cancel();\n }",
"@Override\n public List<UpdatableItem> createPopup() {\n final List<UpdatableItem> items = new ArrayList<UpdatableItem>();\n \n /* host wizard */\n final MyMenuItem newHostWizardItem =\n new MyMenuItem(Tools.getString(\"EmptyBrowser.NewHostWizard\"),\n HOST_ICON,\n null,\n new AccessMode(ConfigData.AccessType.RO, false),\n new AccessMode(ConfigData.AccessType.RO, false)) {\n private static final long serialVersionUID = 1L;\n \n @Override\n public String enablePredicate() {\n return null;\n }\n \n @Override\n public void action() {\n final AddHostDialog dialog = new AddHostDialog(new Host());\n dialog.showDialogs();\n }\n };\n items.add(newHostWizardItem);\n Tools.getGUIData().registerAddHostButton(newHostWizardItem);\n return items;\n }",
"public void testGenericWizards() {\n // open new project wizard\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n npwo.selectCategory(\"Java Web\");\n npwo.selectProject(\"Web Application\");\n npwo.next();\n // create operator for next page\n WizardOperator wo = new WizardOperator(\"Web Application\");\n JTextFieldOperator txtName = new JTextFieldOperator((JTextField) new JLabelOperator(wo, \"Project Name:\").getLabelFor());\n txtName.clearText();\n txtName.typeText(\"MyApp\");\n wo.cancel();\n }",
"private void createDeviceDescriptionFileEditor() {\n\n try {\n\n editorPage = new DeviceDescriptionFileEditorPage(this, getTitle(), getDocumentRoot());\n int index = this.addPage(editorPage, getEditorInput());\n setPageText(index, DeviceDescriptionFileEditor.OVERVIEW_EDITOR_PAGE_NAME);\n editorPage.setIndex(index);\n\n } catch (PartInitException e) {\n ErrorDialog.openError(getSite().getShell(), null,\n DeviceDescriptionFileEditor.PROJECT_EDITOR_CREATION_ERROR_MESSAGE, e.getStatus());\n e.printStackTrace();\n }\n }",
"private void createNewStoryDialog() {\n view.createNewStoryDialog();\n }",
"cl.sii.siiDte.boletas.BOLETADefType addNewDTE();",
"private void defineActions( IPageLayout layout )\n {\n // Add \"new wizards\".\n layout.addNewWizardShortcut( NewConnectionWizard.getId() );\n layout.addNewWizardShortcut( NewEntryWizard.getId() );\n layout.addNewWizardShortcut( NewContextEntryWizard.getId() );\n layout.addNewWizardShortcut( NewSearchWizard.getId() );\n layout.addNewWizardShortcut( NewBookmarkWizard.getId() );\n layout.addNewWizardShortcut( BatchOperationWizard.getId() );\n layout.addNewWizardShortcut( NewLdifFileWizard.getId() );\n\n // Add \"show views\".\n layout.addShowViewShortcut( ConnectionView.getId() );\n layout.addShowViewShortcut( BrowserView.getId() );\n layout.addShowViewShortcut( ModificationLogsView.getId() );\n layout.addShowViewShortcut( SearchLogsView.getId() );\n layout.addShowViewShortcut( IPageLayout.ID_OUTLINE );\n layout.addShowViewShortcut( PROGRESS_VIEW_ID );\n layout.addShowViewShortcut( ERROR_LOG_VIEW_ID );\n }",
"public NewBaseGameActivityWizard() {\r\n \t\r\n \tsetWindowTitle(\"New Android Base Game Activity\");\r\n setDefaultPageImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(ImageConstants.ID,\r\n ImageConstants.LARGE_ACTIVITY_ICON));\r\n newBaseGameActivityPage = new NewBaseGameActivityWizardPage();\r\n externalImportPage = new WizardExternalProjectImportPage();\r\n //externalImportPage.setTitle(\"Import AndEngine to the workspace\");\r\n //externalImportPage.setDescription(\"Download AndEngine file and extract it. Browse your file system and choose the AndEngine folder \");\r\n finishImportPage = new FinishImportPage();\r\n \r\n \r\n System.out.println(\"ENTER!!!!!!!!!!!!\");\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the battle value of this platoon. | public int calculateBattleValue(boolean ignoreC3, boolean ignorePilot,
boolean singleTrooper) {
if (useManualBV) {
return manualBV;
}
// we do this per trooper, then add up
double squadBV = 0;
for (int i = 1; i < locations(); i++) {
if (this.getInternal(i) <= 0) {
continue;
}
double dBV = 0;
double armorBV = 2.5;
if (isFireResistant() || isReflective() || isReactive()) {
armorBV = 3.5;
}
dBV += (getArmor(i) * armorBV) + 1;
// improved sensors add 1
if (hasImprovedSensors()) {
dBV += 1;
}
// active probes add 1
if (hasActiveProbe()) {
dBV += 1;
}
// ECM adds 1
for (Mounted mounted : getMisc()) {
if (mounted.getType().hasFlag(MiscType.F_ECM)) {
if (mounted.getType().hasFlag(MiscType.F_ANGEL_ECM)) {
dBV += 2;
} else {
dBV += 1;
}
break;
}
}
for (Mounted weapon : getWeaponList()) {
if (weapon.getType().hasFlag(WeaponType.F_AMS)) {
if (weapon.getLocation() == LOC_SQUAD) {
dBV += weapon.getType().getBV(this);
}
else {
// squad support, count at 1/troopercount
dBV += weapon.getType().getBV(this)
/ getTotalOInternal();
}
}
}
int runMP = getWalkMP(false, false, true, true, false);
int umuMP = getActiveUMUCount();
int tmmRan = Compute.getTargetMovementModifier(Math.max(runMP,umuMP), false, false,
game).getValue();
// get jump MP, ignoring burden
int rawJump = getJumpMP(false, true, true);
int tmmJumped = (rawJump > 0) ? Compute.
getTargetMovementModifier(rawJump, true, false, game).
getValue() : 0;
double targetMovementModifier = Math.max(tmmRan, tmmJumped);
double tmmFactor = 1 + (targetMovementModifier / 10) + 0.1;
if (hasCamoSystem) {
tmmFactor += 0.2;
}
if (isStealthy) {
tmmFactor += 0.2;
}
// improved stealth get's an extra 0.1, for 0.3 total
if ((stealthName != null)
&& stealthName.equals(BattleArmor.IMPROVED_STEALTH_ARMOR)) {
tmmFactor += 0.1;
}
if (isMimetic) {
tmmFactor += 0.3;
}
dBV *= tmmFactor;
double oBV = 0;
for (Mounted weapon : getWeaponList()) {
// infantry weapons don't count at all
if (weapon.getType().hasFlag(WeaponType.F_INFANTRY) || weapon.getType().hasFlag(WeaponType.F_AMS)) {
continue;
}
if (weapon.getLocation() == LOC_SQUAD) {
// Squad support, count at 1/troopercount
if (weapon.isSquadSupportWeapon()){
oBV += weapon.getType().getBV(this) / getTotalOInternal();
} else {
oBV += weapon.getType().getBV(this);
}
} else {
oBV += weapon.getType().getBV(this) / getTotalOInternal();
}
}
for (Mounted misc : getMisc()) {
if (misc.getType().hasFlag(MiscType.F_MINE)) {
if (misc.getLocation() == LOC_SQUAD) {
oBV += misc.getType().getBV(this);
} else {
oBV += misc.getType().getBV(this) / getTotalOInternal();
}
}
if (misc.getType().hasFlag(MiscType.F_MAGNETIC_CLAMP)) {
if (misc.getLocation() == LOC_SQUAD) {
oBV += misc.getType().getBV(this);
} else {
oBV += misc.getType().getBV(this) / getTotalOInternal();
}
}
}
for (Mounted ammo : getAmmo()) {
int loc = ammo.getLocation();
// don't count oneshot ammo
if (loc == LOC_NONE) {
continue;
}
if ((loc == LOC_SQUAD) || (loc == i)) {
double ammoBV = ((AmmoType) ammo.getType()).getBABV();
oBV += ammoBV;
}
}
if (canMakeAntiMekAttacks()) {
// all non-missile and non-body mounted direct fire weapons
// counted again
for (Mounted weapon : getWeaponList()) {
// infantry weapons don't count at all
if (weapon.getType().hasFlag(WeaponType.F_INFANTRY)) {
continue;
}
if (weapon.getLocation() == LOC_SQUAD) {
if (!weapon.getType().hasFlag(WeaponType.F_MISSILE)
&& !weapon.isBodyMounted()) {
oBV += weapon.getType().getBV(this);
}
} else {
// squad support, count at 1/troopercount
oBV += weapon.getType().getBV(this)
/ getTotalOInternal();
}
}
// magnetic claws and vibro claws counted again
for (Mounted misc : getMisc()) {
if ((misc.getLocation() == LOC_SQUAD)
|| (misc.getLocation() == i)) {
if (misc.getType().hasFlag(MiscType.F_MAGNET_CLAW)
|| misc.getType().hasFlag(MiscType.F_VIBROCLAW)) {
oBV += misc.getType().getBV(this);
}
}
}
}
// getJumpMP won't return UMU MP, so weed need to count that extra
int movement = Math.max(getWalkMP(false, false, true, true, false),
Math.max(getJumpMP(false, true, true), getActiveUMUCount()));
double speedFactor = Math.pow(1 + ((double) (movement - 5) / 10), 1.2);
speedFactor = Math.round(speedFactor * 100) / 100.0;
oBV *= speedFactor;
double soldierBV;
if (useGeometricMeanBV()) {
soldierBV = 2 * Math.sqrt(oBV * dBV);
if (soldierBV == 0) {
soldierBV = oBV + dBV;
}
} else {
soldierBV = oBV + dBV;
}
squadBV += soldierBV;
/*
* if (i == 1) { System.out.println(getChassis()+getModel());
* System.out.println(dBV); System.out.println(oBV);
* System.out.println((oBV+dBV)); }
*/
}
// we have now added all troopers, divide by current strength to then
// multiply by the unit size mod
squadBV /= getShootingStrength();
// we might want to get just the BV of a single trooper
if (singleTrooper) {
return (int) Math.round(squadBV);
}
switch (getShootingStrength()) {
case 1:
break;
case 2:
squadBV *= 2.2;
break;
case 3:
squadBV *= 3.6;
break;
case 4:
squadBV *= 5.2;
break;
case 5:
squadBV *= 7;
break;
case 6:
squadBV *= 9;
break;
}
if (!ignoreC3) {
squadBV += getExtraC3BV((int) Math.round(squadBV));
}
// Adjust BV for crew skills.
double pilotFactor = 1;
if (!ignorePilot) {
pilotFactor = getCrew().getBVSkillMultiplier(isAntiMekTrained(), game);
}
int retVal = (int) Math.round(squadBV * pilotFactor);
return retVal;
} | [
"@Override\n public int calculateBattleValue() {\n return calculateBattleValue(false, false);\n }",
"@Override\n public int calculateBattleValue(boolean ignoreC3, boolean ignorePilot) {\n\n bvText = new StringBuffer(\"<HTML><BODY><CENTER><b>Battle Value Calculations For \");\n\n bvText.append(getChassis());\n bvText.append(\" \");\n bvText.append(getModel());\n bvText.append(\"</b></CENTER>\");\n bvText.append(nl);\n\n bvText.append(\"<b>Defensive Battle Rating Calculation:</b>\");\n bvText.append(nl);\n\n double dbv = 0; // defensive battle value\n double obv = 0; // offensive bv\n\n // total armor points\n double armorMultiplier = 1.0;\n\n switch (getArmorType()) {\n case EquipmentType.T_ARMOR_COMMERCIAL:\n armorMultiplier = 0.5;\n break;\n case EquipmentType.T_ARMOR_HARDENED:\n armorMultiplier = 2.0;\n break;\n case EquipmentType.T_ARMOR_REACTIVE:\n case EquipmentType.T_ARMOR_REFLECTIVE:\n armorMultiplier = 1.5;\n break;\n case EquipmentType.T_ARMOR_LAMELLOR_FERRO_CARBIDE:\n armorMultiplier = 1.2;\n break;\n default:\n armorMultiplier = 1.0;\n break;\n }\n\n if (hasWorkingMisc(MiscType.F_BLUE_SHIELD)) {\n armorMultiplier += 0.2;\n }\n\n bvText.append(startTable);\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Armor Factor x \");\n bvText.append(armorMultiplier);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n // BV for torso mounted cockpit.\n if (getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED) {\n dbv += this.getArmor(Mech.LOC_CT);\n dbv += this.getArmor(Mech.LOC_CT, true);\n }\n int modularArmor = 0;\n for (Mounted mounted : getMisc()) {\n if (mounted.getType().hasFlag(MiscType.F_MODULAR_ARMOR)) {\n modularArmor += mounted.getBaseDamageCapacity() - mounted.getDamageTaken();\n }\n }\n\n dbv += (getTotalArmor() + modularArmor);\n\n bvText.append(dbv);\n bvText.append(\" x 2.5 x \");\n bvText.append(armorMultiplier);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\"= \");\n\n dbv *= 2.5 * armorMultiplier;\n\n bvText.append(dbv);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // total internal structure\n double internalMultiplier = 1.0;\n if (getStructureType() == EquipmentType.T_STRUCTURE_INDUSTRIAL) {\n internalMultiplier = 0.5;\n } else if (getStructureType() == EquipmentType.T_STRUCTURE_REINFORCED) {\n internalMultiplier = 2.0;\n }\n if (hasWorkingMisc(MiscType.F_BLUE_SHIELD)) {\n internalMultiplier += 0.2;\n }\n\n dbv += getTotalInternal() * internalMultiplier * 1.5 * getEngine().getBVMultiplier();\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Total I.S. Points x IS Multipler x 1.5 x Engine Multipler\");\n\n bvText.append(endColumn + startColumn);\n bvText.append(getTotalInternal());\n bvText.append(\" x \");\n bvText.append(internalMultiplier);\n bvText.append(\" x \");\n bvText.append(\"1.5 x \");\n bvText.append(getEngine().getBVMultiplier());\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(getTotalInternal() * internalMultiplier * 1.5 * getEngine().getBVMultiplier());\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // add gyro\n dbv += getWeight() * getGyroMultiplier();\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Weight x Gyro Multipler \");\n bvText.append(endColumn + startColumn);\n bvText.append(getWeight());\n bvText.append(\" x \");\n bvText.append(getGyroMultiplier());\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(getWeight() * getGyroMultiplier());\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Defensive Equipment:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(endRow);\n // add defensive equipment\n double dEquipmentBV = 0;\n for (Mounted mounted : getEquipment()) {\n EquipmentType etype = mounted.getType();\n\n // don't count destroyed equipment\n if (mounted.isDestroyed()) {\n continue;\n }\n\n if (((etype instanceof WeaponType) && (etype.hasFlag(WeaponType.F_AMS) || etype.hasFlag(WeaponType.F_B_POD))) || ((etype instanceof AmmoType) && (((AmmoType) etype).getAmmoType() == AmmoType.T_AMS)) || ((etype instanceof MiscType) && (etype.hasFlag(MiscType.F_ECM) || etype.hasFlag(MiscType.F_AP_POD)\n // not yet coded: ||\n // etype.hasFlag(MiscType.F_BRIDGE_LAYING)\n || etype.hasFlag(MiscType.F_MASS) || etype.hasFlag(MiscType.F_BAP) || etype.hasFlag(MiscType.F_SPIKES) || (etype.hasFlag(MiscType.F_CLUB) && (etype.hasSubType(MiscType.S_SHIELD_LARGE) || etype.hasSubType(MiscType.S_SHIELD_MEDIUM) || etype.hasSubType(MiscType.S_SHIELD_SMALL)))))) {\n double bv = etype.getBV(this);\n dEquipmentBV += bv;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(etype.getName());\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+\");\n bvText.append(bv);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n }\n dbv += dEquipmentBV;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n double armoredBVCal = getArmoredComponentBV();\n\n if (armoredBVCal > 0) {\n bvText.append(\"Armored Components BV Modification\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+\");\n bvText.append(armoredBVCal);\n bvText.append(endColumn);\n bvText.append(endRow);\n dbv += armoredBVCal;\n }\n\n bvText.append(\"Total BV of all Defensive Equipment \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(dEquipmentBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // subtract for explosive ammo\n double ammoPenalty = 0;\n for (Mounted mounted : getEquipment()) {\n int loc = mounted.getLocation();\n int toSubtract = 15;\n EquipmentType etype = mounted.getType();\n\n // only count explosive ammo\n if (!etype.isExplosive()) {\n continue;\n }\n\n // don't count oneshot ammo\n if (loc == LOC_NONE) {\n continue;\n }\n\n // CASE II means no subtraction\n if (hasCASEII(loc)) {\n continue;\n }\n\n if (isClan()) {\n // Clan mechs only count ammo in ct, legs or head (per BMRr).\n // Also count ammo in side torsos if mech has xxl engine\n // (extrapolated from rule intent - not covered in rules)\n if (((loc != LOC_CT) && (loc != LOC_RLEG) && (loc != LOC_LLEG) && (loc != LOC_HEAD)) && !(((loc == LOC_RT) || (loc == LOC_LT)) && (getEngine().getSideTorsoCriticalSlots().length > 2))) {\n continue;\n }\n } else {\n // inner sphere with XL or XXL counts everywhere\n if (getEngine().getSideTorsoCriticalSlots().length <= 2) {\n // without XL or XXL, only count torsos if not CASEed,\n // and arms if arm & torso not CASEed\n if (((loc == LOC_RT) || (loc == LOC_LT)) && locationHasCase(loc)) {\n continue;\n } else if ((loc == LOC_LARM) && (locationHasCase(loc) || locationHasCase(LOC_LT) || hasCASEII(LOC_LT))) {\n continue;\n } else if ((loc == LOC_RARM) && (locationHasCase(loc) || locationHasCase(LOC_RT) || hasCASEII(LOC_RT))) {\n continue;\n }\n }\n }\n\n // gauss rifles only subtract 1 point per slot\n if (etype instanceof GaussWeapon) {\n toSubtract = 1;\n }\n // tasers also get only 1 point per slot\n if (etype instanceof ISMekTaser) {\n toSubtract = 1;\n }\n if ((etype instanceof MiscType) && etype.hasFlag(MiscType.F_BLUE_SHIELD)) {\n // blue shield needs to be special cased, because it's one\n // mounted with lots of locations,\n // and some of those could be proteced by cas\n toSubtract = 0;\n }\n\n // RACs don't really count\n if ((etype instanceof WeaponType) && (((WeaponType) etype).getAmmoType() == AmmoType.T_AC_ROTARY)) {\n toSubtract = 0;\n }\n\n // empty ammo shouldn't count\n if ((etype instanceof AmmoType) && (mounted.getShotsLeft() == 0)) {\n continue;\n }\n // normal ACs only marked as explosive because they are when they\n // just\n // fired incendiary ammo, therefore they don't count for explosive\n // BV\n if ((etype instanceof WeaponType) && ((((WeaponType) etype).getAmmoType() == AmmoType.T_AC) || (((WeaponType) etype).getAmmoType() == AmmoType.T_LAC))) {\n toSubtract = 0;\n }\n\n // B- and M-Pods shouldn't subtract\n if ((etype instanceof WeaponType) && (etype.hasFlag(WeaponType.F_B_POD) || etype.hasFlag(WeaponType.F_M_POD))) {\n toSubtract = 0;\n }\n\n // coolant pods subtract 1 each\n if ((etype instanceof AmmoType) && (((AmmoType) etype).getAmmoType() == AmmoType.T_COOLANT_POD)) {\n toSubtract = 1;\n }\n\n // PPC capacitors shouldn't count\n if ((etype instanceof MiscType) && etype.hasFlag(MiscType.F_PPC_CAPACITOR) && (mounted.getLinked() != null)) {\n toSubtract = 0;\n }\n // we subtract per critical slot\n toSubtract *= etype.getCriticals(this);\n ammoPenalty += toSubtract;\n }\n // special case for blueshield, need to check each non-head location\n // seperately for CASE\n if (hasWorkingMisc(MiscType.F_BLUE_SHIELD)) {\n int unProtectedCrits = 0;\n for (int loc = LOC_CT; loc <= LOC_LLEG; loc++) {\n if (isClan()) {\n // Clan mechs only count ammo in ct, legs or head (per\n // BMRr).\n // Also count ammo in side torsos if mech has xxl engine\n // (extrapolated from rule intent - not covered in rules)\n if (((loc != LOC_CT) && (loc != LOC_RLEG) && (loc != LOC_LLEG) && (loc != LOC_HEAD)) && !(((loc == LOC_RT) || (loc == LOC_LT)) && (getEngine().getSideTorsoCriticalSlots().length > 2))) {\n continue;\n }\n } else {\n // inner sphere with XL or XXL counts everywhere\n if (getEngine().getSideTorsoCriticalSlots().length <= 2) {\n // without XL or XXL, only count torsos if not CASEed,\n // and arms if arm & torso not CASEed\n if (((loc == LOC_RT) || (loc == LOC_LT)) && locationHasCase(loc)) {\n continue;\n } else if ((loc == LOC_LARM) && (locationHasCase(loc) || locationHasCase(LOC_LT))) {\n continue;\n } else if ((loc == LOC_RARM) && (locationHasCase(loc) || locationHasCase(LOC_RT))) {\n continue;\n }\n }\n }\n unProtectedCrits++;\n }\n ammoPenalty += unProtectedCrits;\n }\n dbv = Math.max(1, dbv - ammoPenalty);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Explosive Weapons/Equipment Penalty \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= -\");\n bvText.append(ammoPenalty);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(dbv);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // adjust for target movement modifier\n // we use full possible movement, ignoring gravity and heat\n // but taking into account hit actuators\n int walkMP = getWalkMP(false, true);\n int runMP;\n if (hasTSM()) {\n walkMP++;\n }\n if (hasMASCAndSuperCharger()) {\n runMP = (int) Math.ceil(walkMP * 2.5);\n } else if (hasMASC()) {\n runMP = walkMP * 2;\n } else {\n runMP = (int) Math.ceil(walkMP * 1.5);\n }\n if (getArmorType() == EquipmentType.T_ARMOR_HARDENED) {\n runMP--;\n }\n int tmmRan = Compute.getTargetMovementModifier(runMP, false, false).getValue();\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Run MP\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(runMP);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Target Movement Modifer For Run\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(tmmRan);\n bvText.append(endColumn);\n bvText.append(endRow);\n // use UMU for JJ, unless we have more jump MP than UMU (then we have\n // mechanical jumpboosters\n int jumpMP = Math.max(getActiveUMUCount(), getJumpMP(false));\n int tmmJumped = Compute.getTargetMovementModifier(jumpMP, true, false).getValue();\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Target Movement Modifer For Jumping\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(tmmJumped);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n double targetMovementModifier = Math.max(tmmRan, tmmJumped);\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Target Movement Modifer\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(targetMovementModifier);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // Try to find a Mek Stealth or similar system.\n if (hasStealth() || hasNullSig()) {\n targetMovementModifier += 2;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Stealth +2\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+2\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n }\n if (hasChameleonShield()) {\n targetMovementModifier += 2;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Chameleon +2\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+2\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n }\n if (hasVoidSig()) {\n targetMovementModifier += 3;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Void Sig +3\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+3\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n }\n double tmmFactor = 1 + (targetMovementModifier / 10);\n dbv *= tmmFactor;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Multiply by Defensive Movement Factor of \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(tmmFactor);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" x \");\n bvText.append(tmmFactor);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Defensive Battle Value\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(dbv);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"<b>Offensive Battle Rating Calculation:</b>\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n // calculate heat efficiency\n int mechHeatEfficiency = 6 + getHeatCapacity();\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Base Heat Efficiency \");\n\n double coolantPods = 0;\n for (Mounted ammo : getAmmo()) {\n if (((AmmoType) ammo.getType()).getAmmoType() == AmmoType.T_COOLANT_POD) {\n coolantPods++;\n }\n }\n\n // account for coolant pods\n if (coolantPods > 0) {\n mechHeatEfficiency += Math.ceil(getNumberOfSinks() * coolantPods / 5);\n bvText.append(\" + Coolant Pods \");\n }\n\n if (getJumpMP() > 0) {\n mechHeatEfficiency -= getJumpHeat(getJumpMP());\n bvText.append(\" - Jump Heat \");\n } else {\n mechHeatEfficiency -= getRunHeat();\n bvText.append(\" - Run Heat \");\n }\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(6 + getHeatCapacity());\n\n if (coolantPods > 0) {\n bvText.append(\" + \");\n bvText.append(Math.ceil((getNumberOfSinks() * coolantPods) / 5));\n }\n\n bvText.append(\" - \");\n if (getJumpMP() > 0) {\n bvText.append(getJumpHeat(getJumpMP()));\n } else {\n bvText.append(getRunHeat());\n }\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(mechHeatEfficiency);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Unmodified Weapon BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n double weaponBV = 0;\n boolean hasTargComp = hasTargComp();\n // first, add up front-faced and rear-faced unmodified BV,\n // to know wether front- or rear faced BV should be halved\n double bvFront = 0, bvRear = 0, nonArmFront = 0, nonArmRear = 0, bvTurret = 0;\n ArrayList<Mounted> weapons = getWeaponList();\n for (Mounted weapon : weapons) {\n WeaponType wtype = (WeaponType) weapon.getType();\n if (wtype.hasFlag(WeaponType.F_B_POD)) {\n continue;\n }\n double dBV = wtype.getBV(this);\n\n // don't count destroyed equipment\n if (weapon.isDestroyed()) {\n continue;\n }\n // don't count AMS, it's defensive\n if (wtype.hasFlag(WeaponType.F_AMS)) {\n continue;\n }\n // calc MG Array here:\n if (wtype.hasFlag(WeaponType.F_MGA)) {\n double mgaBV = 0;\n for (Mounted possibleMG : getWeaponList()) {\n if (possibleMG.getType().hasFlag(WeaponType.F_MG) && (possibleMG.getLocation() == weapon.getLocation())) {\n mgaBV += possibleMG.getType().getBV(this);\n }\n }\n dBV = mgaBV * 0.67;\n }\n String name = wtype.getName();\n // check to see if the weapon is a PPC and has a Capacitor attached\n // to it\n if (wtype.hasFlag(WeaponType.F_PPC) && (weapon.getLinkedBy() != null)) {\n dBV += ((MiscType) weapon.getLinkedBy().getType()).getBV(this, weapon);\n name = name.concat(\" with Capacitor\");\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(name);\n if (weapon.isTurretMounted()) {\n bvTurret += dBV;\n bvText.append(\" (T)\");\n } else if (weapon.isRearMounted()) {\n bvRear += dBV;\n bvText.append(\" (R)\");\n } else {\n bvFront += dBV;\n }\n if (!isArm(weapon.getLocation()) && !weapon.isTurretMounted()) {\n if (weapon.isRearMounted()) {\n nonArmRear += dBV;\n } else {\n nonArmFront += dBV;\n }\n }\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(dBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Unmodified Front BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(bvFront);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Unmodfied Rear BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(bvRear);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Unmodfied Turret BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(bvTurret);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Unmodfied BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(bvRear + bvFront + bvTurret);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(\"Unmodified Front non-arm BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(nonArmFront);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Unmodfied Rear non-arm BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(nonArmRear);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n boolean halveRear = true;\n boolean turretFront = true;\n if (nonArmFront <= nonArmRear) {\n halveRear = false;\n turretFront = false;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"halving front instead of rear weapon BVs\");\n bvText.append(endColumn);\n bvText.append(endRow);\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"turret mounted weapon BVs count as rear firing\");\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Weapon Heat:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // here we store the modified BV and heat of all heat-using weapons,\n // to later be sorted by BV\n ArrayList<ArrayList<Object>> heatBVs = new ArrayList<ArrayList<Object>>();\n // BVs of non-heat-using weapons\n ArrayList<ArrayList<Object>> nonHeatBVs = new ArrayList<ArrayList<Object>>();\n // total up maximum heat generated\n // and add up BVs for ammo-using weapon types for excessive ammo rule\n Map<String, Double> weaponsForExcessiveAmmo = new HashMap<String, Double>();\n double maximumHeat = 0;\n for (Mounted mounted : getWeaponList()) {\n WeaponType wtype = (WeaponType) mounted.getType();\n if (wtype.hasFlag(WeaponType.F_B_POD)) {\n continue;\n }\n double weaponHeat = wtype.getHeat();\n\n // only count non-damaged equipment\n if (mounted.isMissing() || mounted.isHit() || mounted.isDestroyed() || mounted.isBreached()) {\n continue;\n }\n\n // one shot weapons count 1/4\n if ((wtype.getAmmoType() == AmmoType.T_ROCKET_LAUNCHER) || wtype.hasFlag(WeaponType.F_ONESHOT)) {\n weaponHeat *= 0.25;\n }\n\n // double heat for ultras\n if ((wtype.getAmmoType() == AmmoType.T_AC_ULTRA) || (wtype.getAmmoType() == AmmoType.T_AC_ULTRA_THB)) {\n weaponHeat *= 2;\n }\n\n // Six times heat for RAC\n if (wtype.getAmmoType() == AmmoType.T_AC_ROTARY) {\n weaponHeat *= 6;\n }\n\n // laser insulator reduce heat by 1, to a minimum of 1\n if (wtype.hasFlag(WeaponType.F_LASER) && (mounted.getLinkedBy() != null)\n && !mounted.getLinkedBy().isInoperable()\n && mounted.getLinkedBy().getType().hasFlag(MiscType.F_LASER_INSULATOR)) {\n weaponHeat -= 1;\n if (weaponHeat == 0) {\n weaponHeat++;\n }\n }\n\n // half heat for streaks\n if ((wtype.getAmmoType() == AmmoType.T_SRM_STREAK) || (wtype.getAmmoType() == AmmoType.T_MRM_STREAK) || (wtype.getAmmoType() == AmmoType.T_LRM_STREAK)) {\n weaponHeat *= 0.5;\n }\n\n String name = wtype.getName();\n\n // check to see if the weapon is a PPC and has a Capacitor attached\n // to it\n if (wtype.hasFlag(WeaponType.F_PPC) && (mounted.getLinkedBy() != null)) {\n name = name.concat(\" with Capacitor\");\n weaponHeat += 5;\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(name);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\"+ \");\n bvText.append(weaponHeat);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n double dBV = wtype.getBV(this);\n String weaponName = mounted.getName() + (mounted.isRearMounted() ? \"(R)\" : \"\");\n\n // don't count AMS, it's defensive\n if (wtype.hasFlag(WeaponType.F_AMS)) {\n continue;\n }\n // calc MG Array here:\n if (wtype.hasFlag(WeaponType.F_MGA)) {\n double mgaBV = 0;\n for (Mounted possibleMG : getWeaponList()) {\n if (possibleMG.getType().hasFlag(WeaponType.F_MG) && (possibleMG.getLocation() == mounted.getLocation())) {\n mgaBV += possibleMG.getType().getBV(this);\n }\n }\n dBV = mgaBV * 0.67;\n }\n\n // if linked to AES, multiply by 1.5\n if (hasFunctionalArmAES(mounted.getLocation())) {\n dBV *= 1.5;\n }\n // and we'll add the tcomp here too\n if (wtype.hasFlag(WeaponType.F_DIRECT_FIRE) && hasTargComp) {\n dBV *= 1.25;\n }\n // artemis bumps up the value\n // PPC caps do, too\n if (mounted.getLinkedBy() != null) {\n // check to see if the weapon is a PPC and has a Capacitor\n // attached to it\n if (wtype.hasFlag(WeaponType.F_PPC)) {\n dBV += ((MiscType) mounted.getLinkedBy().getType()).getBV(this, mounted);\n weaponName = weaponName.concat(\" with Capacitor\");\n }\n Mounted mLinker = mounted.getLinkedBy();\n if ((mLinker.getType() instanceof MiscType) && mLinker.getType().hasFlag(MiscType.F_ARTEMIS)) {\n dBV *= 1.2;\n weaponName = weaponName.concat(\" with Artemis IV\");\n }\n if ((mLinker.getType() instanceof MiscType) && mLinker.getType().hasFlag(MiscType.F_ARTEMIS_V)) {\n dBV *= 1.3;\n weaponName = weaponName.concat(\" with Artemis V\");\n }\n if ((mLinker.getType() instanceof MiscType) && mLinker.getType().hasFlag(MiscType.F_APOLLO)) {\n dBV *= 1.15;\n weaponName = weaponName.concat(\" with Apollo\");\n }\n }\n // half for being rear mounted (or front mounted, when more rear-\n // than front-mounted un-modded BV\n // or for being turret mounted, when more rear-mounted BV than front mounted BV\n if ((!isArm(mounted.getLocation()) && !mounted.isTurretMounted() && ((mounted.isRearMounted() && halveRear) || (!mounted.isRearMounted() && !halveRear))) || (mounted.isTurretMounted() && ((!turretFront && halveRear) || (turretFront && !halveRear)))) {\n dBV /= 2;\n }\n\n // ArrayList that stores weapon values\n // stores a double first (BV), then an Integer (heat),\n // then a String (weapon name)\n // for 0 heat weapons, just stores BV and name\n ArrayList<Object> weaponValues = new ArrayList<Object>();\n if (weaponHeat > 0) {\n // store heat and BV, for sorting a few lines down;\n weaponValues.add(dBV);\n weaponValues.add(weaponHeat);\n weaponValues.add(weaponName);\n heatBVs.add(weaponValues);\n } else {\n weaponValues.add(dBV);\n weaponValues.add(weaponName);\n nonHeatBVs.add(weaponValues);\n }\n\n maximumHeat += weaponHeat;\n // add up BV of ammo-using weapons for each type of weapon,\n // to compare with ammo BV later for excessive ammo BV rule\n if (!((wtype.hasFlag(WeaponType.F_ENERGY) && !(wtype.getAmmoType() == AmmoType.T_PLASMA)) || wtype.hasFlag(WeaponType.F_ONESHOT) || wtype.hasFlag(WeaponType.F_INFANTRY) || (wtype.getAmmoType() == AmmoType.T_NA))) {\n String key = wtype.getAmmoType() + \":\" + wtype.getRackSize();\n if (!weaponsForExcessiveAmmo.containsKey(key)) {\n weaponsForExcessiveAmmo.put(key, wtype.getBV(this));\n } else {\n weaponsForExcessiveAmmo.put(key, wtype.getBV(this) + weaponsForExcessiveAmmo.get(key));\n }\n }\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Heat:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\"= \");\n bvText.append(maximumHeat);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Weapons with no heat at full BV:\");\n bvText.append(endColumn);\n bvText.append(endRow);\n // count heat-free weapons always at full modified BV\n for (ArrayList<Object> nonHeatWeapon : nonHeatBVs) {\n weaponBV += (Double) nonHeatWeapon.get(0);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(nonHeatWeapon.get(1));\n if (nonHeatWeapon.get(1).toString().length() < 8) {\n bvText.append(\"\\t\");\n }\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(nonHeatWeapon.get(0));\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Heat Modified Weapons BV: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n if (maximumHeat > mechHeatEfficiency) {\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"(Heat Exceeds Mech Heat Efficiency) \");\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n if (maximumHeat <= mechHeatEfficiency) {\n\n // count all weapons equal\n for (ArrayList<Object> weaponValues : heatBVs) {\n // name\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(weaponValues.get(2));\n weaponBV += (Double) weaponValues.get(0);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weaponValues.get(0));\n bvText.append(endColumn);\n bvText.append(endRow);\n\n }\n } else {\n // this will count heat-generating weapons at full modified BV until\n // heatefficiency is reached or passed with one weapon\n\n // sort the heat-using weapons by modified BV\n Collections.sort(heatBVs, new Comparator<ArrayList<Object>>() {\n public int compare(ArrayList<Object> obj1, ArrayList<Object> obj2) {\n // first element in the the ArrayList is BV, second is heat\n // if same BV, lower heat first\n if (obj1.get(0).equals(obj2.get(0))) {\n return (int) Math.ceil((Double) obj1.get(1) - (Double) obj2.get(1));\n }\n // higher BV first\n return (int) Math.ceil((Double) obj2.get(0) - (Double) obj1.get(0));\n }\n });\n // count heat-generating weapons at full modified BV until\n // heatefficiency is reached or\n // passed with one weapon\n double heatAdded = 0;\n for (ArrayList<Object> weaponValues : heatBVs) {\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(weaponValues.get(2));\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n double dBV = (Double) weaponValues.get(0);\n if (heatAdded >= mechHeatEfficiency) {\n dBV /= 2;\n }\n if (heatAdded >= mechHeatEfficiency) {\n bvText.append(\"Heat efficiency reached, half BV\");\n }\n heatAdded += (Double) weaponValues.get(1);\n weaponBV += dBV;\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(dBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Heat count: \" + heatAdded);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n }\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Weapons BV Adjusted For Heat:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(weaponBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Misc Offensive Equipment: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // add offensive misc. equipment BV (everything except AMS, A-Pod, ECM -\n // BMR p152)\n double oEquipmentBV = 0;\n for (Mounted mounted : getMisc()) {\n MiscType mtype = (MiscType) mounted.getType();\n\n // don't count destroyed equipment\n if (mounted.isDestroyed()) {\n continue;\n }\n\n if (mtype.hasFlag(MiscType.F_ECM) || mtype.hasFlag(MiscType.F_BAP) || mtype.hasFlag(MiscType.F_AP_POD)\n // not yet coded: || etype.hasFlag(MiscType.F_BRIDGE_LAYING)\n || mtype.hasFlag(MiscType.F_TARGCOMP) || mtype.hasFlag(MiscType.F_SPIKES) || (mtype.hasFlag(MiscType.F_CLUB) && (mtype.hasSubType(MiscType.S_SHIELD_LARGE) || mtype.hasSubType(MiscType.S_SHIELD_MEDIUM) || mtype.hasSubType(MiscType.S_SHIELD_SMALL)))) {\n continue;\n }\n double bv = mtype.getBV(this);\n // if physical weapon linked to AES, multiply by 1.5\n if ((mtype.hasFlag(MiscType.F_CLUB) || mtype.hasFlag(MiscType.F_HAND_WEAPON)) && hasFunctionalArmAES(mounted.getLocation())) {\n bv *= 1.5;\n }\n\n if (bv > 0) {\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(mtype.getName());\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(bv);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n oEquipmentBV += bv;\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Misc Offensive Equipment BV: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(oEquipmentBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n weaponBV += oEquipmentBV;\n\n // add ammo bv\n double ammoBV = 0;\n // extra BV for when we have semiguided LRMs and someone else has TAG on\n // our team\n double tagBV = 0;\n Map<String, Double> ammo = new HashMap<String, Double>();\n ArrayList<String> keys = new ArrayList<String>();\n for (Mounted mounted : getAmmo()) {\n AmmoType atype = (AmmoType) mounted.getType();\n\n // don't count depleted ammo\n if (mounted.getShotsLeft() == 0) {\n continue;\n }\n\n // don't count AMS, it's defensive\n if (atype.getAmmoType() == AmmoType.T_AMS) {\n continue;\n }\n\n // don't count oneshot ammo, it's considered part of the launcher.\n if (mounted.getLocation() == Entity.LOC_NONE) {\n // assumption: ammo without a location is for a oneshot weapon\n continue;\n }\n // semiguided or homing ammo might count double\n if ((atype.getMunitionType() == AmmoType.M_SEMIGUIDED) || (atype.getMunitionType() == AmmoType.M_HOMING)) {\n Player tmpP = getOwner();\n\n if (tmpP != null) {\n // Okay, actually check for friendly TAG.\n if (tmpP.hasTAG()) {\n tagBV += atype.getBV(this);\n } else if ((tmpP.getTeam() != Player.TEAM_NONE) && (game != null)) {\n for (Enumeration<Team> e = game.getTeams(); e.hasMoreElements();) {\n Team m = e.nextElement();\n if (m.getId() == tmpP.getTeam()) {\n if (m.hasTAG(game)) {\n tagBV += atype.getBV(this);\n }\n // A player can't be on two teams.\n // If we check his team and don't give the\n // penalty, that's it.\n break;\n }\n }\n }\n }\n }\n String key = atype.getAmmoType() + \":\" + atype.getRackSize();\n if (!keys.contains(key)) {\n keys.add(key);\n }\n if (!ammo.containsKey(key)) {\n ammo.put(key, atype.getBV(this));\n } else {\n ammo.put(key, atype.getBV(this) + ammo.get(key));\n }\n }\n\n // Excessive ammo rule:\n // Only count BV for ammo for a weapontype until the BV of all weapons\n // of that\n // type on the mech is reached.\n for (String key : keys) {\n\n if (weaponsForExcessiveAmmo.get(key) != null) {\n if (ammo.get(key) > weaponsForExcessiveAmmo.get(key)) {\n ammoBV += weaponsForExcessiveAmmo.get(key);\n } else {\n ammoBV += ammo.get(key);\n }\n } else {\n // Ammo with no matching weapons counts 0, unless it's a coolant\n // pod\n // because coolant pods have no matching weapon\n if (key.equals(new Integer(AmmoType.T_COOLANT_POD).toString() + \"1\")) {\n ammoBV += ammo.get(key);\n }\n }\n }\n weaponBV += ammoBV;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Toal Ammo BV: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(ammoBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n double weight = getWeight();\n double aesMultiplier = 1;\n if (hasFunctionalArmAES(Mech.LOC_LARM)) {\n aesMultiplier += 0.1;\n }\n if (hasFunctionalArmAES(Mech.LOC_RARM)) {\n aesMultiplier += 0.1;\n }\n if (hasFunctionalLegAES()) {\n if (this instanceof BipedMech) {\n aesMultiplier += 0.2;\n } else if (this instanceof QuadMech) {\n aesMultiplier += 0.4;\n }\n }\n\n weight *= aesMultiplier;\n\n if (aesMultiplier > 1) {\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Weight x AES Multiplier \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight);\n bvText.append(\" x \");\n bvText.append(aesMultiplier);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" = \");\n bvText.append(weight);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n // add tonnage, adjusted for TSM\n if (hasTSM()) {\n weaponBV += weight * 1.5;\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Add weight + TSM Modifier\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight);\n bvText.append(\" * 1.5\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight * 1.5);\n bvText.append(endColumn);\n bvText.append(endRow);\n } else if (hasIndustrialTSM()) {\n weaponBV += weight * 1.15;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Add weight + Industrial TSM Modifier\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight);\n bvText.append(\" * 1.115\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight * 1.15);\n bvText.append(endColumn);\n bvText.append(endRow);\n } else {\n weaponBV += weight;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Add weight\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\"+\");\n bvText.append(weight);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n double speedFactor = Math.pow(1 + (((double) runMP + (Math.round((double) jumpMP / 2)) - 5) / 10), 1.2);\n speedFactor = Math.round(speedFactor * 100) / 100.0;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Final Speed Factor: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(speedFactor);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n obv = weaponBV * speedFactor;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Weapons BV * Speed Factor \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weaponBV);\n bvText.append(\" * \");\n bvText.append(speedFactor);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" = \");\n bvText.append(obv);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // industrial without advanced firing control get's 0.9 mod to obv\n if (getCockpitType() == Mech.COCKPIT_INDUSTRIAL) {\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Offensive BV * 0.9 for Industrial 'Mech without advanced targeting system\");\n bvText.append(endColumn);\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(obv);\n bvText.append(\" * 0.9 = \");\n obv *= 0.9;\n bvText.append(obv);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Offensive BV + Defensive BV\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n double finalBV = obv + dbv;\n\n bvText.append(dbv);\n bvText.append(\" + \");\n bvText.append(obv);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" = \");\n bvText.append(finalBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n double cockpitMod = 1;\n if ((getCockpitType() == Mech.COCKPIT_SMALL) || (getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED)) {\n cockpitMod = 0.95;\n finalBV *= cockpitMod;\n }\n finalBV = Math.round(finalBV);\n bvText.append(\"Total BV * Cockpit Modifier\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(obv + dbv);\n bvText.append(\" * \");\n bvText.append(cockpitMod);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" = \");\n bvText.append(finalBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Final BV\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(finalBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(endTable);\n bvText.append(\"</BODY></HTML>\");\n\n // we get extra bv from some stuff\n double xbv = 0.0;\n // extra BV for semi-guided lrm when TAG in our team\n xbv += tagBV;\n // extra from c3 networks. a valid network requires at least 2 members\n // some hackery and magic numbers here. could be better\n // also, each 'has' loops through all equipment. inefficient to do it 3\n // times\n if (((hasC3MM() && (calculateFreeC3MNodes() < 2)) || (hasC3M() && (calculateFreeC3Nodes() < 3)) || (hasC3S() && (c3Master > NONE)) || (hasC3i() && (calculateFreeC3Nodes() < 5))) && !ignoreC3 && (game != null)) {\n int totalForceBV = 0;\n totalForceBV += this.calculateBattleValue(true, true);\n for (Entity e : game.getC3NetworkMembers(this)) {\n if (!equals(e) && onSameC3NetworkAs(e)) {\n totalForceBV += e.calculateBattleValue(true, true);\n }\n }\n xbv += totalForceBV *= 0.05;\n }\n\n finalBV = (int) Math.round(finalBV + xbv);\n\n // and then factor in pilot\n double pilotFactor = 1;\n if (!ignorePilot) {\n pilotFactor = crew.getBVSkillMultiplier();\n }\n\n int retVal = (int) Math.round((finalBV) * pilotFactor);\n\n // don't factor pilot in if we are just calculating BV for C3 extra BV\n if (ignoreC3) {\n return (int) finalBV;\n }\n return retVal;\n }",
"public int GetValue() {\n return (int) (myCost * ((float) myHealth / 100f) * (Math.max(1 - ((float) myAge / (float) myMaxAge), 0.2f)));\n }",
"public int getBattleStrength() {\r\n return battleStrength;\r\n }",
"public double calculateFuelConsumption()\n {\n return getFuelNeeds()/getDistance();\n }",
"public int getValue(){\n\t\tint totalValue = 0;\n\t\tfor(int i = 0; i < boardData.length; i++){\n\t\t\tint valueCurrentTile = getValue(getX(i), getY(i));\n\t\t\tif(valueCurrentTile != EMPTY) {\n\t\t\t\tfor(Direction d : Direction.values()){\n\t\t\t\t\tint adjacentX = getX(i) + d.x, adjacentY = getY(i) + d.y;\n\t\t\t\t\tint valueAdjacent = EMPTY;\n\t\t\t\t\tboolean inside = isInsideBoard(adjacentX, adjacentY);\n\t\t\t\t\t//find first piece that is adjacent to current tile\n\t\t\t\t\twhile(valueAdjacent == EMPTY && inside){\n\t\t\t\t\t\tvalueAdjacent = getValue(adjacentX, adjacentY);\n\t\t\t\t\t\tadjacentX += d.x; adjacentY += d.y;\n\t\t\t\t\t\tinside = isInsideBoard(adjacentX, adjacentY);\n\t\t\t\t\t}\n\t\t\t\t\tif(inside && valueAdjacent != EMPTY){\n\t\t\t\t\t\tif(valueAdjacent == valueCurrentTile){\n\t\t\t\t\t\t\ttotalValue -= valueAdjacent * valueAdjacent * valueAdjacent * (freeSlots + 1);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tint abs = Math.abs(valueCurrentTile - valueAdjacent);\n\t\t\t\t\t\t\ttotalValue += abs * (freeSlots + 1)\n\t\t\t\t\t\t\t\t\t* Math.max(valueCurrentTile, valueAdjacent);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint highest = getHighest();\n\t\treturn totalValue - (isInCorner(getIndexHighest())? highest * highest * highest * highest * (freeSlots + 1) : highest * (freeSlots + 1));\n\t}",
"int getBattleSpeed();",
"@Override\r\n protected Float calculate() {\r\n\r\n Float fNewValue = 0.0f;\r\n\r\n Float fModifier = mapDependencyStats.get(\"ABILITY_CON_MODIFIER\");\r\n Float fHealingSurgesPerDay = mapDependencyStats.get(\"CLASS_HEALING_SURGES_PER_DAY\");\r\n \r\n fNewValue = fModifier + fHealingSurgesPerDay;\r\n\r\n return fNewValue;\r\n\r\n }",
"public int calculate() {\r\n float damage = (attack * attackMultiplier - defense * defenseMultiplier) * resistance;\r\n if (damage <= 0) damage = 0;\r\n damage += (int) pircing * resistance;\r\n if (damage <= 0) damage = 1;\r\n return (int) damage;\r\n }",
"public double getCurrentFuel();",
"@Override\n\tpublic int calculateCost() \n\t{\n\t\treturn (this.contemporaryChairCost*this.chairCount);\n\t}",
"private double getWonGame() {\n return (double) (wonGame * 100) / nbGame;\n }",
"public int getBattleSpeed() {\n return battleSpeed_;\n }",
"public double moneyToValue() {\n double total = 0;\n for (Map.Entry<Integer, Integer> entry : bills.entrySet()) {\n total += entry.getKey().intValue() * entry.getValue().intValue();\n }\n return total;\n }",
"public static double evaluateBoardValue(Player owner){\n\t\t\n\t\tdouble totalValue = 0;\n\n\t\tPlayer opponent = owner.getOpponent();\n\t\t\n\t\tArrayList<ChessPiece> ownerPieces = owner.getAllPieces();\n\t\tArrayList<ChessPiece> opponentPieces = opponent.getAllPieces();\n\t\t\n\t\tfor (ChessPiece p : ownerPieces){\n\t\t\ttotalValue += p.getPieceValue();\n\t\t}\n\t\t\n\t\tfor (ChessPiece p : opponentPieces){\n\t\t\ttotalValue -= p.getPieceValue();\n\t\t}\n\t\t\n\t\treturn totalValue;\n\t}",
"int getBattleTypeValue();",
"public double getWaterConsumption();",
"public int getCurrFuel() {return ship.getCurrFuel(); }",
"public double getProduction()\n\t{\n\t\treturn ((10000000 - blockedtime - starvetime)/10000000) * 100;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A GitletException MSG as its message. | GitletException(String msg) {
super(msg);
} | [
"@Override\n public String getMessage() {\n return \"EXCEPTIONID \" + getId() + \": \" + super.getMessage();\n }",
"java.lang.String getExMessage();",
"public String getMessage() {\n\t\tswitch (exceptionType) {\n\t\tcase 0:\n\t\t\treturn \"File not found\";\n\t\tdefault:\n\t\t\treturn \"Unkown error\";\n\t\t}\n}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"AssessmentException: Error Occurresd due to exception\"+msg;\r\n\t}",
"public MException(String msg) {\n super(msg);\n this.msg = msg;\n }",
"java.lang.String getErrMsg();",
"@Override\n\tpublic String getMessage() {\n\t\treturn innerException.getMessage();\n\t}",
"public PrenotazioneException(String msg){\r\n\t\tsuper(msg);\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn exMsg;\n\t}",
"static GitletException error(String msgFormat, Object... arguments) {\n return new GitletException(String.format(msgFormat, arguments));\n }",
"public HepRepConversionException(String msg) {\n super(msg);\n }",
"public String getMessage() {\n String message = super.getMessage();\n\n return ((message == null) && (mException != null)) \n ? mException.getMessage() : message;\n }",
"java.lang.String getErrormessage();",
"public DeMenorExeption(String msg) {\n super(msg);\n }",
"public String getMessage() {\n\tif (detail == null) \n\t return super.getMessage();\n\telse\n\t return super.getMessage() + \n\t\t\"; nested exception is: \\n\\t\" +\n\t\tdetail.toString();\n }",
"public String getMessage() {\n StringBuilder sb = new StringBuilder();\n for (X x : exceptions) {\n if (sb.length() > 0) {\n sb.append(lineSeparator);\n }\n sb.append(x.getMessage());\n }\n return sb.toString();\n }",
"public GrammarException(String msg) {\r\n super();\r\n this.msg = msg;\r\n }",
"public StringException(){\n\t\tsuper(MESSAGE);\n\t}",
"public GraphicsException(String msg)\n {\n super(msg);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Is Component Instance Of' attribute. Specifies the property path to test for existence, e.g., whether the property may be set or queried. This is independent of whether the property is actually set. The attribute takes a property path (e.g. "flag", "[parent].flag", ...) Results in a 'true' or 'false' value to test. | String getIsComponentInstanceOf(); | [
"public boolean isProperty();",
"Object getPropertyexists();",
"public static boolean hasInstanceInfo(String aNodePath) {\r\n return aNodePath.indexOf(\"instance()\") != -1; //$NON-NLS-1$\r\n }",
"public boolean hasValueComponent();",
"private boolean isInstanceLocationSet() {\n \t\tActivator activator = Activator.getDefault();\n \t\tif (activator == null)\n \t\t\treturn false;\n \t\tLocation service = activator.getInstanceLocation();\n \t\tif (service == null)\n \t\t\treturn false;\n \t\treturn service.isSet();\n \t}",
"boolean isClassProperty();",
"String getPropertyExists();",
"public boolean hasProperty( OdfStyleProperty property );",
"boolean isSingleProperty();",
"@Test\n public void testIsComponent() throws Exception {\n Assert.assertTrue(\"Component should exist\", componentFactory.isComponent(COMPONENT_NAME));\n }",
"public boolean hasProperty(Property property);",
"boolean containsProperty(String name);",
"boolean hasPropertyList();",
"public boolean checkComponents(final IEntity entity);",
"private static boolean isPropertyPresent(UnmarshallingContext ctx) {\n return ctx.attributeText(URI_ATTRIBUTES, COMMON_FIELD, null) != null ||\n ctx.attributeText(URI_ATTRIBUTES, COMMON_GETMETHOD, null) != null ||\n ctx.attributeText(URI_ATTRIBUTES, COMMON_SETMETHOD, null) != null ||\n ctx.attributeText(URI_ATTRIBUTES, COMMON_TESTMETHOD, null) != null;\n }",
"boolean hasCfsPath();",
"public boolean hasComponent(Class<? extends Component> componentType);",
"boolean hasPropertyLike(String name);",
"boolean isComponentsRegistered();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This test checks that the AW_2010_AttenRel object throws a warning exception when a magnitude value < 5 is passed. In this test, the point source is defined with magnitude 4.0 (too low). The average rake is not needed by the IPE but is used to define the EqkRupture object. Hypocenter coordinates are lat, lon, depth in km. | @Test(expected = org.opensha.commons.exceptions.WarningException.class)
public void magnitudeValueTooSmall() {
double mag = 4.0;
double aveRake = 0.0;
Location hypo = new Location(0.0, 0.0, 5.0);
EqkRupture rup = getPointEqkRupture(mag, hypo, aveRake);
aw_2010_AttenRel.setEqkRupture(rup);
} | [
"@Test(expected = org.opensha.commons.exceptions.WarningException.class)\n public void magnitudeValueTooLarge() {\n double mag = 9.0;\n double aveRake = 0.0;\n Location hypo = new Location(0.0, 0.0, 5.0);\n EqkRupture rup = getPointEqkRupture(mag, hypo, aveRake);\n aw_2010_AttenRel.setEqkRupture(rup);\n }",
"@Test\n public void pointEqkRupture() {\n\n double mag = 5.0;\n double aveRake = 0.0;\n Location hypo = new Location(0.0, 0.0, 5.0);\n Site site = new Site(new Location(0.0, 0.1, 0.0));\n EqkRupture rup = getPointEqkRupture(mag, hypo, aveRake);\n double hypoDist =\n Math.sqrt(Math.pow(LocationUtils.horzDistance(hypo, site\n .getLocation()), 2)\n + Math.pow(LocationUtils.vertDistance(hypo, site\n .getLocation()), 2));\n aw_2010_AttenRel.setSite(site);\n aw_2010_AttenRel.setEqkRupture(rup);\n\n double meanMMI = aw_2010_AttenRel.getMean();\n double std = aw_2010_AttenRel.getStdDev();\n\n double meanMMI_pointRupture =\n aw_2010_AttenRel.getMeanForPointRup(mag, hypoDist);\n double std_pointRupture =\n aw_2010_AttenRel.getTotalStdDevForPointRup(hypoDist);\n\n assertEquals(meanMMI_pointRupture, meanMMI, tolerance);\n assertEquals(std_pointRupture, std, tolerance);\n }",
"@Test\n public void finiteEqkRupture() {\n\n double aveDip = 90.0;\n double lowerSeisDepth = 13.0;\n double upperSeisDepth = 0.0;\n FaultTrace trace = new FaultTrace(\"Elsinore;GI\");\n trace.add(new Location(33.82890, -117.59000));\n trace.add(new Location(33.81290, -117.54800));\n trace.add(new Location(33.74509, -117.46332));\n trace.add(new Location(33.73183, -117.44568));\n trace.add(new Location(33.71851, -117.42415));\n trace.add(new Location(33.70453, -117.40265));\n trace.add(new Location(33.68522, -117.37270));\n trace.add(new Location(33.62646, -117.27443));\n double gridSpacing = 1.0;\n\n double mag = 6.889;\n double aveRake = 0.0;\n Location hypo = new Location(33.73183, -117.44568);\n Site site = new Site(new Location(33.8, -117.6, 0.0));\n EqkRupture rup =\n getFiniteEqkRupture(aveDip, lowerSeisDepth, upperSeisDepth,\n trace, gridSpacing, mag, hypo, aveRake);\n aw_2010_AttenRel.setSite(site);\n aw_2010_AttenRel.setEqkRupture(rup);\n\n double meanMMI = aw_2010_AttenRel.getMean();\n double std = aw_2010_AttenRel.getStdDev();\n double rRup =\n (Double) aw_2010_AttenRel.getParameter(\n DistanceRupParameter.NAME).getValue();\n double meanMMI_finiteRupture =\n aw_2010_AttenRel.getMeanForFiniteRup(mag, rRup);\n double std_finiteRupture =\n aw_2010_AttenRel.getTotalStdDevForFiniteRup(rRup);\n\n assertEquals(meanMMI_finiteRupture, meanMMI, tolerance);\n assertEquals(std_finiteRupture, std, tolerance);\n }",
"@Test\n public void intraEventStdForPointRupture() {\n Site site = new Site(new Location(0.0, 0.0, 0.0));\n EqkRupture rup = getEqkRuptureFromPointSource();\n aw_2010_AttenRel.setSite(site);\n aw_2010_AttenRel.setEqkRupture(rup);\n\n aw_2010_AttenRel.getParameter(StdDevTypeParam.NAME).setValue(\n StdDevTypeParam.STD_DEV_TYPE_INTRA);\n double intra = aw_2010_AttenRel.getStdDev();\n\n aw_2010_AttenRel.getParameter(StdDevTypeParam.NAME).setValue(\n StdDevTypeParam.STD_DEV_TYPE_TOTAL);\n double total = aw_2010_AttenRel.getStdDev();\n\n // inter-event std for point rupture as reported in Allen&Wald paper\n double inter = 0.40;\n\n double intraExpected =\n Math.sqrt(Math.pow(total, 2) - Math.pow(inter, 2));\n\n assertEquals(intraExpected, intra, tolerance);\n }",
"@Test\n public void interEventStdForPointRupture() {\n Site site = new Site(new Location(0.0, 0.0, 0.0));\n EqkRupture rup = getEqkRuptureFromPointSource();\n aw_2010_AttenRel.setSite(site);\n aw_2010_AttenRel.setEqkRupture(rup);\n\n aw_2010_AttenRel.getParameter(StdDevTypeParam.NAME).setValue(\n StdDevTypeParam.STD_DEV_TYPE_INTER);\n double inter = aw_2010_AttenRel.getStdDev();\n\n // inter-event std for finite rupture as reported in Allen&Wald paper\n double interExpected = 0.40;\n\n assertEquals(interExpected, inter, tolerance);\n }",
"@Test\n public void intraEventStdForFiniteRupture() {\n // example site close to fault\n Site site = new Site(new Location(33.8, -117.6, 0.0));\n EqkRupture rup = getEqkRuptureFromFiniteFault();\n aw_2010_AttenRel.setSite(site);\n aw_2010_AttenRel.setEqkRupture(rup);\n\n aw_2010_AttenRel.getParameter(StdDevTypeParam.NAME).setValue(\n StdDevTypeParam.STD_DEV_TYPE_INTRA);\n double intra = aw_2010_AttenRel.getStdDev();\n\n aw_2010_AttenRel.getParameter(StdDevTypeParam.NAME).setValue(\n StdDevTypeParam.STD_DEV_TYPE_TOTAL);\n double total = aw_2010_AttenRel.getStdDev();\n\n // inter-event std for finite rupture as reported in Allen&Wald paper\n double inter = 0.21;\n\n double intraExpected =\n Math.sqrt(Math.pow(total, 2) - Math.pow(inter, 2));\n\n assertEquals(intraExpected, intra, tolerance);\n }",
"@Test\n void testInvalidA_PTS() {\n int A_PTS = -1; // Invalid\n int B_PTS = 2;\n double radius1 = -1; \n double radius2 = 1; \n int NUMPOINTS = 10;\n\n double[] xList = new double[NUMPOINTS];\n double[] yList = new double[NUMPOINTS];\n\n assertFalse(LIC13.compute(xList, yList, radius1, radius2, A_PTS, B_PTS, NUMPOINTS));\n }",
"@LargeTest\n public void testVignetteApproximateRelaxed() {\n TestAction ta = new TestAction(TestName.VIGNETTE_APPROXIMATE_RELAXED);\n runTest(ta, TestName.VIGNETTE_APPROXIMATE_RELAXED.name());\n }",
"@Test\n public void testNAD192710TMAEPResource() {\n testToWGS84AndBack(PROJ.getNAD192710TMAEPResource());\n }",
"@Test\r\n public void testAppartentMagnitude() {\r\n System.out.println(\"appartentMagnitude\");\r\n \r\n // Test case one.\r\n System.out.println(\"Test case #1\"); \r\n \r\n double magnitude = 12;\r\n double distance = 200;\r\n \r\n SceneControl instance = new SceneControl();\r\n \r\n double expResult = 0.0003;\r\n double result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case two.\r\n System.out.println(\"Test case #2\"); \r\n \r\n magnitude = 13;\r\n distance = -50;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case three.\r\n System.out.println(\"Test case #3\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, -999999);\r\n \r\n // Test case four.\r\n System.out.println(\"Test case #4\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case five.\r\n System.out.println(\"Test case #5\"); \r\n \r\n magnitude = 14;\r\n distance = 0;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case six.\r\n System.out.println(\"Test case #6\"); \r\n \r\n magnitude = -50;\r\n distance = 12;\r\n \r\n expResult = -0.3472;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case seven.\r\n System.out.println(\"Test case #7\"); \r\n \r\n magnitude = 50;\r\n distance = 20;\r\n \r\n expResult = 0.125;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case eight.\r\n System.out.println(\"Test case #8\"); \r\n \r\n magnitude = 13;\r\n distance = 1;\r\n \r\n expResult = 13;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedThenTechnologyAverageElseAbort_ShouldAbort() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Test\n public void interEventStdForFiniteRupture() {\n // example site close to fault\n Site site = new Site(new Location(33.8, -117.6, 0.0));\n EqkRupture rup = getEqkRuptureFromFiniteFault();\n aw_2010_AttenRel.setSite(site);\n aw_2010_AttenRel.setEqkRupture(rup);\n\n aw_2010_AttenRel.getParameter(StdDevTypeParam.NAME).setValue(\n StdDevTypeParam.STD_DEV_TYPE_INTER);\n double inter = aw_2010_AttenRel.getStdDev();\n\n // inter-event std for finite rupture as reported in Allen&Wald paper\n double interExpected = 0.21;\n\n assertEquals(interExpected, inter, tolerance);\n\n }",
"@Test\r\n\tpublic void calculMetricInferiorTeacherWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricInferior(new ModelValue(10f, 1f), 12f, 15f), new Float(1));\r\n\t}",
"@Test\n public void testNAD198310TMAEPResource() {\n testToWGS84AndBack(PROJ.getNAD198310TMAEPResource());\n }",
"@Test\r\n\tpublic void calculMetricSuperiorWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricSuperior(new ModelValue(10f, 1f), 12f, 9f), new Float(1));\r\n\t}",
"@Test\n void testInvalidB_PTS() {\n int A_PTS = 2;\n int B_PTS = -1; // Invalid\n double radius1 = -1; \n double radius2 = 1; \n int NUMPOINTS = 10;\n\n double[] xList = new double[NUMPOINTS];\n double[] yList = new double[NUMPOINTS];\n\n assertFalse(LIC13.compute(xList, yList, radius1, radius2, A_PTS, B_PTS, NUMPOINTS));\n }",
"@Test\n public void testFindPeakLocation() {\n System.out.println(\"findPeakLocation\");\n double[] sig = {9.5,3.0,10,8,8.8};\n double threshold = 8.0;\n int[] expResult = {0,2,3,4};\n int[] result = JavaApplication1.findPeakLocation(sig, threshold);\n assertArrayEquals(expResult, result);\n \n }",
"@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}",
"private double assertApproximation(IApproximator approx) {\r\n double a = approx.approximate(param);\r\n Assert.assertTrue(\"Not \" + minExpected + \"<=\" + a + \"<=\" + maxExpected + \" for \" + param, \r\n minExpected <= a && a <= maxExpected);\r\n return a;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns expression to be evaluated for given output field. This method is meant to be used for properties.xml file where map should be set using BeanUtils constructs. | public String getExpressionMap(String field)
{
return (this.expressionMap != null) ? this.expressionMap.get(field) : null;
} | [
"@JsonProperty(\"output_field\")\n@ApiModelProperty(value = \"An OutputField for this mapping.\")\n public OutputField getOutputField() {\n return outputField;\n }",
"private static final Object outputField(int fieldN, RTRecordValue recordDictionary, RTRecordValue xRecord, RTExecutionContext $ec) throws CALExecutorException {\n return recordDictionary.getNthValue(fieldN).apply(xRecord.getNthValue(fieldN)).evaluate($ec).getOpaqueValue();\r\n }",
"public Map<String, String> getExpressionMap()\n {\n return expressionMap;\n }",
"public void setExpressionMap(String field, String expression)\n {\n if (this.expressionMap == null) {\n this.expressionMap = new HashMap<>();\n }\n this.expressionMap.put(field, expression);\n }",
"@SuppressWarnings({\"squid:S3776\"})\n public void evaluateExpressionFields() {\n\n JexlEngine jexl = new JexlBuilder().create();\n JxltEngine jxlt = jexl.createJxltEngine();\n JexlContext jc = new MapContext(this);\n\n if (expressionFields != null) {\n for (ComponentField field : expressionFields) {\n\n //remember field default value expression\n String defaultValueExpression = \"\";\n Object fieldDefaultValue = field.getDefaultValue();\n if (fieldDefaultValue instanceof String) {\n defaultValueExpression = fieldDefaultValue.toString();\n }\n\n try {\n //process non-multi value elements\n if (field.getValue() != null) {\n if (!field.getValue().getClass().isArray()) {\n\n //get current field value\n Object fieldValue = this.get(field.getFieldName(), Object.class);\n\n //if current field value is null set it to empty so that expressions don't die\n if (fieldValue == null) {\n fieldValue = StringUtils.EMPTY;\n }\n\n //use default expression if item does not have expression\n String valueExpression = defaultValueExpression;\n //if field value is expression use it\n if (isStringRegex((String)fieldValue)) {\n valueExpression = (String)fieldValue;\n }\n\n Object expressonResult = evaluateExpressionWithValue(jxlt, jc, valueExpression, fieldValue);\n\n if (expressonResult != null) {\n\n //update field value\n this.put(field.getFieldName(), expressonResult);\n //save field value into data attribute\n this.attr.set(field.getDataAttributeName(), (String) expressonResult);\n }\n } else {\n\n //get current field value\n String[] values = (String[])field.getValue();\n\n if (!ArrayUtils.isEmpty(values)) {\n //loop though array and evaluate each item value\n for (int i = 0; i < values.length; i++) {\n //use default expression if item does not have expression\n String valueExpression = defaultValueExpression;\n //if item value is expression use it over default\n if (isStringRegex(values[i])) {\n valueExpression = values[i];\n }\n values[i] = (String) evaluateExpressionWithValue(jxlt, jc, valueExpression, values[i]);\n }\n } else {\n values = ArrayUtils.add(values,(String) evaluateExpressionWithValue(jxlt, jc, defaultValueExpression, null));\n }\n\n //update evaluated values\n this.put(field.getFieldName(), values);\n\n //add values to data attributes if required\n if (isNotEmpty(field.getDataAttributeName())) {\n if (field.getDataAttributeName().equals(FIELD_VALUES_ARE_ATTRIBUTES)) {\n for (String value : values) {\n if (!value.contains(\"=\")) {\n this.attr.add(value, \"true\");\n } else {\n String[] items = value.split(\"=\");\n this.attr.add(items[0], StringUtils.substringBetween(items[1], \"\\\"\", \"\\\"\"));\n }\n }\n } else {\n //save values as comma delimited array\n this.attr.add(field.getDataAttributeName(), StringUtils.join((String[]) field.getValue(), FIELD_DATA_ARRAY_SEPARATOR));\n }\n\n }\n\n\n }\n }\n } catch (JexlException jex) {\n LOGGER.error(\"evaluateExpressionFields: field={},JexlException={}\", field, jex);\n } catch (Exception ex) {\n LOGGER.error(\"evaluateExpressionFields: field={},Exception={}\", field, ex);\n }\n\n }\n }\n }",
"public String getExpressionString();",
"java.util.Map<java.lang.String, java.lang.String>\n getExpressions();",
"Expression getValue();",
"Expression getExpression();",
"EvaluationExpressionOut createEvaluationExpressionOut();",
"@Override\n\tprotected ValueExpression createValueExpressionForInput(\n\t\t\tfinal String variableName, final Class<?> typeClass) {\n\t\tfinal String elExpression = \"#{\" + BEAN_NAME + \".valueMap['\"\n\t\t\t\t+ variableName + \"'].answerValue}\";\n\t\tfinal ValueExpression ve = getFacesContext()\n\t\t\t\t.getApplication()\n\t\t\t\t.getExpressionFactory()\n\t\t\t\t.createValueExpression(getFacesContext().getELContext(),\n\t\t\t\t\t\telExpression, typeClass);\n\t\treturn ve;\n\t}",
"Expression getExpression () { return exp; }",
"String getOutputVariable();",
"public OutputProperty createOutputProperty() {\n final OutputProperty p = new OutputProperty();\n outputProperties.addElement(p);\n return p;\n }",
"public String getOutputValue() {\n return outputValue;\n }",
"@Override\r\n public Object getValue() {\r\n return this.basicExpressionFilter;\r\n }",
"@Override\n\t@Nullable\n\tprotected Object getActualFieldValue(String field) {\n\t\treturn getPropertyAccessor().getPropertyValue(field);\n\t}",
"private String toMapNotation()\n {\n if (fGroup != null)\n {\n if (fModule != null)\n // Both group and module specified.\n return ATTRIBUTE_GROUP + \": \" + quote(fGroup) + \", \" + ATTRIBUTE_MODULE + \": \" + quote(fModule);\n else\n // Only group specified.\n return ATTRIBUTE_GROUP + \": \" + quote(fGroup);\n }\n else\n // Only module specified.\n return ATTRIBUTE_MODULE + \": \" + quote(fModule);\n }",
"private void generateFieldCode(XMLElement child, XMLElement mout, String filename, boolean isMethod) throws Exception {\n\t\tif ( child.getChildren().size() > 0 && !child.getFirstChild().getName().equals(\"value\") ) {\n\t\t\tVector<XMLElement> vc = child.getChildren();\n\t\t\tfor (int vci = 0; vci < vc.size(); vci++) {\n\t\t\t\tif ( child.getName().indexOf(\".\") != -1 ) {\n\t\t\t\t\tString name = vc.get(vci).getName();\n\t\t\t\t\tif ( name.indexOf(\".\") == -1 ) { // Construct dummy prefix if prefix not present..\n\t\t\t\t\t\tvc.get(vci).setName(\"dummy.\" + name);\n\t\t\t\t\t}\n\t\t\t\t\tgenerateFieldCode(vc.get(vci), mout, filename, getMethodDefinition(stripDot(vc.get(vci))) != null );\n\t\t\t\t} else {\n\t\t\t\t\tthrow new MetaCompileException(filename, child, \"Illegal children tags defined for tag <\" + child.getName() + \"/>\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( isMethod ) {\n\t\t\tString method = stripDot(child);\n\t\t\tMethodDefinition md = getMethodDefinition(method);\n\t\t\tmd.generateCode(child, mout, filename );\n\t\t} else {\n\n\t\t\tString field = stripDot(child);\n\t\t\tString condition = (String) child.getAttribute(\"condition\");\n\n\t\t\t// Check for <map.xyz><value condition=\"\"></value>...<value></value></map.xyz> construction.\n\t\t\tif ( child.getChildren().size() > 0 && child.getFirstChild().getName().equals(\"value\")) {\n\t\t\t\tXMLElement fieldElt = new TSLElement(child, \"field\");\n\t\t\t\tfieldElt.setAttribute(\"name\", field);\n\t\t\t\tif ( condition != null && !condition.equals(\"\") ) {\n\t\t\t\t\tfieldElt.setAttribute(\"condition\", condition);\n\t\t\t\t}\n\n\t\t\t\tVector<XMLElement> values = child.getChildren();\n\t\t\t\tfor (int val = 0; val < values.size(); val++) {\n\t\t\t\t\tXMLElement xec = values.get(val);\n\n\t\t\t\t\tXMLElement expressionElt = new TSLElement(child, \"expression\");\n\t\t\t\t\tString valueCondition = (String) xec.getAttribute(\"condition\");\n\t\t\t\t\tXMLElement valueElt = new TSLElement(child, \"value\");\n\t\t\t\t\tif ( valueCondition != null ) {\n\t\t\t\t\t\texpressionElt.setAttribute(\"condition\", valueCondition);\n\t\t\t\t\t}\n\t\t\t\t\tvalueElt.setContent(xec.getContent().trim());\n\t\t\t\t\texpressionElt.addChild(valueElt);\n\t\t\t\t\tfieldElt.addChild(expressionElt);\n\t\t\t\t}\n\n\t\t\t\tmout.addChild(fieldElt);\n\t\t\t} else { // <map.xyz value=\"\"> or <map.xyz>value</map.xyz> construction.\n\n\t\t\t\tString setterValue = ( child.getAttribute(\"value\") != null ? (String) child.getAttribute(\"value\") : (String) child.getAttribute(\"ref\") );\n\n\t\t\t\t// Maybe value is given as tag content?\n\t\t\t\tboolean isTextNode = false;\n\t\t\t\tif ( setterValue == null ) {\n\t\t\t\t\tsetterValue = child.getContent();\n\t\t\t\t\tif ( setterValue == null || \"\".equals(setterValue) ) {\n\t\t\t\t\t\tthrow new MetaCompileException(filename, child, \"Did not find any value that could be set for setter <\" + child.getName() + \"/>\");\n\t\t\t\t\t}\n\t\t\t\t\tsetterValue = setterValue.trim();\n\t\t\t\t\tisTextNode = true;\n\t\t\t\t}\n\n\t\t\t\tValueDefinition vd = getValueDefinition(field);\n\t\t\t\tif ( vd == null ) {\n\t\t\t\t\tthrow new MetaCompileException(filename, child, \"Could not find definition for setter: \" + field);\n\t\t\t\t}\n\t\t\t\tvd.generateCode(child, setterValue, isTextNode, condition, mout, true, filename );\n\n\t\t\t}\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
a method which accepts a patient for treatment during a visit. The call of this method is initiated by a user with rights of doctor of the admitting department or higher | boolean acceptPatientForTreatment(String visitId, AuthUser user)
throws DaoException; | [
"Visit ensureActiveVisit(Patient patient, Location department);",
"public void assignDoctorToPatient()\n {\n int healthNumber = ioInterface.readInt(\"Enter the health number of the patient: \");\n String name = ioInterface.readString(\"Enter the name of the doctor: \");\n\n AssignDoctor cmd = new AssignDoctor();\n cmd.assignDoctor(name, healthNumber);\n if(!cmd.wasSuccessful()) {\n throw new RuntimeException(cmd.getErrorMessage());\n }\n\n }",
"protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().createPatientAssessment(getPatientAssessment(), android_device_id);\r\n\t}",
"public void assignDoctorToPatient()\n\t{\n\t\tPatient p = obtainPatient();\n\t\tSystem.out.print(\"Enter the name of the doctor: \");\n\t\tString name = consoleIn.nextLine();\n\t\tDoctor d = doctors.get(name);\n\t\tif (d == null)\n\t\t\tthrow new RuntimeException(\"There is no doctor with name \" + name);\n\t\telse\n\t\t{\n\t\t\tp.addDoctor(d);\n\t\t\td.addPatient(p);\n\t\t}\n\t}",
"public void seenByDoctor(View view) {\n\t\tPatient patient = getPatient();\n\t\ttry {\n\t\t\tif (ArrivalCheck(patient.getHc())) { // Checks whether patient is checked in before they see a doctor\n\t\t\t\tIntent intent = new Intent(this, SeenDoctorActivity.class);\n\t\t\t\tHealth_Card HC = new Health_Card(getNumber());\n\t\t\t\tintent.putExtra(\"hcKey1\", HC);\n\t\t\t\tstartActivity(intent);\n\t\t\t} else {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Not checked in\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tToast.makeText(getApplicationContext(), \"Invalid entry\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t\t\n\t}",
"Doctor getDoctor();",
"public void addProposedAppointmentToList(String doctorId, String patientId, String date)\n {\n \n }",
"boolean hasAssignDoctor();",
"@PreAuthorize(\"hasRole('PATIENT')\")\n\t@PostMapping(path = \"/scheduleVisitByPatient\")\n\tpublic ResponseEntity<String> scheduleVisitByPatient(@RequestBody VisitData visitData) {\n\t\ttry {\n\t\t\tboolean checkVisitTerm = visitService.checkVisitTerm(visitData);\n\t\t\tif(checkVisitTerm) {\n\t\t\t\treturn ResponseEntity.ok(\"VISIT_TERM_TAKEN\");\n\t\t\t}\n\t\t\tvisitService.scheduleVisitByPatient(visitData);\n\t\t\tlogger.info(\"Scheduled visit by patient with date: {} {}, doctor username: {}, patient username: {}\", \n\t\t\t\t\tvisitData.getVisitDate(), visitData.getVisitTime(), visitData.getDoctorUsername(), visitData.getPatientUsername());\n\t\t\treturn ResponseEntity.ok(\"SCHEDULED_VISIT\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"ERROR schedule visit by patient\", e);\n\t\t\treturn new ResponseEntity<String>(HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t}",
"public void requestAppointment(Doctor doctor, Secretary sec)\n {\n sec.addToAppointmentRequests(doctor, this);\n }",
"public void RequestPermission(Client c, Doctor d){\n c.addRequest(d);\n }",
"@Override\n\tpublic void addDoctor(Doctor d) {\n\t}",
"public List<Doctor> acceptingNewPatients(String specialty);",
"public void saveVitalsToPatient(View view) {\r\n\t\t// IF THE USERTYPE IS NURSE.\r\n\t\t// if (usertype.getType() == \"nurse\")\r\n\r\n\t\tIntent moveToViewVitals = new Intent(this, ViewVitalsActivity.class);\r\n\r\n\t\t// First get all data from XML.\r\n\t\tboolean seenDoctor = seenDoctorFromXML();\r\n\t\tint heartRate = hrFromXML();\r\n\t\tint bpSys = bpSysFromXML();\r\n\t\tint bpDia = bpDiaFromXML();\r\n\t\tdouble temp = tempFromXML();\r\n\t\tString symp = sympFromXML();\r\n\r\n\t\t// Calculates the index of last visit in Patient's ArrayList of Vital.\r\n\t\tint lastVisitIndex = patient.getVisit().size() - 1;\r\n\r\n\t\t/*\r\n\t\t * Iff Vitals are not all blank, AND iff patient in ER, add to last\r\n\t\t * visit (last visit => current visit).\r\n\t\t */\r\n\t\tif ((heartRate >= -90 || bpSys >= -90 || bpDia >= -90 || temp >= -90.0\r\n\t\t\t\t|| symp != \"\" || seenDoctor)) {\r\n\t\t\t// Add Vitals.\r\n\t\t\tpatient.getVisit().get(lastVisitIndex)\r\n\t\t\t\t\t.addVitals(temp, heartRate, bpSys, bpDia, symp);\r\n\r\n\t\t\t// If UI check box is true, patient is out of ER, has seen doctor.\r\n\t\t\tif (seenDoctor) {\r\n\t\t\t\tpatient.setInER(false);\r\n\t\t\t\tpatient.getVisit().get(lastVisitIndex).setSeenDoc(true);\r\n\t\t\t\tLog.d(\"TRIAGE.AddVitals\",\r\n\t\t\t\t\t\t\"Visit SeenDoctor ER: FALSE, DOC: TRUE.\");\r\n\t\t\t}\r\n\r\n\t\t\tmoveToViewVitals.putExtra(\"visitKey\",\r\n\t\t\t\t\tpatient.getVisit().get(lastVisitIndex));\r\n\r\n\t\t\ttry {\r\n\t\t\t\tpatientDb.updatePatient(patient);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLog.d(\"TRIAGE.AddVitals\", \"Error Saving data.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLog.d(\"TRIAGE\", \"Either all blank OR not in er OR seen doctor.\");\r\n\t\t\tmoveToViewVitals.putExtra(\"visitKey\", visit);\r\n\t\t}\r\n\r\n\t\tmoveToViewVitals.putExtra(\"patientKey\", patient);\r\n\t\tmoveToViewVitals.putExtra(\"userKey\", user);\r\n\r\n\t\tstartActivity(moveToViewVitals);\r\n\t}",
"boolean isDoctorAvailabilty();",
"public interface VisitDao {\n /**\n * a method which preforms registration of a visit to the admitting\n * department of a hospital\n *\n * @param hospVisit a by.epamtc.jwd.auth.model.visit_info.AdmissionDepartmentVisit\n * object that possesses all necessary information about\n * a visit to the admitting department of a hospital\n * @return true if visit information is successfully added\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean registerVisit(AdmissionDepartmentVisit hospVisit)\n throws DaoException;\n\n /**\n * a method which receives visit to the admitting department which are not\n * taken for treatment by a doctor\n *\n * @param user an AuthUser object that identifies a person, who is a doctor\n * of the admitting department and is to take control on one of\n * visits\n * @return a List object which contains by.epamtc.jwd.auth.model.visit_info.AdmissionDepartmentVisit\n * objects that are not taken for treatment by a doctor\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<AdmissionDepartmentVisit> fetchNewVisits(AuthUser user)\n throws DaoException;\n\n /**\n * a method which accepts a patient for treatment during a visit. The call of\n * this method is initiated by a user with rights of doctor of the\n * admitting department or higher\n *\n * @param visitId a String which contains id of a visit to the admitting\n * department. This visit is to be accepted for treatment\n * @param user an AuthUser object, which identifies a member of hospital\n * staff who is to treat a patient\n * @return true if treatment of a patient is successfully accepted\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean acceptPatientForTreatment(String visitId, AuthUser user)\n throws DaoException;\n\n /**\n * a method which visits to the admitting department which are on control of\n * a member of hospital staff if the decision on them is not made\n *\n * @param user an AuthUser object which identifies a member of hospital\n * staff whom controlled visit are fetched by\n * @return a List object with by.epamtc.jwd.auth.model.visit_info.AdmissionDepartmentVisit\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<AdmissionDepartmentVisit> fetchControlledVisits(AuthUser user)\n throws DaoException;\n\n /**\n * a method which fetches full infornation about a visit to the admitting\n * department\n *\n * @param visitId a String that contains id of a visit to the admitting\n * department which is to be fetched\n * @return a by.epamtc.jwd.auth.model.visit_info.AdmissionDepartmentVisit\n * object that contains full information about a aforementioned visit\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n AdmissionDepartmentVisit fetchFullAdmissionDepartmentVisit(String visitId)\n throws DaoException;\n\n /**\n * a method which fetches diagnoses established during all visits to\n * the admitting department and hospitalization from the source. This\n * information is mainly used in order to quickly get familiar with a\n * patient by doctors\n *\n * @param patientId an int value, which is id of a patient whose diagnoses\n * are to be fetched\n * @return a List object with by.epamtc.jwd.auth.model.med_info.Diagnosis\n * objects that contain diagnoses established during all visits to\n * the admitting department and hospitalization from the source\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<Diagnosis> fetchInnerHospitalDiagnoses(int patientId)\n throws DaoException;\n\n /**\n * a method that fetches both executed and unexecuted prescriptions of\n * a medicine which are established during a current visit to the\n * admitting department\n *\n * @param visitId a String which contains id of an aforementioned visit\n * @return a List object with by.epamtc.jwd.auth.model.med_info.MedicinePrescription\n * objects which possess information about aforementioned prescriptions\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<MedicinePrescription> fetchVisitMedicinePrescriptions(String visitId)\n throws DaoException;\n\n /**\n * a method that fetches both executed and unexecuted prescriptions\n * which are established during a current visit to the\n * admitting department\n *\n * @param visitId a String which contains id of an aforementioned visit\n * @return a List object with by.epamtc.jwd.auth.model.med_info.Prescription\n * objects which possess information about aforementioned prescriptions\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<Prescription> fetchVisitPrescriptions(String visitId)\n throws DaoException;\n\n /**\n * a method which changes patient's complaints filled mainly by a doctor\n * during a visit to the admitting department\n *\n * @param complaints a String, which represents patient's complaints\n * @param visitId a String, which contains id of a visit to the admitting\n * department\n * @param user an AuthUser object which identifies a member of staff who\n * changes complaints\n * @return true if complaints are successfully changed\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean changeComplaints(String complaints, String visitId, AuthUser user)\n throws DaoException;\n\n /**\n * a method which establishes a diagnosis during a visit to the admitting\n * department\n *\n * @param diagnosis by.epamtc.jwd.auth.model.med_info.Diagnosis object that\n * contains information about a newly diagnosed disease\n * @param visitStrId a String that contains id of an aforementioned visit\n * @param user an AuthUser object that identifies a member of staff who\n * establishes a diagnosis\n * @return true if the diagnosis is successfully established\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean establishDiagnosis(Diagnosis diagnosis, String visitStrId,\n AuthUser user) throws DaoException;\n\n /**\n * a method which establishes a prescription of a medicine during a visit to\n * admitting department\n *\n * @param prescription by.epamtc.jwd.auth.model.med_info.MedicinePrescription\n * object that contains information about a prescription\n * of a medicine\n * @param user an AuthUser that identifies a member of staff who\n * establishes a prescription of a medicine\n * @return true if a prescription of a medicine is successfully established\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean establishMedicinePrescription(MedicinePrescription prescription,\n AuthUser user) throws DaoException;\n\n /**\n * a method which establishes a prescription during a visit to the\n * admitting department\n *\n * @param prescription by.epamtc.jwd.auth.model.med_info.Prescription\n * object that contains information about a prescription\n * of a medicine\n * @param user an AuthUser that identifies a member of staff who\n * establishes a prescription of a medicine\n * @return true if a prescription of a medicine is successfully established\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean establishPrescription(Prescription prescription, AuthUser user)\n throws DaoException;\n\n /**\n * a method which cancels a prescription during a visit to the admitting\n * department\n *\n * @param prescriptionId a String which contains id of an aforementioned\n * prescription\n * @param user an AuthUser object that identifies a member staff\n * who cancels an aforementioned prescription\n * @return true if a prescription is successfully canceled\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean cancelPrescription(String prescriptionId, AuthUser user)\n throws DaoException;\n\n /**\n * a method which cancels a prescription of a medicine during a visit to\n * the admitting department\n *\n * @param medPrescriptionId a String which contains id of an aforementioned\n * prescription\n * @param user an AuthUser object that identifies a member staff\n * who cancels an aforementioned prescription\n * @return true if a prescription is successfully canceled\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean cancelMedicinePrescription(String medPrescriptionId, AuthUser user)\n throws DaoException;\n\n /**\n * a method that fetches by.epamtc.jwd.auth.model.med_info.MedicinePrescription\n * that contain information about all newly established prescriptions\n * of medicines that are to be executed\n *\n * @return a List object that contains aforementioned medicine prescriptions\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<MedicinePrescription> fetchAllNewMedicinePrescriptions()\n throws DaoException;\n\n /**\n * a method which fetches a by.epamtc.jwd.auth.model.med_info.MedicinePrescription\n * object that contains full information about a prescription of a medicine\n * using id of the prescription\n *\n * @param medPrescriptionId a String that contains id of a medicine\n * prescription\n * @return by.epamtc.jwd.auth.model.med_info.MedicinePrescription\n * object that contains full information about a prescription of a medicine\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n MedicinePrescription fetchVisitMedPrescriptionById(String medPrescriptionId)\n throws DaoException;\n\n /**\n * a method which records information about an execution of a medicine\n * prescription\n *\n * @param medPrescriptionId a String that contains id of a medicine\n * prescription\n * @param executionResult a String that contains a result of execution of\n * a medicine prescription\n * @param user an AuthUser object that identifies a member of\n * a staff who\n * executes a prescription of a medicine\n * @return true if a prescription of a medicine is successfully executed\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean executeMedPrescription(String medPrescriptionId,\n String executionResult, AuthUser user) throws DaoException;\n\n /**\n * a method that fetches by.epamtc.jwd.auth.model.med_info.Prescription\n * that contain information about all newly established prescriptions\n * that are to be executed\n *\n * @return a List object that contains aforementioned prescriptions\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<Prescription> fetchAllNewNonMedicinePrescriptions()\n throws DaoException;\n\n /**\n * a method which accepts putting on control of a prescription by a member\n * of staff\n *\n * @param prescriptionId a String which contains id of a prescription\n * that is to be put on control\n * @param user an AuthUser that identifies a member of staff who puts\n * an aforementioned prescription on control\n * @return true if a prescription is successfully put on control\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean acceptPrescriptionOnControl(String prescriptionId, AuthUser user)\n throws DaoException;\n\n /**\n * a method that fetches by.epamtc.jwd.auth.model.med_info.Prescription\n * objects that contains information about prescriptions that are on control\n * but not executed\n *\n * @param user an AuthUser object that identifies a member of staff\n * whom control the prescription is put on\n * @return a List object with by.epamtc.jwd.auth.model.med_info.Prescription\n * objects that contains information about prescriptions that are on control\n * but not executed\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<Prescription> fetchControlledVisitPrescriptions(AuthUser user)\n throws DaoException;\n\n /**\n * a method that fetches a prescription during a visit to the admitting\n * department by prescription's id\n *\n * @param prescriptionId a String that contains id of a prescription\n * which is to be fetched\n * @return by.epamtc.jwd.auth.model.med_info.Prescription object that\n * contains information about a prescription during a visit to the admitting\n * department by prescription's id\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n Prescription fetchVisitPrescriptionById(String prescriptionId)\n throws DaoException;\n\n /**\n * a method which records information about an execution of a prescription\n *\n * @param prescriptionId a String that contains id of a prescription\n * @param executionResult a String that contains a result of execution of\n * a prescription\n * @param user an AuthUser object that identifies a member of\n * a staff who executes a prescription\n * @return true if a prescription is successfully executed\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean executePrescription(String prescriptionId, String executionResult,\n AuthUser user) throws DaoException;\n\n /**\n * a method which marks that a doctor made a decision to refuse to\n * hospitalize a patient during a visit to the admitting department\n *\n * @param visitId a String that contains id of a visit to the admitting\n * department which decision to refuse to hospitalize is\n * made on\n * @param user an AuthUser object which identifies a member of staff who\n * made a decision\n * @return true if a decision to refuse to hospitalize is successfully made\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean startRefusalProcedure(String visitId, AuthUser user)\n throws DaoException;\n\n /**\n * a method which fetches recommendations of medicines established during\n * a visit to admitting department which decision to refuse to hospitalize\n * is made on\n *\n * @param visitId a String that contains id of a visit to admitting\n * department which decision to refuse to hospitalize\n * is made on\n * @param user an AuthUser\n * @return a List object with by.epamtc.jwd.auth.model.visit_info.RefusalMedicineRecommendation\n * objects that contain aforementioned recommendations\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<RefusalMedicineRecommendation> fetchRefusalMedicineRecommendations(\n String visitId, AuthUser user) throws DaoException;\n\n /**\n * a method which fetches visits to the admitting department which\n * decision to refuse to hospitalize is made on by a doctor of the\n * admitting department, but a medical refusal\n * reference in compliance with healthcare legislation of the Republic of\n * Belarus is not registered\n *\n * @param user an AuthUser object that identifies a doctor of the admitting\n * department who made a decision to refuse to hospitalize\n * a patient, but didn't registered an aforementioned reference\n * @return a list object with by.epamtc.jwd.auth.model.visit_info.AdmissionDepartmentVisit\n * object that contains aforementioned visits\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<AdmissionDepartmentVisit> fetchVisitsToRefuse(AuthUser user)\n throws DaoException;\n\n /**\n * a method which adds a recommendation of medicines established during\n * a visit to admitting department which decision to refuse to hospitalize\n * is made on\n *\n * @param medicineId a String that contains id of a medicine which is to be\n * recommended to take\n * @param visitId a String that contains id of a visit to the admitting\n * department department which decision to refuse\n * to hospitalize is made on\n * @param intakeInstruction a String that contains description of how to\n * take a recommended medicine\n * @param user an AuthUser object which identifies a member\n * of staff who make a recommendation of a medicine\n * @return true if a recommendation is successfully added\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean addRefusalMedicineRecommendation(String medicineId, String visitId,\n String intakeInstruction, AuthUser user) throws DaoException;\n\n /**\n * a method which cancels a recommendation of medicines established during\n * a visit to admitting department which decision to refuse to hospitalize\n * is made on\n *\n * @param recommendId a String that contains id of an aforementioned\n * recommendation\n * @param user an AuthUser object which identifies a member\n * of staff who cancel a recommendation of a medicine\n * @return true if a recommendation is successfully cancelled\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n boolean cancelRefusalMedicineRecommendation(String recommendId,\n AuthUser user) throws DaoException;\n\n /**\n * a method which forms and register a medical reference about stay at the\n * admitting department in compliance with healthcare legislation of the\n * Republic of Belarus\n *\n * @param refusalRecommendations a String which contains non-medicine\n * recommendations of a doctor after refusal to\n * hopitalize\n * @param visitId a String which contains id of a visit to\n * admitting department which decision to\n * refuse to hospitalize is made on\n * @param user an AuthUser object that identifies a doctor\n * who registers an aforementioned reference\n * @return an int value, which is id of newly created\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n int formRefusalReference(String refusalRecommendations, String visitId,\n AuthUser user) throws DaoException;\n\n /**\n * a method which fetches medical references about stay at the admitting\n * department (refusal references) formed by a establishing them doctor\n *\n * @param pageNumber a number of a page with refusal references which are\n * established by an aforementioned doctor\n * @param user au AuthUser which conform to an aforementioned doctor\n * @return a List object with by.epamtc.jwd.auth.model.visit_info.RefusalReference\n * that contain shortened information about aforementioned references\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n List<RefusalReference> fetchRefusalReferences(String pageNumber, AuthUser user)\n throws DaoException;\n\n /**\n * a method which fetches a medical reference about stay at the admitting\n * department (refusal reference in detail)\n *\n * @param referenceId a String that contains id of an aforementioned\n * reference\n * @param user au AuthUser object which identifies a user who\n * initiated calling of this method\n * @return by.epamtc.jwd.auth.model.visit_info.RefusalReference object which\n * contains information that makes up a medical reference about stay at\n * the admitting department\n * @throws DaoException throws if problems connected to database interaction\n * or taking a connection from ConnectionPool\n * will occur\n */\n RefusalReference fetchDetailedRefusalReference(String referenceId,\n AuthUser user) throws DaoException;\n}",
"VisitDomainWrapper getActiveVisit(Patient patient, Location department);",
"Patient save(Patient patient, int doctorId);",
"public Doctor reasignDoctorToClinic(Doctor doctor,Clinic clinic ) {\r\n\t \r\n doctor.setClinic(clinic); \r\n\t return doctor;\r\n\t \r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XSwitchExpression__Group_2_1__1__Impl" $ANTLR start "rule__XSwitchExpression__Group_2_1__2" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22051:1: rule__XSwitchExpression__Group_2_1__2 : rule__XSwitchExpression__Group_2_1__2__Impl ; | public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22055:1: ( rule__XSwitchExpression__Group_2_1__2__Impl )
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22056:2: rule__XSwitchExpression__Group_2_1__2__Impl
{
pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2__Impl_in_rule__XSwitchExpression__Group_2_1__244477);
rule__XSwitchExpression__Group_2_1__2__Impl();
state._fsp--;
if (state.failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__XSwitchExpression__Group_2_1_0_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22181:1: ( rule__XSwitchExpression__Group_2_1_0_0__2__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22182:2: rule__XSwitchExpression__Group_2_1_0_0__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__2__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__244723);\r\n rule__XSwitchExpression__Group_2_1_0_0__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9393:1: ( rule__XSwitchExpression__Group_2_1__2__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9394:2: rule__XSwitchExpression__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2__Impl_in_rule__XSwitchExpression__Group_2_1__219159);\n rule__XSwitchExpression__Group_2_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:21872:1: ( rule__XSwitchExpression__Group_2_0__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:21873:2: rule__XSwitchExpression__Group_2_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__1__Impl_in_rule__XSwitchExpression__Group_2_0__144114);\r\n rule__XSwitchExpression__Group_2_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XSwitchExpression__Group_2_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22009:1: ( ( ( rule__XSwitchExpression__Group_2_1_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22010:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22010:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22011:1: ( rule__XSwitchExpression__Group_2_1_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22012:1: ( rule__XSwitchExpression__Group_2_1_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22012:2: rule__XSwitchExpression__Group_2_1_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0__0_in_rule__XSwitchExpression__Group_2_1__0__Impl44387);\r\n rule__XSwitchExpression__Group_2_1_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:10999:1: ( rule__XSwitchExpression__Group_2_1__2__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:11000:2: rule__XSwitchExpression__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2__Impl_in_rule__XSwitchExpression__Group_2_1__222413);\n rule__XSwitchExpression__Group_2_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2_1_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9519:1: ( rule__XSwitchExpression__Group_2_1_0_0__2__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9520:2: rule__XSwitchExpression__Group_2_1_0_0__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__2__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__219405);\n rule__XSwitchExpression__Group_2_1_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2_1__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22066:1: ( ( ')' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22067:1: ( ')' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22067:1: ( ')' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22068:1: ')'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_1_2()); \r\n }\r\n match(input,134,FOLLOW_134_in_rule__XSwitchExpression__Group_2_1__2__Impl44505); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_1_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XSwitchExpression__Group_2_1_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:11125:1: ( rule__XSwitchExpression__Group_2_1_0_0__2__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:11126:2: rule__XSwitchExpression__Group_2_1_0_0__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__2__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__222659);\n rule__XSwitchExpression__Group_2_1_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10102:1: ( rule__XSwitchExpression__Group_2_1__2__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10103:2: rule__XSwitchExpression__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2__Impl_in_rule__XSwitchExpression__Group_2_1__220600);\n rule__XSwitchExpression__Group_2_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2_0_0_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:21963:1: ( rule__XSwitchExpression__Group_2_0_0_0__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:21964:2: rule__XSwitchExpression__Group_2_0_0_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__1__Impl_in_rule__XSwitchExpression__Group_2_0_0_0__144294);\r\n rule__XSwitchExpression__Group_2_0_0_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XSwitchExpression__Group_2_1_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22091:1: ( rule__XSwitchExpression__Group_2_1_0__0__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22092:2: rule__XSwitchExpression__Group_2_1_0__0__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0__0__Impl_in_rule__XSwitchExpression__Group_2_1_0__044542);\r\n rule__XSwitchExpression__Group_2_1_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XSwitchExpression__Group_2_1_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10228:1: ( rule__XSwitchExpression__Group_2_1_0_0__2__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10229:2: rule__XSwitchExpression__Group_2_1_0_0__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__2__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__220846);\n rule__XSwitchExpression__Group_2_1_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:7747:1: ( rule__XSwitchExpression__Group_2__1__Impl )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:7748:2: rule__XSwitchExpression__Group_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2__1__Impl_in_rule__XSwitchExpression__Group_2__115706);\n rule__XSwitchExpression__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9210:1: ( rule__XSwitchExpression__Group_2_0__1__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9211:2: rule__XSwitchExpression__Group_2_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__1__Impl_in_rule__XSwitchExpression__Group_2_0__118796);\n rule__XSwitchExpression__Group_2_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:11010:1: ( ( ')' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:11011:1: ( ')' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:11011:1: ( ')' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:11012:1: ')'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_1_2()); \n }\n match(input,57,FOLLOW_57_in_rule__XSwitchExpression__Group_2_1__2__Impl22441); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:10816:1: ( rule__XSwitchExpression__Group_2_0__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:10817:2: rule__XSwitchExpression__Group_2_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__1__Impl_in_rule__XSwitchExpression__Group_2_0__122050);\n rule__XSwitchExpression__Group_2_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XSwitchExpression__Group_2_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:10656:1: ( rule__XSwitchExpression__Group_2_0__2__Impl )\r\n // InternalDroneScript.g:10657:2: rule__XSwitchExpression__Group_2_0__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:11377:1: ( rule__XSwitchExpression__Group_2_1__2__Impl )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:11378:2: rule__XSwitchExpression__Group_2_1__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2__Impl_in_rule__XSwitchExpression__Group_2_1__223240);\r\n rule__XSwitchExpression__Group_2_1__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XSwitchExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:10618:1: ( rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:10619:2: rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__2__Impl_in_rule__XSwitchExpression__Group__221656);\n rule__XSwitchExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__3_in_rule__XSwitchExpression__Group__221659);\n rule__XSwitchExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new DAOException exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). | public DAOException(Throwable cause) {
super(cause);
} | [
"public DAOException(String reason, Throwable cause) {\n super(reason, cause);\n }",
"public RDISException(String msg, Exception cause) {\n\t\tmMessage = msg;\n\t\tmCause = cause;\n\t}",
"public DAOException(String message, String... params)\r\n {\r\n super(message, params);\r\n }",
"public AcotaModelException(Exception message, String cause) {\n\t\tsuper(cause, message);\n\t}",
"public DAOException(String message)\r\n {\r\n super(message);\r\n }",
"public EIMCreateException(Throwable cause) {\n\t\tsuper();\n\t\tinitCause( cause );\n\t}",
"public DAOException(String message) {\r\n super(message);\r\n }",
"public DAOUpdateException(Throwable cause) {\n super(cause);\n }",
"public DAOConfigurationException(Throwable cause) {\n super(cause);\n }",
"public EIMCreateException(String msg, Throwable cause) {\n\t\tsuper( msg );\n\t\tinitCause( cause );\n\t}",
"public ModelManagerException(final String message, final Throwable cause) {\n super(message, cause);\n // TODO: Implement this constructor.\n }",
"public TransactionException(Throwable cause) {\n super(cause);\n }",
"public PersistenceException(String sMessage, Throwable eCause)\n {\n super(sMessage, eCause);\n }",
"public DoceException(Throwable rootCause) {\n super(\"\", rootCause);\n }",
"public ModelManagerException(final Throwable cause) {\n super(cause);\n // TODO: Implement this constructor.\n }",
"public DBActionsException(String message, Throwable cause) {\n super(message, cause);\n }",
"public DAOException() {\n\t}",
"public ModelException(int reason, Throwable cause) {\n super(getReasonMessage(reason), reason, cause);\n }",
"public DataMappingException(Throwable cause) {\n this(DEFAULT_ERROR, null, cause);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Search a node with given value. if this Node has children, 50% to continue the search. Return random child if not found valued child. | public Node searchSubTreeByValue(String value){
ArrayList<Node> childNodes = new ArrayList<Node>();
childNodes = this.getChildren(); // get children
lastFounded = null;
for(Node resNode : childNodes){ // for each child
if(resNode.value.equals(value)){ // if we find the searched value
if(resNode.getChildren()==null){
return resNode;// we return the node if it has no children
}else{// 50% to return the node if it has children
lastFounded = resNode;// we save the node in case we don't find any matching not later.
return (new Random().nextInt(2)==0?resNode:resNode.searchSubTreeByValue(value));
}
//return resNode;
}else if(resNode.getChildren()!=null && resNode.getChildren().size()>0){ // if node has children but has not value searched
return resNode.searchSubTreeByValue(value); // Recursively search value
}
}
if(lastFounded != null)// if we founded matching nodes, we return the last matching node founded
return lastFounded;
return this.getSubTree(-1); // if we didn't find any matching node, we take random node
} | [
"public TreeNode find(int value) {\r\n \tQueue<TreeNode> queue = new java.util.LinkedList<TreeNode>();\r\n queue.offer(this.root);\r\n while (!queue.isEmpty()) {\r\n TreeNode node = (TreeNode) queue.poll();\r\n \tif (node.getValue()==value) {\r\n \t\treturn node;\r\n \t}\r\n if (!node.getChildren().isEmpty()) {\r\n \tIterator<TreeNode> iterator = node.getChildren().iterator();\r\n \twhile (iterator.hasNext()) queue.offer((TreeNode)iterator.next());\r\n }\r\n }\r\n return null;\r\n\t}",
"public T search(T value) {\n\n if (root.getValue().compareTo(value) == 0) return root.getValue();\n else return searchRecursively(root, value).getValue();\n }",
"public BtNode getRandomChild() {\n\t\tif (childCounts.size() == 0) {\n\t\t\tLOGGER.warning(\"Returning null child from RandomSelNode with no children\");\n\t\t\treturn null;\n\t\t}\n\t\tif (random == null) {\n\t\t\trandom = new Random();\n\t\t}\n\t\tint idx = random.nextInt(childCounts.size());\n\t\treturn new ArrayList<>(childCounts.keySet()).get(idx);\n\t}",
"protected DefaultMutableTreeNode searchChild(DefaultMutableTreeNode node, String stringValue){\n int length=node.getChildCount();\n DefaultMutableTreeNode result=null;\n for(int i=0; i< length; i++){\n result= (DefaultMutableTreeNode)node.getChildAt(i);\n if(stringValue.equalsIgnoreCase(result.toString())){\n return (DefaultMutableTreeNode)result;\n }\n }\n return null;\n }",
"ITreeNode search(final T value);",
"private boolean search(int value, Node n)\n {\n if (n == null) return false; // value not in the tree\n if (n.data == value)\n return true;\n if (value < n.data)\n return search(value, n.left);\n return search(value, n.right);\n }",
"public boolean search(int value) {\n if (root == null) {\n return false;\n } else if (value == root.value) {\n return true;\n } else {\n return root.search(value);\n }\n\n }",
"public NCRPNode select() {\n\t\t\t\n\t\t\t//dim number of children + 1 (unallocated mass) \n\t\t\tdouble[] weights = new double[children.size() + 1];\n\t \n\t\t\t//weight of unallocated probability mass\n\t\t\tweights[0] = gamma / (gamma + customers);\n\t\t\t\n\t\t\t//calc weight for each child based on the number of customers on them\n\t\t\tint i = 1;\n\t\t\tfor (NCRPNode child: children) {\n\t\t\t\tweights[i] = (double) child.customers / (gamma + customers);\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\t//sample a child with higher weight\n\t\t\tint choice = random.nextDiscrete(weights);\n\t\t\t//if unallocated mass is sampled, create a new child\n\t\t\tif (choice == 0) {\n\t\t\t\treturn(addChild());\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn children.get(choice - 1);\n\t\t\t}\n\t\t}",
"private BinaryTreeNode fatherOfElement(int searchVal) {\n BinaryTreeNode nextPath = root;\n BinaryTreeNode lastPath = root;\n while (nextPath != null && nextPath.getValue() != searchVal) {\n lastPath = nextPath;\n nextPath = getNextPath(lastPath, searchVal);\n }\n return lastPath;\n }",
"private Node getNode(Object p_Value)\r\n {\r\n //noinspection unchecked\r\n E searchValue = (E) p_Value;\r\n\r\n Node foundElement = null;\r\n Node checkElement = m_HeadNode;\r\n while ((foundElement == null) && (checkElement != null))\r\n {\r\n //noinspection unchecked\r\n E currentValue = (E) checkElement.m_Element;\r\n\r\n if (currentValue == null)\r\n {\r\n // there is a null element stored in the node, cannot\r\n // use null.equals(), avoid null pointer exception\r\n // but check if it is the one to return\r\n if (searchValue == null)\r\n {\r\n foundElement = checkElement;\r\n }\r\n }\r\n else\r\n {\r\n if (currentValue.equals(searchValue))\r\n {\r\n foundElement = checkElement;\r\n }\r\n }\r\n\r\n if (foundElement == null)\r\n {\r\n // not yet found, check the next node\r\n checkElement = checkElement.m_NextNode;\r\n }\r\n }\r\n return foundElement;\r\n }",
"public Node searchRecursive(Node currentNode, int value) {\n if (currentNode == null || currentNode.getData() == value) {\n return currentNode;\n }\n\n // Recursive case\n // If value is less than node's data, look into left subtree\n if (value < currentNode.getData()) {\n return searchRecursive(currentNode.getLeftChild(), value);\n } else { // If value is greater than node's data, look into right subtree\n return searchRecursive(currentNode.getRightChild(), value);\n }\n }",
"public DNode findNode(long value)\r\n {\r\n DNode curNode = m_header.getNext();\r\n while(curNode != m_tailer)\r\n {\r\n if(curNode.getValue() == value)\r\n {\r\n return curNode;\r\n }\r\n\r\n curNode = curNode.getNext();\r\n }\r\n\r\n return null;\r\n }",
"public Node find(int branch){\r\n\t\tNode result = null;\r\n\t\tfor(Node c: this.children){\r\n\t\t\tif(c.score==branch&&c.sum>0){\r\n\t\t\t\tresult = c;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(result==null){\r\n\t\t\tfor(Node c: this.children){\r\n\t\t\t\tif(c.score==branch)\r\n\t\t\t\t\tresult = c;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(result!=null)\r\n\t\t\treturn result;\r\n\t\tif(children.size()==1)\r\n\t\t\treturn children.get(0);\r\n\t\tSystem.out.println(\"no such branch found, returning this\");\r\n\t\treturn this;\r\n\t}",
"private TierState randomChild(TierGame game) {\n\t\tCollection<Pair<String, TierState>> children = game.validMoves();\n\t\tint elementIndex = new Random().nextInt(children.size());\n\t\tfor (Pair<String, TierState> child : children) {\n\t\t\tif (elementIndex == 0) {\n\t\t\t\treturn child.cdr;\n\t\t\t}\n\t\t\telementIndex--;\n\t\t}\n\t\treturn null;\n\t}",
"public String search(int key){\r\n\r\n String val;\r\n if( searchTree(root,key) == null){\r\n val = null;\r\n }else{\r\n val = searchTree(root,key).value;\r\n }\r\n\r\n return val;\r\n\r\n }",
"public Reference search (int val){//search if we find the value in leaf node\r\n\t\tint keyIndex = findKeyIndex(val);\r\n\t\tif(keys[keyIndex] == val){\r\n\t\t\treturn new Reference(this, keyIndex, true);\r\n\t\t}else{\r\n\t\t\treturn new Reference(this, keyIndex, false);\r\n\t\t}\r\n\t}",
"public static Node select(final Node current) {\n if (!current.unexpandedMoves.isEmpty()) {\n // randomly select an unexpanded move\n final Move move = current.unexpandedMoves.remove(\n ThreadLocalRandom.current().nextInt(current.unexpandedMoves.size()));\n\n // create a copy of context\n final Context context = new Context(current.context);\n\n // apply the move\n context.game().apply(context, move);\n\n // create new node and return it\n return new Node(current, move, context);\n }\n\n // use UCB1 equation to select from all children, with legacy.random tie-breaking\n Node bestChild = null;\n double bestValue = Double.NEGATIVE_INFINITY;\n final double parentLog = Math.log(Math.max(1, current.visitCount));\n final double twoParentLog = 2.0 * Math.log(Math.max(1, current.visitCount));\n int numBestFound = 0;\n\n final int numChildren = current.children.size();\n final int mover = current.context.state().mover();\n\n for (int i = 0; i < numChildren; ++i) {\n final Node child = current.children.get(i);\n final double exploit = child.scoreSums[mover] / child.visitCount;\n final double variance = selectionStrategy.equals(\"UCT\") ? exploit : exploit * (1-exploit);\n final double explore = selectionStrategy.equals(\"UCT\") ? Math.sqrt(twoParentLog / child.visitCount) :\n Math.sqrt(parentLog / child.visitCount * Math.min(.25, variance + Math.sqrt(2 * parentLog/ child.visitCount)));\n\n final double ucb1Value = variance + explore;\n\n if (ucb1Value > bestValue) {\n bestValue = ucb1Value;\n bestChild = child;\n numBestFound = 1;\n } else if\n (\n ucb1Value == bestValue &&\n ThreadLocalRandom.current().nextInt() % ++numBestFound == 0\n ) {\n // this case implements legacy.random tie-breaking\n bestChild = child;\n }\n }\n\n return bestChild;\n }",
"public void chooseChild() {\n\t\t// If the node does not have any children yet, give it children\n\t\tif (children == null)\n\t\t\tchildren = TicTacToePlus.getChildrenNodes(board, xTurn, this);\n\t\t// If the node's board represents a completed game, backpropogate the results\n\t\tif (TicTacToePlus.gameOver(board))\n\t\t\tbackPropogate(TicTacToePlus.gameResult(board));\n\t\telse {\n\t\t\tint countUnexplored = 0;\n\t\t\tfor (int i = 0; i < children.length; i++)\n\t\t\t\tif (children[i].totalTrials == 0)\n\t\t\t\t\tcountUnexplored++;\n\t\t\t// If the node has any unexplored children, explore them\n\t\t\tif (countUnexplored > 0) {\n\t\t\t\tTicTacToeMCTSNode[] unexplored = new TicTacToeMCTSNode[countUnexplored];\n\t\t\t\tfor (int i = 0; i < children.length; i++)\n\t\t\t\t\tif (children[i].totalTrials == 0) {\n\t\t\t\t\t\tcountUnexplored--;\n\t\t\t\t\t\tunexplored[countUnexplored] = children[i];\n\t\t\t\t\t}\n\t\t\t\t// Run a simulation for a random unexplored child\n\t\t\t\tunexplored[(int)(Math.random() * unexplored.length)].runSimulation();\n\t\t\t}\n\t\t\t// If all the Node's children are explored, call this function in the child\n\t\t\t// with the best potential (look up on Wikipedia to understand potential)\n\t\t\telse {\n\t\t\t\tTicTacToeMCTSNode bestChild = null;\n\t\t\t\tdouble bestPotential = -1, potential;\n\t\t\t\tfor (int i = 0; i < children.length; i++) {\n\t\t\t\t\tpotential = childPotential(children[i]);\n\t\t\t\t\tif (potential > bestPotential) {\n\t\t\t\t\t\tbestPotential = potential;\n\t\t\t\t\t\tbestChild = children[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbestChild.chooseChild();\n\t\t\t}\t\n\t\t}\n\t}",
"public Website RBSearch(Website site, int value) {\r\n\t\tif (site == null || value == site.getPageRank()) { // If the site is null or the correct site, return the site\r\n\t\t\treturn site; // return statement\r\n\t\t}\r\n\t\tif (site.getPageRank() < value) { // if the site's pagerank is lower, meaning it's value is higher than the\r\n\t\t\t\t\t\t\t\t\t\t\t// value needed, it goes to the left\r\n\t\t\treturn RBSearch(site.getLeft(), value); // search to the left\r\n\t\t} else {\r\n\t\t\treturn RBSearch(site.getRight(), value); // search to the right otherwise\r\n\t\t}\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The crop box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). APISince: 2.0 | @NotNull
@Generated
@CVariable()
public static native CFStringRef kCGPDFContextCropBox(); | [
"Rectangle2D getCropBox() {\r\n\t\t\tif (cropBox == null) {\r\n\t\t\t\tObject obj = getData().get(KEY_CROP_BOX);\r\n\t\t\t\t//if null, then first check the parents to see if this attribute is defined somewhere above in the heiarchy. If not,\r\n\t\t\t\t//then default to the mediaBox.\r\n\t\t\t\tif (obj == null) {\r\n\t\t\t\t\t//check the parents\r\n\t\t\t\t\tobj = getInheritable(KEY_CROP_BOX);\r\n\t\t\t\t\tif (obj == null) {\r\n\t\t\t\t\t\t//its got to be the media box at this point\r\n\t\t\t\t\t\treturn getMediaBox();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//construct the Rectangle based on the data from the file\r\n\t\t\t\t\t\tObject[] data = (Object[])getObject(obj);\r\n\t\t\t\t\t\tcropBox = PDFParseUtils.constructRectangle(data);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//construct the Rectangle based on the data from the file\r\n\t\t\t\t\tObject[] data = (Object[])getObject(obj);\r\n\t\t\t\t\tcropBox = PDFParseUtils.constructRectangle(data);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn cropBox;\r\n\t\t}",
"com.braincs.attrsc.protocol.protobuf.Protocol.RectFOrBuilder getCropRectOrBuilder();",
"com.braincs.attrsc.protocol.protobuf.Protocol.RectF getCropRect();",
"static final PDRectangle getBox(PDPage page) {\n\t\treturn page.getCropBox();\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.braincs.attrsc.protocol.protobuf.Protocol.RectF, com.braincs.attrsc.protocol.protobuf.Protocol.RectF.Builder, com.braincs.attrsc.protocol.protobuf.Protocol.RectFOrBuilder> \n getCropRectFieldBuilder() {\n if (cropRectBuilder_ == null) {\n cropRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.braincs.attrsc.protocol.protobuf.Protocol.RectF, com.braincs.attrsc.protocol.protobuf.Protocol.RectF.Builder, com.braincs.attrsc.protocol.protobuf.Protocol.RectFOrBuilder>(\n getCropRect(),\n getParentForChildren(),\n isClean());\n cropRect_ = null;\n }\n return cropRectBuilder_;\n }",
"@Generated\n @CFunction\n @ByValue\n public static native CGRect CGPDFPageGetBoxRect(@Nullable CGPDFPageRef page, int box);",
"Rectangle2D getTrimBox() {\r\n\t\t\tif (trimBox == null) {\r\n\t\t\t\tObject obj = getData().get(KEY_TRIM_BOX);\r\n\t\t\t\t//if null, then the trim box is the same as the crop box\r\n\t\t\t\tif (obj == null) {\r\n\t\t\t\t\treturn getCropBox();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//construct the Rectangle based on the data from the file\r\n\t\t\t\t\tObject[] data = (Object[])getObject(obj);\r\n\t\t\t\t\ttrimBox = PDFParseUtils.constructRectangle(data);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn trimBox;\t\t\t\r\n\t\t}",
"public com.google.protobuf.ByteString getCrop() {\n return crop_;\n }",
"com.google.protobuf.ByteString getCrop();",
"public int getCropType() {\n\n return cropType;\n }",
"public String GetCropType()\n {\n return this.cropType;\n }",
"public Builder setCrop(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n crop_ = value;\n onChanged();\n return this;\n }",
"public CropData getCrop(){\r\n return theCrops;\r\n }",
"public void setCrop(CropData _cropRef){\r\n theCrops = _cropRef;\r\n }",
"public Rectangle2D getCropRect(ImageComponent ic) {\n switch (state) {\n case INITIAL:\n lastCropRect = null;\n break;\n case USER_DRAG:\n lastCropRect = userDrag.createPositiveRect();\n break;\n case TRANSFORM:\n lastCropRect = transformSupport.getImageSpaceRect(ic);\n break;\n }\n\n return lastCropRect;\n }",
"public Integer getCropId() {\n return cropId;\n }",
"Rectangle2D getArtBox() {\r\n\t\t\tif (artBox == null) {\r\n\t\t\t\tObject obj = getData().get(KEY_ART_BOX);\r\n\t\t\t\t//if null, then the art box is the same as the crop box\r\n\t\t\t\tif (obj == null) {\r\n\t\t\t\t\treturn getCropBox();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//construct the Rectangle based on the data from the file\r\n\t\t\t\t\tObject[] data = (Object[])getObject(obj);\r\n\t\t\t\t\tartBox = PDFParseUtils.constructRectangle(data);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn artBox;\t\t\t\r\n\t\t}",
"Rectangle2D getBleedBox() {\r\n\t\t\tif (bleedBox == null) {\r\n\t\t\t\tObject obj = getData().get(KEY_BLEED_BOX);\r\n\t\t\t\t//if null, then the bleed box is the same as the crop box\r\n\t\t\t\tif (obj == null) {\r\n\t\t\t\t\treturn getCropBox();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//construct the Rectangle based on the data from the file\r\n\t\t\t\t\tObject[] data = (Object[])getObject(obj);\r\n\t\t\t\t\tbleedBox = PDFParseUtils.constructRectangle(data);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn bleedBox;\t\t\t\r\n\t\t}",
"public Number getCropId() {\r\n return (Number) getAttributeInternal(CROPID);\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
EFFECTS: converts Schedule to JSON object | public JSONObject scheduleToJson() {
JSONObject json = new JSONObject();
json.put("start", start);
json.put("end", end);
json.put("scheduledBlocks", scheduledBlocksToJson());
return json;
} | [
"public void exportSchedule() {\r\n // Get valid file name from user\r\n String fileName = getFileName();\r\n\r\n try {\r\n // Open file\r\n FileWriter fileWriter = new FileWriter(fileName);\r\n\r\n JSONArray jsonArray = new JSONArray();\r\n\r\n // Iterate through all transient tasks\r\n for (TransientTask task : transientTasks) {\r\n // Convert TransientTask object to a JSON object\r\n JSONObject jsonObject = new JSONObject();\r\n jsonObject.put(\"Name\", task.getName());\r\n jsonObject.put(\"Type\", task.getType());\r\n jsonObject.put(\"Date\", task.getDate());\r\n jsonObject.put(\"StartTime\", task.getStartTime());\r\n jsonObject.put(\"Duration\", task.getDuration());\r\n\r\n // Add to JSON array\r\n jsonArray.add(jsonObject);\r\n }\r\n\r\n // Write all recurring tasks\r\n for (RecurringTask task : recurringTasks) {\r\n // Convert RecurringTask object to a JSON object\r\n JSONObject jsonObject = new JSONObject();\r\n jsonObject.put(\"Name\", task.getName());\r\n jsonObject.put(\"Type\", task.getType());\r\n jsonObject.put(\"StartDate\", task.getStartDate());\r\n jsonObject.put(\"StartTime\", task.getStartTime());\r\n jsonObject.put(\"Duration\", task.getDuration());\r\n jsonObject.put(\"EndDate\", task.getEndDate());\r\n jsonObject.put(\"Frequency\", task.getFrequency());\r\n\r\n // Add to JSON array\r\n jsonArray.add(jsonObject);\r\n }\r\n\r\n // Write all anti-tasks\r\n for (AntiTask task : antiTasks) {\r\n // Convert AntiTask object to a JSON object\r\n JSONObject jsonObject = new JSONObject();\r\n jsonObject.put(\"Name\", task.getName());\r\n jsonObject.put(\"Type\", task.getType());\r\n jsonObject.put(\"Date\", task.getDate());\r\n jsonObject.put(\"StartTime\", task.getStartTime());\r\n jsonObject.put(\"Duration\", task.getDuration());\r\n\r\n // Add to JSON array\r\n jsonArray.add(jsonObject);\r\n }\r\n\r\n // Write JSON array to the file\r\n fileWriter.write(jsonArray.toJSONString());\r\n fileWriter.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"java.lang.String getSchedule();",
"private static void buildScheduleFromJson(String filepath) {\r\n\t\tScriptEngine engine;\r\n\r\n\t\tScriptEngineManager scriptEngineManager = new ScriptEngineManager();\r\n\t\tengine = scriptEngineManager.getEngineByName(\"javascript\");\r\n\t\t\r\n\t\tString json;\r\n\t\ttry {\r\n\t\t\tjson = new String(Files.readAllBytes(Paths.get(filepath)));\r\n\t\t\tString script = \"Java.asJSONCompatible(\" + json + \")\";\r\n\t\t\tObject result = engine.eval(script);\r\n\r\n\t\t\tif (ConfigurationEnvironment.inDebug()) {\r\n\t\t\t\tSystem.err.println(\"=================== SCHEDULE ===================\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<Map.Entry<String, Object>> jsonMap = ((ScriptObjectMirror) result).entrySet();\r\n\r\n\t\t\t// For each item in the first layer (launches)\r\n\t\t\tfor (Entry<String, Object> topEntry : jsonMap) {\r\n\t\t\t\tif (ConfigurationEnvironment.inDebug()) {\r\n\t\t\t\t\tSystem.err.println(topEntry);\r\n\t\t\t\t}\r\n\t\t\t\tif(! topEntry.getKey().equalsIgnoreCase(\"launches\")) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tCollection<Object> launchesCol = ((JSONListAdapter) topEntry.getValue()).values();\r\n\r\n\t\t\t\t// For each launch\r\n\t\t\t\tfor (Object launchesValue : launchesCol) {\t\t\t\t\t\r\n\t\t\t\t\tScriptObjectMirror launchesSOM = (ScriptObjectMirror) launchesValue;\r\n\t\t\t\t\tSet<Map.Entry<String, Object>> launchesMap = launchesSOM.entrySet();\r\n\r\n\t\t\t\t\tString rmName = null;\r\n\t\t\t\t\tString[] sTime = null;\r\n\t\t\t\t\tTime time = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// For each item in launch\r\n\t\t\t\t\tfor(Entry<String, Object> launchEntry : launchesMap) {\r\n\t\t\t\t\t\tif (ConfigurationEnvironment.inDebug()) {\r\n\t\t\t\t\t\t\tSystem.err.println(\" \"+launchEntry);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(launchEntry.getKey().equalsIgnoreCase(\"road\")) {\r\n\t\t\t\t\t\t\trmName = launchEntry.getValue().toString();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(launchEntry.getKey().equalsIgnoreCase(\"time\")) {\r\n\t\t\t\t\t\t\tsTime = launchEntry.getValue().toString().split(\":\");\r\n\t\t\t\t\t\t\tif(sTime.length == 3) {\r\n\t\t\t\t\t\t\t\ttime = new Time(Integer.valueOf(sTime[0]), Integer.valueOf(sTime[1]), Integer.valueOf(sTime[2]));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(rmName != null && sTime != null && time != null) {\r\n\t\t\t\t\t\tScheduleController.addLaunchTrainSchedule(rmName, time);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (ConfigurationEnvironment.inDebug()) {\r\n\t\t\t\t\t\tSystem.err.println();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException | ScriptException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void getScheduleJSONData(){\n\t\t\n\t\ttry {\n BufferedReader jsonReader = new BufferedReader(new InputStreamReader(jsonStream));\n StringBuilder jsonBuilder = new StringBuilder();\n for (String line = null; (line = jsonReader.readLine()) != null;) {\n jsonBuilder.append(line).append(\"\\n\");\n }\n JSONTokener tokener = new JSONTokener(jsonBuilder.toString());\n JSONArray jsonArray = new JSONArray(tokener);\n \n //totalPages = jsonArray.length();\n for (int counter = 0; counter < jsonArray.length(); counter++) {\n \t\n// \tdata[counter] = new ArrayList<ScheduleItem>();\n JSONObject scheduleItemJsonObject = jsonArray.getJSONObject(counter);\t//get the event object - can be event, session or track\n \t\n \tif(scheduleItemJsonObject.has(\"start\")) {\t// 'start' key is only in event\n \t\t\n \t\tString event_title = scheduleItemJsonObject.optString(\"title\");\n \t\tLog.i(LOG_TAG, \"Basic Event - title: \" + event_title);\n \t\t\n \t\tString event_subtitle = scheduleItemJsonObject.optString(\"subtitle\");\n \t\tLog.i(LOG_TAG, \"Basic Event - subtitle: \" + event_subtitle);\n \t\t\n \t\tString event_start_time = scheduleItemJsonObject.optString(\"start\");\n \t\tLog.i(LOG_TAG, \"Basic Event - Start: \" + event_start_time);\n \t\t\n \t\tString event_end_time = scheduleItemJsonObject.optString(\"end\");\n \t\tLog.i(LOG_TAG, \"Basic Event - end : \" + event_end_time);\n \t\t\n \t\tString event_location = scheduleItemJsonObject.optString(\"location\");\n \t\tLog.i(LOG_TAG, \"Basic Event - Location: \" + event_location);\n \t\t\n \t\tString event_date = scheduleItemJsonObject.optString(\"date\");\n \t\tLog.i(LOG_TAG, \"Basic Event - date: \" + event_date);\n \t\t\n \t\tString event_authors = \"\"; \n \t\tif (scheduleItemJsonObject.has(\"authors\")){\n\t \t\tevent_authors = scheduleItemJsonObject.\n\t \t\t\t\tgetJSONArray(\"authors\").toString().\n\t \t\t\t\treplace(\"\\\"\", \"\").replace(\"[\", \"\").\n\t \t\t\t\treplace(\"]\", \"\");\n\t \t\tLog.i(LOG_TAG, \"Basic Event - Authors: \" + event_authors);\n \t\t}\n \t\t\n \t\tString event_type = scheduleItemJsonObject.optString(\"type\");\n \t\tLog.i(LOG_TAG, \"Basic Event - Type: \" + event_type);\n \t\t\n \t\tString event_abstract = scheduleItemJsonObject.optString(\"abstract\");\n \t\tLog.i(LOG_TAG, \"Basic Event - Abstract: \" + event_abstract);\n \t\t\n \t\t//adding the event to events arraylist\n \t\teventsRecordsArray.add( new EventScheduleItem(event_title, event_subtitle, event_start_time, event_end_time, event_location, event_date, event_authors, event_type, event_abstract) );\n \t\t\n \t\t//get index of this added item now\n \t\tint eventAddedIndex = eventsRecordsArray.size() - 1;\n \t\t\n \t\t//add it now to main records array\n \t\tscheduleRecordsArray.add(new ScheduleItemRecord(SCHEDULE_ITEMTYPE_EVENT, eventAddedIndex, event_date));\n \t\t\n \t//closing if\t\n \t} else if(scheduleItemJsonObject.has(\"tracks\")) { // 'tracks' key is only in session\n \t\t\n \t\tString session_title = scheduleItemJsonObject.optString(\"title\");\n \t\tLog.i(LOG_TAG, \"SESSION - title: \" + session_title);\n \t\t\n \t\tString session_subtitle = scheduleItemJsonObject.optString(\"subtitle\");\n \t\tLog.i(LOG_TAG, \"SESSION - subtitle: \" + session_subtitle);\n \t\t \t\t\n \t\tLog.i(LOG_TAG, \"SESSION - Start parsing Tracks\");\n \t\t\n \t\tJSONArray sessionTracksArray = scheduleItemJsonObject.getJSONArray(\"tracks\");\n \t\t\n \t\t//add the session to sessions list and initialize the tracks array to size of tracks in session\n \t\tsessionRecordsArray.add(new SessionScheduleItem(session_title, session_subtitle, sessionTracksArray.length()));\n \t\t\n \t\t//get index of added session in the list\n \t\tint addedSessionIndex = sessionRecordsArray.size() - 1;\n \t\t\n \t\tString tempSessionDate = sessionTracksArray.getJSONObject(0).getJSONArray(\"events\").getJSONObject(0).optString(\"date\");\n \t\tLog.i(LOG_TAG, \"Session - \" + session_title + \" - Date: \" + tempSessionDate);\n \t\t//add it now to main records array\n \t\tscheduleRecordsArray.add(new ScheduleItemRecord(SCHEDULE_ITEMTYPE_SESSION, addedSessionIndex, tempSessionDate)); \t\t\n \t\t\n \t\t//get the session added at this index\n \t\ttempSession = sessionRecordsArray.get(addedSessionIndex);\n \t\t\n \t\tfor (int trackCounter = 0; trackCounter < sessionTracksArray.length(); trackCounter++) {\n \t\t\t\n \t\t\t//get Track object \n \t\t\tJSONObject sessionTrackObject = sessionTracksArray.getJSONObject(trackCounter);\n \t\t\t//parse the track object\n \t\t\tparseSessionTrackJSON(trackCounter, sessionTrackObject);\n \t\t}\n \t\t\n \t\t//add session back - update\n \t\tsessionRecordsArray.set(addedSessionIndex, tempSession);\n \t\t\n \t\tLog.i(LOG_TAG, \"SESSION - End parsing Tracks\");\n \t} else {\n \t\t\n \t\t//parse the track\n \t\tparseScheduleTrackJSON(counter, scheduleItemJsonObject);\n \t\n \t//closing elseif\n \t}\n \tLog.i(LOG_TAG, \"Finnished parsing schedule json\");\n }\n \n\t\t} catch (Exception e) {\n // TODO: handle exception\n\t\t\tLog.e(LOG_TAG, e.getMessage());\n\t\t\tLog.e(LOG_TAG,Log.getStackTraceString(e));\n }\t\n\t}",
"Schedule createSchedule();",
"private JSONArray scheduledBlocksToJson() {\n JSONArray arr = new JSONArray();\n for (Block scheduledBlock : blocks) {\n arr.put(((ScheduledBlock) scheduledBlock).toJson());\n }\n return arr;\n }",
"@Override\n public JSONObject toJson() {\n JSONObject json = new JSONObject();\n json.put(\"Exercise type\", type);\n json.put(\"Time\",this.time);\n return json;\n }",
"public Schedule getSchedule(){\r\n\t\treturn this.schedule;\r\n\t}",
"void save(Schedule schedule);",
"void getScheduleData() {\n\n\t\tSystem.out.println(\"\\n inside getScheduleData\");\n\t\tSavedQueryService service = SavedQueryService.getService(session\n\t\t\t\t.getSoaConnection());\n\t\tFindSavedQueriesCriteriaInput queryObject[] = new FindSavedQueriesCriteriaInput[1];\n\t\tFindSavedQueriesCriteriaInput queryObject1 = new FindSavedQueriesCriteriaInput();\n\t\tString[] qryName = { \"Schedule_search\" };\n\t\tString[] qryDesc = { \"\" };\n\t\tqueryObject1.queryNames = qryName;\n\t\tqueryObject1.queryDescs = qryDesc;\n\t\tFindSavedQueriesResponse response;\n\t\tqueryObject[0] = queryObject1;\n\t\tModelObject[] savequery = null;\n\t\ttry {\n\t\t\tresponse = service.findSavedQueries(queryObject);\n\t\t\tsavequery = response.savedQueries;\n\n\t\t} catch (ServiceException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tString[] id = { \"ID\" };\n\t\tString[] val = { \"*\" };\n\t\tModelObject save = savequery[0];\n\t\tExecuteSavedQueryResponse result;\n\n\t\ttry {\n\t\t\tresult = service.executeSavedQuery(save, id, val, 1000);\n\t\t\tSchedule_count = result.nFound;\n\t\t\tSchedule_object = result.objects;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void onSchedule();",
"@Override\n\t@GET\n\t@Path(\"{courseId}/schedules\")\n\t@Produces(value ={MediaType.APPLICATION_JSON,MediaType.TEXT_XML})\n\t@PermissionsTag(value={Constants.USER_ADMIN,Constants.USER_STUDENT})\n\tpublic Response getCourseSchedule(@PathParam(\"courseId\")int courseId) {\n\t\tList<ScheduleVO> scheudleVO = courseService.getCourseSchedule(courseId);\n\t\tList<RestScheduleVO> restcurriculumVO = new ArrayList<>();\n\t\tfor (ScheduleVO schedulevo : scheudleVO) {\n\t\t\tRestScheduleVO restScheduleVOs = new RestScheduleVO(schedulevo.getScheduleId(), schedulevo.getStartDate(), schedulevo.getEndDate(), schedulevo.getStartTime(), schedulevo.getEndTime(), schedulevo.getDaysOfWeek());\n\t\t\trestcurriculumVO.add(restScheduleVOs);\n\t\t}\n\t\tGenericEntity<List<RestScheduleVO>> entity = new GenericEntity<List<RestScheduleVO>>(restcurriculumVO){};\n\t\treturn Response.status(Status.OK).entity(entity).build();\n\t}",
"private JSONArray remindersToJson() {\r\n JSONArray jsonArray = new JSONArray();\r\n\r\n for (Reminder r : reminderList) {\r\n jsonArray.put(r.toJson());\r\n }\r\n\r\n return jsonArray;\r\n }",
"io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();",
"void onScheduleSuccess();",
"@NotNull public static ScheduleAction.Builder scheduleAction() { return new ScheduleAction.Builder(new HashMap<String,Object>()); }",
"void setSchedule(Schedule schedule)\n\t{\n\t\tthis.schedule = schedule;\n\t}",
"public Schedules getSchedule() {\n\t\treturn schedule;\n\t}",
"public List<SlotDto> ScheduleSlot(ScheduleDto schedule) {\n\n List<SlotDto> slots = null;\n try {\n slots = dao.ScheduleSlot(schedule);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return slots;\n\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XEqualityExpression__Group_1__1" $ANTLR start "rule__XEqualityExpression__Group_1__1__Impl" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4367:1: rule__XEqualityExpression__Group_1__1__Impl : ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) ; | public final void rule__XEqualityExpression__Group_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4371:1: ( ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) )
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4372:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )
{
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4372:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4373:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )
{
if ( state.backtracking==0 ) {
before(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1());
}
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4374:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4374:2: rule__XEqualityExpression__RightOperandAssignment_1_1
{
pushFollow(FOLLOW_rule__XEqualityExpression__RightOperandAssignment_1_1_in_rule__XEqualityExpression__Group_1__1__Impl9293);
rule__XEqualityExpression__RightOperandAssignment_1_1();
state._fsp--;
if (state.failed) return ;
}
if ( state.backtracking==0 ) {
after(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1());
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__XEqualityExpression__Group_1_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18076:1: ( ( ( rule__XEqualityExpression__Group_1_0_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18077:1: ( ( rule__XEqualityExpression__Group_1_0_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18077:1: ( ( rule__XEqualityExpression__Group_1_0_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18078:1: ( rule__XEqualityExpression__Group_1_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18079:1: ( rule__XEqualityExpression__Group_1_0_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18079:2: rule__XEqualityExpression__Group_1_0_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1_0_0__0_in_rule__XEqualityExpression__Group_1_0__0__Impl36647);\r\n rule__XEqualityExpression__Group_1_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XEqualityExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4310:1: ( ( ( rule__XEqualityExpression__Group_1__0 )* ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4311:1: ( ( rule__XEqualityExpression__Group_1__0 )* )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4311:1: ( ( rule__XEqualityExpression__Group_1__0 )* )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4312:1: ( rule__XEqualityExpression__Group_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getGroup_1()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4313:1: ( rule__XEqualityExpression__Group_1__0 )*\n loop44:\n do {\n int alt44=2;\n switch ( input.LA(1) ) {\n case 18:\n {\n int LA44_2 = input.LA(2);\n\n if ( (synpred80_InternalHelloXcore()) ) {\n alt44=1;\n }\n\n\n }\n break;\n case 19:\n {\n int LA44_3 = input.LA(2);\n\n if ( (synpred80_InternalHelloXcore()) ) {\n alt44=1;\n }\n\n\n }\n break;\n case 20:\n {\n int LA44_4 = input.LA(2);\n\n if ( (synpred80_InternalHelloXcore()) ) {\n alt44=1;\n }\n\n\n }\n break;\n case 21:\n {\n int LA44_5 = input.LA(2);\n\n if ( (synpred80_InternalHelloXcore()) ) {\n alt44=1;\n }\n\n\n }\n break;\n\n }\n\n switch (alt44) {\n \tcase 1 :\n \t // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4313:2: rule__XEqualityExpression__Group_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XEqualityExpression__Group_1__0_in_rule__XEqualityExpression__Group__1__Impl9171);\n \t rule__XEqualityExpression__Group_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop44;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getGroup_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4403:1: ( ( ( rule__XEqualityExpression__Group_1_0_0__0 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4404:1: ( ( rule__XEqualityExpression__Group_1_0_0__0 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4404:1: ( ( rule__XEqualityExpression__Group_1_0_0__0 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4405:1: ( rule__XEqualityExpression__Group_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4406:1: ( rule__XEqualityExpression__Group_1_0_0__0 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4406:2: rule__XEqualityExpression__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1_0_0__0_in_rule__XEqualityExpression__Group_1_0__0__Impl9354);\n rule__XEqualityExpression__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5977:1: ( ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5978:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5978:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5979:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5980:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5980:2: rule__XEqualityExpression__RightOperandAssignment_1_1\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__RightOperandAssignment_1_1_in_rule__XEqualityExpression__Group_1__1__Impl12547);\n rule__XEqualityExpression__RightOperandAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4343:1: ( ( ( rule__XEqualityExpression__Group_1_0__0 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4344:1: ( ( rule__XEqualityExpression__Group_1_0__0 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4344:1: ( ( rule__XEqualityExpression__Group_1_0__0 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4345:1: ( rule__XEqualityExpression__Group_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4346:1: ( rule__XEqualityExpression__Group_1_0__0 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4346:2: rule__XEqualityExpression__Group_1_0__0\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1_0__0_in_rule__XEqualityExpression__Group_1__0__Impl9236);\n rule__XEqualityExpression__Group_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5080:1: ( ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5081:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5081:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5082:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5083:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5083:2: rule__XEqualityExpression__RightOperandAssignment_1_1\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__RightOperandAssignment_1_1_in_rule__XEqualityExpression__Group_1__1__Impl10734);\n rule__XEqualityExpression__RightOperandAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4299:1: ( rule__XEqualityExpression__Group__1__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4300:2: rule__XEqualityExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__Group__1__Impl_in_rule__XEqualityExpression__Group__19144);\n rule__XEqualityExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4360:1: ( rule__XEqualityExpression__Group_1__1__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4361:2: rule__XEqualityExpression__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1__1__Impl_in_rule__XEqualityExpression__Group_1__19266);\n rule__XEqualityExpression__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18044:1: ( ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18045:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18045:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18046:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18047:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18047:2: rule__XEqualityExpression__RightOperandAssignment_1_1\r\n {\r\n pushFollow(FOLLOW_rule__XEqualityExpression__RightOperandAssignment_1_1_in_rule__XEqualityExpression__Group_1__1__Impl36586);\r\n rule__XEqualityExpression__RightOperandAssignment_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XEqualityExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4101:1: ( ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4102:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4102:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4103:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4104:1: ( rule__XEqualityExpression__RightOperandAssignment_1_1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4104:2: rule__XEqualityExpression__RightOperandAssignment_1_1\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__RightOperandAssignment_1_1_in_rule__XEqualityExpression__Group_1__1__Impl8543);\n rule__XEqualityExpression__RightOperandAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17972:1: ( rule__XEqualityExpression__Group__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17973:2: rule__XEqualityExpression__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XEqualityExpression__Group__1__Impl_in_rule__XEqualityExpression__Group__136437);\r\n rule__XEqualityExpression__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XEqualityExpression__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4331:1: ( rule__XEqualityExpression__Group_1__0__Impl rule__XEqualityExpression__Group_1__1 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4332:2: rule__XEqualityExpression__Group_1__0__Impl rule__XEqualityExpression__Group_1__1\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1__0__Impl_in_rule__XEqualityExpression__Group_1__09206);\n rule__XEqualityExpression__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1__1_in_rule__XEqualityExpression__Group_1__09209);\n rule__XEqualityExpression__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18004:1: ( rule__XEqualityExpression__Group_1__0__Impl rule__XEqualityExpression__Group_1__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18005:2: rule__XEqualityExpression__Group_1__0__Impl rule__XEqualityExpression__Group_1__1\r\n {\r\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1__0__Impl_in_rule__XEqualityExpression__Group_1__036499);\r\n rule__XEqualityExpression__Group_1__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1__1_in_rule__XEqualityExpression__Group_1__036502);\r\n rule__XEqualityExpression__Group_1__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XEqualityExpression__Group_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18033:1: ( rule__XEqualityExpression__Group_1__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18034:2: rule__XEqualityExpression__Group_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1__1__Impl_in_rule__XEqualityExpression__Group_1__136559);\r\n rule__XEqualityExpression__Group_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void ruleXEqualityExpression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2098:2: ( ( ( rule__XEqualityExpression__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2099:1: ( ( rule__XEqualityExpression__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2099:1: ( ( rule__XEqualityExpression__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2100:1: ( rule__XEqualityExpression__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXEqualityExpressionAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2101:1: ( rule__XEqualityExpression__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2101:2: rule__XEqualityExpression__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__XEqualityExpression__Group__0_in_ruleXEqualityExpression4428);\r\n rule__XEqualityExpression__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXEqualityExpressionAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XEqualityExpression__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4453:1: ( rule__XEqualityExpression__Group_1_0_0__1__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4454:2: rule__XEqualityExpression__Group_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1_0_0__1__Impl_in_rule__XEqualityExpression__Group_1_0_0__19447);\n rule__XEqualityExpression__Group_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5052:1: ( ( ( rule__XEqualityExpression__Group_1_0__0 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5053:1: ( ( rule__XEqualityExpression__Group_1_0__0 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5053:1: ( ( rule__XEqualityExpression__Group_1_0__0 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5054:1: ( rule__XEqualityExpression__Group_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5055:1: ( rule__XEqualityExpression__Group_1_0__0 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5055:2: rule__XEqualityExpression__Group_1_0__0\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__Group_1_0__0_in_rule__XEqualityExpression__Group_1__0__Impl10677);\n rule__XEqualityExpression__Group_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void ruleXEqualityExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:584:2: ( ( ( rule__XEqualityExpression__Group__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:585:1: ( ( rule__XEqualityExpression__Group__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:585:1: ( ( rule__XEqualityExpression__Group__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:586:1: ( rule__XEqualityExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getGroup()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:587:1: ( rule__XEqualityExpression__Group__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:587:2: rule__XEqualityExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XEqualityExpression__Group__0_in_ruleXEqualityExpression1185);\n rule__XEqualityExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XEqualityExpression__Group_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4434:1: ( ( () ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4435:1: ( () )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4435:1: ( () )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4436:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4437:1: ()\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4439:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Applies one step in the folding process. | public boolean applyFolding( int top ) throws VerificationException
{
if( length == 0 ){
return false;
}
StepList steps = selectBestSteps( top );
// For now, just pick the best move.
Step mv = steps.getBestStep();
if( mv != null && mv.getGain()>0 ){
// It is worthwile to do this compression.
if( traceCompressionCosts ){
System.out.println( "Best step: string [" + buildString( mv.occurences[0], mv.len ) + "]: " + mv );
}
applyCompression( mv );
if( doVerification ){
test();
}
return true;
}
return false;
} | [
"public void reconcile()\n {\n if (! isFoldingEnabled()) { return; }\n\n try\n {\n IAnnotationModel annotations = getAnnotations();\n if (annotations == null) { return; }\n\n Set tuples = computeFoldPositions();\n\n removeFolds(tuples);\n addFolds(tuples);\n\n /*\n * this should probably be handled via some kind of initialization that occurs in the\n * constructor to set up the initial folds. due to the way the editor calls this method\n * after the class has been instanciated, this achieves the desired behavior\n */\n initialized = true;\n }\n catch (BadLocationException e)\n {\n // this one should never occur\n String pluginId = PDTPlugin.getPluginId();\n getLog().log(StatusFactory.createError(pluginId, \"Unexpected exception; report it as \"\n + \"a bug in plug-in \" + pluginId, e));\n }\n }",
"@Override\n public IRConst doConstFolding() {\n \treturn null;\n }",
"boolean getDoConstantFolding();",
"public abstract FoldHandleDefinition startFold(boolean expanded);",
"public Crossvalidationfold() {\n this(DSL.name(\"CrossValidationFold\"), null);\n }",
"public static <E,F> F fold_with_map(\n Stream<E> stream,\n Function<? super E,F> folding_adapter\n ) {\n if (stream == null) return null;\n Stream<F> folding_stream = stream.map(folding_adapter);\n return Streams.last(folding_stream);\n }",
"@Handler\n void onFoldAll()\n {\n \n HashSet<Integer> rowsFolded = new HashSet<Integer>();\n for (AceFold f : JsUtil.asIterable(docDisplay_.getFolds()))\n rowsFolded.add(f.getStart().getRow());\n \n ScopeList scopeList = new ScopeList(docDisplay_);\n scopeList.removeAll(ScopeList.ANON_BRACE);\n for (Scope scope : scopeList)\n {\n int row = scope.getPreamble().getRow();\n if (!rowsFolded.contains(row))\n docDisplay_.addFoldFromRow(row);\n }\n }",
"@NonNull\n protected abstract FoldHandleDefinition startFold(boolean expanded);",
"void fireFoldWillChange()\n {\n final boolean futureFold = this.foldWay < 0;\n\n for(final FoldListener foldListener : this.listeners)\n {\n foldListener.willFoldChanged(this, futureFold);\n }\n }",
"private void reductions() {\n for (STATE state : _states.values()) {\n addreductions(state);\n }\n }",
"public FoldReconciler(PikeEditor editor)\n {\n this.editor = editor;\n this.folds = new HashSet();\n }",
"public ThreeAddress fold()\r\n {\n \r\n if (!o.isImm())\r\n {\r\n return this;\r\n }\r\n \r\n // Next, get the value of the operand and perform the relevant operation.\r\n \r\n int v = ((Imm) o).getBits();\r\n \r\n int newV;\r\n \r\n switch (op)\r\n {\r\n case NEG : newV = -v; break;\r\n default : newV = v & 0xFF;\r\n }\r\n \r\n return new Assign(st, new Imm(newV));\r\n }",
"private void OneStep() {\n\t\tif (frontIsClear()) {\n\t\t\tmove();\n\t\t} else {\n\t\t\tif (facingEast()) {\n\t\t\t\tMoveUpIfEastBlocked();\t\n\t\t\t} else if (facingWest()) {\n\t\t\t\tMoveUpIfWestBlocked();\n\t\t\t}\n\t\t}\n\t}",
"public void constantPropagationAndFolding(JmmNode node) {\n Object value = getValue(node);\n if (value != null) {\n prepareForReplacement(node, value);\n return;\n }\n\n for (JmmNode child : node.getChildren()) {\n constantPropagationAndFolding(child);\n }\n }",
"public void expandAllFolds()\n\t{\n\t\tif(virtualLines.length <= lineCount)\n\t\t{\n\t\t\tint[] virtualLinesN = new int[(lineCount + 1) * 2];\n\t\t\tSystem.arraycopy(virtualLines,0,\n\t\t\t\tvirtualLinesN,0,virtualLines.length);\n\t\t\tvirtualLines = virtualLinesN;\n\t\t}\n\n\t\tvirtualLineCount = lineCount;\n\t\tfor(int i = 0; i < lineCount; i++)\n\t\t{\n\t\t\tvirtualLines[i] = i;\n\t\t\tlineInfo[i].visible = true;\n\t\t}\n\n\t\tfireFoldStructureChanged();\n\t}",
"void fireFoldChanged()\n {\n final boolean isFold = this.foldWay < 0;\n\n for(final FoldListener foldListener : this.listeners)\n {\n foldListener.foldChanged(this, isFold);\n }\n }",
"public boolean collapseFoldAt(int line)\n\t{\n\t\tint initialFoldLevel = getFoldLevel(line);\n\n\t\tint start = 0;\n\t\tint end = lineCount - 1;\n\n\t\tif(line != lineCount - 1\n\t\t\t&& getFoldLevel(line + 1) > initialFoldLevel)\n\t\t{\n\t\t\t// this line is the start of a fold\n\t\t\tstart = line + 1;\n\n\t\t\tfor(int i = line + 1; i < lineCount; i++)\n\t\t\t{\n\t\t\t\tif(getFoldLevel(i) <= initialFoldLevel)\n\t\t\t\t{\n\t\t\t\t\tend = i - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tboolean ok = false;\n\n\t\t\t// scan backwards looking for the start\n\t\t\tfor(int i = line - 1; i >= 0; i--)\n\t\t\t{\n\t\t\t\tif(getFoldLevel(i) < initialFoldLevel)\n\t\t\t\t{\n\t\t\t\t\tstart = i + 1;\n\t\t\t\t\tok = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!ok)\n\t\t\t{\n\t\t\t\t// no folds in buffer\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tfor(int i = line + 1; i < lineCount; i++)\n\t\t\t{\n\t\t\t\tif(getFoldLevel(i) < initialFoldLevel)\n\t\t\t\t{\n\t\t\t\t\tend = i - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint delta = (end - start + 1);\n\n\t\tfor(int i = start; i <= end; i++)\n\t\t{\n\t\t\tLineInfo info = lineInfo[i];\n\t\t\tif(info.visible)\n\t\t\t\tinfo.visible = false;\n\t\t\telse\n\t\t\t\tdelta--;\n\t\t}\n\n\t\tif(delta == 0)\n\t\t{\n\t\t\t// user probably pressed A+BACK_SPACE twice\n\t\t\treturn false;\n\t\t}\n\n\t\t//System.err.println(\"collapse from \" + start + \" to \" + end);\n\n\t\t// I forgot to do this at first and it took me ages to\n\t\t// figure out\n\t\tstart = physicalToVirtual(start);\n\n\t\t//System.err.println(\"virtualized start is \" + start);\n\n\t\t// update virtual -> physical map\n\t\tvirtualLineCount -= delta;\n\n\t\t//System.err.println(\"new virtual line count is \" + virtualLineCount);\n\n\t\tSystem.arraycopy(virtualLines,start + delta,virtualLines,start,\n\t\t\tvirtualLines.length - start - delta);\n\n\t\t//System.err.println(\"copy from \" + (start + delta)\n\t\t//\t+ \" to \" + start);\n\n\t\tfireFoldStructureChanged();\n\n\t\treturn true;\n\t}",
"public static <T, U> Section<T, U> fold(U initialValue,\n BiFunction<? super U, ? super T, ? extends U> foldFunction) {\n\n return next -> new Pipe<T>() {\n\n private final AtomicReference<U> accumulator = new AtomicReference<>(initialValue);\n\n @Override\n public void accept(T t) {\n accumulator.accumulateAndGet(null, (a, ignore) -> foldFunction.apply(a, t));\n }\n\n @Override\n public void flush() {\n if (accumulator.get() != null) next.accept(accumulator.get());\n }\n\n };\n }",
"private static RegexInfo fold(TranslatorUtils.IFold iFold, PublicRegexp[] subExpressions, RegexInfo zero) {\n if (subExpressions.length == 0) {\n return zero;\n } else if (subExpressions.length == 1) {\n return analyze(subExpressions[0]);\n }\n\n RegexInfo info = iFold.foldFunc(analyze(subExpressions[0]), analyze(subExpressions[1]));\n for (int i = 2; i < subExpressions.length; i++) {\n info = iFold.foldFunc(info, analyze(subExpressions[i]));\n }\n return info;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the empresa by id. | public void delete(Long id) {
log.debug("Request to delete Empresa : {}", id);
empresaRepository.deleteById(id);
} | [
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Empresas : {}\", id);\n empresasRepository.deleteById(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete Carrera_etapa : {}\", id);\n carrera_etapaRepository.delete(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete Epas : {}\", id);\n epasRepository.delete(id);\n }",
"public boolean deletePaciente(String id);",
"@DeleteMapping(\"/faixa-etarias/{id}\")\n @Timed\n public ResponseEntity<Void> deleteFaixaEtaria(@PathVariable Long id) {\n log.debug(\"REST request to delete FaixaEtaria : {}\", id);\n faixaEtariaService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/estabelecimentos/{id}\")\n public ResponseEntity<Void> deleteEstabelecimento(@PathVariable Long id) {\n log.debug(\"REST request to delete Estabelecimento : {}\", id);\n estabelecimentoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/etapas/{id}\")\n @Timed\n public ResponseEntity<Void> deleteEtapa(@PathVariable Long id) {\n log.debug(\"REST request to delete Etapa : {}\", id);\n etapaService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/{id}\")\n public void deleteVenda(@PathVariable(\"id\") Long id) {\n vendaRepository.deleteById(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete SolicitacaoExame : {}\", id);\n solicitacaoExameRepository.deleteById(id);\n solicitacaoExameSearchRepository.deleteById(id);\n }",
"@RequestMapping(value = \"/removerExercicio\", method = RequestMethod.GET, params = \"id\")\n\n public String delete(@RequestParam(\"id\") int id) {\n\n exercicioDao.remove(exercicioDao.findById(id));\n\n return \"redirect:/listExercicio\";\n\n }",
"@DeleteMapping(\"/acompanhamentos/{id}\")\n public ResponseEntity<Void> deleteAcompanhamento(@PathVariable Long id) {\n log.debug(\"REST request to delete Acompanhamento : {}\", id);\n acompanhamentoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete Etudiant : {}\", id);\n etudiantRepository.delete(id);\n }",
"@DeleteMapping(\"/autorizacaos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteAutorizacao(@PathVariable Long id) {\n log.debug(\"REST request to delete Autorizacao : {}\", id);\n autorizacaoRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void delete(String id) {\n log.debug(\"Request to delete Plataforma : {}\", id);\n plataformaRepository.deleteById(id);\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Sintoma : {}\", id);\n sintomaRepository.delete(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete FormaDeAgendamento : {}\", id);\n formaDeAgendamentoRepository.deleteById(id);\n formaDeAgendamentoSearchRepository.deleteById(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete Venda : {}\", id);\n vendaRepository.deleteById(id);\n }",
"@DeleteMapping(\"/fator-ajustes/{id}\")\n @Timed\n public ResponseEntity<Void> deleteFatorAjuste(@PathVariable Long id) {\n log.debug(\"REST request to delete FatorAjuste : {}\", id);\n fatorAjusteRepository.delete(id);\n fatorAjusteSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/mapeamentos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteMapeamento(@PathVariable Long id) {\n log.debug(\"REST request to delete Mapeamento : {}\", id);\n mapeamentoRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Execute the "getUserActivityList" function and store its results in a List | public List<uclm.esi.cardroid.data.oracle.UserActivity> getUserActivityList(
uclm.esi.cardroid.data.oracle.User usr, Current current) {
return resultSetToList(getUserActivity(usr, current),
uclm.esi.cardroid.data.oracle.UserActivity.class);
} | [
"com.google.ads.googleads.v0.common.UserListInfo getUserList();",
"java.util.List<SteamMsgGameNotifications.CGameNotifications_UserStatus> \n getUsersList();",
"com.google.ads.googleads.v6.resources.UserList getUserList();",
"com.google.ads.googleads.v1.resources.UserList getUserList();",
"java.util.List<com.chatsystem.msg.MsgUser.PbUser> \n getUsersList();",
"java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();",
"public List<Activity> getAllActivities();",
"public List<ExoSocialActivity> getUserActivities(Identity owner) throws ActivityStorageException;",
"public List<UserActivity> getUserActivities() {\n\t\treturn userActivities;\n\t}",
"public static List<Activity> getList() {\n\t\tsynchronized (activityList) {\n\t\t\treturn activityList;\n\t\t}\n\t}",
"public ArrayList<Activity> GetActivitysByUsername(String username){\n SQLiteDatabase db = this.getWritableDatabase();\n ArrayList<Activity> activities = new ArrayList<>();\n String query = \"SELECT act_no, username, act_name, time_set, act_desc, act_state FROM \"\n + TABLE_Activitys +\" where username = ?\";\n Cursor cursor = db.rawQuery(query,new String[] {username});\n while (cursor.moveToNext()){\n Activity activity = new Activity();\n activity.setAct_no(cursor.getString(cursor.getColumnIndex(KEY_ACT_NO)));\n activity.setUsername(cursor.getString(cursor.getColumnIndex(KEY_ACT_NO)));\n activity.setAct_name(cursor.getString(cursor.getColumnIndex(KEY_ACT_NAME)));\n activity.setTime_set(cursor.getString(cursor.getColumnIndex(KEY_TIME_SET)));\n activity.setAct_desc(cursor.getString(cursor.getColumnIndex(KEY_ACT_DESC)));\n if(Integer.parseInt(cursor.getString(cursor.getColumnIndex(KEY_ACT_STATE))) == 1){\n activity.setAct_state(true);\n }else{\n activity.setAct_state(false);\n }\n activities.add(activity);\n }\n return activities;\n }",
"synchronized public ArrayList<String> requestUserList() {\n ArrayList<String> userNames = new ArrayList<>();\n for (UserListeningThread u : networkListener.getUserListeningThreadList()) {\n if (u.getUserConnectionInfo().isLoggedIn()) {\n userNames.add(u.getUserConnectionInfo().getUserAccountInfo().getLoginName());\n }\n }\n return userNames;\n }",
"public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;",
"List<User> getSubmitUsers(String context);",
"@GET(\"pomodorotasks/activity\")\n Call<List<PomodoroTask>> pomodorotasksActivityGet(\n @Query(\"user\") String user\n );",
"public Collection<ApiDesignChange> listUserActivity(String user, int from, int to) throws StorageException;",
"List<User> getOnlineUsers();",
"List<CmUser> list() throws EpServiceException;",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the ability hotbar to display the current hero's abilities | public void updateAbilityHotbar() {
controller.getUIController().refreshAbilityHotbar();
} | [
"public void abilityOne() {\n ability(map.getCurrentTurnHero().getAbilities().get(0));\n }",
"void onAttackButtonClicked() {\n combatView.showWeaponList(Arrays.asList(GameManager.getPlayer().getEquippedWeapons()));\n }",
"public void updateHealth() {\n\t\tint counter = numberOfShips();\n\t\thealthBar.setValue(counter);\n\n\t}",
"void showAttackRange(){\n\t\tfor (Location l : attackRange) {\n\t\t\tmap.getGuiTile(l).setState(TileState.NONE);\n\t\t}\n\t\tattackRange = getAttackRange();\n\t\tLogf.trace(log,\"attack range %s of %s +\", attackRange ,weapon);\n\t\tfor (Location l : attackRange) {\n\t\t\tmap.getGuiTile(l).setState(TileState.ATTACK_RANGE);\n\t\t}\n\t\teditorMapPanel.repaintMap();\n\t}",
"public void selectPlayerAbility() {\n BasicWindow playerWindow = new BasicWindow(\"Select Abilities\");\n List<Ability> abilities = controller.getAbilities();\n ActionListBox list = new ActionListBox();\n abilities.forEach((ability) -> {\n String abilityDescription = \"\";\n if(ability.healthHealed > 0) {\n abilityDescription = ability.name + \" - +\" + ability.healthHealed + \"HP to player\";\n }\n else{\n abilityDescription = ability.name + \" - \" + ability.damage + \" damage to all enemies\";\n }\n list.addItem(abilityDescription, () -> {\n controller.castAbility(ability);\n enemyPhase = true;\n playerWindow.setVisible(false);\n renderArea();\n });\n });\n list.addItem(\"Cancel\", this::renderPlayerOptionsCombat);\n playerWindow.setComponent(list);\n gui.addWindowAndWait(playerWindow);\n }",
"public void drawAbilities() {\n // loop backwards to enable deleting ability effects while iterating\n for(int i = abilityActions.size() - 1; i >= 0; i--) {\n IAbilityAction action = abilityActions.get(i);\n\n // Calculate the time passed\n double time = (double)(System.nanoTime() - activationTimes.get(i)) / GameLoop.SECOND;\n Effect effect = abilityEffects.get(action.getClass());\n if(effect == null) continue;\n\n // Remove effect if duration has passed\n if(time > effect.getEffectDuration()){\n abilityActions.remove(i);\n activationTimes.remove(i);\n continue;\n }\n\n // Render\n effect.render(action, time);\n }\n }",
"void onShowAchievementsRequested();",
"public void showAchievements () {\n\t\tGPGAchievementController achController = new GPGAchievementController();\n\t\tachController.setAchievementDelegate(this);\n\t\tviewController.presentViewController(achController, true, null);\n\t}",
"static void editAbilities() {\r\n DEX = 0; STR = 0; DEF = 0; ATT = 0;\r\n\r\n for (int place = 0; place < 2; place++) {\r\n if (Interface.equipment[place] == 11)\r\n DEX += 2;\r\n if (Interface.equipment[place] == 12)\r\n DEX -= 5;\r\n if (Interface.equipment[place] == 13)\r\n STR += 2;\r\n if (Interface.equipment[place] == 14)\r\n STR -= 5;\r\n if (Interface.equipment[place] == 15)\r\n DEF += 2;\r\n if (Interface.equipment[place] == 16)\r\n DEF -= 5;\r\n }\r\n if (Interface.equipment[3] == 21)\r\n ATT += 1;\r\n if (Interface.equipment[3] == 22)\r\n ATT += 3;\r\n if (Interface.equipment[3] == 23)\r\n ATT += 5;\r\n if (Interface.equipment[2] == 31)\r\n DEF += 1;\r\n if (Interface.equipment[2] == 32)\r\n DEF += 3;\r\n if (Interface.equipment[2] == 33)\r\n DEF += 5;\r\n if (Interface.equipment[4] == 41)\r\n DEF += 1;\r\n if (Interface.equipment[4] == 42)\r\n DEF += 3;\r\n if (Interface.equipment[4] == 43)\r\n DEF += 5;\r\n }",
"public void achieve() {\n Optional<Level> level = LevelLoader.getInstance().getCurrentLevel();\n if(isAchieved() || (level.isPresent() && level.get().getId() > LevelLoader.DEFAULTLEVELAMOUNT))\n return;\n\n var gameScreen = GameScreen.getInstance();\n\n String tekst = gameScreen.getAchievement(id).getName();\n AchievementHandler.getInstance().achieve(tekst);\n var currentUser = gameScreen.getCurrentUser();\n\n GameScreen.getInstance().addAchievedAchievement(new nl.ictm2a4.javagame.services.achievements.Achievement(id, \"\", \"\"));\n currentUser.ifPresent(user -> new AchievementsService().addAchievementToUser(id, user.getId()));\n }",
"public static void doAchievements()\n\t{\n\t\tcopperAch = new Achievement(\"achievement.copperAch\", \"copperAch\", 8, 1, copper_ore, AchievementList.buildBetterPickaxe).registerStat();\n\t\tcopperPickAch = new Achievement(\"achievement.copperPickAch\", \"copperPickAch\", 9, 3, copper_pickaxe, copperAch).registerStat();\n\t\tcopperBucketAch = new Achievement(\"achievement.copperBucketAch\", \"copperBucketAch\", 9, 5, copper_bucket_water, copperAch).registerStat();\n\t\ttinAch = new Achievement(\"acheivement.tinAch\", \"tinAch\", 10, 1, tin_ore, AchievementList.buildBetterPickaxe).registerStat();\n\t\ttinChestplateAch = new Achievement(\"achievement.tinChestplateAch\", \"tinChestplateAch\", 11, 3, tin_chestplate, tinAch).registerStat();\n\t\ttinShearsAch = new Achievement(\"achievement.tinShearsAch\", \"tinShearsAch\", 11, 5, tin_shears, tinAch).registerStat();\n\t\tmythrilAch = new Achievement(\"achievement.mythrilAch\", \"mythrilAch\", 12, 1, mythril_ore, AchievementList.buildBetterPickaxe).registerStat();\n\t\tmythrilAxeAch = new Achievement(\"achievement.mythrilAxeAch\", \"mythrilAxeAch\", 13, 3, mythril_axe, mythrilAch).registerStat();\n\t\tmythrilBowAch = new Achievement(\"achievement.mythrilBowAch\", \"mythrilBowAch\", 13, 5, mythril_bow, mythrilAch).registerStat();\n\t\tadamantiumAch = new Achievement(\"achievement.adamantiumAch\", \"adamantiumAch\", 14, 1, adamantium_ore, AchievementList.buildBetterPickaxe).registerStat();\n\t\tadamantiumLegsAch = new Achievement(\"achievement.adamantiumLegsAch\", \"adamantiumLegsAch\", 15, 3, adamantium_leggings, adamantiumAch).registerStat();\n\t\tadamantiumShearsAch = new Achievement(\"achievement.adamantiumShearsAch\", \"adamantiumShearsAch\", 15, 5, adamantium_shears, adamantiumAch).registerStat();\n\t\tonyxAch = new Achievement(\"achievement.onyxAch\", \"onyxAch\", 16, 1, onyx_ore, AchievementList.buildBetterPickaxe).setSpecial().registerStat();\n\t\tonyxSwordAch = new Achievement(\"achievement.onyxSwordAch\", \"onyxSwordAch\", 17, 3, onyx_sword, onyxAch).registerStat();\n\t\tonyxBowAch = new Achievement(\"achievement.onyxBowAch\", \"onyxBowAch\", 17, 5, onyx_bow, onyxAch).registerStat();\n\t}",
"public void weaponAbility() {\n \tlogger.info(\"weapon abilities aren't implemented yet. Using slash ability\");\n \t//ability(map.getCurrentTurnHero().getWeaponAbility());\n \tability(new Slash());\n }",
"public void updateHealth() {\n int currentState = unit.getHealthBar().getState();\n if (currentState != internalState) {\n healthBarSprite.setDrawable(new SpriteDrawable(new Sprite(textureManager.getTexture(\"Health\"+currentState))));\n internalState = currentState;\n }\n }",
"public void update (Ability ability) {\n for (int contador = 0; contador < this.abilityArray.length; contador ++) {\n\n if (ability.getName().equals(abilityArray[contador].getName())) {\n abilityArray[contador] = ability;\n }\n }\n }",
"public void updateAbilityPointBars()\n\t{\n\t\tfor(AbilityPointsBar apb : this.apBars)\n\t\t{\n\t\t\tapb.updateAPBar();\n\t\t}\n\t\t\n\t\trevalidate();\n\t\trepaint();\n\t}",
"public void utilityAbility() {\n ability(map.getCurrentTurnHero().getUtilityAbility());\n }",
"public void updateHealth(){\r\n int newHP = baseHp * lvl - 20;\r\n setHp(newHP);\r\n }",
"protected void setAbilities() {\n abilities = new ArrayList<>();\n abilities.add(new Wait(this));\n abilities.add(new Slap(this));\n abilities.addAll(this.profession.getAbilities());\n refreshAbilities();\n }",
"public void humanPlayerUseAbility()\n {\n game.sendAction(new UseSpecialAbility(this, selectedCharacter));\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find if session data (more than just the header information) exists for a session with the provided Id. | public final boolean sessionDataExists(UUID sessionId) throws IOException {
synchronized (this.lock) {
ensureCacheLoaded();
return this.sessionCache.containsKey(sessionId);
}
} | [
"public final boolean sessionDataExists(UUID sessionId, UUID fileId) throws IOException {\n\t\tsynchronized (this.lock) {\n\t\t\tensureCacheLoaded();\n\n\t\t\tFile fragmentFileInfo = null;\n\n\t\t\tSessionFileInfo<File> sessionFileInfo;\n\t\t\tif (this.sessionCache.containsKey(sessionId)) {\n\t\t\t\tsessionFileInfo = this.sessionCache.get(sessionId);\n\t\t\t\tfragmentFileInfo = findFragment(sessionFileInfo, fileId);\n\t\t\t}\n\n\t\t\treturn (fragmentFileInfo != null);\n\t\t}\n\t}",
"public final boolean sessionExists(UUID sessionId) throws IOException {\n\t\tsynchronized (this.lock) {\n\t\t\tensureCacheLoaded();\n\t\t\treturn this.sessionCache.containsKey(sessionId);\n\t\t}\n\t}",
"public boolean exists(String sessionKey) {\n return sessions.keySet().contains(sessionKey);\n }",
"@Override\n public Boolean sessionExists(@UUID String id) {\n return this.getSessionById(id) != null;\n }",
"public boolean doesSessionExist(SessionID sessionID);",
"boolean hasSession(String tcSessionID);",
"public boolean serviceExists(Session session, ServiceId id) {\n return find(session, id) != null;\n }",
"public boolean hasSession(){\r\n return httpSessionId != null;\r\n }",
"private boolean sessionExists()\n\t{\n\t\tHttpSession session = getThreadLocalRequest().getSession(false);\n\t\treturn(session != null);\n\t\t\n\t}",
"public boolean exists(String id);",
"public boolean isExist(String ID){\n\t\tboolean ishere = false;\n\t\tfor(Game g: gamelist){\n\t\t\tif(g.gameid.equals(ID)){\n\t\t\t\tishere = true;\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn ishere;\t\n\t\t\n\t}",
"public Boolean hasSession() {\n return this.session.size() > 0;\n }",
"InternalSession findSession(String id);",
"private boolean containRoom(UUID id)\n\t{\n\t\tfor(Room r : sessionCreatedRooms)\n\t\t{\n\t\t\tif(r.specificID.toString().equals(id.toString()))\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean checkIfChatIdExists(long chatId) {\n\n String sqlStatment = \"SELECT ChatID FROM Chat WHERE ChatID=@chatId\";\n Statement statement = Statement.newBuilder(sqlStatment).bind(\"chatId\").to(chatId).build();\n List<Chat> resultSet = spannerTemplate.query(Chat.class, statement, new SpannerQueryOptions().setAllowPartialRead(true));\n \n return !resultSet.isEmpty(); \n }",
"public boolean isTransactionExist(String sID){\n\t\treturn hmTransaction.containsKey(sID);\n\t}",
"public boolean CheckItemId(int Id){\r\n\t\tPreparedStatement st;\r\n\t\t\ttry {\r\n\t\t\t\tst = connection.prepareStatement(\"SELECT * from item WHERE id = ?\");\r\n\t\t\t\t\t st.setInt(1, Id);\r\n\t\t\t\t ResultSet rs = st.executeQuery(); \r\n\t\t\t\t // if this id exist returns true else returns false \r\n\t\t\t\t if ( rs.next() ) { \t\r\n\t\t\t\t \t return false;\r\n\t\t\t\t \t}\r\n\t\t\t\t else \r\n\t\t\t\t \t return true;\r\n\t\t\t\t}\r\n\t\t\t\tcatch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t}",
"public boolean exists(long id);",
"boolean exists(Integer id);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method open new DataActivity. | public void loadDataActivity (View v) {
Intent intent = new Intent(MainActivity.this, DataActivity.class);
startActivity(intent);
} | [
"private void startViewData() {\n startActivity(new Intent(this, ViewDataActivity.class));\n }",
"private void createActivityData() {\n\t\tActivity dtoActivity = new Activity();\r\n\t\tdtoActivity.setActivityCode(1L);\r\n\t\tdtoActivity.setData(\"someString\", \"string value\");\r\n\t\tdtoActivity.setData(\"someLong\", 1000L);\r\n\t\tdtoActivity.setOwner(new Principal(\"parvezshah\"));\r\n\r\n\t\tatrs.createActivity(dtoActivity);\r\n\r\n\t}",
"public void openNewActivity(){\r\n Intent intent = new Intent(this, MainActivity.class);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\r\n startActivity(intent);\r\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, ListDataActivity.class);\n startActivity(intent);\n }",
"public boolean openCreateGoal(){\n Intent intent = new Intent(this, GoalNewActivity.class);\n startActivity(intent);\n return true;\n }",
"public AzureDataExplorerCommandActivity() {\n }",
"private void openActivity() {\n mManager.cancelAll();\n simpleNotificationWithActivity();\n }",
"private void showCreateWalkActivity() {\n Intent intent = new Intent(this, ActivityNewWalk.class);\n this.startActivityForResult(intent, CREATE_WALK_REQUEST);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, ActivityOfflineData.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n\n Intent i = new Intent(MainActivity.this, LearnActivuty.class);\n i.putExtra(\"data1\", tvData1.getText().toString());\n\n\n\n /**STEP B\n *\n * memulai Aktifitas perintah yang dibuat di bagian A\n * yaitu \"i\"\n * dengan method startActivity()\n */\n\n startActivity(i);\n\n }",
"Activity createActivity();",
"public void open_dispute_activity(View v) {\n mJobs job = app.db.mJobsDao().get_job(_job_id);\n Intent dis = new Intent(ViewJobActivity.this, DisputeActivity.class);\n dis.putExtra(\"_job_id\", _job_id);\n dis.putExtra(\"artisan_app_id\", job.artisan_app_id);\n startActivity(dis);\n finish();\n }",
"private void createNewStory() {\n\n Intent intent = new Intent(this, StoryModeViewActivity.class);\n startActivity(intent);\n\n }",
"public static ActivityBuilder newActivity() {\r\n return new ActivityBuilder();\r\n }",
"private void startCreateLog() {\r\n\t\tIntent i = new Intent(this, CreateListView.class);\r\n startActivityForResult(i, CREATE_LOG);\r\n\t}",
"private void makeActivity() {\n if (checkActivity()) {\n return;\n }\n\n String name = nameField.getText();\n int duration = Integer.parseInt(durationField.getText());\n int hour = Integer.parseInt(hourInput.getText());\n int minute = Integer.parseInt(minuteInput.getText());\n\n Time time = new Time(hour,minute);\n\n Activity activity = new Activity(name, time, duration);\n\n for (Date d: datesToAdd) {\n activity.addDate(d);\n }\n\n for (Note n: notesToAdd) {\n activity.addNote(n);\n }\n\n selectedSchedule.addActivity(activity);\n\n resetPanel();\n graphicalOrganizationApp.reloadCalendar();\n }",
"public void openAddContactActivity() {\n Intent intent = new Intent(this, addContactActivity.class);\n this.meDebe.save();\n startActivity(intent);\n }",
"public void openNewActivity(Class c) {\n Intent intentNewActivity = new Intent(this, c);\n startActivity(intentNewActivity);\n }",
"void goToCreateNewMeeting () {\n\t\tIntent i = new Intent(this, CreateMeetingActivity.class);\n\t\ti.putExtra(\"p3.myapplication:module_name_list\", module);\n\t\tstartActivity(i);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Click the 'Local Disk (C:)' button in File Explorer | public void clickLocalDiskButton() {
localDiskButton.click();
} | [
"public void clickMinimizeFileExplorerButton() {\n\t\tminimizeFileExplorerButton.click();\n\t}",
"public void openFileExplorer() {\n\t\tfileExplorerTaskbarButton.click();\n\t}",
"public void clickTreeViewButton() {\n\t\tfilePicker.stickyButton(locTreeBtn);\n\t}",
"public void clickOnFile(String file) {\n clickOnFile(file, 1);\n }",
"public void clickCreateFolderButton() {\n\t\tfilePicker.fileManButton(locCreateFolderButton);\n\t}",
"private void selectFile() {\r\n\t\tJButton open = new JButton();\r\n\t\tFile abs = new File(\".\");\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\tfc.setCurrentDirectory(abs);\r\n\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\tif(fc.showOpenDialog(open) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tinputFile = fc.getSelectedFile();\r\n\t\t}\t\r\n\t}",
"public void browse() {\n btBrowse().push();\n }",
"public void clickMainMenuFileDataExtraction() {\r\n\t\tpageUtils.clickElement(driver, lnkFileDataExtraction);\r\n\t}",
"private void handleWorkspaceDirBrowseButtonSelected() {\n \t\tIContainer currentContainer = getContainer();\n \t\tif (currentContainer == null) {\n \t\t\tcurrentContainer = ResourcesPlugin.getWorkspace().getRoot();\n \t\t}// end if\n \t\tContainerSelectionDialog dialog = new ContainerSelectionDialog(\n \t\t\t\tgetShell(), currentContainer, false,\n \t\t\t\tScriptLaunchMessages.WorkingDirectoryBlock_4);\n \t\tdialog.showClosedProjects(false);\n \t\tdialog.open();\n \t\tObject[] results = dialog.getResult();\n \t\tif ((results != null) && (results.length > 0)\n \t\t\t\t&& (results[0] instanceof IPath)) {\n \t\t\tIPath path = (IPath) results[0];\n \t\t\tString containerName = path.makeRelative().toString();\n \t\t\tsetOtherWorkingDirectoryText(\"${workspace_loc:\" + containerName + \"}\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}// end if\n \t}",
"public void clickAdminMenuTranslationsSubMenuSearchScanFiles() {\n try {\n this.webDriverWait.until(ExpectedConditions.visibilityOf(adminMenuTranslationsSubMenuSearchScanFiles));\n adminMenuTranslationsSubMenuSearchScanFiles.click();\n System.out.println(adminMenuTranslationsSubMenuSearchScanFiles + \" was clicked\");\n\n } catch (Exception e) {\n System.out.println(\"Can not work with Button \" + this.adminMenuTranslationsSubMenuSearchScanFiles);\n }\n }",
"public void clickOnHardCopyButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnHardCopyButton.click();\n\n \t}",
"void displayDisk();",
"private void handleWorkspaceDirBrowseButtonSelected() {\r\n\t IContainer currentContainer= getContainer();\r\n\t\tif (currentContainer == null) {\r\n\t\t currentContainer = ResourcesPlugin.getWorkspace().getRoot();\r\n\t\t}//end if \r\n\t\tContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), currentContainer, false,\t\"Select a &workspace relative working directory:\"); \r\n\t\tdialog.showClosedProjects(false);\r\n\t\tdialog.open();\r\n\t\tObject[] results = dialog.getResult();\t\t\r\n\t\tif ((results != null) && (results.length > 0) && (results[0] instanceof IPath)) {\r\n\t\t\tIPath path = (IPath)results[0];\r\n\t\t\tString containerName = path.makeRelative().toString();\r\n\t\t\tsetOtherWorkingDirectoryText(\"${workspace_loc:\" + containerName + \"}\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t}//end if\t\t\t\r\n\t}",
"public void showFinderDialog() { window.showFinderDialog(); }",
"private void openPathButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_openPathButtonActionPerformed\n\tFile savePath = PlatypusGUI.getInstance().getLastSavePath();\n\tif (savePath.isDirectory()) {\n\t try {\n\t\tDesktop.getDesktop().open(savePath);\n\t } catch (IOException ex) {\n\t\tex.printStackTrace();\n\t }\n\t}\n }",
"private void browseToRoot() {\n\t\tbrowseTo(new File(\"/sdcard/\"));\n\t}",
"public void clickIconViewButton() {\n\t\tfilePicker.stickyButton(locIconBtn);\n\t}",
"public void doClickFileNew() {\n JMenuItem item = _fileMenu.getItem(0); // this is the new file action command\n item.doClick();\n }",
"default public void clickLeft() {\n\t\tremoteControlAction(RemoteControlKeyword.LEFT);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fetchData method to retrieve test data for specified method | @DataProvider(name = "json")
public static Object[][] fetchData(Method method) throws Exception {
Object rowID, description;
Object[][] result;
testCaseName = method.getName();
List<JSONObject> testDataList = new ArrayList<>();
JSONArray testData = (JSONArray) extractDataJSON(dataFile).get(method.getName());
for (Object testDatum : testData) testDataList.add((JSONObject) testDatum);
// include Filter
if (System.getProperty("includePattern") != null) {
String include = System.getProperty("includePattern");
List<JSONObject> newList = new ArrayList<>();
String[] tests = include.split(",", -1);
for (String getTest : tests) {
for (JSONObject jsonObject : testDataList) {
if (jsonObject.toString().contains(getTest))
newList.add(jsonObject);
}
}
// reassign testRows after filtering tests
testDataList = newList;
}
// exclude Filter
if (System.getProperty("excludePattern") != null) {
String exclude = System.getProperty("excludePattern");
String[] tests = exclude.split(",", -1);
// start at end of list and work backwards so index stays in sync
for (String getTest : tests)
for (int i = testDataList.size() - 1; i >= 0; i--)
if (testDataList.get(i).toString().contains(getTest)) testDataList.remove(testDataList.get(i));
}
// create object for data provider to return
try {
result = new Object[testDataList.size()][testDataList.get(0).size()];
for (int i = 0; i < testDataList.size(); i++) {
rowID = testDataList.get(i).get("rowID");
description = testDataList.get(i).get("description");
result[i] = new Object[]{rowID, description, testDataList.get(i)};
}
} catch (IndexOutOfBoundsException ie) {
result = new Object[0][0];
}
return result;
} | [
"@DataProvider(name=\"testData\")\n\tpublic static Object[][] supplyDataForIterations(Method m) throws IOException{\n\t\treturn getDataForDataprovider(ReadPropertyFile.get(\"TestDataLocation\"),ReadPropertyFile.get(\"TestDataSheet\"),m.getName());\n\t}",
"@Test\n public void testDownloadDataset() {\n }",
"@DataProvider(name = \"exploretestdata\")\n\t\tpublic Object[][] getDataSecond() {\n\t\t\tProviderData provideData = new ProviderData(FileConstant.exploretestdata);\n\t\t\tObject[][] getData = provideData.provideData();\n\t\t\treturn getData;\n\t\t}",
"@DataProvider(name=\"Unverified test data\")\n\t\n\tpublic String[][] getTestData()\n\t {\n\t\tlog.info(\"reading exceldata\");\n\t\tString[][] testRecords=getData(\"Other.xlsx\", \"Unverified\");\n\t\treturn testRecords;\n\t }",
"@Test\r\n public void testGetData() throws Exception {\r\n System.out.println(\"getData\");\r\n String urlstr = \"https://api.openweathermap.org/data/2.5/weather?id=1642911&APPID=3506dfa8bbebf7709e6fba904a68559a\";\r\n String expResult = currTest.toString();\r\n String result = \"[\" + instance.getData(urlstr) + \"]\";\r\n System.out.println(expResult);\r\n System.out.println(result);\r\n assertEquals(expResult, result);\r\n }",
"private Method getTestMethod() {\n return getProfileApiMethod(\"getMe\");\n }",
"@DataProvider(name = \"provideDataForTestDoGet\")\n public Object[][] provideDataForTestDoGet() {\n\n return new Object[][]{\n {CLIENT_ID_VALUE, \"\", \"playground2\"},\n {\" \", \"\", \"Invalid\"},\n {INVALID_CLIENT_ID, \"\", \"Invalid\"},\n {CLIENT_ID_WITH_NO_CALLBACK_URL, \"\", \"Invalid\"},\n {CLIENT_ID_WITH_INVALID_REGEX_CALLBACK_URL, \"\", \"Invalid\"},\n {CLIENT_ID_WITH_INVALID_REGEX_CALLBACK_URL, CALLBACK_URL, \"Invalid\"},\n {CLIENT_ID_WITH_VALID_REGEX_CALLBACK_URL, CALLBACK_URL, \"playground2\"}\n };\n }",
"@When(\"I downloaded weather and Temp data\")\r\n public void fetchWeatherAndTempData(){\r\n // pageFactory.getInternetConnectionPage().clickOnFetchDataButton();\r\n // pageFactory.getDataCollectionPage().isDataCollectedStatusDisplayed();\r\n // pageFactory.getDataCollectionPage().isDataCollectedStatusDescDisplayed();\r\n // pageFactory.getDataCollectionPage().clickOnViewResultsButton();\r\n }",
"public TestData testData()\n {\n return testData;\n }",
"@Test\n public void setAndGetData() {\n driverWrapper.setData(\"key1\", \"aaa\");\n driverWrapper.setData(\"key2\", \"bbb\");\n driverWrapper.setData(\"key3\", \"ccc\");\n\n assertEquals(\"Wrong value returned\", \"aaa\", driverWrapper.getData(\"key1\"));\n assertEquals(\"Wrong value returned\", \"bbb\", driverWrapper.getData(\"key2\"));\n assertEquals(\"Wrong value returned\", \"ccc\", driverWrapper.getData(\"key3\"));\n }",
"@Test\n public void specificDataTest() {\n // TODO: test specificData\n }",
"public ArrayList<String> getData(String testcaseName) throws IOException \n\t{\n\t\t/* Identify Testcases column by scanning the entire list 1st row\n\t\t * Once the column is identified, scan the entire testCases column to identify the purchase testCases row\n\t\t * After grabbing the purchase testCases row, pull all the data of that row and feed it into test */\n\t\t\n\t\t// fileInputStream argument\n\t\tArrayList<String> a = new ArrayList<String>();\n\t\tFileInputStream fis = new FileInputStream(\"/Users/khuedangmai/Desktop/Eclipse.app/Contents/MacOS/RestAssuredAutomation/ExcelDrive/demoData.xlsx\");\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(fis);\n\t\t\n\t\tint sheets = workbook.getNumberOfSheets();\n\t\tfor (int i = 0; i < sheets; i++)\n\t\t{\n\t\t\tif (workbook.getSheetName(i).equalsIgnoreCase(\"testData\"))\n\t\t\t{\n\t\t\t\tXSSFSheet sheet = workbook.getSheetAt(i);\n\t\t\t\t// Identify Testcases column by scanning the entire list 1st row\n\t\t\t\tIterator<Row> rows = sheet.iterator(); // sheet is a collections of rows\n\t\t\t\tRow firstRow = rows.next();\n\t\t\t\tIterator<Cell> cells = firstRow.cellIterator(); // row is a collections of cells\n\t\t\t\tint k = 0;\n\t\t\t\tint column = 0;\n\t\t\t\t\n\t\t\t\twhile (cells.hasNext())\n\t\t\t\t{\n\t\t\t\t\tCell value = cells.next();\n\t\t\t\t\tif (value.getStringCellValue().equalsIgnoreCase(\"testCases\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t// the desired column\n\t\t\t\t\t\tcolumn = k;\n\t\t\t\t\t}\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(column);\n\t\t\t\t\n\t\t\t\t// Scan the entire testCases column to identify the purchase testCases row\n\t\t\t\twhile (rows.hasNext())\n\t\t\t\t{\n\t\t\t\t\tRow nextRow = rows.next();\n\t\t\t\t\tif (nextRow.getCell(column).getStringCellValue().equalsIgnoreCase(testcaseName))\n\t\t\t\t\t{\n\t\t\t\t\t\t// pull all the data of that row and feed it into test\n\t\t\t\t\t\tIterator<Cell> cellValues = nextRow.cellIterator();\n\t\t\t\t\t\twhile (cellValues.hasNext())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCell cell = cellValues.next();\n\t\t\t\t\t\t\tif (cell.getCellType() == CellType.STRING)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ta.add(cell.getStringCellValue());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ta.add(NumberToTextConverter.toText(cell.getNumericCellValue()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\treturn a;\n\t}",
"public void readTestData() {\n TestData testData = new TestData();\n data = testData.readTestDataProperties();\n }",
"public void testGetBasedata() {\n }",
"void generateMockData();",
"@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }",
"@Override\n protected void doLoadTestData() {\n }",
"@Test\n public void testFetchAll() throws Exception {\n students.fetchAll();\n }",
"@Parameters\n public static List<Object[]> data() {\n return TEST_DATA;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
WHEN: all contributor types are fetched | @Test
public void getAllContributorTypesReturnsAllExistingTypesWithNames() {
List<ContributorType> results = contributorDao.getAllContributorTypes();
// THEN: all expected types are returned
assertEquals(7, results.size());
// AND: all contain a name
results.forEach(result -> assertNotNull(result.getName()));
} | [
"@Test\r\n\tpublic void testGetContributors() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertTrue(cm.addContributor(\"Anna\"));\r\n\t\tObservableList<Contributor> con = cm.getContributors();\r\n\t\tfor(Contributor c:con) {\r\n\t\t\tassertTrue(cm.getContributors().contains(c));\r\n\t\t}\r\n\t}",
"public Contributor findByNameType(Long personNameId, Long contributorTypeId);",
"List<Contributor> retrieveContributorsOfRepository(String ownerId, String repositoryName);",
"List<Person> getContributors();",
"ImmutableList<SchemaOrgType> getContributorList();",
"public void getReposContributors(){\n SharedPreferences sharedPreferences = getActivity().getApplication().getSharedPreferences(\"data\", MODE_PRIVATE);\n String userLogin = sharedPreferences.getString(\"login\", \"\");\n String repoId = sharedPreferences.getString(\"repoId\", \"\");\n collaboratorsViewModel.searchReposCollaborators(userLogin,repoId);\n }",
"public List<Contributor> getAllForName(Long personNameId);",
"@Test \n\tpublic void testGetSpecifiedContributors() throws Exception {\n\t\tBBBRequest request = BBBRequestFactory.getInstance().createGetContributorsRequest(CONTRIBUTOR_IDS);\n\t\tString expectedUrl = AccountHelper.constructUrl(BBBRequestFactory.getInstance().getHostCatalogue(), PATH_CATALOGUE_CONTRIBUTORS);\n\t\texpectedUrl = AccountHelper.appendParameters(expectedUrl, PARAM_ID, (Object[])CONTRIBUTOR_IDS);\n\t\tassertEquals(expectedUrl, request.getUrl());\n\t\t\n\t\tBBBResponse response = BBBRequestManager.getInstance().executeRequestSynchronously(request);\n\t\tcontributorListResponseHandler.receivedResponse(response);\t\t\n\t}",
"java.util.List<String> getOtherContributorsList();",
"@Override\n public List<KidneyDonor> getDonorsWithBloodType( int type )\n {\n\n List<KidneyDonor> results = new LinkedList<KidneyDonor>(); \n if(donorByBloodT.containsKey(type)){\n results = donorByBloodT.get(type);\n }\n\n return results; \n }",
"public interface Contributor {\n\t\t/**\n\t\t * Gets the type attribute of the Contributor object\n\t\t *\n\t\t * @return The type value\n\t\t */\n\t\tpublic String getType();\n\t}",
"List<Contributor> listContributors(final String publicationId);",
"@Test \n\tpublic void testGetContributor() throws Exception {\n\t\tBBBRequest request = BBBRequestFactory.getInstance().createGetContributorRequest(CONTRIBUTOR_ID);\n\t\tString expectedUrl = AccountHelper.constructUrl(BBBRequestFactory.getInstance().getHostCatalogue(), PATH_CATALOGUE_CONTRIBUTOR);\n\t\texpectedUrl = String.format(expectedUrl, CONTRIBUTOR_ID);\n\t\tassertEquals(expectedUrl, request.getUrl());\n\t\t\n\t\tBBBResponse response = BBBRequestManager.getInstance().executeRequestSynchronously(request);\n\t\tcontributorResponseHandler.receivedResponse(response);\t\t\n\t}",
"public Contributor findByContributorid(Integer contributorid);",
"@Test\r\n\tpublic void testAddContributorTwice() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.isEmpty());\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertTrue(cm.addContributor(\"Anna\"));\r\n\t\tassertTrue(cm.addContributor(\"Max\"));\r\n\t\tassertFalse(cm.addContributor(\"Max\"));\r\n\t}",
"public ReactorResult<A_0> getAllbiboListofcontributors_as() {\n\t\treturn Base.getAll_as(this.model, this.getResource(), LISTOFCONTRIBUTORS, A_0.class);\n\t}",
"@Test\r\n\tpublic void testAddContributor() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.isEmpty());\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertFalse(cm.isEmpty());\r\n\t\tassertFalse(cm.addContributor(\"Chris\"));\r\n\t}",
"public void testAssignBlogContributors() {\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1\");\n assertEquals(\"user1\", rootBlog.getProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY));\n assertEquals(\"user1\", rootBlog.getBlogContributors());\n\n Collection users = rootBlog.getUsersInRole(Constants.BLOG_CONTRIBUTOR_ROLE);\n assertEquals(1, users.size());\n assertTrue(users.contains(\"user1\"));\n\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1,user2\");\n assertEquals(\"user1,user2\", rootBlog.getProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY));\n assertEquals(\"user1,user2\", rootBlog.getBlogContributors());\n\n users = rootBlog.getUsersInRole(Constants.BLOG_CONTRIBUTOR_ROLE);\n assertEquals(2, users.size());\n assertTrue(users.contains(\"user1\"));\n assertTrue(users.contains(\"user2\"));\n }",
"@Test\n public void testGetRelationshipsByOrg() {\n List<HeroToOrganizationRelation> fromDao = dao.getRelationshipsByOrg(org.getId());\n assertTrue(fromDao.size() == 1);\n\n List<HeroToOrganizationRelation> fromDao2 = dao.getRelationshipsByOrg(0);\n assertTrue(dao.getRelationshipsByHero(0).size() == 0);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Searches for a protein with the given Uniprot ID. | ProteinCurrent searchByID(String uniprotID); | [
"ProteinCurrent searchByName(String proteinName);",
"ProteinCurrent searchByPDB(String pdbID);",
"private static void search(String sequenceIDP) throws IOException {\r\n Handle[] searchSequence = hashTable.search(sequenceIDP);\r\n\r\n // If the given sequenceID is not found in the hash table\r\n if (searchSequence == null) {\r\n System.out.println(\"SequenceID \" + sequenceIDP + \" not found\");\r\n return;\r\n }\r\n\r\n // Get the sequence\r\n String entry = memManager.getStringSequence(searchSequence[1]);\r\n\r\n System.out.println(\"Sequence Found: \" + entry);\r\n }",
"List<ProteinCurrent> searchByLikeID(String idPrefix);",
"List<ProteinCurrent> searchByIDs(List<String> uniprotIDs);",
"public Patient searchPatient(String id) {\n for (Patient pat : P) {\n if (pat.retID().equals(id)) {\n return pat;\n }\n }\n return null;\n }",
"@Override\n\tpublic void searchByID() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's ID\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"List<ProteinCurrent> searchByGeneID(String ensemblID);",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"private static String FindEntry(Pathway P, String id){\n for(Kegg_Entry K : P.getEntryL()){\n \t if(K.getID().equals(id)) \n return K.getName();\n }\n return \"error\";\n\t }",
"public static ProductTransactionDetail searchID(String pID, String ptID) throws SQLException, ClassNotFoundException {\n\n //Declare SELECT statement\n String searchStmt = \"SELECT id FROM Producttransactiondetail \" +\n \"WHERE Products_id = '\" + pID + \"' AND ProductTransaction_id = '\" + ptID +\"'\";\n\n //Execute query\n try {\n\n //Get ResultSet from dbExecuteQuery method\n ResultSet rsSearch = DBUtil.dbExecuteQuery(searchStmt);\n\n ProductTransactionDetail ptd = getIDFromResultSet(rsSearch);\n\n return ptd;\n\n } catch (SQLException ex) {\n System.out.println(\"Error occurred while SELECT operation: \" + ex);\n\n //throws exceptions\n throw ex;\n }\n }",
"List<ProteinCurrent> searchByPartialID(String idFragment);",
"public void searchingByIDnumber (String IDnumber);",
"ProteinCurrent getProteinWithGenes(String uniprotID);",
"SpectrumProtein searchSpectrumProtein(Spectrum spectrum, ProteinCurrent protein);",
"private void retrieveProtein(String id) {\n\t\tid = id.toUpperCase();\n\n\t\tcontroller.setProgressStatus(\"Loading...\");\n\n\t\tworld = new Xform();\n\t\tdownloader = new PDBDownloader(id);\n\n\t\ttry {\n\t\t\tif (!(new File(id + \".pdb\").exists())) {\n\t\t\t\t// Controller.setProgressStatus(\"Downloading...\");\n\t\t\t\tdownloader.download(id);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (new File(id + \".pdb\").exists()) {\n\t\t\tcontroller.setProgressStatus(\"Parsing file...\");\n\t\t\tParser myParse = new Parser(id + \".pdb\");\n\n\t\t\tcontroller.setProgressStatus(\"Rendering...\");\n\t\t\tModel model = myParse.getModel();\n\n\t\t\tworld.getChildren().add(model.getNode());\n\n\t\t\tMain.setModel(model);\n\n\t\t\tProteinScene protScene = new ProteinScene(model);\n\n\t\t\tcontroller.setSubScene(protScene);\n\t\t\tcontroller.setProgressStatus(\"\");\n\t\t\t\n\t\t\tcontroller.setMetaInformation(model.getMetaInfo());\n\t\t}\n\t}",
"public Item searchID(String ID) {\n Item foundItem = null;\n for (Item item : this) {\n if (item.getItemId().equals(ID)) {\n foundItem = item;\n break;\n }\n }\n return foundItem;\n }",
"ProteinCurrent getInitializedProtein(String uniprotID);",
"public void getPatientByPID() {\n System.out.println(\"\\nPlease inform patient PID:\");\n int pidToFetch = this.validate.checkForInt(in);\n try{\n int patientPosition = this.patientList.getPositionByPID(pidToFetch);\n System.out.println(\"\\nPatient current position is: \" + patientPosition);\n }catch(PatientNotFoundException e){\n System.out.println(\"\\n*** \" + e.getMessage() + \" ***\");\n this.getPatientByPID();\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds the list of new values (1 for the resolved state and 0 otherwise) under request | public List<Float> getNewValues() {
//need to use this, because we cannot retrieve what was the number of states of this question locally...
StatePair statePair = getResolvedQuestions().get(questionId);
if (statePair == null) {
return null;
}
List<Float> ret = new ArrayList<Float>(statePair.getStatesSize());
for (int i = 0; i < statePair.getStatesSize(); i++) {
// add 1 if it is the resolved state. 0 otherwise.
ret.add((i == statePair.getResolvedState().intValue())?1f:0f);
}
return ret;
} | [
"java.util.List<java.lang.Integer> getRequestedValuesList();",
"private BinStatusUpdate buildNewStatus() {\n return BinStatusUpdate.newBuilder()\n .setAmount(StuffAmount.newBuilder().setStuffAmount(bin.getStuffAmount()).build())\n .setStuff(Stuff.newBuilder().setStuffName(bin.getStuffName()).build())\n .setMaxAmount(bin.MAX_AMOUNT)\n .build();\n }",
"List<Lookup> getServiceRequestStatuses();",
"private List<ObjectRef> buildItems() {\r\n\t\tfinal List<ObjectRef> items = new ArrayList<ObjectRef>();\r\n\t\tfinal ObjectRef item1 = new ObjectRef(BigInteger.valueOf(1), \"new_value_1\");\r\n\t\tfinal ObjectRef item2 = new ObjectRef(BigInteger.valueOf(3), \"new_value_3\");\r\n\t\titems.add(item1);\r\n\t\titems.add(item2);\r\n\r\n\t\treturn items;\r\n\t}",
"@Override\n\tpublic int getRequestState() {\n\t\treturn _tempCrewList.getRequestState();\n\t}",
"protected void generateStateBasedOnValueAndThresholds()\n\t{\n\t\t\n\t\tif (name.equals(AMSupport.AVG_RESP_TIME) || name.equals(AMSupport.REQ_PER_MIN))\n\t\t{\n\t\t\tstate = AMSupport.OK_STATE;\n\t\t\tstates.add(state);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// other metric types should look at the error and warning thresholds\n\t\tif (value >= errorThreshold)\n\t\t{\n\t\t\tstate = AMSupport.ERROR_STATE;\n\t\t}\n\t\telse if (value >= warningThreshold)\n\t\t{\n\t\t\tstate = AMSupport.WARNING_STATE;\n\t\t}\n\t\telse {\n\t\t\tstate = AMSupport.OK_STATE;\n\t\t}\n\t\tstates.add(state);\n\t}",
"public List createRequestList() {\n List requestList = new LinkedList();\n if (variables.size() > 0) {\n Iterator it = variables.iterator();\n while (it.hasNext()) {\n String keyValue = it.next().toString();\n requestList.add(new SetRequest(keyValue));\n }\n }\n if (isNoHistoryLogging()) {\n requestList.add(new GlobalOptionRequest(\"-l\")); //NOI18N\n }\n if (isDoNoChanges()) {\n requestList.add(new GlobalOptionRequest(\"-n\")); //NOI18N\n }\n if (isModeratelyQuiet()) {\n requestList.add(new GlobalOptionRequest(\"-q\")); //NOI18N\n }\n if (isVeryQuiet()) {\n requestList.add(new GlobalOptionRequest(\"-Q\")); //NOI18N\n }\n if (isTraceExecution()) {\n requestList.add(new GlobalOptionRequest(\"-t\")); //NOI18N\n }\n return requestList;\n }",
"@RequestMapping(value=\"/statuses\", method=RequestMethod.GET, produces={MediaType.APPLICATION_JSON_VALUE})\n\tpublic @ResponseBody List<RequestStatus> getRequestStatuses() {\t\n\t\treturn Arrays.asList(RequestStatus.values());\n\t}",
"public void updateState(){\n\t\t\n\t\t\n\t\t\n\t\tArrayList<String> toAdd = new ArrayList<String>();\n\t\tArrayList<String> toRemove = new ArrayList<String>();\n\n\t\tthis.lastAdded.clear();\n\t\tthis.lastFulfilled.clear();\n\t\tthis.lastViolated.clear();\n\t\t\n\t\ttry {\n\n\t\t\tdo{\n\t\t\t\ttoAdd.clear();\n\t\t\t\ttoRemove.clear();\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iActive = reasoner.findall(\"xactive(A,Fa,Fm,Fd,Fr,Timeout)¬(as(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iActive.hasNext()){\n\t\t\t\t\tUnifier un = iActive.next();\n\t\t\t\t\ttoAdd.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastAdded.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iViol = reasoner.findall(\"xviol(A,Fa,Fm,Fd,Fr,Timeout)¬(vs(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iViol.hasNext()){\n\t\t\t\t\tUnifier un = iViol.next();\n\t\t\t\t\ttoAdd.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastViolated.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactF = reasoner.findall(\"xdeact_f(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactF.hasNext()){\n\t\t\t\t\tUnifier un = iDeactF.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString()+\",\"+un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactR = reasoner.findall(\"xdeact_r(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactR.hasNext()){\n\t\t\t\t\tUnifier un = iDeactR.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iFailed = reasoner.findall(\"xfailed(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iFailed.hasNext()){\n\t\t\t\t\tUnifier un = iFailed.next();\n\t\t\t\t\ttoAdd.add(\"fs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//norms deactivated (fulfilled) whose maintenance condition does not hold can be removed.\n\t\t\t\t//if they are not removed, new instances of the same norm are not activated\n\t\t\t\tIterator<Unifier> iDeactivated_to_remove = reasoner.findall(\"ds(A,Fa,Fm,Fd,Fr,Timeout)¬(Fm)\");\n\t\t\t\twhile(iDeactivated_to_remove.hasNext()){\n\t\t\t\t\tUnifier un = iDeactivated_to_remove.next();\n\t\t\t\t\ttoRemove.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tfor(String s:toAdd){\n\t\t\t\t\treasoner.assertValue(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(String s:toRemove){\n\t\t\t\t\treasoner.retract(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(toAdd.size()>0|toRemove.size()>0);\t\t\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"public int getRequestedValuesCount() {\n return requestedValues_.size();\n }",
"List<State> generateStates() {\n List<State> newStates = new ArrayList<State>();\n for (int x = 0; x < 9; x++) {\n for (int y = 0; y < 9; y++) {\n if (this.values[x][y] == 0) {\n for (Integer val : this.getAvailableNumbers(x, y)) {\n State newState = new State(this);\n newState.values[x][y] = val;\n newStates.add(newState);\n }\n return newStates;\n }\n }\n }\n return newStates;\n }",
"java.util.List<net.pocrd.api.resp.ApiCallState.Api_CallState> \n getStateList();",
"private HashMap<List<Integer>,List<Integer>> obtainValidActions(){\n\t\tHashMap<List<Integer>,List<Integer>> mapp= new HashMap<List<Integer>,List<Integer>>();\n\t\tfor (int i = 0;i<states.size();i++) {\n\t\t\tList<Integer> act= new ArrayList<Integer>();\n\t\t\tfor (int j = 0; j < actions.size(); j++) {\n\t\t\t\tif (isActionValid(states.get(i), actions.get(j))) \n\t\t\t\t\t//System.out.println(\"Inside Validation if\\n\");\n\t\t\t\t\tact.add(j);\n\t\t\t}\n\t\t\tmapp.put(states.get(i),act);\n\t\t}\n\t\treturn mapp;\n\t}",
"public int getRequestedValuesCount() {\n return requestedValues_.size();\n }",
"private List<Map<String, Object>> buildValidGetResultMap() {\n List<Map<String, Object>> results = new ArrayList<>();\n Map<String, Object> result = new HashMap<>();\n result.put(\"Status\", \"open\");\n result.put(\"Description\", TEST_DESC);\n result.put(\"Job\", TEST_JOB);\n result.put(\"User\", TEST_USER);\n results.add(result);\n return results;\n }",
"com.cdiscount.www.ArrayOfDiscussionStateFilter addNewStatusList();",
"private List<Map<String, Object>> buildValidUpdateNoChangeResultMap() {\n List<Map<String, Object>> results = new ArrayList<>();\n Map<String, Object> result = new HashMap<>();\n result.put(\"fmt0\", \"Job %job% not changed.\");\n result.put(\"code0\", \"285219083\");\n result.put(\"job\", TEST_JOB);\n results.add(result);\n return results;\n }",
"@SuppressWarnings({\"unchecked\", \"unused\"})\n public List<Op> updateStateList(\n Operand<? extends TNumber> values, Operand<? extends TNumber> sampleWeights) {\n return Collections.EMPTY_LIST;\n }",
"java.util.List<java.lang.Integer> getSkillChangeConjureTimeMapValsList();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return this.codigo.compareTo(est.getCodigo()); return est.getCodigo().compareTo(this.codigo); | public int compareTo(Estudiante est){
return this.apellidos.compareTo(est.getApellidos());
} | [
"@Override\n public int compareTo(Carte o) {\n if (this.nrPagini < o.nrPagini)\n return -1;\n if (this.nrPagini > o.nrPagini)\n return 1;\n return 0;\n }",
"@Test\r\n public void testCompareTo() {\r\n Articulo art = new Articulo();\r\n art.setCantidadVendidos(3);\r\n articuloPrueba.setCantidadVendidos(3);\r\n int expResult = 0;\r\n int result = art.compareTo(articuloPrueba);\r\n assertEquals(expResult, result);\r\n }",
"@Override\n public int compareTo(MensagemEleicao o) {\n int i = relogio.compareTo(o.relogio);\n if(i==0){ //se a comparação do relogio for igual\n if(id<o.getId()){ //usa o id maior como criterio de decisão;\n return -1;\n }\n return 1;\n }\n return i;\n }",
"@Override\r\n\tpublic int compare(Gericht o1, Gericht o2) {\r\n\t\treturn Integer.compare(o1.getPrioritaet(), o2.getPrioritaet());\r\n\t}",
"@Override\n public int compareTo(Viesti t) {\n if(tunniste<t.haeTunniste())\n return -1;\n else if(tunniste==t.haeTunniste())\n return 0;\n else\n return 1;\n }",
"@Override\n public int compareTo(Paciente paciente) {\n return codigo.compareTo(paciente.getCodigo());\n }",
"public void testCompareTo() {\n System.out.println(\"compareTo\");\n Object o = null;\n ComponenteBase objComponenteBase = null; \n int id= 0; \n int propiedad = 0;\n boolean codeSet = false; \n boolean codeGet = false;\n String extra = \"\";\n PropiedadComponenteBase instance = new PropiedadComponenteBase(objComponenteBase,id, propiedad,codeSet,codeGet, extra);\n int expResult = 0;\n int result = instance.compareTo(o);\n assertEquals(expResult, result);\n }",
"@Override\n public int compareTo(EquipoSencillo o) {\n if (valorComercial < o.valorComercial) {\n return -1;\n } else {\n return 1;\n }\n }",
"public int compareTo(Mahasiswa m) {\n if(this.kodeJurusan > m.kodeJurusan){\r\n return 1;\r\n }\r\n else{\r\n if(this.kodeJurusan == m.kodeJurusan){\r\n if(this.angkatan<m.angkatan){\r\n return 1;\r\n }\r\n else{\r\n if(this.angkatan==m.angkatan){\r\n if(this.ipk<m.ipk){\r\n return 1;\r\n }\r\n else if(this.ipk==m.ipk){\r\n return 0;\r\n }\r\n return -1;\r\n }\r\n return -1;\r\n }\r\n }\r\n return -1;\r\n }\r\n }",
"public int compareTo(Object o){\n\t\tCarta carta = (Carta) o;\n\t\tif(this.valor == carta.valor)\n\t\t\treturn 0;\n\t\telse if(this.valor > carta.valor)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn -1;\n\t}",
"@Override public int compareTo(Adaptador<T> adaptador) {\n return this.elemento.compareTo(adaptador.elemento);\n }",
"@Override\n\tpublic int compareTo(Colegio otro) {\n\t\tif(nombre.compareTo(otro.getNombre())==0){\n\t\t\treturn 0;\n\t\t}\n\t\telse if(nombre.compareTo(otro.getNombre())>0){\n\t\t\treturn 1;\n\t\t}\n\t\telse{\n\t\t\treturn -1;\n\t\t}\n\t}",
"@Override\n public int compareTo(DomandaTirocinio domanda) {\n \n if (getData().isBefore(domanda.getData())) {\n return -1;\n } else if (getData().isAfter(domanda.getData())) {\n return 1;\n } else {\n return 0;\n }\n }",
"@Override\n public int compareTo(HistoriaDeUsuario o) {\n if(contadorVotos != o.contadorVotos){\n /*System.out.println(\"HistoriaDeUsuario.compareTo() -> +\n Resultado por votos: \" + (contadorVotos-o.contadorVotos));*/\n return contadorVotos - o.contadorVotos;\n }\n if(prioridad != o.prioridad){\n /*System.out.println(\"HistoriaDeUsuario.compareTo() -> +\n Resultado por prioridad: \" + (prioridad-o.prioridad));*/\n return prioridad - o.prioridad;\n }\n /*System.out.println(\"HistoriaDeUsuario.compareTo() -> +\n Resultado por nombre: \" + o.nombre.compareTo(nombre)); */\n return o.nombre.compareTo(nombre);\n }",
"@Override\r\n\tpublic int compareTo(Object o) {\r\n\t\tif (o.getClass().equals(Arret.class)) {\r\n\t\t\tArret arret = (Arret) o;\r\n\t\t\treturn this.horaire.compareTo(arret.getHoraire());\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"@Test\n public void testCompareTo() {\n System.out.println(\"compareTo\");\n Conductor o = null;\n Conductor instance = null;\n int expResult = 0;\n int result = instance.compareTo(o);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public int compareTo(Object other) { return 404;}",
"@Override\n public int compare( ReservaViaje r1, ReservaViaje r2 )\n {\n int diff = ( int ) (r1.darCostoTotal( )-r2.darCostoTotal( ));\n return diff==0?0:(diff>0?1:-1);\n }",
"public int compareTo(Object o) {\r\n if (o instanceof Noeud) {\r\n Noeud n = (Noeud) o;\r\n if (this.frequence < n.getFrequence()) {\r\n return -1;\r\n } else if (this.frequence > n.getFrequence()) {\r\n return 1;\r\n } else if (this.frequence.equals(n.getFrequence())) {\r\n {\r\n if(this.t!=null && n.getT()!=null){\r\n if ((int) this.t.getLettre() < (int) n.getT().getLettre()){// difference entre String et un caracetere\r\n return -1; }\r\n else if ((int) this.t.getLettre() > (int) n.getT().getLettre()){\r\n return 1;}\r\n else{\r\n return 0;}\r\n\r\n }else{\r\n return 1;}\r\n\r\n }\r\n }\r\n }\r\n return 0;\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts a collection of Strings to a comma separated String | public static String convertSetOfStringsToCommaSeparated(Set<String> strings){
if(strings == null || strings.size() == 0)
return "";
StringBuffer sb = new StringBuffer();
for (String string : strings) {
sb.append(string);
sb.append(",");
}
// Remove last comma and return
return sb.toString().substring(0, sb.length() - 1);
} | [
"public static String collectionToCommaSeparatedString(Collection<String> elementCollection) {\n return String.join(\",\", elementCollection);\n }",
"private String convertListToCommaDelimitedString(List<String> list) {\n\n\t\tString result = \"\";\n\t\tif (list != null) {\n\t\t\tresult = StringUtils.arrayToCommaDelimitedString(list.toArray());\n\t\t}\n\t\treturn result;\n\n\t}",
"protected String asCommaSeparatedString(List<String> listOfStrings) {\t\t\n\t\treturn joinListOfStrings(listOfStrings, \", \");\n\t}",
"public static Object commaSeparatedStringFeedIds(List<String> ids) {\n StringBuilder commaSepValueBuilder = new StringBuilder();\n for (int i = 0; i < ids.size(); i++) {\n commaSepValueBuilder.append(ids.get(i));\n //if the value is not the last element of the list then append the comma(,)\n if (i != ids.size() - 1) {\n commaSepValueBuilder.append(\",\");\n }\n }\n return commaSepValueBuilder.toString();\n }",
"public String ownToString(UtilArrayList utilArrayList){\n Iterator iterator = utilArrayList.iterator();\n String string = \"\";\n while (iterator.hasNext()){\n string += iterator.next();\n //avoiding the last comma\n if(iterator.hasNext()){\n string += \", \";\n }else{\n string += \"\";\n }\n }\n return string;\n }",
"public static String toCommaSeparatedValues(final List<String> list) {\n if (list == null || list.isEmpty()) {\n return \"\";\n }\n final int listSize = list.size();\n final StringBuilder builder = new StringBuilder();\n for (int i=0; i<listSize; i++) {\n if (i>0) {\n builder.append(',');\n }\n builder.append(list.get(i));\n }\n return builder.toString();\n }",
"public static String joinQuoted( Collection<String> col ){\n \n if( col.isEmpty() )\n return \"\";\n \n StringBuilder sb = new StringBuilder();\n for( String item : col )\n sb.append(\",\\\"\").append(item).append('\"');\n \n String str = sb.toString();\n str = str.replaceFirst(\",\", \"\");\n return str;\n }",
"private String dump(Collection<String> c) {\n StringBuilder sb = new StringBuilder();\n for (String s : c) {\n sb.append(s).append(\",\");\n }\n if ( c.size() > 0) {\n \treturn sb.toString().substring(0, sb.length() - 1);\n }\n return \"\";\n \n }",
"public static String join(List elements)\n {\n return InternalCommonsUtils.join(elements, \", \");\n }",
"public String listToString(List<String> list) {\n return TextUtils.join(\", \", list);\n }",
"private static String getStringFromArr(ArrayList<String> selectedItems) {\n StringBuilder finalSelectedText = new StringBuilder();\n for (int j = 0; j < selectedItems.size(); j++) {\n finalSelectedText.append(selectedItems.get(j));\n if (j + 1 != selectedItems.size()) {\n finalSelectedText.append(\", \");\n }\n }\n return finalSelectedText.toString();\n }",
"public static String getCommaSeparatedListString(List<String> list) {\n return getStringFromList(list, ',');\n }",
"private static String asCsv(Set<String> tags) {\n StringBuilder builder = new StringBuilder();\n tags.forEach( tag -> {\n builder.append(tag);\n builder.append(',');\n });\n if (builder.length() > 0) {\n return builder.substring(0, builder.length() - 1);\n } else {\n return null;\n }\n }",
"public static final String commaSeparatedList(String[] words) {\n if (words.length == 0) {\n return \"\";\n }\n if (words.length == 1) {\n return words[0];\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < words.length; i++) {\n if (i == words.length - 1) {\n sb.append(words[i]);\n }\n else if (i == words.length - 2) {\n sb.append(words[i]).append(\" and \");\n }\n else {\n sb.append(words[i]).append(\", \");\n }\n }\n return sb.toString();\n }",
"protected static String nameStringFromList(ArrayList<String> names) {\n\t\tString temp = \"\";\n\t\tfor(int i = 0; i < names.size() - 1; i++) {\n\t\t\ttemp = temp + names.get(i) + \", \";\n\t\t}\n\t\tif(names.size() > 0) {\n\t\t\ttemp += names.get(names.size() - 1);\n\t\t}\n\t\treturn temp;\n\t}",
"public String join() {\n String result = \"\";\n\n for(int i = 0; i < list.size(); i++) {\n result += list.get(i);\n if (i < list.size() - 1) {\n result += \", \";\n }\n }\n\n return result;\n }",
"public static String convertListIntegerToString(Collection<Integer> ids) {\n StringBuilder sb = new StringBuilder();\n for (Integer id : ids) {\n if (sb.length() > 0) sb.append(\",\");\n sb.append(id);\n }\n return sb.toString();\n }",
"public static String getStringFromIds(List<Long> ids) {\n return StringUtils.join(ids, ',');\n }",
"public String getSetListString() {\n\t\tString s = \"\";\n\t\tfor (int i = 0; i < setList.size(); i++) {\n\t\t\ts += setList.get(i).toString() + \",\";\n\t\t}\n\t\tif (s.length() >= 1) {\n\t\t\ts = s.substring(0, s.length() - 1); //remove the trailing \",\"\n\t\t}\n\t\treturn s;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
allows human player to decided whether to call trump on first round | private boolean playerTrumpFirstRound(Player p) {
p.printHand();
while (true) {
System.out.println("Call trump? (y/n)");
String answer = scan.next();
if (answer.equals("y")) {
System.out.println();
return true;
} else if (answer.equals("n")){
System.out.println();
return false;
} else{
System.out.println("Invalid input! Enter 'y' or 'n'!");
}
}
} | [
"private boolean cpuTrumpFirstRound(Player p){\n if(players.indexOf(p) == 1 || players.indexOf(p) == 3) {\n return p.trumpFirstRound(faceUp.getSuit(), faceUp);\n }\n return p.trumpFirstRound(faceUp.getSuit());\n }",
"public void callTrump(int timesAround){\n Pair<Suit, Boolean> result;\n\n if(players[currentPlayerIndex].isAI()){\n result = players[currentPlayerIndex].callTrump(topCard, timesAround == 1, currentPlayerIndex == dealerIndex);\n if(result.first != Suit.PASS){\n if(currentPlayerIndex % 2 == 0){\n trumpCalled(result.first, userTeam);\n }\n else{\n trumpCalled(result.first, pureAITeam);\n }\n\n }\n else if(timesAround == 1 && currentPlayerIndex == dealerIndex){\n System.out.println(\"Houston, we have a PROBLEM. The AI dealer is trying to pass and is not allowed.\");\n }\n else if(timesAround == 0 && currentPlayerIndex != dealerIndex){\n currentPlayerIndex = (currentPlayerIndex + 1) % 4;\n callTrump(0);\n }\n else{\n currentPlayerIndex = (currentPlayerIndex + 1) % 4;\n topCardTurnedDown = true;\n callTrump(1);\n }\n }\n else{\n if(timesAround == 0){\n showCardUpSuitButton();\n }\n else {\n showOtherTrumpButtons(dealerIndex == 0);\n }\n }\n }",
"public void isOrderUpTrump(int playerID){\n if(turn == playerID && gameStage == 1 && dealer != 0){\n currentTrumpSuit = middleCardSuit;\n // make dealer discard a card and give them the middle card\n if(dealer == 1){\n // remove a card from the player's hand and add the middle card\n player2Hand.remove(2);\n player2Hand.add(middleCard);\n turn = 2;\n gameStage = 3;\n }\n else if(dealer == 2){\n // remove a card from the player's hand and add the middle card\n player3Hand.remove(2);\n player3Hand.add(middleCard);\n turn = 3;\n gameStage = 3;\n }\n else if(dealer == 3){\n // remove a card from the player's hand and add the middle card\n player4Hand.remove(2);\n player4Hand.add(middleCard);\n turn = 0;\n gameStage = 3;\n }\n }\n }",
"public void attemptUltraCapture() {\r\n\t\t \r\n\t\t if(capture.throwUltraBall(new Random().nextInt(100)+1)) {\r\n\t\t\t System.out.println(capture.currentTrain.getOwnedPokemonList());\r\n\t\t\t captureAnimation.animateCapture();\r\n\t\t }\r\n\t\t\t \r\n\t\t \r\n\t }",
"private boolean checkForTrump() {\r\n\t\treturn cardSet.isTrump(card1) || cardSet.isTrump(card2) || cardSet.isTrump(card3) || cardSet.isTrump(card4) ||\r\n\t\t\t\tcardSet.isTrump(card5) || cardSet.isTrump(card6) || cardSet.isTrump(card7) || cardSet.isTrump(card8);\r\n\t}",
"private void humanPlay() {\n\t\twhile (p1.requestHit()\n\t\t\t\t&& p1Hand.checkBust() == false\n\t\t\t\t&& p1Hand.check21() == false) {\n\t\t\tString newCard = deck.draw();\n\t\t\tp1Hand.anotherDraw(newCard);\n\t\t\tSystem.out.println(\"You drew a \" + newCard);\n\t\t\tSystem.out.println(\"You have \" + p1Hand.getHand());\n\t\t\tif (p1Hand.checkBust() || p1Hand.check21()) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\tSystem.out.println(\"What would you like to do?\");\n\t\t\t}\n\t\t}\n\t}",
"private char playerTrumpSecondRound(Player p) {\n while (true) {\n p.printHand();\n System.out.println(\"Would you like to declare trump?\");\n char response = scan.next().charAt(0);\n if (response == 'n') {\n return '\\0';\n }\n if (response == 'y') {\n while (true) {\n System.out.println(\"What suit would you like to declare? (H/S/C/D)\");\n char t = scan.next().charAt(0);\n t = Character.toUpperCase(t);\n if (t != faceUp.getSuit() && (t == 'H' || t == 'S' || t == 'C' || t == 'D')) {\n System.out.println();\n return t;\n }\n System.out.println(\"not a valid suit! enter H/S/C/D (capital)\");\n if(t == faceUp.getSuit()){\n System.out.println(\"You cannot choose the suit of the face up card\");\n }\n }\n } else {\n System.out.println(\"invalid input! enter 'y' or 'n'!\");\n }\n }\n }",
"void tossToPlayFirst() {\n\t\tSystem.out.println(\"\\n\\n**Flip the coin to decide who play first**\");\n\t\tint choosePlayer = random.nextInt(2);\n\t\tif(choosePlayer == 0) {\n\t\t\tSystem.out.println(\"\\n***User has won the toss and play fist***\");\n\t\t\tchoosePlayer(0);\n\t\t}else {\n\t\t\tSystem.out.println(\"\\n***Computer has won the toss and will play first***\");\n\t\t\tchoosePlayer(1);\n\t\t}\n\t\t\n\t}",
"private void firstRound() {\n showCurrentPlayerStats();\n chooseTerritoryIfNone();\n }",
"public void tryDeal() {\n if(previousTie){\n previousTie = false;\n emptyHands();\n shuffle();\n }\n if (player.getBet() < 2) {\n errorFlag = true;\n userMessage = \"You must bet a minimum of $2\";\n return;\n } else if (player.getHand().size() > 0) {\n errorFlag = true;\n userMessage = \"You have already been dealt your initial hand\";\n return;\n } else {\n player.setHand(deal(player.getHand(), 2));\n if (player.getHand().get(0).getValue() == player.getHand().get(1).getValue()) {\n //User can split if they want to\n userMessage = \"Hit, Stand or Split\";\n splitDisabled = false;\n }else{\n userMessage = \"Hit or Stand\";\n }\n dealDisabled = true;\n againDisabled = true;\n doubleDisabled = false;\n standDisabled = false;\n hitDisabled = false;\n bettingDisabled = true;\n }\n }",
"private void HumanPlayersTurn() {\n\n if(CheckForBlackjack(humanPlayer)){\n System.out.println(\"You got Blackjack!\");\n humanPlayer.hasBlackjack = true;\n Win(humanPlayer);\n }\n humanPlayer.setHandSum(CalcHandSum(humanPlayer, humanPlayer.getHand()));\n\n //Until bust or stay\n while (true) {\n\n System.out.println(\"Currently at: \" + humanPlayer.getHandSum());\n int choice = humanPlayer.HitPrompt();\n //If \"hit,\" return the sum and add another card to the humanPlayer's hand\n if (choice == 1) {\n humanPlayer.Hit(humanPlayer, deck);\n humanPlayer.setHandSum(CalcHandSum(humanPlayer, humanPlayer.getHand()));\n\n //Check to see if humanPlayer busts\n if (IsBust(humanPlayer)) {\n System.out.println(\"You busted at \" + humanPlayer.getHandSum());\n Lose(humanPlayer);\n humanPlayer.isBust = true;\n break;\n }\n }\n //If \"stay,\" return the sum and exit loop\n else {\n System.out.println(\"You stayed at \" + humanPlayer.getHandSum());\n humanPlayer.setHandSum(humanPlayer.getHandSum());\n break;\n }\n }\n }",
"@Override\r\n public boolean isRook() {\r\n return true;\r\n }",
"private void playNewRound(){\r\n\t\t\r\n\t\t//set up the equipment of the new round\r\n\t\tsetUpRound();\r\n\t\tview.displayDealer(model.getDealerName());\r\n\t\tString firstPlayer = model.getName();\r\n\t\tview.goingFirst(firstPlayer);\r\n\t\t//while no knock, no winning, and no exiting, either human or computer player turn\r\n\t\twhile(!model.didUserKnock() && !model.doesUserExit() && !model.doesUserRestart() && !model.isStockEmpty() && !didAnyoneWinRound(firstPlayer)){\r\n\t\t\t//if firstPlayer is not the computer\r\n\t\t\tif(!firstPlayer.equals(model.getComputerName()))\r\n\t\t\t\thumanPlayerTurn(firstPlayer);\r\n\t\t\telse\r\n\t\t\t\tcomputerPlayerTurn(firstPlayer);\r\n\t\t\tmodel.nextPlayer();\r\n\t\t\tfirstPlayer = model.getName();\r\n\t\t}\r\n\t\t//round over\r\n\t\t\r\n\t}",
"private boolean trapPredator()\n {\n Position current= player.getPosition();\n boolean hadPredator = island.hasPredator(current);\n if(hadPredator) //can trap it\n {\n Occupant occupant = island.getPredator(current);\n //Predator has been trapped so remove\n island.removeOccupant(current, occupant); \n predatorsTrapped++;\n }\n \n return hadPredator;\n }",
"public boolean askTakeTrump(){\n char answer;\n do\n { // tant que la reponse n'est pas O ou N\n System.out.println(\"Do you want to take the trump ?\");\n System.out.println(\"If you do, enter O, either enter N\");\n answer = sc.next().charAt(0);\n } while (answer != 'O' && answer != 'N' && answer != 'o' && answer != 'n');\n if (answer == 'O' || answer == 'o')\n return true;\n else\n return false;\n }",
"private void CheckAndDoCoinFlip() {\n if(userChoice != null) {\n\n //Check if coin has been touched and is in the process of flipping\n if(coinFlipping) {\n ProcessCoinFlipping();\n }\n else {\n //Check if user has pressed coin, and coin is not flipping already. If not flipping, start it flipping\n CheckCoinTouched();\n StartCoinFlip();\n }\n }\n }",
"@Override\r\n public boolean isRook() {\r\n return false;\r\n }",
"public void attemptCapture() {\r\n\t\t \r\n\t\t if(capture.throwBall(new Random().nextInt(100)+1)) {\r\n\t\t\t System.out.println(capture.currentTrain.getOwnedPokemonList());\r\n\t\t\t captureAnimation.animateCapture();\r\n\t\t\t try {\r\n\t\t\t\tnew SoundClip(\"sounds/108-victory-vs-wild-pokemon-.mp3\");\r\n\t\t\t} catch (UnsupportedAudioFileException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t }\r\n\t\t\t \r\n\t\t \r\n\t }",
"public void StartCoinFlip() {\n if(coinTouched == 1) {\n\n //If coin is not flipping\n if(!coinFlipping) {\n\n //Set the coin as flipping (Dealt with on the next update)\n coinFlipping = true;\n }\n }\n else if(coinTouched == 2){\n showToast(\"Please click the coin to flip!\");\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the actual FileObject for the given DataObject | private FileObject getFileObjectFrom(DataObject dataObject) {
if (dataObject == null) {
return null;
}
if (dataObject instanceof DataShadow){
dataObject = ((DataShadow) dataObject).getOriginal();
}
return dataObject.getPrimaryFile();
} | [
"public Object getObject() {\n\t\treturn datafile;\n\t}",
"public JavaFileObject fileObject() {\n return fileObject;\n }",
"@Transient\n\tpublic File getFileObj() {\n\t\treturn fileObj;\n\t}",
"public java.lang.String getObjectFile() {\n java.lang.Object ref = objectFile_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n objectFile_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getObjectFileBytes() {\n java.lang.Object ref = objectFile_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n objectFile_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getObjectFile() {\n java.lang.Object ref = objectFile_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n objectFile_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"protected abstract FileObject findPrimaryFile (FileObject fo);",
"SynchronizerFile getFileObject(String path, String file_name);",
"public T caseFile(File object) {\n\t\treturn null;\n\t}",
"public File getDBfileObj(){\n return dbFileObj;\n }",
"protected Object openObject(){\r\n\r\n if (m_FileChooser == null){\r\n createFileChooser();\r\n }\r\n int returnVal = m_FileChooser.showOpenDialog(this);\r\n if (returnVal == JFileChooser.APPROVE_OPTION){\r\n File selected = m_FileChooser.getSelectedFile();\r\n try{\r\n ObjectInputStream oi = new ObjectInputStream(new BufferedInputStream(new FileInputStream(selected)));\r\n Object obj = oi.readObject();\r\n oi.close();\r\n if (!m_ClassType.isAssignableFrom(obj.getClass())){\r\n throw new Exception(\"Object not of type: \" + m_ClassType.getName());\r\n }\r\n return obj;\r\n }\r\n catch (Exception ex){\r\n JOptionPane.showMessageDialog(this,\r\n \"Couldn't read object: \"\r\n + selected.getName()\r\n + \"\\n\" + ex.getMessage(),\r\n \"Open object file\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n return null;\r\n }",
"public T caseRecordFile(RecordFile object) {\n\t\treturn null;\n\t}",
"public File getDataFile();",
"public T caseFileDao(FileDao object) {\r\n\t\treturn null;\r\n\t}",
"public T caseFile(File object)\n {\n return null;\n }",
"public T caseFileResource(FileResource object) {\r\n\t\treturn null;\r\n\t}",
"public T caseFileReference(FileReference object)\n {\n return null;\n }",
"public ProjectFile findFile(Object obj) {\n if (obj == null) {\n return null;\n }\n\n // to avoid full scan, a map may be a better\n // choice of collection here,\n // though normally projects have very few files...\n synchronized (files) {\n for (ProjectFile file : files) {\n if (file.getObject() == obj) {\n return file;\n }\n }\n }\n\n return null;\n }",
"public final Object getFilesystemObject() {\n \treturn m_filesysObj;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new node list wrapper. | public NodeListWrapper(NodeList list, Class<E> theClass) {
this.theIterator = new NodeListIterator(list);
this.theClassE = theClass;
try {
this.theConstructor = this.theClassE.getConstructor(NodeListWrapper.theElement);
} catch (SecurityException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
} | [
"protected ListNodesNodeModel() {\r\n this(0, 1);\r\n }",
"protected LRUList createList() {return new LRUList();}",
"public SLList() {\n\t\tsentinel = new Node(null, null);\n\t\tsize = 0;\n\t}",
"public SLList(){\n sentinel = new Node(0000, null);\n size = 0;\n }",
"public ListNode() {\n this(null, null);\n }",
"NodePropertyList createNodePropertyList();",
"private Lists() { }",
"public SLList() {\n\t\tsentinel = new StuffNode(null, null); // 63 is just randomly chosen.\n\t\tsize = 0;\n\t}",
"public ListIterator(Node node) {\n\t\tcurrent = node;\n\t}",
"public LArrayList(){\r\n\t\tthis.head = new Node(null , null , null);\r\n\t\tthis.head.next = null;\r\n\t\tthis.head.prev = null;\r\n\t\t\r\n\t\tthis.size = 0;\r\n\t}",
"private DoubleLinkedList<Integer> newList() {\r\n\t\treturn new DoubleLinkedList<Integer>();\r\n\t}",
"private DoubleLinkedList<Integer> newList() {\n\t\t\treturn new DoubleLinkedList<Integer>();\n\n\t}",
"public static TaskList newInstance() {\n return new TaskList();\n }",
"public DLList() {\r\n init();\r\n }",
"LI createLI();",
"@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }",
"public void setListNodes (ArrayList<Node> list){\r\n this.listNodes = list;\r\n }",
"public ModuleObjectWithList() {}",
"public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for errors concerning a uniprot entry rather than specific intact proteins | public interface UniprotUpdateError extends ProteinUpdateError {
String getUniprotAc();
} | [
"protected abstract String errorInfo();",
"void notSupported(String errorcode);",
"public interface BaseErrors {\n String getCode();\n\n String getMsg();\n}",
"java.lang.String getErr();",
"WorldUps.UErr getError(int index);",
"public void correctErrors();",
"public interface ErrorInterpreter {\n\n /**\n * Handles error and returns string representation\n *\n * @param name error name as defined in schema\n * @param arguments error argument names as defined in schema mapped to values from XML\n * @return string representing error message or null, if such error isn't interpreted by this interpreter\n */\n @Nullable\n Optional<String> interpret(String name, Map<String, String> arguments);\n}",
"protodef.b_error.info getError();",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"java.lang.String getERROR();",
"PointerByReference rs2_create_error(String what, String name, String args, int type);",
"public abstract Collection<KeyValuePairRecord> procErrorRecord(IRecord r) throws ProcessingException;",
"java.lang.String getErrMsg();",
"public abstract String getErrorString(int errorNumber);",
"public abstract OBError parse() throws Exception;",
"public interface ViolationPolicy {\n\n void handleViolation(String message);\n\n}",
"@Override\n protected void initErrorLookup() {\n errorLookup[0] = \"Wrong number of parameters\";\n errorLookup[1] = \"Invalid airline code\";\n errorLookup[2] = \"Invalid airline ID\";\n errorLookup[3] = \"Invalid source airport code\";\n errorLookup[4] = \"Invalid source airport ID\";\n errorLookup[5] = \"Invalid destination airport code\";\n errorLookup[6] = \"Invalid destination airport ID\";\n errorLookup[7] = \"Invalid value for codeshare\";\n errorLookup[8] = \"Invalid value for number of stops\";\n errorLookup[9] = \"Invalid equipment code\";\n errorLookup[10] = \"Duplicate route\";\n errorLookup[11] = \"Unknown error\";\n }",
"public PINException(short reason) { super(reason); }",
"public boolean checkMyProblem(int pId, int uId) throws Exception;"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.