query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the result of interpreting the object as an instance of 'Container'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseContainer(Container object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseMappingContainer(MappingContainer object) {\n\t\treturn null;\n\t}", "public T caseEquipmentContainer(EquipmentContainer object) {\n\t\treturn null;\n\t}", "public T caseGraphicalContainer(GraphicalContainer object) {\n\t\treturn null;\n\t}", "public T caseConnectivityNodeContainer(ConnectivityN...
[ "0.64664984", "0.64485407", "0.6443047", "0.63299954", "0.6136084", "0.602398", "0.5996531", "0.59290934", "0.58771485", "0.58474463", "0.57694006", "0.57030183", "0.57024014", "0.56484634", "0.5647706", "0.5629811", "0.5626993", "0.5623005", "0.56049865", "0.559789", "0.5581...
0.7550657
0
Returns the result of interpreting the object as an instance of 'Containable'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseContainable(Containable object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseIConnectedUnit(IConnectedUnit object) {\r\n\t\treturn null;\r\n\t}", "public Optional<ManagedObject> getMixedIn() {\n return Objects.equals(getOwner(), getTarget()) \n ? Optional.empty()\n : Optional.of(getOwner());\n }", "public T caseGraphicalContainer(Gra...
[ "0.5542455", "0.5485161", "0.54366297", "0.5427783", "0.5411458", "0.5369632", "0.5359274", "0.5276559", "0.52658165", "0.5250466", "0.5220765", "0.52143306", "0.52082825", "0.52021873", "0.5190588", "0.51893294", "0.51831865", "0.51473665", "0.5144618", "0.51367277", "0.5135...
0.76280683
0
Returns the result of interpreting the object as an instance of 'Sensor'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseSensor(Sensor object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Sensor getSensor();", "public String getSensor()\n {\n return sensor;\n }", "public final SensorManager invoke() {\n Object systemService = this.this$0.c().getSystemService(\"sensor\");\n if (systemService != null) {\n return (SensorManager) systemService;\n ...
[ "0.722779", "0.6508521", "0.63803643", "0.6337982", "0.62071824", "0.6083137", "0.60410696", "0.603802", "0.5920537", "0.5914419", "0.59127855", "0.58228725", "0.5736544", "0.5616507", "0.55852175", "0.5548993", "0.55356956", "0.551739", "0.55143327", "0.54982156", "0.5437240...
0.7699737
0
Returns the result of interpreting the object as an instance of 'Periodic'. This implementation returns null; returning a nonnull result will terminate the switch.
public T casePeriodic(Periodic object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T casePeriodicStatement(PeriodicStatement object) {\n\t\treturn null;\n\t}", "PeriodicProcess getPeriodic();", "public boolean isPeriodic() {\n return period != 0;\n }", "public void autonomousPeriodic() {\r\n \r\n }", "public void autonomousPeriodic() {\n\n }", "pub...
[ "0.7047226", "0.68633", "0.576834", "0.57060975", "0.569807", "0.569807", "0.56679636", "0.56679636", "0.56471056", "0.56471056", "0.55999285", "0.5579068", "0.55254656", "0.55113244", "0.5481618", "0.5475517", "0.5475517", "0.5475517", "0.54722345", "0.54676473", "0.5406139"...
0.79260266
0
Returns the result of interpreting the object as an instance of 'Event Based'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseEvent_Based(Event_Based object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseEvent(Event object)\n {\n return null;\n }", "public T caseEvent(Event object) {\n\t\treturn null;\n\t}", "public T caseEvent(Event object) {\r\n\t\treturn null;\r\n\t}", "public T caseEventDefinition(EventDefinition object) {\r\n\t\treturn null;\r\n\t}", "public T caseEventDefinition(Eve...
[ "0.68163234", "0.67316854", "0.6716464", "0.6382937", "0.6371286", "0.61785966", "0.6176824", "0.6139981", "0.6125993", "0.61192024", "0.6054247", "0.6004931", "0.59120727", "0.5891042", "0.58322436", "0.57738745", "0.567582", "0.56757545", "0.5648367", "0.559702", "0.5595552...
0.7278767
0
Returns the result of interpreting the object as an instance of 'Observation'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseObservation(Observation object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.hl7.fhir.ResourceReference getObservation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().find_element_user(OBSERVATION$0, 0);\n if...
[ "0.62972873", "0.6105715", "0.57471895", "0.5696672", "0.5657007", "0.5492883", "0.5469573", "0.54518515", "0.5410942", "0.5314002", "0.52883923", "0.5272686", "0.5272275", "0.5217807", "0.5190304", "0.5129944", "0.50954556", "0.5051899", "0.5044383", "0.50371665", "0.5024523...
0.7396085
0
Returns the result of interpreting the object as an instance of 'Field'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseField(Field object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getObjectField();", "public T caseFieldDeclaration(FieldDeclaration object)\n {\n return null;\n }", "public Object caseRField(RField object) {\n\t\treturn null;\n\t}", "public T caseFieldReference(FieldReference object)\n {\n return null;\n }", "public T caseFieldType(FieldType object)\n ...
[ "0.7134578", "0.70230657", "0.6801021", "0.6792771", "0.67726713", "0.66973567", "0.6649152", "0.6504533", "0.6477985", "0.64580536", "0.64197075", "0.63386214", "0.62986463", "0.62592185", "0.6219685", "0.618856", "0.616307", "0.61470586", "0.61470586", "0.6084539", "0.60360...
0.74675065
0
Returns the result of interpreting the object as an instance of 'Range'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseRange(Range object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseRange(Range object)\n {\n return null;\n }", "public T caseRangeTypeReference(RangeTypeReference object) {\n\t\treturn null;\n\t}", "public T caseRangeType(RangeType object) {\n\t\treturn null;\n\t}", "protected abstract R getRange(E entry);", "public T caseDefRange(DefRange object)\n {\...
[ "0.7589289", "0.7064582", "0.70510715", "0.6551967", "0.6495244", "0.6479377", "0.6461428", "0.6460336", "0.63707083", "0.63643336", "0.63245136", "0.6259461", "0.6259344", "0.62269074", "0.62265027", "0.6216794", "0.62118465", "0.6173151", "0.61326015", "0.6116552", "0.60630...
0.740992
1
Returns the result of interpreting the object as an instance of 'Continuous'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseContinuous(Continuous object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isContinuous() {\n return mIsContinuous;\n }", "public T caseControlFlow(ControlFlow object) {\n\t\treturn null;\n\t}", "public T casePeriodic(Periodic object) {\n\t\treturn null;\n\t}", "public boolean isContinuous() {\r\n // TODO -- redefine for functions in Functions.java\r\n retur...
[ "0.5805192", "0.55724293", "0.544538", "0.5319623", "0.525788", "0.525788", "0.5107238", "0.5089435", "0.50497293", "0.4978031", "0.49742836", "0.4961543", "0.49536481", "0.49430314", "0.49237362", "0.49140522", "0.4904611", "0.4898513", "0.48739186", "0.48678643", "0.4866413...
0.7873217
0
Returns the result of interpreting the object as an instance of 'Discrete'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseDiscrete(Discrete object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseDiscreteValue(DiscreteValue object) {\n\t\treturn null;\n\t}", "public boolean isDiscrete() {\n return this.isDiscrete;\n }", "public abstract Object getDecisionValue();", "public T caseChart(Chart object)\n {\n return null;\n }", "public Comparable<?> b(DiscreteDomain<Comparabl...
[ "0.7543596", "0.64825773", "0.5961712", "0.58366066", "0.57298625", "0.57238895", "0.56608444", "0.55831105", "0.5528595", "0.55232716", "0.55072314", "0.5440281", "0.53919214", "0.53195405", "0.5301169", "0.52965593", "0.52680886", "0.52150965", "0.5204934", "0.52027696", "0...
0.7955662
1
Returns the result of interpreting the object as an instance of 'Data Type'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseDataType(DataType object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Type getValue() {\n Type ret = null;\n try {\n Constructor constructor = valueClass.getConstructor(new Class[] { String.class });\n ret = (Type) constructor.newInstance(data);\n } catch (Exception e) {\n throw new ClassCastException();\n }\n ...
[ "0.7057541", "0.69997436", "0.6858164", "0.67655396", "0.66816175", "0.6521301", "0.64385796", "0.64137274", "0.6404251", "0.6364251", "0.6290926", "0.6272594", "0.6269677", "0.62578666", "0.6249358", "0.62112814", "0.6198561", "0.6187511", "0.61826044", "0.6156596", "0.61548...
0.71202695
1
Returns the result of interpreting the object as an instance of 'Integer'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseInteger(sensorDeploymentLanguage.Integer object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseIntegerValue(IntegerValue object) {\n\t\treturn null;\n\t}", "public T caseIntegerLiteral(IntegerLiteral object)\n {\n return null;\n }", "public T caseIntegerExpression(IntegerExpression object) {\n\t\treturn null;\n\t}", "public static Integer toInteger(Object value) {\n if (value inst...
[ "0.726528", "0.702013", "0.6918033", "0.6907186", "0.6906849", "0.6861593", "0.6809356", "0.673551", "0.6660008", "0.66258794", "0.6546408", "0.65386885", "0.6482228", "0.64762914", "0.6456672", "0.64246976", "0.64246976", "0.642029", "0.6387039", "0.63548744", "0.6231305", ...
0.74722236
0
Returns the result of interpreting the object as an instance of 'Float'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseFloat(sensorDeploymentLanguage.Float object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseFloat(org.uis.lenguajegrafico.lenguajegrafico.Float object)\n {\n return null;\n }", "public static Float castFloat(Object obj) {\n\t\tif (obj instanceof Number) {\n\t\t\treturn ((Number) obj).floatValue();\n\t\t}\n\n\t\treturn null;\n\t}", "public float evaluateAsFloat();", "public T caseU...
[ "0.8189387", "0.7649878", "0.7535745", "0.7415808", "0.72866184", "0.72615814", "0.69240916", "0.6907002", "0.68923193", "0.68420416", "0.6834412", "0.682702", "0.6775325", "0.67528766", "0.67512506", "0.6743672", "0.67172813", "0.6715579", "0.6687414", "0.6666195", "0.666083...
0.78915215
1
Returns the result of interpreting the object as an instance of 'String'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseString(sensorDeploymentLanguage.String object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final protected String valueOf(Object obj) {\r\n if (obj == null) {\r\n return null;\r\n }\r\n return String.valueOf(obj);\r\n }", "String asString ();", "@Override\n\tpublic Object valueOf(String arg0) {\n\t\treturn null;\n\t}", "public T caseExpression_String(Expression_S...
[ "0.66879874", "0.6626838", "0.65078825", "0.65073776", "0.6463644", "0.63841176", "0.6383608", "0.6366359", "0.6366359", "0.6327871", "0.6252626", "0.6252626", "0.6252626", "0.61977273", "0.61977273", "0.6172789", "0.61492634", "0.609231", "0.6041985", "0.60156626", "0.596686...
0.6916237
0
Returns the result of interpreting the object as an instance of 'Atomic'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseAtomic(Atomic object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AtomicValue asAtomic() throws ValidationException {\n throw makeException();\n }", "public T caseAtom(Atom object)\n {\n return null;\n }", "public T caseAtom(Atom object)\n {\n return null;\n }", "public int getAtomicNumber() {\n }", "private static boolean isAtomic(Object o)...
[ "0.6000798", "0.58641267", "0.58641267", "0.5687279", "0.55798537", "0.54674417", "0.5419654", "0.5377981", "0.5336697", "0.5325984", "0.52802217", "0.5114787", "0.5024162", "0.50214136", "0.50213784", "0.48913494", "0.4891167", "0.48602232", "0.4829008", "0.48212114", "0.481...
0.75183755
0
Returns the result of interpreting the object as an instance of 'Calculated'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseCalculated(Calculated object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getIsCalculated() {\n return this.isCalculated;\n }", "@Override\n public Float calc() {\n\treturn null;\n }", "protected abstract SoyValue compute();", "protected abstract Object doCalculations();", "@Override\n public Float compute() {\n\treturn calc();\n }", "@Over...
[ "0.6127272", "0.6025307", "0.5806936", "0.57363546", "0.56855637", "0.5591484", "0.5582063", "0.55352056", "0.5533205", "0.5509714", "0.55009025", "0.5475858", "0.5462109", "0.546206", "0.5438094", "0.5411992", "0.54051566", "0.5384475", "0.53790236", "0.53627145", "0.5356927...
0.7603749
0
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a nonnull result will terminate the switch, but this is the last case anyway.
@Override public T defaultCase(EObject object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseECU(ECU object) {\r\n\t\treturn null;\r\n\t}", "public T caseExpr(Expr object) {\n\t\treturn null;\n\t}", "public T defaultCase(EObject object)\n {\n return null;\n }", "public T defaultCase(EObject object)\n {\n return null;\n }", "public T caseEjecuciones(Ejecuciones object)\n {\n...
[ "0.6621662", "0.6619107", "0.6467152", "0.6467152", "0.64147896", "0.6410219", "0.6380842", "0.6361195", "0.6360865", "0.6333534", "0.6332085", "0.63295203", "0.6322036", "0.6320016", "0.63097686", "0.628742", "0.628742", "0.628742", "0.628742", "0.628742", "0.628742", "0.6...
0.62441194
51
Service Interface for organization fees type. This service act as controller for organization fees type details.
public interface BuildingBlockService { /** * Retrieves the building block by id. * * @param id * the id of building block to be retrieved. * @return building block. * @throws BusinessException * In case of exception. */ BuildingBlock findBuildingBlockById(Long id) throws BusinessException; /** * Retrieves all building blocks available. * * @return all building blocks available. * @throws BusinessException * In case of exception. */ Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException; /** * Saves the building block. * * @return the persisted building block. * @throws BusinessException * In case of exception. */ BuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException; /** * Removes the building block. * * @throws BusinessException * In case of exception. */ void removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException; /** * Retrieves all building blocks by building block type. * * @return all building blocks by building block type. * @throws BusinessException * In case of exception. */ Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException; /** * Retrieves all building blocks for branch id. * * @param branchId * branch object id for which all building blocks have to be * retrieved. * @return all building blocks for branch id. * @throws BusinessException * In case of exception. */ Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException; /** * Retrieves all building blocks for branch id and building block type. * * @param branchId * branch object id. * @param buildingBlockType * building block type. * @return all building blocks for branch id and building block type. * @throws BusinessException * In case of exception. */ Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException; /** * Retrieves building block by building block type and code. * * @param buildingBlockType * building block type. * * @param code * building block code. * @return all building blocks by building block type. * @throws BusinessException * In case of exception. */ BuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException; /** * Retrieve all mandatory building blocks. * * @return collection of all mandatory building blocks. */ Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException; /** * Retrieve all fee Type building blocks for a branch by fee classification. * * @param branchId * the branch id. * @param feeClassificationLevel * the fee classification level constant. * @return * @throws BusinessException * in case of any business exceptions. */ Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId, FeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException; /** * Retrieve all fee Type building block for a branch by fee type. * * @param branchId * the branch id. * @param feeClassificationLevel * the fee classification level constant. * @return * @throws BusinessException * in case of any business exceptions. */ Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException, SystemException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface StorePaymentModeFeeService\n{\n\n /**\n * Finds the payment mode fee applicable to the given store and payment mode\n * \n * @param store\n * @param paymentMode\n * @return The StorePaymentModeFeeModel matching the given store and payment mode, or null if there is no existin...
[ "0.6139432", "0.5784853", "0.5585868", "0.5550844", "0.5412134", "0.54039276", "0.53864264", "0.53533715", "0.5235463", "0.52261806", "0.5225705", "0.51916057", "0.51496595", "0.51375103", "0.51331955", "0.5126585", "0.51047295", "0.51012653", "0.50853795", "0.49838504", "0.4...
0.0
-1
Retrieves the building block by id.
BuildingBlock findBuildingBlockById(Long id) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Block getBlock(String id) {\n\t\treturn this.blocks.get(Long.valueOf(id));\n\t}", "public ProductionBlock getSpecificProductionBlock(int id);", "@Override\n public Building get(long id) {\n return dao.get(Building.class, id);\n }", "public Building getBuilding(int id){\n // Placeho...
[ "0.7613471", "0.74145687", "0.69640326", "0.68060654", "0.6771162", "0.6527293", "0.64617765", "0.6319771", "0.61855036", "0.61610055", "0.5999343", "0.5995648", "0.59609663", "0.5913218", "0.58829755", "0.58607435", "0.58282435", "0.5824167", "0.58127564", "0.581245", "0.577...
0.83512616
0
Retrieves all building blocks available.
Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;", "public ProductionBlock[] getAllProductionBlocks();", "public java.util.List<phaseI.Hdfs.BlockLocations.Builder> \n getBlockLocationsBuilderList() {\n return getBlockLocationsFieldBuilder().getBuilderList();\n...
[ "0.67969745", "0.6775533", "0.6694085", "0.65855515", "0.6498966", "0.626507", "0.6203408", "0.61912197", "0.6185207", "0.6184587", "0.6083885", "0.5983466", "0.5967897", "0.5957351", "0.5903938", "0.58801484", "0.5845484", "0.584417", "0.58429474", "0.583957", "0.5835262", ...
0.7998563
0
Saves the building block.
BuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String saveProductionBlock(ProductionBlock pb);", "Block saveBlock(Block block) throws BlockExistsException;", "@Override\n public Building save(Building entity) {\n return dao.save(entity);\n }", "public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {...
[ "0.63724154", "0.6175141", "0.57016695", "0.56743604", "0.5669966", "0.5602732", "0.56024194", "0.5591209", "0.5568628", "0.55675226", "0.55438185", "0.5518893", "0.5428111", "0.54261845", "0.5422583", "0.5418175", "0.54072577", "0.5404072", "0.53824973", "0.5380385", "0.5338...
0.77799827
0
Removes the building block.
void removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeBlock(Block block);", "public abstract void removeBlock();", "public void removeBlock(Block block) {\n removeLocation(block.getLocation());\n }", "public String deleteProductionBlock(ProductionBlock pb);", "public void removeBlock(Block block) {\n\t\tblocks.remove(block.getId());\n\t}"...
[ "0.68357015", "0.66958976", "0.6364165", "0.6354547", "0.6189017", "0.6100193", "0.6094384", "0.589309", "0.5887912", "0.57778096", "0.5673618", "0.56651276", "0.5636356", "0.5606876", "0.55889195", "0.55816424", "0.5525981", "0.55093837", "0.550807", "0.5489715", "0.5481573"...
0.8125334
0
Retrieves all building blocks by building block type.
Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) th...
[ "0.76741076", "0.7278432", "0.65136796", "0.6469981", "0.62402344", "0.62146276", "0.61516577", "0.60604256", "0.59775895", "0.58042866", "0.5795167", "0.5740685", "0.57331115", "0.56534845", "0.5596527", "0.55942553", "0.55851406", "0.5504035", "0.54811835", "0.54273623", "0...
0.8430015
0
Retrieves all building blocks for branch id.
Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;",...
[ "0.6690365", "0.6427023", "0.6352986", "0.55824727", "0.55415237", "0.5391399", "0.53911346", "0.5367174", "0.536533", "0.53265935", "0.5308568", "0.52900267", "0.52719563", "0.52552265", "0.5238308", "0.5135291", "0.51348716", "0.5115458", "0.50962424", "0.5078328", "0.50738...
0.796651
0
Retrieves all building blocks for branch id and building block type.
Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "BuildingBl...
[ "0.7787001", "0.74646026", "0.7195832", "0.66385555", "0.6068628", "0.60474825", "0.60128266", "0.588616", "0.5852039", "0.57307047", "0.5568776", "0.5523588", "0.551258", "0.5492811", "0.5464939", "0.5444759", "0.5407897", "0.53811395", "0.53414226", "0.5311116", "0.5305521"...
0.7514792
1
Retrieves building block by building block type and code.
BuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;", "public ProductionBlock getSpecificProductionBlock(int id);", "Block getBlock(String congName, String blockName, St...
[ "0.68347394", "0.67596614", "0.6255818", "0.6136891", "0.6037349", "0.60241205", "0.57170045", "0.5685178", "0.56376475", "0.55998087", "0.55788153", "0.5525427", "0.5483144", "0.5446799", "0.5441459", "0.5392457", "0.5383831", "0.5348644", "0.5345394", "0.53267205", "0.53242...
0.8276948
0
Retrieve all mandatory building blocks.
Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "public ProductionBlock[] getAllProductionBlocks();", "public Builder isMandatory(boolean mandatory) {\n this.mandatory = mandatory;\n return this;\n }", "public void loadLiabilitiesBuildingBlocks() {\n...
[ "0.6328299", "0.55504954", "0.52568036", "0.5238809", "0.5184628", "0.5164031", "0.5164031", "0.5043934", "0.5039456", "0.50328225", "0.5022741", "0.5018034", "0.49915853", "0.49727875", "0.496507", "0.49605295", "0.48797596", "0.48524648", "0.48376265", "0.48319662", "0.4810...
0.82985896
0
Retrieve all fee Type building blocks for a branch by fee classification.
Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId, FeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "Collection<BuildingBlock> findBui...
[ "0.75419295", "0.70518214", "0.6779421", "0.6774471", "0.6562099", "0.5651718", "0.55064225", "0.5406146", "0.5405818", "0.5405617", "0.5399644", "0.51986223", "0.51946384", "0.51866955", "0.5132046", "0.5110421", "0.50259364", "0.4989588", "0.4964487", "0.495023", "0.4901395...
0.75541663
0
Retrieve all fee Type building block for a branch by fee type.
Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException, SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessExcepti...
[ "0.71707964", "0.71374613", "0.68036836", "0.67809546", "0.6416381", "0.59815866", "0.5453043", "0.52875036", "0.52566993", "0.5186101", "0.5178046", "0.5156912", "0.5105399", "0.5088562", "0.50846857", "0.5083156", "0.5053611", "0.50334775", "0.50169605", "0.5003711", "0.496...
0.75670993
0
String path = "/Users/amit/Documents/CoreJavaJuneBatch/TestEngine/src/com/brainmentors/testengine/question/helper/QuestionUploadHelper.java";
public void read() throws IOException { String path = "/Users/amit/Documents/songs/A.mp3"; File file = new File(path); final int EOF = -1; if(file.exists()) { System.out.println("Exist..."); FileInputStream fs = new FileInputStream(path); BufferedInputStream bs = new BufferedInputStream(fs); long startTime = System.currentTimeMillis(); int singleByte = bs.read(); // read single byte while(singleByte!=EOF) { //System.out.print((char)singleByte); singleByte = bs.read(); } long endTime = System.currentTimeMillis(); System.out.println("Total Time Taken "+(endTime-startTime)+"ms"); bs.close(); fs.close(); } else { System.out.println("File Not Exist"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void filePathTest() {\n // TODO: test filePath\n }", "String getFilepath();", "@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\...
[ "0.569015", "0.5655159", "0.5612888", "0.55733263", "0.55733263", "0.5510181", "0.5425325", "0.54089105", "0.5392603", "0.5385909", "0.5350695", "0.5326545", "0.53047967", "0.52910215", "0.52881336", "0.52046466", "0.52022916", "0.5191281", "0.51890284", "0.5182748", "0.51763...
0.0
-1
Le player est un solidBody
public Enemy(Texture tex) { super(tex); m_type = "enemy"; m_controller = new IAController(); m_weapon = new AttackEmitter(); m_lifeBar.setScale(new Vector2(0.3f,0.3f)); m_speed = 50; m_life = 4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PlayerController(World world, ElementModel model) {\n super(world, model, BodyDef.BodyType.DynamicBody);\n\n state = new FloatState();\n\n this.width = imageWidth;\n this.height = imageHeight;\n\n //head\n FixtureInfo info = new FixtureInfo(new float[]{\n ...
[ "0.6721123", "0.63223326", "0.62411207", "0.6096732", "0.60086715", "0.5912954", "0.59041625", "0.586669", "0.58133423", "0.5771105", "0.5763531", "0.57634705", "0.5755307", "0.57446784", "0.57284415", "0.56984466", "0.5684864", "0.5683224", "0.56443155", "0.56310356", "0.562...
0.0
-1
gestion des armes :
public void changeWeapon(String weaponName) { m_weapon.changeAttack(weaponName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void limpiarDatos() {\n\t\t\n\t}", "public void generTirarDados() {\n\r\n\t}", "public void buscarGestor(){\r\n\t\t\r\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "private void mostrarEmenta (){\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "@Override\n\tpublic ...
[ "0.7029134", "0.6757484", "0.67514914", "0.67182046", "0.6539602", "0.65334374", "0.6524766", "0.64392793", "0.6406957", "0.639225", "0.63683695", "0.63594306", "0.6357561", "0.6345025", "0.63209933", "0.6313169", "0.6310739", "0.6301717", "0.6268372", "0.62479705", "0.623694...
0.0
-1
update check le controller avant l'update des forces. Permet de rajouter les forces pour le saut, ou de modifier la vitesse
public void updateIAController(float deltaTime, Vector2 targetPosition) { m_controller.setTargetPosition(targetPosition); m_controller.setAttackRange(1000); m_controller.setOwnLife(m_life); m_controller.setOwnPosition(getPosition()); m_controller.setVisibility(100000); m_controller.update(deltaTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateForces() {\n\t\tapplyForce(new Vector(0, 0.05));\r\n\t}", "public void makeUpdate()\n {\n this.mustUpdate = true;\n }", "public void update() {\n\t\tupdateController();\n\t\tupdateTimer();\n\t\tupdateTrifecta();\n\t\tupdateGyro();\n\t\tupdateGameTime();\n\t\t//upda...
[ "0.68405735", "0.6724104", "0.66741675", "0.65657187", "0.65657187", "0.650432", "0.64982146", "0.64771724", "0.64559937", "0.64406043", "0.64403236", "0.64403236", "0.64403236", "0.64403236", "0.6412814", "0.6377321", "0.6373351", "0.6324055", "0.629678", "0.6282861", "0.628...
0.0
-1
Color screenColor = batch.getColor();
@Override public void draw(Batch batch) { if(m_texRegion.isFlipX() && m_rightDirection) m_texRegion.flip(true, false); else if(!m_texRegion.isFlipX() && !m_rightDirection) m_texRegion.flip(true, false); if(this.m_isInvulnerable) batch.setColor(1,1,1,0.5f); else batch.setColor(new Color(Color.WHITE)); this.updateTransform(); batch.draw(m_texRegion, this.getDimension().x, this.getDimension().y, this.getTransform()); batch.setColor(new Color(Color.WHITE)); m_lifeBar.setLife((int) this.m_life); m_lifeBar.setPosition(this.getPosition().add(0, 64)); m_lifeBar.draw(batch); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameColor getColor();", "public Color getColor() { return color; }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n { \n return color;\n }", "public Color getColor(){\n return color;\n }", "public Color getScreenBackgroundColo...
[ "0.68459815", "0.6758661", "0.6758217", "0.6661535", "0.6659042", "0.6626728", "0.65297246", "0.6526439", "0.647206", "0.6468707", "0.6466903", "0.64619124", "0.6451791", "0.6447872", "0.6447872", "0.6447412", "0.6447412", "0.6447412", "0.64382005", "0.64267975", "0.6410169",...
0.0
-1
JsonValue playerData = jsonData.get("enemy");
@Override public void read(Json json, JsonValue jsonData) { super.read(json, jsonData); System.out.println("enemyData = "+jsonData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Level readJson(String jsonName) {\n\n InputStream levelInputStream;\n try {\n levelInputStream = new FileInputStream(jsonName);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n JsonReader levelReader = Json.createReader(levelInputStream);...
[ "0.5781079", "0.56187975", "0.5509987", "0.54994005", "0.53478986", "0.5344269", "0.5344269", "0.5344269", "0.5333743", "0.53323346", "0.5315126", "0.52958745", "0.5275624", "0.5258517", "0.5226722", "0.522579", "0.5220207", "0.51927406", "0.51890695", "0.51849717", "0.516771...
0.7644505
0
int totalUsuarios = 0;
public void registrar() { try { do { //totalUsuarios = this.registraUnUsuario(totalUsuarios); this.registraUnUsuario(); } while (!this.salir()); } catch (IOException e) { flujoSalida.println("Error de entrada/salida, finalizará la aplicación."); } flujoSalida.println("Total usuarios registrados: "+totalUsuarios); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sumarUnidad() {\r\n\t\tcantidad++;\r\n\t}", "public int getTotalEntradas() {\n\t\treturn totalEntradas;\n\t}", "public int getSueldoTotal() {\n return sueldoTotal;\n }", "public int getTotal () {\n return total;\n }", "public int getTotal() {\n return total;\n }", ...
[ "0.68716204", "0.68208665", "0.67443216", "0.67319214", "0.6714175", "0.65493035", "0.6533075", "0.6533075", "0.6523188", "0.65219486", "0.65006006", "0.6461012", "0.6461012", "0.6461012", "0.6460383", "0.64600086", "0.64600086", "0.6451609", "0.6450468", "0.64065224", "0.640...
0.0
-1
Connect will establish the connection to Cloud Bigtable.
public static void connect() throws IOException { if (PROJECT_ID == null || INSTANCE_ID == null) { if (sc != null) { sc.log("environment variables BIGTABLE_PROJECT, and BIGTABLE_INSTANCE need to be defined."); } return; } connection = BigtableConfiguration.connect(PROJECT_ID, INSTANCE_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeConnection() {\n\n cluster = Cluster.builder().addContactPoint(host).build();\n session = cluster.connect(keyspaceName);\n session.execute(\"USE \".concat(keyspaceName));\n }", "public void connect(){\n if (connected) {\n // connection already established\n ...
[ "0.6377862", "0.61530465", "0.60479856", "0.6021939", "0.58095187", "0.5804947", "0.5802677", "0.5793418", "0.5791489", "0.57720613", "0.57475215", "0.5734687", "0.57162505", "0.5707263", "0.5697627", "0.56910557", "0.56830376", "0.5660414", "0.565988", "0.5648357", "0.563862...
0.7315145
0
Get the shared connection to Cloud Bigtable.
public static Connection getConnection() { if (connection == null) { try { connect(); } catch (IOException e) { if (sc != null) { sc.log("connect ", e); } } } if (connection == null) { if (sc != null) { sc.log("BigtableHelper-No Connection"); } } return connection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }", "public static Connection getConn() {\n return conn;\n }", "public static Connection getConnection() {\n return singleInstance.createConnection();\n }", "private static Connection getConnectio...
[ "0.64201444", "0.6062464", "0.60622334", "0.6059309", "0.60326254", "0.6005219", "0.5995696", "0.5995696", "0.5995696", "0.5983024", "0.5983024", "0.5931139", "0.5925399", "0.5906662", "0.5906662", "0.5897939", "0.58902884", "0.5876616", "0.5868992", "0.58671933", "0.58661747...
0.70330226
0
This will be invoked as part of a warmup request, or the first user request if no warmup request was invoked.
@Override public void contextInitialized(ServletContextEvent event) { if (event != null) { sc = event.getServletContext(); if (PROJECT_ID == null) { PROJECT_ID = sc.getInitParameter("BIGTABLE_PROJECT"); } if (INSTANCE_ID == null) { INSTANCE_ID = sc.getInitParameter("BIGTABLE_INSTANCE"); } } if (PROJECT_ID != null && PROJECT_ID.startsWith("@")) { PROJECT_ID = null; } if (INSTANCE_ID != null && INSTANCE_ID.startsWith("@")) { INSTANCE_ID = null; } if (PROJECT_ID == null) { PROJECT_ID = System.getProperty("BIGTABLE_PROJECT"); } if (INSTANCE_ID == null) { INSTANCE_ID = System.getProperty("BIGTABLE_INSTANCE"); } try { connect(); } catch (IOException e) { if (sc != null) { sc.log("BigtableHelper - connect ", e); } } if (connection == null) { if (sc != null) { sc.log("BigtableHelper-No Connection"); } } if (sc != null) { sc.log("ctx Initialized: " + PROJECT_ID + " " + INSTANCE_ID); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void warmUp();", "public Object call() {\n if (_needWarmup) {\n warmup(); \n _needWarmup = false;\n }\n else {\n run();\n _needWarmup = true;\n }\n return null;\n }", "public void warmup(TestCase testCase) { \n ...
[ "0.6539642", "0.6098558", "0.574792", "0.5673036", "0.55091023", "0.5334554", "0.5328945", "0.5305661", "0.5287669", "0.5199041", "0.5196308", "0.51683563", "0.5103165", "0.508161", "0.5075438", "0.50331753", "0.49350587", "0.49346584", "0.49174336", "0.4915401", "0.49085385"...
0.0
-1
App Engine does not currently invoke this method.
@Override public void contextDestroyed(ServletContextEvent event) { if (connection == null) { return; } try { connection.close(); } catch (IOException io) { if (sc != null) { sc.log("contextDestroyed ", io); } } connection = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onFirstUse() {}", "@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "@java.lang.Override\n public boolean hasAppEngineV...
[ "0.57595384", "0.5557935", "0.55287725", "0.5523616", "0.55192316", "0.5507273", "0.5499211", "0.548739", "0.548312", "0.5482735", "0.547717", "0.54659057", "0.5465577", "0.5465577", "0.5465577", "0.54594713", "0.54485685", "0.54437846", "0.54216063", "0.5417127", "0.5414768"...
0.0
-1
A Spatial Database is in charge of store, delete and retrieve spatial objects. For each object an identifier (i.e. id) is specified, but is is not unique. An identifier can be associated to many spatial object and a spatial object can be associated to many id. The SpatialDatabase is in charge to generate and handle spatial identifier (i.e. spatialId) for each spatial object such that a couple (id, geoId) univocally identifies a spatial object.
public interface ISpatialDatabase { /** * Return the name of the SpatialDatabase * * @return The name of the SpatialDatabase */ String getName(); /** * Retrieve the bounds which contain all the indexed objects. * * @return The bounds */ RectangleLatLng getBounds(); /** * Store the rectangle in the database. * * @param rectangle * @param id */ void storeObject(RectangleLatLng rectangle, String id); /** * Store the point in the database * * @param point * @param id */ void storeObject(PointLatLng point, String id); /** * Store the circle in the database * * @param circle * @param id */ void storeObject(Circle circle, String id); /** * Store the polygon in the database * * @param polygon * @param id */ void storeObject(Polygon polygon, String id); /** * Remove the rectangle associated to the given id from the spatial * database. * * @param rectangle * The rectangle to be removed * @param id * The identifier to be removed * @return True if the removal was successful */ boolean removeObject(RectangleLatLng rectangle, String id); /** * Remove the point associated to the given id from the spatial database. * * @param point * The point to be removed * @param id * The identifier to be removed * @return True if the removal was successful */ boolean removeObject(PointLatLng point, String id); /** * Remove the circle associated to the given id from the spatial database. * * @param circle * The circle to be removed * @param id * The identifier to be removed * @return True if the removal was successful */ boolean removeObject(Circle circle, String id); /** * Remove the polygon associated to the given id from the spatial database. * * @param polygon * The polygon to be removed * @param id * The identifier to be removed * @return True if the removal was successful */ boolean removeObject(Polygon polygon, String id); /** * Deletes all the spatial objects associated to the given id * * @param id * The identifier to be removed * @return True if the database changed its statusF */ boolean removeObject(String id); /** * Retrieves the couple (id, geoId) of all the spatial object that * intersects with the bounds given as input * * @param bounds * @return Map Id->Set&lt;GeoId&gt; resulting from the query */ Multimap<String, String> intersects(RectangleLatLng bounds); /** * Retrieves the couple (id, geoId) of all the spatial object that * intersects with the bounds given as input * * @param bounds * @return Map Id->Set&lt;GeoId&gt; resulting from the query */ Multimap<String, String> intersects(PointLatLng point); /** * Retrieves the couple (id, geoId) of all the spatial object that * intersects with the bounds given as input * * @param bounds * @return Map Id->Set&lt;GeoId&gt; resulting from the query */ Multimap<String, String> intersects(Circle bounds); /** * Retrieves the couple (id, geoId) of all the spatial object that * intersects with the bounds given as input * * @param bounds * @return Map Id->Set&lt;GeoId&gt; resulting from the query */ Multimap<String, String> intersects(Polygon bounds); /** * Return true if the specified identifier id is stored in the * SpatialDatabase * * @param id * @return */ boolean hasGeoInformation(String id); void reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void storeObject(Polygon polygon, String id);", "void storeObject(PointLatLng point, String id);", "public static SqlOperatorTable spatialInstance() {\n return SPATIAL.get();\n }", "public interface IdbLocation {\n\n Location createLocation(int _id, String _name); //throws DBException;\n Location s...
[ "0.57755107", "0.56935", "0.55740756", "0.531495", "0.5117905", "0.5100995", "0.50853384", "0.5017615", "0.4993976", "0.49929026", "0.49929026", "0.4954822", "0.4951328", "0.49190778", "0.49065444", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437",...
0.7205236
0
Return the name of the SpatialDatabase
String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "@Override\n public String getDatabaseName() {\n return mappings.getDatabaseName();\n }", "public String databaseName();", "@java.lang....
[ "0.7664524", "0.7664524", "0.7664524", "0.7664524", "0.7373657", "0.7322456", "0.7044737", "0.7044737", "0.7044737", "0.7044737", "0.7043759", "0.7010696", "0.7010696", "0.7010696", "0.7010696", "0.69023395", "0.6883332", "0.68608105", "0.6824344", "0.6805212", "0.6805212", ...
0.0
-1
Retrieve the bounds which contain all the indexed objects.
RectangleLatLng getBounds();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Bound> getBounds() {\n return Collections.unmodifiableList(bounds);\n }", "public Bounds getBounds () { return (bounds); }", "public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBo...
[ "0.6801677", "0.6774096", "0.6667588", "0.66559666", "0.6606496", "0.65099466", "0.636716", "0.6349986", "0.62794816", "0.6273725", "0.62614745", "0.6245105", "0.6232412", "0.6167793", "0.61408764", "0.6140431", "0.61278796", "0.6106341", "0.6106341", "0.60306233", "0.6019206...
0.5857468
37
Store the rectangle in the database.
void storeObject(RectangleLatLng rectangle, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void storeRectangle(Roi roi, MetadataStore store,\n int roiNum, int shape)\n {\n Rectangle bounds = roi.getBounds();\n store.setRectangleX(new Double(bounds.x), roiNum, shape);\n store.setRectangleY(new Double(bounds.y), roiNum, shape);\n store.setRectangleWidth(new Double(boun...
[ "0.6863947", "0.56340045", "0.5599744", "0.55212855", "0.5520737", "0.54749876", "0.5453971", "0.5447527", "0.5430093", "0.5399607", "0.53953034", "0.53509307", "0.53362507", "0.53348696", "0.5333131", "0.52991766", "0.5297999", "0.52177733", "0.5205234", "0.5195397", "0.5184...
0.6756426
1
Store the point in the database
void storeObject(PointLatLng point, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void save(HrUserPoint hrUserPoint) {\n\t\tthis.sessionFactory.getCurrentSession().save(hrUserPoint);\n\t}", "@Override\r\n\t\tpublic Savepoint setSavepoint() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "private void addUserPoint() {\n\n String userRefEmail = edtEmailPengguna...
[ "0.6812628", "0.64852196", "0.6451334", "0.6197212", "0.61292905", "0.6081005", "0.6075524", "0.60745394", "0.6010336", "0.59997994", "0.58999205", "0.58962363", "0.585787", "0.5814911", "0.58060825", "0.5782736", "0.57790774", "0.5772398", "0.57321906", "0.57321584", "0.5731...
0.7396409
0
Store the circle in the database
void storeObject(Circle circle, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String saveShape(){\n\t\tString s = \"\";\n\t\ts+=\"Circle\\n\";\n\t\ts+= this.circle.toString();\n\t\tint xPoint = this.circle.getCentre().getX();\n\t\tint yPoint = this.circle.getCentre().getY();\n\t\tint radius = this.circle.getRadius();\n\t\ts+= \"\\tcenter:(\"+ xPoint + \",\"+ yPoint+\")\\n\";\n\t\ts+=...
[ "0.59487784", "0.5565754", "0.54931754", "0.5487285", "0.54731333", "0.54611313", "0.5415668", "0.5412941", "0.5361371", "0.53152645", "0.5270309", "0.52443945", "0.5234292", "0.5204652", "0.51972663", "0.5182106", "0.5177488", "0.5176673", "0.5169967", "0.5143869", "0.507648...
0.72150695
0
Store the polygon in the database
void storeObject(Polygon polygon, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void savePolygon()\n {\n if (canSavePolygon())\n {\n SaveDialog dialog = new SaveDialog(createPolygonActivity, this, model);\n dialog.show();\n }\n }", "private static void storePolygon(PolygonRoi roi, MetadataStore store,\n int roiNum, int shape)\n {...
[ "0.7300955", "0.686361", "0.64638245", "0.63456845", "0.62538993", "0.620016", "0.60866684", "0.59547526", "0.5915643", "0.5765332", "0.5724249", "0.5634525", "0.55362993", "0.54708314", "0.54581976", "0.54499596", "0.544905", "0.5409259", "0.53982145", "0.5366991", "0.536280...
0.7844984
0
Remove the rectangle associated to the given id from the spatial database.
boolean removeObject(RectangleLatLng rectangle, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeByid_(long id_);", "boolean removeObject(Polygon polygon, String id);", "public void removeObject(String id) {\n\taddCollisionObject(CollisionObjectWrapper.removeObject(id));\n }", "void remove(Long id);", "void remove(Long id);", "void remove(String id);", "void remove(String id);...
[ "0.6735684", "0.6662711", "0.6410094", "0.6381661", "0.6381661", "0.6348271", "0.6348271", "0.6348271", "0.62807393", "0.6236415", "0.6216539", "0.61743003", "0.6168281", "0.616771", "0.6148126", "0.6148126", "0.61046636", "0.6090141", "0.6067798", "0.6046256", "0.6021546", ...
0.7771584
0
Remove the point associated to the given id from the spatial database.
boolean removeObject(PointLatLng point, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeByid_(long id_);", "public void remove(GPoint point) {\n\t\tpoints.remove(point);\n\t}", "void remove(Long id);", "void remove(Long id);", "void remove(PK id);", "public boolean removePoint(Point p);", "public void eliminarTripulante(Long id);", "void remove(String id);", "void re...
[ "0.69164133", "0.68020505", "0.6688912", "0.6688912", "0.66021", "0.65599847", "0.6530286", "0.64969474", "0.64969474", "0.64969474", "0.646104", "0.64581454", "0.64571935", "0.643659", "0.6434557", "0.63649523", "0.6331945", "0.6313939", "0.629238", "0.6257635", "0.62463826"...
0.8021666
0
Remove the circle associated to the given id from the spatial database.
boolean removeObject(Circle circle, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean removeObject(PointLatLng point, String id);", "void remove(Long id);", "void remove(Long id);", "public void removeByid_(long id_);", "boolean removeObject(RectangleLatLng rectangle, String id);", "void remove(String id);", "void remove(String id);", "void remove(String id);", "public Curso...
[ "0.66726667", "0.66444254", "0.66444254", "0.6572698", "0.6503512", "0.63976836", "0.63976836", "0.63976836", "0.6392139", "0.63557416", "0.62600374", "0.6259377", "0.62330997", "0.6178197", "0.6159155", "0.61463344", "0.6136042", "0.61318564", "0.61185586", "0.6117642", "0.6...
0.77652884
0
Remove the polygon associated to the given id from the spatial database.
boolean removeObject(Polygon polygon, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean removeObject(PointLatLng point, String id);", "boolean removeObject(RectangleLatLng rectangle, String id);", "public void removeByid_(long id_);", "public void freeGeometry(final int id){\n\t\t//android.util.Log.d(TAG,\"freeGeometry(\"+id+\")\");\n\t\tthis.geometries.get(id).free();\n\t}", "void st...
[ "0.65348375", "0.63834053", "0.62394226", "0.6148551", "0.6106682", "0.60396576", "0.6011294", "0.5970015", "0.59377617", "0.5900462", "0.5855171", "0.5838219", "0.5838219", "0.5838219", "0.5821925", "0.5808298", "0.58030766", "0.57567686", "0.5753141", "0.5750836", "0.574797...
0.8157652
0
Deletes all the spatial objects associated to the given id
boolean removeObject(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteAll(MDSKey id) {\n deleteAll(id, x -> true);\n }", "public void freeGeometry(final int id){\n\t\t//android.util.Log.d(TAG,\"freeGeometry(\"+id+\")\");\n\t\tthis.geometries.get(id).free();\n\t}", "public void deleteObject(String id) {\n\t\t\n\t}", "void deleteFeature(Integer id);", "bo...
[ "0.72733855", "0.68233424", "0.6740129", "0.6677967", "0.66057", "0.65611136", "0.64137423", "0.63930863", "0.63865966", "0.6385151", "0.6373267", "0.6357293", "0.63484293", "0.63261116", "0.63261116", "0.6302261", "0.63008314", "0.63002473", "0.6260503", "0.62504876", "0.625...
0.60568196
70
Retrieves the couple (id, geoId) of all the spatial object that intersects with the bounds given as input
Multimap<String, String> intersects(RectangleLatLng bounds);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Multimap<String, String> intersects(Polygon bounds);", "Multimap<String, String> intersects(Circle bounds);", "List<GeoPoint> findGeoIntersections(Ray ray);", "public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean useParallelStreaming = numPoints() > 10000;\n\t\treturn Utils.parall...
[ "0.649081", "0.6087731", "0.60737604", "0.5942413", "0.5879346", "0.5835114", "0.5622062", "0.5618572", "0.5519836", "0.5434651", "0.5379208", "0.53132844", "0.53093415", "0.5286779", "0.52793896", "0.52746534", "0.5257597", "0.52076375", "0.52075255", "0.5171447", "0.5170369...
0.6831096
0
Retrieves the couple (id, geoId) of all the spatial object that intersects with the bounds given as input
Multimap<String, String> intersects(PointLatLng point);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Multimap<String, String> intersects(RectangleLatLng bounds);", "Multimap<String, String> intersects(Polygon bounds);", "Multimap<String, String> intersects(Circle bounds);", "List<GeoPoint> findGeoIntersections(Ray ray);", "public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean us...
[ "0.6831715", "0.6491324", "0.6087959", "0.6075711", "0.5943503", "0.58803844", "0.58339465", "0.56223094", "0.5618762", "0.5436981", "0.53811383", "0.53115284", "0.5307903", "0.52897394", "0.52802956", "0.52749574", "0.52576935", "0.52109873", "0.52082026", "0.51717305", "0.5...
0.55206317
9
Retrieves the couple (id, geoId) of all the spatial object that intersects with the bounds given as input
Multimap<String, String> intersects(Circle bounds);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Multimap<String, String> intersects(RectangleLatLng bounds);", "Multimap<String, String> intersects(Polygon bounds);", "List<GeoPoint> findGeoIntersections(Ray ray);", "public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean useParallelStreaming = numPoints() > 10000;\n\t\treturn Uti...
[ "0.6831715", "0.6491324", "0.6075711", "0.5943503", "0.58803844", "0.58339465", "0.56223094", "0.5618762", "0.55206317", "0.5436981", "0.53811383", "0.53115284", "0.5307903", "0.52897394", "0.52802956", "0.52749574", "0.52576935", "0.52109873", "0.52082026", "0.51717305", "0....
0.6087959
2
Retrieves the couple (id, geoId) of all the spatial object that intersects with the bounds given as input
Multimap<String, String> intersects(Polygon bounds);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Multimap<String, String> intersects(RectangleLatLng bounds);", "Multimap<String, String> intersects(Circle bounds);", "List<GeoPoint> findGeoIntersections(Ray ray);", "public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean useParallelStreaming = numPoints() > 10000;\n\t\treturn Util...
[ "0.68314403", "0.60875344", "0.60733056", "0.59425133", "0.58784914", "0.58343583", "0.5622514", "0.56184566", "0.5519609", "0.5436653", "0.53796685", "0.5312688", "0.53088266", "0.52871656", "0.5280633", "0.5273473", "0.5257703", "0.52092147", "0.5207818", "0.5170024", "0.51...
0.64908296
1
Return true if the specified identifier id is stored in the SpatialDatabase
boolean hasGeoInformation(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean...
[ "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113"...
0.6796909
9
Fetch ingredient by id
public IngredientDto fetchOne(Long id) { Ingredient ingredient = repository.findById(id) .orElseThrow(() -> new IngredientNotFoundException(id)); return ingredientMapper.toDto(ingredient); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ingredient getById(Long id) {\n return ingredientRepository.getOne(id);\n }", "@GetMapping(\"/{id}/recipe/{recipeId}\")\n public ResponseEntity<IngredientDTO> getIngredient(@PathVariable Long recipeId, @PathVariable Long id){\n IngredientDTO ingredient = ingredientService.findByRecipeIdAndIn...
[ "0.7913175", "0.71183246", "0.701914", "0.6976105", "0.68982726", "0.6697262", "0.6692386", "0.6687074", "0.66277176", "0.6617896", "0.66096103", "0.64943695", "0.6484061", "0.6449413", "0.64043295", "0.63857794", "0.63731664", "0.6318515", "0.62966293", "0.62733454", "0.6259...
0.6977176
3
Run shellscript from resourcefolder.
static void executeShellScript(String scriptName, String value1, String value2, File workDirectory) throws IOSException { try { File tempFile = createTempFile(scriptName); if (value1 == null) { value1 = ""; } if (value2 == null) { value2 = ""; } ProcessBuilder processBuilder = new ProcessBuilder("sh", tempFile.getAbsoluteFile().toString(), value1, value2); processBuilder.directory(workDirectory); CommandHelper.performCommand(processBuilder); } catch (IOException e) { e.printStackTrace(); throw new IOSException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.delete...
[ "0.5710444", "0.557007", "0.55100816", "0.52476853", "0.523703", "0.5200068", "0.5172458", "0.51609236", "0.5157095", "0.5129851", "0.5126699", "0.51037455", "0.50908345", "0.4953551", "0.4878403", "0.4869485", "0.484949", "0.4818631", "0.48032665", "0.47941324", "0.47538713"...
0.50432456
13
/ METHODES PUBLIQUES / METHODES PRIVEES / ACCESSEURS
@XmlAttribute(name = "key") public String getKey() { return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void getPrix() {\n\t\t\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void topicsAdvertisedByPub() {\r\n int index = 1;\r\n System.out.println(\"Topics advertised by this publisher: \...
[ "0.5827838", "0.5718744", "0.5558656", "0.5420463", "0.52953374", "0.5292206", "0.5289021", "0.5275951", "0.526128", "0.52594817", "0.5255845", "0.52512175", "0.5230235", "0.5222055", "0.5220599", "0.5206349", "0.5174832", "0.5173055", "0.51694626", "0.5165319", "0.5154026", ...
0.0
-1
Converts the binary signature value to the Xml DSig format in function of used algorithm
public static byte[] convertToXmlDSig(final EncryptionAlgorithm algorithm, byte[] signatureValue) { try { if (algorithm == EncryptionAlgorithm.ECDSA) { return DSSSignatureUtils.convertECDSAASN1toXMLDSIG(signatureValue); } else if (algorithm == EncryptionAlgorithm.DSA) { return DSSSignatureUtils.convertDSAASN1toXMLDSIG(signatureValue); } return signatureValue; } catch (IOException e) { throw new RuntimeException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void valSig (String fileName) {\n javax.xml.parsers.DocumentBuilderFactory dbf =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n javax.xml.parsers.DocumentBuilder db = null;\n\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\...
[ "0.67579377", "0.6302856", "0.61846006", "0.61040425", "0.5989908", "0.5926714", "0.5926714", "0.58222705", "0.5815261", "0.57960165", "0.57541275", "0.57541275", "0.57541275", "0.5738415", "0.5696272", "0.5633874", "0.55615234", "0.55600035", "0.5558789", "0.55498856", "0.55...
0.5989124
5
Converts an ASN.1 DSA value to a XML Signature DSA Value. The JAVA JCE DSA Signature algorithm creates ASN.1 encoded (r,s) value pairs; the XML Signature requires the core BigInteger values.
public static byte[] convertDSAASN1toXMLDSIG(byte asn1Bytes[]) throws IOException { byte rLength = asn1Bytes[3]; int ii; for (ii = rLength; (ii > 0) && (asn1Bytes[(4 + rLength) - ii] == 0); ii--) ; byte sLength = asn1Bytes[5 + rLength]; int jj; for (jj = sLength; (jj > 0) && (asn1Bytes[(6 + rLength + sLength) - jj] == 0); jj--) ; if ((asn1Bytes[0] != 48) || (asn1Bytes[1] != asn1Bytes.length - 2) || (asn1Bytes[2] != 2) || (ii > 20) || (asn1Bytes[4 + rLength] != 2) || (jj > 20)) { throw new IOException("Invalid ASN.1 format of DSA signature"); } byte xmldsigBytes[] = new byte[40]; System.arraycopy(asn1Bytes, (4 + rLength) - ii, xmldsigBytes, 20 - ii, ii); System.arraycopy(asn1Bytes, (6 + rLength + sLength) - jj, xmldsigBytes, 40 - jj, jj); return xmldsigBytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] convertECDSAASN1toXMLDSIG(byte asn1Bytes[]) throws IOException {\n\n if (asn1Bytes.length < 8 || asn1Bytes[0] != 48) {\n throw new IOException(\"Invalid ASN.1 format of ECDSA signature\");\n }\n int offset;\n if (asn1Bytes[1] > 0) {\n offset = 2;\n } el...
[ "0.635876", "0.63514173", "0.5773178", "0.5619515", "0.5415589", "0.5327816", "0.50824857", "0.5060828", "0.5022955", "0.49923712", "0.4984381", "0.47521865", "0.47292075", "0.47039115", "0.46701622", "0.46666834", "0.46651322", "0.46323913", "0.4622235", "0.46202332", "0.461...
0.70818424
0
Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value. The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r,s) value pairs; the XML Signature requires the core BigInteger values.
public static byte[] convertECDSAASN1toXMLDSIG(byte asn1Bytes[]) throws IOException { if (asn1Bytes.length < 8 || asn1Bytes[0] != 48) { throw new IOException("Invalid ASN.1 format of ECDSA signature"); } int offset; if (asn1Bytes[1] > 0) { offset = 2; } else if (asn1Bytes[1] == (byte) 0x81) { offset = 3; } else { throw new IOException("Invalid ASN.1 format of ECDSA signature"); } byte rLength = asn1Bytes[offset + 1]; int i; for (i = rLength; (i > 0) && (asn1Bytes[(offset + 2 + rLength) - i] == 0); i--) ; byte sLength = asn1Bytes[offset + 2 + rLength + 1]; int j; for (j = sLength; (j > 0) && (asn1Bytes[(offset + 2 + rLength + 2 + sLength) - j] == 0); j--) ; int rawLen = Math.max(i, j); if ((asn1Bytes[offset - 1] & 0xff) != asn1Bytes.length - offset || (asn1Bytes[offset - 1] & 0xff) != 2 + rLength + 2 + sLength || asn1Bytes[offset] != 2 || asn1Bytes[offset + 2 + rLength] != 2) { throw new IOException("Invalid ASN.1 format of ECDSA signature"); } byte xmldsigBytes[] = new byte[2 * rawLen]; System.arraycopy(asn1Bytes, (offset + 2 + rLength) - i, xmldsigBytes, rawLen - i, i); System.arraycopy(asn1Bytes, (offset + 2 + rLength + 2 + sLength) - j, xmldsigBytes, 2 * rawLen - j, j); return xmldsigBytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] convertToXmlDSig(final EncryptionAlgorithm algorithm, byte[] signatureValue) {\n\n try {\n\n if (algorithm == EncryptionAlgorithm.ECDSA) {\n\n return DSSSignatureUtils.convertECDSAASN1toXMLDSIG(signatureValue);\n } else if (algorithm == EncryptionAlgorithm.DSA) ...
[ "0.6162997", "0.57377565", "0.54779273", "0.52519107", "0.5106254", "0.51000893", "0.50536865", "0.5025481", "0.50198585", "0.49567202", "0.4939543", "0.493072", "0.4889353", "0.48608252", "0.48152313", "0.47989672", "0.4783343", "0.475844", "0.47308806", "0.47300684", "0.470...
0.66665566
0
todo check CTCI solution and modify the code
public static String compress(String str) { if (str.length() <= 1) return str; StringBuilder sb = new StringBuilder(); int currentCharacterCounter = 1; char previousCharacter = str.charAt(0); sb.append(previousCharacter); for(int i = 1; i < str.length(); i ++) { char currentCharacter = str.charAt(i); if(currentCharacter != previousCharacter) { previousCharacter = currentCharacter; sb.append(currentCharacterCounter).append(previousCharacter); currentCharacterCounter = 1; } else { currentCharacterCounter++; } } sb.append(currentCharacterCounter); String compressedString = sb.toString(); return compressedString.length() < str.length() ? compressedString : str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo12628c() {\n }", ...
[ "0.63286173", "0.5743566", "0.5582122", "0.55773425", "0.54831713", "0.54298824", "0.5378225", "0.53627735", "0.5352019", "0.5348025", "0.5347056", "0.53381485", "0.5337092", "0.5324424", "0.53241664", "0.531572", "0.53043246", "0.53043246", "0.52958137", "0.52911896", "0.528...
0.0
-1
Created by fangqing on 11/24/17.
public interface UpdateObject { public void update(Object o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n...
[ "0.61580145", "0.5969738", "0.5948841", "0.5924429", "0.5919432", "0.5919432", "0.58893037", "0.5852881", "0.5848375", "0.58481234", "0.58391213", "0.5822946", "0.5822887", "0.5804238", "0.5784479", "0.57693857", "0.57687736", "0.57576805", "0.57443196", "0.574264", "0.573771...
0.0
-1
read through the log file
public void getListOfUpdatedFiles(List<TrainingFiles> listOfUpdatedFile, String logPath, PropertiesConfiguration propertiesConf) { BufferedReader br = null; FileReader fr = null; try{ fr = new FileReader(logPath); br = new BufferedReader(fr); String sCurrentLine; while((sCurrentLine = br.readLine())!= null){ //make multipart files TrainingFiles trFiles = new TrainingFiles(); trFiles = createTrainingFileObjects(sCurrentLine, trFiles, propertiesConf); listOfUpdatedFile.add(trFiles); } } catch(Exception e){ } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void readLog() {\n MemoryCache instance = MemoryCache.getInstance();\n try (Stream<String> stream = Files.lines(Paths.get(path)).skip(instance.getSkipLine())) {\n stream.forEach(s -> {\n Result result = readEachLine(s);\n instance.putResult...
[ "0.7713957", "0.7406073", "0.69254816", "0.6789952", "0.677659", "0.67363316", "0.6673395", "0.65717643", "0.65228826", "0.6306014", "0.6279947", "0.6225237", "0.60765123", "0.6065388", "0.6042261", "0.6033391", "0.6007402", "0.5988399", "0.59775376", "0.5928497", "0.58820266...
0.0
-1
Created by Monika on 10/23/2016.
public interface DiscountService extends ServiceInterface<DiscountEntity>{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public...
[ "0.6148032", "0.5954433", "0.5903123", "0.5901085", "0.58705", "0.58052886", "0.57289577", "0.57264596", "0.57264596", "0.57207626", "0.5716798", "0.5716798", "0.5716798", "0.5716798", "0.5716798", "0.5716798", "0.57114774", "0.5689061", "0.56882375", "0.56752425", "0.5669463...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int capacity = sc.nextInt(); int numitems = sc.nextInt(); int[] weights = new int[numitems]; int[] values = new int[numitems]; for(int i = 0; i < numitems; i++){ weights[i] = sc.nextInt(); } for(int i = 0; i < numitems; i++){ values[i] = sc.nextInt(); } knapsack(weights, values, capacity); sc.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
This method is used for adding custom question to Service with "Open Answer" type
public void addOpenAnswerQuestion(String question) { cmbQuestionType.select(questionType); txbQuestion.type(question); btnAddQuestion.clickAndWait(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addQuestionAnswer(Answer answer);", "private void creatingNewQuestion() {\r\n AbstractStatement<?> s;\r\n ListQuestions lq = new ListQuestions(ThemesController.getThemeSelected());\r\n switch ((String) typeQuestion.getValue()) {\r\n case \"TrueFalse\":\r\n // j...
[ "0.68903697", "0.672988", "0.6682896", "0.63964206", "0.63924915", "0.6350318", "0.63387215", "0.63274086", "0.63026625", "0.620407", "0.6110532", "0.6105348", "0.6083593", "0.6049199", "0.6031816", "0.6018094", "0.60038257", "0.59935325", "0.5958619", "0.59576595", "0.595305...
0.78198135
0
Click veteran service all radiobutton.
public void clickVeteranServiceAll() { rbVeteranServiceAll.click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Then(\"^I click general radio button$\")\n public void i_click_general_radio_button() {\n onViewWithId(R.id.general).click();\n }", "@Then(\"^I click by Park radio button$\")\n public void i_click_by_Park_radio_button() {\n onViewWithId(R.id.byPark).click();\n }", "@Override\r\n ...
[ "0.6587465", "0.6539562", "0.63887596", "0.63153577", "0.6280658", "0.62078816", "0.6189619", "0.61744225", "0.6163522", "0.6140117", "0.60719204", "0.60598505", "0.6053304", "0.6044411", "0.60142875", "0.6010316", "0.60089266", "0.6007977", "0.5997021", "0.5973275", "0.59628...
0.74209815
0
Select reset exit date yes or no.
public void selectResetExitDate(Boolean resetExitDate) { if (resetExitDate) { rbResetExitDateYes.click(); } else { rbResetExitDateNo.click(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickCalendarCheckOutDate() {\n\t\tcalendarCheckOutButton.click();\n\t}", "boolean isSetDate();", "public void setExit(Boolean exit) {\r\n this.exit = exit;\r\n }", "public void setExit(boolean exit) {\r\n this.exit = exit;\r\n }", "protected void setReturnDate(Date d){ this.retur...
[ "0.5824597", "0.5508281", "0.54080147", "0.5352209", "0.53309035", "0.5313379", "0.52875197", "0.5271623", "0.52710223", "0.5246963", "0.5174445", "0.5161927", "0.51512855", "0.5147043", "0.513927", "0.5129034", "0.5126436", "0.5110794", "0.50971824", "0.5063225", "0.5049578"...
0.81584483
0
Click No fee radio button.
public void clickNoFee() { rbNoFee.click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}", "public void noReceipt() {\n\t\tpause(1000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"salescom...
[ "0.67374706", "0.64485586", "0.6399603", "0.6332137", "0.6118977", "0.6075209", "0.5921444", "0.58660907", "0.5823887", "0.581575", "0.5778554", "0.57553786", "0.5750075", "0.5743438", "0.5742938", "0.5729414", "0.5710401", "0.5701184", "0.5687777", "0.5614791", "0.5593771", ...
0.87659854
0
Integer x = Integer.parseInt("128"); Integer y = Integer.parseInt("128"); System.out.println(x==y); String str1 = "DD"; String str2 = "DD"; String str3 = "D"+"D"; String str4 = new String("DD"); System.out.println(str1 == str2); System.out.println(str2 == str3); System.out.println(str3 == str4); String str4 = new String("DD"); str4 = str4.intern(); String str2 = "DD"; System.out.println(str4 == str2); int a = 000001; byte i = 01; byte s = 127; s+= 1; System.out.println(s);
public static void main(String[] args) { System.out.println(Runtime.getRuntime().availableProcessors()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tString s = new String(\"abc\");\r\n\t\tSystem.out.println(s.hashCode());\r\n\t\tCharacter a = 'a';\r\n\t\tCharacter b = 'b';\r\n\t\tCharacter c = 'c';\r\n\t\tint i = a;\r\n\t\tSystem.out.println(i);\r\n\t\tSystem.out.println(new Integer(b));\r\n\t\tSystem.out.println(n...
[ "0.75254697", "0.6682278", "0.66577643", "0.6597049", "0.65849745", "0.6577356", "0.6552811", "0.65019417", "0.6400576", "0.63192976", "0.6278916", "0.62620604", "0.6223514", "0.6223138", "0.6192142", "0.61495376", "0.613928", "0.6133405", "0.6127187", "0.60811156", "0.607820...
0.0
-1
Si el usuario ya esta registrado no se le muestra la actividad de login
private void ComprobarCredenciales(SharedPreferences preferencias){ if(preferencias.getBoolean("autenticado", false)){ //Toast.makeText(this, "Autenticado", Toast.LENGTH_SHORT).show(); startActivity(new Intent(this, ContentActivity.class)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }", "public boolean verificarUsuario(){\n boolean estado = false;\n try{\n this.usua...
[ "0.69845843", "0.69826484", "0.69538355", "0.6952017", "0.691195", "0.6804284", "0.6704292", "0.6684788", "0.6676072", "0.6663844", "0.6660367", "0.66194147", "0.66194147", "0.6591555", "0.65778196", "0.65461075", "0.65432787", "0.6542578", "0.6536946", "0.6517396", "0.651403...
0.0
-1
Toast.makeText(this, "Presionando The Button", Toast.LENGTH_SHORT).show();
@Override public void onClick(View view) { if(etName.getText().toString().isEmpty()){ nameWrapper.setError(getResources().getString(R.string.nameEmpty)); }else{ if (etPass.getText().toString().matches(PASSWORD)){ SharedPreferences preferencias = getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE); SharedPreferences.Editor editor = preferencias.edit(); editor.putString("userName", etName.getText().toString()); editor.putBoolean("autenticado", !preferencias.getBoolean("autenticado", false)); editor.commit(); ComprobarCredenciales(preferencias); }else{ etPass.setText(""); passwordWrapper.setError(getResources().getString(R.string.passError)); } } getCurrentFocus().clearFocus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }", "@Override\n public void onClick(View v) {\n Toast.makeT...
[ "0.785982", "0.78091156", "0.77475953", "0.7702846", "0.762899", "0.76065624", "0.75510013", "0.7533762", "0.75028163", "0.7431545", "0.74155784", "0.7382321", "0.73441464", "0.7335299", "0.7318649", "0.7296208", "0.72752386", "0.72752386", "0.7247057", "0.7221353", "0.721309...
0.0
-1
Wait a little less this time out.
@Test public void testRetry() throws Exception { factory.setSecondsToWait(5L); CountDownLatch oneWorkerCreated = factory.getRunCountLatch(1); CountDownLatch secondWorkerCreated = factory.getRunCountLatch(2); LogFile logFile = tracker.open("foo", "/biz/baz/%s.log", DateTime.now()); manager.start(); //start manager first so it can register to receive notifications tracker.written(logFile); awaitLatch(oneWorkerCreated); logFile.setState(LogFileState.PREP_ERROR); //simulate failure of first prep attempt awaitLatch(secondWorkerCreated); //wait for retry }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} cat...
[ "0.76730585", "0.7419586", "0.7277367", "0.72037715", "0.7184567", "0.7130555", "0.71114564", "0.70432305", "0.70295054", "0.70025915", "0.6964294", "0.69623005", "0.6948799", "0.6928617", "0.6887953", "0.687538", "0.68650705", "0.6837165", "0.68278867", "0.6792952", "0.67740...
0.0
-1
The retryOneThenRetryAll scans the database for rows that are ready for prep but haven't completed prep and are not currently being prepared. Async processing is then scheduled. But the retry should not be scheduled if work is already inflight (either actively or pending) See
@Test public void testDoNotRetryInFlightWork() throws Exception { CountDownLatch oneWorkerCreated = factory.getRunCountLatch(1); CountDownLatch twoWorkersCreated = factory.getRunCountLatch(2); LogFile logFile = tracker.open("foo", "/biz/baz/%s.log", DateTime.now()); manager.start(); //start manager first so it can register to receive notifications tracker.written(logFile); awaitLatch(oneWorkerCreated); //wait initial worker //sigh. This is a slow test because we have to wait for the retry job to get not get scheduled. if (twoWorkersCreated.await(2 * RETRY_INTERVAL_SECONDS, TimeUnit.SECONDS)) { fail("Retry was scheduled for in-flight task!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void retryRequired(){\n startFetching(query);\n }", "public ExecuteResult<T> doRetry() throws SQLException {\n int tries = 0;\n SQLException sqle = null;\n while (tries < RETRY_LIMIT) {\n try {\n return execute();\n } catch (SQLException ...
[ "0.6383609", "0.5930885", "0.57377666", "0.57042146", "0.5637687", "0.5452581", "0.54326165", "0.5358176", "0.5351033", "0.5335186", "0.5330315", "0.53226286", "0.5306535", "0.5301694", "0.5281591", "0.52665097", "0.52625793", "0.5236853", "0.5215597", "0.5215597", "0.5215597...
0.47748223
65
Creates new form DiscountManagePanel
public DiscountManagePanel() throws ServiceNotFoundException { discountService=(DiscountService)ServiceManager.getService("Discount"); initComponents(); initDatas(); setActionListener(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> p...
[ "0.5822289", "0.58144104", "0.58003676", "0.577574", "0.5771208", "0.5719918", "0.5700512", "0.5687178", "0.5626159", "0.5625277", "0.5606719", "0.5546302", "0.54961586", "0.5493893", "0.548978", "0.5488955", "0.5483526", "0.5475228", "0.54040927", "0.5375532", "0.5365325", ...
0.67601156
0
Method name: initDatas Description: Put The Discount Datas Into The Table Remark: void
private void initDatas(){ jTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(discountService.getAllDiscountInfo(),"Discount")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initData() {\n\t}", "private void initData() {\n }", "public void initData() {\n }", "public void initData() {\n }", "private void initData() {\n\n }", "private void InitData() {\n\t}", "private void initData(){\n\n }", "private void initDataset(){\n dataSet.add(\"K...
[ "0.7178875", "0.71200925", "0.7099064", "0.7099064", "0.70814466", "0.69962496", "0.6914833", "0.6789598", "0.67683965", "0.67675775", "0.6762777", "0.6740726", "0.6694122", "0.66932034", "0.666396", "0.66355526", "0.66355526", "0.66355526", "0.66355526", "0.66355526", "0.663...
0.81030065
0
Method name: setActionListener Description: Set ActionListener Remark: void
private void setActionListener(){ this.addPropertyChangeListener("Refresh", this); deleteButton.addActionListener(this); addNewButton.addActionListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setActionListener() {\r\n\t\tactListener = new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactController.handleMenuAction(e);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public void setAction(ActionListener actionListener){\n this.actionListener = actionListener;\n ...
[ "0.77548313", "0.7562277", "0.738041", "0.7267979", "0.72011334", "0.70771176", "0.70609605", "0.6938373", "0.6852094", "0.68204165", "0.67916006", "0.6771506", "0.6771506", "0.67659247", "0.6729435", "0.6717239", "0.6715643", "0.6703126", "0.668882", "0.668882", "0.668882", ...
0.74099183
2
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
private void initComponents() { goHomeButton = ViewManager.createGoHomeButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = ViewUtil.createUneditableTable(); addNewButton = new javax.swing.JButton(); deleteButton = new javax.swing.JButton(); modifyButton = new javax.swing.JButton(); searchButton = new javax.swing.JButton(); searchTxtArea = new javax.swing.JTextField(); jComboBox1 = new javax.swing.JComboBox<>(); jScrollPane1.setViewportView(jTable1); addNewButton.setText("Add"); deleteButton.setText("Delete"); modifyButton.setText("Modify"); modifyButton.addActionListener(this); searchButton.setText("Search"); searchButton.addActionListener(this); searchTxtArea.setText(""); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(NameConverter.getTitleArr("Discount"))); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap(70, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 664, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(searchTxtArea, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(addNewButton) .addGap(33, 33, 33) .addComponent(deleteButton))) .addGap(37, 37, 37) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(modifyButton, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(searchButton, javax.swing.GroupLayout.Alignment.TRAILING)))) .addGap(66, 66, 66)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(goHomeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(goHomeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(30,30,30) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(searchTxtArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(searchButton) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(29, 29, 29) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(addNewButton) .addComponent(deleteButton) .addComponent(modifyButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 339, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(49, 49, 49)) ); searchButton.getAccessibleContext().setAccessibleName("searchButton"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319396", "0.7290941", "0.7290941", "0.7290941", "0.7285927", "0.7248002", "0.72139066", "0.72086275", "0.71958303", "0.718997", "0.7184516", "0.7159095", "0.71481097", "0.709288", "0.70806605", "0.70578784", "0.6986726", "0.6977067", "0.6955257", "0.6954392", "0.6945326",...
0.0
-1
End of variables declaration
@Override public void actionPerformed(ActionEvent arg0) { Object source=arg0.getSource(); if(source==deleteButton){ deleteExec(); }else if(source==addNewButton){ try { ViewManager.goToSubFunctionScreen(new AddDiscountPanel()); } catch (ServiceNotFoundException e) { e.printStackTrace(); } }else if(source==searchButton){ searchExec(); }else if(source==modifyButton){ modifyExec(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "protected void initVars() {}", "private void assignment() {\n\n\t\t\t}", "private void declareLocals() {\r\n\t\t/...
[ "0.6759361", "0.6568837", "0.62458223", "0.61133546", "0.60982347", "0.6087512", "0.60586846", "0.5882926", "0.5873854", "0.5771458", "0.5769804", "0.57594293", "0.57517105", "0.57495594", "0.5749265", "0.5725298", "0.57189494", "0.5666249", "0.5654246", "0.5628506", "0.56269...
0.0
-1
Method name: modifyExec Description: Modify Execute Remark: void
private void modifyExec(){ try { List<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1); if(selectedDatas.size()!=1){ JOptionPane.showMessageDialog(null, "Please select 1 item to Modify", "Error", JOptionPane.ERROR_MESSAGE); return; } Map<String,String>selectedMap=NameConverter.convertViewMap2PhysicMap(selectedDatas.get(0), "Discount"); DiscountBean selectedDiscountBean=new DiscountBean(); BeanUtil.transMap2Bean(selectedMap, selectedDiscountBean); ViewManager.goToSubFunctionScreen(new AddDiscountPanel(selectedDiscountBean,AddDiscountPanel.MODIFY_DISCOUNT)); } catch (ServiceNotFoundException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void exec();", "public void exec();", "public abstract void compute(String execID, boolean recompute);", "protected void execute() {\n\t\t\n\t}", "public void execute(){\n\t\t\n\t}", "protected void execute() {}", "@Override\n\tprotected void doExecute() throws InstructionExecutionException {\...
[ "0.6755796", "0.66413003", "0.65969986", "0.62165964", "0.6193379", "0.61513627", "0.6147141", "0.6087982", "0.607596", "0.6056086", "0.60530955", "0.60229796", "0.6021431", "0.60175", "0.60101324", "0.60063833", "0.59797627", "0.5972809", "0.5958239", "0.5954217", "0.5928432...
0.55894274
78
Method name: deleteExec Description: Delete Execute Remark: void
private void deleteExec(){ List<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1); if(selectedDatas.size()<1){ JOptionPane.showMessageDialog(null, "Please select at least 1 item to delete", "Error", JOptionPane.ERROR_MESSAGE); return; } int options = 1; if(selectedDatas.size() ==1 ){ options = JOptionPane.showConfirmDialog(null, "Are you sure to delete this Item ?", "Info",JOptionPane.YES_NO_OPTION); }else{ options = JOptionPane.showConfirmDialog(null, "Are you sure to delete these "+selectedDatas.size()+" Items ?", "Info",JOptionPane.YES_NO_OPTION); } if(options==1){ return; } for(HashMap<String,String> map:selectedDatas){ discountService.deleteDiscountByMap(NameConverter.convertViewMap2PhysicMap(map, "Discount")); } this.initDatas(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void execute() {\n deleteNextEntry();\n }", "public void delete()\n {\n call(\"Delete\");\n }", "private CommandResult executeDeleteCommand(Command userCommand) {\n int taskNumber;\n String deletedTask;\n try {\n taskNumber = Integer.parseInt(userCommand.g...
[ "0.6530594", "0.6357978", "0.6340188", "0.6314758", "0.62530816", "0.62518007", "0.62306947", "0.62059593", "0.61739296", "0.61338335", "0.6122396", "0.61023295", "0.6023833", "0.6011215", "0.5991173", "0.5972434", "0.5970257", "0.5944577", "0.5943339", "0.5932217", "0.591264...
0.63304836
3
Method name: searchExec Description: Search Execute Remark: void
private void searchExec(){ String key=jComboBox1.getSelectedItem().toString(); key=NameConverter.convertViewName2PhysicName("Discount", key); String valueLike=searchTxtArea.getText(); List<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike); jTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,"Discount")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "public void search() {\r\n \t\r\n }", "public void search() {\n }", "public void doSearch(String searchText){\n }", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n Sear...
[ "0.73142415", "0.71437496", "0.7052247", "0.7016159", "0.6994201", "0.6901024", "0.68921626", "0.6881376", "0.6828895", "0.6757713", "0.67431676", "0.67276394", "0.67276394", "0.6723618", "0.66716146", "0.6641148", "0.6640919", "0.65828156", "0.6514463", "0.64875287", "0.6455...
0.6174944
29
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_recipe, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577...
0.0
-1
Set last visited date, if the existing last visit was earlier.
public void setLastVisitIfBefore(Date flightDate) { if (flightDate == null) { return; } if (lastVisit == null || lastVisit.before(flightDate)) { lastVisit = flightDate; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLast_seen(Date last_seen) {\n this.last_seen = last_seen;\n }", "void setLastAccessDate();", "public void setLastLogin() {\r\n game.settings.setLastSeen(strDate);\r\n }", "public void setLastActivityDate(Date lastActivityDate) {\n this.lastActivityDate = lastActivity...
[ "0.71425414", "0.6425476", "0.6371481", "0.6285544", "0.6252094", "0.62390924", "0.62105894", "0.6177004", "0.6163717", "0.5956353", "0.59193385", "0.5891429", "0.58670384", "0.5849621", "0.58366656", "0.5820257", "0.58035487", "0.5734035", "0.5734035", "0.5734035", "0.564469...
0.68032944
1
Add 1 to number of departures from this airport.
public void incrementDepartures() { numDepartures++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementArrivals() {\n numArrivals++;\n }", "private static void incrementFlightTakeOffCounter()\r\n\t{\r\n\t\tflightTakeOffCounter++;\r\n\t}", "private int getNextAirportID(){\n\t\treturn this.airportIDCounter++;\n\t}", "public void getDepartureFlightcount()\n\t{\n\t\tUserdefinedFunct...
[ "0.57684416", "0.57003313", "0.5573595", "0.55435026", "0.5417495", "0.529882", "0.52965045", "0.5295808", "0.5272619", "0.5268943", "0.5268167", "0.52591103", "0.52474356", "0.520514", "0.5186585", "0.5186163", "0.5120373", "0.5118911", "0.51018316", "0.50660217", "0.5056771...
0.80586135
0
Add 1 to number of arrivals to this airport.
public void incrementArrivals() { numArrivals++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementDepartures() {\n numDepartures++; \n }", "public int getNumFlights() {\n return itinerary.size();\n }", "private int getNextAirportID(){\n\t\treturn this.airportIDCounter++;\n\t}", "public int getTransitFlightsCount() {\n return transitFlights_.size();\n }", ...
[ "0.6172502", "0.57189906", "0.57083833", "0.55764455", "0.55406654", "0.54508257", "0.54500836", "0.5424756", "0.535695", "0.53256136", "0.5319141", "0.5317314", "0.527391", "0.5252104", "0.52336437", "0.5214742", "0.5212533", "0.5200734", "0.5197607", "0.51919085", "0.517917...
0.6064821
1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Grammar)) { return false; } Grammar other = (Grammar) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
No args constructor for use in serialization
public Person() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MyEncodeableWithoutPublicNoArgConstructor() {}", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "defaultConstructor(){}", "public Data() {}", "private SerializerFactory() {\n ...
[ "0.74629474", "0.73877233", "0.7210467", "0.7029977", "0.70192736", "0.6977907", "0.693466", "0.68820065", "0.6741203", "0.6727858", "0.6718401", "0.6717094", "0.6696575", "0.6696575", "0.667549", "0.6626276", "0.6603967", "0.653331", "0.65240335", "0.6500367", "0.6465912", ...
0.0
-1
Default Empty Constructor for class AppUser
public AppUser() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AppUser() {\n super();\n }", "protected ApplicationUser(){}", "@Constructor(name = \"users\")\n public AppUser(String username, String password, String email, String firstName, String lastName, String dob) {\n this.id = 0;\n this.username = username;\n this.password = p...
[ "0.89732075", "0.8048405", "0.7870132", "0.78664225", "0.7856189", "0.77888006", "0.7757634", "0.7755568", "0.76424843", "0.7563134", "0.7527744", "0.7527744", "0.7527744", "0.747449", "0.747449", "0.7445228", "0.7445228", "0.7444645", "0.7444449", "0.7437427", "0.7434684", ...
0.90669626
0
Default Key Fields Constructor for class AppUser
public AppUser(Long in_userId) { this.setUserId(in_userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AppUser() {\r\n\t\tsuper();\r\n\t}", "public AppUser() {\n super();\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "public AppUser(Long uin) {\n super(uin);\n }", "@Constructor(name = \"users\")\n public AppUser(String username, String password, String email, S...
[ "0.7290511", "0.7198481", "0.676537", "0.66866386", "0.66363275", "0.6482687", "0.6460784", "0.6460784", "0.6460784", "0.6460784", "0.64551944", "0.6444825", "0.6443054", "0.6427076", "0.63874733", "0.63754094", "0.6337634", "0.63119507", "0.62870795", "0.62577397", "0.625598...
0.60813606
31
Return the name of the first key column
public String getFirstKeyColumnName() { return "userId"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFirstKeyColumnName() \n\t{\n\t\treturn \"cSid\";\n\t}", "String getColumnName();", "public String getFirstKeyColumnName() {\n\t\treturn \"wishlistItemId\";\n\t}", "public String getColumnKey(int col){\n return keys.get(col);\n }", "public String[] getKeyColumns()\n {\n ...
[ "0.79581845", "0.7155391", "0.71338135", "0.71091", "0.7079154", "0.7007162", "0.6960315", "0.6947225", "0.6813326", "0.6731486", "0.6658869", "0.6584529", "0.6557676", "0.6554628", "0.6536347", "0.651999", "0.6489629", "0.64563", "0.6431523", "0.6428926", "0.64151645", "0....
0.75966316
1
overwrite for Return the Id (pk) of the entity
public String getId() { return userId.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getEntityId();", "Long getId();", "Long getId();", "Long getId();", "public abstract Long getId();", "public java.lang.Long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", ...
[ "0.79980505", "0.7847954", "0.7847954", "0.7847954", "0.7812224", "0.7702673", "0.770118", "0.770118", "0.770118", "0.770118", "0.770118", "0.770118", "0.7638281", "0.7638281", "0.7638281", "0.7633189", "0.7633189", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1