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
Creates a new NearAction
public NearAction(String name, int direction, int magnitude, boolean localize) { super(localize ? Localizer.localize("GefBase", name) : name); this.direction = direction; this.magnitude = magnitude; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NearAction(String name, int direction) {\r\n this(name, direction, 1, false);\r\n }", "public NearAction(String name, int direction, int magnitude) {\r\n this(name, direction, magnitude, false);\r\n }", "public NearAction(String name, int direction, boolean localize) {\r\n thi...
[ "0.67906517", "0.6518271", "0.6129316", "0.6085668", "0.6085668", "0.6085668", "0.60802734", "0.60486925", "0.5966385", "0.5695938", "0.5693334", "0.5376089", "0.53672296", "0.527376", "0.52572304", "0.5240696", "0.5210045", "0.51803356", "0.5179967", "0.5153246", "0.5138728"...
0.5815725
9
Creates a new NearAction
public NearAction(String name, Icon icon, int direction, boolean localize) { this(name, icon, direction, 1, localize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NearAction(String name, int direction) {\r\n this(name, direction, 1, false);\r\n }", "public NearAction(String name, int direction, int magnitude) {\r\n this(name, direction, magnitude, false);\r\n }", "public NearAction(String name, int direction, boolean localize) {\r\n thi...
[ "0.67906517", "0.6518271", "0.6129316", "0.6085668", "0.6085668", "0.6085668", "0.60802734", "0.60486925", "0.5966385", "0.5815725", "0.5695938", "0.5376089", "0.53672296", "0.527376", "0.52572304", "0.5240696", "0.5210045", "0.51803356", "0.5179967", "0.5153246", "0.5138728"...
0.5693334
11
Creates a new NearAction
public NearAction(String name, Icon icon, int direction, int magnitude, boolean localize) { super(localize ? Localizer.localize("GefBase", name) : name, icon); this.direction = direction; this.magnitude = magnitude; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NearAction(String name, int direction) {\r\n this(name, direction, 1, false);\r\n }", "public NearAction(String name, int direction, int magnitude) {\r\n this(name, direction, magnitude, false);\r\n }", "public NearAction(String name, int direction, boolean localize) {\r\n thi...
[ "0.67906517", "0.6518271", "0.6129316", "0.6085668", "0.6085668", "0.6085668", "0.60802734", "0.60486925", "0.5966385", "0.5815725", "0.5693334", "0.5376089", "0.53672296", "0.527376", "0.52572304", "0.5240696", "0.5210045", "0.51803356", "0.5179967", "0.5153246", "0.5138728"...
0.5695938
10
////////////////////////////////////////////////////////////// Action API Move the selected items a few pixels in the given direction. Note that the sign convention is the opposite of ScrollAction.
@Override public void actionPerformed(ActionEvent e) { super.actionPerformed(e); Editor ce = Globals.curEditor(); SelectionManager sm = ce.getSelectionManager(); if (sm.getLocked()) { Globals.showStatus("Cannot Modify Locked Objects"); return; } int dx = 0, dy = 0; switch (direction) { case LEFT: dx = 0 - magnitude; break; case RIGHT: dx = magnitude; break; case UP: dy = 0 - magnitude; break; case DOWN: dy = magnitude; break; } // Should I move it so that it aligns with the next grid? sm.translate(dx, dy); sm.endTrans(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MoveAction moveInDirection(Direction direction) {\n\t\tposition.x += direction.x();\n\t\tposition.y += direction.y();\n\t\tmoveAllLists();\n\t\treturn new MoveAction(direction.moveCode());\n\t}", "private void moveSelection(int dx, int dy) {\n\t\tint y = getMoveSelectionY(dy);\n\t\tint x = getMoveSelecti...
[ "0.6196071", "0.60801136", "0.6010351", "0.59472865", "0.59293544", "0.5910314", "0.5897761", "0.58954114", "0.57924324", "0.5792392", "0.5754005", "0.5711373", "0.56576174", "0.5602874", "0.55861896", "0.55855286", "0.5576197", "0.55518246", "0.555139", "0.555139", "0.555139...
0.6010217
3
Takes the slice along a given dimension and index of a vertex
public GenericSliceVertex(@LoadVertexParam(INPUT_NAME) Vertex<GenericTensor<T>> inputVertex, @LoadVertexParam(DIMENSION_NAME) int dimension, @LoadVertexParam(INDEX_NAME) int index) { super(removeDimension(dimension, inputVertex.getShape()), inputVertex); this.dimension = dimension; this.index = index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V getVertex(int index);", "Vertex getVertex(int index);", "public int[] getSlicePosition();", "protected int index(int slice, int row, int column) {\n\treturn _sliceOffset(_sliceRank(slice)) + _rowOffset(_rowRank(row)) + _columnOffset(_columnRank(column));\n}", "public GenericPluckVertex(Vertex<? ex...
[ "0.6112069", "0.58446527", "0.58344674", "0.5762055", "0.5730422", "0.5477673", "0.53399533", "0.533991", "0.530655", "0.52989274", "0.52633166", "0.525107", "0.52415836", "0.52349097", "0.5202316", "0.5187396", "0.5183072", "0.5145771", "0.51445293", "0.50990283", "0.5057223...
0.6797212
0
this key is storeKey
public CacheModel addL2Cache(String key, File data) { CacheModel model = new CacheModel(key, data); model.storeKey = key; container.put(model); model.accessUpdate(); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getKey() {\n return key;\n }", "public java.lang.String getKey(){\n return localKey;\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "abstract public String getKey();"...
[ "0.6856304", "0.6823262", "0.6818532", "0.6818532", "0.6809873", "0.67924404", "0.67924404", "0.67924404", "0.67924404", "0.6773289", "0.6746465", "0.6746213", "0.67328364", "0.67116433", "0.6705532", "0.6694926", "0.66850907", "0.6684164", "0.66659516", "0.66637635", "0.6645...
0.0
-1
All file cache return as byte[]
@Override public Object get(String key) { final String fileName = Util.MD5(key); CacheModel model = container.get(fileName); if (model == null) { String name = Util.formatFileName(fileName, ""); mWriter.deleteFileStartWith(name); return null; } if (model.data instanceof byte[]) { return model.data; } File file = (File) model.data; if (!file.exists()) { return null; } for (CachePolicy p : policies) { if (!p.modelCheck(model, container)) { file.delete(); return null; } } model.accessUpdate(); file.setLastModified(model.lastAccessTime); return file2ByteArray(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n ...
[ "0.656246", "0.62770987", "0.61753595", "0.61506844", "0.613443", "0.60722345", "0.60659164", "0.6007412", "0.6003492", "0.59739596", "0.5946899", "0.59416044", "0.5925557", "0.5925557", "0.59001493", "0.5884898", "0.5860096", "0.5853453", "0.58181053", "0.58123654", "0.58103...
0.5377542
88
Method used to create the search criteria that will be used in order to filter the vehicles in the JSF part of the application. The criteria is build with the help of the class variables. These values are obtain from the .xhtml page.
public VehicleSearchRequest createSearchVechicle() { VehicleSearchRequest searchRequest = new VehicleSearchRequest(); if (StringUtils.isBlank(searchLocation)) { searchRequest.setLocation(DefaultValues.LOCATION_DEFAULT.getDef()); } else { searchRequest.setLocation(searchLocation); } if (StringUtils.isBlank(searchVehicleType)) { searchRequest.setVehicleType(VehicleType.getEnum(DefaultValues.VEHICLE_TYPE_DEFAULT.getDef())); } else { searchRequest.setVehicleType(VehicleType.getEnum(searchVehicleType)); } if (StringUtils.isBlank(searchFin)) { searchRequest.setFin(DefaultValues.FIN_DEFAULT.getDef()); } else { searchRequest.setFin(searchFin); } if (StringUtils.isBlank(searchModel)) { searchRequest.setModel(DefaultValues.MODEL_DEFAULT.getDef()); } else { searchRequest.setModel(searchModel); } if (StringUtils.isBlank(searchFuelType)) { searchRequest.setFuelType(FuelType.DEFAULT); } else { searchRequest.setFuelType(FuelType.getEnum(searchFuelType)); } if (searchMaxCapacity == 0) { searchRequest.setMaxCapacity(DefaultValues.MAX_CAPACITY_DEFAULT.getDefValue()); } else { searchRequest.setMaxCapacity(searchMaxCapacity); } if (searchMinCapacity == 0) { searchRequest.setMinCapacity(DefaultValues.MIN_CAPACITY_DEFAULT.getDefValue()); } else { searchRequest.setMinCapacity(searchMinCapacity); } if (searchMinYear == 0) { searchRequest.setMinYear(DefaultValues.MIN_YEAR_DEFAULT.getDefValue()); } else { searchRequest.setMinYear(searchMinYear); } if (searchMaxYear == 0) { searchRequest.setMaxYear(DefaultValues.MAX_YEAR_DEFAULT.getDefValue()); } else { searchRequest.setMaxYear(searchMaxYear); } if (searchMaxPrice == 0) { searchRequest.setMaxPrice(DefaultValues.MAX_PRICE_DEFAULT.getDefValue()); } else { searchRequest.setMaxPrice(searchMaxPrice); } if (searchMinPrice == 0) { searchRequest.setMinPrice(DefaultValues.MIN_PRICE_DEFAULT.getDefValue()); } else { searchRequest.setMinPrice(searchMinPrice); } return searchRequest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TripSearchCriteria getCriteria(){\r\n\t\tname = jNameTrip.getText();\r\n\t\tdateLow = (Date) datePickerFrom.getModel().getValue();\r\n\t\tdateHigh = (Date) datePickerTo.getModel().getValue();\r\n\t\tpriceHigh = slider.getValue();\r\n\t\tpriceLow = 0;\r\n\t\tcategory = (String) categoryCombo.getSelectedItem(...
[ "0.6597852", "0.626316", "0.5994376", "0.59743863", "0.5902118", "0.5761594", "0.574484", "0.573513", "0.5640095", "0.5639099", "0.5620094", "0.55845755", "0.5566866", "0.5532113", "0.55283827", "0.54877007", "0.5468919", "0.5452058", "0.53782696", "0.53777385", "0.5373651", ...
0.6079101
2
Creates a new Execution attempt.
public Execution( Executor executor, ExecutionVertex vertex, int attemptNumber, long globalModVersion, long startTimestamp, Time rpcTimeout) { this.executor = checkNotNull(executor); this.vertex = checkNotNull(vertex); this.attemptId = new ExecutionAttemptID(); this.rpcTimeout = checkNotNull(rpcTimeout); this.globalModVersion = globalModVersion; this.attemptNumber = attemptNumber; this.stateTimestamps = new long[ExecutionState.values().length]; markTimestamp(CREATED, startTimestamp); this.partitionInfos = new ArrayList<>(16); this.producedPartitions = Collections.emptyMap(); this.terminalStateFuture = new CompletableFuture<>(); this.releaseFuture = new CompletableFuture<>(); this.taskManagerLocationFuture = new CompletableFuture<>(); this.assignedResource = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.cloud.aiplatform.v1.Execution createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateExecutionMethod(), getCallOptions(), request);\n }", "public com.google.common....
[ "0.61430544", "0.60435563", "0.6007524", "0.59706795", "0.5632924", "0.53890586", "0.5297505", "0.5297505", "0.5297505", "0.52671105", "0.5266676", "0.52478456", "0.52478456", "0.5233962", "0.51844853", "0.5175822", "0.51218164", "0.5074598", "0.5028696", "0.5018758", "0.4975...
0.56135875
5
Gets the global modification version of the execution graph when this execution was created. This version is bumped in the ExecutionGraph whenever a global failover happens. It is used to resolve conflicts between concurrent modification by global and local failover actions.
public long getGlobalModVersion() { return globalModVersion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getVersion(){\n return localVersion;\n }", "int getCurrentVersion();", "public int getRegeneration() {\n\t\treturn regeneration;\n\t}", "public java.lang.String getSyncVersion() {\n\t\treturn _dmHistoryMaritime.getSyncVersion();\n\t}", "p...
[ "0.5390207", "0.51969767", "0.51881826", "0.517176", "0.5126074", "0.5116218", "0.50333345", "0.5028254", "0.5007187", "0.49848565", "0.49848565", "0.49848565", "0.49848565", "0.49848565", "0.49848565", "0.49715936", "0.49704814", "0.4958403", "0.49530852", "0.49529815", "0.4...
0.62031645
0
Tries to assign the given slot to the execution. The assignment works only if the Execution is in state SCHEDULED. Returns true, if the resource could be assigned.
public boolean tryAssignResource(final LogicalSlot logicalSlot) { assertRunningInJobMasterMainThread(); checkNotNull(logicalSlot); // only allow to set the assigned resource in state SCHEDULED or CREATED // note: we also accept resource assignment when being in state CREATED for testing purposes if (state == SCHEDULED || state == CREATED) { if (assignedResource == null) { assignedResource = logicalSlot; if (logicalSlot.tryAssignPayload(this)) { // check for concurrent modification (e.g. cancelling call) if ((state == SCHEDULED || state == CREATED) && !taskManagerLocationFuture.isDone()) { taskManagerLocationFuture.complete(logicalSlot.getTaskManagerLocation()); assignedAllocationID = logicalSlot.getAllocationId(); return true; } else { // free assigned resource and return false assignedResource = null; return false; } } else { assignedResource = null; return false; } } else { // the slot already has another slot assigned return false; } } else { // do not allow resource assignment if we are not in state SCHEDULED return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean fillSlot(int slot) {\n if(!isValidSlot(slot) || availableSlots.size() == 0 || !availableSlots.contains(slot)){\n return false;\n }\n\n availableSlots.remove(slot);\n return true;\n }", "public Schedule assign()\n\t{\n\t\tif(debug) System.out...
[ "0.5853774", "0.55510193", "0.5422233", "0.5342296", "0.52357215", "0.51958716", "0.51414657", "0.51379377", "0.5114705", "0.5104811", "0.5073768", "0.5045347", "0.50383663", "0.5018258", "0.49813238", "0.49783677", "0.49738827", "0.49626", "0.49516392", "0.49328813", "0.4932...
0.82149357
0
returns nonnull only when a location is already assigned
@Override public TaskManagerLocation getAssignedResourceLocation() { final LogicalSlot currentAssignedResource = assignedResource; return currentAssignedResource != null ? currentAssignedResource.getTaskManagerLocation() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAssignedToLocation() {\n if (location == null) {\n return false;\n }\n return true;\n }", "private boolean isAssignedPosition(String location) {\n return productTypeRepository.findAll().stream().anyMatch(p -> p.getLocation().equals(location));\n }", ...
[ "0.75946355", "0.67540824", "0.6509028", "0.6509028", "0.6374776", "0.6369616", "0.62951946", "0.6275729", "0.62536806", "0.6168746", "0.61548114", "0.6001782", "0.59637386", "0.59273773", "0.59021795", "0.5833946", "0.5793509", "0.5738115", "0.5718358", "0.56969386", "0.5678...
0.0
-1
Gets a future that completes once the task execution reaches a terminal state. The future will be completed with specific state that the execution reached. This future is always completed from the job master's main thread.
@Override public CompletableFuture<ExecutionState> getTerminalStateFuture() { return terminalStateFuture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean get_task_completion()\n {\n return task_completion_boolean;\n }", "@Test\n public void thenApply() {\n CompletableFuture<String> cf = CompletableFuture.completedFuture(\"message\")\n .thenApply(s -> {\n assertFalse(Thread.currentThread().isDaemon())...
[ "0.5383916", "0.537811", "0.53719205", "0.5153612", "0.5015007", "0.5005458", "0.49692452", "0.49584407", "0.49546483", "0.49535778", "0.49320683", "0.49134496", "0.4890702", "0.48648092", "0.4845038", "0.48345283", "0.48094434", "0.48063812", "0.47968423", "0.4790497", "0.47...
0.6890561
0
Gets the release future which is completed once the execution reaches a terminal state and the assigned resource has been released. This future is always completed from the job master's main thread.
public CompletableFuture<?> getReleaseFuture() { return releaseFuture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void releaseAssignedResource(@Nullable Throwable cause) {\n\n\t\tassertRunningInJobMasterMainThread();\n\n\t\tfinal LogicalSlot slot = assignedResource;\n\n\t\tif (slot != null) {\n\t\t\tComponentMainThreadExecutor jobMasterMainThreadExecutor =\n\t\t\t\tgetVertex().getExecutionGraph().getJobMasterMainThrea...
[ "0.60133886", "0.5734774", "0.55804557", "0.5537356", "0.5235905", "0.5224636", "0.5193941", "0.5133358", "0.5113763", "0.50832516", "0.50808305", "0.5073623", "0.5064224", "0.5053517", "0.5041529", "0.50122285", "0.50122285", "0.50122285", "0.49882683", "0.49788785", "0.4973...
0.76052165
0
Deploys the execution to the previously assigned resource.
public void deploy() throws JobException { assertRunningInJobMasterMainThread(); final LogicalSlot slot = assignedResource; // make sure exactly one deployment call happens from the correct state // note: the transition from CREATED to DEPLOYING is for testing purposes only ExecutionState previous = this.state; if (previous == SCHEDULED || previous == CREATED) { if (!transitionState(previous, DEPLOYING)) { // race condition, someone else beat us to the deploying call. // this should actually not happen and indicates a race somewhere else throw new IllegalStateException("Cannot deploy task: Concurrent deployment call race."); } } else { // vertex may have been cancelled, or it was already scheduled throw new IllegalStateException("The vertex must be in CREATED or SCHEDULED state to be deployed. Found state " + previous); } if (this != slot.getPayload()) { throw new IllegalStateException( String.format("The execution %s has not been assigned to the assigned slot.", this)); } try { // race double check, did we fail/cancel and do we need to release the slot? if (this.state != DEPLOYING) { slot.releaseSlot(new FlinkException("Actual state of execution " + this + " (" + state + ") does not match expected state DEPLOYING.")); return; } final TaskDeploymentDescriptor deployment = TaskDeploymentDescriptorFactory .fromExecutionVertex(vertex, attemptNumber) .createDeploymentDescriptor( slot.getAllocationId(), slot.getPhysicalSlotNumber(), taskRestore, producedPartitions.values()); // null taskRestore to let it be GC'ed // 手动GC taskRestore = null; final TaskManagerGateway taskManagerGateway = slot.getTaskManagerGateway(); final ComponentMainThreadExecutor jobMasterMainThreadExecutor = vertex.getExecutionGraph().getJobMasterMainThreadExecutor(); // 调用submitTask CompletableFuture.supplyAsync(() -> taskManagerGateway.submitTask(deployment, rpcTimeout), executor) .thenCompose(Function.identity()) .whenCompleteAsync( (ack, failure) -> { }, jobMasterMainThreadExecutor); } catch (Throwable t) { markFailed(t); if (isLegacyScheduling()) { ExceptionUtils.rethrow(t); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void execute() {\n if (valid()) {\n // behavior of the concrete command\n this.target_territory numArmies += to_deploy;\n }\n }", "public void execute() throws MojoExecutionException {\n deploy(service, dockerImage,Optional.ofNullable(kalixProject),Optional.ofN...
[ "0.6447338", "0.5964242", "0.57477474", "0.5744614", "0.5616218", "0.5607082", "0.5559749", "0.55403715", "0.55294245", "0.5521441", "0.5424477", "0.5413938", "0.5377183", "0.5319319", "0.5318608", "0.53046846", "0.5293595", "0.5289343", "0.5228126", "0.5204677", "0.5203316",...
0.6289594
1
depending on the previous state, we go directly to cancelled (no cancel call necessary) or to canceling (cancel call needs to be sent to the task manager) because of several possibly previous states, we need to again loop until we make a successful atomic state transition
public void cancel() { assertRunningInJobMasterMainThread(); while (true) { ExecutionState current = this.state; if (current == CANCELING || current == CANCELED) { // already taken care of, no need to cancel again return; } // these two are the common cases where we need to send a cancel call else if (current == RUNNING || current == DEPLOYING) { // try to transition to canceling, if successful, send the cancel call if (startCancelling(NUM_CANCEL_CALL_TRIES)) { return; } // else: fall through the loop } else if (current == FINISHED) { // finished before it could be cancelled. // in any case, the task is removed from the TaskManager already // a pipelined partition whose consumer has never been deployed could still be buffered on the TM // release it here since pipelined partitions for FINISHED executions aren't handled elsewhere // covers the following cases: // a) restarts of this vertex // b) a global failure (which may result in a FAILED job state) sendReleaseIntermediateResultPartitionsRpcCall(); return; } else if (current == FAILED) { // failed before it could be cancelled. // in any case, the task is removed from the TaskManager already return; } else if (current == CREATED || current == SCHEDULED) { // from here, we can directly switch to cancelled, because no task has been deployed if (cancelAtomically()) { return; } // else: fall through the loop } else { throw new IllegalStateException(current.name()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ensureFinalState() {\n if (!isComplete() && !isPaused() && getInternalState() != INTERNAL_STATE_QUEUED) {\n // we first try to complete a cancel operation and if that fails, we just fail\n // the operation.\n if (!tryChangeState(INTERNAL_STATE_CANCELED, false)) {\n tryChangeSt...
[ "0.6910581", "0.60665536", "0.60588604", "0.60213995", "0.59733045", "0.5941269", "0.5806953", "0.5785227", "0.5764021", "0.57458526", "0.5705972", "0.56564784", "0.5651841", "0.56277347", "0.5586894", "0.5585142", "0.55739236", "0.555758", "0.55560523", "0.5555013", "0.55508...
0.67497253
1
This method fails the vertex due to an external condition. The task will move to state FAILED. If the task was in state RUNNING or DEPLOYING before, it will send a cancel call to the TaskManager.
@Override public void fail(Throwable t) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancel() {\n\t\tassertRunningInJobMasterMainThread();\n\t\twhile (true) {\n\n\t\t\tExecutionState current = this.state;\n\n\t\t\tif (current == CANCELING || current == CANCELED) {\n\t\t\t\t// already taken care of, no need to cancel again\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// these two are the common c...
[ "0.62132066", "0.59585834", "0.5882235", "0.5797789", "0.5565855", "0.5553254", "0.53191596", "0.5314658", "0.5308729", "0.53013796", "0.52905744", "0.52615577", "0.5142935", "0.5125396", "0.50998956", "0.508742", "0.50861007", "0.5075508", "0.50621", "0.5056842", "0.5055178"...
0.0
-1
Callbacks This method marks the task as failed, but will make no attempt to remove task execution from the task manager. It is intended for cases where the task is known not to be running, or then the TaskManager reports failure (in which case it has already removed the task).
void markFailed(Throwable t) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onTaskFailure(Task<?> tsk, Exception ex)\n {\n m_RunningTasks.remove(tsk);\n }", "@Override\n\tpublic void onTaskFail() {\n\t\t\n\t}", "public void afterExecute(Runnable runnable, Throwable th) {\n Task task = (Task) runnable;\n task.setFinished(true);\n task.setEr...
[ "0.7784734", "0.6900677", "0.67817724", "0.66658735", "0.6341427", "0.63091713", "0.62535673", "0.6238594", "0.6158871", "0.61276114", "0.6022079", "0.6005159", "0.5996002", "0.5985765", "0.5964076", "0.5957707", "0.5941183", "0.5873363", "0.5844057", "0.5838744", "0.5836642"...
0.56347406
31
the taskmanagers can themselves cancel tasks without an external trigger, if they find that the network stack is canceled (for example by a failing / canceling receiver or sender this is an artifact of the old network runtime, but for now we need to support task transitions from running directly to canceled
void completeCancelling(Map<String, Accumulator<?, ?>> userAccumulators, boolean releasePartitions) { while (true) { ExecutionState current = this.state; if (current == CANCELED) { return; } else if (current == CANCELING || current == RUNNING || current == DEPLOYING) { updateAccumulatorsAndMetrics(userAccumulators); if (transitionState(current, CANCELED)) { finishCancellation(releasePartitions); return; } // else fall through the loop } else { // failing in the meantime may happen and is no problem. // anything else is a serious problem !!! if (current != FAILED) { String message = String.format("Asynchronous race: Found %s in state %s after successful cancel call.", vertex.getTaskNameWithSubtaskIndex(), state); LOG.error(message); vertex.getExecutionGraph().failGlobal(new Exception(message)); } return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelTask(String id);", "public void cancelRunnable() {\n\t\tif (taskID != null) {\n\t\t\tplugin.getServer().getScheduler().cancelTask(taskID);\n\t\t}\n\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tLog.d(\"cancel\", \"cancel my task\");\n\t\t\n\t\t}", "p...
[ "0.69175273", "0.68795556", "0.68289053", "0.68140656", "0.6784301", "0.66803116", "0.66514826", "0.6631519", "0.66161615", "0.65427136", "0.6542423", "0.6507417", "0.64979416", "0.6443801", "0.6385522", "0.6355836", "0.6347096", "0.62913024", "0.6288894", "0.6261946", "0.625...
0.0
-1
This method sends a CancelTask message to the instance of the assigned slot. The sending is tried up to NUM_CANCEL_CALL_TRIES times.
private void sendCancelRpcCall(int numberRetries) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sendCancelMessage();", "protected abstract void sendCancel(Status reason);", "public void cancelTask(String id);", "public static void cancelTask() {\n try {\n if (Utils.isNotNull(tt)) {\n tt.cancel();\n }\n if (Utils.isNotNull(t)) {\n ...
[ "0.6087822", "0.6079527", "0.60423535", "0.5946422", "0.58983886", "0.58790165", "0.58368397", "0.580734", "0.57598525", "0.5755551", "0.571801", "0.5716549", "0.566804", "0.5625846", "0.5611931", "0.55412096", "0.55381244", "0.55300945", "0.5507496", "0.5474173", "0.54696417...
0.5753893
10
Update the partition infos on the assigned resource.
private void sendUpdatePartitionInfoRpcCall( final Iterable<PartitionInfo> partitionInfos) { final LogicalSlot slot = assignedResource; if (slot != null) { final TaskManagerGateway taskManagerGateway = slot.getTaskManagerGateway(); final TaskManagerLocation taskManagerLocation = slot.getTaskManagerLocation(); CompletableFuture<Acknowledge> updatePartitionsResultFuture = taskManagerGateway.updatePartitions(attemptId, partitionInfos, rpcTimeout); updatePartitionsResultFuture.whenCompleteAsync( (ack, failure) -> { // fail if there was a failure if (failure != null) { fail(new IllegalStateException("Update to task [" + getVertexWithAttempt() + "] on TaskManager " + taskManagerLocation + " failed", failure)); } }, getVertex().getExecutionGraph().getJobMasterMainThreadExecutor()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateResourceInformation() {\n\t}", "@Override\n\tpublic void updateResourceInformation() {\n\t}", "Update withPartitionCount(int count);", "public void setPartParam(PartitionUpdateParam partParam) {\n this.partParam = partParam;\n }", "public void setPartitionNumber(int par...
[ "0.59623426", "0.59510547", "0.57473713", "0.5358482", "0.5313085", "0.52211607", "0.519269", "0.50553316", "0.5044845", "0.49821365", "0.49347526", "0.49284062", "0.48776776", "0.48466313", "0.48384547", "0.48337197", "0.48296952", "0.48230484", "0.48053777", "0.48028615", "...
0.5639123
3
Releases the assigned resource and completes the release future once the assigned resource has been successfully released.
private void releaseAssignedResource(@Nullable Throwable cause) { assertRunningInJobMasterMainThread(); final LogicalSlot slot = assignedResource; if (slot != null) { ComponentMainThreadExecutor jobMasterMainThreadExecutor = getVertex().getExecutionGraph().getJobMasterMainThreadExecutor(); slot.releaseSlot(cause) .whenComplete((Object ignored, Throwable throwable) -> { jobMasterMainThreadExecutor.assertRunningInMainThread(); if (throwable != null) { releaseFuture.completeExceptionally(throwable); } else { releaseFuture.complete(null); } }); } else { // no assigned resource --> we can directly complete the release future releaseFuture.complete(null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void release() {\n m_available = true;\n notify();\n }", "public final void release() {\n explicitlyLocked = false;\n byteBase.unlock();\n }", "public abstract void release();", "public abstract void release();", "public abstract void release();", "vo...
[ "0.66296935", "0.6485471", "0.64694095", "0.64694095", "0.64694095", "0.63593405", "0.6357326", "0.6316288", "0.6308285", "0.6305081", "0.62973744", "0.6287774", "0.6284391", "0.6284391", "0.626116", "0.62505466", "0.6235397", "0.6206931", "0.61983335", "0.6197356", "0.619735...
0.7552894
0
Accumulators Update accumulators (discarded when the Execution has already been terminated).
public void setAccumulators(Map<String, Accumulator<?, ?>> userAccumulators) { synchronized (accumulatorLock) { if (!state.isTerminal()) { this.userAccumulators = userAccumulators; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CompletableFuture<Map<String, Object>> getAccumulators();", "final private void accumulate()\n\t{\n\t\tfinal int argb = target.get().get();\n\t\taccA += ( ( argb >> 24 ) & 0xff ) * weights[ code ];\n\t\taccR += ( ( argb >> 16 ) & 0xff ) * weights[ code ];\n\t\taccG += ( ( argb >> 8 ) & 0xff ) * weights[ code ];\...
[ "0.59516007", "0.56352735", "0.5468026", "0.54169947", "0.5400292", "0.5362789", "0.5307608", "0.5249795", "0.52056116", "0.5170027", "0.5170027", "0.5119589", "0.5115127", "0.5098186", "0.5023344", "0.50113726", "0.4961042", "0.4943077", "0.49319175", "0.49051577", "0.489695...
0.5731311
1
83 Noarg constructor to enable serialization. This method 84 is not intended to be used by mere mortals without calling setName(). 85
public TestCase() { fName= null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "MyEncodeableWithoutPublicNoArgConstructor() {}", "private void __sep__Constructors__() {}", "void DefaultConstructor(){}", "defaultCon...
[ "0.6967031", "0.68709415", "0.68212956", "0.67216605", "0.66127163", "0.6609025", "0.6600002", "0.6530592", "0.6445916", "0.6396334", "0.6396044", "0.63624865", "0.63388604", "0.6326527", "0.6323894", "0.6285993", "0.6281273", "0.6279076", "0.6276778", "0.62599367", "0.625768...
0.0
-1
90 Constructs a test case with the given name. 91
public TestCase(String name) { fName= name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "public TestCase(String name) {\n\t\tsetName(name);\n\t}", "public PlanillaTest(String name) {\n\t\tsuper(name);\n\t}", "public SampleJUnit(String name) {\r\n\t\tsuper(name);\r\n\t}", "public AxiomTest(String name) {\n\t\tsuper(name);\n\t}", "publi...
[ "0.6962342", "0.6915712", "0.68805873", "0.65893674", "0.65559506", "0.6546509", "0.64573294", "0.64343643", "0.64067155", "0.63908273", "0.6366859", "0.63555855", "0.6316108", "0.6299986", "0.6290292", "0.62814844", "0.6252969", "0.62151414", "0.62002075", "0.61866194", "0.6...
0.6824872
3
Counts the number of test cases executed by run(TestResult result). 97
public int countTestCases() { return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int runCount() {\n return testCount;\n }", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@BeforeSuite\n\tpublic void numofTest...
[ "0.7771952", "0.7574742", "0.7445515", "0.69583565", "0.6787938", "0.6784977", "0.67550373", "0.65871316", "0.65815157", "0.65287334", "0.6521086", "0.65129805", "0.6470263", "0.64330506", "0.6409808", "0.6396592", "0.63730985", "0.63370466", "0.6301625", "0.62858725", "0.628...
0.78153217
0
102 Creates a default TestResult object 103
protected TestResult createResult() { return new TestResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CommandResultTest() {\n super(CommandResult.EMPTY);\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateValueTypeResult() {\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateUnitResult() {\n }", "public static IScriptResult createResult(SceResultsType srt) {\r...
[ "0.6529945", "0.633443", "0.6270817", "0.6240398", "0.6137388", "0.61087114", "0.59696627", "0.59692115", "0.5907723", "0.58981025", "0.58981025", "0.5882213", "0.5881424", "0.58765024", "0.5848634", "0.58436334", "0.579814", "0.57814175", "0.57254976", "0.5721972", "0.567185...
0.7329704
0
110 A convenience method to run this test, collecting the results with a 111 default TestResult object. 112
public TestResult run() { TestResult result= createResult(); run(result); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract TestResult runTestImpl() throws Exception;", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEqua...
[ "0.65322703", "0.6514849", "0.6441833", "0.6391102", "0.63234425", "0.630061", "0.62896097", "0.6262323", "0.6222853", "0.61889154", "0.61777484", "0.616313", "0.6150449", "0.61417717", "0.6130914", "0.6126899", "0.6125908", "0.6094383", "0.60905886", "0.60787475", "0.6060713...
0.6742864
0
121 Runs the test case and collects the results in TestResult. 122
public void run(TestResult result) { result.run(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }", "public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t ...
[ "0.73770356", "0.70316046", "0.70233065", "0.6913777", "0.6909061", "0.68884695", "0.6824334", "0.6824167", "0.6799259", "0.67776114", "0.6777561", "0.67757493", "0.67632806", "0.6756554", "0.6739259", "0.66769356", "0.66378343", "0.6636495", "0.6615189", "0.66017485", "0.658...
0.6373236
44
7 Runs the bare test sequence.
public void runBare() throws Throwable { Throwable exception= null; setUp(); try { runTest(); } catch (Throwable running) { exception= running; } finally { try { tearDown(); } catch (Throwable tearingDown) { if (exception == null) exception= tearingDown; } } if (exception != null) throw exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\ttest4();\n//\t\ttest7();\n//\t\ttest8();\n//\t\ttest9();\n//\t\ttest10();\n//\t\ttest11();\n//\t\t test13() ;\n\t}", "public static void main(String[] args) {\n test7();\n }", "public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i...
[ "0.71589583", "0.71033293", "0.67028683", "0.6617612", "0.6613135", "0.64393085", "0.64075977", "0.6392078", "0.6383564", "0.6371245", "0.6369146", "0.63670915", "0.6355988", "0.6353045", "0.6328531", "0.63005424", "0.62817293", "0.62785625", "0.6273214", "0.6265134", "0.6263...
0.0
-1
148 Override to run the test and assert its state.
protected void runTest() throws Throwable { assertNotNull("TestCase.fName cannot be null", fName); // Some VMs crash when calling getMethod(null,null); Method runMethod= null; try { // use getMethod to get all public inherited // methods. getDeclaredMethods returns all // methods of this class but excludes the // inherited ones. runMethod= getClass().getMethod(fName, (Class [])null); } catch (NoSuchMethodException e) { fail("Method \""+fName+"\" not found"); } if (!Modifier.isPublic(runMethod.getModifiers())) { fail("Method \""+fName+"\" should be public"); } try { runMethod.invoke(this); } catch (InvocationTargetException e) { e.fillInStackTrace(); throw e.getTargetException(); } catch (IllegalAccessException e) { e.fillInStackTrace(); throw e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "public void test() {\n\tassertTrue(true);\n\t}", "@Override\n protected void executeTest() {\n ClientConnection<Event> harry = register(0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n ClientConnection<Event> statist23 = reg...
[ "0.7250601", "0.7185898", "0.7052526", "0.7042993", "0.6845589", "0.6837368", "0.6827742", "0.6800221", "0.67250663", "0.67163813", "0.65702605", "0.6569358", "0.6507708", "0.64518553", "0.6448052", "0.6446228", "0.64227533", "0.6422585", "0.64217323", "0.63893867", "0.638807...
0.0
-1
180 Sets up the fixture, for example, open a network connection. 181 This method is called before a test is executed. 182
protected void setUp() throws Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "@Before\n public void setup() {\n Helpers.fillData();\n }", "protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }"...
[ "0.7178761", "0.71701515", "0.71177995", "0.7112942", "0.69515693", "0.68958664", "0.6841469", "0.6822861", "0.6815555", "0.6811485", "0.68100226", "0.67893285", "0.67689896", "0.67672837", "0.67629075", "0.6735312", "0.6728773", "0.670507", "0.6699819", "0.66685957", "0.6667...
0.6537657
58
186 Tears down the fixture, for example, close a network connection. 187 This method is called after a test is executed. 188
protected void tearDown() throws Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@After\n public void tearDown() {\n fixture.cleanUp();\n }", "@After\n public void tearDown() {\n fixture = null;\n }", "@AfterTest\n\tpublic void teardown()\n\t{\n\t\t\n\t\tdriver.close();\n\t}", "@After\n\t\t public void tearDown() throws Exception {\n\t\t\t testHelper.tearDown();\n\t\t }...
[ "0.8074667", "0.8029908", "0.77228403", "0.7481708", "0.74394095", "0.74311066", "0.74170417", "0.7415721", "0.7352132", "0.73433614", "0.73059386", "0.7302197", "0.7287918", "0.72753334", "0.7267165", "0.72434515", "0.7237262", "0.723641", "0.7230956", "0.72287965", "0.72076...
0.69290775
78
192 Returns a string representation of the test case 193
@Override public String toString() { return getName() + "(" + getClass().getName() + ")"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\r\n\t\tfor (int i = 1; i <= 100; i++) {\r\n\t\t\tString code = StringUtils.leftPad(Integer.toString(i), 6, '0');\r\n\r\n\t\t\tSystem.out.println(\"WA\" + code + encode(\"WA\" + code));\r\n\r\n\t\t}\r\n\r\n\t}", "String mo38971b();", "String mo21078i();", "@Test(time...
[ "0.60368", "0.59246296", "0.58979857", "0.5831426", "0.58233386", "0.58196056", "0.5816898", "0.5814603", "0.578618", "0.57623917", "0.5698296", "0.5673779", "0.5667734", "0.56495714", "0.56362176", "0.5633599", "0.56307507", "0.562816", "0.56261796", "0.56164694", "0.5610775...
0.0
-1
199 Gets the name of a TestCase
public String getName() { return fName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTestname() {\n return testname;\n }", "public static String getTestCaseClassName() {\n\t\tStackTraceElement stackTraceElements[] = (new Throwable()).getStackTrace();\n\t\tfor (StackTraceElement e : stackTraceElements) {\n\t\t\tString s = e.toString();\n\t\t\tif (s.contains(\"com.textur...
[ "0.76010966", "0.7479011", "0.74420774", "0.72199935", "0.7095071", "0.6984804", "0.6981791", "0.69779396", "0.6924273", "0.6902206", "0.68432015", "0.6780702", "0.6775892", "0.67724967", "0.67695284", "0.6760921", "0.6685126", "0.66750073", "0.66324663", "0.66324663", "0.663...
0.0
-1
6 Sets the name of a TestCase
public void setName(String name) { fName= name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "public TestCase(String name) {\n fName= name;\n }", "public TestCase(String name) {\n\t\tsetName(name);\n\t}", "public static void setTestName(Strin...
[ "0.80113554", "0.79969305", "0.7808698", "0.7671117", "0.7603308", "0.73510987", "0.7232953", "0.7137752", "0.69864744", "0.6949277", "0.6932019", "0.6887904", "0.6887268", "0.6876068", "0.6868231", "0.6863931", "0.6844291", "0.68274504", "0.68274504", "0.68274504", "0.682745...
0.0
-1
To start the IED server
public void startServer(PWModelDetails pwModelDetails) { try { List<ServerSap> serverSaps = null; try { serverSaps = ServerSap.getSapsFromSclFile(pwModelDetails.getSclFileName()); } catch (SclParseException e) { logger.info("Error parsing SCL/ICD file: " + e.getMessage()); e.printStackTrace(); return; } serverSap = serverSaps.get(0); serverSap.setPort(pwModelDetails.getPortNumber()); InetAddress address = null; try { ipAddress = pwModelDetails.getIpAddress(); address = InetAddress.getByName(ipAddress); } catch (UnknownHostException e) { logger.info("Unknown host: " + ipAddress); logger.info("Proxy will run with the defualt IP as define in the SCL file."); logger.info("Unknown host " + ipAddress); return; } if (address != null) { serverSap.setBindAddress(address); } Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { if (serverSap != null) { serverSap.stop(); } logger.info("Server was stopped"); } }); ServerModel serverModel = serverSap.getModelCopy(); // create a SampleServer instance that can be passed as a callback object to startListening() and // SmartPowerIEDServer sampleServer = new SmartPowerIEDServer(); SoftGridIEDServer sampleServer = this; // Open MUC initialization List<BasicDataAttribute> branchCircuitBreakerVals = new ArrayList<BasicDataAttribute>(3); for (String reference : iedRefFcHashMap.keySet()) { BasicDataAttribute field = (BasicDataAttribute) serverModel.findModelNode(reference, iedRefFcHashMap.get(reference)); if (field == null) { logger.info(">>>>>> Error in obtaining SCL reference object = " + reference); } branchCircuitBreakerVals.add(field); } // Power World Device Initialization ParameterGenerator parameterGenerator = new ParameterGenerator(); parameterGenerator.setSclKeyToPWKeyMap(pwModelDetails.getSclToPWMapping()); parameterGenerator.setKeyParameters(pwModelDetails.getKeyArray()); parameterGenerator.setValueParameters(pwModelDetails.getDataFieldArray()); parameterGenerator.setPersistedValues(pwModelDetails.getValueArray()); parameterGenerator.setDeviceObjectName(pwModelDetails.getDeviceName()); if (controlAPI == null) { controlAPI = IedControlerFactory.getPWComBridgeIterface(); synchronized (controlAPI) { if (!controlAPI.isCaseOpened()) { controlAPI.openCase(); } } } parameterGenerator.setControlAPI(controlAPI); // load power world data serverSap.startListening(sampleServer, parameterGenerator); try { serverSap.setValues(branchCircuitBreakerVals); } catch (Exception e) { logger.info("pwModelDetails.getModelNodeReference() = " + pwModelDetails.getModelNodeReference()); e.printStackTrace(); } String[][] paramPack = parameterGenerator.getParamPack(); type = IEDUtils.getIEDType(parameterGenerator.getDeviceObjectName()); id = ++IED_COUNT; StringBuffer sb = new StringBuffer(); String logDataSeperator = ":"; boolean loged = false; logEvent("IED : " + type.name() + " : " + id + " is Started...!"); String[] elements = null; while (true) { synchronized (this) { try { Thread.sleep(PW_INTERROGATION_INTERVAL); } catch (InterruptedException e) { e.printStackTrace(); } } elements = parameterGenerator.loadDataValues(paramPack); if (elements == null) { if(type.name().equals("BUS")) { System.out.println("BUS"); } continue; } sb.append("Type:").append(type.name()); for (int i = 0; i < branchCircuitBreakerVals.size(); i++) { BasicDataAttribute modelNodes = branchCircuitBreakerVals.get(i); if (modelNodes != null && elements.length > i) { String pwKeyName = null; for (String sclKey : parameterGenerator.getSclKeyToPWKeyMap().keySet()) { if (modelNodes.getReference().toString().endsWith(sclKey)) { pwKeyName = sclKey; } } if (pwKeyName == null) { continue; } for (int j = 0; j < paramPack[0].length; j++) { if (!loged) { sb.append(logDataSeperator).append(paramPack[0][j]).append(logDataSeperator).append(elements[j]); } if (parameterGenerator.getSclKeyToPWKeyMap().get(pwKeyName).equals(paramPack[0][j])) { if (modelNodes instanceof BdaDoubleBitPos) { byte[] status = new byte[1]; if (elements[j].equalsIgnoreCase("open")) { status[0] = 0; } else { status[0] = 1; } ((BdaDoubleBitPos) modelNodes).setValue(status); } else if (modelNodes instanceof BdaVisibleString) { ((BdaVisibleString) modelNodes).setValue(elements[j]); } else if (modelNodes instanceof BdaFloat32) { ((BdaFloat32) modelNodes).setFloat(Float.parseFloat(elements[j])); } } } loged = true; } } serverStarted = true; // synchronized (logger) { // if (ConfigUtil.MANUAL_EXPERIMENT_MODE) { // if this string is not printed in the log file, logger.info(sb.toString()); // } // } sb = new StringBuffer(""); loged = false; serverSap.setValues(branchCircuitBreakerVals); if (serverStoped) { serverStarted = false; break; } } } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }", "public void startServer() {\n server.start();\n }", "private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Except...
[ "0.7039027", "0.701725", "0.6961597", "0.6816257", "0.6791782", "0.6704073", "0.6682718", "0.6667778", "0.65924543", "0.6562595", "0.6560519", "0.65528655", "0.65507776", "0.65406644", "0.6514202", "0.6506686", "0.6495357", "0.64826006", "0.64799744", "0.6465176", "0.64510953...
0.6254239
42
dont need .to(), it's smart enough to know which
@Override protected void configure() { bind(Tire.class); bind(Spoke.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getTo();", "Object getFrom();", "public int to() {\n return this.to;\n }", "int getTo();", "public String getTo()\r\n {\r\n return to;\r\n }", "long getTo();", "public void set_to(String to2) {\n\t\tthis.to=to2;\n\t}", "public V getTo()\n\t{\n\t\treturn to;\n\t}", "String ge...
[ "0.6079896", "0.55621517", "0.5507354", "0.53788203", "0.53579485", "0.53060913", "0.5259887", "0.5224327", "0.5211841", "0.5211841", "0.5211841", "0.5211841", "0.51506895", "0.5148421", "0.5140474", "0.51108074", "0.51058", "0.509226", "0.5039765", "0.50263613", "0.50206524"...
0.0
-1
Add point of customer to database.
public static int addNormalPoint(String cardNumber,int taskid, int point, String mid,String tid,String poscc,Connection con) { LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.addNormalPoint(cardNumber, taskid, point, mid,tid,poscc,con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().save(customer);\n\t}", "private void addCustomer(Customer customer) {\n List<String> args = Arrays.asList(\n customer.getCustomerName(),\n customer.getAddress(),\n ...
[ "0.66976565", "0.66885954", "0.6505853", "0.64579165", "0.63943666", "0.639312", "0.63899684", "0.63569325", "0.63522935", "0.63467556", "0.6340972", "0.63340086", "0.6289212", "0.6236889", "0.62274176", "0.6219725", "0.6215639", "0.6212862", "0.6189498", "0.61837655", "0.617...
0.0
-1
Get event point and log it in log event table
public static int addEventPoint(String cardNumber,float money,int logId,Connection con){ LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.addEventPoint(cardNumber,money, logId, con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected void _log(TrackingEvent event) throws Exception;", "public synchronized void onPointEvent(Object source, PointEvent evt) {\n PointData pd = evt.getPointData();\n // Check that there's data.. ?\n if (pd == null) { // || pd.getData() == null) {\n return;\n }\n\n // Find the i...
[ "0.62763107", "0.62674445", "0.60188925", "0.58243775", "0.57354754", "0.57325184", "0.57274234", "0.5694549", "0.5547943", "0.5519876", "0.55025584", "0.54324806", "0.54156846", "0.53803563", "0.53707457", "0.5369346", "0.5365281", "0.5348663", "0.53365374", "0.531517", "0.5...
0.5425349
12
Subtract point of customer to database.
public static int subtractPoint(String cardNumber,int taskid, int point, String mid,String tid,String poscc,Connection con) { LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.subtractPoint(cardNumber, taskid, point, mid,tid,poscc,con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deductPoint (String user, double point) throws IOException { \r\n this.point = this.point - point; \r\n Owner o = new Owner(user, password);\r\n String lineSplit[];\r\n out = new FileReader(\"Customer.txt\");\r\n BufferedReader read = new BufferedReader(out);\...
[ "0.6040063", "0.5824464", "0.57723004", "0.57514524", "0.56386626", "0.5540692", "0.5518872", "0.55009335", "0.54802537", "0.5479679", "0.5471761", "0.54617697", "0.54518265", "0.54199636", "0.5418446", "0.5388452", "0.53172195", "0.5306356", "0.5213668", "0.5200066", "0.5197...
0.5990988
1
Get customer from customer identify.
public static DTO_JPOS_Customer getCustomer(int customerId,Connection con) { LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.getCustomer(customerId,con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomer(String custId);", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "static customer getCustomer(String uid) {\n return null;\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "Customer getCustomerById(final Long id);", "C...
[ "0.7740952", "0.7552235", "0.7552235", "0.7534887", "0.7490194", "0.7456039", "0.741094", "0.7386757", "0.73495084", "0.7348919", "0.73410916", "0.72395176", "0.7222866", "0.7178203", "0.71446955", "0.71185493", "0.7066266", "0.70626783", "0.70314175", "0.70270437", "0.702021...
0.0
-1
Get current point of customer.
public static int getCurrentPoint(String cardId,Connection con){ LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.getCurrentPoint(cardId, con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Customer getCurrentCustomer() {\n\t\treturn currentCustomer;\n\t}", "public Customer getCurrentCustomer() {\n\t\treturn currentCustomer;\n\t}", "public KDPoint getPoint() {\n\t\treturn new KDPoint(this.loc.lat,this.loc.lng,0.0);\n\t}", "public Point getPoint()\n\t{\n\t\treturn point;\n\t}", "public ...
[ "0.70314926", "0.70314926", "0.66574705", "0.65742874", "0.65622205", "0.6521666", "0.6521666", "0.64999884", "0.6499908", "0.64972866", "0.64766735", "0.6453519", "0.6453519", "0.64519006", "0.64483994", "0.6424501", "0.6370454", "0.63660264", "0.63338375", "0.63276577", "0....
0.61225295
31
Check point of customer to exchange gift.
public static int checkRedemptionPoint(String cardNumber,int giftType,Connection con){ LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.checkRedemptionPoint(cardNumber, giftType, con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isTransferRequestValid(Customer fromCustomer,Customer toCustomer,RewardCurrency fromRewardCurrency, RewardCurrency toRewardCurrency,TransferPointSetting transferPointSetting) throws InspireNetzException {\n\n MessageWrapper messageWrapper = generalUtils.getMessageWrapperObject(\"\",fromCustom...
[ "0.66957986", "0.6447144", "0.6284307", "0.6160258", "0.6159208", "0.6094601", "0.60475266", "0.5985842", "0.5933177", "0.59101343", "0.58820474", "0.5862901", "0.5851854", "0.5841657", "0.5835329", "0.5769827", "0.5734961", "0.57290524", "0.5725463", "0.5722629", "0.5711122"...
0.5593402
38
Ensures that the music is being played if it should.
public static void updateMusic() { if ( Settings.isMusicOn() && !musicPlaying() ) startMusic(); else if ( !Settings.isMusicOn() && musicPlaying() ) stopMusic(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "public static boolean musicPlaying()\r\n\t{\r\n\t\tif ( musicPlayer == null )\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn mus...
[ "0.7342018", "0.7039007", "0.69826853", "0.67778134", "0.673778", "0.6736304", "0.6644277", "0.6629068", "0.6587703", "0.6575006", "0.6539362", "0.6527752", "0.65133", "0.65020055", "0.64887923", "0.6478843", "0.6474848", "0.6455455", "0.6454013", "0.64240366", "0.6412114", ...
0.71016157
1
Toggles the music on / off.
public static boolean toggleMusic() { if ( musicPlaying() ) stopMusic(); else startMusic(); Settings.setMusicOn( musicPlaying() ); return Settings.isMusicOn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toggleMusic() {\n this.musicEnabled = !this.musicEnabled;\n }", "public void setMusicOn(boolean on){\r\n\t\tmusicOn = on;\r\n\t}", "synchronized void toggle() {\n try {\n myShouldPause = !myShouldPause;\n if (myShouldPause) {\n if (myPlayer != null) {\n myPlay...
[ "0.8906403", "0.7908527", "0.78104216", "0.7594626", "0.7548933", "0.7523545", "0.7475785", "0.7442795", "0.73795056", "0.7195614", "0.7188607", "0.7108621", "0.7067843", "0.7019711", "0.69715154", "0.69667983", "0.6959822", "0.6909428", "0.6877419", "0.6814214", "0.67681295"...
0.7837987
2
Toggles the internal sound on / off.
public static boolean toggleSound() { Settings.setSoundOn( !Settings.isSoundOn() ); return Settings.isSoundOn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toggleSound()\n\t{\n\t\tif (sound)\n\t\t\tsound = false;\n\t\telse\n\t\t\tsound = true;\n\t\tnotifyObservers();\n\t}", "public void enableSound() {\n soundToggle = true;\n }", "public void toggleSound() { \n\t\tif (mSoundEnable) {\n\t\t\tmSoundEnable = false; \n\t\t\tif (ResourceManager.getInst...
[ "0.8333718", "0.8107491", "0.78946745", "0.7701819", "0.75125796", "0.7459061", "0.7371739", "0.72757566", "0.723063", "0.7146102", "0.7119545", "0.70716417", "0.7011233", "0.69494396", "0.69175524", "0.6898381", "0.67810595", "0.67643064", "0.672678", "0.66575795", "0.664238...
0.78404164
3
Returns whether the music is playing.
public static boolean musicPlaying() { if ( musicPlayer == null ) return false; else return musicPlayer.isPlaying(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPlaying() {\n return params.isPlay();\n }", "public boolean playing() {\n\t\treturn sound.isPlaying();\n\t}", "public boolean isPlaying() {\n\t\tif(currentPlayingItem==null) return false;\n\t\treturn mediaPlayer.isPlaying();\n\t}", "public boolean isPlaying() {\n \t\treturn isPlayi...
[ "0.8345955", "0.8216589", "0.8158422", "0.8135614", "0.812898", "0.80959785", "0.80838776", "0.8079377", "0.80763906", "0.80139744", "0.80017227", "0.79683024", "0.7967706", "0.793689", "0.78940004", "0.78498876", "0.7819764", "0.7739032", "0.76728743", "0.76625913", "0.76408...
0.8803984
0
Starts or resumes the music.
public static void startMusic() { if ( musicPlayer == null ) musicPlayer = new MusicPlayer( "Music2.mid" ); else musicPlayer.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void playMusic() {\n\t\tthis.music.start();\n\t}", "public static void resumeMusic() {\n\t\t\n\t\tif (currentMusic == null) {\n\t\t\tplayMusic(\"mainMenuMusic\", 0.1f);\n\t\t} else {\n\t\t\tcurrentMusic.start();\n\t\t}\n\t}", "private void startPlay() {\n isPlaying = true;\n isPaused = f...
[ "0.78808486", "0.78327936", "0.7690954", "0.7686495", "0.7672669", "0.7534613", "0.75324947", "0.7425738", "0.7425016", "0.7307942", "0.72988296", "0.7237597", "0.7232273", "0.71720636", "0.7133874", "0.71328545", "0.713058", "0.70787925", "0.70734036", "0.70725566", "0.70264...
0.7624008
5
Starts a new thread to play the given sound
public static void playInternal( LayeredSound.SoundClip s ) { if ( Settings.isSoundOn() ) new SpeakerThread( s ).start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void start() {\n if(!running) {\n this.soundThread = new Thread(this, \"TankGameSound\");\n this.soundThread.start();\n this.running = true;\n }\n }", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays())...
[ "0.7900553", "0.7466587", "0.73764116", "0.7294965", "0.72875327", "0.7284169", "0.7275957", "0.727095", "0.7214081", "0.721106", "0.7137845", "0.7137735", "0.70531416", "0.7046794", "0.7034456", "0.70318073", "0.698562", "0.69837666", "0.6980943", "0.6922005", "0.68906456", ...
0.7273429
7
Constructs a new SpeakerThread to ensure that a given sound is played
public SpeakerThread( LayeredSound.SoundClip s ) { super( "Speaker Thread #" + ID++ ); this.sound = new LayeredSound.SoundClip( s ); setPriority( MIN_PRIORITY ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void playInternal( LayeredSound.SoundClip s )\r\n\t{\r\n\t\tif ( Settings.isSoundOn() )\r\n\t\t\tnew SpeakerThread( s ).start();\r\n\t}", "protected Thread createPlayerThread()\n\t{\n\t\treturn new Thread(this, \"Audio player thread\");\t\n\t}", "public synchronized void start() {\n if(!ru...
[ "0.6875636", "0.6501754", "0.63088095", "0.6287378", "0.6228696", "0.6060401", "0.593483", "0.59152275", "0.58953255", "0.58842176", "0.5878008", "0.5857583", "0.5824885", "0.57477325", "0.57425964", "0.5738692", "0.57234186", "0.57131875", "0.56902564", "0.56850564", "0.5672...
0.70075786
0
Starts this Thread and either exits quickly (if there are already sounds playing), or lasts indefinitely, playing each sound passed to it until no other sound is left to play, at which point it terminates normally.
@Override public void run() { LayeredSound.getInstance().add( sound ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n if(musicEnabled) {\n playSoundtrack();\n while (running) {\n if(!stack.isEmpty()) {\n Sound sound = stack.pop();\n sound.play(sound.loadInputStream());\n }\n }\n }...
[ "0.71018046", "0.70418864", "0.6886401", "0.68499357", "0.67208844", "0.66929597", "0.667888", "0.6581282", "0.65723264", "0.65196705", "0.651624", "0.6482192", "0.6477256", "0.647041", "0.64431", "0.6439301", "0.6436899", "0.6430234", "0.6422066", "0.6420121", "0.6417879", ...
0.65829253
7
Calculate the cost of a bus ride
public static String busFare(int age, Scanner console){ String charlie; if(18 < age && age < 65){ // if the rider is aged 19-64, ask for a charlie card System.out.print("Is the rider using a Charlie Card?(y/n): "); charlie = console.next(); console.nextLine(); // Consume rest of line } else { charlie = "n"; } String fare; if (age <= 11){ fare = "free"; } else if (age >= 12 && age <= 18){ fare = "$0.60"; } else if (age >= 65){ fare = "$0.40"; } else{ if(charlie.equalsIgnoreCase("y")){ // If they are using a charlie card fare = "$1.25"; } else{ fare = "$1.50"; } } return fare; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double calculateDeliveryCost(Cart cart);", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "double getCost();", "double getCost();", "double getTotalCost();", "public doub...
[ "0.684374", "0.6730172", "0.66665715", "0.66665715", "0.6586421", "0.6465254", "0.6460963", "0.6334676", "0.62738997", "0.6273126", "0.6269933", "0.6262697", "0.6262697", "0.6262697", "0.62572014", "0.6232598", "0.6209569", "0.62000674", "0.61682814", "0.6158821", "0.6153496"...
0.0
-1
Calculate the cost of a subway ride
public static String subwayFare(int age, Scanner console){ String charlie; if(18 < age && age < 65){ // if the rider is aged 19-64, ask for a charlie card System.out.print("Is the rider using a Charlie Card?(y/n): "); charlie = console.next(); console.nextLine(); // Consume rest of line } else { charlie = "n"; } String fare; if (age <= 11){ fare = "free"; } else if (age >= 12 && age <= 18){ fare = "$0.85"; } else if (age >= 65){ fare = "$0.60"; } else{ if(charlie.equalsIgnoreCase("y")){ //if a charlie card is used fare = "$1.70"; } else{ fare = "$2.00"; } } return fare; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getSubWC() {\r\n return costs.get(Transports.SUBWAY);\r\n }", "double getCost();", "double getCost();", "double calculateDeliveryCost(Cart cart);", "double getTotalCost();", "public void calculateCost() {\n\t\tthis.cost = 0.0;\n\t\t\n\t\tint i, count = this.cities.size()-1;\n\t\tfo...
[ "0.64820683", "0.6385431", "0.6385431", "0.6366386", "0.63556385", "0.6324461", "0.62243754", "0.6173856", "0.6124399", "0.61119616", "0.60989714", "0.60782033", "0.60509735", "0.60484946", "0.6018586", "0.6016952", "0.6001784", "0.5995073", "0.5989384", "0.5989384", "0.59893...
0.0
-1
Calculate the cost of a train ride
public static int railFare(int age, Scanner console){ int zoneNum; int cents; System.out.print("What zone (use 0 for zone 1A)?: "); zoneNum = console.nextInt(); console.nextLine(); // Consume rest of line if(zoneNum == 0){ cents = 170; //cost is $1.70 for zone 1 } else{ cents = 425 + (50 * (zoneNum - 1)); // All other zones cost $4.25 + $0.50 for each zone after 1 } if ((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off cents = (cents / 2); } return cents; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getTotalCost();", "double getCost();", "double getCost();", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "public int getCost()\n\t{\n\t\treturn m_nTravelCost;\n\t}...
[ "0.676092", "0.6735939", "0.6735939", "0.6601205", "0.65614915", "0.6557486", "0.6495048", "0.6436094", "0.63827753", "0.6266983", "0.6266983", "0.6266983", "0.6248103", "0.6244854", "0.6231843", "0.62204266", "0.6153766", "0.6148142", "0.61464214", "0.6135057", "0.61296606",...
0.0
-1
Calculate cost of a boat ride
public static int boatFare(int age, Scanner console){ int cents=0; String boatType; System.out.print("Enter the type of boat (I for Inner Harbor, B for Boston, L for Logan): "); boatType = console.next(); console.nextLine(); // Consume the rest of the line if (boatType.equalsIgnoreCase("i")){ cents = 170; if((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off cents = cents / 2; } } else if (boatType.equalsIgnoreCase("b")){ cents = 600; if((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off cents = cents / 2; } } else if (boatType.equalsIgnoreCase("l")){ cents = 1200; if(age >= 12 && age <= 18){ // Students get 50% off cents = cents / 2; } else if(age >= 65){ cents = cents - 1000; // Seniors get $10 off } } return cents; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n ...
[ "0.6774573", "0.66803765", "0.66803765", "0.6661701", "0.66370887", "0.66186345", "0.65824354", "0.6575794", "0.6513894", "0.64397097", "0.64214194", "0.64008194", "0.63710284", "0.6364995", "0.6361303", "0.6359698", "0.6359698", "0.6359698", "0.6330206", "0.6321706", "0.6312...
0.0
-1
create object of Thepound class
public static void main(String[] args) { ThePound object1 = new ThePound(3); //set array elements object1.setArrayElement(0, "spot"); object1.setArrayElement(1, "rover"); object1.setArrayElement(2, "rufus"); //call method and print to screen object1.printElement(0); object1.printElement(1); object1.printElement(2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "OBJECT createOBJECT();", "Oracion createOracion();", "private Instantiation(){}", "Simple createSimple();", "public Playground() {\n }", "public TTau() {}", "Dog(){\n\t\t\n\t\t//I want to create a chemicals object. Inorder to do this, I have to first create a Cardiac ...
[ "0.6583627", "0.6377286", "0.6260925", "0.62603086", "0.6224311", "0.6212988", "0.6178679", "0.61560935", "0.61379826", "0.6109769", "0.61064833", "0.61023796", "0.61022705", "0.6091225", "0.60884315", "0.60649186", "0.60610396", "0.6053074", "0.6051234", "0.6025307", "0.6014...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver","chromedriver.exe"); WebDriver driver=new ChromeDriver(); driver.get("https://www.facebook.com/"); driver.manage().window().maximize(); driver.findElement(By.name("email")).sendKeys("nikhilakamalk@gmail.com"); //driver.findElement(By.name("email")).submit(); driver.findElement(By.name("pass")).sendKeys("nikhila@1994"); //driver.findElement(By.id("u_0_b")).submit(); Select day=new Select(driver.findElement(By.id("day"))); day.selectByVisibleText("28"); }
{ "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
Created by shanhuang on 9/13/18.
public interface HiveMetaDao { String getLocationByDbAndTable(Map<String, String> map); List<String> getDbsByUser(String userName); List<Map<String, Object>> getTablesByDbNameAndUser(Map<String, String> map); Long getPartitionSize(Map<String, String> map); List<String> getPartitions(Map<String, String> map); List<Map<String, Object>> getColumns(Map<String, String> map); List<Map<String, Object>> getPartitionKeys(Map<String, String> map); String getTableComment(@Param("DbName") String DbName, @Param("tableName") String tableName); }
{ "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 comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Over...
[ "0.6139158", "0.6095572", "0.6036657", "0.6030939", "0.59052587", "0.5893215", "0.5893215", "0.58598953", "0.58516794", "0.5848503", "0.5837134", "0.58153045", "0.58070856", "0.5795991", "0.5788124", "0.57834876", "0.5780513", "0.57798064", "0.57798064", "0.57798064", "0.5779...
0.0
-1
Will be called when an item has been clicked from the list of items.
@Override public void onClick(Product product) { Log.i("MainActivity", product.toString()); Intent detailIntent = new Intent(this, DetailActivity.class); detailIntent.putExtra(Constants.Keys.PRODUCT_DETAIL.toString(), product); startActivity(detailIntent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n ...
[ "0.7903223", "0.7835653", "0.78165007", "0.7801231", "0.7766777", "0.7690195", "0.76623285", "0.7566199", "0.7557516", "0.7537199", "0.75076103", "0.7485216", "0.7459619", "0.74537635", "0.7448285", "0.7445074", "0.74341536", "0.74302465", "0.7430194", "0.742161", "0.7418831"...
0.0
-1
Constructs a DemoFrame, configures the UI, and builds the content.
protected Main(Settings settings) { this.settings = settings; configureUI(); build(); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFr...
[ "0.68860817", "0.6759921", "0.6749737", "0.6735444", "0.65946585", "0.65546304", "0.65094566", "0.65056753", "0.6501428", "0.64995223", "0.6491803", "0.64771867", "0.64741826", "0.6443037", "0.6435832", "0.6428431", "0.6375732", "0.6372552", "0.6346758", "0.6310557", "0.63045...
0.0
-1
Configures the user interface; requests Swing settings and JGoodies Looks options from the launcher.
private void configureUI() { // UIManager.put("ToolTip.hideAccelerator", Boolean.FALSE); Options.setDefaultIconSize(new Dimension(18, 18)); Options.setUseNarrowButtons(settings.isUseNarrowButtons()); // Global options Options.setTabIconsEnabled(settings.isTabIconsEnabled()); UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY, settings.isPopupDropShadowEnabled()); // Swing Settings LookAndFeel selectedLaf = settings.getSelectedLookAndFeel(); if (selectedLaf instanceof PlasticLookAndFeel) { PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme()); PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle()); PlasticLookAndFeel.setHighContrastFocusColorsEnabled( settings.isPlasticHighContrastFocusEnabled()); } else if (selectedLaf.getClass() == MetalLookAndFeel.class) { MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme()); } // Work around caching in MetalRadioButtonUI JRadioButton radio = new JRadioButton(); radio.getUI().uninstallUI(radio); JCheckBox checkBox = new JCheckBox(); checkBox.getUI().uninstallUI(checkBox); try { UIManager.setLookAndFeel(selectedLaf); } catch (Exception e) { System.out.println("Can't change L&F: " + e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupGUI() {\r\n\t\tPaperToolkit.initializeLookAndFeel();\r\n\t\tgetMainFrame();\r\n\t}", "protected void setupUI() {\n\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint()...
[ "0.7174799", "0.66809714", "0.66023904", "0.64725524", "0.64588577", "0.6418183", "0.6401742", "0.63150257", "0.6299439", "0.6298949", "0.6298949", "0.6298949", "0.6298949", "0.6298949", "0.6298949", "0.6298949", "0.6283779", "0.62775624", "0.6219292", "0.6211749", "0.6201901...
0.72765714
0
Builds the DemoFrame using Options from the Launcher.
private void build() { applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); setContentPane(buildContentPane()); setTitle(getWindowTitle()); setJMenuBar( createMenuBuilder(this).buildMenuBar( settings, createHelpActionListener(), createAboutActionListener())); setIconImage(readImageIcon("eye_16x16.gif").getImage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFr...
[ "0.59651756", "0.594852", "0.5894489", "0.57394254", "0.5720989", "0.5660816", "0.5554108", "0.55345666", "0.55187476", "0.54638535", "0.54221106", "0.5414989", "0.5390484", "0.53721434", "0.53712565", "0.53351593", "0.5324836", "0.5292056", "0.5290609", "0.5289561", "0.52890...
0.5209697
26
Creates and returns a builder that builds the menu. This method is overriden by the full JGoodies Looks Demo to use a more sophisticated menu builder that uses the JGoodies UI Framework.
protected MenuBarView createMenuBuilder(Main mainFrameUtil) { return new MenuBarView(mainFrameUtil); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Menu createToolsMenu();", "private static JMenuBar menuMaker(){\n final JMenuBar menuBar = new JMenuBar();\n final JMenu menu = new JMenu(\"App\");\n menuBar.add(menu);\n menu.addSeparator();\n final JMenuItem menuItem;\n (menuItem = new JMenuItem(\"Exit\", 88)).a...
[ "0.73089874", "0.7032386", "0.6960877", "0.6939817", "0.691779", "0.6901186", "0.67820174", "0.67542684", "0.6743296", "0.6719708", "0.670351", "0.6700678", "0.6692607", "0.6678891", "0.663716", "0.6582324", "0.6581772", "0.65802395", "0.65764976", "0.65731466", "0.6549638", ...
0.7059592
1
Builds and answers the content.
private JComponent buildContentPane() { contentPane = new ContentPanel(new BorderLayout()); contentPane.add(buildToolBar(), BorderLayout.NORTH); contentPane.add(buildMainPanel(), BorderLayout.CENTER); return contentPane; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void build() {\n\t\tgenerate();\n\t\tstoreAns();\n\t\t// display();\n\t}", "public void build() {\r\n // TODO\r\n }", "@Override\r\n\tprotected String buildContent() {\n\t\treturn null;\r\n\t}", "protected void buildResponse() {\r\n appendResponse(\"<?xml version=\\\"1.0\\\" standalon...
[ "0.6741118", "0.63807166", "0.631848", "0.621938", "0.62113845", "0.6127291", "0.6103976", "0.6098719", "0.6006671", "0.5990802", "0.59605086", "0.59593403", "0.5877157", "0.5790035", "0.5770035", "0.56738335", "0.5667117", "0.56272864", "0.5606784", "0.5605093", "0.5530491",...
0.5387406
25
Tool Bar Builds, configures and returns the toolbar. Requests HeaderStyle, lookspecific BorderStyles, and Plastic 3D Hint from Launcher.
private Component buildToolBar() { DToolBar toolBar = new DToolBar(); // toolBar.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); toolBar.setFloatable(true); toolBar.putClientProperty("JToolBar.isRollover", Boolean.TRUE); // Swing toolBar.putClientProperty( Options.HEADER_STYLE_KEY, settings.getToolBarHeaderStyle()); toolBar.putClientProperty( PlasticLookAndFeel.BORDER_STYLE_KEY, settings.getToolBarPlasticBorderStyle()); toolBar.putClientProperty( WindowsLookAndFeel.BORDER_STYLE_KEY, settings.getToolBarWindowsBorderStyle()); toolBar.putClientProperty( PlasticLookAndFeel.IS_3D_KEY, settings.getToolBar3DHint()); AbstractButton button; /* toolBar.add(createToolBarButton("backward.gif", "Back")); button = createToolBarButton("forward.gif", "Next"); button.setEnabled(false); toolBar.add(button);*/ button = createToolBarButton("home.gif", ResourceUtil.getString("HOME")); toolBar.add(button); button.addActionListener(this); button.setActionCommand("home"); // toolBar.addSeparator(); button = createToolBarButton("preference16.gif", ResourceUtil.getString("PREFERENCES")); toolBar.add(button); button.setRolloverIcon(readImageIcon("preference16_over.gif")); button.addActionListener(this); button.setActionCommand("Preferences"); toolBar.addSeparator(); button = createToolBarButton("new16.gif", ResourceUtil.getString("NEW")); button.setActionCommand("new"); button.addActionListener(this); toolBar.add(button); button = createToolBarButton("save_edit.gif", ResourceUtil.getString("SAVE")); button.setActionCommand("save"); button.addActionListener(this); toolBar.add(button); button = createToolBarButton("delete16.gif", ResourceUtil.getString("DELETE")); button.setActionCommand("delete"); button.addActionListener(this); toolBar.add(button); button = createToolBarButton("print.gif", ResourceUtil.getString("PRINT")); button.setActionCommand("print"); button.addActionListener(this); toolBar.add(button); /* toolBar.add(createToolBarButton("print.gif", "Print")); toolBar.add(createToolBarButton("refresh.gif", "Update")); toolBar.addSeparator(); ButtonGroup group = new ButtonGroup(); button = createToolBarRadioButton("pie_mode.png", "Pie Chart"); button.setSelectedIcon(readImageIcon("pie_mode_selected.gif")); group.add(button); button.setSelected(true); toolBar.add(button); button = createToolBarRadioButton("bar_mode.png", "Bar Chart"); button.setSelectedIcon(readImageIcon("bar_mode_selected.gif")); group.add(button); toolBar.add(button); button = createToolBarRadioButton("table_mode.png", "Table"); button.setSelectedIcon(readImageIcon("table_mode_selected.gif")); group.add(button); toolBar.add(button); toolBar.addSeparator(); button = createToolBarButton("help.gif", "Open Help"); button.addActionListener(createHelpActionListener()); toolBar.add(button);*/ return toolBar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupToolbars(){\n\t\ttopBar = new TopBar(0, 0, setup.getFrameWidth()+12, Constants.WINDOW_HEADER_HEIGHT, \n\t\t\t\tConstants.COLOR_HEADER_1, setup);\n\t\t\n\t\tbottomBar = new BottomBar(0, \n\t\t\t\tConstants.WINDOW_HEADER_HEIGHT+(Constants.WINDOW_MAP_MARGIN*2)+Constants.WINDOW_MAP_HEIGHT, \n\t\t\t\t...
[ "0.74376154", "0.7346047", "0.7286061", "0.72442883", "0.7178089", "0.71718585", "0.7073056", "0.70262957", "0.70146996", "0.7001062", "0.69278353", "0.68461376", "0.68301964", "0.6795383", "0.6699676", "0.6655533", "0.66083753", "0.65877324", "0.6583752", "0.6514449", "0.646...
0.7613518
0
Creates and returns a JButton configured for use in a JToolBar. This is a simplified method that is overriden by the Looks Demo. The full code uses the JGoodies UI framework's ToolBarButton that better handles platform differences.
protected AbstractButton createToolBarButton(String iconName, String toolTipText) { JButton button = new JButton(readImageIcon(iconName)); button.setToolTipText(toolTipText); button.setFocusable(false); return button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JButton createJButton(String name) throws MissingResourceException, ResourceFormatException, MissingListenerException {\n/* 111 */ return this.buttonFactory.createJToolbarButton(name);\n/* */ }", "public Component createNewToolItem() {\r\n Button button = new Button();\r\n gwtToolb...
[ "0.7663794", "0.75106657", "0.7414019", "0.7371093", "0.7276295", "0.7121832", "0.6970985", "0.6925961", "0.68781346", "0.6835889", "0.67926294", "0.6790883", "0.67334497", "0.67029", "0.67002875", "0.6661244", "0.6616312", "0.6615931", "0.66127783", "0.6564825", "0.654377", ...
0.7509161
2
Creates and returns a JToggleButton configured for use in a JToolBar. This is a simplified method that is overriden by the Looks Demo. The full code uses the JGoodies UI framework's ToolBarButton that better handles platform differences.
protected AbstractButton createToolBarRadioButton(String iconName, String toolTipText) { JToggleButton button = new JToggleButton(readImageIcon(iconName)); button.setToolTipText(toolTipText); button.setFocusable(false); return button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JToolBar getToolsToolBar() {\r\n\t\tif (toolsToolBar == null) {\r\n\t\t\ttoolsToolBar = new JToolBar();\r\n\t\t\ttoolsToolBar.setPreferredSize(new Dimension(87, 24));\r\n\t\t\tif(flag){\r\n\t\t\t\ttoolsToolBar.add(getOpenButton());\r\n\t\t\t\ttoolsToolBar.add(getSaveButton());\r\n\t\t\t}\r\n\t\t\ttoolsTool...
[ "0.705028", "0.68272346", "0.6596017", "0.654584", "0.6523541", "0.6393968", "0.6381892", "0.6380932", "0.6376646", "0.6345386", "0.63185567", "0.631648", "0.62968093", "0.62614936", "0.6219101", "0.6214543", "0.6207552", "0.6204762", "0.6126506", "0.6106197", "0.60953754", ...
0.6626732
2
Tabbed Pane Builds and answers the tabbed pane.
private Component buildMainPanel() { DPanel mainPanel = new DPanel(); JLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon("happycow.jpg")); mainPanel.add(backGroundLabel); setCurrentContentPane(mainPanel); home = mainPanel; return home; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = ta...
[ "0.7219927", "0.68029606", "0.6794977", "0.6746349", "0.6700936", "0.6681917", "0.66033906", "0.6569116", "0.6526606", "0.6519263", "0.65116984", "0.6510356", "0.6475378", "0.6389737", "0.63763887", "0.6364665", "0.63510245", "0.6314948", "0.6312297", "0.62981534", "0.6279238...
0.0
-1
Helper Code Looks up and returns an icon for the specified filename suffix.
protected static ImageIcon readImageIcon(String filename) { URL url = Main.class.getResource("resources/images/" + filename); return new ImageIcon(url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIconFile();", "java.lang.String getIcon();", "java.lang.String getIcon();", "public abstract String getIconPath();", "String getIcon();", "String getIcon();", "public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }", ...
[ "0.75395185", "0.6913327", "0.6913327", "0.6875535", "0.6792015", "0.6792015", "0.655478", "0.65157115", "0.64293456", "0.6375659", "0.6327834", "0.63243926", "0.63177115", "0.6282635", "0.6280836", "0.6216434", "0.62157077", "0.61682034", "0.6152233", "0.61384153", "0.611400...
0.56863666
60
Locates the given component on the screen's center.
protected void locateOnScreen(Component component) { Dimension paneSize = component.getSize(); Dimension screenSize = component.getToolkit().getScreenSize(); component.setLocation( (screenSize.width - paneSize.width) / 2, (screenSize.height - paneSize.height) / 2); // TODO: handle exception }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public void centralizarComponente() {\n Dimension ds = Toolkit.getDefaultToolkit().getScreenSize();\n Dimension dw = getSize();\n setLocation((ds.width - dw.width) / 2, (ds.height - dw.height) / 2);\n }", "public static void centerWindowOnScreen(Comp...
[ "0.706874", "0.7024103", "0.6916555", "0.67816025", "0.676986", "0.67113936", "0.6477343", "0.6462285", "0.6460198", "0.6460198", "0.64296436", "0.6326148", "0.6292712", "0.62834585", "0.62746143", "0.62683594", "0.62531585", "0.6250695", "0.6199036", "0.6197042", "0.6186882"...
0.7943692
0
Creates and answers an ActionListener that opens the help viewer.
protected ActionListener createHelpActionListener() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tg.printHelp(\"OthelloHelp.txt\");\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }", "public void HelpTopicsActionPerformed(java.awt.event.ActionEvent evt) {\n\n HelpWindow h...
[ "0.7521318", "0.7507551", "0.7429133", "0.7158624", "0.7086977", "0.70172554", "0.6952981", "0.6911648", "0.68973505", "0.6892538", "0.68529093", "0.6811914", "0.6790963", "0.67817533", "0.67513335", "0.67275953", "0.67165494", "0.6686641", "0.6676961", "0.6630445", "0.662676...
0.7297503
3
Creates and answers an ActionListener that opens the about dialog.
protected ActionListener createAboutActionListener() { return new AboutActionListener(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogAbout();\r\n\t\t\t}", "public static void actionPerformed()\r\n {\r\n AboutWindow.showAboutWindow();\r\n }", "public void helpAbout_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Applicati...
[ "0.8180485", "0.8141721", "0.8034589", "0.7683346", "0.76320654", "0.75742286", "0.75679016", "0.7518551", "0.73509", "0.7272084", "0.7183523", "0.7093702", "0.70468724", "0.70045483", "0.6984801", "0.6933303", "0.69181895", "0.69034404", "0.6900191", "0.6880618", "0.6828189"...
0.7994482
3
TODO Autogenerated method stub
@Override public void windowActivated(WindowEvent e) { }
{ "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 windowDeactivated(WindowEvent e) { }
{ "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 windowDeiconified(WindowEvent e) { }
{ "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 windowIconified(WindowEvent e) { }
{ "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 windowOpened(WindowEvent e) { }
{ "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 componentHidden(ComponentEvent e) { }
{ "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 componentMoved(ComponentEvent e) { }
{ "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
/ JADX WARNING: Removed duplicated region for block: B:3:0x0011 / Code decompiled incorrectly, please refer to instructions dump.
public boolean match(android.net.Uri r8) { /* r7 = this; r4 = 0 java.util.Map<java.lang.String, com.facebook.secure.switchoff.RegexWithNegation> r5 = r7.mUriComponentPattern java.util.Set r5 = r5.entrySet() java.util.Iterator r5 = r5.iterator() L_0x000b: boolean r6 = r5.hasNext() if (r6 == 0) goto L_0x0031 java.lang.Object r2 = r5.next() java.util.Map$Entry r2 = (java.util.Map.Entry) r2 java.lang.Object r0 = r2.getKey() java.lang.String r0 = (java.lang.String) r0 java.lang.String r1 = getUriComponentValue(r8, r0) if (r1 != 0) goto L_0x0024 L_0x0023: return r4 L_0x0024: java.lang.Object r3 = r2.getValue() com.facebook.secure.switchoff.RegexWithNegation r3 = (com.facebook.secure.switchoff.RegexWithNegation) r3 boolean r6 = r3.match(r1) if (r6 != 0) goto L_0x000b goto L_0x0023 L_0x0031: r4 = 1 goto L_0x0023 */ throw new UnsupportedOperationException("Method not decompiled: com.facebook.secure.switchoff.UriMatcher.match(android.net.Uri):boolean"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void processBlock(byte[] paramArrayOfByte)\r\n/* 150: */ {\r\n/* 151:236 */ int i5 = decodeBEInt(paramArrayOfByte, 0);\r\n/* 152:237 */ int i6 = decodeBEInt(paramArrayOfByte, 4);\r\n/* 153:238 */ int i7 = decodeBEInt(paramArrayOfByte, 8);\r\n/* 154:239 */ int i8 = decodeBEInt(paramAr...
[ "0.597068", "0.588975", "0.587366", "0.5837934", "0.5806638", "0.57855815", "0.5769202", "0.57680035", "0.57518214", "0.5749001", "0.5739904", "0.5727992", "0.5716763", "0.57078284", "0.56660384", "0.56636435", "0.5658732", "0.56552297", "0.56316686", "0.5592514", "0.558778",...
0.0
-1
Assumption: The two subsets don't need to be of about equal size.
private void DFS(int[] array, int level, List<Integer> list) { if (level == array.length) { if (Math.abs(sum - 2 * cur) < min) { min = Math.abs(sum - 2 * cur); } return; } cur += array[level]; list.add(array[level]); DFS(array, level + 1, list); cur -= array[level]; list.remove(list.size() - 1); DFS(array, level + 1, list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testIsSubset1() {\r\n Assert.assertEquals(false, set1.isSubset(set2));\r\n }", "HashSet<BitSet> createSubsetsOfLen2(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n \n for(int i=0; i<bs.length();){\n i = bs.nextSetBit(i);\n \...
[ "0.7219576", "0.7080832", "0.6879907", "0.686052", "0.674576", "0.67277104", "0.6646343", "0.6613798", "0.6605881", "0.6517347", "0.65051126", "0.6489482", "0.64763695", "0.6436263", "0.6403408", "0.6399758", "0.6368575", "0.63682413", "0.6365293", "0.6331071", "0.6280361", ...
0.0
-1
Assumption: The two subsets need to be of about equal size.
private void DFS2(int[] array, int level, List<Integer> list) { if (level == array.length) { if ((array.length % 2 == 0 && list.size() == array.length / 2) || (array.length % 2 == 1 && (list.size() == array.length / 2 || list.size() == array.length / 2 + 1))) { if (Math.abs(sum - 2 * cur) < min) { min = Math.abs(sum - 2 * cur); } } return; } cur += array[level]; list.add(array[level]); DFS2(array, level + 1, list); cur -= array[level]; list.remove(list.size() - 1); DFS2(array, level + 1, list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testIsSubset1() {\r\n Assert.assertEquals(false, set1.isSubset(set2));\r\n }", "HashSet<BitSet> createSubsetsOfLen2(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n \n for(int i=0; i<bs.length();){\n i = bs.nextSetBit(i);\n \...
[ "0.7089852", "0.7085459", "0.69369054", "0.68791336", "0.6702473", "0.6622291", "0.6573315", "0.6548873", "0.65356666", "0.6492514", "0.6480849", "0.6478727", "0.6456253", "0.6451618", "0.6431075", "0.63974226", "0.6290811", "0.6288154", "0.6224892", "0.61931074", "0.617686",...
0.0
-1
Time complexity is O(2^n). Space complexity is O(n). DP Assumptions: 1. All elements are nonnegative. 2. The two subsets don't need to be of about equal size. M[i][j]: whether elements in array [0, i] can sum to j
public int minDifference2(int[] array) { int sum = sum(array); boolean[][] matrix = new boolean[array.length][sum + 1]; for (int i = 0; i < array.length; i++) { for (int j = 0; j <= sum; j++) { if (i == 0) { matrix[i][j] = (j == 0) || (array[i] == j); } else { matrix[i][j] = matrix[i - 1][j] || (j - array[i] >= 0 && matrix[i - 1][j - array[i]]); } } } // post processing int offset = 0, index = sum / 2; while (!matrix[array.length - 1][index + offset] && !matrix[array.length - 1][index - offset]) { offset++; } return Math.min( (matrix[array.length - 1][index - offset]) ? Integer.MAX_VALUE : Math.abs(sum - 2 * (index - offset)), (matrix[array.length - 1][index + offset]) ? Integer.MAX_VALUE : Math.abs(sum - 2 * (index + offset))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static boolean subSetSumProblem(int[] arr,int sum){\n// init\n int n = arr.length;\n boolean[][] dp = new boolean[n+1][sum+1];\n\n for (int j = 0;j<=sum;j++){\n dp[0][j] = false;\n }\n\n for (int i = 0;i<=n;i++){\n dp[i][0] = true;\n }\n\n ...
[ "0.7088472", "0.6949676", "0.6719662", "0.6666878", "0.64092106", "0.6402013", "0.6398605", "0.6386648", "0.63386613", "0.62953484", "0.6273656", "0.6257191", "0.6208976", "0.6173373", "0.6165732", "0.61033887", "0.60887915", "0.60884124", "0.6048984", "0.60369873", "0.603524...
0.0
-1
ImageID must is case sensitive
@Nonnull static ImageKey of(@Nonnull String groupId, @Nonnull String imageId, int width, int height) { return UIInternal.get()._ImageKey_of(groupId, imageId, width, height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String extractImageNameFromIdentifier(String image) {\n String[] tokens = image.split(\"/\");\n\n String imageName = tokens[tokens.length-1];\n if(imageName.contains(\":\")) {\n return imageName.split(\":\")[0];\n } else {\n return imageName;\n }\n ...
[ "0.64105666", "0.62834585", "0.6255343", "0.62304115", "0.6150766", "0.6128256", "0.6100507", "0.6063311", "0.597828", "0.59606546", "0.59556323", "0.5953107", "0.59434", "0.59342104", "0.59312236", "0.5873171", "0.5867638", "0.5858432", "0.5847699", "0.5799264", "0.5792069",...
0.0
-1
Returns all the tags used to create buttons.
@Path("/tags") @GET @Produces("application/json") public Response getTagsList() { List<String> tags = PhotoDB.getTags(); Gson gson = new Gson(); String jsonText = gson.toJson(tags); return Response.status(Status.OK).entity(jsonText).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<GUIButton> getButtons(){\n return new ArrayList<>();\n }", "public HashMap<Integer, Element> getButtons() {\n\t\treturn buttons;\n\t}", "public ButtonTag GetButtonTag(){\n if(buttonTag != null) {\n return ButtonTag.valueOf(buttonTag);\n }\n else{\n ...
[ "0.68189454", "0.6809716", "0.6739419", "0.6722164", "0.66902196", "0.66292506", "0.6618946", "0.6589875", "0.6568669", "0.6562858", "0.6449598", "0.64128166", "0.64128166", "0.6403084", "0.6399385", "0.6383221", "0.6374171", "0.6374171", "0.6374171", "0.6374171", "0.6374171"...
0.0
-1
Constructs roaches population with initial number parameter.
RoachPopulation(int initial) { roaches = initial; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializePopulation(){\n\t\t// create the population\n\t\tfor(int i = 0; i < POPULATION_SIZE; i++){\n\t\t\t// get a random length for the building sequence\n\t\t\tint randArraySize = randomGenerator.nextInt(possiblePieces.length-1)+1;\n\t\t\t\n\t\t\tBuildingPiece[] pieceSequence = new BuildingPiece[ra...
[ "0.7135957", "0.662469", "0.6221108", "0.6206276", "0.61650795", "0.5875123", "0.58705103", "0.58587474", "0.5836974", "0.57967585", "0.5790748", "0.5787049", "0.57620096", "0.57307404", "0.5705834", "0.56904685", "0.5675189", "0.5649528", "0.56351495", "0.56163454", "0.56097...
0.80308425
0
Doubles population of roaches.
void breed() { roaches *= 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RoachPopulation(int initial)\n {\n roaches = initial;\n }", "public static void main(String[] args) {\n City city = new City(60, 200);\n\n City city2 = new City(180, 200);\n\n City city3 = new City(80, 180);\n City city4 = new City(140, 180);\n\n ...
[ "0.6741749", "0.61933154", "0.5926018", "0.5895407", "0.57495904", "0.572516", "0.5708134", "0.564253", "0.5597202", "0.5506299", "0.54780686", "0.5465958", "0.5431772", "0.5415112", "0.53793454", "0.5375534", "0.5336796", "0.53366625", "0.5334412", "0.533223", "0.5309783", ...
0.5988727
2
Reduces number of roaches by the given percent.
void spray(double percent) { roaches = (int) (roaches - (roaches * percent / 100)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n ...
[ "0.595768", "0.59567213", "0.5899873", "0.57642704", "0.56819487", "0.56704825", "0.5668451", "0.5574817", "0.5559014", "0.55549735", "0.55317634", "0.5509195", "0.54168224", "0.5381996", "0.53762865", "0.5360541", "0.5347987", "0.52827823", "0.52808654", "0.52779716", "0.527...
0.7732946
0
Gets the current number of roaches.
int getRoaches() { return roaches; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumRoads() {\n \t\treturn roads.size();\n \t}", "int getReaultCount();", "public int getReaultCount() {\n return reault_.size();\n }", "public int rodCount ();", "public int getReaultCount() {\n if (reaultBuilder_ == null) {\n return reault_.size();\n } else {\n...
[ "0.74432695", "0.6923869", "0.67783976", "0.66859263", "0.66448003", "0.6643148", "0.6621213", "0.658692", "0.65598756", "0.6434353", "0.639049", "0.63487595", "0.6316521", "0.6313347", "0.6291889", "0.62918806", "0.6287294", "0.6277435", "0.627115", "0.6250078", "0.6234517",...
0.7721627
0
generierte getter/setter Ende Interfaceroutinen
@Override public String getXmlClassTag() { return xmlClassTag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n String get();", "public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public...
[ "0.64158463", "0.6386735", "0.6268154", "0.6263064", "0.6263064", "0.6210023", "0.6116941", "0.60759264", "0.6071982", "0.59997237", "0.5983024", "0.5897087", "0.5892023", "0.58909154", "0.5886214", "0.5880357", "0.5879406", "0.5874814", "0.58603585", "0.58424306", "0.5837673...
0.0
-1
Gets the bearer code.
public String getBearerCode() { return bearerCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthCode()\n\t{\n\t\tif(response.containsKey(\"AUTH_CODE\")) {\n\t\t\treturn response.get(\"AUTH_CODE\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public int getAuthorizationCode();", "public String getAuthCode() {\n return authCode;\n }", "public String generateAuthCode() ...
[ "0.70166737", "0.667333", "0.6494777", "0.64764917", "0.6400406", "0.63181365", "0.63121593", "0.6287001", "0.6287001", "0.6258845", "0.6224103", "0.6224103", "0.6224103", "0.6224103", "0.6224103", "0.6189589", "0.6175425", "0.6175425", "0.61686885", "0.6162913", "0.6148576",...
0.8008545
0
Sets the bearer code.
public void setBearerCode(String bearerCode) { this.bearerCode = bearerCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBearerCode() {\r\n\t\treturn bearerCode;\r\n\t}", "public void setAuthorizationCode(int authorizationCode);", "public void setAuthorizationCode(String ac) throws IOException {\n setAuthorizationCode(ac, redirectURI);\n }", "void setCode(String code);", "public void setBearer(Stri...
[ "0.71814877", "0.71810186", "0.6676986", "0.64317733", "0.61933213", "0.6177575", "0.6167713", "0.611268", "0.60935396", "0.6069715", "0.6022189", "0.5987629", "0.59868306", "0.59848404", "0.59792817", "0.5920834", "0.5920834", "0.59035176", "0.59035176", "0.59035176", "0.590...
0.74521744
0
Gets the sender charges.
public List<SenderCharge> getSenderCharges() { return senderCharges; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSenderCharges(List<SenderCharge> senderCharges) {\r\n\t\tthis.senderCharges = senderCharges;\r\n\t}", "@Override\n\tpublic List<Charge> getCharges() {\n\t\tList<Charge> list = chargeMapper.getCharges();\n\t\treturn list;\n\t}", "public String getReceiverChargesAmount() {\r\n\t\treturn receiverCh...
[ "0.6736565", "0.6500952", "0.62148553", "0.59508157", "0.5800761", "0.56869143", "0.5668175", "0.5485352", "0.5427405", "0.54100686", "0.5323401", "0.5319636", "0.52494276", "0.52464056", "0.5227328", "0.5221539", "0.5190111", "0.5179985", "0.5178391", "0.5150444", "0.5136979...
0.84055036
0
Sets the sender charges.
public void setSenderCharges(List<SenderCharge> senderCharges) { this.senderCharges = senderCharges; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SenderCharge> getSenderCharges() {\r\n\t\treturn senderCharges;\r\n\t}", "public void setSender(String sender) {\n Sender = sender;\n }", "public PaymentRequest setSender(Sender sender) {\r\n this.sender = sender;\r\n return this;\r\n }", "public void setSender(String s...
[ "0.6521712", "0.5980154", "0.5950235", "0.59471273", "0.58789814", "0.58550453", "0.58178675", "0.5742769", "0.5723023", "0.54895973", "0.54584694", "0.54420906", "0.5424254", "0.5390365", "0.5354061", "0.53293014", "0.5251784", "0.523957", "0.52096575", "0.5180067", "0.51761...
0.79195625
0
Gets the receiver charges amount.
public String getReceiverChargesAmount() { return receiverChargesAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.math.BigDecimal getReceiveAmount() {\r\n return receiveAmount;\r\n }", "public String getReceiverChargesCurrency() {\r\n\t\treturn receiverChargesCurrency;\r\n\t}", "public BigDecimal getCHARGE_AMOUNT() {\r\n return CHARGE_AMOUNT;\r\n }", "public String getAmountCredited() {\n...
[ "0.71099025", "0.710713", "0.68534803", "0.668757", "0.66611093", "0.65761125", "0.6545459", "0.6404867", "0.6393482", "0.6386985", "0.6314927", "0.6304993", "0.6298276", "0.62950295", "0.62836856", "0.62764", "0.6275713", "0.62712294", "0.6265695", "0.6254715", "0.6249736", ...
0.8195943
0
Sets the receiver charges amount.
public void setReceiverChargesAmount(String receiverChargesAmount) { this.receiverChargesAmount = receiverChargesAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReceiverChargesAmount() {\r\n\t\treturn receiverChargesAmount;\r\n\t}", "void setAmount(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount amount);", "protected void setServiceCharge(double amount) {\n if (amount < 0) throw new IllegalArgumentException(\"Amount cannot be negati...
[ "0.62905633", "0.617178", "0.61481607", "0.6057121", "0.6044387", "0.6017528", "0.6005719", "0.5994549", "0.5939498", "0.5918385", "0.5918385", "0.5876361", "0.5873812", "0.5852652", "0.5851214", "0.5812568", "0.58094776", "0.5777637", "0.5770048", "0.57577467", "0.5735961", ...
0.6634548
0
Gets the receiver charges currency.
public String getReceiverChargesCurrency() { return receiverChargesCurrency; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public java.lang.String getChargecurrency() {\n\treturn chargecurrency;\n}", "public Pokemon.Currency getCurrency() {\n ...
[ "0.75130814", "0.75130814", "0.71405274", "0.7123406", "0.69418913", "0.6919962", "0.68596226", "0.68549913", "0.68549913", "0.68549913", "0.68549913", "0.6846804", "0.6825264", "0.6816776", "0.6808347", "0.679189", "0.67901164", "0.6787753", "0.6764233", "0.6743923", "0.6713...
0.86031055
0
Sets the receiver charges currency.
public void setReceiverChargesCurrency(String receiverChargesCurrency) { this.receiverChargesCurrency = receiverChargesCurrency; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReceiverChargesCurrency() {\r\n\t\treturn receiverChargesCurrency;\r\n\t}", "void setCurrency(Currency currency);", "public void setCurrency(CurrencyUnit currency) {\r\n this.currency = currency;\r\n }", "protected void setCurrency(String currency) {\n this.currency = curren...
[ "0.7167032", "0.6693447", "0.6673167", "0.65215987", "0.64798033", "0.62430745", "0.62430745", "0.6237987", "0.6226148", "0.6226148", "0.61772424", "0.6135657", "0.6081719", "0.60784215", "0.60705775", "0.604009", "0.6028293", "0.60058844", "0.6004159", "0.59892535", "0.59598...
0.7100759
1
Created by maoqi on 2018/6/2.
public interface IBaseView { void toastAlert(String info); void toastSucc(String info); void toastFailed(String info); void toastNetError(); void showProgress(); void removeProgress(); void tokenTimeout(); <T> ObservableTransformer<T, T> initNetLifecycler(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\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}", "private sta...
[ "0.60455275", "0.590878", "0.57354134", "0.5698226", "0.5681727", "0.5681727", "0.5646472", "0.56068254", "0.5594389", "0.55865014", "0.5582121", "0.5578751", "0.5570273", "0.5567355", "0.5535106", "0.5524017", "0.55237424", "0.5519721", "0.5513691", "0.5506753", "0.548991", ...
0.0
-1