query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns an array containing the content types tags that describe the content. The first tag entry is considered the primary type for the content, and is used for content ranking purposes. | public @Nullable String[] getContentTypes() {
if (mContentTypes != null) {
return Arrays.copyOf(mContentTypes, mContentTypes.length);
}
return null;
} | [
"public Set<String> getContentTypes() {\n\t\tSet<String> types = new TreeSet<>();\n\t\ttypes.addAll(this.formats.keySet());\n\t\treturn types;\n\t}",
"public java.lang.String[] getContentTypeArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start time of this stage. .google.protobuf.Timestamp start_time = 3; | com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); | [
"com.google.protobuf.Timestamp getStartTime();",
"public void setStartTime (Timestamp StartTime);",
"public int getTimeStart() {\r\n return timeStart;\r\n }",
"com.google.protobuf.Duration getStartTime();",
"public void setTimeStart(java.lang.Long value) {\n this.timeStart = value;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setRaty method, of class Faktura. | @Test
public void testSetRaty() {
System.out.println("setRaty");
String raty = "";
Faktura instance = new Faktura();
instance.setRaty(raty);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
... | [
"@Test\r\n public void testSetRechargeSpeed() {\r\n System.out.println(\"setRechargeSpeed\");\r\n int rechargeSpeed = 5;\r\n Dragon instance = new Dragon(\"Francisco\", 2, 468, 1, \"Capitan\");\r\n instance.setRechargeSpeed(rechargeSpeed);\r\n // TODO review the generated test ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sample standard deviation of percolation threshold | public double stddev(){
double mean = mean();
double total =0.0;
for(int i = 0; i < times; i++){
total += (threshold[i]-mean)*(threshold[i]-mean);
}
return Math.sqrt(total/(times-1));
} | [
"public double stddev() {\n return percolationThresholdsStdDev;\n }",
"public double stddev(){\r\n return StdStats.stddev(thresholdResults);\r\n\r\n }",
"public double stddev() {\r\n return StdStats.stddev(threshold);\r\n }",
"public static double findStandardDev(double[] inarr, boo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Code to run when the op mode is first enabled goes here | public void runOpMode() {
telemetry.update();
} | [
"protected abstract void initOpModeAfterStart();",
"protected abstract void executeOpMode();",
"@Override\n public void runOpMode() {\n servo0 = hardwareMap.servo.get(\"servo0\");\n servo1 = hardwareMap.servo.get(\"servo1\");\n digital0 = hardwareMap.digitalChannel.get(\"digital0\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method that returns closeStatus | public boolean closeOK() {
return closeStatus;
} | [
"public int getCloseState()\r\n {\r\n return closeState;\r\n }",
"public Integer getClose() {\n return close;\n }",
"public boolean getClose()\n\t{\n\t\treturn getBooleanIOValue(\"Close\", true);\n\t}",
"Throwable getCloseException();",
"boolean isClosing();",
"public String getClos... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int64 usecToFirstByte = 13; | public long getUsecToFirstByte() {
return usecToFirstByte_;
} | [
"long getUsecToFirstByte();",
"public long getUsecToFirstByte() {\n return usecToFirstByte_;\n }",
"long getTestUint64();",
"long getTestFixed64();",
"long getTestSint64();",
"public Builder setUsecToFirstByte(long value) {\n bitField0_ |= 0x00001000;\n usecToFirstByte_ = value;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
model.addAttribute("kategoris", kategoriRepositoryJpa.findAll(new PageRequest(page, 4))); | @GetMapping("/kategori")
public String createIndex(Model model, @RequestParam(defaultValue = "0", name = "page") int page) {
model.addAttribute("kategoris", kategoriRepository.findAll(PageRequest.of(page, 8)));
model.addAttribute("buatPageKategori", page);
model.addAttribute ( "buatKategori"... | [
"@GetMapping\n //public ResponseEntity<List<Categoria>> getAll() { // Sem paginação\n public ResponseEntity<Page<Categoria>> getAll(@PageableDefault(page = 0, size = 10, sort = \"nome\", direction = Sort.Direction.ASC) Pageable pageable) {\n return ResponseEntity.ok().body(categoriaService.findAll(page... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column gab_f_message.police_name | public String getPoliceName() {
return policeName;
} | [
"public String getName(){\r\n\t\tString sql = \"SELECT name FROM gauges WHERE gaugeid = \" + this.gaugeID;\r\n\t\tgaugeName = db.getGeoJSON(sql);\r\n\t\treturn gaugeName;\r\n\t}",
"public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }",
"public ObservableValue<St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column bill.bill_image | public String getBillImage() {
return billImage;
} | [
"public Object getColumnImage( int columnIndex)\n {\n return columns.get( columnIndex).image;\n }",
"public void setBillImage(String billImage) {\n this.billImage = billImage == null ? null : billImage.trim();\n }",
"public byte[] retreiveImageFromDB() {\n Cursor cur = mDb.query(true, IMAG... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the specified hosts for a cluster. | public void deleteHosts(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.DeleteClusterHostsRequest request,
io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHostsMethod(), resp... | [
"public yandex.cloud.api.operation.OperationOuterClass.Operation deleteHosts(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.DeleteClusterHostsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteHostsMethod(), getCallOptions(), request);\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the linear motion. | public void setLinear(double dx, double dy) {
this.linear.set(dx, dy);
} | [
"public void setLinear(AgentMotion motionToCopy) {\n\t\tassert motionToCopy != null : AssertMessages.notNullParameter();\n\t\tthis.linear.set(motionToCopy.getLinear());\n\t}",
"void setMotion(Vec3 motion);",
"public void setLinearVelocity (float vX, float vY) {\n\t\tjniSetLinearVelocity(addr, vX, vY);\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
convert LocalDate to String with the proper format for display on jsp | public static String convertLocalDateToString(LocalDate input) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
String stringDate = null;
if(input != null) stringDate = input.format(formatter);
return stringDate; //forces calling class to handle exception if null
} | [
"public static String convertLocalDateToString(LocalDate localDate) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(PATTERN_YYYY_DD_MM);\n return localDate.format(formatter);\n }",
"public static String dateString(LocalDate date) {\n return date.format(DATE_FORMAT);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Param__Group__4__Impl" $ANTLR start "rule__EV_spec__Group__0" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7734:1: rule__EV_spec__Group__0 : rule__EV_spec__Group__0__Impl rule__EV_spec__Group__1 ; | public final void rule__EV_spec__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7738:1: ( rule__EV_spec__Group__0__Impl rule_... | [
"public final void ruleEV_spec() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:634:2: ( ( ( rule__EV_spec__Group__0 ) )... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Uses the Exception class for no found client. | public NoSuchClientException(){
super();
} | [
"public ClientNotFoundException() {\n super(\"Client record not available\");\n }",
"public NoSuchClientException(String message) {\n super(message);\n }",
"public NoSuchClientException(String message){\n\t\tsuper(message);\n\t}",
"public ConnectClientException() {\n\t\tsuper();\n\t\t// TODO Auto-gene... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Properties__PropertyAssignment_1" $ANTLR start "rule__PropertyList__PropsAssignment_0" InternalAst.g:4626:1: rule__PropertyList__PropsAssignment_0 : ( ( 'INPUT' ) ) ; | public final void rule__PropertyList__PropsAssignment_0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalAst.g:4630:1: ( ( ( 'INPUT' ) ) )
// InternalAst.g:4631:2: ( ( 'INPUT' ) )
{
// InternalAst.g:4631:2: ( (... | [
"public final void rule__NodePropertyList__PropsAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAst.g:4782:1: ( ( ( 'INPUT' ) ) )\n // InternalAst.g:4783:2: ( ( 'INPUT' ) )\n {\n // Inter... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The class of the incoming dto object builds the QueryMapper object, and the constructed object is stored in the cache, which is retrieved directly from the cache later. | private static QueryMapper buildQueryMapper(Class<?> dtoClass, Class<?> pojoClass) {
QueryMapper queryMapper = queryMapperCache.get(dtoClass);
if (queryMapper != null) {
return queryMapper;
}
Map<String, ConditionMapper> conditionMapperCache = new WeakHashMap<>(16);
Map<String, OrMapper> orMapperCach... | [
"private static TableMapper buildTableMapper(Class<?> dtoClass) {\r\n\r\n\t\tMap<String, FieldMapper> fieldMapperCache = null;\r\n\t\tField[] fields = dtoClass.getDeclaredFields();\r\n\r\n\t\tFieldMapper fieldMapper = null;\r\n\t\tTableMapper tableMapper = null;\r\n\t\ttableMapper = tableMapperCache.get(dtoClass);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Verify EQ methods Executes verifyEQModeDialogMessageEquals action. | public boolean verifyEQModeDialogMessageEquals(String data, Integer dataRowID) {
logAction("DriverViewPageActions.verifyEQModeDialogMessageEquals", data, dataRowID);
return getDriverViewPage().verifyEQModeDialogMessageEquals(data);
} | [
"public final void mEQ() throws RecognitionException {\n try {\n int _type = EQ;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // Simpleocl.g:11996:3: ( ( '=' ) )\n // Simpleocl.g:11997:2: ( '=' )\n {\n // Simpleocl.g:11997:2: ( '=' )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Container's getter for SystemVO1. | public SystemVOImpl getSystemVO() {
return (SystemVOImpl) findViewObject("SystemVO");
} | [
"public ViewObjectImpl gettypeVO1() {\n return (ViewObjectImpl)findViewObject(\"typeVO1\");\n }",
"public DummyVOImpl getDummyVO1() {\n return (DummyVOImpl)findViewObject(\"DummyVO1\");\n }",
"public DsPVOImpl getDsPVO1() {\n return (DsPVOImpl)findViewObject(\"DsPVO1\");\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Forces the given TextArea to update it's enhancements even if it is not focused. | public void forceUpdate( TextArea textArea ){
forcedTextArea = textArea;
updateOnStep();
forcedTextArea = null;
} | [
"private void updateTextAreaLenght() {\n //\n }",
"public TextAreaEnhancer(){\n textEnhancements = new ArrayList<>();\n observedTexts = new ArrayList<>();\n forcedTextArea = null;\n /*it is impossible to know all of the times when we need to\n * update our enhancement... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch the crash directory where WebView stores its minidumps. | public static File getWebViewCrashDir() {
return new File(ContextUtils.getApplicationContext().getCacheDir(), WEBVIEW_CRASH_DIR);
} | [
"public static File getWebViewCrashLogDir() {\n return new File(getWebViewCrashDir(), WEBVIEW_CRASH_LOG_DIR);\n }",
"public static File getOrCreateWebViewCrashDir() {\n return getOrCreateDir(getWebViewCrashDir());\n }",
"public static File getOrCreateWebViewCrashLogDir() {\n File dir ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last client in the ordered set where documentType = &63; and documentNumber = &63;. | public Client fetchByDocumentT_N_Last(
int documentType, String documentNumber,
com.liferay.portal.kernel.util.OrderByComparator<Client>
orderByComparator); | [
"public Client findByDocumentT_N_Last(\n\t\t\tint documentType, String documentNumber,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Client>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchClientException;",
"public Client[] findByDocumentT_N_PrevAndNext(\n\t\t\tlong clientId, int documentType, String doc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
initialises the array needed for game and sets up the mines within the boxes | private void initMinesweeper() {
timer.start();
timer.setOnChronometerTickListener(new Chronometer.OnChronometerTickListener() {
public void onChronometerTick(Chronometer arg0) {
long minutes = ((SystemClock.elapsedRealtime() - timer.getBase()) / 1000) / 60;
l... | [
"public void assignmines() {\n\n for(int row = 0; row < mineBoard.length; row++) {\n for(int col = 0; col < mineBoard[0].length; col++) {\n mineBoard[row][col] = 0;\n }\n }\n\n int minesPlaced = 0;\n Random t = new Random();\n while(minesPlaced... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the key path of the insert location | public Object[] getInsertKeyPath()
{
return new Object[]{null};
} | [
"public Object[] getInsertKeyPath()\n {\n return null;\n }",
"public java.lang.String getInsertKey() {\r\n return insertKey;\r\n }",
"public String getKeyProgLocation();",
"public String getKeyFilePath();",
"public String getKeyPath() {\n return keyPath;\n }",
"String getKey... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is a convenience attribute that allows direct access to the child node that is the document element of the document. | @Property Element getDocumentElement(); | [
"@Override\n\tpublic final Element getDocumentElement() {\n\t\treturn LocalDom.nodeFor(getDocumentElement0());\n\t}",
"abstract protected UiElementNode getRootNode();",
"Object getDocumentNode(Object contextNode);",
"public DocumentNode getDocumentNode() {\r\n\t\treturn documentNode;\r\n\t}",
"public Intege... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks a project argument. | private static void checkProjectArgument(Map<String, Object> args, String param, ProgressObserver observer)
throws VilException {
if (null == args.get(param)) {
throw new IllegalArgumentException(param + " not given");
}
if (args.get(param) instanceof File) {
arg... | [
"private void validateProject() {\n\n }",
"static void checkProjectName(String projectName) throws UserFailureException\n {\n assert projectName != null;\n checkName(projectName, \"Project\");\n }",
"public FormValidation doProjectCheck(StaplerRequest req) {\n return CNFormFiel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Servlet Url Pattern' attribute. If the meaning of the 'Servlet Url Pattern' attribute isn't clear, there really should be more of a description here... | String getServletUrlPattern(); | [
"public String getUrlPattern()\n {\n if (isExtensionMapping())\n {\n return '*' + extension;\n }\n else\n {\n return prefix + \"/*\";\n }\n }",
"public String getJspUrlPattern() {\n return this.jspUrlPattern;\n }",
"public String ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'field550' field | public java.lang.CharSequence getField550() {
return field550;
} | [
"public java.lang.CharSequence getField550() {\n return field550;\n }",
"public void setField550(java.lang.CharSequence value) {\n this.field550 = value;\n }",
"java.lang.String getField1200();",
"java.lang.String getField1500();",
"java.lang.String getField1800();",
"java.lang.String getField1050... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the button regular. | public JButton getButtonRegular() {
return this.buttonRegular;
} | [
"private JButton getJButton_SetNormal() {\r\n\t\tif (jButton_SetNormal == null) {\r\n\t\t\tjButton_SetNormal = new JButton();\r\n\t\t\tjButton_SetNormal.setText(\"Set\");\r\n\t\t\tjButton_SetNormal.setFont(new Font(\"SansSerif\", Font.PLAIN, 10));\r\n\t\t\tjButton_SetNormal.addActionListener(new java.awt.event.Acti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the description of the room | public void setDescription(String desc){
description = desc;
} | [
"public void setDescription(String description) {\n this.gameDescription = description;\n }",
"public void setDescription(String description) {\n mDescription = description;\n }",
"public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
grafico circular crea un Pane con la grafica de pastel | public Pane getGraf1(){
grPast = new GridPane();
pieChart = new PieChart();
pieChart.setTitle("Porcentaje");
pieChart.setData(getChartData());
grPast.add(pieChart, 0, 0);
return grPast;
} | [
"public void pridajPane() {\n\t\tmojPane.setAlignment(Pos.CENTER);\n\n\t\tmojPane.getChildren().addAll(informacia, vyberPredmetov, tabulkaZiak);\n\t}",
"public void addToAllPanes(MyPoint p) {\n\n\t\tdouble YsizeOfPic = this.getView().getWorkSpace().heightofContainers.get();\n\t\tdouble XsizeOfPic = this.getView()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'KDM Framework'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseKDMFramework(KDMFramework object) {
return null;
} | [
"public T caseMicrocontroller(Microcontroller object) {\r\n\t\treturn null;\r\n\t}",
"public T caseKDMModel(KDMModel object) {\n\t\treturn null;\n\t}",
"public T caseMicrocontrollerType(MicrocontrollerType object) {\r\n\t\treturn null;\r\n\t}",
"public T caseSafetyFramework(SafetyFramework object)\n {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "lastrunresult" attribute | org.apache.xmlbeans.XmlString xgetLastrunresult(); | [
"java.lang.String getLastrunresult();",
"void xsetLastrunresult(org.apache.xmlbeans.XmlString lastrunresult);",
"public String resultXML(){\n\t\tString s = \"<\" + this.getClass().getName() + \">\" + result + \"</\" + this.getClass().getName() + \">\" ;\n\t\treturn s;\n\t}",
"public String getResult() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the time interval collection is turned on a ResponseVariable is created for capturing statistics across the intervals. This returns this value or null if time interval collection has not been turned on | public final ResponseVariable getAcrossIntervalResponse() {
return myAcrossIntervalResponse;
} | [
"public ResponseVariable addResponseToInterval(ResponseVariable theResponse,\n boolean intervalEmptyStatOption) {\n if (theResponse == null) {\n throw new IllegalArgumentException(\"The supplied response was null.\");\n }\n if (myRespo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Will set the f field of the DummyFloat argument to zero. | static void reset(DummyFloat df) {
df.f = 0f;
} | [
"public static float nullToZero(Float f)\n {\n if(f == null)\n {\n return 0;\n }\n else\n {\n return f.floatValue();\n }\n }",
"public void zero() {\r\n\t\tthis.x = 0.0f;\r\n\t\tthis.y = 0.0f;\r\n\t}",
"public Builder setZeroCountFloat(double value) {\n zeroCountCase_ = 7;\n zeroCount_ =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the update mat.vsac error message panel. | @Override
public ErrorMessageDisplay getUpdateVSACErrorMessagePanel() {
return updateVSACErrorMessagePanel;
} | [
"MessageAlert getErrorMessageDisplay();",
"@Override\r\n public SuccessMessageDisplay getUpdateVSACSuccessMessagePanel() {\r\n return updateVSACSuccessMessagePanel;\r\n }",
"public String getErrorMessage () {\n if (watch != null) return watch.getErrorMessage ();\n return errorMessage;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used to control the enabled/disabled state of HTTPS on the server. By default HTTPS is disabled. | @Override public ServerConfig https(final boolean enabled) {
httpsEnabled = enabled;
return this;
} | [
"public boolean isHttpsEnabled() {\n return httpsEnabled;\n }",
"@Updatable\n public Boolean getHttpsEnabled() {\n if (httpsEnabled == null) {\n httpsEnabled = false;\n }\n\n return httpsEnabled;\n }",
"public void setEnableSSL(boolean V)\n {\n this.setE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Session by sessionId. For testing only. | Session getSessionById(String sessionId) {
return JpaUtil.transaction(em -> (em.find(Session.class, sessionId)));
} | [
"InternalSession findSession(String id);",
"public Session findByPrimaryKey(long sessionId) throws SessionDaoException;",
"Session get(int id);",
"public Session getSession(String id) {\r\n return sessionMap.get(id);\r\n }",
"public Session get(String sessionKey) {\n if (!validateKey(sessio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the log sum of exponentiated Qvalues (Scaled by beta) | public static double logSum(double [] qs, double maxBetaScaled, double beta){
double expSum = 0.;
for(int i = 0; i < qs.length; i++){
expSum += Math.exp(beta * qs[i] - maxBetaScaled);
}
double v = maxBetaScaled + Math.log(expSum);
return v;
} | [
"private double logSumExp(double x[]) {\n double maxx = Double.NEGATIVE_INFINITY;\n for (double d : x) {\n if (d > maxx) { maxx = d; }\n }\n double sum = 0.0;\n for (double d : x) {\n sum += Math.exp(d-maxx);\n }\n return maxx + Math.log(sum);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a column of the matrix multiplied by a factor to a given vector. Legal range of the integer argument is 0 . The corresponding Matlab expression would be: x = x+factorD(:,k+1). | public void addColumn(int k, double factor, double[] x){
// if (x.length != N) throw new IllegalArgumentException(
// "addColumn: argument x is not expected length N.");
if ((k<0) || (k>=K)) return;
col[k].addToArray(factor, x);
} | [
"public void mulColumn(double v, int j){\n\t\tfor (int i = 1 ; i <= getRows() ; i++){\n\t\t\tset(i, j, get(i, j) * v);\n\t\t}\n\t}",
"public void add(int k, int x){\n while(k <= n_){\n dat[k] += x;\n k = k + ( k&(-k) );\n }\n }",
"public void addValue(int i, int j, int k, double v) {\n\taddValu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
IsConditionalIndependent tests whether two nodes X and Y are independent given a set of variables Z. The test compares the score of the Bayes network with and without arrow Y>X where all nodes in Z are parents of X. | protected boolean isConditionalIndependent(
int iAttributeX,
int iAttributeY,
int [] iAttributesZ,
int nAttributesZ) {
ParentSet oParentSetX = m_BayesNet.getParentSet(iAttributeX);
// clear parent set of AttributeX
while (oParentSetX.getNrOfParents() > 0) {
oParentSetX.deleteLastParent(m_ins... | [
"protected boolean isConditionalIndependent(\n\t\tint iAttributeX, \n\t\tint iAttributeY, \n\t\tint [] iAttributesZ, \n\t\tint nAttributesZ) {\n\t\tParentSet oParentSetX = m_BayesNet.getParentSet(iAttributeX);\n\t\t// clear parent set of AttributeX\n\t\twhile (oParentSetX.getNrOfParents() > 0) {\n\t\t\toParentSetX.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make this operator an exclusive rather than inclusive comparison. Basically switches the operator from, for instance, "==" to "!=". | public void invertOperator(Boolean invertOperator) {
this.invertOperator = invertOperator;
} | [
"public void not() {\n\t\tinvertOperator = true;\n\t}",
"public Relation negated() {\n\t\treturn fromValue(val ^= True.val);\n \t}",
"public static BinaryExpression exclusiveOrAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public NegationOperator(){\n }",
"@Overrid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column lb01_pt.lbt06_meisai_m_pkey.sibtcd1 | public void setSibtcd1(String sibtcd1) {
this.sibtcd1 = sibtcd1;
} | [
"public void setSibtcd2(String sibtcd2) {\r\n this.sibtcd2 = sibtcd2;\r\n }",
"public void setSmenindex(Integer smenindex) {\n this.smenindex = smenindex;\n }",
"public void setNienHanSuDungGiayDangKiem(int nienHanSuDungGiayDangKiem);",
"public void setIdSolicitacaoPN(java.math.BigInteger ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an implementation of ScriptEngine (& Invocable), wrapping the contained engine, that logs PolyglotExceptions that are thrown from any 'eval' methods. | static ScriptEngine create(ScriptEngine engine) {
return new DebuggingGraalScriptEngine(engine).createProxy();
} | [
"public interface ScriptEngine {\n\n /**\n * Reserved key for a named value that passes an array of positional\n * arguments to a script.\n */\n public static final String ARGV = \"javax.script.argv\";\n\n /**\n * Reserved key for a named value that is the name of the file being\n * exe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Main function creates client to server, and initiates peer server Input is IP address of host and the directory that the peer will share and download to | public static void main(String[] args)
throws IOException {
/* create new client object
* args[0] is the directory of the files to download to (assumed two folders
* args[1] is the topology for the neighbors
* ars[2] is the default TTR in ms
* args[3] is the ... | [
"private void transferFilePeer(){\n\n try{\n\n BufferedReader bf = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n StringBuilder sb = new StringBuilder();\n String message = bf.readLine();\n\n int i = 3;\n\n //get the fileName from ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Invalid slave configuration. Name is empty | public static String Slave_InvalidConfig_NoName() {
return holder.format("Slave.InvalidConfig.NoName");
} | [
"public static Localizable _Slave_InvalidConfig_NoName() {\n return new Localizable(holder, \"Slave.InvalidConfig.NoName\");\n }",
"private void setupSlaveConf() {\n\n // TODO - add to slave my.cnf\n // server-id=2\n\n int slaveId = getServerId(2);\n if (slaveId == 1) {\n System.out.pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "Comment" element | org.apache.xmlbeans.XmlString xgetComment(); | [
"org.apache.xmlbeans.XmlString xgetComments();",
"public CommentDoc getComment() {\n return commentDoc;\n }",
"public String getComments() { \n\t\treturn getCommentsElement().getValue();\n\t}",
"public org.hl7.fhir.String getComment()\n {\n synchronized (monitor())\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructor Creates a round manager object with the types of balloons that can be in the round and the initial balloon amount and spawn time | public RoundManager(Balloon[] balloonTypes, int balloonsPerRound, float spawnTime) {
this.balloonTypes = balloonTypes;
this.balloonsPerRound = balloonsPerRound;
this.timeBetweenRounds = 0;
this.currentRoundNumber = 0;
this.spawnTime = spawnTime;
this.currentRound = null;
this.balloonsThisRound = ... | [
"private void newRound() {\r\n\t\tballoonsThisRound = currentRoundNumber * balloonsPerRound * 5;\r\n\t\tcurrentRound = new Round(balloonTypes, 0.3f, balloonsThisRound);\r\n\t\tcurrentRoundNumber++;\r\n\r\n\t\tSystem.out.println(\"Begining Round: \" + currentRoundNumber);\r\n\t}",
"public void newRound() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getting color name with given id | public static Color getColor(int id) {
for (Color color : Color.values()) {
if (color.id == id) {
return color;
}
}
return null;
} | [
"java.lang.String getNameColor();",
"public abstract String getColorName(int index);",
"public Color getColour(String id) throws NoSuchAlgorithmException {\n byte[] digest = MessageDigest.getInstance(\"md5\").digest(id.getBytes());\n return new Color(digest[0] & 0xFF, digest[1] & 0xFF, digest[2] &... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter of Record given a Position. | public Record getRecordByPos(int pos){
return this.recordList.get(pos);
} | [
"public Record readRecord(int recordId) {\n return records[recordId];\n }",
"java.lang.String getRecord();",
"public Record readRecord(Long id);",
"public Record getRecord() {\n return record;\n }",
"public Object getRecord(String id);",
"public ReplicateOffset getRecordOffset ();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests_SRS_IOTHUBSSLCONTEXT_25_017: [This method shall return the value of sslContext.] | @Test
public void getterGetsContext() throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException, IOException, CertificateException
{
//arrange
testCollection.add(mockedCertificate);
generateSSLContextExpectations();
IotHubSSLContext testContext = Deencapsulation... | [
"SSLContext getSslContext();",
"public SSLContext getSSLContext() {\n return ssl;\n }",
"public SSLContext getSslContext() {\n return sslContext;\n }",
"SslContext buildSslContext()\n throws SSLException\n {\n if (isClient) {\n return buildClientSslContext();\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines whether the property enabled of the given control has changed during the processing of the current request and if so, writes JavaScript code to the response that updates the clientside enabled property. | public static void writeEnabled( final Control control )
throws IOException
{
// Using isEnabled() would result in unnecessarily updating child widgets of
// enabled/disabled controls.
WidgetLCAUtil.writeEnabled( control, control.getEnabled() );
} | [
"@VTID(187)\r\n boolean getEnableWriteback();",
"@VTID(17)\r\n boolean getEnabled();",
"@VTID(15)\r\n boolean getEnabled();",
"boolean hasResponseControls();",
"public void enable() {\n RequestOutputStream o = display.getResponseOutputStream();\n synchronized(o) {\n o.beginRequest(majorOpcode,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends condition "process variable vName < vValue" | public ActivityIteratorExpressionBuilder addProcessVariableLessThan(String vName,
double vValue); | [
"public ActivityIteratorExpressionBuilder addProcessVariableGreaterThan(String vName,\n double vValue);",
"public ActivityIteratorExpressionBuilder addProcessVariableLessThan(String vName,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines the fling velocity and then fires the appropriate swipe event accordingly | @Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
try {
float diffY = e2.getY() - e1.getY();
float diffX = e2.getX() - e1.getX();
if (Math.abs(diffX) > Math.abs(diffY)) {
... | [
"@Override\n public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {\n \t\n \tboolean result = false;\n float diffY = e2.getY() - e1.getY();\n float diffX = e2.getX() - e1.getX();\n// STTrace.line(\"diffX = \" + diffX + \"; dif... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A goal may have a longer description that details the Goal. This method takes in a List of sentences and sets the long description for the goal. | public void setLongDescription(List<String> text); | [
"public void setDescription(String description) {\n passageDescription = passageDescription + \" and \" + description;\n }",
"public String getLongDescription() {\n\n return (\"You are in the \"\n + description\n + \" , \"\n + \" you see: item 1: \"\n + item.getName()\n +... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the channel associated with this file. Note that this returns the channel of the associated RandomAccessFile. Note that since the BufferedFile buffers the I/O's to the underlying file, the offset of the channel may be different than the offset of the BufferedFile. This is different than for a RandomAccessFile where... | public java.nio.channels.FileChannel getChannel() {
return this.randomAccessFile.getChannel();
} | [
"public java.nio.channels.FileChannel getChannel() {\n return this.raf.getChannel();\n }",
"public FileChannel getFileChannel() {\n\t\treturn channel;\n\t}",
"public Channel getChannel()\n {\n if (readableByteChannel == writableByteChannel) {\n return readableByteChannel;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove a previously added DialogWindowListener. | public void removeDialogWindowListener(IDialogWindowListener listener) {
listeners.remove(listener);
} | [
"public void removeListener(DialogueListener listener) {\n this.listeners.remove(listener);\n }",
"public synchronized void removeWindowListener(WindowListener l) {\n windowListener = AWTEventMulticaster.remove(windowListener, l);\n }",
"public void removeListener();",
"public void removeN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the primaryPayerAccountId value for this Account. | public void setPrimaryPayerAccountId(java.lang.String primaryPayerAccountId) {
this.primaryPayerAccountId = primaryPayerAccountId;
} | [
"public void setPrimaryPayerAccount(java.lang.String primaryPayerAccount) {\n this.primaryPayerAccount = primaryPayerAccount;\n }",
"public java.lang.String getPrimaryPayerAccountId() {\n return primaryPayerAccountId;\n }",
"public java.lang.String getPrimaryPayerAccount() {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
func_ElementExist(String elementName) This method checks whether the element is existing Created By: Amrutha Nair Created On:24 November 2015 Modified By | Description of Modification: | public boolean func_ElementExist(String elementName) throws Exception {
boolean found = false;
switch (elementName) {
case "Bulk Client Icon":
found = BaseClass.rm.webElementExists(list_bulk_ClientIcon);
break;
case "Users List":
found = BaseClass.rm.webElementExists(List_Users);
... | [
"public boolean checkPresent(String elementName) {\r\n return check(\"Check Element Present\", true, () -> webUIDriver.isPresent(elementName)), (expected, actual) -> (expected == actual));\r\n /*\r\n TODO: check doesnt do a proper messaging\r\n TODO: timeout\r\n\t\tlong timeout = toTimeout((String) Harn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method that waits for the player to press space. Consumes the pressed key. | private static void waitForSpace()
{
char ch = '\0';
do
{
if (StdDraw.hasNextKeyTyped())
ch = StdDraw.nextKeyTyped();
else
StdDraw.show(20);
}
while (ch != ' ');
} | [
"public static void waitKeyPressed() throws Exception\n {\n System.out.println(\"press any key to continue ...\");\n System.in.read();\n }",
"public void spacePressed()\n {\n System.out.println(\"spacePressed()\");\n while (current.translate(1, 0));\n display.showBlocks();\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the tipoDato value for this Pregunta. | public void setTipoDato(java.lang.String tipoDato) {
this.tipoDato = tipoDato;
} | [
"public void setTipo(TipoNodo tipo) {\n this.tipoNodo = tipo;\n }",
"public void setTipoFecha(int tipoFecha)\n {\n tipFecha=tipoFecha;\n }",
"public void setTipo(Valor tipo) {\n this.tipo = tipo;\n }",
"public void setTipo(String tipo) {\r\n this.tipo = tipo;\r\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/Get the angle form (0,1) | public double getAngle(){
float temp = this.dot(new Vector2f(0, 1));
temp /= this.lenght();
if (this.getX() > 0)
return (360 - Math.toDegrees(Math.acos(temp)));
else
return Math.toDegrees(Math.acos(temp));
} | [
"public double angle_1() {\n return Math.atan2(y_1, x_1);\n }",
"public double angle () {\n\t\treturn Math.atan2(y,x);\n\t}",
"double angle(){\r\n\t\t//Math.atan2 The method Converts rectangular coordinates (x, y) \r\n\t\t//to polar coordinate (r, theta) and returns theta.\r\n\t\t\t\treturn Math.atan2(i,r);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets waypoint visibility. Example: visible = waypointVisible [groupOne, 1] | public native static float waypointVisible(java.util.List oper1); | [
"@VTID(38)\r\n boolean getVisible();",
"public boolean getVisible();",
"Visibility getVisibility();",
"int getVisibility( );",
"public boolean isVisible() {\n\t\treturn get(\"visible\");\n\t}",
"String getVisibility();",
"public Boolean getVisible() {\n return visible;\n }",
"public boolea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load all the policy detail information for the Policy Inquiry Service. | public RecordSet loadPolicyDetailForWS (Record inputRecord); | [
"private Record loadPolicyInformation(Record inputRecord, PolicyHeader policyHeader) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"loadPolicyInformation\", new Object[]{inputRecord, policyHeader});\r\n }\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pXComputerMove is called when a computer player is placing a tile as player X. | private static void pXComputerMove() {
System.out.println("Player X Move:");
State newState = new State();
char[][] newBoard = Actions.copy(board);
newState.setData(newBoard);
newState.setAlpha(Double.MAX_VALUE);
newState.setBeta(Double.MAX_VALUE * -1);
State temp = Actions.minMaxDecision(newStat... | [
"public static void pXHumanMove() {\n\t\tprintBoard(board);\n\t\tScanner in = new Scanner(System.in);\n\t\tint[] Xmove = new int[2];\n\t\tSystem.out.println(\"Player X, please enter a y (row) value\");\n\t\tXmove[0] = in.nextInt();\n\t\tSystem.out.println(\"Player X, please enter an x (column) value\");\n\t\tXmove[... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getNumberAmps is used to get the number of AMP | protected int getNumberAmps() {
return nbrAMP;
} | [
"public void getAmplitude() {\r\n\t\t\r\n\t\tDouble maxAmp = 0.0; //Initialise variable\r\n\t\t\r\n\t\tfor (Double amp : this.Voltages) { //Loops through voltage array\r\n\t\t\tif (amp > maxAmp) {\r\n\t\t\t\tmaxAmp = amp;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.Amplitude = maxAmp;\r\n\t\t\r\n\t}",
"public java.la... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check BossHouse contain boss or not | public boolean isHasBoss() {
return this.hasBoss;
} | [
"Boolean isBoss();",
"private boolean isBoss(EntityType entityType)\n {\n switch (entityType)\n {\n case ENDER_DRAGON:\n case ELDER_GUARDIAN:\n case WITHER:\n return true;\n default:\n return false;\n }\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__EvaluationExpressionOut__Group__4" $ANTLR start "rule__EvaluationExpressionOut__Group__4__Impl" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:4605:1: rule__EvaluationExpressionOut__Group__4__Impl : ( ';' ) ; | public final void rule__EvaluationExpressionOut__Group__4__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:4609:1: ( ( ';' ) )
// .... | [
"public final void rule__EvaluationExpressionOut__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:4598:1: ( rule__EvaluationExpr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method for Rental Repair find by rental unit id and rental unit no service | @Override
@Transactional
public RentalRepair findByRentalUnitIdAndRentalUnitNo(int rentalUnitId, int rentalUnitNo) {
return rentalRepairDao.findByRentalUnitIdAndRentalUnitNo(rentalUnitId, rentalUnitNo);
} | [
"public Service searchServiceByNo(int no);",
"@Override\n\tpublic Resident searchResident(int user_id) {\n\t\tCriteria c=getSession().createCriteria(Resident.class);\n\t\tc.add(Restrictions.eq(\"user_id\",user_id));\n\t\tResident resident=(Resident) c.uniqueResult();\n\t\treturn resident;\n\t}",
"public int get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Computes the H value with the Manhattan distance end: The ending Square in the maze | public void calcManhattanH() {
double min = Integer.MAX_VALUE;
double temp = min;
for (Square engSquare : this.maze.getEndSquares()) {
temp = Math.abs(this.getLine() - engSquare.getLine())
+ Math.abs(this.getCol() - engSquare.getCol());
min = Math.min(... | [
"public int manhattan() {\n int distance = 0;\n for (int row = 0; row < n; row++)\n for (int col = 0; col < n; col++) {\n int value = tiles[row][col];\n if (value == 0) continue;\n distance += Math.abs((value - 1) / n - row) + Math.abs((value - 1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the incomeOfHP property. | public long getIncomeOfHP() {
return incomeOfHP;
} | [
"public int getHP() {\r\n\t\treturn HP;\r\n\t}",
"public static int getHP()\r\n\t{\r\n\t\treturn hp;\r\n\t}",
"int getHPValue();",
"public void setIncomeOfHP(long value) {\n this.incomeOfHP = value;\n }",
"public int getValue_HP() \n {\n return enemyHP;\n }",
"public int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Conversions from Thermal Calories | public static double thermalCaloriesToElectronVolts(double num){ return (num*9.223*Math.exp(18)); } | [
"private String tempConversion() {\n int reading = ((record[17] & 255) + ((record[21] & 0x30) << 4));\n\n double voltage = (reading * 3.3) / 1024;\n return formatter.format((voltage - .6) / .01);\n\n }",
"public Double convertTemp(Double celciusTemp){\n\n double fahrenheitTemp =((c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
customMonsterEncounterHook generate a MonsterGroup for a CustomEncounter | public static MonsterGroup customEncounterHook(String key) {
for (ModContainer mod : mods) {
CustomEncounter encounter = null;
for (CustomEncounter ce : mod.customEncounters) {
if (ce.id.equals(key)) {
encounter = ce;
break;
... | [
"@Override\n public Group createKnightGroup() {\n Translation t1 = new Translation(2, 1);\n Translation t2 = new Translation(2, -1);\n Translation t3 = new Translation(-2, 1);\n Translation t4 = new Translation(-2, -1);\n\n Translation t5 = new Translation(1, 2);\n Trans... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the 'from' point of the transformation. | public final void setFromPoint(Vector fromPoint) {
transform.setFromPoint(fromPoint);
} | [
"public final void setFrom( PositionF p ) {\n x = p.x;\n y = p.y;\n }",
"public void setFrom(Vertex<VV> vertex)\r\n { this.from = vertex; }",
"public final void setFrom(Contact from)\n {\n this.from = from;\n }",
"public void setFrom(Node theNode){\n m_from = theNode;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sequence of observed events. repeated .envoy.data.tap.v3.SocketEvent events = 3; | public io.envoyproxy.envoy.data.tap.v3.SocketEventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
} | [
"@java.lang.Override\n public io.envoyproxy.envoy.data.tap.v3.SocketEvent getEvents(int index) {\n return events_.get(index);\n }",
"@java.lang.Override\n public io.envoyproxy.envoy.data.tap.v3.SocketEventOrBuilder getEventsOrBuilder(\n int index) {\n return events_.get(index);\n }",
"@java.lang.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: hin_id | public jkt.hms.masters.business.Patient getHin () {
return hin;
} | [
"String getValueId();",
"public long getHordingId();",
"public Integer getHrId() {\n return (Integer) get(2);\n }",
"public String getInHosNo() {\r\n return inHosNo;\r\n }",
"public void setHin (jkt.hms.masters.business.Patient hin) {\n\t\tthis.hin = hin;\n\t}",
"java.lang.String getVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the AbstractPatriciaTrie.TrieEntry floorEntry(K) method test. | @Test
public void testFloorEntry_6()
throws Exception {
PatriciaTrie fixture = new PatriciaTrie();
fixture.incrementSize();
fixture.modCount = 1;
AbstractPatriciaTrie.TrieEntry<Object, Object> result = fixture.floorEntry(null);
// add additional test code here
assertEquals(null, result);
} | [
"@Test\n\tpublic void testFloorEntry_1()\n\t\tthrows Exception {\n\t\tPatriciaTrie fixture = new PatriciaTrie();\n\t\tfixture.incrementSize();\n\t\tfixture.modCount = 1;\n\n\t\tAbstractPatriciaTrie.TrieEntry<Object, Object> result = fixture.floorEntry(null);\n\n\t\t// add additional test code here\n\t\tassertEquals... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__TgtStep__Group__3" $ANTLR start "rule__TgtStep__Group__3__Impl" InternalTest.g:939:1: rule__TgtStep__Group__3__Impl : ( ( rule__TgtStep__StatementsAssignment_3 ) ) ; | public final void rule__TgtStep__Group__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalTest.g:943:1: ( ( ( rule__TgtStep__StatementsAssignment_3 )* ) )
// InternalTest.g:944:1: ( ( rule__TgtStep__StatementsAssignment_3 )* )
... | [
"public final void rule__TgtScript__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTest.g:364:1: ( rule__TgtScript__Group__3__Impl )\n // InternalTest.g:365:2: rule__TgtScript__Group__3__Impl\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add this as a dimension to a netCDF file | void addDimensionsToNetcdfFile(NetcdfFile ncfile, Group g) {
ncfile.addDimension(g, new Dimension(getName(), getNTimes()));
} | [
"void addToNetcdfFile(NetcdfFile ncfile, Group g) {\n Variable v = new Variable(ncfile, g, null, getName());\n v.setDataType(DataType.INT);\n\n DateFormatter formatter = new DateFormatter();\n String refDate = formatter.toDateTimeStringISO(baseDate);\n String udunit = timeUdunit + \" since \" + refDa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This will create a debug string encoded for the ToolDebug, uses | to indicate a break. | public String debugToString() {
return "Line|id [" + id + "]| vertex end point ids [" + vEnd1.getId() + " " + vEnd2.getId() + "]| vEnd1[" + vEnd1 + "]| vEnd2[" + vEnd2 + "]";
} | [
"java.lang.String getDebugInformation();",
"public String toDebugString() {\n String super_str = super.toDebugString();\n StringBuffer str = new StringBuffer(mySelf()+\"\\n\");\n str.append(\"..length: \"+length+'\\n');\n str.append(\"..lanugage: \"+language+'\\n');\n str.append(\"..num_segs: \"+ n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Detects the item collision with the player. | private void detectItemCollision() {
int row = currentItem.getRow() - 5;
int col = currentItem.getCol() - 5;
int row2 = row+10;
int col2 = col+10;
if (row <= char1.getRow() && char1.getRow() <= row2 && col <= char1.getCol() && char1.getCol() <= col2) {
currentItem.itemEffect(char1, char2, 1);
grid[curre... | [
"public void checkCollision() {\n if (virusHitbox().intersects(player.playerHitbox())) {\r\n player.collision = true;\r\n } else {\r\n player.collision = false;\r\n }\r\n }",
"public void collide(){\n //The following keep the player in bounds\n if (getBo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unloads the group, called when there's no more users in a room. | public void unloadGroup(int groupId) {
if (groups.containsKey(groupId)) {
groups.remove(groupId);
}
} | [
"private void removeOldGroup() {\n reference = FirebaseDatabase.getInstance().getReference(\"groups\").child(fuser.getUid());\n reference.removeValue();\n }",
"public void leaveGroup() {\n groupManager.leaderDeleteGroup();\n }",
"void unsetGroup();",
"public void deregisterGroup(Dat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of MultithreadedCognitiveModel. It instantiates new CognitiveModules from all of the given CognitiveModuleFactories | public MultithreadedCognitiveModel(
final int numThreadsInPool,
Iterable<? extends CognitiveModuleFactory> moduleFactories)
{
super();
this.setSemanticIdentifierMap(
new DefaultSemanticIdentifierMap());
// Instantiate the CognitiveModules from t... | [
"public MultithreadedCognitiveModel(\n final int numThreadsInPool, \n CognitiveModuleFactory... moduleFactories)\n {\n this(numThreadsInPool, Arrays.asList(moduleFactories));\n }",
"public MultithreadedCognitiveModel createModel()\n {\n return new MultithreadedCognitiveModel(t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleexpression" $ANTLR start "entryRulesimple_expression" ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/srcgen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:88:1: entryRulesimple_expression : rulesimple_expression EOF ; | public final void entryRulesimple_expression() throws RecognitionException {
try {
// ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:89:1: ( rulesimple_expression EOF )
... | [
"public final void entryRuleExprSimple() throws RecognitionException {\n try {\n // InternalWh.g:304:1: ( ruleExprSimple EOF )\n // InternalWh.g:305:1: ruleExprSimple EOF\n {\n before(grammarAccess.getExprSimpleRule()); \n pushFollow(FOLLOW_1);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 authAccountFlags = 16; optional uint32 authAccountFlags = 16; | boolean hasAuthAccountFlags(); | [
"int getAuthAccountFlags();",
"public SM_ACCOUNT_AUTH(int accountId, int loginOk, int playOk1, int playOk2) {\n super(0x01);\n this.accountId = accountId;\n this.loginOk = loginOk;\n this.playOk1 = playOk1;\n this.playOk2 = playOk2;\n }",
"public int getAuthAccountFlags() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ assertWaitForCondition checks if the checkCondition has been met every 200ms. If the checkCondition is not met by the timeout period, assertWaitForCondition fails. | private static void assertWaitForCondition(String message, Supplier<Boolean> checkCondition, long timeout, TimeUnit unit) {
CountDownLatch countDownLatch = new CountDownLatch(1);
Thread thread = new Thread(() -> {
while(true) {
if(checkCondition.get()) {
countDownLatch.countDown();
... | [
"private void waitFor(ExpectedCondition condition, Integer timeOutInSeconds) {\n timeOutInSeconds = timeOutInSeconds != null ? timeOutInSeconds : 60;\n WebDriverWait wait = new WebDriverWait(driver, timeOutInSeconds);\n wait.until(condition);\n }",
"static boolean waitStatus(final long tim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an endpoint with the "RESPONSE" role using the builder provided. | UMOImmutableEndpoint createResponseEndpoint(UMOEndpointBuilder builder, UMOManagementContext managementContext) throws UMOException; | [
"Response createResponse();",
"protected abstract TResponse createResponseInstance();",
"ResponseDetail createResponseDetail();",
"UMOImmutableEndpoint createOutboundEndpoint(UMOEndpointBuilder builder, UMOManagementContext managementContext) throws UMOException;",
"public ResponseBody addResponse() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies action to be taken on receiving Smart notification containing event data and notification | void onReceiveSmartNotification(String eventData, String notification); | [
"@Override\n public void onNotificationAction(Context context, Date actionTime, String pushType, String actionType, String actionValue) {\n }",
"public interface SmartAppListener {\n\n\t/**\n\t * Specifies action to be taken on receiving Smart notification containing\n\t * event data and notification\n\t * ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the specVersion for this descriptor depending on the docType | protected void setSpecVersion() {
// I do not care about the version of the runtime descriptors
} | [
"public void setVersion(String docVer) {\r\n\t\tthis.documentVersion = docVer;\r\n\t}",
"public void setDocumentVersion(int value) {\n this.documentVersion = value;\n }",
"SchemaReference setVersion(String version);",
"public void setVersionNo (String VersionNo);",
"public void setTypeDefVersion(l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "VPRODUCT" $ANTLR start "VSUM" | public final void mVSUM() throws RecognitionException {
try {
int _type = VSUM;
int _channel = DEFAULT_TOKEN_CHANNEL;
// C:\\Users\\David\\workspace\\Virtual-Ecology-Workbench\\src\\VEW\\XMLCompiler\\ANTLR\\BACON.g:162:7: ( 'sum' )
// C:\\Users\\David\\workspace\\... | [
"public final void mVPRODUCT() throws RecognitionException {\n try {\n int _type = VPRODUCT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Users\\\\David\\\\workspace\\\\Virtual-Ecology-Workbench\\\\src\\\\VEW\\\\XMLCompiler\\\\ANTLR\\\\BACON.g:161:10: ( 'product' )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
com.mcip.orb.Stringss queryConsultList (in wstring in_topic_no, in wstring in_opr_cnm) raises (com.mcip.orb.CoException); | public java.lang.String[][] queryConsultList (java.lang.String in_topic_no,
java.lang.String in_opr_cnm) throws com.mcip.orb.CoException {
return this._delegate.queryConsultList(in_topic_no, in_opr_cnm);
} | [
"public java.lang.String[][] queryConsultInfo (java.lang.String in_faq_no, \n java.lang.String in_opr_cnm) throws com.mcip.orb.CoException {\n return this._delegate.queryConsultInfo(in_faq_no, in_opr_cnm);\n }",
"public java.lang.String[][] queryFaqList (java.la... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function generates an object property assertion axiom and randomly generates a set of inferred object property assertions. | public void generateObjectPropertyAssertionAxiom(OWLObjectProperty objectProperty, OWLNamedIndividual subject,
OWLNamedIndividual object) {
// logger.info("Property name: " + objectProperty.getIRI().getIRIString());
if (objectProperty == null || subject == null || object == null)
return;
OWLNegativeObjectP... | [
"public void generateOWLObjectPropertyAssertionAxiom(OWLObjectPropertyAssertionAxiom axiom) throws TargetSWRLRuleEngineException\r\n {\r\n OWLProperty property = axiom.getProperty();\r\n Set<OWLProperty> definingProperties = new HashSet<OWLProperty>();\r\n OWLNamedIndividual subjectIndividual = axiom.getS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the array of nucleiSelected this method DOES NOT updates lastModified timestamp This method is used by the parser when reading annotation file ... therefore, if this method updates lastModified, it will interfere with the lastModified field. therefore DO NOT use this method without explicitly updating lastModified ... | @XmlElement(name = "NucleiSelected")
public void setNucleiSelected(ArrayList<NucleiSelected> nucleiSelected) {
this.nucleiSelected = nucleiSelected;
} | [
"@Override\n public abstract void setSelection(boolean selected[]);",
"public void setSelectionByIndices(int[] selection) {\n \tm_Selection = new boolean[getObjects().length];\n for (int i=0; i<selection.length; i++) {\n \tm_Selection[selection[i]]=true;\n }\n\t\tm_Support.firePropertyCha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks the side of the collision | public String checkCollisionSide(Sprite collision) {
//hit on right
if(Math.abs((collision.getX() + collision.getFitWidth()) - this.getX()) < 5) {
//System.out.println("Right");
return "right";
}
//hit on left
if(Math.abs(collision.getX() - (this.getX() + this.getFitWidth())) < 5) {
//System.... | [
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a child from the Portrait | public void removeChild(EntityPortrait child) {
children.remove(child);
} | [
"public void onRemoveChild(IComposite parent, IComposite child);",
"@Override\n\t\tpublic void remove(TiUIView child)\n\t\t{\n\t\t\tfinal View nativeView = getNativeView();\n\t\t\tif (nativeView != null) {\n\t\t\t\tsetNativeView(this.content);\n\t\t\t\tsuper.remove(child);\n\t\t\t\tsetNativeView(nativeView);\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the current color to the specified ARGB values. All subsequent rendering operations will use this specified color. The ARGB value passed in is interpreted with the least significant eight bits giving the blue component, the next eight more significant bits giving the green component, the next eight more significan... | public void setColor (int _iColor) {
if (((_iColor >> 24) & 0xFF) == 0x00)
_iColor = (255<<24) + _iColor;
if (_iColor == 0)
_iColor = (255<<24) + 0x000000;
m_vPaint.setColor(_iColor);
} | [
"public int set_rgbColor( long newval) throws YAPI_Exception\n {\n String rest_val;\n rest_val = String.format(\"0x%06x\",newval);\n _setAttr(\"rgbColor\",rest_val);\n return YAPI.SUCCESS;\n }",
"public void setColor(int iColor_p) throws Exception\r\n {\r\n m_iColor =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Capitalizes the given word | public static String capitalize(String word) {
return Character.toUpperCase(word.charAt(0)) + word.substring(1);
} | [
"public String convertToUpperCase(String word);",
"public static String capitalize (String word)\r\n {\r\n String capitalized = \"\";\r\n \r\n char firstChar = word.charAt(0);\r\n \r\n if(Character.isLetter(firstChar) && Character.isLowerCase(firstChar))\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
delete menus from remote server | ReturnCode deleteMenus(MmtConfig cfg); | [
"MenuItems deleteMenuItems(String menuItem)throws MenuItemNotFoundException;",
"public void deleteMenu() {\n deleteMenuGroupError = true;\n String input = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n menu_id = Integer.parseInt(input);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ GZip NOT requested and GZip response > ContentLength discarded and response uncompressed | @Test
public void runWithOriginContentLength_gzipNotRequested_gzipResponse() throws Exception {
ZuulProperties properties = new ZuulProperties();
properties.setSetContentLength(true);
SendResponseFilter filter = new SendResponseFilter(properties);
byte[] gzipData = gzipData("hello");... | [
"private boolean shouldGzipResponse() {\n return status != HttpServletResponse.SC_NOT_MODIFIED && status != HttpServletResponse.SC_NO_CONTENT;\n }",
"@Test\n public void runWithOriginContentLength_gzipRequested_gzipResponse() throws Exception {\n ZuulProperties properties = new ZuulProperties();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves record counts among all visible servers. In addition to returning a local count, this server will contact sibling servers via udp to obtain and return their counts. | List<RecordCount> getRecordCounts(String clientId) throws Exception; | [
"long getTotalServerSocketsCount();",
"public int getTotalConnections();",
"public int getServerCount() {\r\n return serverCount;\r\n }",
"public int numberStatsServer();",
"int getConnectionsCount();",
"public int getPeerCount() {\n return sinkNode.getClientCount() + sinkNode.getServlet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |