query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Used to request a full reinitialization of the controller core. Especially useful for resetting internal integrators. | public void requestReinitialization()
{
reinitialize = true;
} | [
"public void reinitialization() {\n\t\tfor(Machine machine: this.machines) {\n\t\t\tmachine.reinitialisation();\n\t\t}\n\t\tthis.root_hacked=false;\n\t\tthis.backgrounded=true;\n\t\tthis.last_opened_shell=null;\n\t}",
"@Override\n public void disabledInit() {\n // drivetrain.resetSubsystem();\n // shooter.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all the medications. | public ArrayList<Medication> getMedications() {
return medications;
} | [
"public List<Medicament> getAll() {\n return this.medsList;\n }",
"@Override\n\tpublic Collection<Medicine> getAll() {\n\t\treturn medicineRepository.findAll();\n\t}",
"@Override\r\n\tpublic List<GMedicine> findMedicine() {\n\t\treturn GMedicineMapper.findMedicine();\r\n\t}",
"@Override\n\tpublic Li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ambiguous syntax: ('(' ')')? This ambiguous syntax occurs at: elements+=InPatternElement (ambiguity) (rule end) | protected void emit_InPattern___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
} | [
"@Test\n public void testUnionEqualsParenthesized() {\n final EmailList expression = EmailList.evaluate(\"(a@A), (a@b)\", Collections.emptyMap());\n final EmailList expected = EmailList.evaluate(\"a@A,a@b\", Collections.emptyMap());\n assertEquals(\"expected equals\", expected, expression);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: protected | public boolean isOneLine() {
return false;
} | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column x$statements_with_sorting.sort_using_range | public void setSortUsingRange(Long sortUsingRange) {
this.sortUsingRange = sortUsingRange;
} | [
"public void setSort(Integer sort)\r\n/* 99: */ {\r\n/* 100: 88 */ this.sort = sort;\r\n/* 101: */ }",
"public SortCodeRange(String start, String end) {\n this(new SortCode(start), new SortCode(end));\n }",
"public void setSort(Integer sort)\r\n/* 95: */ {\r\n/* 96: 84 */ thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test max age counter. | @Test
public void testMaxAgeCounter() {
final List<Address> values = new ArrayList<>();
Pipeline<Address> p = Pipeline.<Address>builder().
csvDataSource(csvDataSource).
aggregator(new MaxAgeAggregator()).build();
p.aggregate(path, a -> {
values.ad... | [
"public int getMaxage() {\r\n\t\treturn maxage;\r\n\t}",
"protected int getMaxAge()\n {\n \treturn max_age;\n }",
"public int getAgeMax() {\n\t\treturn ageMax;\n\t}",
"public double maximumAge()\n\t{\n\t\treturn _maximumAge;\n\t}",
"public Long getMaxAge() {\n\t\treturn maxAge;\n\t}",
"public lon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set Restoration task status (1: binding file; 2: file binding completed; 3: restoring file; 4: file restoration completed) | public void setStatus(Long Status) {
this.Status = Status;
} | [
"public void setCompleted() {\n status = TaskStatus.COMPLETED;\n }",
"public void setStatus(TaskStatus status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(TaskStatus aStatus);",
"public void setStatus () {\n this.isDone = true; // mark as done\n }",
"public void setTas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle navigation view item clicks here. | @SuppressWarnings("StatementWithEmptyBody")
@Override
public boolean onNavigationItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.nav_camera) {
// Handle the camera action
} else if (id == R.id.nav_gallery) {
} else if (id == R.id.nav_slidesho... | [
"void onNavigationItemClick(int item);",
"public void ClickItem(View view){\n MainActivity.redirectActivity(this, item.class);\n }",
"@Override\n public void clickitem(View view, final int position) {\n\n }",
"@Override\n publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the time slot associated with the delivery | public void setTimeSlot(TimeSlot timeSlot) {
if (mTimeSlot != null) {
mTimeSlot.removeDelivery(this);
}
if (timeSlot != null) {
timeSlot.addDelivery(this);
}
mTimeSlot = timeSlot;
} | [
"public void setTimeslot(String timeslot){\n this.timeslot = timeslot;\n }",
"void setStartTime(double newTime);",
"public abstract void setStartTime(int hour, int minute, int second);",
"public void setArrivalTime (double t) {\n time = t;\n }",
"void setTime(Time time);",
"public abst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gts the xbar width | public int getWidth() {return xbarwidth;} | [
"public double getBarWidth() { return _barWidth; }",
"public int getAxisWidth(Graphics g)\n {\n int i;\n width = 0;\n\n// if (minimum == maximum) return 0;\n// if (dataset.size() == 0) return 0;\n\n if (useCDate)\n {\n title.setText(\"C-Date: \" + new Date(cDate));\n }\n else\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: refactor this to a reusable "run ... command" step | @When("I run the CheckRelevanceCommand command")
public void runCommand() {
new CheckRelevanceCommand(
new FetchURLsByChunks(TestDbConnectionFactory.INSTANCE),
new MarkObsolete(TestDbConnectionFactory.INSTANCE),
Set.of(new RelevanceChecker() {
@Override
... | [
"public abstract void run(String[] args);",
"public static void runCommand(String input) {\n\n }",
"@Override\n\tpublic void runCommand(String cmd) {\n\t\tSystem.out.println(\"Executing command : \" + cmd);\n\t}",
"@Override\n\tpublic CmdResult runCommand(String cmd) {\n\t\treturn te.runCommand(cmd);\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check the parsed value against the referenced fields | public static <T> void checkReferences(List<FieldReference> fieldReferences, CompareCallback<T> compareCallback,
T value, Group group)
throws ValidationException
{
for (FieldReference ref : fieldReferences)
{
boolean comp_true = true;
try
{
... | [
"private void checkField() {\n }",
"@Override\n\tprotected String checkFieldData() {\n\t\tString error = super.checkFieldData();\n\t\tif (error != null) {\n\t\t\treturn error;\n\t\t}\n\n\t\tString sValue = getValueAsString();\n\n\t\tif (sValue != null) {\n\t\t\tInteger value = null;\n\t\t\ttry {\n\t\t\t\tvalue... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtain the view data and tranfer it to the object | private Supply view2Object() {
Supply supply = new Supply();
supply.setId(Integer.parseInt(texId.getText()));
supply.setName(texName.getText());
supply.setIdCity(Integer.parseInt(texIdCity.getText()));
// supply.setDate(jchDate.getDate());
supply.setPrice(Integer.parseInt... | [
"@ClientConfig(JsonMode.Object)\n\r\n\tpublic Object getView () {\r\n\t\treturn (Object) getStateHelper().eval(PropertyKeys.view);\r\n\t}",
"public abstract DataView getDataView(HObject dataObject);",
"void init(View view, Object viewData);",
"public void setViewInfo(EntityViewInfo renderData);",
"protected... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Break the list until list is null or only 1 element is present in List. | private Node mergeSortLinkList (Node linkedList) {
if(linkedList == null || linkedList.next == null) return linkedList;
// Break the linklist into 2 list.
// Finding Middle node and then breaking the Linled list in 2 parts.
// Now 2 list are, 1st list from start to middle and 2nd list f... | [
"public void findFirstFree() {\r\n int value_count = 0;\r\n for (int i = 0; i < listArray.length; i++) {\r\n if (listArray[i] == null) {\r\n firstFree = i;\r\n break;\r\n } else {\r\n value_count++;\r\n }\r\n }\r\n\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve JWT configs from registry. | private Properties getWebSocketConfig() throws IOException {
Properties properties = new Properties();
List<Property> propertyList = WebsocketConfig.getInstance().getWebsocketValidationConfigs().getAuthenticator()
.getProperties().getProperty();
for (Property property : propertyList) {
properties.put(prope... | [
"String getJwt();",
"IntegrationRuntimeAuthKeys listAuthKeys();",
"Map<String, String> getSecretsProviderConfig(Function.FunctionDetails functionDetails);",
"public interface JWTGetter {\n public JWT getJWT();\n}",
"com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig();",
"public Jws<Claims... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve product for category // | @RequestMapping(value = "/category/{category}", method = RequestMethod.GET)
public ResponseEntity<List<Product>> getProductForCategory(@PathVariable("category") String category) {
List<Product> products = productService.findByCategory(category);
if (products == null) {
return new Respons... | [
"public List getProductsByCategory(Category category);",
"public List<Product> getProductsByCategory(int categoriId);",
"@Override\n\tpublic List<Product> getProductbyCategory(String category) {\n\t\treturn dao.getProductbyCategory(category);\n\t}",
"@EnableLogging\n\tpublic Product findByDisplayNameAndCatego... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Rename and change types and number of parameters | public static worldCupFixtureFragment newInstance(String dateselected) {
worldCupFixtureFragment fragment = new worldCupFixtureFragment();
Bundle args = new Bundle();
args.putString(DATE_SELECT, dateselected);
fragment.setArguments(args);
return fragment;
} | [
"protected void method_5557() {}",
"@Override\n\tpublic void use(byte[] parameters) {\n\t\t\n\t}",
"@Override\n }",
"public abstract String processParameters();",
"@Override\n public void extornar() {\n \n }",
"@Override\n\tpublic int getNumParameters() {\n return 2;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction value specified here is applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction ... | public Builder setHeaderAction(
com.google.cloud.compute.v1.HttpHeaderAction.Builder builderForValue) {
if (headerActionBuilder_ == null) {
headerAction_ = builderForValue.build();
} else {
headerActionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x000000... | [
"private void setDefaultHeaders(HttpRequestBase httpAction) {\n if (!httpAction.containsHeader(\"Authorization\") && !com.reply.solidsoft.nbs.integration.extensions.StringExtensions.isNullOrWhiteSpace(bearerToken)) {\n httpAction.setHeader(\"Authorization\", String.format(\"%s %s\", \"Bearer\", th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ disconnect close input/output streams | public void disconnect() {
try {
if(in!= null) in.close();
}
catch(Exception e) {}
try {
if(out != null) out.close();
}
catch(Exception e) {}
try{
if(socket != null) socket.close();
}
catch(Exception e) {}
// inform the GUI
if(gui != null) {
gui.connectionFail... | [
"public void close()\n {\n try\n {\n output.close();\n input.close();\n socket.close();\n }\n catch (IOException ioe)\n {\n System.out.println(\"There was an error closing the streams AND/OR socket: \" + ioe);\n }\n }",
"private void disconnect() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Draw this node onto canvas | void showNode()
{
gc.setFill(Color.GREEN);
gc.fillOval(position.getX(), position.getY(), tree.getRadius(), tree.getRadius());
gc.setFill(Color.WHITE);
Font font = Font.font("serif", FontWeight.BOLD, tree.getRadius() / 1.5);
gc.setFont(font);
if(value <= 9)
gc.fillText(Integer.toString(value), posi... | [
"public void draw() {\n drawNode(root, true);\n }",
"public void draw()\r\n\t{\r\n\t\tcanvas.display();\r\n\t}",
"public void draw() {\r\n\t\tdraw(root, true, 0.0, 0.0, 1.0, 1.0);\r\n\t}",
"public void draw() {\n draw(root);\n }",
"void drawNetwork(Canvas canvas);",
"public void Draw() {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .jaeger.api_v2.KeyValue tags = 8 [(.gogoproto.nullable) = false]; | public Builder clearTags() {
copyOnWrite();
instance.clearTags();
return this;
} | [
"Map<String, Object> getTags();",
"public KeyValue setTags(Map<String, String> tags) {\n this.tags = tags;\n return this;\n }",
"@javax.annotation.Nullable\n @Schema(description = \"An array of tags for this GIF (Note: Not available when using the Public Beta Key) \")\n @JsonProperty(JSON... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
switch (id) {
case R.id.menu_incluir:
chamarTelaUsuario(-1);
break;
case R.id.menu_uber:
... | [
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load the next rewarded video ad. | @Override
public void onRewardedVideoAdClosed() {
loadRewardedVideoAd();
} | [
"private void loadRewardedVideoAd() {\n\n //ads unit id\n mRewardedVideoAd.loadAd(\"ca-app-pub-3010341507881755/4173638059\", new AdRequest.Builder().build());\n }",
"void onLoaded(AdRewardedVideo rewardedVideo);",
"@Override\n public void onRewardedVideoLoadSuccess(String adUnitId) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column notice.status | public void setStatus(Integer status) {
this.status = status;
} | [
"public void setStatusWarning(Long statusWarning) {\n this.statusWarning = statusWarning;\n }",
"public void changeStatus(StellenAnzeige stellenAnzeige, String status) throws DatabaseException {\n JDBCConnection.getInstance().openConnection();\n String sqlBefehl = \"UPDATE \" + table + \" ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: b | public final void mo28218b(int i, List<?> list, C9822xp xpVar) throws IOException {
for (int i2 = 0; i2 < list.size(); i2++) {
mo28216b(i, list.get(i2), xpVar);
}
} | [
"public abstract T zzs(B b2);",
"public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }",
"public void doSth(B b){\n\n }",
"public abstract void mo14156a(B b, int i, int i2);",
"@Override\n\tpublic v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the owner node. | public void setOwnerNode(final Node ownerNode) {
ownerNode_ = ownerNode;
} | [
"public void setOwner(Object owner)\n {\n this.owner = owner;\n }",
"void setOwner(int owner);",
"public void setOwner(String owner) {\n mOwner = owner;\n }",
"public void setOwner(String owner)\r\n {\r\n this.owner = owner;\r\n }",
"public void setOwner(String owner) { t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
business value smaller than 0 | @Test
@DisplayName("business zero")
public void testBusinessSmall() {
TsscStory story = new TsscStory();
story.setBusinessValue(new BigDecimal(10));
story.setInitialSprint(new BigDecimal(1));
story.setPriority(new BigDecimal(1));
TsscGame game = new TsscGame();
try {
gameService.saveGame(game)... | [
"final public boolean gasolinaSuficiente()\n{\n return m_gasolina > -1e-6;\n}",
"boolean hasUnscaledValue();",
"boolean hasValue285();",
"private static boolean evaluate(Node node) {\n double value = node.get();\n return value > 0 || value < 0;\n }",
"public boolean isPositive() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the destinationPortRange property: The destination port or range. Integer or range between 0 and 65535. Asterisks '' can also be used to match all ports. | public SecurityRuleInner withDestinationPortRange(String destinationPortRange) {
if (this.innerProperties() == null) {
this.innerProperties = new SecurityRulePropertiesFormat();
}
this.innerProperties().withDestinationPortRange(destinationPortRange);
return this;
} | [
"@ApiModelProperty(value = \"Indicates a range of destination ports. \")\n public PortRange getDestinationPortRange() {\n return destinationPortRange;\n }",
"public Builder setDestRange(String destRange) {\n this.destRange = destRange;\n return this;\n }",
"public AnalysisPacketHeader withDest... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of clone method, of class gov.sandia.cognition.framework.learning.EvaluatorBasedCognitiveModuleSettings. | public void testClone()
{
DefaultSemanticLabel in1 = new DefaultSemanticLabel("in1");
DefaultSemanticLabel in2 = new DefaultSemanticLabel("in2");
DefaultSemanticLabel out1 = new DefaultSemanticLabel("out1");
LinearVectorFunction evaluator = new LinearVectorFunction(Math.random());
... | [
"public abstract Optimizer cloneSettings();",
"public void testClone2() {\r\n instance = new ComponentCompetitionAveragePredictor();\r\n ComponentCompetitionAveragePredictor clonedObj = (ComponentCompetitionAveragePredictor) instance.clone();\r\n\r\n assertNotNull(\"'clone' should be correct.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an object representing a button connected to a GPIO pin. | public Button(int gpioNumber)
{
Pin[] pins = { RaspiPin.GPIO_00, RaspiPin.GPIO_01, RaspiPin.GPIO_02, RaspiPin.GPIO_03,
RaspiPin.GPIO_04, RaspiPin.GPIO_05, RaspiPin.GPIO_06, RaspiPin.GPIO_07,
RaspiPin.GPIO_08, RaspiPin.GPIO_09, RaspiPin.GPIO_10, RaspiPin.GPIO_11,... | [
"@Override\n\tpublic Button crearBotton() {\n\t\treturn new ButtonLinuxv1();\n\t}",
"@Override\n\tpublic Button creatButton() {\n\t\treturn new AndroidButton();\n\t}",
"@Override\n\tpublic Button createButton() {\n\t\treturn new ButtonImpl();\n\t}",
"public ButtonObject() {\n super(new Vector2D(), new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Client access to elements | public Iterator<E> getElements()
{
return new Iterator<E>()
{
//Declare methods
public boolean hasNext() { return current < elements.length; }
public E next() { return elements[current++]; }
public void remove() { throw new UnsupportedOperationExceptio... | [
"public Element getElement()\n/* */ {\n/* 841 */ return this.view.getElement();\n/* */ }",
"private void getControls() {\n\n\t}",
"public HTMLInputElement getElementServicio() { return this.$element_Servicio; }",
"public HTMLDivElement getElementDivServicios() { return this.$elemen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the ModbusRequest for this ModbusTransaction. The related ModbusResponse is acquired from the passed in ModbusRequest instance. | public void setRequest(ModbusRequest req); | [
"public void setRequest(com.exacttarget.wsdl.partnerapi.ExtractRequest request)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.ExtractRequest target = null;\n target = (com.exacttarget.wsdl.partnerapi.ExtractRequest)get_stor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a parameter to be sent in the multipart request | public MultiPartRequest<T> addMultipartParam(String name, String contentType, String value) {
mMultipartParams.put(name, new MultiPartParam(contentType, value));
return this;
} | [
"byte[] addParameter(byte[] request, IParameter parameter);",
"public UploadParams addParam(String key, String value)\n\t{\n\t\tUploadParams param = new UploadParams();\n\t\tparam.setParamKey(key);\n\t\tparam.setParamValue(value);\n\t\treturn param;\n\t}",
"public void setParameter(String name, String value) th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Simula o tempo de comunicacao entre o servidor e o cliente. | public void simula() throws InterruptedException {
System.out.print("\nfetching");
Thread.sleep(500);
System.out.print(".");
Thread.sleep(500);
System.out.print(".");
Thread.sleep(500);
System.out.println(".\n");
Thread.sleep(500);
} | [
"public void serviceClients() {\n Socket sock;\n\n while (true) {\n try {\n sock = s.accept();\n out = sock.getOutputStream();\n\n // Note that client gets a temporary/transient port on it's side\n // to talk to the server on its w... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper methods so the service knows if it should keep running. Returns false if the service is being stopped or is stopped. | protected boolean isRunAllowed() {
return !(stopping.get() || stopped.get());
} | [
"public boolean isServiceRunning() \n\t\n\t{\n\t\tif(null!=chService)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public synchronized boolean isRunning() {\r\n\t\tif (this.daemon != null)\r\n\t\t\treturn this.daemon.isAlive();\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"@Override\n\tpublic boole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Puts all the words in an array. Uses ',' as delimiter | public List<String> getFileWords(String fileToString) {
return new ArrayList<String>(Arrays.asList(fileToString.split(",")));
} | [
"private String[] _splitWords(String input[]){\n\t\t\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tString temp = \"\";\n\t\tString arithLogOps = \"+-*/<>!=,\"; //for a more pleasant condition\n\t\t\n\t\t\n\t\tfor(int i=0;i<input.length;i++) {\n\t\t\tfor(int j=0;j<input[i].length();j++) {\n\t\t\t\tch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the "id" pieceJointe. | PieceJointeDTO findOne(Long id); | [
"public String getId(){\n return this.points.get(0).get(\"ship_id\").substring(0,7)+\"_\"+this.points.get(0).get(\"timestamp\").substring(0, this.points.get(0).get(\"timestamp\").length() - 0) + \" - \"+this.points.get(this.points.size()-1).get(\"timestamp\")+(id_appendix!=null?\"_\"+id_appendix:\"\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the extension of a file. | @SuppressWarnings("unused")
@Nullable
public static String getExtension(File file) {
String ext = null;
String s = file.getName();
int i = s.lastIndexOf('.');
if (i > 0 && i < s.length() - 1) {
ext = s.substring(i + 1).toLowerCase();
}
return ext;
... | [
"public static String getExtension(File file)\n\t{\n\t\treturn getExtension(file.getName());\n\t}",
"String getFileExt();",
"public String getExtension(File file) {\n\t\tif(file==null)return \"\";\n\t\tString extension = \"\";\n\t\tint i = file.getName().lastIndexOf('.');\n\t\tif (i > 0) {\n\t\t extension = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the type of output processor. Valid values are "tcpout" and "syslog". | public void setMethod(String method) {
setCacheValue("method", method);
} | [
"public void setOutputType(String type){\n\t\tthis.outputType = type;\n\t}",
"private void setOutputType(String type) {\n Node node = getSendingNode();\n\n while (node != null) {\n if (type != null) {\n node.getTask().setParameter(Task.OUTPUT_TYPE + node.getAbsoluteNodeInde... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Item i1 = new Item(); i1.setName("Foo"); Set set1 = new HashSet(); set1.add("foo.jpg"); set1.add("bar.jpg"); set1.add("baz.jpg"); i1.setImages(set1); Item i2 = new Item(); Set set2 = new HashSet(); set2.add("b.jpg"); i2.setName("B"); i2.setImages(set2); Item i3 = new Item(); i3.setName("C"); session.persist(i1); sessio... | private static void testSet(Session session) {
} | [
"public void save( Collection<T> entities );",
"void persist(List<Object> store);",
"private <T> void save(Set<T> entitySet, boolean newEntity) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor(T entity : entitySet) {\r\n\t\t\t\tif(newEntity) {\r\n\t\t\t\t\tem.persist(entity);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tem.m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the path: only valid if constructed with a path. | public Path getPath() {
return optionalPath.get();
} | [
"public static String getPath() {\n\t\treturn (path);\n\t}",
"public Optional<String> getPath() {\n String path = uri.getPath();\n if (isNullOrEmpty(path) || path.equals(\"/\")) {\n return Optional.empty();\n } else {\n return Optional.of(path.substring(1));\n }\n }",
"public String getPa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Return type fixed from 'java.lang.Object' to match base method | @Override // javax.inject.Provider
public ManuallyExposedAbTestGroup<AdvertDetailsNoCallFeedbackTestGroup> get() {
return (ManuallyExposedAbTestGroup) Preconditions.checkNotNullFromComponent(this.a.advertDetailsNoCallFeedbackTestGroup());
} | [
"@Override\r\n\tpublic Class<Object> returnedClass() {\r\n\t\treturn Object.class;\r\n\t}",
"public abstract T mo14164b(Object obj);",
"public Object object() { return obj; }",
"@Override public TypeObj all_type() { return _funret._obj; }",
"Object mo6179a(Object obj);",
"public T object() {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Test for product Giraffe , State CT , Calculates product subtotal based on price | @Test
void testSubTotalForProductGiraffe() throws ParseException{
objProduct.enterQuantityForGiraffe("4")
.selectState("CT");
Double expected = common.calculatePrice(objProduct.getPriceForGiraffe(), 4);
objChkout = objProduct.clickCheckout();
Double actual = objChkout.getSubtotal().doubleValue();... | [
"public double calculateSubtotal() {\n return (getDoubleDoubles() * PRICE_DOUBLE_DOUBLE)\n + (getCheeseburgers() * PRICE_CHEESEBURGER)\n + (getFrenchFries() * PRICE_FRENCH_FRIES)\n + (getShakes() * PRICE_SHAKE)\n + (getSmallDrinks() * PRICE_SMALL_DR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table t_sjshaochu | public ShaoChuPojo withUserid(Integer userid) {
this.setUserid(userid);
return this;
} | [
"@Override\n\tpublic void CreateFromSQL() {\n\n\t}",
"public List GetShelterTable() {\n\n\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
functionality that removes the provided element | public boolean remove(E element) {
if(element == null || isEmpty()) {
return false;
}
if (front.data.equals(element)) {
front = front.next;
size--;
return true;
} else {
return front.remove(element);
}
} | [
"@Override\r\n\tpublic void removeElement(Object element) {\n\t\t\r\n\t}",
"public Object remove(Object anElement);",
"public void removeElement(Node element);",
"E remove (E element);",
"public void remove(E elem);",
"void removeElement(int element);",
"@Override\r\n\tpublic void remove(E element) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Original signature : SONGetExtMarkInfo(short, WORD, TpStr, TpWORD, TpShort) native declaration : Son.h:245 | @Mangling({"_Z17SONGetExtMarkInfoi4WORD5TpStr6TpWORDP11TFilterMask", "?SONGetExtMarkInfo@@YAXH4WORD5TpStr6TpWORDPAUTFilterMask@@@Z"})
int SONGetExtMarkInfo(short fh, short chan, Son32mapLibrary.TpStr pcUnt, Son32mapLibrary.TpWORD points, TFilterMask preTrig); | [
"YdtExtendedInfoType getYdtExtendedInfoType();",
"public void setExtInfo(java.lang.String extInfo) {\n this.extInfo = extInfo;\n }",
"public java.lang.String getExtInfo() {\n return extInfo;\n }",
"public String getExtencion()\n/* 67: */ {\n/* 68: 99 */ return this.extencion;\n/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getter function for courseCount | public int getCourseCount() {
return courseCount;
} | [
"public int getCourseCount() {\n return course_.size();\n }",
"private int getCourseCount() {\n\n\t\t//Set statement to null\n\t\tStatement stmt = null;\n\t\tint count = 0;\n\t\t//Prepare SQL query\n\t\tString query = \"SELECT COUNT(courseID) FROM Courses\";\n\n\t\ttry {\n\t\t\t//Create statement object\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_universe_list, container, false);
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }",
"@Override\n\tprotected View initView(LayoutInflater inflate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
maaten traaden blir stoppet paa er hvis metoden avsluttet blir kalt fordi da settes variabelen stopp til true, saa neste gang stop variabelen blir testet (linje 42), hentes denne variabelen opp fra minne hvorden staar deklarert som true, og dermed saa skal ikke loekken kjoeres lenger, og traaden terminerer | public void avslutt() { stopp = true; } | [
"public void VerificareLinie(){\n\t\tI=160;\n\t\twhile(I>20)\n\t\t{\n\t\t\tstop=1;\n\t\t\tfor(i=I;i<I+10 && stop==1;i++)\n\t\t\t\tif(v2.get(i)==0)\n\t\t\t\t\tstop=0;\n\t\t\tif(stop==1)\n\t\t\t\tLinieCompleta(I);\n\t\t\tI=I-10;\n\t\t}\n\t}",
"public void setStop(boolean stop) {\r\n this.stop = stop;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
jLabel3 = new java... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check if this is the right widget | static void updateAppWidget(Context context, AppWidgetManager appWidgetManager,
int appWidgetId) {
// check if this is the right widget
//
CharSequence widgetText = context.getString(R.string.appwidget_audio_text);
//
// Update Rotel status and bu... | [
"protected abstract boolean isCorrectGUI( GuiContainer gui );",
"boolean isUiCreated();",
"private boolean isValid() {\n\t\treturn control != null && !control.isDisposed()\n\t\t\t\t&& controlContentAdapter != null;\n\t}",
"protected boolean matchWidget(WidgetDescription w1, WidgetDescription w2)\n\t{\n\t\t//C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method to set the activation status of GreedyHint | public void setAutoGreedyHint() {
if (this.hint == "Greedy") {
this.hint = "";
} else {
this.hint = "Greedy";
}
this.notifyObservers();
} | [
"public void activate() {\r\n this.activated = true;\r\n }",
"@Override\n\tpublic void setActivation(boolean a) {\n\t\t\n\t}",
"protected void setActivated(boolean b) {\n activated = b;\n }",
"@In Boolean activate();",
"public void setActivated(Integer activated) {\r\n\t\tthis.activated = acti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by 609092482 on 20/03/2020. | public interface AccountService {
List<Account> getListOfAccount(int customerId);
List<Transactions> getTransactions(int accountNumber);
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"public void mo1857d() {\n }",
"@Override\n public int utilite() {\n return 0;\n }",
"private static void EX5() {\n\t\t\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
custom functionality of showStatisticFreeMinutesMobile | @Override
public void showStatisticFreeMinutesMobile() {
savedContracts = it219151.allContracts;
int mfreeminutesmin = -1;
int mfreeminutesmax = 0;
int mfreeminutesmean = 0;
int mfreeminutessum = 0;
int mfreeminutescount = 0;
for(Contract c: savedCo... | [
"public void showStatistic() {\r\n\t\tstatisticArea.setText(list.getStatistic());\r\n\t}",
"int getPersonalMinutes();",
"public static int getMinutesBreakpoint() {\n int usedSpace = (int) (MainActivity.deviceDensity * 92);\n// int availableSpace = (MainActivity.deviceHeight - (usedSpace + 20));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the score given by the ghost on death | public int getScore() { return GHOST_SCORE; } | [
"public abstract double getGScore();",
"public int get_score(){\n\t return this.score;\n \t }",
"public static int getScore()\n { \n return score;\n }",
"public Integer getScore() { return score; }",
"@Override\r\n public int getScore() {\r\n return this.score;\r\n }",
"@Overrid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shows / hides this window. | void setVisible(boolean visible); | [
"public void show() {\r\n\t\twindow.show();\r\n\t}",
"public void show()\n {\n if (this.window != null)\n {\n this.window.show();\n }\n }",
"public void showWindow() {\r\n\t\twindow.show();\r\n\t }",
"public void show()\n\t{\n\t\tthis.window.showAndWait();\n\t}",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int32 energy_delta = 15; | public Builder clearEnergyDelta() {
energyDelta_ = 0;
onChanged();
return this;
} | [
"public float getEnergy(){\n return Energy;\n }",
"public void increaseEnergy(float amount);",
"public int getEnergyConsumption(){\r\n return energyConsumption;\r\n }",
"public int getEnergy() { return this.energy; }",
"@Override\n \tpublic int getEnergy() {\n \t\treturn energy;\n \t}",
"pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the biggest room capacity in the system. | int biggestRoomCapacity(); | [
"public int getRoomCapacity() {\n return roomCapacity;\n }",
"public int getMaxCapacity()\n {\n return capacity;\n }",
"public static int getMaxCapacity() {\r\n\t\treturn MAXCAPACITY;\r\n\t}",
"public final int getMaxCapacity() {\n return maxCapacity;\n }",
"public int getMa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Implement this method | @Override
public int getChildrenCount ( int p1 ) {
return 0;
} | [
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\n\t\tprotected void swop() {\n\n\t\t}",
"private static void EX5() {\n\t\t\r\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run all tasks and get result of all tasks. | private void invokeAllTasks(List<Callable<BigDecimal>> tasks) throws InterruptedException, ExecutionException {
List<Future<BigDecimal>> results = executor.invokeAll(tasks);
for (Future<BigDecimal> result : results) {
result.get();
}
} | [
"@Override\n public void run() {\n if (taskMap.isEmpty()) {\n LOG.error(\"No tasks in task list {}.\", getName());\n tasksDone = true;\n return;\n }\n LOG.info(\"Running task list {}.\", getName());\n for (AbstractTaskBase task : taskMap.keySet()) {\n Future<?> future = executor.sub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public SysUser getSysUserByLoginName(String loginName) {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CRUD If CreatePitch returns "insufficient points", the pitch was created and placed on hold. If it returns "pitch created" then the pitch process has started If it returns "error" then something went wrong in the DB | public Pitch getPitch(Integer id); | [
"void handlePitch(PitchDetectionResult pitchDetectionResult,AudioEvent audioEvent);",
"public void setPitch(int pitch){\tthis.pitch = pitch;\t}",
"int pitch(int value, CommandRecorder recorder);",
"public String getPitch()\r\n\t{\r\n\t\treturn pitch;\r\n\t}",
"public boolean canSetPitch() {\n lock.lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. | public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // INVALID_ARGS\n return INVALID_ARGS;\n default:\n return null;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the radius of the tikz circle | public void setRadius(float radius) {
this.radius = radius;
} | [
"void setRadius(int radius) {\n circleRadius = radius;\n }",
"void setRadius(float radius);",
"public void setRadius(float radius){\n this.radius = radius;\n }",
"public void setRadius(int value) {\n\t\tthis.radius = value;\n\t}",
"void setShapeRadius(float radius);",
"public native fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the maximum possible time (hours, minutes, seconds, millis) and returns as a new instance of date. | public static Date setTimeToActualMaximum(Date date) {
Calendar calendar = Calendar.getInstance(locale);
calendar.setTime(date);
setTimeToActualMaximum(calendar);
return calendar.getTime();
} | [
"public Builder setMaxTime(long value) {\n bitField0_ |= 0x00000040;\n maxTime_ = value;\n onChanged();\n return this;\n }",
"private void resetTime(boolean max) {\r\n if (max) {\r\n calendar.set(GregorianCalendar.HOUR_OF_DAY,\r\n calendar.getM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
perform basic initialization task | public MapIncidentsViewStepDefinition() {
super();
} | [
"public static void initialize() {\n\t\t\r\n\t}",
"public static void init()\n {\n \t//Initialize stuff... N/A\n }",
"private void initialize() {\n \n \t}",
"protected void initialize(){}",
"private void initialize() {\n initialize(null);\n }",
"protected void _init() {}",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calculeaza ratingul final facand media aritmetica | public double getRatingSeason() {
double sum = 0;
//daca nu este niciun rating dat
if (ratings.size() == 0) {
return 0;
}
//iterez prin rating-uri
for (int i = 0; i < ratings.size(); i++) {
sum += ratings.get(i);
}
return sum / r... | [
"public double calcularMediaAmostral(){\r\n for(FAE f: estatistica.getListaFaes().getListaFAE()){\r\n totalMedias+=f.getClassificacao().getMediaClassificacoes();\r\n numeroSubmissoes++;\r\n }\r\n\r\n double mediaAmostral=Calculator.average(totalMedias, numeroSubmissoes);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Given two numbers, num1 and num2, output the average. | public static void main(String[] args) {
int num1 = 0;
int num2 = 2;
double numAverage = num1 + num2;
double average = numAverage / 2.0;
System.out.println(average);
} | [
"public static double average(double num1, double num2){\n\t\tdouble answer = (num1 + num2)/2;\n\t\treturn answer;\n\t}",
"public static int average(int n1, int n2){\n System.out.println(\"Version 1\");\n return (n1 + n2) / 2; // int\n }",
"public static double average(double number, double num... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int64 montante = 4; | public boolean hasMontante() {
return ((bitField0_ & 0x00000008) == 0x00000008);
} | [
"long mo1490e();",
"long generaDni();",
"long getCantidadActual();",
"long mo38507a();",
"Long mo58804f();",
"public static int CantidadMPrepago (int minutoPrepago , int recarga ){\n return (recarga/minutoPrepago);\n}",
"long getValue231();",
"long mo15856d();",
"long mo1781a(int i);",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .CMsgVector origin = 5; | public skadistats.clarity.wire.common.proto.NetworkBaseTypes.CMsgVector.Builder getOriginBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getOriginFieldBuilder().getBuilder();
} | [
"Vector2d origin(Vector2d origin);",
"public Vector2 getOrigin();",
"public static Vec getOrigin() {\n\t\tfloat[] t = transforms.peek().elements;\n\t\treturn new Vec(t[0 + 3 * 4], t[1 + 3 * 4], t[2 + 3 * 4]);\n\t}",
"com.blacksquaremedia.reason.UtilProtos.Vector getVector();",
"public gameservice.GameServic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Rename method, update argument and hook method into UI event | public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
} | [
"@Override\n public void event() { }",
"@Override\n public void event() {\n }",
"@Override\n\tprotected void onGuiEvent(GuiEvent arg0) {\n\t\t\n\t}",
"@Override\n\t\t\t\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t public void handle(ActionEvent ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the depends on. | public String getDependsOn() {
return dependsOn;
} | [
"public String[] dependsOn ();",
"String[] getDepends();",
"List<ModuleComponent> getDependsOn();",
"Dependent getDependent();",
"public String[] getDependencies() { return _dep; }",
"public abstract Set<String> getDependencies();",
"@JsonGetter(\"DependsOn\")\r\n public WorkOrderIdentifier[] getDepen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the Struts action method called on where "method" is the value specified in element : ( ) | public ActionForward reportCrisis(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception
{
String pincode=request.getParameter("pincode");
String crisis=request.getParameter("crisis");
ProcessLocation p... | [
"public String action() {\n ELContext elContext = FacesContext.getCurrentInstance().getELContext();\n MethodExpression method = null;\n \n if (attributes.get(\"action\") == null) {\n return null;\n }\n \n String outcome = (String) attributes.get(\"action\").getVal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a List with the codes retrieved from the currency Class. This list contains all the enum parameters marked with the annotation Supported using its default value. | public static List<String> getSupportedCurrencyCodeList(
Class currency,
Class context) throws PriceIndexException{
try {
Set<Field> enumElements =
ReflectionUtils.getAllFields(
currency,
withAnnota... | [
"public java.util.List<typekey.Currency> getAllowedCurrencies() {\n return ((gw.api.domain.CoverableAdapter)__getDelegateManager().getImplementation(\"gw.api.domain.CoverableAdapter\")).getAllowedCurrencies();\n }",
"java.util.List<POGOProtos.Rpc.CurrencyQuantityProto> \n getCurrencyGrantedList();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO : implements ServletRequest.getLocale | @Override
public Locale getLocale() {
return new Locale("tr");
} | [
"Locale getLocale(HttpServletRequest request, HttpServletResponse response);",
"public String getRequestLocale() {\n return httpServletRequestProvider.getServletRequest().getLocale().toString();\n }",
"private Locale getLocale() { return LocaleManager.getLocale(); }",
"@PostConstruct\n public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
read single line containing integer | private int readInt() {
return Integer.parseInt(input.nextLine());
} | [
"public int readln() {\n return Integer.parseInt(in.nextLine());\n }",
"public int readInt() {\n int l = in.nextInt();\n in.nextLine();\n return l;\n }",
"public static int parseInt(String line)\r\n {\r\n return Integer.parseInt(line);\r\n }",
"public static int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Limit__Group_6_1__1" $ANTLR start "rule__Limit__Group_6_1__1__Impl" InternalMyDsl.g:6519:1: rule__Limit__Group_6_1__1__Impl : ( ( rule__Limit__UpperAssignment_6_1_1 ) ) ; | public final void rule__Limit__Group_6_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:6523:1: ( ( ( rule__Limit__UpperAssignment_6_1_1 ) ) )
// InternalMyDsl.g:6524:1: ( ( rule__Limit__UpperAssignment_6_1_1 ... | [
"public final void rule__JvmUpperBound__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalCrySL.g:11067:1: ( rule__JvmUpperBound__Group__1__Impl )\r\n // InternalCrySL.g:11068:2: rule__JvmUpperBound__Group... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set client and org (useful when run via scheduler) | @Override
protected String doIt() throws Exception {
int originalAD_Client_ID = Env.getAD_Client_ID(getCtx());
Env.setContext(getCtx(), "#AD_Client_ID", AD_Client_ID);
AD_Org_ID = Env.getAD_Org_ID(getCtx());
Env.setContext(getCtx(), "#AD_Org_ID", AD_Org_ID);
try
{
String msg = null;
if(msg==nul... | [
"public void setCl(Client cl) {\r\n\t\tthis.cl = cl;\r\n\t}",
"public void setClient (Client client) {\r\n\t\tthis.client = client;\r\n\t}",
"public void setClient(final String clientIn)\n {\n\n this.client = clientIn;\n\n }",
"public void editClient() {\n\n if (!name.getText().equals(\"\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create json string with null value for InsertResult | public String creatJsonStrNull() {
JsonObject value = null;
value = Json.createObjectBuilder().add("date", "null")
.add("subCatCn", "null")
.add("amt", "null")
.build();
// Debug:
System.out.println(value.toString());
return "[" + value.toString() + "]";
} | [
"JsonGenerator writeNull();",
"public JsonBuilder nullValue() {\n\t\tappend(JsonNull.INSTANCE);\n\t\treturn this;\n\t}",
"public JSONObject forJsonPut() {\n try {\n JSONObject e2 = super.forJsonPut();\n e2.put(\"type\", \"templated_iam\");\n JSONObject jSONObject = new JS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
EFFECT: Gets the ID for the given child within the given group. | @Override
public long getChildId(int groupPosition, int childPosition) {
return (long) drawerCategories.get( groupPosition ).getDrawerItems().get( childPosition ).getID();
} | [
"@Override\n\tpublic long getChildId(int group, int child) {\n\t\treturn ((ContactEntity)getChild(group, child)).get_id();\n\t}",
"public long getChildId(int groupPosition, int childPosition) { \n // TODO Auto-generated method stub \n return childPosition; \n }",
"@Override\n\tpublic long ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public IDataSetting getSetting() throws YssException {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the set of missing dependencies that are required by the autogenerated model classes. | @NotNull
public static List<GradleCoordinate> getMissingRequiredDependencies(@NotNull Module module) {
return getMissingDependencies(module, REQUIRED_DEPENDENCY_LIST);
} | [
"public Set<Dependency> getDependencies()\n {\n List<Dependency> initDeps =\n getBeanInitializer().getParameterDependencies();\n Set<Dependency> creatorDeps = getBeanCreator().getDependencies();\n\n if (initDeps.isEmpty())\n {\n return creatorDeps;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
////////////////////////////////////////////////////////////////////////////////////////// PUT with parameters ////////////////////////////////////////////////////////////////////////////////////////// | private static void bookAppointment(APIConnection api, String departmentId, String appointmentTypeId, JSONObject appt, String new_patient_id) throws Exception {
// PUT with parameters
////////////////////////////////////////////////////////////////////////////////////////////
Map<String, String> appointment_info ... | [
"public RestConnectorResponse doPut (String url, HashMap<String, String> params, HashMap<String, String> headers, String payload);",
"public RestConnectorResponse doPut (String url, HashMap<String, String> params, HashMap<String, String> headers, String payload, Collection<String> obfuscationMask);",
"public Re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether Substance is the current lookandfeel. This method is for internal use only. | public static boolean isCurrentLookAndFeel() {
return ((UIManager.getLookAndFeel() instanceof SubstanceLookAndFeel) && (currentSkin != null));
} | [
"public boolean look() {\n\t\treturn false;\n\t}",
"public static boolean isFlyme() {\n try {\n // invoke Build.hasSmartBar()\n Method method = Build.class.getDeclaredMethod(\"hasSmartBar\");\n return method != null;\n } catch (Exception e) {\n // ignore\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
// CONSTRUCT: BASE // | public MassiveMap(int initialCapacity, float loadFactor)
{
super(initialCapacity, loadFactor);
} | [
"public Base() {\n }",
"private final void constructBase() {\n\t\t\tSystem.out.println(\"Base has been constructed.\");\n\t\t}",
"public ProcessBase(org.semanticwb.platform.SemanticObject base)\r\n {\r\n super(base);\r\n }",
"public StatBase(){\r\n\t\t\r\n\t}",
"public BasicInfo()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor Initializes the UpgradeFileTask object so that it can support performing the update to the provided XTCE XML File. | private UpgradeFileTask( final File xmlFile,
final boolean useXInclude ) {
convObj_ = null;
useXInclude_ = useXInclude;
xmlFile_ = xmlFile;
messages_ = new ArrayList<>();
step_ = XTCEFunctions.getText( "fi... | [
"public VersionFile() {\n this(DSL.name(\"version_file\"), null);\n }",
"public SysFile() {\n super();\n }",
"public XMLUtils(File file) {\n if (file != null && file.exists()) {\n this.file = file;\n readXML();\n } else {\n throw new XMLExceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify Always serverStartPolicy (dynamic cluster) overrides replica count. The dynamic cluster has a second managed server(managedserver2) with serverStartPolicy set to IfNeeded. Initially, the server will not come up since the replica count for the cluster is set to 1. Update the ServerStartPolicy for managedserver2 t... | @Order(2)
@Test
@DisplayName("Start/stop dynamic cluster managed server by updating serverStartPolicy to Always/IfNeeded")
void testDynamicClusterStartServerAlways() {
String serverName = "managed-server2";
String serverPodName = domainUid + "-" + serverName;
// Make sure that managed server is not r... | [
"@Order(2)\n @Test\n @DisplayName(\"Restart the standalone managed server with serverStartPolicy Always\")\n void testStandaloneManagedRestartAlways() {\n String serverName = \"standalone-managed\";\n String serverPodName = domainUid + \"-\" + serverName;\n\n // Make sure that configured managed server ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets ith "ReverseGeocodedLocation" element | public void setReverseGeocodedLocationArray(int i, net.opengis.xls.ReverseGeocodedLocationType reverseGeocodedLocation)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.xls.ReverseGeocodedLocationType target = null;
target = (net.opengis.xls.ReverseGeoco... | [
"void setGeocoder(Geocoder coder);",
"public void setLongitude(double newLongitude){this.longitude = newLongitude;}",
"@Override\n public void setLocation(geo_location p) {\n this.location = new Location(p);\n }",
"@Test\n public void testSimpleReverseGeocode() throws Exception {\n GeocodingR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets this node's opacity | public void setOpacity(double o) throws IllegalArgumentException {
if(o>1 || o<0) {
throw new IllegalArgumentException("Opacity must be greater than 0 and less than 1.");
} else {
this.opacity = o;
}
} | [
"@Override\n public void setOpacity(double opacity) {\n this.opacity = opacity;\n }",
"public void setOpacity(float opacity) {\r\n this.opacity = opacity;\r\n }",
"public void setOpacity(float opacity)\n\t{\n\t\tif (opacity < 0 || opacity > 1) {\n\t\t\tLog.w(TAG, \"Ignoring invalid value fo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create a new view | @Override
public void onBindViewHolder(final ViewHolder holder,int position) {
final Post post = Posts.get(position);
Log.i("point PoA53",Integer.toString(Posts.size()));
Log.i("point PoA82","postadapter");
holder.posterName.setText(post.getPosterName());
holder.filter1... | [
"protected abstract ViewType createView();",
"@Override\n\tpublic View createView(final String viewName);",
"QViewBuilder createView(String viewName);",
"protected abstract Node createView() throws Exception;",
"protected void createView(DBView v, DBSQLScript script)\n {\n // Create the Command\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
habilidade do mago, curar | public boolean usarHabilidade(Personagem personagem){
if(this.mana > 0){
personagem.curar(this.poder);
this.gastarMana();
return true;
}
return false;
} | [
"private void PredMobili(){\n Mobili sedia = new Sedia(1,1, \"SD001\");\n sedia.setNum(6);\n Mobili tavolo = new Scrivania(120,60, \"SC001\");\n tavolo.setNum(1);\n mobili.add(sedia);\n mobili.add(tavolo);\n }",
"public boolean peutAcheterImmo () {\n\t\tboolean peutAch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Optionally checkout a semaphore that is used to prevent concurrent execution of FunctionalTests that would collide. Return null if this functional test does not collide with any other functional tests and would not collide with another instance of this functional test class. | protected abstract Object pSemaphore() throws RuntimeException; | [
"FairSemaphore (int availablePermits) {\n // TODO - you fill in here.\n }",
"@Test\r\n\tpublic void testLockNotAcquired() throws Exception{\n\t\twhen(mockSemaphore.attemptToAcquireLock(any(), anyLong(), anyInt(), any())).thenReturn(Optional.empty());\r\n\t\twhen(mockGate.canRun()).thenReturn(tru... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: c | void mo1352c(IGamesCallbacks iGamesCallbacks, int i, boolean z, boolean z2) throws RemoteException; | [
"@Override\n\tpublic void c() {\n\t\t\n\t}",
"@Override\r\n\tvoid c() {\n\t\t\r\n\t}",
"protected void c() {\n\n\t}",
"void mo3976c(C5247d c5247d);",
"void mo62419c();",
"void m28293a(C5003c c5003c, C5006e c5006e);",
"void mo24495a(C12578a c12578a);",
"void mo22731b(C33642d c33642d);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
author: yau time: 2019/07/27 12:46 desc: | public interface ISkinView {
void onSkinChange();
} | [
"public void mo5201a() {\n }",
"public void mo9609a() {\n }",
"public void mo1857d() {\n }",
"public void mo28221a() {\n }",
"public void mo17751g() {\n }",
"public void mo25169t() {\n }",
"public void mo5203c() {\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CheckStyle:VisibilityModifier ON Sets the primary reader | public void setPrimaryReader(Reader rdr) {
primaryReader = rdr;
} | [
"private void setFieldReadAccess() {\n\n\t\t/* Description section widgets visibility */\n\t\tif (!AccessManager.canReadQualificationDescription())\n\t\t\tdescriptionSection.setVisible(false);\n\n\t}",
"@objid (\"cf8eace4-57b1-4476-9206-c39dd5c4d96d\")\n VisibilityMode getVisibility();",
"protected void proc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: c | VESize mo38828c(); | [
"@Override\n\tpublic void c() {\n\t\t\n\t}",
"@Override\r\n\tvoid c() {\n\t\t\r\n\t}",
"protected void c() {\n\n\t}",
"void mo3976c(C5247d c5247d);",
"void mo62419c();",
"void m28293a(C5003c c5003c, C5006e c5006e);",
"void mo24495a(C12578a c12578a);",
"void mo22731b(C33642d c33642d);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the pm 2911 service. | public Pm2911Service getPm2911Service() {
return pm2911Service;
} | [
"private ClockPersistenceService getService() {\r\n\t\tServiceReference<?> ref = bundleContext.getServiceReference(serviceName);\r\n\t\tif(ref!=null) {\r\n\t\t\tObject srv = bundleContext.getService(ref);\r\n\t\t\tif(srv instanceof ClockPersistenceService) {\r\n\t\t\t\treturn (ClockPersistenceService)srv;\r\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtiene el nombre de la base de datos del cliente inicializa los Objetos para parer el Hits | public HitsImplementation(String dataBaseURL) throws Exception {
System.out.println("3) Hits started " + dataBaseURL);
this.dbConnectionManager = new DBConnectionManager(dataBaseURL);
this.dbConnectionManager.connect();
this.dbCrawlerResultsReader = new DBCrawlerResultsReader(this.dbConnect... | [
"public void inicializarTablas(){\n\t\talmacenIdCliente = new HashMap<Integer, String>();\n\t\talmacenClienteId = new HashMap<String, Integer>();\n\t\talmacenIdRepositorio = new HashMap<Integer, String>();\n\t\talmacenRepositorioId = new HashMap<String, Integer>();\n\t\talmacenClienteRepositorio = new HashMap<Integ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets ith "extension" element | public void setExtensionArray(int i, org.apache.xmlbeans.impl.xb.xmlconfig.Extensionconfig extension)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.impl.xb.xmlconfig.Extensionconfig target = null;
target = (org.apache.x... | [
"public void setExtension(Object extension) {\n m_extension = extension;\n }",
"public void setExtension(Extension extension) {\n this.extension = extension;\n }",
"public void setExtensionArray(int i, org.hl7.fhir.Extension extension)\n {\n synchronized (monitor())\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
int length,position,element,count = 0;
Scanner sc = new Scanner(System.in);
System.out.println("Enter the length of the array");
length = sc.nextInt();
int arr[] = new int[length+1];
System.out.println("Enter "+length+" elements");
for(int i=0;i<len... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |